]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/configure
RISC-V: Support ELF attribute for gas and readelf.
[thirdparty/binutils-gdb.git] / gas / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gas 2.31.51.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='gas'
589 PACKAGE_TARNAME='gas'
590 PACKAGE_VERSION='2.31.51'
591 PACKAGE_STRING='gas 2.31.51'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="as.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 zlibinc
637 zlibdir
638 LIBM
639 ALLOCA
640 GENINSRC_NEVER_FALSE
641 GENINSRC_NEVER_TRUE
642 MAINT
643 MAINTAINER_MODE_FALSE
644 MAINTAINER_MODE_TRUE
645 MSGMERGE
646 MSGFMT
647 MKINSTALLDIRS
648 CATOBJEXT
649 GENCAT
650 INSTOBJEXT
651 DATADIRNAME
652 CATALOGS
653 POSUB
654 GMSGFMT
655 XGETTEXT
656 INCINTL
657 LIBINTL_DEP
658 LIBINTL
659 USE_NLS
660 LEXLIB
661 LEX_OUTPUT_ROOT
662 LEX
663 YFLAGS
664 YACC
665 OPCODES_LIB
666 atof
667 install_tooldir
668 te_file
669 obj_format
670 target_cpu_type
671 extra_objects
672 cgen_cpu_prefix
673 GDBINIT
674 WARN_WRITE_STRINGS
675 NO_WERROR
676 WARN_CFLAGS_FOR_BUILD
677 WARN_CFLAGS
678 do_compare
679 OTOOL64
680 OTOOL
681 LIPO
682 NMEDIT
683 DSYMUTIL
684 RANLIB
685 AR
686 OBJDUMP
687 LN_S
688 NM
689 ac_ct_DUMPBIN
690 DUMPBIN
691 LD
692 FGREP
693 SED
694 LIBTOOL
695 EGREP
696 GREP
697 CPP
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__quote
710 am__include
711 DEPDIR
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
717 AWK
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
741 CC
742 target_os
743 target_vendor
744 target_cpu
745 target
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_dependency_tracking
796 enable_silent_rules
797 enable_shared
798 enable_static
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 enable_libtool_lock
803 enable_plugins
804 enable_largefile
805 enable_targets
806 enable_checking
807 enable_compressed_debug_sections
808 enable_x86_relax_relocations
809 enable_elf_stt_common
810 enable_generate_build_notes
811 enable_x86_used_note
812 enable_default_riscv_attribute
813 enable_werror
814 enable_build_warnings
815 with_cpu
816 enable_nls
817 enable_maintainer_mode
818 with_system_zlib
819 '
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CC
824 CFLAGS
825 LDFLAGS
826 LIBS
827 CPPFLAGS
828 CPP
829 YACC
830 YFLAGS'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
891
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
903
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
908
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
913
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
923
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
928
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
951
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
956
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
961
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
977
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
986
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
990
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
997
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1002
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1008
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1015
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1020
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1025
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1032
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1037
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1044
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1049
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1053
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1057
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1061
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1070
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1075
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1082
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1089
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1106
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1111
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1116
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1259 do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures gas 2.31.51 to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 --target=TARGET configure for building compilers for TARGET [HOST]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of gas 2.31.51:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-dependency-tracking
1451 do not reject slow dependency extractors
1452 --disable-dependency-tracking
1453 speeds up one-time build
1454 --enable-silent-rules less verbose build output (undo: "make V=1")
1455 --disable-silent-rules verbose build output (undo: "make V=0")
1456 --enable-shared[=PKGS] build shared libraries [default=yes]
1457 --enable-static[=PKGS] build static libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --enable-plugins Enable support for plugins
1462 --disable-largefile omit support for large files
1463 --enable-targets alternative target configurations besides the primary
1464 --enable-checking enable run-time checks
1465 --enable-compressed-debug-sections={all,gas,none}
1466 compress debug sections by default
1467 --enable-x86-relax-relocations
1468 generate x86 relax relocations by default
1469 --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1470 default
1471 --enable-generate-build-notes
1472 generate GNU Build notes if none are provided by the
1473 input
1474 --enable-x86-used-note generate GNU x86 used ISA and feature properties
1475 --enable-default-riscv-attribute
1476 generate RISC-V arch attribute by default
1477 --enable-werror treat compile warnings as errors
1478 --enable-build-warnings enable build-time compiler warnings
1479 --disable-nls do not use Native Language Support
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful (and
1482 sometimes confusing) to the casual installer
1483
1484 Optional Packages:
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-pic try to use only PIC/non-PIC objects [default=use
1488 both]
1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1490 --with-cpu=CPU default cpu variant is CPU (currently only supported
1491 on ARC)
1492 --with-system-zlib use installed libz
1493
1494 Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
1499 LIBS libraries to pass to the linker, e.g. -l<library>
1500 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1502 CPP C preprocessor
1503 YACC The `Yet Another Compiler Compiler' implementation to use.
1504 Defaults to the first program found out of: `bison -y', `byacc',
1505 `yacc'.
1506 YFLAGS The list of arguments that will be passed by default to $YACC.
1507 This script will default YFLAGS to the empty string to avoid a
1508 default value of `-d' given by some make applications.
1509
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1512
1513 Report bugs to the package provider.
1514 _ACEOF
1515 ac_status=$?
1516 fi
1517
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
1524 ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 gas configure 2.31.51
1577 generated by GNU Autoconf 2.69
1578
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1584 fi
1585
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1589
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622 fi
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_compile
1627
1628 # ac_fn_c_try_link LINENO
1629 # -----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_link ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext conftest$ac_exeext
1635 if { { ac_try="$ac_link"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest$ac_exeext && {
1654 test "$cross_compiling" = yes ||
1655 test -x conftest$ac_exeext
1656 }; then :
1657 ac_retval=0
1658 else
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663 fi
1664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666 # interfere with the next link command; also delete a directory that is
1667 # left behind by Apple's compiler. We do this before executing the actions.
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_link
1673
1674 # ac_fn_c_try_cpp LINENO
1675 # ----------------------
1676 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_cpp ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } > conftest.i && {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705 fi
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1708
1709 } # ac_fn_c_try_cpp
1710
1711 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714 # the include files in INCLUDES and setting the cache variable VAR
1715 # accordingly.
1716 ac_fn_c_check_header_mongrel ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if eval \${$3+:} false; then :
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1724 fi
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 else
1729 # Is the header compilable?
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731 $as_echo_n "checking $2 usability... " >&6; }
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 $4
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_header_compiler=yes
1739 else
1740 ac_header_compiler=no
1741 fi
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744 $as_echo "$ac_header_compiler" >&6; }
1745
1746 # Is the header present?
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748 $as_echo_n "checking $2 presence... " >&6; }
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_cpp "$LINENO"; then :
1754 ac_header_preproc=yes
1755 else
1756 ac_header_preproc=no
1757 fi
1758 rm -f conftest.err conftest.i conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760 $as_echo "$ac_header_preproc" >&6; }
1761
1762 # So? What about this header?
1763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 yes:no: )
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769 ;;
1770 no:yes:* )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 ;;
1782 esac
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 eval "$3=\$ac_header_compiler"
1789 fi
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 fi
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_header_mongrel
1797
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1802 ac_fn_c_try_run ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=$ac_status
1833 fi
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_run
1839
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 $4
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext 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; ${as_lineno_stack:+:} unset as_lineno
1868
1869 } # ac_fn_c_check_header_compile
1870
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886 #define $2 innocuous_$2
1887
1888 /* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1892
1893 #ifdef __STDC__
1894 # include <limits.h>
1895 #else
1896 # include <assert.h>
1897 #endif
1898
1899 #undef $2
1900
1901 /* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1904 #ifdef __cplusplus
1905 extern "C"
1906 #endif
1907 char $2 ();
1908 /* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911 #if defined __stub_$2 || defined __stub___$2
1912 choke me
1913 #endif
1914
1915 int
1916 main ()
1917 {
1918 return $2 ();
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_link "$LINENO"; then :
1924 eval "$3=yes"
1925 else
1926 eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_func
1937
1938 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1939 # -------------------------------------------
1940 # Tests whether TYPE exists after having included INCLUDES, setting cache
1941 # variable VAR accordingly.
1942 ac_fn_c_check_type ()
1943 {
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1949 else
1950 eval "$3=no"
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 $4
1954 int
1955 main ()
1956 {
1957 if (sizeof ($2))
1958 return 0;
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 $4
1967 int
1968 main ()
1969 {
1970 if (sizeof (($2)))
1971 return 0;
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977
1978 else
1979 eval "$3=yes"
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 fi
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_type
1991
1992 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1993 # ---------------------------------------------
1994 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1995 # accordingly.
1996 ac_fn_c_check_decl ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 as_decl_name=`echo $2|sed 's/ *(.*//'`
2000 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2002 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2003 if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2005 else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 $4
2009 int
2010 main ()
2011 {
2012 #ifndef $as_decl_name
2013 #ifdef __cplusplus
2014 (void) $as_decl_use;
2015 #else
2016 (void) $as_decl_name;
2017 #endif
2018 #endif
2019
2020 ;
2021 return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$3=yes"
2026 else
2027 eval "$3=no"
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 fi
2031 eval ac_res=\$$3
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035
2036 } # ac_fn_c_check_decl
2037 cat >config.log <<_ACEOF
2038 This file contains any messages produced by compilers while
2039 running configure, to aid debugging if configure makes a mistake.
2040
2041 It was created by gas $as_me 2.31.51, which was
2042 generated by GNU Autoconf 2.69. Invocation command line was
2043
2044 $ $0 $@
2045
2046 _ACEOF
2047 exec 5>>config.log
2048 {
2049 cat <<_ASUNAME
2050 ## --------- ##
2051 ## Platform. ##
2052 ## --------- ##
2053
2054 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2055 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2056 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2057 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2058 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059
2060 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2061 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2062
2063 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2064 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2065 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2066 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2067 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2068 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2069 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2070
2071 _ASUNAME
2072
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2075 do
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 $as_echo "PATH: $as_dir"
2079 done
2080 IFS=$as_save_IFS
2081
2082 } >&5
2083
2084 cat >&5 <<_ACEOF
2085
2086
2087 ## ----------- ##
2088 ## Core tests. ##
2089 ## ----------- ##
2090
2091 _ACEOF
2092
2093
2094 # Keep a trace of the command line.
2095 # Strip out --no-create and --no-recursion so they do not pile up.
2096 # Strip out --silent because we don't want to record it for future runs.
2097 # Also quote any args containing shell meta-characters.
2098 # Make two passes to allow for proper duplicate-argument suppression.
2099 ac_configure_args=
2100 ac_configure_args0=
2101 ac_configure_args1=
2102 ac_must_keep_next=false
2103 for ac_pass in 1 2
2104 do
2105 for ac_arg
2106 do
2107 case $ac_arg in
2108 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2110 | -silent | --silent | --silen | --sile | --sil)
2111 continue ;;
2112 *\'*)
2113 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2114 esac
2115 case $ac_pass in
2116 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2117 2)
2118 as_fn_append ac_configure_args1 " '$ac_arg'"
2119 if test $ac_must_keep_next = true; then
2120 ac_must_keep_next=false # Got value, back to normal.
2121 else
2122 case $ac_arg in
2123 *=* | --config-cache | -C | -disable-* | --disable-* \
2124 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2125 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2126 | -with-* | --with-* | -without-* | --without-* | --x)
2127 case "$ac_configure_args0 " in
2128 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2129 esac
2130 ;;
2131 -* ) ac_must_keep_next=true ;;
2132 esac
2133 fi
2134 as_fn_append ac_configure_args " '$ac_arg'"
2135 ;;
2136 esac
2137 done
2138 done
2139 { ac_configure_args0=; unset ac_configure_args0;}
2140 { ac_configure_args1=; unset ac_configure_args1;}
2141
2142 # When interrupted or exit'd, cleanup temporary files, and complete
2143 # config.log. We remove comments because anyway the quotes in there
2144 # would cause problems or look ugly.
2145 # WARNING: Use '\'' to represent an apostrophe within the trap.
2146 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2147 trap 'exit_status=$?
2148 # Save into config.log some information that might help in debugging.
2149 {
2150 echo
2151
2152 $as_echo "## ---------------- ##
2153 ## Cache variables. ##
2154 ## ---------------- ##"
2155 echo
2156 # The following way of writing the cache mishandles newlines in values,
2157 (
2158 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2159 eval ac_val=\$$ac_var
2160 case $ac_val in #(
2161 *${as_nl}*)
2162 case $ac_var in #(
2163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2165 esac
2166 case $ac_var in #(
2167 _ | IFS | as_nl) ;; #(
2168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2169 *) { eval $ac_var=; unset $ac_var;} ;;
2170 esac ;;
2171 esac
2172 done
2173 (set) 2>&1 |
2174 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2175 *${as_nl}ac_space=\ *)
2176 sed -n \
2177 "s/'\''/'\''\\\\'\'''\''/g;
2178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2179 ;; #(
2180 *)
2181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2182 ;;
2183 esac |
2184 sort
2185 )
2186 echo
2187
2188 $as_echo "## ----------------- ##
2189 ## Output variables. ##
2190 ## ----------------- ##"
2191 echo
2192 for ac_var in $ac_subst_vars
2193 do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2201
2202 if test -n "$ac_subst_files"; then
2203 $as_echo "## ------------------- ##
2204 ## File substitutions. ##
2205 ## ------------------- ##"
2206 echo
2207 for ac_var in $ac_subst_files
2208 do
2209 eval ac_val=\$$ac_var
2210 case $ac_val in
2211 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212 esac
2213 $as_echo "$ac_var='\''$ac_val'\''"
2214 done | sort
2215 echo
2216 fi
2217
2218 if test -s confdefs.h; then
2219 $as_echo "## ----------- ##
2220 ## confdefs.h. ##
2221 ## ----------- ##"
2222 echo
2223 cat confdefs.h
2224 echo
2225 fi
2226 test "$ac_signal" != 0 &&
2227 $as_echo "$as_me: caught signal $ac_signal"
2228 $as_echo "$as_me: exit $exit_status"
2229 } >&5
2230 rm -f core *.core core.conftest.* &&
2231 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2232 exit $exit_status
2233 ' 0
2234 for ac_signal in 1 2 13 15; do
2235 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2236 done
2237 ac_signal=0
2238
2239 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2240 rm -f -r conftest* confdefs.h
2241
2242 $as_echo "/* confdefs.h */" > confdefs.h
2243
2244 # Predefined preprocessor variables.
2245
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_NAME "$PACKAGE_NAME"
2248 _ACEOF
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252 _ACEOF
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_STRING "$PACKAGE_STRING"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_URL "$PACKAGE_URL"
2268 _ACEOF
2269
2270
2271 # Let the site file select an alternate cache file if it wants to.
2272 # Prefer an explicitly selected file to automatically selected ones.
2273 ac_site_file1=NONE
2274 ac_site_file2=NONE
2275 if test -n "$CONFIG_SITE"; then
2276 # We do not want a PATH search for config.site.
2277 case $CONFIG_SITE in #((
2278 -*) ac_site_file1=./$CONFIG_SITE;;
2279 */*) ac_site_file1=$CONFIG_SITE;;
2280 *) ac_site_file1=./$CONFIG_SITE;;
2281 esac
2282 elif test "x$prefix" != xNONE; then
2283 ac_site_file1=$prefix/share/config.site
2284 ac_site_file2=$prefix/etc/config.site
2285 else
2286 ac_site_file1=$ac_default_prefix/share/config.site
2287 ac_site_file2=$ac_default_prefix/etc/config.site
2288 fi
2289 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2290 do
2291 test "x$ac_site_file" = xNONE && continue
2292 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2294 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2295 sed 's/^/| /' "$ac_site_file" >&5
2296 . "$ac_site_file" \
2297 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 as_fn_error $? "failed to load site script $ac_site_file
2300 See \`config.log' for more details" "$LINENO" 5; }
2301 fi
2302 done
2303
2304 if test -r "$cache_file"; then
2305 # Some versions of bash will fail to source /dev/null (special files
2306 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2307 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2309 $as_echo "$as_me: loading cache $cache_file" >&6;}
2310 case $cache_file in
2311 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2312 *) . "./$cache_file";;
2313 esac
2314 fi
2315 else
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2317 $as_echo "$as_me: creating cache $cache_file" >&6;}
2318 >$cache_file
2319 fi
2320
2321 # Check that the precious variables saved in the cache have kept the same
2322 # value.
2323 ac_cache_corrupted=false
2324 for ac_var in $ac_precious_vars; do
2325 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2326 eval ac_new_set=\$ac_env_${ac_var}_set
2327 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2328 eval ac_new_val=\$ac_env_${ac_var}_value
2329 case $ac_old_set,$ac_new_set in
2330 set,)
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2333 ac_cache_corrupted=: ;;
2334 ,set)
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2338 ,);;
2339 *)
2340 if test "x$ac_old_val" != "x$ac_new_val"; then
2341 # differences in whitespace do not lead to failure.
2342 ac_old_val_w=`echo x $ac_old_val`
2343 ac_new_val_w=`echo x $ac_new_val`
2344 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2346 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2347 ac_cache_corrupted=:
2348 else
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2350 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2351 eval $ac_var=\$ac_old_val
2352 fi
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2354 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2356 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2357 fi;;
2358 esac
2359 # Pass precious variables to config.status.
2360 if test "$ac_new_set" = set; then
2361 case $ac_new_val in
2362 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2363 *) ac_arg=$ac_var=$ac_new_val ;;
2364 esac
2365 case " $ac_configure_args " in
2366 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2367 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2368 esac
2369 fi
2370 done
2371 if $ac_cache_corrupted; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2375 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2376 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2377 fi
2378 ## -------------------- ##
2379 ## Main body of script. ##
2380 ## -------------------- ##
2381
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388
2389
2390
2391
2392
2393
2394 ac_aux_dir=
2395 for ac_dir in .. "$srcdir"/..; do
2396 if test -f "$ac_dir/install-sh"; then
2397 ac_aux_dir=$ac_dir
2398 ac_install_sh="$ac_aux_dir/install-sh -c"
2399 break
2400 elif test -f "$ac_dir/install.sh"; then
2401 ac_aux_dir=$ac_dir
2402 ac_install_sh="$ac_aux_dir/install.sh -c"
2403 break
2404 elif test -f "$ac_dir/shtool"; then
2405 ac_aux_dir=$ac_dir
2406 ac_install_sh="$ac_aux_dir/shtool install -c"
2407 break
2408 fi
2409 done
2410 if test -z "$ac_aux_dir"; then
2411 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2412 fi
2413
2414 # These three variables are undocumented and unsupported,
2415 # and are intended to be withdrawn in a future Autoconf release.
2416 # They can cause serious problems if a builder's source tree is in a directory
2417 # whose full name contains unusual characters.
2418 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2419 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2420 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2421
2422
2423 # Make sure we can run config.sub.
2424 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2425 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2426
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2428 $as_echo_n "checking build system type... " >&6; }
2429 if ${ac_cv_build+:} false; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 ac_build_alias=$build_alias
2433 test "x$ac_build_alias" = x &&
2434 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2435 test "x$ac_build_alias" = x &&
2436 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2437 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2438 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2439
2440 fi
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2442 $as_echo "$ac_cv_build" >&6; }
2443 case $ac_cv_build in
2444 *-*-*) ;;
2445 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2446 esac
2447 build=$ac_cv_build
2448 ac_save_IFS=$IFS; IFS='-'
2449 set x $ac_cv_build
2450 shift
2451 build_cpu=$1
2452 build_vendor=$2
2453 shift; shift
2454 # Remember, the first character of IFS is used to create $*,
2455 # except with old shells:
2456 build_os=$*
2457 IFS=$ac_save_IFS
2458 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2459
2460
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2462 $as_echo_n "checking host system type... " >&6; }
2463 if ${ac_cv_host+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test "x$host_alias" = x; then
2467 ac_cv_host=$ac_cv_build
2468 else
2469 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2470 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2471 fi
2472
2473 fi
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2475 $as_echo "$ac_cv_host" >&6; }
2476 case $ac_cv_host in
2477 *-*-*) ;;
2478 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2479 esac
2480 host=$ac_cv_host
2481 ac_save_IFS=$IFS; IFS='-'
2482 set x $ac_cv_host
2483 shift
2484 host_cpu=$1
2485 host_vendor=$2
2486 shift; shift
2487 # Remember, the first character of IFS is used to create $*,
2488 # except with old shells:
2489 host_os=$*
2490 IFS=$ac_save_IFS
2491 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2492
2493
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2495 $as_echo_n "checking target system type... " >&6; }
2496 if ${ac_cv_target+:} false; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 if test "x$target_alias" = x; then
2500 ac_cv_target=$ac_cv_host
2501 else
2502 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2504 fi
2505
2506 fi
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2508 $as_echo "$ac_cv_target" >&6; }
2509 case $ac_cv_target in
2510 *-*-*) ;;
2511 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2512 esac
2513 target=$ac_cv_target
2514 ac_save_IFS=$IFS; IFS='-'
2515 set x $ac_cv_target
2516 shift
2517 target_cpu=$1
2518 target_vendor=$2
2519 shift; shift
2520 # Remember, the first character of IFS is used to create $*,
2521 # except with old shells:
2522 target_os=$*
2523 IFS=$ac_save_IFS
2524 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2525
2526
2527 # The aliases save the names the user supplied, while $host etc.
2528 # will get canonicalized.
2529 test -n "$target_alias" &&
2530 test "$program_prefix$program_suffix$program_transform_name" = \
2531 NONENONEs,x,x, &&
2532 program_prefix=${target_alias}-
2533 # Expand $ac_aux_dir to an absolute path.
2534 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2535
2536 ac_ext=c
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541 if test -n "$ac_tool_prefix"; then
2542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2545 $as_echo_n "checking for $ac_word... " >&6; }
2546 if ${ac_cv_prog_CC+:} false; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2562 fi
2563 done
2564 done
2565 IFS=$as_save_IFS
2566
2567 fi
2568 fi
2569 CC=$ac_cv_prog_CC
2570 if test -n "$CC"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2572 $as_echo "$CC" >&6; }
2573 else
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2575 $as_echo "no" >&6; }
2576 fi
2577
2578
2579 fi
2580 if test -z "$ac_cv_prog_CC"; then
2581 ac_ct_CC=$CC
2582 # Extract the first word of "gcc", so it can be a program name with args.
2583 set dummy gcc; ac_word=$2
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585 $as_echo_n "checking for $ac_word... " >&6; }
2586 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 if test -n "$ac_ct_CC"; then
2590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599 ac_cv_prog_ac_ct_CC="gcc"
2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2602 fi
2603 done
2604 done
2605 IFS=$as_save_IFS
2606
2607 fi
2608 fi
2609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610 if test -n "$ac_ct_CC"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2612 $as_echo "$ac_ct_CC" >&6; }
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615 $as_echo "no" >&6; }
2616 fi
2617
2618 if test "x$ac_ct_CC" = x; then
2619 CC=""
2620 else
2621 case $cross_compiling:$ac_tool_warned in
2622 yes:)
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2625 ac_tool_warned=yes ;;
2626 esac
2627 CC=$ac_ct_CC
2628 fi
2629 else
2630 CC="$ac_cv_prog_CC"
2631 fi
2632
2633 if test -z "$CC"; then
2634 if test -n "$ac_tool_prefix"; then
2635 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2636 set dummy ${ac_tool_prefix}cc; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_CC+:} false; then :
2640 $as_echo_n "(cached) " >&6
2641 else
2642 if test -n "$CC"; then
2643 ac_cv_prog_CC="$CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_CC="${ac_tool_prefix}cc"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2655 fi
2656 done
2657 done
2658 IFS=$as_save_IFS
2659
2660 fi
2661 fi
2662 CC=$ac_cv_prog_CC
2663 if test -n "$CC"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665 $as_echo "$CC" >&6; }
2666 else
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2669 fi
2670
2671
2672 fi
2673 fi
2674 if test -z "$CC"; then
2675 # Extract the first word of "cc", so it can be a program name with args.
2676 set dummy cc; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if ${ac_cv_prog_CC+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC="$CC" # Let the user override the test.
2684 else
2685 ac_prog_rejected=no
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2694 ac_prog_rejected=yes
2695 continue
2696 fi
2697 ac_cv_prog_CC="cc"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701 done
2702 done
2703 IFS=$as_save_IFS
2704
2705 if test $ac_prog_rejected = yes; then
2706 # We found a bogon in the path, so make sure we never use it.
2707 set dummy $ac_cv_prog_CC
2708 shift
2709 if test $# != 0; then
2710 # We chose a different compiler from the bogus one.
2711 # However, it has the same basename, so the bogon will be chosen
2712 # first if we set CC to just the basename; use the full file name.
2713 shift
2714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2715 fi
2716 fi
2717 fi
2718 fi
2719 CC=$ac_cv_prog_CC
2720 if test -n "$CC"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2722 $as_echo "$CC" >&6; }
2723 else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2726 fi
2727
2728
2729 fi
2730 if test -z "$CC"; then
2731 if test -n "$ac_tool_prefix"; then
2732 for ac_prog in cl.exe
2733 do
2734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_CC+:} false; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 if test -n "$CC"; then
2742 ac_cv_prog_CC="$CC" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755 done
2756 done
2757 IFS=$as_save_IFS
2758
2759 fi
2760 fi
2761 CC=$ac_cv_prog_CC
2762 if test -n "$CC"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2764 $as_echo "$CC" >&6; }
2765 else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2768 fi
2769
2770
2771 test -n "$CC" && break
2772 done
2773 fi
2774 if test -z "$CC"; then
2775 ac_ct_CC=$CC
2776 for ac_prog in cl.exe
2777 do
2778 # Extract the first word of "$ac_prog", so it can be a program name with args.
2779 set dummy $ac_prog; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$ac_ct_CC"; then
2786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_ac_ct_CC="$ac_prog"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2808 $as_echo "$ac_ct_CC" >&6; }
2809 else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814
2815 test -n "$ac_ct_CC" && break
2816 done
2817
2818 if test "x$ac_ct_CC" = x; then
2819 CC=""
2820 else
2821 case $cross_compiling:$ac_tool_warned in
2822 yes:)
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825 ac_tool_warned=yes ;;
2826 esac
2827 CC=$ac_ct_CC
2828 fi
2829 fi
2830
2831 fi
2832
2833
2834 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836 as_fn_error $? "no acceptable C compiler found in \$PATH
2837 See \`config.log' for more details" "$LINENO" 5; }
2838
2839 # Provide some information about the compiler.
2840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2841 set X $ac_compile
2842 ac_compiler=$2
2843 for ac_option in --version -v -V -qversion; do
2844 { { ac_try="$ac_compiler $ac_option >&5"
2845 case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848 esac
2849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2850 $as_echo "$ac_try_echo"; } >&5
2851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2852 ac_status=$?
2853 if test -s conftest.err; then
2854 sed '10a\
2855 ... rest of stderr output deleted ...
2856 10q' conftest.err >conftest.er1
2857 cat conftest.er1 >&5
2858 fi
2859 rm -f conftest.er1 conftest.err
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; }
2862 done
2863
2864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2865 /* end confdefs.h. */
2866
2867 int
2868 main ()
2869 {
2870
2871 ;
2872 return 0;
2873 }
2874 _ACEOF
2875 ac_clean_files_save=$ac_clean_files
2876 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2877 # Try to create an executable without -o first, disregard a.out.
2878 # It will help us diagnose broken compilers, and finding out an intuition
2879 # of exeext.
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2881 $as_echo_n "checking whether the C compiler works... " >&6; }
2882 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2883
2884 # The possible output files:
2885 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2886
2887 ac_rmfiles=
2888 for ac_file in $ac_files
2889 do
2890 case $ac_file in
2891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2892 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2893 esac
2894 done
2895 rm -f $ac_rmfiles
2896
2897 if { { ac_try="$ac_link_default"
2898 case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901 esac
2902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903 $as_echo "$ac_try_echo"; } >&5
2904 (eval "$ac_link_default") 2>&5
2905 ac_status=$?
2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }; then :
2908 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2909 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2910 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2911 # so that the user can short-circuit this test for compilers unknown to
2912 # Autoconf.
2913 for ac_file in $ac_files ''
2914 do
2915 test -f "$ac_file" || continue
2916 case $ac_file in
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2918 ;;
2919 [ab].out )
2920 # We found the default executable, but exeext='' is most
2921 # certainly right.
2922 break;;
2923 *.* )
2924 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2925 then :; else
2926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927 fi
2928 # We set ac_cv_exeext here because the later test for it is not
2929 # safe: cross compilers may not add the suffix if given an `-o'
2930 # argument, so we may need to know it at that point already.
2931 # Even if this section looks crufty: it has the advantage of
2932 # actually working.
2933 break;;
2934 * )
2935 break;;
2936 esac
2937 done
2938 test "$ac_cv_exeext" = no && ac_cv_exeext=
2939
2940 else
2941 ac_file=''
2942 fi
2943 if test -z "$ac_file"; then :
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 $as_echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951 as_fn_error 77 "C compiler cannot create executables
2952 See \`config.log' for more details" "$LINENO" 5; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2955 $as_echo "yes" >&6; }
2956 fi
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2958 $as_echo_n "checking for C compiler default output file name... " >&6; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2960 $as_echo "$ac_file" >&6; }
2961 ac_exeext=$ac_cv_exeext
2962
2963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2964 ac_clean_files=$ac_clean_files_save
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2966 $as_echo_n "checking for suffix of executables... " >&6; }
2967 if { { ac_try="$ac_link"
2968 case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971 esac
2972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973 $as_echo "$ac_try_echo"; } >&5
2974 (eval "$ac_link") 2>&5
2975 ac_status=$?
2976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2977 test $ac_status = 0; }; then :
2978 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2979 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2980 # work properly (i.e., refer to `conftest.exe'), while it won't with
2981 # `rm'.
2982 for ac_file in conftest.exe conftest conftest.*; do
2983 test -f "$ac_file" || continue
2984 case $ac_file in
2985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2987 break;;
2988 * ) break;;
2989 esac
2990 done
2991 else
2992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2995 See \`config.log' for more details" "$LINENO" 5; }
2996 fi
2997 rm -f conftest conftest$ac_cv_exeext
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2999 $as_echo "$ac_cv_exeext" >&6; }
3000
3001 rm -f conftest.$ac_ext
3002 EXEEXT=$ac_cv_exeext
3003 ac_exeext=$EXEEXT
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3006 #include <stdio.h>
3007 int
3008 main ()
3009 {
3010 FILE *f = fopen ("conftest.out", "w");
3011 return ferror (f) || fclose (f) != 0;
3012
3013 ;
3014 return 0;
3015 }
3016 _ACEOF
3017 ac_clean_files="$ac_clean_files conftest.out"
3018 # Check that the compiler produces executables we can run. If not, either
3019 # the compiler is broken, or we cross compile.
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3021 $as_echo_n "checking whether we are cross compiling... " >&6; }
3022 if test "$cross_compiling" != yes; then
3023 { { ac_try="$ac_link"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_link") 2>&5
3031 ac_status=$?
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }
3034 if { ac_try='./conftest$ac_cv_exeext'
3035 { { case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040 $as_echo "$ac_try_echo"; } >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044 test $ac_status = 0; }; }; then
3045 cross_compiling=no
3046 else
3047 if test "$cross_compiling" = maybe; then
3048 cross_compiling=yes
3049 else
3050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error $? "cannot run C compiled programs.
3053 If you meant to cross compile, use \`--host'.
3054 See \`config.log' for more details" "$LINENO" 5; }
3055 fi
3056 fi
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3059 $as_echo "$cross_compiling" >&6; }
3060
3061 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3062 ac_clean_files=$ac_clean_files_save
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3064 $as_echo_n "checking for suffix of object files... " >&6; }
3065 if ${ac_cv_objext+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3070
3071 int
3072 main ()
3073 {
3074
3075 ;
3076 return 0;
3077 }
3078 _ACEOF
3079 rm -f conftest.o conftest.obj
3080 if { { ac_try="$ac_compile"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 $as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_compile") 2>&5
3088 ac_status=$?
3089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090 test $ac_status = 0; }; then :
3091 for ac_file in conftest.o conftest.obj conftest.*; do
3092 test -f "$ac_file" || continue;
3093 case $ac_file in
3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3096 break;;
3097 esac
3098 done
3099 else
3100 $as_echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105 as_fn_error $? "cannot compute suffix of object files: cannot compile
3106 See \`config.log' for more details" "$LINENO" 5; }
3107 fi
3108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3109 fi
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3111 $as_echo "$ac_cv_objext" >&6; }
3112 OBJEXT=$ac_cv_objext
3113 ac_objext=$OBJEXT
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3116 if ${ac_cv_c_compiler_gnu+:} false; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3121
3122 int
3123 main ()
3124 {
3125 #ifndef __GNUC__
3126 choke me
3127 #endif
3128
3129 ;
3130 return 0;
3131 }
3132 _ACEOF
3133 if ac_fn_c_try_compile "$LINENO"; then :
3134 ac_compiler_gnu=yes
3135 else
3136 ac_compiler_gnu=no
3137 fi
3138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3140
3141 fi
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3143 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3144 if test $ac_compiler_gnu = yes; then
3145 GCC=yes
3146 else
3147 GCC=
3148 fi
3149 ac_test_CFLAGS=${CFLAGS+set}
3150 ac_save_CFLAGS=$CFLAGS
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3152 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3153 if ${ac_cv_prog_cc_g+:} false; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 ac_save_c_werror_flag=$ac_c_werror_flag
3157 ac_c_werror_flag=yes
3158 ac_cv_prog_cc_g=no
3159 CFLAGS="-g"
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3162
3163 int
3164 main ()
3165 {
3166
3167 ;
3168 return 0;
3169 }
3170 _ACEOF
3171 if ac_fn_c_try_compile "$LINENO"; then :
3172 ac_cv_prog_cc_g=yes
3173 else
3174 CFLAGS=""
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3177
3178 int
3179 main ()
3180 {
3181
3182 ;
3183 return 0;
3184 }
3185 _ACEOF
3186 if ac_fn_c_try_compile "$LINENO"; then :
3187
3188 else
3189 ac_c_werror_flag=$ac_save_c_werror_flag
3190 CFLAGS="-g"
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193
3194 int
3195 main ()
3196 {
3197
3198 ;
3199 return 0;
3200 }
3201 _ACEOF
3202 if ac_fn_c_try_compile "$LINENO"; then :
3203 ac_cv_prog_cc_g=yes
3204 fi
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 fi
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 fi
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 ac_c_werror_flag=$ac_save_c_werror_flag
3211 fi
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3213 $as_echo "$ac_cv_prog_cc_g" >&6; }
3214 if test "$ac_test_CFLAGS" = set; then
3215 CFLAGS=$ac_save_CFLAGS
3216 elif test $ac_cv_prog_cc_g = yes; then
3217 if test "$GCC" = yes; then
3218 CFLAGS="-g -O2"
3219 else
3220 CFLAGS="-g"
3221 fi
3222 else
3223 if test "$GCC" = yes; then
3224 CFLAGS="-O2"
3225 else
3226 CFLAGS=
3227 fi
3228 fi
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3230 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3231 if ${ac_cv_prog_cc_c89+:} false; then :
3232 $as_echo_n "(cached) " >&6
3233 else
3234 ac_cv_prog_cc_c89=no
3235 ac_save_CC=$CC
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3238 #include <stdarg.h>
3239 #include <stdio.h>
3240 struct stat;
3241 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3242 struct buf { int x; };
3243 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3244 static char *e (p, i)
3245 char **p;
3246 int i;
3247 {
3248 return p[i];
3249 }
3250 static char *f (char * (*g) (char **, int), char **p, ...)
3251 {
3252 char *s;
3253 va_list v;
3254 va_start (v,p);
3255 s = g (p, va_arg (v,int));
3256 va_end (v);
3257 return s;
3258 }
3259
3260 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3261 function prototypes and stuff, but not '\xHH' hex character constants.
3262 These don't provoke an error unfortunately, instead are silently treated
3263 as 'x'. The following induces an error, until -std is added to get
3264 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3265 array size at least. It's necessary to write '\x00'==0 to get something
3266 that's true only with -std. */
3267 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3268
3269 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3270 inside strings and character constants. */
3271 #define FOO(x) 'x'
3272 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3273
3274 int test (int i, double x);
3275 struct s1 {int (*f) (int a);};
3276 struct s2 {int (*f) (double a);};
3277 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3278 int argc;
3279 char **argv;
3280 int
3281 main ()
3282 {
3283 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3289 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3290 do
3291 CC="$ac_save_CC $ac_arg"
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293 ac_cv_prog_cc_c89=$ac_arg
3294 fi
3295 rm -f core conftest.err conftest.$ac_objext
3296 test "x$ac_cv_prog_cc_c89" != "xno" && break
3297 done
3298 rm -f conftest.$ac_ext
3299 CC=$ac_save_CC
3300
3301 fi
3302 # AC_CACHE_VAL
3303 case "x$ac_cv_prog_cc_c89" in
3304 x)
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3306 $as_echo "none needed" >&6; } ;;
3307 xno)
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3309 $as_echo "unsupported" >&6; } ;;
3310 *)
3311 CC="$CC $ac_cv_prog_cc_c89"
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3313 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3314 esac
3315 if test "x$ac_cv_prog_cc_c89" != xno; then :
3316
3317 fi
3318
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324
3325 ac_ext=c
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3331 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3332 if ${am_cv_prog_cc_c_o+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3337
3338 int
3339 main ()
3340 {
3341
3342 ;
3343 return 0;
3344 }
3345 _ACEOF
3346 # Make sure it works both with $CC and with simple cc.
3347 # Following AC_PROG_CC_C_O, we do the test twice because some
3348 # compilers refuse to overwrite an existing .o file with -o,
3349 # though they will create one.
3350 am_cv_prog_cc_c_o=yes
3351 for am_i in 1 2; do
3352 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3353 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } \
3357 && test -f conftest2.$ac_objext; then
3358 : OK
3359 else
3360 am_cv_prog_cc_c_o=no
3361 break
3362 fi
3363 done
3364 rm -f core conftest*
3365 unset am_i
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3368 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3369 if test "$am_cv_prog_cc_c_o" != yes; then
3370 # Losing compiler, so override with the script.
3371 # FIXME: It is wrong to rewrite CC.
3372 # But if we don't then we get into trouble of one sort or another.
3373 # A longer-term fix would be to have automake use am__CC in this case,
3374 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3375 CC="$am_aux_dir/compile $CC"
3376 fi
3377 ac_ext=c
3378 ac_cpp='$CPP $CPPFLAGS'
3379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382
3383
3384
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3386 $as_echo_n "checking for library containing strerror... " >&6; }
3387 if ${ac_cv_search_strerror+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 ac_func_search_save_LIBS=$LIBS
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3393
3394 /* Override any GCC internal prototype to avoid an error.
3395 Use char because int might match the return type of a GCC
3396 builtin and then its argument prototype would still apply. */
3397 #ifdef __cplusplus
3398 extern "C"
3399 #endif
3400 char strerror ();
3401 int
3402 main ()
3403 {
3404 return strerror ();
3405 ;
3406 return 0;
3407 }
3408 _ACEOF
3409 for ac_lib in '' cposix; do
3410 if test -z "$ac_lib"; then
3411 ac_res="none required"
3412 else
3413 ac_res=-l$ac_lib
3414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3415 fi
3416 if ac_fn_c_try_link "$LINENO"; then :
3417 ac_cv_search_strerror=$ac_res
3418 fi
3419 rm -f core conftest.err conftest.$ac_objext \
3420 conftest$ac_exeext
3421 if ${ac_cv_search_strerror+:} false; then :
3422 break
3423 fi
3424 done
3425 if ${ac_cv_search_strerror+:} false; then :
3426
3427 else
3428 ac_cv_search_strerror=no
3429 fi
3430 rm conftest.$ac_ext
3431 LIBS=$ac_func_search_save_LIBS
3432 fi
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3434 $as_echo "$ac_cv_search_strerror" >&6; }
3435 ac_res=$ac_cv_search_strerror
3436 if test "$ac_res" != no; then :
3437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3438
3439 fi
3440
3441
3442 am__api_version='1.15'
3443
3444 # Find a good install program. We prefer a C program (faster),
3445 # so one script is as good as another. But avoid the broken or
3446 # incompatible versions:
3447 # SysV /etc/install, /usr/sbin/install
3448 # SunOS /usr/etc/install
3449 # IRIX /sbin/install
3450 # AIX /bin/install
3451 # AmigaOS /C/install, which installs bootblocks on floppy discs
3452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3455 # OS/2's system install, which has a completely different semantic
3456 # ./install, which can be erroneously created by make from ./install.sh.
3457 # Reject install programs that cannot install multiple files.
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3460 if test -z "$INSTALL"; then
3461 if ${ac_cv_path_install+:} false; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 # Account for people who put trailing slashes in PATH elements.
3470 case $as_dir/ in #((
3471 ./ | .// | /[cC]/* | \
3472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3473 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3474 /usr/ucb/* ) ;;
3475 *)
3476 # OSF1 and SCO ODT 3.0 have their own names for install.
3477 # Don't use installbsd from OSF since it installs stuff as root
3478 # by default.
3479 for ac_prog in ginstall scoinst install; do
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3482 if test $ac_prog = install &&
3483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3484 # AIX install. It has an incompatible calling convention.
3485 :
3486 elif test $ac_prog = install &&
3487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3488 # program-specific install script used by HP pwplus--don't use.
3489 :
3490 else
3491 rm -rf conftest.one conftest.two conftest.dir
3492 echo one > conftest.one
3493 echo two > conftest.two
3494 mkdir conftest.dir
3495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3496 test -s conftest.one && test -s conftest.two &&
3497 test -s conftest.dir/conftest.one &&
3498 test -s conftest.dir/conftest.two
3499 then
3500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3501 break 3
3502 fi
3503 fi
3504 fi
3505 done
3506 done
3507 ;;
3508 esac
3509
3510 done
3511 IFS=$as_save_IFS
3512
3513 rm -rf conftest.one conftest.two conftest.dir
3514
3515 fi
3516 if test "${ac_cv_path_install+set}" = set; then
3517 INSTALL=$ac_cv_path_install
3518 else
3519 # As a last resort, use the slow shell script. Don't cache a
3520 # value for INSTALL within a source directory, because that will
3521 # break other packages using the cache if that directory is
3522 # removed, or if the value is a relative name.
3523 INSTALL=$ac_install_sh
3524 fi
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3527 $as_echo "$INSTALL" >&6; }
3528
3529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3530 # It thinks the first close brace ends the variable substitution.
3531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3532
3533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3534
3535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3536
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3538 $as_echo_n "checking whether build environment is sane... " >&6; }
3539 # Reject unsafe characters in $srcdir or the absolute working directory
3540 # name. Accept space and tab only in the latter.
3541 am_lf='
3542 '
3543 case `pwd` in
3544 *[\\\"\#\$\&\'\`$am_lf]*)
3545 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3546 esac
3547 case $srcdir in
3548 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3549 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3550 esac
3551
3552 # Do 'set' in a subshell so we don't clobber the current shell's
3553 # arguments. Must try -L first in case configure is actually a
3554 # symlink; some systems play weird games with the mod time of symlinks
3555 # (eg FreeBSD returns the mod time of the symlink's containing
3556 # directory).
3557 if (
3558 am_has_slept=no
3559 for am_try in 1 2; do
3560 echo "timestamp, slept: $am_has_slept" > conftest.file
3561 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3562 if test "$*" = "X"; then
3563 # -L didn't work.
3564 set X `ls -t "$srcdir/configure" conftest.file`
3565 fi
3566 if test "$*" != "X $srcdir/configure conftest.file" \
3567 && test "$*" != "X conftest.file $srcdir/configure"; then
3568
3569 # If neither matched, then we have a broken ls. This can happen
3570 # if, for instance, CONFIG_SHELL is bash and it inherits a
3571 # broken ls alias from the environment. This has actually
3572 # happened. Such a system could not be considered "sane".
3573 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3574 alias in your environment" "$LINENO" 5
3575 fi
3576 if test "$2" = conftest.file || test $am_try -eq 2; then
3577 break
3578 fi
3579 # Just in case.
3580 sleep 1
3581 am_has_slept=yes
3582 done
3583 test "$2" = conftest.file
3584 )
3585 then
3586 # Ok.
3587 :
3588 else
3589 as_fn_error $? "newly created file is older than distributed files!
3590 Check your system clock" "$LINENO" 5
3591 fi
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3593 $as_echo "yes" >&6; }
3594 # If we didn't sleep, we still need to ensure time stamps of config.status and
3595 # generated files are strictly newer.
3596 am_sleep_pid=
3597 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3598 ( sleep 1 ) &
3599 am_sleep_pid=$!
3600 fi
3601
3602 rm -f conftest.file
3603
3604 test "$program_prefix" != NONE &&
3605 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3606 # Use a double $ so make ignores it.
3607 test "$program_suffix" != NONE &&
3608 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3609 # Double any \ or $.
3610 # By default was `s,x,x', remove it if useless.
3611 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3612 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3613
3614 if test x"${MISSING+set}" != xset; then
3615 case $am_aux_dir in
3616 *\ * | *\ *)
3617 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3618 *)
3619 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3620 esac
3621 fi
3622 # Use eval to expand $SHELL
3623 if eval "$MISSING --is-lightweight"; then
3624 am_missing_run="$MISSING "
3625 else
3626 am_missing_run=
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3628 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3629 fi
3630
3631 if test x"${install_sh+set}" != xset; then
3632 case $am_aux_dir in
3633 *\ * | *\ *)
3634 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3635 *)
3636 install_sh="\${SHELL} $am_aux_dir/install-sh"
3637 esac
3638 fi
3639
3640 # Installed binaries are usually stripped using 'strip' when the user
3641 # run "make install-strip". However 'strip' might not be the right
3642 # tool to use in cross-compilation environments, therefore Automake
3643 # will honor the 'STRIP' environment variable to overrule this program.
3644 if test "$cross_compiling" != no; then
3645 if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3647 set dummy ${ac_tool_prefix}strip; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_STRIP+:} false; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 if test -n "$STRIP"; then
3654 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3666 fi
3667 done
3668 done
3669 IFS=$as_save_IFS
3670
3671 fi
3672 fi
3673 STRIP=$ac_cv_prog_STRIP
3674 if test -n "$STRIP"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3676 $as_echo "$STRIP" >&6; }
3677 else
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3680 fi
3681
3682
3683 fi
3684 if test -z "$ac_cv_prog_STRIP"; then
3685 ac_ct_STRIP=$STRIP
3686 # Extract the first word of "strip", so it can be a program name with args.
3687 set dummy strip; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test -n "$ac_ct_STRIP"; then
3694 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3698 do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3703 ac_cv_prog_ac_ct_STRIP="strip"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3706 fi
3707 done
3708 done
3709 IFS=$as_save_IFS
3710
3711 fi
3712 fi
3713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3714 if test -n "$ac_ct_STRIP"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3716 $as_echo "$ac_ct_STRIP" >&6; }
3717 else
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3720 fi
3721
3722 if test "x$ac_ct_STRIP" = x; then
3723 STRIP=":"
3724 else
3725 case $cross_compiling:$ac_tool_warned in
3726 yes:)
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3729 ac_tool_warned=yes ;;
3730 esac
3731 STRIP=$ac_ct_STRIP
3732 fi
3733 else
3734 STRIP="$ac_cv_prog_STRIP"
3735 fi
3736
3737 fi
3738 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3739
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3741 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3742 if test -z "$MKDIR_P"; then
3743 if ${ac_cv_path_mkdir+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3748 do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in mkdir gmkdir; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3754 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3755 'mkdir (GNU coreutils) '* | \
3756 'mkdir (coreutils) '* | \
3757 'mkdir (fileutils) '4.1*)
3758 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3759 break 3;;
3760 esac
3761 done
3762 done
3763 done
3764 IFS=$as_save_IFS
3765
3766 fi
3767
3768 test -d ./--version && rmdir ./--version
3769 if test "${ac_cv_path_mkdir+set}" = set; then
3770 MKDIR_P="$ac_cv_path_mkdir -p"
3771 else
3772 # As a last resort, use the slow shell script. Don't cache a
3773 # value for MKDIR_P within a source directory, because that will
3774 # break other packages using the cache if that directory is
3775 # removed, or if the value is a relative name.
3776 MKDIR_P="$ac_install_sh -d"
3777 fi
3778 fi
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3780 $as_echo "$MKDIR_P" >&6; }
3781
3782 for ac_prog in gawk mawk nawk awk
3783 do
3784 # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy $ac_prog; ac_word=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_AWK+:} false; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 if test -n "$AWK"; then
3792 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_AWK="$ac_prog"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805 done
3806 done
3807 IFS=$as_save_IFS
3808
3809 fi
3810 fi
3811 AWK=$ac_cv_prog_AWK
3812 if test -n "$AWK"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3814 $as_echo "$AWK" >&6; }
3815 else
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3818 fi
3819
3820
3821 test -n "$AWK" && break
3822 done
3823
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3825 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3826 set x ${MAKE-make}
3827 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3828 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3829 $as_echo_n "(cached) " >&6
3830 else
3831 cat >conftest.make <<\_ACEOF
3832 SHELL = /bin/sh
3833 all:
3834 @echo '@@@%%%=$(MAKE)=@@@%%%'
3835 _ACEOF
3836 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3837 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3838 *@@@%%%=?*=@@@%%%*)
3839 eval ac_cv_prog_make_${ac_make}_set=yes;;
3840 *)
3841 eval ac_cv_prog_make_${ac_make}_set=no;;
3842 esac
3843 rm -f conftest.make
3844 fi
3845 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3847 $as_echo "yes" >&6; }
3848 SET_MAKE=
3849 else
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3852 SET_MAKE="MAKE=${MAKE-make}"
3853 fi
3854
3855 rm -rf .tst 2>/dev/null
3856 mkdir .tst 2>/dev/null
3857 if test -d .tst; then
3858 am__leading_dot=.
3859 else
3860 am__leading_dot=_
3861 fi
3862 rmdir .tst 2>/dev/null
3863
3864 DEPDIR="${am__leading_dot}deps"
3865
3866 ac_config_commands="$ac_config_commands depfiles"
3867
3868
3869 am_make=${MAKE-make}
3870 cat > confinc << 'END'
3871 am__doit:
3872 @echo this is the am__doit target
3873 .PHONY: am__doit
3874 END
3875 # If we don't find an include directive, just comment out the code.
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3877 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3878 am__include="#"
3879 am__quote=
3880 _am_result=none
3881 # First try GNU make style include.
3882 echo "include confinc" > confmf
3883 # Ignore all kinds of additional output from 'make'.
3884 case `$am_make -s -f confmf 2> /dev/null` in #(
3885 *the\ am__doit\ target*)
3886 am__include=include
3887 am__quote=
3888 _am_result=GNU
3889 ;;
3890 esac
3891 # Now try BSD make style include.
3892 if test "$am__include" = "#"; then
3893 echo '.include "confinc"' > confmf
3894 case `$am_make -s -f confmf 2> /dev/null` in #(
3895 *the\ am__doit\ target*)
3896 am__include=.include
3897 am__quote="\""
3898 _am_result=BSD
3899 ;;
3900 esac
3901 fi
3902
3903
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3905 $as_echo "$_am_result" >&6; }
3906 rm -f confinc confmf
3907
3908 # Check whether --enable-dependency-tracking was given.
3909 if test "${enable_dependency_tracking+set}" = set; then :
3910 enableval=$enable_dependency_tracking;
3911 fi
3912
3913 if test "x$enable_dependency_tracking" != xno; then
3914 am_depcomp="$ac_aux_dir/depcomp"
3915 AMDEPBACKSLASH='\'
3916 am__nodep='_no'
3917 fi
3918 if test "x$enable_dependency_tracking" != xno; then
3919 AMDEP_TRUE=
3920 AMDEP_FALSE='#'
3921 else
3922 AMDEP_TRUE='#'
3923 AMDEP_FALSE=
3924 fi
3925
3926
3927 # Check whether --enable-silent-rules was given.
3928 if test "${enable_silent_rules+set}" = set; then :
3929 enableval=$enable_silent_rules;
3930 fi
3931
3932 case $enable_silent_rules in # (((
3933 yes) AM_DEFAULT_VERBOSITY=0;;
3934 no) AM_DEFAULT_VERBOSITY=1;;
3935 *) AM_DEFAULT_VERBOSITY=1;;
3936 esac
3937 am_make=${MAKE-make}
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3939 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3940 if ${am_cv_make_support_nested_variables+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 if $as_echo 'TRUE=$(BAR$(V))
3944 BAR0=false
3945 BAR1=true
3946 V=1
3947 am__doit:
3948 @$(TRUE)
3949 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3950 am_cv_make_support_nested_variables=yes
3951 else
3952 am_cv_make_support_nested_variables=no
3953 fi
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3956 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3957 if test $am_cv_make_support_nested_variables = yes; then
3958 AM_V='$(V)'
3959 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3960 else
3961 AM_V=$AM_DEFAULT_VERBOSITY
3962 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3963 fi
3964 AM_BACKSLASH='\'
3965
3966 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3967 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3968 # is not polluted with repeated "-I."
3969 am__isrc=' -I$(srcdir)'
3970 # test to see if srcdir already configured
3971 if test -f $srcdir/config.status; then
3972 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3973 fi
3974 fi
3975
3976 # test whether we have cygpath
3977 if test -z "$CYGPATH_W"; then
3978 if (cygpath --version) >/dev/null 2>/dev/null; then
3979 CYGPATH_W='cygpath -w'
3980 else
3981 CYGPATH_W=echo
3982 fi
3983 fi
3984
3985
3986 # Define the identity of the package.
3987 PACKAGE='gas'
3988 VERSION='2.31.51'
3989
3990
3991 cat >>confdefs.h <<_ACEOF
3992 #define PACKAGE "$PACKAGE"
3993 _ACEOF
3994
3995
3996 cat >>confdefs.h <<_ACEOF
3997 #define VERSION "$VERSION"
3998 _ACEOF
3999
4000 # Some tools Automake needs.
4001
4002 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4003
4004
4005 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4006
4007
4008 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4009
4010
4011 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4012
4013
4014 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4015
4016 # For better backward compatibility. To be removed once Automake 1.9.x
4017 # dies out for good. For more background, see:
4018 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4019 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4020 mkdir_p='$(MKDIR_P)'
4021
4022 # We need awk for the "check" target (and possibly the TAP driver). The
4023 # system "awk" is bad on some platforms.
4024 # Always define AMTAR for backward compatibility. Yes, it's still used
4025 # in the wild :-( We should find a proper way to deprecate it ...
4026 AMTAR='$${TAR-tar}'
4027
4028
4029 # We'll loop over all known methods to create a tar archive until one works.
4030 _am_tools='gnutar pax cpio none'
4031
4032 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4033
4034
4035
4036
4037
4038 depcc="$CC" am_compiler_list=
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4041 $as_echo_n "checking dependency style of $depcc... " >&6; }
4042 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4046 # We make a subdir and do the tests there. Otherwise we can end up
4047 # making bogus files that we don't know about and never remove. For
4048 # instance it was reported that on HP-UX the gcc test will end up
4049 # making a dummy file named 'D' -- because '-MD' means "put the output
4050 # in D".
4051 rm -rf conftest.dir
4052 mkdir conftest.dir
4053 # Copy depcomp to subdir because otherwise we won't find it if we're
4054 # using a relative directory.
4055 cp "$am_depcomp" conftest.dir
4056 cd conftest.dir
4057 # We will build objects and dependencies in a subdirectory because
4058 # it helps to detect inapplicable dependency modes. For instance
4059 # both Tru64's cc and ICC support -MD to output dependencies as a
4060 # side effect of compilation, but ICC will put the dependencies in
4061 # the current directory while Tru64 will put them in the object
4062 # directory.
4063 mkdir sub
4064
4065 am_cv_CC_dependencies_compiler_type=none
4066 if test "$am_compiler_list" = ""; then
4067 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4068 fi
4069 am__universal=false
4070 case " $depcc " in #(
4071 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4072 esac
4073
4074 for depmode in $am_compiler_list; do
4075 # Setup a source with many dependencies, because some compilers
4076 # like to wrap large dependency lists on column 80 (with \), and
4077 # we should not choose a depcomp mode which is confused by this.
4078 #
4079 # We need to recreate these files for each test, as the compiler may
4080 # overwrite some of them when testing with obscure command lines.
4081 # This happens at least with the AIX C compiler.
4082 : > sub/conftest.c
4083 for i in 1 2 3 4 5 6; do
4084 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4085 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4086 # Solaris 10 /bin/sh.
4087 echo '/* dummy */' > sub/conftst$i.h
4088 done
4089 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4090
4091 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4092 # mode. It turns out that the SunPro C++ compiler does not properly
4093 # handle '-M -o', and we need to detect this. Also, some Intel
4094 # versions had trouble with output in subdirs.
4095 am__obj=sub/conftest.${OBJEXT-o}
4096 am__minus_obj="-o $am__obj"
4097 case $depmode in
4098 gcc)
4099 # This depmode causes a compiler race in universal mode.
4100 test "$am__universal" = false || continue
4101 ;;
4102 nosideeffect)
4103 # After this tag, mechanisms are not by side-effect, so they'll
4104 # only be used when explicitly requested.
4105 if test "x$enable_dependency_tracking" = xyes; then
4106 continue
4107 else
4108 break
4109 fi
4110 ;;
4111 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4112 # This compiler won't grok '-c -o', but also, the minuso test has
4113 # not run yet. These depmodes are late enough in the game, and
4114 # so weak that their functioning should not be impacted.
4115 am__obj=conftest.${OBJEXT-o}
4116 am__minus_obj=
4117 ;;
4118 none) break ;;
4119 esac
4120 if depmode=$depmode \
4121 source=sub/conftest.c object=$am__obj \
4122 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4123 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4124 >/dev/null 2>conftest.err &&
4125 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4126 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4127 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4128 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4129 # icc doesn't choke on unknown options, it will just issue warnings
4130 # or remarks (even with -Werror). So we grep stderr for any message
4131 # that says an option was ignored or not supported.
4132 # When given -MP, icc 7.0 and 7.1 complain thusly:
4133 # icc: Command line warning: ignoring option '-M'; no argument required
4134 # The diagnosis changed in icc 8.0:
4135 # icc: Command line remark: option '-MP' not supported
4136 if (grep 'ignoring option' conftest.err ||
4137 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4138 am_cv_CC_dependencies_compiler_type=$depmode
4139 break
4140 fi
4141 fi
4142 done
4143
4144 cd ..
4145 rm -rf conftest.dir
4146 else
4147 am_cv_CC_dependencies_compiler_type=none
4148 fi
4149
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4152 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4153 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4154
4155 if
4156 test "x$enable_dependency_tracking" != xno \
4157 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4158 am__fastdepCC_TRUE=
4159 am__fastdepCC_FALSE='#'
4160 else
4161 am__fastdepCC_TRUE='#'
4162 am__fastdepCC_FALSE=
4163 fi
4164
4165
4166
4167 # POSIX will say in a future version that running "rm -f" with no argument
4168 # is OK; and we want to be able to make that assumption in our Makefile
4169 # recipes. So use an aggressive probe to check that the usage we want is
4170 # actually supported "in the wild" to an acceptable degree.
4171 # See automake bug#10828.
4172 # To make any issue more visible, cause the running configure to be aborted
4173 # by default if the 'rm' program in use doesn't match our expectations; the
4174 # user can still override this though.
4175 if rm -f && rm -fr && rm -rf; then : OK; else
4176 cat >&2 <<'END'
4177 Oops!
4178
4179 Your 'rm' program seems unable to run without file operands specified
4180 on the command line, even when the '-f' option is present. This is contrary
4181 to the behaviour of most rm programs out there, and not conforming with
4182 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4183
4184 Please tell bug-automake@gnu.org about your system, including the value
4185 of your $PATH and any error possibly output before this message. This
4186 can help us improve future automake versions.
4187
4188 END
4189 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4190 echo 'Configuration will proceed anyway, since you have set the' >&2
4191 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4192 echo >&2
4193 else
4194 cat >&2 <<'END'
4195 Aborting the configuration process, to ensure you take notice of the issue.
4196
4197 You can download and install GNU coreutils to get an 'rm' implementation
4198 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4199
4200 If you want to complete the configuration process using your problematic
4201 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4202 to "yes", and re-run configure.
4203
4204 END
4205 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4206 fi
4207 fi
4208
4209
4210 ac_ext=c
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215 if test -n "$ac_tool_prefix"; then
4216 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4217 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 $as_echo_n "checking for $ac_word... " >&6; }
4220 if ${ac_cv_prog_CC+:} false; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 if test -n "$CC"; then
4224 ac_cv_prog_CC="$CC" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 break 2
4236 fi
4237 done
4238 done
4239 IFS=$as_save_IFS
4240
4241 fi
4242 fi
4243 CC=$ac_cv_prog_CC
4244 if test -n "$CC"; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4246 $as_echo "$CC" >&6; }
4247 else
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4250 fi
4251
4252
4253 fi
4254 if test -z "$ac_cv_prog_CC"; then
4255 ac_ct_CC=$CC
4256 # Extract the first word of "gcc", so it can be a program name with args.
4257 set dummy gcc; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 if test -n "$ac_ct_CC"; then
4264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_ac_ct_CC="gcc"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277 done
4278 done
4279 IFS=$as_save_IFS
4280
4281 fi
4282 fi
4283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4284 if test -n "$ac_ct_CC"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4286 $as_echo "$ac_ct_CC" >&6; }
4287 else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4290 fi
4291
4292 if test "x$ac_ct_CC" = x; then
4293 CC=""
4294 else
4295 case $cross_compiling:$ac_tool_warned in
4296 yes:)
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4299 ac_tool_warned=yes ;;
4300 esac
4301 CC=$ac_ct_CC
4302 fi
4303 else
4304 CC="$ac_cv_prog_CC"
4305 fi
4306
4307 if test -z "$CC"; then
4308 if test -n "$ac_tool_prefix"; then
4309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4310 set dummy ${ac_tool_prefix}cc; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_prog_CC+:} false; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 if test -n "$CC"; then
4317 ac_cv_prog_CC="$CC" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_CC="${ac_tool_prefix}cc"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330 done
4331 done
4332 IFS=$as_save_IFS
4333
4334 fi
4335 fi
4336 CC=$ac_cv_prog_CC
4337 if test -n "$CC"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4339 $as_echo "$CC" >&6; }
4340 else
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4343 fi
4344
4345
4346 fi
4347 fi
4348 if test -z "$CC"; then
4349 # Extract the first word of "cc", so it can be a program name with args.
4350 set dummy cc; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if ${ac_cv_prog_CC+:} false; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if test -n "$CC"; then
4357 ac_cv_prog_CC="$CC" # Let the user override the test.
4358 else
4359 ac_prog_rejected=no
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4368 ac_prog_rejected=yes
4369 continue
4370 fi
4371 ac_cv_prog_CC="cc"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375 done
4376 done
4377 IFS=$as_save_IFS
4378
4379 if test $ac_prog_rejected = yes; then
4380 # We found a bogon in the path, so make sure we never use it.
4381 set dummy $ac_cv_prog_CC
4382 shift
4383 if test $# != 0; then
4384 # We chose a different compiler from the bogus one.
4385 # However, it has the same basename, so the bogon will be chosen
4386 # first if we set CC to just the basename; use the full file name.
4387 shift
4388 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4389 fi
4390 fi
4391 fi
4392 fi
4393 CC=$ac_cv_prog_CC
4394 if test -n "$CC"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4396 $as_echo "$CC" >&6; }
4397 else
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4400 fi
4401
4402
4403 fi
4404 if test -z "$CC"; then
4405 if test -n "$ac_tool_prefix"; then
4406 for ac_prog in cl.exe
4407 do
4408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if ${ac_cv_prog_CC+:} false; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 if test -n "$CC"; then
4416 ac_cv_prog_CC="$CC" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4428 fi
4429 done
4430 done
4431 IFS=$as_save_IFS
4432
4433 fi
4434 fi
4435 CC=$ac_cv_prog_CC
4436 if test -n "$CC"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4438 $as_echo "$CC" >&6; }
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4442 fi
4443
4444
4445 test -n "$CC" && break
4446 done
4447 fi
4448 if test -z "$CC"; then
4449 ac_ct_CC=$CC
4450 for ac_prog in cl.exe
4451 do
4452 # Extract the first word of "$ac_prog", so it can be a program name with args.
4453 set dummy $ac_prog; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if test -n "$ac_ct_CC"; then
4460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4469 ac_cv_prog_ac_ct_CC="$ac_prog"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4472 fi
4473 done
4474 done
4475 IFS=$as_save_IFS
4476
4477 fi
4478 fi
4479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4480 if test -n "$ac_ct_CC"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4482 $as_echo "$ac_ct_CC" >&6; }
4483 else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486 fi
4487
4488
4489 test -n "$ac_ct_CC" && break
4490 done
4491
4492 if test "x$ac_ct_CC" = x; then
4493 CC=""
4494 else
4495 case $cross_compiling:$ac_tool_warned in
4496 yes:)
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499 ac_tool_warned=yes ;;
4500 esac
4501 CC=$ac_ct_CC
4502 fi
4503 fi
4504
4505 fi
4506
4507
4508 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4510 as_fn_error $? "no acceptable C compiler found in \$PATH
4511 See \`config.log' for more details" "$LINENO" 5; }
4512
4513 # Provide some information about the compiler.
4514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4515 set X $ac_compile
4516 ac_compiler=$2
4517 for ac_option in --version -v -V -qversion; do
4518 { { ac_try="$ac_compiler $ac_option >&5"
4519 case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522 esac
4523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524 $as_echo "$ac_try_echo"; } >&5
4525 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4526 ac_status=$?
4527 if test -s conftest.err; then
4528 sed '10a\
4529 ... rest of stderr output deleted ...
4530 10q' conftest.err >conftest.er1
4531 cat conftest.er1 >&5
4532 fi
4533 rm -f conftest.er1 conftest.err
4534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535 test $ac_status = 0; }
4536 done
4537
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4539 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4540 if ${ac_cv_c_compiler_gnu+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545
4546 int
4547 main ()
4548 {
4549 #ifndef __GNUC__
4550 choke me
4551 #endif
4552
4553 ;
4554 return 0;
4555 }
4556 _ACEOF
4557 if ac_fn_c_try_compile "$LINENO"; then :
4558 ac_compiler_gnu=yes
4559 else
4560 ac_compiler_gnu=no
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4564
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4567 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4568 if test $ac_compiler_gnu = yes; then
4569 GCC=yes
4570 else
4571 GCC=
4572 fi
4573 ac_test_CFLAGS=${CFLAGS+set}
4574 ac_save_CFLAGS=$CFLAGS
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4576 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4577 if ${ac_cv_prog_cc_g+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 ac_save_c_werror_flag=$ac_c_werror_flag
4581 ac_c_werror_flag=yes
4582 ac_cv_prog_cc_g=no
4583 CFLAGS="-g"
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586
4587 int
4588 main ()
4589 {
4590
4591 ;
4592 return 0;
4593 }
4594 _ACEOF
4595 if ac_fn_c_try_compile "$LINENO"; then :
4596 ac_cv_prog_cc_g=yes
4597 else
4598 CFLAGS=""
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4601
4602 int
4603 main ()
4604 {
4605
4606 ;
4607 return 0;
4608 }
4609 _ACEOF
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611
4612 else
4613 ac_c_werror_flag=$ac_save_c_werror_flag
4614 CFLAGS="-g"
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617
4618 int
4619 main ()
4620 {
4621
4622 ;
4623 return 0;
4624 }
4625 _ACEOF
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627 ac_cv_prog_cc_g=yes
4628 fi
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 fi
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 fi
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 ac_c_werror_flag=$ac_save_c_werror_flag
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4637 $as_echo "$ac_cv_prog_cc_g" >&6; }
4638 if test "$ac_test_CFLAGS" = set; then
4639 CFLAGS=$ac_save_CFLAGS
4640 elif test $ac_cv_prog_cc_g = yes; then
4641 if test "$GCC" = yes; then
4642 CFLAGS="-g -O2"
4643 else
4644 CFLAGS="-g"
4645 fi
4646 else
4647 if test "$GCC" = yes; then
4648 CFLAGS="-O2"
4649 else
4650 CFLAGS=
4651 fi
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4654 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4655 if ${ac_cv_prog_cc_c89+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 ac_cv_prog_cc_c89=no
4659 ac_save_CC=$CC
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 #include <stdarg.h>
4663 #include <stdio.h>
4664 struct stat;
4665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4666 struct buf { int x; };
4667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4668 static char *e (p, i)
4669 char **p;
4670 int i;
4671 {
4672 return p[i];
4673 }
4674 static char *f (char * (*g) (char **, int), char **p, ...)
4675 {
4676 char *s;
4677 va_list v;
4678 va_start (v,p);
4679 s = g (p, va_arg (v,int));
4680 va_end (v);
4681 return s;
4682 }
4683
4684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4685 function prototypes and stuff, but not '\xHH' hex character constants.
4686 These don't provoke an error unfortunately, instead are silently treated
4687 as 'x'. The following induces an error, until -std is added to get
4688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4689 array size at least. It's necessary to write '\x00'==0 to get something
4690 that's true only with -std. */
4691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4692
4693 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4694 inside strings and character constants. */
4695 #define FOO(x) 'x'
4696 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4697
4698 int test (int i, double x);
4699 struct s1 {int (*f) (int a);};
4700 struct s2 {int (*f) (double a);};
4701 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4702 int argc;
4703 char **argv;
4704 int
4705 main ()
4706 {
4707 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4708 ;
4709 return 0;
4710 }
4711 _ACEOF
4712 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4713 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4714 do
4715 CC="$ac_save_CC $ac_arg"
4716 if ac_fn_c_try_compile "$LINENO"; then :
4717 ac_cv_prog_cc_c89=$ac_arg
4718 fi
4719 rm -f core conftest.err conftest.$ac_objext
4720 test "x$ac_cv_prog_cc_c89" != "xno" && break
4721 done
4722 rm -f conftest.$ac_ext
4723 CC=$ac_save_CC
4724
4725 fi
4726 # AC_CACHE_VAL
4727 case "x$ac_cv_prog_cc_c89" in
4728 x)
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4730 $as_echo "none needed" >&6; } ;;
4731 xno)
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4733 $as_echo "unsupported" >&6; } ;;
4734 *)
4735 CC="$CC $ac_cv_prog_cc_c89"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4737 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4738 esac
4739 if test "x$ac_cv_prog_cc_c89" != xno; then :
4740
4741 fi
4742
4743 ac_ext=c
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4748
4749 ac_ext=c
4750 ac_cpp='$CPP $CPPFLAGS'
4751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4755 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4756 if ${am_cv_prog_cc_c_o+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761
4762 int
4763 main ()
4764 {
4765
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 # Make sure it works both with $CC and with simple cc.
4771 # Following AC_PROG_CC_C_O, we do the test twice because some
4772 # compilers refuse to overwrite an existing .o file with -o,
4773 # though they will create one.
4774 am_cv_prog_cc_c_o=yes
4775 for am_i in 1 2; do
4776 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4777 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } \
4781 && test -f conftest2.$ac_objext; then
4782 : OK
4783 else
4784 am_cv_prog_cc_c_o=no
4785 break
4786 fi
4787 done
4788 rm -f core conftest*
4789 unset am_i
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4792 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4793 if test "$am_cv_prog_cc_c_o" != yes; then
4794 # Losing compiler, so override with the script.
4795 # FIXME: It is wrong to rewrite CC.
4796 # But if we don't then we get into trouble of one sort or another.
4797 # A longer-term fix would be to have automake use am__CC in this case,
4798 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4799 CC="$am_aux_dir/compile $CC"
4800 fi
4801 ac_ext=c
4802 ac_cpp='$CPP $CPPFLAGS'
4803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806
4807
4808 ac_ext=c
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4815 # On Suns, sometimes $CPP names a directory.
4816 if test -n "$CPP" && test -d "$CPP"; then
4817 CPP=
4818 fi
4819 if test -z "$CPP"; then
4820 if ${ac_cv_prog_CPP+:} false; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 # Double quotes because CPP needs to be expanded
4824 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4825 do
4826 ac_preproc_ok=false
4827 for ac_c_preproc_warn_flag in '' yes
4828 do
4829 # Use a header file that comes with gcc, so configuring glibc
4830 # with a fresh cross-compiler works.
4831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4832 # <limits.h> exists even on freestanding compilers.
4833 # On the NeXT, cc -E runs the code through the compiler's parser,
4834 # not just through cpp. "Syntax error" is here to catch this case.
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4837 #ifdef __STDC__
4838 # include <limits.h>
4839 #else
4840 # include <assert.h>
4841 #endif
4842 Syntax error
4843 _ACEOF
4844 if ac_fn_c_try_cpp "$LINENO"; then :
4845
4846 else
4847 # Broken: fails on valid input.
4848 continue
4849 fi
4850 rm -f conftest.err conftest.i conftest.$ac_ext
4851
4852 # OK, works on sane cases. Now check whether nonexistent headers
4853 # can be detected and how.
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4856 #include <ac_nonexistent.h>
4857 _ACEOF
4858 if ac_fn_c_try_cpp "$LINENO"; then :
4859 # Broken: success on invalid input.
4860 continue
4861 else
4862 # Passes both tests.
4863 ac_preproc_ok=:
4864 break
4865 fi
4866 rm -f conftest.err conftest.i conftest.$ac_ext
4867
4868 done
4869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4870 rm -f conftest.i conftest.err conftest.$ac_ext
4871 if $ac_preproc_ok; then :
4872 break
4873 fi
4874
4875 done
4876 ac_cv_prog_CPP=$CPP
4877
4878 fi
4879 CPP=$ac_cv_prog_CPP
4880 else
4881 ac_cv_prog_CPP=$CPP
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4884 $as_echo "$CPP" >&6; }
4885 ac_preproc_ok=false
4886 for ac_c_preproc_warn_flag in '' yes
4887 do
4888 # Use a header file that comes with gcc, so configuring glibc
4889 # with a fresh cross-compiler works.
4890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4891 # <limits.h> exists even on freestanding compilers.
4892 # On the NeXT, cc -E runs the code through the compiler's parser,
4893 # not just through cpp. "Syntax error" is here to catch this case.
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4896 #ifdef __STDC__
4897 # include <limits.h>
4898 #else
4899 # include <assert.h>
4900 #endif
4901 Syntax error
4902 _ACEOF
4903 if ac_fn_c_try_cpp "$LINENO"; then :
4904
4905 else
4906 # Broken: fails on valid input.
4907 continue
4908 fi
4909 rm -f conftest.err conftest.i conftest.$ac_ext
4910
4911 # OK, works on sane cases. Now check whether nonexistent headers
4912 # can be detected and how.
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 #include <ac_nonexistent.h>
4916 _ACEOF
4917 if ac_fn_c_try_cpp "$LINENO"; then :
4918 # Broken: success on invalid input.
4919 continue
4920 else
4921 # Passes both tests.
4922 ac_preproc_ok=:
4923 break
4924 fi
4925 rm -f conftest.err conftest.i conftest.$ac_ext
4926
4927 done
4928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4929 rm -f conftest.i conftest.err conftest.$ac_ext
4930 if $ac_preproc_ok; then :
4931
4932 else
4933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4935 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4936 See \`config.log' for more details" "$LINENO" 5; }
4937 fi
4938
4939 ac_ext=c
4940 ac_cpp='$CPP $CPPFLAGS'
4941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4944
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4947 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4948 if ${ac_cv_path_GREP+:} false; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 if test -z "$GREP"; then
4952 ac_path_GREP_found=false
4953 # Loop through the user's path and test for each of PROGNAME-LIST
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4956 do
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_prog in grep ggrep; do
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4962 as_fn_executable_p "$ac_path_GREP" || continue
4963 # Check for GNU ac_path_GREP and select it if it is found.
4964 # Check for GNU $ac_path_GREP
4965 case `"$ac_path_GREP" --version 2>&1` in
4966 *GNU*)
4967 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4968 *)
4969 ac_count=0
4970 $as_echo_n 0123456789 >"conftest.in"
4971 while :
4972 do
4973 cat "conftest.in" "conftest.in" >"conftest.tmp"
4974 mv "conftest.tmp" "conftest.in"
4975 cp "conftest.in" "conftest.nl"
4976 $as_echo 'GREP' >> "conftest.nl"
4977 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4979 as_fn_arith $ac_count + 1 && ac_count=$as_val
4980 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4981 # Best one so far, save it but keep looking for a better one
4982 ac_cv_path_GREP="$ac_path_GREP"
4983 ac_path_GREP_max=$ac_count
4984 fi
4985 # 10*(2^10) chars as input seems more than enough
4986 test $ac_count -gt 10 && break
4987 done
4988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4989 esac
4990
4991 $ac_path_GREP_found && break 3
4992 done
4993 done
4994 done
4995 IFS=$as_save_IFS
4996 if test -z "$ac_cv_path_GREP"; then
4997 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4998 fi
4999 else
5000 ac_cv_path_GREP=$GREP
5001 fi
5002
5003 fi
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5005 $as_echo "$ac_cv_path_GREP" >&6; }
5006 GREP="$ac_cv_path_GREP"
5007
5008
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5010 $as_echo_n "checking for egrep... " >&6; }
5011 if ${ac_cv_path_EGREP+:} false; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5015 then ac_cv_path_EGREP="$GREP -E"
5016 else
5017 if test -z "$EGREP"; then
5018 ac_path_EGREP_found=false
5019 # Loop through the user's path and test for each of PROGNAME-LIST
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5022 do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_prog in egrep; do
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5028 as_fn_executable_p "$ac_path_EGREP" || continue
5029 # Check for GNU ac_path_EGREP and select it if it is found.
5030 # Check for GNU $ac_path_EGREP
5031 case `"$ac_path_EGREP" --version 2>&1` in
5032 *GNU*)
5033 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5034 *)
5035 ac_count=0
5036 $as_echo_n 0123456789 >"conftest.in"
5037 while :
5038 do
5039 cat "conftest.in" "conftest.in" >"conftest.tmp"
5040 mv "conftest.tmp" "conftest.in"
5041 cp "conftest.in" "conftest.nl"
5042 $as_echo 'EGREP' >> "conftest.nl"
5043 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5045 as_fn_arith $ac_count + 1 && ac_count=$as_val
5046 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5047 # Best one so far, save it but keep looking for a better one
5048 ac_cv_path_EGREP="$ac_path_EGREP"
5049 ac_path_EGREP_max=$ac_count
5050 fi
5051 # 10*(2^10) chars as input seems more than enough
5052 test $ac_count -gt 10 && break
5053 done
5054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055 esac
5056
5057 $ac_path_EGREP_found && break 3
5058 done
5059 done
5060 done
5061 IFS=$as_save_IFS
5062 if test -z "$ac_cv_path_EGREP"; then
5063 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5064 fi
5065 else
5066 ac_cv_path_EGREP=$EGREP
5067 fi
5068
5069 fi
5070 fi
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5072 $as_echo "$ac_cv_path_EGREP" >&6; }
5073 EGREP="$ac_cv_path_EGREP"
5074
5075
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5077 $as_echo_n "checking for ANSI C header files... " >&6; }
5078 if ${ac_cv_header_stdc+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 #include <stdlib.h>
5084 #include <stdarg.h>
5085 #include <string.h>
5086 #include <float.h>
5087
5088 int
5089 main ()
5090 {
5091
5092 ;
5093 return 0;
5094 }
5095 _ACEOF
5096 if ac_fn_c_try_compile "$LINENO"; then :
5097 ac_cv_header_stdc=yes
5098 else
5099 ac_cv_header_stdc=no
5100 fi
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102
5103 if test $ac_cv_header_stdc = yes; then
5104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107 #include <string.h>
5108
5109 _ACEOF
5110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5111 $EGREP "memchr" >/dev/null 2>&1; then :
5112
5113 else
5114 ac_cv_header_stdc=no
5115 fi
5116 rm -f conftest*
5117
5118 fi
5119
5120 if test $ac_cv_header_stdc = yes; then
5121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124 #include <stdlib.h>
5125
5126 _ACEOF
5127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5128 $EGREP "free" >/dev/null 2>&1; then :
5129
5130 else
5131 ac_cv_header_stdc=no
5132 fi
5133 rm -f conftest*
5134
5135 fi
5136
5137 if test $ac_cv_header_stdc = yes; then
5138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5139 if test "$cross_compiling" = yes; then :
5140 :
5141 else
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 #include <ctype.h>
5145 #include <stdlib.h>
5146 #if ((' ' & 0x0FF) == 0x020)
5147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5149 #else
5150 # define ISLOWER(c) \
5151 (('a' <= (c) && (c) <= 'i') \
5152 || ('j' <= (c) && (c) <= 'r') \
5153 || ('s' <= (c) && (c) <= 'z'))
5154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5155 #endif
5156
5157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5158 int
5159 main ()
5160 {
5161 int i;
5162 for (i = 0; i < 256; i++)
5163 if (XOR (islower (i), ISLOWER (i))
5164 || toupper (i) != TOUPPER (i))
5165 return 2;
5166 return 0;
5167 }
5168 _ACEOF
5169 if ac_fn_c_try_run "$LINENO"; then :
5170
5171 else
5172 ac_cv_header_stdc=no
5173 fi
5174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5175 conftest.$ac_objext conftest.beam conftest.$ac_ext
5176 fi
5177
5178 fi
5179 fi
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5181 $as_echo "$ac_cv_header_stdc" >&6; }
5182 if test $ac_cv_header_stdc = yes; then
5183
5184 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5185
5186 fi
5187
5188 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5189 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5190 inttypes.h stdint.h unistd.h
5191 do :
5192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5193 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5194 "
5195 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5196 cat >>confdefs.h <<_ACEOF
5197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5198 _ACEOF
5199
5200 fi
5201
5202 done
5203
5204
5205
5206 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5207 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5208 MINIX=yes
5209 else
5210 MINIX=
5211 fi
5212
5213
5214 if test "$MINIX" = yes; then
5215
5216 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5217
5218
5219 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5220
5221
5222 $as_echo "#define _MINIX 1" >>confdefs.h
5223
5224 fi
5225
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5228 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5229 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234
5235 # define __EXTENSIONS__ 1
5236 $ac_includes_default
5237 int
5238 main ()
5239 {
5240
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 if ac_fn_c_try_compile "$LINENO"; then :
5246 ac_cv_safe_to_define___extensions__=yes
5247 else
5248 ac_cv_safe_to_define___extensions__=no
5249 fi
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 fi
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5253 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5254 test $ac_cv_safe_to_define___extensions__ = yes &&
5255 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5256
5257 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5258
5259 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5260
5261 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5262
5263 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5264
5265
5266
5267
5268
5269 case `pwd` in
5270 *\ * | *\ *)
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5272 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5273 esac
5274
5275
5276
5277 macro_version='2.2.7a'
5278 macro_revision='1.3134'
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292 ltmain="$ac_aux_dir/ltmain.sh"
5293
5294 # Backslashify metacharacters that are still active within
5295 # double-quoted strings.
5296 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5297
5298 # Same as above, but do not quote variable references.
5299 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5300
5301 # Sed substitution to delay expansion of an escaped shell variable in a
5302 # double_quote_subst'ed string.
5303 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5304
5305 # Sed substitution to delay expansion of an escaped single quote.
5306 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5307
5308 # Sed substitution to avoid accidental globbing in evaled expressions
5309 no_glob_subst='s/\*/\\\*/g'
5310
5311 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5312 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5313 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5316 $as_echo_n "checking how to print strings... " >&6; }
5317 # Test print first, because it will be a builtin if present.
5318 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5319 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5320 ECHO='print -r --'
5321 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5322 ECHO='printf %s\n'
5323 else
5324 # Use this function as a fallback that always works.
5325 func_fallback_echo ()
5326 {
5327 eval 'cat <<_LTECHO_EOF
5328 $1
5329 _LTECHO_EOF'
5330 }
5331 ECHO='func_fallback_echo'
5332 fi
5333
5334 # func_echo_all arg...
5335 # Invoke $ECHO with all args, space-separated.
5336 func_echo_all ()
5337 {
5338 $ECHO ""
5339 }
5340
5341 case "$ECHO" in
5342 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5343 $as_echo "printf" >&6; } ;;
5344 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5345 $as_echo "print -r" >&6; } ;;
5346 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5347 $as_echo "cat" >&6; } ;;
5348 esac
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5364 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5365 if ${ac_cv_path_SED+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5369 for ac_i in 1 2 3 4 5 6 7; do
5370 ac_script="$ac_script$as_nl$ac_script"
5371 done
5372 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5373 { ac_script=; unset ac_script;}
5374 if test -z "$SED"; then
5375 ac_path_SED_found=false
5376 # Loop through the user's path and test for each of PROGNAME-LIST
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_prog in sed gsed; do
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5385 as_fn_executable_p "$ac_path_SED" || continue
5386 # Check for GNU ac_path_SED and select it if it is found.
5387 # Check for GNU $ac_path_SED
5388 case `"$ac_path_SED" --version 2>&1` in
5389 *GNU*)
5390 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5391 *)
5392 ac_count=0
5393 $as_echo_n 0123456789 >"conftest.in"
5394 while :
5395 do
5396 cat "conftest.in" "conftest.in" >"conftest.tmp"
5397 mv "conftest.tmp" "conftest.in"
5398 cp "conftest.in" "conftest.nl"
5399 $as_echo '' >> "conftest.nl"
5400 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5402 as_fn_arith $ac_count + 1 && ac_count=$as_val
5403 if test $ac_count -gt ${ac_path_SED_max-0}; then
5404 # Best one so far, save it but keep looking for a better one
5405 ac_cv_path_SED="$ac_path_SED"
5406 ac_path_SED_max=$ac_count
5407 fi
5408 # 10*(2^10) chars as input seems more than enough
5409 test $ac_count -gt 10 && break
5410 done
5411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5412 esac
5413
5414 $ac_path_SED_found && break 3
5415 done
5416 done
5417 done
5418 IFS=$as_save_IFS
5419 if test -z "$ac_cv_path_SED"; then
5420 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5421 fi
5422 else
5423 ac_cv_path_SED=$SED
5424 fi
5425
5426 fi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5428 $as_echo "$ac_cv_path_SED" >&6; }
5429 SED="$ac_cv_path_SED"
5430 rm -f conftest.sed
5431
5432 test -z "$SED" && SED=sed
5433 Xsed="$SED -e 1s/^X//"
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5446 $as_echo_n "checking for fgrep... " >&6; }
5447 if ${ac_cv_path_FGREP+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5451 then ac_cv_path_FGREP="$GREP -F"
5452 else
5453 if test -z "$FGREP"; then
5454 ac_path_FGREP_found=false
5455 # Loop through the user's path and test for each of PROGNAME-LIST
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5458 do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_prog in fgrep; do
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5464 as_fn_executable_p "$ac_path_FGREP" || continue
5465 # Check for GNU ac_path_FGREP and select it if it is found.
5466 # Check for GNU $ac_path_FGREP
5467 case `"$ac_path_FGREP" --version 2>&1` in
5468 *GNU*)
5469 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5470 *)
5471 ac_count=0
5472 $as_echo_n 0123456789 >"conftest.in"
5473 while :
5474 do
5475 cat "conftest.in" "conftest.in" >"conftest.tmp"
5476 mv "conftest.tmp" "conftest.in"
5477 cp "conftest.in" "conftest.nl"
5478 $as_echo 'FGREP' >> "conftest.nl"
5479 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5480 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5481 as_fn_arith $ac_count + 1 && ac_count=$as_val
5482 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5483 # Best one so far, save it but keep looking for a better one
5484 ac_cv_path_FGREP="$ac_path_FGREP"
5485 ac_path_FGREP_max=$ac_count
5486 fi
5487 # 10*(2^10) chars as input seems more than enough
5488 test $ac_count -gt 10 && break
5489 done
5490 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5491 esac
5492
5493 $ac_path_FGREP_found && break 3
5494 done
5495 done
5496 done
5497 IFS=$as_save_IFS
5498 if test -z "$ac_cv_path_FGREP"; then
5499 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5500 fi
5501 else
5502 ac_cv_path_FGREP=$FGREP
5503 fi
5504
5505 fi
5506 fi
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5508 $as_echo "$ac_cv_path_FGREP" >&6; }
5509 FGREP="$ac_cv_path_FGREP"
5510
5511
5512 test -z "$GREP" && GREP=grep
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532 # Check whether --with-gnu-ld was given.
5533 if test "${with_gnu_ld+set}" = set; then :
5534 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5535 else
5536 with_gnu_ld=no
5537 fi
5538
5539 ac_prog=ld
5540 if test "$GCC" = yes; then
5541 # Check if gcc -print-prog-name=ld gives a path.
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5543 $as_echo_n "checking for ld used by $CC... " >&6; }
5544 case $host in
5545 *-*-mingw*)
5546 # gcc leaves a trailing carriage return which upsets mingw
5547 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5548 *)
5549 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5550 esac
5551 case $ac_prog in
5552 # Accept absolute paths.
5553 [\\/]* | ?:[\\/]*)
5554 re_direlt='/[^/][^/]*/\.\./'
5555 # Canonicalize the pathname of ld
5556 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5557 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5558 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5559 done
5560 test -z "$LD" && LD="$ac_prog"
5561 ;;
5562 "")
5563 # If it fails, then pretend we aren't using GCC.
5564 ac_prog=ld
5565 ;;
5566 *)
5567 # If it is relative, then search for the first ld in PATH.
5568 with_gnu_ld=unknown
5569 ;;
5570 esac
5571 elif test "$with_gnu_ld" = yes; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5573 $as_echo_n "checking for GNU ld... " >&6; }
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5576 $as_echo_n "checking for non-GNU ld... " >&6; }
5577 fi
5578 if ${lt_cv_path_LD+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -z "$LD"; then
5582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5583 for ac_dir in $PATH; do
5584 IFS="$lt_save_ifs"
5585 test -z "$ac_dir" && ac_dir=.
5586 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5587 lt_cv_path_LD="$ac_dir/$ac_prog"
5588 # Check to see if the program is GNU ld. I'd rather use --version,
5589 # but apparently some variants of GNU ld only accept -v.
5590 # Break only if it was the GNU/non-GNU ld that we prefer.
5591 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5592 *GNU* | *'with BFD'*)
5593 test "$with_gnu_ld" != no && break
5594 ;;
5595 *)
5596 test "$with_gnu_ld" != yes && break
5597 ;;
5598 esac
5599 fi
5600 done
5601 IFS="$lt_save_ifs"
5602 else
5603 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5604 fi
5605 fi
5606
5607 LD="$lt_cv_path_LD"
5608 if test -n "$LD"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5610 $as_echo "$LD" >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5617 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5618 if ${lt_cv_prog_gnu_ld+:} false; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5622 case `$LD -v 2>&1 </dev/null` in
5623 *GNU* | *'with BFD'*)
5624 lt_cv_prog_gnu_ld=yes
5625 ;;
5626 *)
5627 lt_cv_prog_gnu_ld=no
5628 ;;
5629 esac
5630 fi
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5632 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5633 with_gnu_ld=$lt_cv_prog_gnu_ld
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5644 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5645 if ${lt_cv_path_NM+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 if test -n "$NM"; then
5649 # Let the user override the test.
5650 lt_cv_path_NM="$NM"
5651 else
5652 lt_nm_to_check="${ac_tool_prefix}nm"
5653 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5654 lt_nm_to_check="$lt_nm_to_check nm"
5655 fi
5656 for lt_tmp_nm in $lt_nm_to_check; do
5657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5658 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5659 IFS="$lt_save_ifs"
5660 test -z "$ac_dir" && ac_dir=.
5661 tmp_nm="$ac_dir/$lt_tmp_nm"
5662 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5663 # Check to see if the nm accepts a BSD-compat flag.
5664 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5665 # nm: unknown option "B" ignored
5666 # Tru64's nm complains that /dev/null is an invalid object file
5667 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5668 */dev/null* | *'Invalid file or object type'*)
5669 lt_cv_path_NM="$tmp_nm -B"
5670 break
5671 ;;
5672 *)
5673 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5674 */dev/null*)
5675 lt_cv_path_NM="$tmp_nm -p"
5676 break
5677 ;;
5678 *)
5679 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5680 continue # so that we can try to find one that supports BSD flags
5681 ;;
5682 esac
5683 ;;
5684 esac
5685 fi
5686 done
5687 IFS="$lt_save_ifs"
5688 done
5689 : ${lt_cv_path_NM=no}
5690 fi
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5693 $as_echo "$lt_cv_path_NM" >&6; }
5694 if test "$lt_cv_path_NM" != "no"; then
5695 NM="$lt_cv_path_NM"
5696 else
5697 # Didn't find any BSD compatible name lister, look for dumpbin.
5698 if test -n "$DUMPBIN"; then :
5699 # Let the user override the test.
5700 else
5701 if test -n "$ac_tool_prefix"; then
5702 for ac_prog in dumpbin "link -dump"
5703 do
5704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_prog_DUMPBIN+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 if test -n "$DUMPBIN"; then
5712 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 2
5724 fi
5725 done
5726 done
5727 IFS=$as_save_IFS
5728
5729 fi
5730 fi
5731 DUMPBIN=$ac_cv_prog_DUMPBIN
5732 if test -n "$DUMPBIN"; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5734 $as_echo "$DUMPBIN" >&6; }
5735 else
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5738 fi
5739
5740
5741 test -n "$DUMPBIN" && break
5742 done
5743 fi
5744 if test -z "$DUMPBIN"; then
5745 ac_ct_DUMPBIN=$DUMPBIN
5746 for ac_prog in dumpbin "link -dump"
5747 do
5748 # Extract the first word of "$ac_prog", so it can be a program name with args.
5749 set dummy $ac_prog; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 if test -n "$ac_ct_DUMPBIN"; then
5756 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5760 do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5768 fi
5769 done
5770 done
5771 IFS=$as_save_IFS
5772
5773 fi
5774 fi
5775 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5776 if test -n "$ac_ct_DUMPBIN"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5778 $as_echo "$ac_ct_DUMPBIN" >&6; }
5779 else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5782 fi
5783
5784
5785 test -n "$ac_ct_DUMPBIN" && break
5786 done
5787
5788 if test "x$ac_ct_DUMPBIN" = x; then
5789 DUMPBIN=":"
5790 else
5791 case $cross_compiling:$ac_tool_warned in
5792 yes:)
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795 ac_tool_warned=yes ;;
5796 esac
5797 DUMPBIN=$ac_ct_DUMPBIN
5798 fi
5799 fi
5800
5801 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5802 *COFF*)
5803 DUMPBIN="$DUMPBIN -symbols"
5804 ;;
5805 *)
5806 DUMPBIN=:
5807 ;;
5808 esac
5809 fi
5810
5811 if test "$DUMPBIN" != ":"; then
5812 NM="$DUMPBIN"
5813 fi
5814 fi
5815 test -z "$NM" && NM=nm
5816
5817
5818
5819
5820
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5823 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5824 if ${lt_cv_nm_interface+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 lt_cv_nm_interface="BSD nm"
5828 echo "int some_variable = 0;" > conftest.$ac_ext
5829 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5830 (eval "$ac_compile" 2>conftest.err)
5831 cat conftest.err >&5
5832 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5833 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5834 cat conftest.err >&5
5835 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5836 cat conftest.out >&5
5837 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5838 lt_cv_nm_interface="MS dumpbin"
5839 fi
5840 rm -f conftest*
5841 fi
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5843 $as_echo "$lt_cv_nm_interface" >&6; }
5844
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5846 $as_echo_n "checking whether ln -s works... " >&6; }
5847 LN_S=$as_ln_s
5848 if test "$LN_S" = "ln -s"; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5850 $as_echo "yes" >&6; }
5851 else
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5853 $as_echo "no, using $LN_S" >&6; }
5854 fi
5855
5856 # find the maximum length of command line arguments
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5858 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5859 if ${lt_cv_sys_max_cmd_len+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 i=0
5863 teststring="ABCD"
5864
5865 case $build_os in
5866 msdosdjgpp*)
5867 # On DJGPP, this test can blow up pretty badly due to problems in libc
5868 # (any single argument exceeding 2000 bytes causes a buffer overrun
5869 # during glob expansion). Even if it were fixed, the result of this
5870 # check would be larger than it should be.
5871 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5872 ;;
5873
5874 gnu*)
5875 # Under GNU Hurd, this test is not required because there is
5876 # no limit to the length of command line arguments.
5877 # Libtool will interpret -1 as no limit whatsoever
5878 lt_cv_sys_max_cmd_len=-1;
5879 ;;
5880
5881 cygwin* | mingw* | cegcc*)
5882 # On Win9x/ME, this test blows up -- it succeeds, but takes
5883 # about 5 minutes as the teststring grows exponentially.
5884 # Worse, since 9x/ME are not pre-emptively multitasking,
5885 # you end up with a "frozen" computer, even though with patience
5886 # the test eventually succeeds (with a max line length of 256k).
5887 # Instead, let's just punt: use the minimum linelength reported by
5888 # all of the supported platforms: 8192 (on NT/2K/XP).
5889 lt_cv_sys_max_cmd_len=8192;
5890 ;;
5891
5892 mint*)
5893 # On MiNT this can take a long time and run out of memory.
5894 lt_cv_sys_max_cmd_len=8192;
5895 ;;
5896
5897 amigaos*)
5898 # On AmigaOS with pdksh, this test takes hours, literally.
5899 # So we just punt and use a minimum line length of 8192.
5900 lt_cv_sys_max_cmd_len=8192;
5901 ;;
5902
5903 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5904 # This has been around since 386BSD, at least. Likely further.
5905 if test -x /sbin/sysctl; then
5906 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5907 elif test -x /usr/sbin/sysctl; then
5908 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5909 else
5910 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5911 fi
5912 # And add a safety zone
5913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5915 ;;
5916
5917 interix*)
5918 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5919 lt_cv_sys_max_cmd_len=196608
5920 ;;
5921
5922 osf*)
5923 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5924 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5925 # nice to cause kernel panics so lets avoid the loop below.
5926 # First set a reasonable default.
5927 lt_cv_sys_max_cmd_len=16384
5928 #
5929 if test -x /sbin/sysconfig; then
5930 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5931 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5932 esac
5933 fi
5934 ;;
5935 sco3.2v5*)
5936 lt_cv_sys_max_cmd_len=102400
5937 ;;
5938 sysv5* | sco5v6* | sysv4.2uw2*)
5939 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5940 if test -n "$kargmax"; then
5941 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5942 else
5943 lt_cv_sys_max_cmd_len=32768
5944 fi
5945 ;;
5946 *)
5947 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5948 if test -n "$lt_cv_sys_max_cmd_len"; then
5949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5951 else
5952 # Make teststring a little bigger before we do anything with it.
5953 # a 1K string should be a reasonable start.
5954 for i in 1 2 3 4 5 6 7 8 ; do
5955 teststring=$teststring$teststring
5956 done
5957 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5958 # If test is not a shell built-in, we'll probably end up computing a
5959 # maximum length that is only half of the actual maximum length, but
5960 # we can't tell.
5961 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5962 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5963 test $i != 17 # 1/2 MB should be enough
5964 do
5965 i=`expr $i + 1`
5966 teststring=$teststring$teststring
5967 done
5968 # Only check the string length outside the loop.
5969 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5970 teststring=
5971 # Add a significant safety factor because C++ compilers can tack on
5972 # massive amounts of additional arguments before passing them to the
5973 # linker. It appears as though 1/2 is a usable value.
5974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5975 fi
5976 ;;
5977 esac
5978
5979 fi
5980
5981 if test -n $lt_cv_sys_max_cmd_len ; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5983 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5984 else
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5986 $as_echo "none" >&6; }
5987 fi
5988 max_cmd_len=$lt_cv_sys_max_cmd_len
5989
5990
5991
5992
5993
5994
5995 : ${CP="cp -f"}
5996 : ${MV="mv -f"}
5997 : ${RM="rm -f"}
5998
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6000 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6001 # Try some XSI features
6002 xsi_shell=no
6003 ( _lt_dummy="a/b/c"
6004 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6005 = c,a/b,, \
6006 && eval 'test $(( 1 + 1 )) -eq 2 \
6007 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6008 && xsi_shell=yes
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6010 $as_echo "$xsi_shell" >&6; }
6011
6012
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6014 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6015 lt_shell_append=no
6016 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6017 >/dev/null 2>&1 \
6018 && lt_shell_append=yes
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6020 $as_echo "$lt_shell_append" >&6; }
6021
6022
6023 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6024 lt_unset=unset
6025 else
6026 lt_unset=false
6027 fi
6028
6029
6030
6031
6032
6033 # test EBCDIC or ASCII
6034 case `echo X|tr X '\101'` in
6035 A) # ASCII based system
6036 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6037 lt_SP2NL='tr \040 \012'
6038 lt_NL2SP='tr \015\012 \040\040'
6039 ;;
6040 *) # EBCDIC based system
6041 lt_SP2NL='tr \100 \n'
6042 lt_NL2SP='tr \r\n \100\100'
6043 ;;
6044 esac
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6055 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6056 if ${lt_cv_ld_reload_flag+:} false; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 lt_cv_ld_reload_flag='-r'
6060 fi
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6062 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6063 reload_flag=$lt_cv_ld_reload_flag
6064 case $reload_flag in
6065 "" | " "*) ;;
6066 *) reload_flag=" $reload_flag" ;;
6067 esac
6068 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6069 case $host_os in
6070 darwin*)
6071 if test "$GCC" = yes; then
6072 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6073 else
6074 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6075 fi
6076 ;;
6077 esac
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087 if test -n "$ac_tool_prefix"; then
6088 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6089 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_prog_OBJDUMP+:} false; then :
6093 $as_echo_n "(cached) " >&6
6094 else
6095 if test -n "$OBJDUMP"; then
6096 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 OBJDUMP=$ac_cv_prog_OBJDUMP
6116 if test -n "$OBJDUMP"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6118 $as_echo "$OBJDUMP" >&6; }
6119 else
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6122 fi
6123
6124
6125 fi
6126 if test -z "$ac_cv_prog_OBJDUMP"; then
6127 ac_ct_OBJDUMP=$OBJDUMP
6128 # Extract the first word of "objdump", so it can be a program name with args.
6129 set dummy objdump; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if test -n "$ac_ct_OBJDUMP"; then
6136 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149 done
6150 done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6156 if test -n "$ac_ct_OBJDUMP"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6158 $as_echo "$ac_ct_OBJDUMP" >&6; }
6159 else
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163
6164 if test "x$ac_ct_OBJDUMP" = x; then
6165 OBJDUMP="false"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6172 esac
6173 OBJDUMP=$ac_ct_OBJDUMP
6174 fi
6175 else
6176 OBJDUMP="$ac_cv_prog_OBJDUMP"
6177 fi
6178
6179 test -z "$OBJDUMP" && OBJDUMP=objdump
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6190 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6191 if ${lt_cv_deplibs_check_method+:} false; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 lt_cv_file_magic_cmd='$MAGIC_CMD'
6195 lt_cv_file_magic_test_file=
6196 lt_cv_deplibs_check_method='unknown'
6197 # Need to set the preceding variable on all platforms that support
6198 # interlibrary dependencies.
6199 # 'none' -- dependencies not supported.
6200 # `unknown' -- same as none, but documents that we really don't know.
6201 # 'pass_all' -- all dependencies passed with no checks.
6202 # 'test_compile' -- check by making test program.
6203 # 'file_magic [[regex]]' -- check by looking for files in library path
6204 # which responds to the $file_magic_cmd with a given extended regex.
6205 # If you have `file' or equivalent on your system and you're not sure
6206 # whether `pass_all' will *always* work, you probably want this one.
6207
6208 case $host_os in
6209 aix[4-9]*)
6210 lt_cv_deplibs_check_method=pass_all
6211 ;;
6212
6213 beos*)
6214 lt_cv_deplibs_check_method=pass_all
6215 ;;
6216
6217 bsdi[45]*)
6218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6219 lt_cv_file_magic_cmd='/usr/bin/file -L'
6220 lt_cv_file_magic_test_file=/shlib/libc.so
6221 ;;
6222
6223 cygwin*)
6224 # func_win32_libid is a shell function defined in ltmain.sh
6225 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6226 lt_cv_file_magic_cmd='func_win32_libid'
6227 ;;
6228
6229 mingw* | pw32*)
6230 # Base MSYS/MinGW do not provide the 'file' command needed by
6231 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6232 # unless we find 'file', for example because we are cross-compiling.
6233 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6234 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6235 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6236 lt_cv_file_magic_cmd='func_win32_libid'
6237 else
6238 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6239 lt_cv_file_magic_cmd='$OBJDUMP -f'
6240 fi
6241 ;;
6242
6243 cegcc*)
6244 # use the weaker test based on 'objdump'. See mingw*.
6245 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6246 lt_cv_file_magic_cmd='$OBJDUMP -f'
6247 ;;
6248
6249 darwin* | rhapsody*)
6250 lt_cv_deplibs_check_method=pass_all
6251 ;;
6252
6253 freebsd* | dragonfly*)
6254 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6255 case $host_cpu in
6256 i*86 )
6257 # Not sure whether the presence of OpenBSD here was a mistake.
6258 # Let's accept both of them until this is cleared up.
6259 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6260 lt_cv_file_magic_cmd=/usr/bin/file
6261 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6262 ;;
6263 esac
6264 else
6265 lt_cv_deplibs_check_method=pass_all
6266 fi
6267 ;;
6268
6269 gnu*)
6270 lt_cv_deplibs_check_method=pass_all
6271 ;;
6272
6273 haiku*)
6274 lt_cv_deplibs_check_method=pass_all
6275 ;;
6276
6277 hpux10.20* | hpux11*)
6278 lt_cv_file_magic_cmd=/usr/bin/file
6279 case $host_cpu in
6280 ia64*)
6281 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6282 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6283 ;;
6284 hppa*64*)
6285 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]'
6286 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6287 ;;
6288 *)
6289 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6290 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6291 ;;
6292 esac
6293 ;;
6294
6295 interix[3-9]*)
6296 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6298 ;;
6299
6300 irix5* | irix6* | nonstopux*)
6301 case $LD in
6302 *-32|*"-32 ") libmagic=32-bit;;
6303 *-n32|*"-n32 ") libmagic=N32;;
6304 *-64|*"-64 ") libmagic=64-bit;;
6305 *) libmagic=never-match;;
6306 esac
6307 lt_cv_deplibs_check_method=pass_all
6308 ;;
6309
6310 # This must be Linux ELF.
6311 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6312 lt_cv_deplibs_check_method=pass_all
6313 ;;
6314
6315 netbsd*)
6316 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6318 else
6319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6320 fi
6321 ;;
6322
6323 newos6*)
6324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6325 lt_cv_file_magic_cmd=/usr/bin/file
6326 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6327 ;;
6328
6329 *nto* | *qnx*)
6330 lt_cv_deplibs_check_method=pass_all
6331 ;;
6332
6333 openbsd*)
6334 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6336 else
6337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6338 fi
6339 ;;
6340
6341 osf3* | osf4* | osf5*)
6342 lt_cv_deplibs_check_method=pass_all
6343 ;;
6344
6345 rdos*)
6346 lt_cv_deplibs_check_method=pass_all
6347 ;;
6348
6349 solaris*)
6350 lt_cv_deplibs_check_method=pass_all
6351 ;;
6352
6353 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6354 lt_cv_deplibs_check_method=pass_all
6355 ;;
6356
6357 sysv4 | sysv4.3*)
6358 case $host_vendor in
6359 motorola)
6360 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]'
6361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6362 ;;
6363 ncr)
6364 lt_cv_deplibs_check_method=pass_all
6365 ;;
6366 sequent)
6367 lt_cv_file_magic_cmd='/bin/file'
6368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6369 ;;
6370 sni)
6371 lt_cv_file_magic_cmd='/bin/file'
6372 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6373 lt_cv_file_magic_test_file=/lib/libc.so
6374 ;;
6375 siemens)
6376 lt_cv_deplibs_check_method=pass_all
6377 ;;
6378 pc)
6379 lt_cv_deplibs_check_method=pass_all
6380 ;;
6381 esac
6382 ;;
6383
6384 tpf*)
6385 lt_cv_deplibs_check_method=pass_all
6386 ;;
6387 esac
6388
6389 fi
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6391 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6392 file_magic_cmd=$lt_cv_file_magic_cmd
6393 deplibs_check_method=$lt_cv_deplibs_check_method
6394 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407 if test -n "$ac_tool_prefix"; then
6408 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6409 set dummy ${ac_tool_prefix}ar; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_prog_AR+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 if test -n "$AR"; then
6416 ac_cv_prog_AR="$AR" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6420 do
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_AR="${ac_tool_prefix}ar"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 break 2
6428 fi
6429 done
6430 done
6431 IFS=$as_save_IFS
6432
6433 fi
6434 fi
6435 AR=$ac_cv_prog_AR
6436 if test -n "$AR"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6438 $as_echo "$AR" >&6; }
6439 else
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6442 fi
6443
6444
6445 fi
6446 if test -z "$ac_cv_prog_AR"; then
6447 ac_ct_AR=$AR
6448 # Extract the first word of "ar", so it can be a program name with args.
6449 set dummy ar; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if test -n "$ac_ct_AR"; then
6456 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465 ac_cv_prog_ac_ct_AR="ar"
6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
6468 fi
6469 done
6470 done
6471 IFS=$as_save_IFS
6472
6473 fi
6474 fi
6475 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6476 if test -n "$ac_ct_AR"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6478 $as_echo "$ac_ct_AR" >&6; }
6479 else
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6482 fi
6483
6484 if test "x$ac_ct_AR" = x; then
6485 AR="false"
6486 else
6487 case $cross_compiling:$ac_tool_warned in
6488 yes:)
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6491 ac_tool_warned=yes ;;
6492 esac
6493 AR=$ac_ct_AR
6494 fi
6495 else
6496 AR="$ac_cv_prog_AR"
6497 fi
6498
6499 test -z "$AR" && AR=ar
6500 test -z "$AR_FLAGS" && AR_FLAGS=cru
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512 if test -n "$ac_tool_prefix"; then
6513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6514 set dummy ${ac_tool_prefix}strip; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_STRIP+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 if test -n "$STRIP"; then
6521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6522 else
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 for as_dir in $PATH
6525 do
6526 IFS=$as_save_IFS
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 break 2
6533 fi
6534 done
6535 done
6536 IFS=$as_save_IFS
6537
6538 fi
6539 fi
6540 STRIP=$ac_cv_prog_STRIP
6541 if test -n "$STRIP"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6543 $as_echo "$STRIP" >&6; }
6544 else
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6547 fi
6548
6549
6550 fi
6551 if test -z "$ac_cv_prog_STRIP"; then
6552 ac_ct_STRIP=$STRIP
6553 # Extract the first word of "strip", so it can be a program name with args.
6554 set dummy strip; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 if test -n "$ac_ct_STRIP"; then
6561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570 ac_cv_prog_ac_ct_STRIP="strip"
6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6573 fi
6574 done
6575 done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6581 if test -n "$ac_ct_STRIP"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6583 $as_echo "$ac_ct_STRIP" >&6; }
6584 else
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6587 fi
6588
6589 if test "x$ac_ct_STRIP" = x; then
6590 STRIP=":"
6591 else
6592 case $cross_compiling:$ac_tool_warned in
6593 yes:)
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596 ac_tool_warned=yes ;;
6597 esac
6598 STRIP=$ac_ct_STRIP
6599 fi
6600 else
6601 STRIP="$ac_cv_prog_STRIP"
6602 fi
6603
6604 test -z "$STRIP" && STRIP=:
6605
6606
6607
6608
6609
6610
6611 if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6613 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_RANLIB+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 if test -n "$RANLIB"; then
6620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 RANLIB=$ac_cv_prog_RANLIB
6640 if test -n "$RANLIB"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6642 $as_echo "$RANLIB" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647
6648
6649 fi
6650 if test -z "$ac_cv_prog_RANLIB"; then
6651 ac_ct_RANLIB=$RANLIB
6652 # Extract the first word of "ranlib", so it can be a program name with args.
6653 set dummy ranlib; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 if test -n "$ac_ct_RANLIB"; then
6660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_ac_ct_RANLIB="ranlib"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6680 if test -n "$ac_ct_RANLIB"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6682 $as_echo "$ac_ct_RANLIB" >&6; }
6683 else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688 if test "x$ac_ct_RANLIB" = x; then
6689 RANLIB=":"
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692 yes:)
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695 ac_tool_warned=yes ;;
6696 esac
6697 RANLIB=$ac_ct_RANLIB
6698 fi
6699 else
6700 RANLIB="$ac_cv_prog_RANLIB"
6701 fi
6702
6703 test -z "$RANLIB" && RANLIB=:
6704
6705
6706
6707
6708
6709
6710 # Determine commands to create old-style static archives.
6711 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6712 old_postinstall_cmds='chmod 644 $oldlib'
6713 old_postuninstall_cmds=
6714
6715 if test -n "$RANLIB"; then
6716 case $host_os in
6717 openbsd*)
6718 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6719 ;;
6720 *)
6721 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6722 ;;
6723 esac
6724 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6725 fi
6726
6727 case $host_os in
6728 darwin*)
6729 lock_old_archive_extraction=yes ;;
6730 *)
6731 lock_old_archive_extraction=no ;;
6732 esac
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772 # If no C compiler was specified, use CC.
6773 LTCC=${LTCC-"$CC"}
6774
6775 # If no C compiler flags were specified, use CFLAGS.
6776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6777
6778 # Allow CC to be a program name with arguments.
6779 compiler=$CC
6780
6781
6782 # Check for command to grab the raw symbol name followed by C symbol from nm.
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6784 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6785 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788
6789 # These are sane defaults that work on at least a few old systems.
6790 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6791
6792 # Character class describing NM global symbol codes.
6793 symcode='[BCDEGRST]'
6794
6795 # Regexp to match symbols that can be accessed directly from C.
6796 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6797
6798 # Define system-specific variables.
6799 case $host_os in
6800 aix*)
6801 symcode='[BCDT]'
6802 ;;
6803 cygwin* | mingw* | pw32* | cegcc*)
6804 symcode='[ABCDGISTW]'
6805 ;;
6806 hpux*)
6807 if test "$host_cpu" = ia64; then
6808 symcode='[ABCDEGRST]'
6809 fi
6810 ;;
6811 irix* | nonstopux*)
6812 symcode='[BCDEGRST]'
6813 ;;
6814 osf*)
6815 symcode='[BCDEGQRST]'
6816 ;;
6817 solaris*)
6818 symcode='[BDRT]'
6819 ;;
6820 sco3.2v5*)
6821 symcode='[DT]'
6822 ;;
6823 sysv4.2uw2*)
6824 symcode='[DT]'
6825 ;;
6826 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6827 symcode='[ABDT]'
6828 ;;
6829 sysv4)
6830 symcode='[DFNSTU]'
6831 ;;
6832 esac
6833
6834 # If we're using GNU nm, then use its standard symbol codes.
6835 case `$NM -V 2>&1` in
6836 *GNU* | *'with BFD'*)
6837 symcode='[ABCDGIRSTW]' ;;
6838 esac
6839
6840 # Transform an extracted symbol line into a proper C declaration.
6841 # Some systems (esp. on ia64) link data and code symbols differently,
6842 # so use this general approach.
6843 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6844
6845 # Transform an extracted symbol line into symbol name and symbol address
6846 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6847 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'"
6848
6849 # Handle CRLF in mingw tool chain
6850 opt_cr=
6851 case $build_os in
6852 mingw*)
6853 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6854 ;;
6855 esac
6856
6857 # Try without a prefix underscore, then with it.
6858 for ac_symprfx in "" "_"; do
6859
6860 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6861 symxfrm="\\1 $ac_symprfx\\2 \\2"
6862
6863 # Write the raw and C identifiers.
6864 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6865 # Fake it for dumpbin and say T for any non-static function
6866 # and D for any global variable.
6867 # Also find C++ and __fastcall symbols from MSVC++,
6868 # which start with @ or ?.
6869 lt_cv_sys_global_symbol_pipe="$AWK '"\
6870 " {last_section=section; section=\$ 3};"\
6871 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6872 " \$ 0!~/External *\|/{next};"\
6873 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6874 " {if(hide[section]) next};"\
6875 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6876 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6877 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6878 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6879 " ' prfx=^$ac_symprfx"
6880 else
6881 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6882 fi
6883
6884 # Check to see that the pipe works correctly.
6885 pipe_works=no
6886
6887 rm -f conftest*
6888 cat > conftest.$ac_ext <<_LT_EOF
6889 #ifdef __cplusplus
6890 extern "C" {
6891 #endif
6892 char nm_test_var;
6893 void nm_test_func(void);
6894 void nm_test_func(void){}
6895 #ifdef __cplusplus
6896 }
6897 #endif
6898 int main(){nm_test_var='a';nm_test_func();return(0);}
6899 _LT_EOF
6900
6901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6902 (eval $ac_compile) 2>&5
6903 ac_status=$?
6904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905 test $ac_status = 0; }; then
6906 # Now try to grab the symbols.
6907 nlist=conftest.nm
6908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6909 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6910 ac_status=$?
6911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6912 test $ac_status = 0; } && test -s "$nlist"; then
6913 # Try sorting and uniquifying the output.
6914 if sort "$nlist" | uniq > "$nlist"T; then
6915 mv -f "$nlist"T "$nlist"
6916 else
6917 rm -f "$nlist"T
6918 fi
6919
6920 # Make sure that we snagged all the symbols we need.
6921 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6922 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6923 cat <<_LT_EOF > conftest.$ac_ext
6924 #ifdef __cplusplus
6925 extern "C" {
6926 #endif
6927
6928 _LT_EOF
6929 # Now generate the symbol file.
6930 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6931
6932 cat <<_LT_EOF >> conftest.$ac_ext
6933
6934 /* The mapping between symbol names and symbols. */
6935 const struct {
6936 const char *name;
6937 void *address;
6938 }
6939 lt__PROGRAM__LTX_preloaded_symbols[] =
6940 {
6941 { "@PROGRAM@", (void *) 0 },
6942 _LT_EOF
6943 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6944 cat <<\_LT_EOF >> conftest.$ac_ext
6945 {0, (void *) 0}
6946 };
6947
6948 /* This works around a problem in FreeBSD linker */
6949 #ifdef FREEBSD_WORKAROUND
6950 static const void *lt_preloaded_setup() {
6951 return lt__PROGRAM__LTX_preloaded_symbols;
6952 }
6953 #endif
6954
6955 #ifdef __cplusplus
6956 }
6957 #endif
6958 _LT_EOF
6959 # Now try linking the two files.
6960 mv conftest.$ac_objext conftstm.$ac_objext
6961 lt_save_LIBS="$LIBS"
6962 lt_save_CFLAGS="$CFLAGS"
6963 LIBS="conftstm.$ac_objext"
6964 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6966 (eval $ac_link) 2>&5
6967 ac_status=$?
6968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6970 pipe_works=yes
6971 fi
6972 LIBS="$lt_save_LIBS"
6973 CFLAGS="$lt_save_CFLAGS"
6974 else
6975 echo "cannot find nm_test_func in $nlist" >&5
6976 fi
6977 else
6978 echo "cannot find nm_test_var in $nlist" >&5
6979 fi
6980 else
6981 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6982 fi
6983 else
6984 echo "$progname: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6986 fi
6987 rm -rf conftest* conftst*
6988
6989 # Do not use the global_symbol_pipe unless it works.
6990 if test "$pipe_works" = yes; then
6991 break
6992 else
6993 lt_cv_sys_global_symbol_pipe=
6994 fi
6995 done
6996
6997 fi
6998
6999 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7000 lt_cv_sys_global_symbol_to_cdecl=
7001 fi
7002 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7004 $as_echo "failed" >&6; }
7005 else
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7007 $as_echo "ok" >&6; }
7008 fi
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031 # Check whether --enable-libtool-lock was given.
7032 if test "${enable_libtool_lock+set}" = set; then :
7033 enableval=$enable_libtool_lock;
7034 fi
7035
7036 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7037
7038 # Some flags need to be propagated to the compiler or linker for good
7039 # libtool support.
7040 case $host in
7041 ia64-*-hpux*)
7042 # Find out which ABI we are using.
7043 echo 'int i;' > conftest.$ac_ext
7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045 (eval $ac_compile) 2>&5
7046 ac_status=$?
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; }; then
7049 case `/usr/bin/file conftest.$ac_objext` in
7050 *ELF-32*)
7051 HPUX_IA64_MODE="32"
7052 ;;
7053 *ELF-64*)
7054 HPUX_IA64_MODE="64"
7055 ;;
7056 esac
7057 fi
7058 rm -rf conftest*
7059 ;;
7060 *-*-irix6*)
7061 # Find out which ABI we are using.
7062 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7064 (eval $ac_compile) 2>&5
7065 ac_status=$?
7066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7067 test $ac_status = 0; }; then
7068 if test "$lt_cv_prog_gnu_ld" = yes; then
7069 case `/usr/bin/file conftest.$ac_objext` in
7070 *32-bit*)
7071 LD="${LD-ld} -melf32bsmip"
7072 ;;
7073 *N32*)
7074 LD="${LD-ld} -melf32bmipn32"
7075 ;;
7076 *64-bit*)
7077 LD="${LD-ld} -melf64bmip"
7078 ;;
7079 esac
7080 else
7081 case `/usr/bin/file conftest.$ac_objext` in
7082 *32-bit*)
7083 LD="${LD-ld} -32"
7084 ;;
7085 *N32*)
7086 LD="${LD-ld} -n32"
7087 ;;
7088 *64-bit*)
7089 LD="${LD-ld} -64"
7090 ;;
7091 esac
7092 fi
7093 fi
7094 rm -rf conftest*
7095 ;;
7096
7097 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7098 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7099 # Find out which ABI we are using.
7100 echo 'int i;' > conftest.$ac_ext
7101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7102 (eval $ac_compile) 2>&5
7103 ac_status=$?
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; }; then
7106 case `/usr/bin/file conftest.o` in
7107 *32-bit*)
7108 case $host in
7109 x86_64-*kfreebsd*-gnu)
7110 LD="${LD-ld} -m elf_i386_fbsd"
7111 ;;
7112 x86_64-*linux*)
7113 case `/usr/bin/file conftest.o` in
7114 *x86-64*)
7115 LD="${LD-ld} -m elf32_x86_64"
7116 ;;
7117 *)
7118 LD="${LD-ld} -m elf_i386"
7119 ;;
7120 esac
7121 ;;
7122 powerpc64le-*linux*)
7123 LD="${LD-ld} -m elf32lppclinux"
7124 ;;
7125 powerpc64-*linux*)
7126 LD="${LD-ld} -m elf32ppclinux"
7127 ;;
7128 s390x-*linux*)
7129 LD="${LD-ld} -m elf_s390"
7130 ;;
7131 sparc64-*linux*)
7132 LD="${LD-ld} -m elf32_sparc"
7133 ;;
7134 esac
7135 ;;
7136 *64-bit*)
7137 case $host in
7138 x86_64-*kfreebsd*-gnu)
7139 LD="${LD-ld} -m elf_x86_64_fbsd"
7140 ;;
7141 x86_64-*linux*)
7142 LD="${LD-ld} -m elf_x86_64"
7143 ;;
7144 powerpcle-*linux*)
7145 LD="${LD-ld} -m elf64lppc"
7146 ;;
7147 powerpc-*linux*)
7148 LD="${LD-ld} -m elf64ppc"
7149 ;;
7150 s390*-*linux*|s390*-*tpf*)
7151 LD="${LD-ld} -m elf64_s390"
7152 ;;
7153 sparc*-*linux*)
7154 LD="${LD-ld} -m elf64_sparc"
7155 ;;
7156 esac
7157 ;;
7158 esac
7159 fi
7160 rm -rf conftest*
7161 ;;
7162
7163 *-*-sco3.2v5*)
7164 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7165 SAVE_CFLAGS="$CFLAGS"
7166 CFLAGS="$CFLAGS -belf"
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7168 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7169 if ${lt_cv_cc_needs_belf+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 ac_ext=c
7173 ac_cpp='$CPP $CPPFLAGS'
7174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7177
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7180
7181 int
7182 main ()
7183 {
7184
7185 ;
7186 return 0;
7187 }
7188 _ACEOF
7189 if ac_fn_c_try_link "$LINENO"; then :
7190 lt_cv_cc_needs_belf=yes
7191 else
7192 lt_cv_cc_needs_belf=no
7193 fi
7194 rm -f core conftest.err conftest.$ac_objext \
7195 conftest$ac_exeext conftest.$ac_ext
7196 ac_ext=c
7197 ac_cpp='$CPP $CPPFLAGS'
7198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7201
7202 fi
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7204 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7205 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7206 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7207 CFLAGS="$SAVE_CFLAGS"
7208 fi
7209 ;;
7210 sparc*-*solaris*)
7211 # Find out which ABI we are using.
7212 echo 'int i;' > conftest.$ac_ext
7213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7214 (eval $ac_compile) 2>&5
7215 ac_status=$?
7216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7217 test $ac_status = 0; }; then
7218 case `/usr/bin/file conftest.o` in
7219 *64-bit*)
7220 case $lt_cv_prog_gnu_ld in
7221 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7222 *)
7223 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7224 LD="${LD-ld} -64"
7225 fi
7226 ;;
7227 esac
7228 ;;
7229 esac
7230 fi
7231 rm -rf conftest*
7232 ;;
7233 esac
7234
7235 need_locks="$enable_libtool_lock"
7236
7237
7238 case $host_os in
7239 rhapsody* | darwin*)
7240 if test -n "$ac_tool_prefix"; then
7241 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7242 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7246 $as_echo_n "(cached) " >&6
7247 else
7248 if test -n "$DSYMUTIL"; then
7249 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7250 else
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 break 2
7261 fi
7262 done
7263 done
7264 IFS=$as_save_IFS
7265
7266 fi
7267 fi
7268 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7269 if test -n "$DSYMUTIL"; then
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7271 $as_echo "$DSYMUTIL" >&6; }
7272 else
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7275 fi
7276
7277
7278 fi
7279 if test -z "$ac_cv_prog_DSYMUTIL"; then
7280 ac_ct_DSYMUTIL=$DSYMUTIL
7281 # Extract the first word of "dsymutil", so it can be a program name with args.
7282 set dummy dsymutil; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 if test -n "$ac_ct_DSYMUTIL"; then
7289 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7301 fi
7302 done
7303 done
7304 IFS=$as_save_IFS
7305
7306 fi
7307 fi
7308 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7309 if test -n "$ac_ct_DSYMUTIL"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7311 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7312 else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7315 fi
7316
7317 if test "x$ac_ct_DSYMUTIL" = x; then
7318 DSYMUTIL=":"
7319 else
7320 case $cross_compiling:$ac_tool_warned in
7321 yes:)
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7324 ac_tool_warned=yes ;;
7325 esac
7326 DSYMUTIL=$ac_ct_DSYMUTIL
7327 fi
7328 else
7329 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7330 fi
7331
7332 if test -n "$ac_tool_prefix"; then
7333 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7334 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_NMEDIT+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 if test -n "$NMEDIT"; then
7341 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7353 fi
7354 done
7355 done
7356 IFS=$as_save_IFS
7357
7358 fi
7359 fi
7360 NMEDIT=$ac_cv_prog_NMEDIT
7361 if test -n "$NMEDIT"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7363 $as_echo "$NMEDIT" >&6; }
7364 else
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7367 fi
7368
7369
7370 fi
7371 if test -z "$ac_cv_prog_NMEDIT"; then
7372 ac_ct_NMEDIT=$NMEDIT
7373 # Extract the first word of "nmedit", so it can be a program name with args.
7374 set dummy nmedit; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 if test -n "$ac_ct_NMEDIT"; then
7381 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7393 fi
7394 done
7395 done
7396 IFS=$as_save_IFS
7397
7398 fi
7399 fi
7400 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7401 if test -n "$ac_ct_NMEDIT"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7403 $as_echo "$ac_ct_NMEDIT" >&6; }
7404 else
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7407 fi
7408
7409 if test "x$ac_ct_NMEDIT" = x; then
7410 NMEDIT=":"
7411 else
7412 case $cross_compiling:$ac_tool_warned in
7413 yes:)
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7416 ac_tool_warned=yes ;;
7417 esac
7418 NMEDIT=$ac_ct_NMEDIT
7419 fi
7420 else
7421 NMEDIT="$ac_cv_prog_NMEDIT"
7422 fi
7423
7424 if test -n "$ac_tool_prefix"; then
7425 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7426 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_prog_LIPO+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 if test -n "$LIPO"; then
7433 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446 done
7447 done
7448 IFS=$as_save_IFS
7449
7450 fi
7451 fi
7452 LIPO=$ac_cv_prog_LIPO
7453 if test -n "$LIPO"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7455 $as_echo "$LIPO" >&6; }
7456 else
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7459 fi
7460
7461
7462 fi
7463 if test -z "$ac_cv_prog_LIPO"; then
7464 ac_ct_LIPO=$LIPO
7465 # Extract the first word of "lipo", so it can be a program name with args.
7466 set dummy lipo; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 if test -n "$ac_ct_LIPO"; then
7473 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_ac_ct_LIPO="lipo"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486 done
7487 done
7488 IFS=$as_save_IFS
7489
7490 fi
7491 fi
7492 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7493 if test -n "$ac_ct_LIPO"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7495 $as_echo "$ac_ct_LIPO" >&6; }
7496 else
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7499 fi
7500
7501 if test "x$ac_ct_LIPO" = x; then
7502 LIPO=":"
7503 else
7504 case $cross_compiling:$ac_tool_warned in
7505 yes:)
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508 ac_tool_warned=yes ;;
7509 esac
7510 LIPO=$ac_ct_LIPO
7511 fi
7512 else
7513 LIPO="$ac_cv_prog_LIPO"
7514 fi
7515
7516 if test -n "$ac_tool_prefix"; then
7517 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7518 set dummy ${ac_tool_prefix}otool; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if ${ac_cv_prog_OTOOL+:} false; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7524 if test -n "$OTOOL"; then
7525 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7526 else
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7529 do
7530 IFS=$as_save_IFS
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 break 2
7537 fi
7538 done
7539 done
7540 IFS=$as_save_IFS
7541
7542 fi
7543 fi
7544 OTOOL=$ac_cv_prog_OTOOL
7545 if test -n "$OTOOL"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7547 $as_echo "$OTOOL" >&6; }
7548 else
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7551 fi
7552
7553
7554 fi
7555 if test -z "$ac_cv_prog_OTOOL"; then
7556 ac_ct_OTOOL=$OTOOL
7557 # Extract the first word of "otool", so it can be a program name with args.
7558 set dummy otool; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 if test -n "$ac_ct_OTOOL"; then
7565 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7569 do
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_ac_ct_OTOOL="otool"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7577 fi
7578 done
7579 done
7580 IFS=$as_save_IFS
7581
7582 fi
7583 fi
7584 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7585 if test -n "$ac_ct_OTOOL"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7587 $as_echo "$ac_ct_OTOOL" >&6; }
7588 else
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7591 fi
7592
7593 if test "x$ac_ct_OTOOL" = x; then
7594 OTOOL=":"
7595 else
7596 case $cross_compiling:$ac_tool_warned in
7597 yes:)
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7600 ac_tool_warned=yes ;;
7601 esac
7602 OTOOL=$ac_ct_OTOOL
7603 fi
7604 else
7605 OTOOL="$ac_cv_prog_OTOOL"
7606 fi
7607
7608 if test -n "$ac_tool_prefix"; then
7609 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7610 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 $as_echo_n "checking for $ac_word... " >&6; }
7613 if ${ac_cv_prog_OTOOL64+:} false; then :
7614 $as_echo_n "(cached) " >&6
7615 else
7616 if test -n "$OTOOL64"; then
7617 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7618 else
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622 IFS=$as_save_IFS
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 break 2
7629 fi
7630 done
7631 done
7632 IFS=$as_save_IFS
7633
7634 fi
7635 fi
7636 OTOOL64=$ac_cv_prog_OTOOL64
7637 if test -n "$OTOOL64"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7639 $as_echo "$OTOOL64" >&6; }
7640 else
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7643 fi
7644
7645
7646 fi
7647 if test -z "$ac_cv_prog_OTOOL64"; then
7648 ac_ct_OTOOL64=$OTOOL64
7649 # Extract the first word of "otool64", so it can be a program name with args.
7650 set dummy otool64; ac_word=$2
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652 $as_echo_n "checking for $ac_word... " >&6; }
7653 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 if test -n "$ac_ct_OTOOL64"; then
7657 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7658 else
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7661 do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7666 ac_cv_prog_ac_ct_OTOOL64="otool64"
7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 break 2
7669 fi
7670 done
7671 done
7672 IFS=$as_save_IFS
7673
7674 fi
7675 fi
7676 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7677 if test -n "$ac_ct_OTOOL64"; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7679 $as_echo "$ac_ct_OTOOL64" >&6; }
7680 else
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7683 fi
7684
7685 if test "x$ac_ct_OTOOL64" = x; then
7686 OTOOL64=":"
7687 else
7688 case $cross_compiling:$ac_tool_warned in
7689 yes:)
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7692 ac_tool_warned=yes ;;
7693 esac
7694 OTOOL64=$ac_ct_OTOOL64
7695 fi
7696 else
7697 OTOOL64="$ac_cv_prog_OTOOL64"
7698 fi
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7727 $as_echo_n "checking for -single_module linker flag... " >&6; }
7728 if ${lt_cv_apple_cc_single_mod+:} false; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 lt_cv_apple_cc_single_mod=no
7732 if test -z "${LT_MULTI_MODULE}"; then
7733 # By default we will add the -single_module flag. You can override
7734 # by either setting the environment variable LT_MULTI_MODULE
7735 # non-empty at configure time, or by adding -multi_module to the
7736 # link flags.
7737 rm -rf libconftest.dylib*
7738 echo "int foo(void){return 1;}" > conftest.c
7739 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7740 -dynamiclib -Wl,-single_module conftest.c" >&5
7741 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7742 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7743 _lt_result=$?
7744 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7745 lt_cv_apple_cc_single_mod=yes
7746 else
7747 cat conftest.err >&5
7748 fi
7749 rm -rf libconftest.dylib*
7750 rm -f conftest.*
7751 fi
7752 fi
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7754 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7756 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7757 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 lt_cv_ld_exported_symbols_list=no
7761 save_LDFLAGS=$LDFLAGS
7762 echo "_main" > conftest.sym
7763 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7766
7767 int
7768 main ()
7769 {
7770
7771 ;
7772 return 0;
7773 }
7774 _ACEOF
7775 if ac_fn_c_try_link "$LINENO"; then :
7776 lt_cv_ld_exported_symbols_list=yes
7777 else
7778 lt_cv_ld_exported_symbols_list=no
7779 fi
7780 rm -f core conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext conftest.$ac_ext
7782 LDFLAGS="$save_LDFLAGS"
7783
7784 fi
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7786 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7788 $as_echo_n "checking for -force_load linker flag... " >&6; }
7789 if ${lt_cv_ld_force_load+:} false; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 lt_cv_ld_force_load=no
7793 cat > conftest.c << _LT_EOF
7794 int forced_loaded() { return 2;}
7795 _LT_EOF
7796 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7797 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7798 echo "$AR cru libconftest.a conftest.o" >&5
7799 $AR cru libconftest.a conftest.o 2>&5
7800 cat > conftest.c << _LT_EOF
7801 int main() { return 0;}
7802 _LT_EOF
7803 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7804 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7805 _lt_result=$?
7806 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7807 lt_cv_ld_force_load=yes
7808 else
7809 cat conftest.err >&5
7810 fi
7811 rm -f conftest.err libconftest.a conftest conftest.c
7812 rm -rf conftest.dSYM
7813
7814 fi
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7816 $as_echo "$lt_cv_ld_force_load" >&6; }
7817 case $host_os in
7818 rhapsody* | darwin1.[012])
7819 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7820 darwin1.*)
7821 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7822 darwin*) # darwin 5.x on
7823 # if running on 10.5 or later, the deployment target defaults
7824 # to the OS version, if on x86, and 10.4, the deployment
7825 # target defaults to 10.4. Don't you love it?
7826 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7827 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7828 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7829 10.[012][,.]*)
7830 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7831 10.*)
7832 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7833 esac
7834 ;;
7835 esac
7836 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7837 _lt_dar_single_mod='$single_module'
7838 fi
7839 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7840 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7841 else
7842 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7843 fi
7844 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7845 _lt_dsymutil='~$DSYMUTIL $lib || :'
7846 else
7847 _lt_dsymutil=
7848 fi
7849 ;;
7850 esac
7851
7852 for ac_header in dlfcn.h
7853 do :
7854 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7855 "
7856 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7857 cat >>confdefs.h <<_ACEOF
7858 #define HAVE_DLFCN_H 1
7859 _ACEOF
7860
7861 fi
7862
7863 done
7864
7865
7866
7867
7868
7869 # Set options
7870
7871
7872
7873 enable_dlopen=no
7874
7875
7876 enable_win32_dll=no
7877
7878
7879 # Check whether --enable-shared was given.
7880 if test "${enable_shared+set}" = set; then :
7881 enableval=$enable_shared; p=${PACKAGE-default}
7882 case $enableval in
7883 yes) enable_shared=yes ;;
7884 no) enable_shared=no ;;
7885 *)
7886 enable_shared=no
7887 # Look at the argument we got. We use all the common list separators.
7888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7889 for pkg in $enableval; do
7890 IFS="$lt_save_ifs"
7891 if test "X$pkg" = "X$p"; then
7892 enable_shared=yes
7893 fi
7894 done
7895 IFS="$lt_save_ifs"
7896 ;;
7897 esac
7898 else
7899 enable_shared=yes
7900 fi
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910 # Check whether --enable-static was given.
7911 if test "${enable_static+set}" = set; then :
7912 enableval=$enable_static; p=${PACKAGE-default}
7913 case $enableval in
7914 yes) enable_static=yes ;;
7915 no) enable_static=no ;;
7916 *)
7917 enable_static=no
7918 # Look at the argument we got. We use all the common list separators.
7919 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7920 for pkg in $enableval; do
7921 IFS="$lt_save_ifs"
7922 if test "X$pkg" = "X$p"; then
7923 enable_static=yes
7924 fi
7925 done
7926 IFS="$lt_save_ifs"
7927 ;;
7928 esac
7929 else
7930 enable_static=yes
7931 fi
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942 # Check whether --with-pic was given.
7943 if test "${with_pic+set}" = set; then :
7944 withval=$with_pic; pic_mode="$withval"
7945 else
7946 pic_mode=default
7947 fi
7948
7949
7950 test -z "$pic_mode" && pic_mode=default
7951
7952
7953
7954
7955
7956
7957
7958 # Check whether --enable-fast-install was given.
7959 if test "${enable_fast_install+set}" = set; then :
7960 enableval=$enable_fast_install; p=${PACKAGE-default}
7961 case $enableval in
7962 yes) enable_fast_install=yes ;;
7963 no) enable_fast_install=no ;;
7964 *)
7965 enable_fast_install=no
7966 # Look at the argument we got. We use all the common list separators.
7967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7968 for pkg in $enableval; do
7969 IFS="$lt_save_ifs"
7970 if test "X$pkg" = "X$p"; then
7971 enable_fast_install=yes
7972 fi
7973 done
7974 IFS="$lt_save_ifs"
7975 ;;
7976 esac
7977 else
7978 enable_fast_install=yes
7979 fi
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991 # This can be used to rebuild libtool when needed
7992 LIBTOOL_DEPS="$ltmain"
7993
7994 # Always use our own libtool.
7995 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022 test -z "$LN_S" && LN_S="ln -s"
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037 if test -n "${ZSH_VERSION+set}" ; then
8038 setopt NO_GLOB_SUBST
8039 fi
8040
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8042 $as_echo_n "checking for objdir... " >&6; }
8043 if ${lt_cv_objdir+:} false; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 rm -f .libs 2>/dev/null
8047 mkdir .libs 2>/dev/null
8048 if test -d .libs; then
8049 lt_cv_objdir=.libs
8050 else
8051 # MS-DOS does not allow filenames that begin with a dot.
8052 lt_cv_objdir=_libs
8053 fi
8054 rmdir .libs 2>/dev/null
8055 fi
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8057 $as_echo "$lt_cv_objdir" >&6; }
8058 objdir=$lt_cv_objdir
8059
8060
8061
8062
8063
8064 cat >>confdefs.h <<_ACEOF
8065 #define LT_OBJDIR "$lt_cv_objdir/"
8066 _ACEOF
8067
8068
8069
8070
8071 case $host_os in
8072 aix3*)
8073 # AIX sometimes has problems with the GCC collect2 program. For some
8074 # reason, if we set the COLLECT_NAMES environment variable, the problems
8075 # vanish in a puff of smoke.
8076 if test "X${COLLECT_NAMES+set}" != Xset; then
8077 COLLECT_NAMES=
8078 export COLLECT_NAMES
8079 fi
8080 ;;
8081 esac
8082
8083 # Global variables:
8084 ofile=libtool
8085 can_build_shared=yes
8086
8087 # All known linkers require a `.a' archive for static linking (except MSVC,
8088 # which needs '.lib').
8089 libext=a
8090
8091 with_gnu_ld="$lt_cv_prog_gnu_ld"
8092
8093 old_CC="$CC"
8094 old_CFLAGS="$CFLAGS"
8095
8096 # Set sane defaults for various variables
8097 test -z "$CC" && CC=cc
8098 test -z "$LTCC" && LTCC=$CC
8099 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8100 test -z "$LD" && LD=ld
8101 test -z "$ac_objext" && ac_objext=o
8102
8103 for cc_temp in $compiler""; do
8104 case $cc_temp in
8105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8107 \-*) ;;
8108 *) break;;
8109 esac
8110 done
8111 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8112
8113
8114 # Only perform the check for file, if the check method requires it
8115 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8116 case $deplibs_check_method in
8117 file_magic*)
8118 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8120 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8121 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 case $MAGIC_CMD in
8125 [\\/*] | ?:[\\/]*)
8126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8127 ;;
8128 *)
8129 lt_save_MAGIC_CMD="$MAGIC_CMD"
8130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8132 for ac_dir in $ac_dummy; do
8133 IFS="$lt_save_ifs"
8134 test -z "$ac_dir" && ac_dir=.
8135 if test -f $ac_dir/${ac_tool_prefix}file; then
8136 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8137 if test -n "$file_magic_test_file"; then
8138 case $deplibs_check_method in
8139 "file_magic "*)
8140 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8143 $EGREP "$file_magic_regex" > /dev/null; then
8144 :
8145 else
8146 cat <<_LT_EOF 1>&2
8147
8148 *** Warning: the command libtool uses to detect shared libraries,
8149 *** $file_magic_cmd, produces output that libtool cannot recognize.
8150 *** The result is that libtool may fail to recognize shared libraries
8151 *** as such. This will affect the creation of libtool libraries that
8152 *** depend on shared libraries, but programs linked with such libtool
8153 *** libraries will work regardless of this problem. Nevertheless, you
8154 *** may want to report the problem to your system manager and/or to
8155 *** bug-libtool@gnu.org
8156
8157 _LT_EOF
8158 fi ;;
8159 esac
8160 fi
8161 break
8162 fi
8163 done
8164 IFS="$lt_save_ifs"
8165 MAGIC_CMD="$lt_save_MAGIC_CMD"
8166 ;;
8167 esac
8168 fi
8169
8170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8171 if test -n "$MAGIC_CMD"; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8173 $as_echo "$MAGIC_CMD" >&6; }
8174 else
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176 $as_echo "no" >&6; }
8177 fi
8178
8179
8180
8181
8182
8183 if test -z "$lt_cv_path_MAGIC_CMD"; then
8184 if test -n "$ac_tool_prefix"; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8186 $as_echo_n "checking for file... " >&6; }
8187 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 case $MAGIC_CMD in
8191 [\\/*] | ?:[\\/]*)
8192 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8193 ;;
8194 *)
8195 lt_save_MAGIC_CMD="$MAGIC_CMD"
8196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8198 for ac_dir in $ac_dummy; do
8199 IFS="$lt_save_ifs"
8200 test -z "$ac_dir" && ac_dir=.
8201 if test -f $ac_dir/file; then
8202 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8203 if test -n "$file_magic_test_file"; then
8204 case $deplibs_check_method in
8205 "file_magic "*)
8206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8209 $EGREP "$file_magic_regex" > /dev/null; then
8210 :
8211 else
8212 cat <<_LT_EOF 1>&2
8213
8214 *** Warning: the command libtool uses to detect shared libraries,
8215 *** $file_magic_cmd, produces output that libtool cannot recognize.
8216 *** The result is that libtool may fail to recognize shared libraries
8217 *** as such. This will affect the creation of libtool libraries that
8218 *** depend on shared libraries, but programs linked with such libtool
8219 *** libraries will work regardless of this problem. Nevertheless, you
8220 *** may want to report the problem to your system manager and/or to
8221 *** bug-libtool@gnu.org
8222
8223 _LT_EOF
8224 fi ;;
8225 esac
8226 fi
8227 break
8228 fi
8229 done
8230 IFS="$lt_save_ifs"
8231 MAGIC_CMD="$lt_save_MAGIC_CMD"
8232 ;;
8233 esac
8234 fi
8235
8236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8237 if test -n "$MAGIC_CMD"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8239 $as_echo "$MAGIC_CMD" >&6; }
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8243 fi
8244
8245
8246 else
8247 MAGIC_CMD=:
8248 fi
8249 fi
8250
8251 fi
8252 ;;
8253 esac
8254
8255 # Use C for the default configuration in the libtool script
8256
8257 lt_save_CC="$CC"
8258 ac_ext=c
8259 ac_cpp='$CPP $CPPFLAGS'
8260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8263
8264
8265 # Source file extension for C test sources.
8266 ac_ext=c
8267
8268 # Object file extension for compiled C test sources.
8269 objext=o
8270 objext=$objext
8271
8272 # Code to be used in simple compile tests
8273 lt_simple_compile_test_code="int some_variable = 0;"
8274
8275 # Code to be used in simple link tests
8276 lt_simple_link_test_code='int main(){return(0);}'
8277
8278
8279
8280
8281
8282
8283
8284 # If no C compiler was specified, use CC.
8285 LTCC=${LTCC-"$CC"}
8286
8287 # If no C compiler flags were specified, use CFLAGS.
8288 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8289
8290 # Allow CC to be a program name with arguments.
8291 compiler=$CC
8292
8293 # Save the default compiler, since it gets overwritten when the other
8294 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8295 compiler_DEFAULT=$CC
8296
8297 # save warnings/boilerplate of simple test code
8298 ac_outfile=conftest.$ac_objext
8299 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8300 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8301 _lt_compiler_boilerplate=`cat conftest.err`
8302 $RM conftest*
8303
8304 ac_outfile=conftest.$ac_objext
8305 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8306 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8307 _lt_linker_boilerplate=`cat conftest.err`
8308 $RM -r conftest*
8309
8310
8311 ## CAVEAT EMPTOR:
8312 ## There is no encapsulation within the following macros, do not change
8313 ## the running order or otherwise move them around unless you know exactly
8314 ## what you are doing...
8315 if test -n "$compiler"; then
8316
8317 lt_prog_compiler_no_builtin_flag=
8318
8319 if test "$GCC" = yes; then
8320 case $cc_basename in
8321 nvcc*)
8322 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8323 *)
8324 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8325 esac
8326
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8328 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8329 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 lt_cv_prog_compiler_rtti_exceptions=no
8333 ac_outfile=conftest.$ac_objext
8334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8335 lt_compiler_flag="-fno-rtti -fno-exceptions"
8336 # Insert the option either (1) after the last *FLAGS variable, or
8337 # (2) before a word containing "conftest.", or (3) at the end.
8338 # Note that $ac_compile itself does not contain backslashes and begins
8339 # with a dollar sign (not a hyphen), so the echo should work correctly.
8340 # The option is referenced via a variable to avoid confusing sed.
8341 lt_compile=`echo "$ac_compile" | $SED \
8342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8344 -e 's:$: $lt_compiler_flag:'`
8345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8346 (eval "$lt_compile" 2>conftest.err)
8347 ac_status=$?
8348 cat conftest.err >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 if (exit $ac_status) && test -s "$ac_outfile"; then
8351 # The compiler can only warn and ignore the option if not recognized
8352 # So say no if there are warnings other than the usual output.
8353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8356 lt_cv_prog_compiler_rtti_exceptions=yes
8357 fi
8358 fi
8359 $RM conftest*
8360
8361 fi
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8363 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8364
8365 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8366 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8367 else
8368 :
8369 fi
8370
8371 fi
8372
8373
8374
8375
8376
8377
8378 lt_prog_compiler_wl=
8379 lt_prog_compiler_pic=
8380 lt_prog_compiler_static=
8381
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8383 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8384
8385 if test "$GCC" = yes; then
8386 lt_prog_compiler_wl='-Wl,'
8387 lt_prog_compiler_static='-static'
8388
8389 case $host_os in
8390 aix*)
8391 # All AIX code is PIC.
8392 if test "$host_cpu" = ia64; then
8393 # AIX 5 now supports IA64 processor
8394 lt_prog_compiler_static='-Bstatic'
8395 fi
8396 lt_prog_compiler_pic='-fPIC'
8397 ;;
8398
8399 amigaos*)
8400 case $host_cpu in
8401 powerpc)
8402 # see comment about AmigaOS4 .so support
8403 lt_prog_compiler_pic='-fPIC'
8404 ;;
8405 m68k)
8406 # FIXME: we need at least 68020 code to build shared libraries, but
8407 # adding the `-m68020' flag to GCC prevents building anything better,
8408 # like `-m68040'.
8409 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8410 ;;
8411 esac
8412 ;;
8413
8414 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8415 # PIC is the default for these OSes.
8416 ;;
8417
8418 mingw* | cygwin* | pw32* | os2* | cegcc*)
8419 # This hack is so that the source file can tell whether it is being
8420 # built for inclusion in a dll (and should export symbols for example).
8421 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8422 # (--disable-auto-import) libraries
8423 lt_prog_compiler_pic='-DDLL_EXPORT'
8424 ;;
8425
8426 darwin* | rhapsody*)
8427 # PIC is the default on this platform
8428 # Common symbols not allowed in MH_DYLIB files
8429 lt_prog_compiler_pic='-fno-common'
8430 ;;
8431
8432 haiku*)
8433 # PIC is the default for Haiku.
8434 # The "-static" flag exists, but is broken.
8435 lt_prog_compiler_static=
8436 ;;
8437
8438 hpux*)
8439 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8440 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8441 # sets the default TLS model and affects inlining.
8442 case $host_cpu in
8443 hppa*64*)
8444 # +Z the default
8445 ;;
8446 *)
8447 lt_prog_compiler_pic='-fPIC'
8448 ;;
8449 esac
8450 ;;
8451
8452 interix[3-9]*)
8453 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8454 # Instead, we relocate shared libraries at runtime.
8455 ;;
8456
8457 msdosdjgpp*)
8458 # Just because we use GCC doesn't mean we suddenly get shared libraries
8459 # on systems that don't support them.
8460 lt_prog_compiler_can_build_shared=no
8461 enable_shared=no
8462 ;;
8463
8464 *nto* | *qnx*)
8465 # QNX uses GNU C++, but need to define -shared option too, otherwise
8466 # it will coredump.
8467 lt_prog_compiler_pic='-fPIC -shared'
8468 ;;
8469
8470 sysv4*MP*)
8471 if test -d /usr/nec; then
8472 lt_prog_compiler_pic=-Kconform_pic
8473 fi
8474 ;;
8475
8476 *)
8477 lt_prog_compiler_pic='-fPIC'
8478 ;;
8479 esac
8480
8481 case $cc_basename in
8482 nvcc*) # Cuda Compiler Driver 2.2
8483 lt_prog_compiler_wl='-Xlinker '
8484 lt_prog_compiler_pic='-Xcompiler -fPIC'
8485 ;;
8486 esac
8487 else
8488 # PORTME Check for flag to pass linker flags through the system compiler.
8489 case $host_os in
8490 aix*)
8491 lt_prog_compiler_wl='-Wl,'
8492 if test "$host_cpu" = ia64; then
8493 # AIX 5 now supports IA64 processor
8494 lt_prog_compiler_static='-Bstatic'
8495 else
8496 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8497 fi
8498 ;;
8499
8500 mingw* | cygwin* | pw32* | os2* | cegcc*)
8501 # This hack is so that the source file can tell whether it is being
8502 # built for inclusion in a dll (and should export symbols for example).
8503 lt_prog_compiler_pic='-DDLL_EXPORT'
8504 ;;
8505
8506 hpux9* | hpux10* | hpux11*)
8507 lt_prog_compiler_wl='-Wl,'
8508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8509 # not for PA HP-UX.
8510 case $host_cpu in
8511 hppa*64*|ia64*)
8512 # +Z the default
8513 ;;
8514 *)
8515 lt_prog_compiler_pic='+Z'
8516 ;;
8517 esac
8518 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8519 lt_prog_compiler_static='${wl}-a ${wl}archive'
8520 ;;
8521
8522 irix5* | irix6* | nonstopux*)
8523 lt_prog_compiler_wl='-Wl,'
8524 # PIC (with -KPIC) is the default.
8525 lt_prog_compiler_static='-non_shared'
8526 ;;
8527
8528 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8529 case $cc_basename in
8530 # old Intel for x86_64 which still supported -KPIC.
8531 ecc*)
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_pic='-KPIC'
8534 lt_prog_compiler_static='-static'
8535 ;;
8536 # icc used to be incompatible with GCC.
8537 # ICC 10 doesn't accept -KPIC any more.
8538 icc* | ifort*)
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_pic='-fPIC'
8541 lt_prog_compiler_static='-static'
8542 ;;
8543 # Lahey Fortran 8.1.
8544 lf95*)
8545 lt_prog_compiler_wl='-Wl,'
8546 lt_prog_compiler_pic='--shared'
8547 lt_prog_compiler_static='--static'
8548 ;;
8549 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8550 # Portland Group compilers (*not* the Pentium gcc compiler,
8551 # which looks to be a dead project)
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_pic='-fpic'
8554 lt_prog_compiler_static='-Bstatic'
8555 ;;
8556 ccc*)
8557 lt_prog_compiler_wl='-Wl,'
8558 # All Alpha code is PIC.
8559 lt_prog_compiler_static='-non_shared'
8560 ;;
8561 xl* | bgxl* | bgf* | mpixl*)
8562 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_pic='-qpic'
8565 lt_prog_compiler_static='-qstaticlink'
8566 ;;
8567 *)
8568 case `$CC -V 2>&1 | sed 5q` in
8569 *Sun\ F* | *Sun*Fortran*)
8570 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8571 lt_prog_compiler_pic='-KPIC'
8572 lt_prog_compiler_static='-Bstatic'
8573 lt_prog_compiler_wl=''
8574 ;;
8575 *Sun\ C*)
8576 # Sun C 5.9
8577 lt_prog_compiler_pic='-KPIC'
8578 lt_prog_compiler_static='-Bstatic'
8579 lt_prog_compiler_wl='-Wl,'
8580 ;;
8581 esac
8582 ;;
8583 esac
8584 ;;
8585
8586 newsos6)
8587 lt_prog_compiler_pic='-KPIC'
8588 lt_prog_compiler_static='-Bstatic'
8589 ;;
8590
8591 *nto* | *qnx*)
8592 # QNX uses GNU C++, but need to define -shared option too, otherwise
8593 # it will coredump.
8594 lt_prog_compiler_pic='-fPIC -shared'
8595 ;;
8596
8597 osf3* | osf4* | osf5*)
8598 lt_prog_compiler_wl='-Wl,'
8599 # All OSF/1 code is PIC.
8600 lt_prog_compiler_static='-non_shared'
8601 ;;
8602
8603 rdos*)
8604 lt_prog_compiler_static='-non_shared'
8605 ;;
8606
8607 solaris*)
8608 lt_prog_compiler_pic='-KPIC'
8609 lt_prog_compiler_static='-Bstatic'
8610 case $cc_basename in
8611 f77* | f90* | f95*)
8612 lt_prog_compiler_wl='-Qoption ld ';;
8613 *)
8614 lt_prog_compiler_wl='-Wl,';;
8615 esac
8616 ;;
8617
8618 sunos4*)
8619 lt_prog_compiler_wl='-Qoption ld '
8620 lt_prog_compiler_pic='-PIC'
8621 lt_prog_compiler_static='-Bstatic'
8622 ;;
8623
8624 sysv4 | sysv4.2uw2* | sysv4.3*)
8625 lt_prog_compiler_wl='-Wl,'
8626 lt_prog_compiler_pic='-KPIC'
8627 lt_prog_compiler_static='-Bstatic'
8628 ;;
8629
8630 sysv4*MP*)
8631 if test -d /usr/nec ;then
8632 lt_prog_compiler_pic='-Kconform_pic'
8633 lt_prog_compiler_static='-Bstatic'
8634 fi
8635 ;;
8636
8637 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8638 lt_prog_compiler_wl='-Wl,'
8639 lt_prog_compiler_pic='-KPIC'
8640 lt_prog_compiler_static='-Bstatic'
8641 ;;
8642
8643 unicos*)
8644 lt_prog_compiler_wl='-Wl,'
8645 lt_prog_compiler_can_build_shared=no
8646 ;;
8647
8648 uts4*)
8649 lt_prog_compiler_pic='-pic'
8650 lt_prog_compiler_static='-Bstatic'
8651 ;;
8652
8653 *)
8654 lt_prog_compiler_can_build_shared=no
8655 ;;
8656 esac
8657 fi
8658
8659 case $host_os in
8660 # For platforms which do not support PIC, -DPIC is meaningless:
8661 *djgpp*)
8662 lt_prog_compiler_pic=
8663 ;;
8664 *)
8665 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8666 ;;
8667 esac
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8669 $as_echo "$lt_prog_compiler_pic" >&6; }
8670
8671
8672
8673
8674
8675
8676 #
8677 # Check to make sure the PIC flag actually works.
8678 #
8679 if test -n "$lt_prog_compiler_pic"; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8681 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8682 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 lt_cv_prog_compiler_pic_works=no
8686 ac_outfile=conftest.$ac_objext
8687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8688 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8689 # Insert the option either (1) after the last *FLAGS variable, or
8690 # (2) before a word containing "conftest.", or (3) at the end.
8691 # Note that $ac_compile itself does not contain backslashes and begins
8692 # with a dollar sign (not a hyphen), so the echo should work correctly.
8693 # The option is referenced via a variable to avoid confusing sed.
8694 lt_compile=`echo "$ac_compile" | $SED \
8695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8697 -e 's:$: $lt_compiler_flag:'`
8698 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8699 (eval "$lt_compile" 2>conftest.err)
8700 ac_status=$?
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 if (exit $ac_status) && test -s "$ac_outfile"; then
8704 # The compiler can only warn and ignore the option if not recognized
8705 # So say no if there are warnings other than the usual output.
8706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8708 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8709 lt_cv_prog_compiler_pic_works=yes
8710 fi
8711 fi
8712 $RM conftest*
8713
8714 fi
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8716 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8717
8718 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8719 case $lt_prog_compiler_pic in
8720 "" | " "*) ;;
8721 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8722 esac
8723 else
8724 lt_prog_compiler_pic=
8725 lt_prog_compiler_can_build_shared=no
8726 fi
8727
8728 fi
8729
8730
8731
8732
8733
8734
8735 #
8736 # Check to make sure the static flag actually works.
8737 #
8738 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8740 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8741 if ${lt_cv_prog_compiler_static_works+:} false; then :
8742 $as_echo_n "(cached) " >&6
8743 else
8744 lt_cv_prog_compiler_static_works=no
8745 save_LDFLAGS="$LDFLAGS"
8746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8747 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8749 # The linker can only warn and ignore the option if not recognized
8750 # So say no if there are warnings
8751 if test -s conftest.err; then
8752 # Append any errors to the config.log.
8753 cat conftest.err 1>&5
8754 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8756 if diff conftest.exp conftest.er2 >/dev/null; then
8757 lt_cv_prog_compiler_static_works=yes
8758 fi
8759 else
8760 lt_cv_prog_compiler_static_works=yes
8761 fi
8762 fi
8763 $RM -r conftest*
8764 LDFLAGS="$save_LDFLAGS"
8765
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8768 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8769
8770 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8771 :
8772 else
8773 lt_prog_compiler_static=
8774 fi
8775
8776
8777
8778
8779
8780
8781
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8783 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8784 if ${lt_cv_prog_compiler_c_o+:} false; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 lt_cv_prog_compiler_c_o=no
8788 $RM -r conftest 2>/dev/null
8789 mkdir conftest
8790 cd conftest
8791 mkdir out
8792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8793
8794 lt_compiler_flag="-o out/conftest2.$ac_objext"
8795 # Insert the option either (1) after the last *FLAGS variable, or
8796 # (2) before a word containing "conftest.", or (3) at the end.
8797 # Note that $ac_compile itself does not contain backslashes and begins
8798 # with a dollar sign (not a hyphen), so the echo should work correctly.
8799 lt_compile=`echo "$ac_compile" | $SED \
8800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8802 -e 's:$: $lt_compiler_flag:'`
8803 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8804 (eval "$lt_compile" 2>out/conftest.err)
8805 ac_status=$?
8806 cat out/conftest.err >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8809 then
8810 # The compiler can only warn and ignore the option if not recognized
8811 # So say no if there are warnings
8812 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8813 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8814 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8815 lt_cv_prog_compiler_c_o=yes
8816 fi
8817 fi
8818 chmod u+w . 2>&5
8819 $RM conftest*
8820 # SGI C++ compiler will create directory out/ii_files/ for
8821 # template instantiation
8822 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8823 $RM out/* && rmdir out
8824 cd ..
8825 $RM -r conftest
8826 $RM conftest*
8827
8828 fi
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8830 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8831
8832
8833
8834
8835
8836
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8838 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8839 if ${lt_cv_prog_compiler_c_o+:} false; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 lt_cv_prog_compiler_c_o=no
8843 $RM -r conftest 2>/dev/null
8844 mkdir conftest
8845 cd conftest
8846 mkdir out
8847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8848
8849 lt_compiler_flag="-o out/conftest2.$ac_objext"
8850 # Insert the option either (1) after the last *FLAGS variable, or
8851 # (2) before a word containing "conftest.", or (3) at the end.
8852 # Note that $ac_compile itself does not contain backslashes and begins
8853 # with a dollar sign (not a hyphen), so the echo should work correctly.
8854 lt_compile=`echo "$ac_compile" | $SED \
8855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857 -e 's:$: $lt_compiler_flag:'`
8858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8859 (eval "$lt_compile" 2>out/conftest.err)
8860 ac_status=$?
8861 cat out/conftest.err >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8864 then
8865 # The compiler can only warn and ignore the option if not recognized
8866 # So say no if there are warnings
8867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8870 lt_cv_prog_compiler_c_o=yes
8871 fi
8872 fi
8873 chmod u+w . 2>&5
8874 $RM conftest*
8875 # SGI C++ compiler will create directory out/ii_files/ for
8876 # template instantiation
8877 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8878 $RM out/* && rmdir out
8879 cd ..
8880 $RM -r conftest
8881 $RM conftest*
8882
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8885 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8886
8887
8888
8889
8890 hard_links="nottested"
8891 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8892 # do not overwrite the value of need_locks provided by the user
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8894 $as_echo_n "checking if we can lock with hard links... " >&6; }
8895 hard_links=yes
8896 $RM conftest*
8897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8898 touch conftest.a
8899 ln conftest.a conftest.b 2>&5 || hard_links=no
8900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8902 $as_echo "$hard_links" >&6; }
8903 if test "$hard_links" = no; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8905 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8906 need_locks=warn
8907 fi
8908 else
8909 need_locks=no
8910 fi
8911
8912
8913
8914
8915
8916
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8918 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8919
8920 runpath_var=
8921 allow_undefined_flag=
8922 always_export_symbols=no
8923 archive_cmds=
8924 archive_expsym_cmds=
8925 compiler_needs_object=no
8926 enable_shared_with_static_runtimes=no
8927 export_dynamic_flag_spec=
8928 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8929 hardcode_automatic=no
8930 hardcode_direct=no
8931 hardcode_direct_absolute=no
8932 hardcode_libdir_flag_spec=
8933 hardcode_libdir_flag_spec_ld=
8934 hardcode_libdir_separator=
8935 hardcode_minus_L=no
8936 hardcode_shlibpath_var=unsupported
8937 inherit_rpath=no
8938 link_all_deplibs=unknown
8939 module_cmds=
8940 module_expsym_cmds=
8941 old_archive_from_new_cmds=
8942 old_archive_from_expsyms_cmds=
8943 thread_safe_flag_spec=
8944 whole_archive_flag_spec=
8945 # include_expsyms should be a list of space-separated symbols to be *always*
8946 # included in the symbol list
8947 include_expsyms=
8948 # exclude_expsyms can be an extended regexp of symbols to exclude
8949 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8950 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8951 # as well as any symbol that contains `d'.
8952 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8953 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8954 # platforms (ab)use it in PIC code, but their linkers get confused if
8955 # the symbol is explicitly referenced. Since portable code cannot
8956 # rely on this symbol name, it's probably fine to never include it in
8957 # preloaded symbol tables.
8958 # Exclude shared library initialization/finalization symbols.
8959 extract_expsyms_cmds=
8960
8961 case $host_os in
8962 cygwin* | mingw* | pw32* | cegcc*)
8963 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8964 # When not using gcc, we currently assume that we are using
8965 # Microsoft Visual C++.
8966 if test "$GCC" != yes; then
8967 with_gnu_ld=no
8968 fi
8969 ;;
8970 interix*)
8971 # we just hope/assume this is gcc and not c89 (= MSVC++)
8972 with_gnu_ld=yes
8973 ;;
8974 openbsd*)
8975 with_gnu_ld=no
8976 ;;
8977 esac
8978
8979 ld_shlibs=yes
8980
8981 # On some targets, GNU ld is compatible enough with the native linker
8982 # that we're better off using the native interface for both.
8983 lt_use_gnu_ld_interface=no
8984 if test "$with_gnu_ld" = yes; then
8985 case $host_os in
8986 aix*)
8987 # The AIX port of GNU ld has always aspired to compatibility
8988 # with the native linker. However, as the warning in the GNU ld
8989 # block says, versions before 2.19.5* couldn't really create working
8990 # shared libraries, regardless of the interface used.
8991 case `$LD -v 2>&1` in
8992 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8993 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8994 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8995 *)
8996 lt_use_gnu_ld_interface=yes
8997 ;;
8998 esac
8999 ;;
9000 *)
9001 lt_use_gnu_ld_interface=yes
9002 ;;
9003 esac
9004 fi
9005
9006 if test "$lt_use_gnu_ld_interface" = yes; then
9007 # If archive_cmds runs LD, not CC, wlarc should be empty
9008 wlarc='${wl}'
9009
9010 # Set some defaults for GNU ld with shared library support. These
9011 # are reset later if shared libraries are not supported. Putting them
9012 # here allows them to be overridden if necessary.
9013 runpath_var=LD_RUN_PATH
9014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9015 export_dynamic_flag_spec='${wl}--export-dynamic'
9016 # ancient GNU ld didn't support --whole-archive et. al.
9017 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9018 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9019 else
9020 whole_archive_flag_spec=
9021 fi
9022 supports_anon_versioning=no
9023 case `$LD -v 2>&1` in
9024 *GNU\ gold*) supports_anon_versioning=yes ;;
9025 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9026 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9027 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9028 *\ 2.11.*) ;; # other 2.11 versions
9029 *) supports_anon_versioning=yes ;;
9030 esac
9031
9032 # See if GNU ld supports shared libraries.
9033 case $host_os in
9034 aix[3-9]*)
9035 # On AIX/PPC, the GNU linker is very broken
9036 if test "$host_cpu" != ia64; then
9037 ld_shlibs=no
9038 cat <<_LT_EOF 1>&2
9039
9040 *** Warning: the GNU linker, at least up to release 2.19, is reported
9041 *** to be unable to reliably create shared libraries on AIX.
9042 *** Therefore, libtool is disabling shared libraries support. If you
9043 *** really care for shared libraries, you may want to install binutils
9044 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9045 *** You will then need to restart the configuration process.
9046
9047 _LT_EOF
9048 fi
9049 ;;
9050
9051 amigaos*)
9052 case $host_cpu in
9053 powerpc)
9054 # see comment about AmigaOS4 .so support
9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056 archive_expsym_cmds=''
9057 ;;
9058 m68k)
9059 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)'
9060 hardcode_libdir_flag_spec='-L$libdir'
9061 hardcode_minus_L=yes
9062 ;;
9063 esac
9064 ;;
9065
9066 beos*)
9067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9068 allow_undefined_flag=unsupported
9069 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9070 # support --undefined. This deserves some investigation. FIXME
9071 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9072 else
9073 ld_shlibs=no
9074 fi
9075 ;;
9076
9077 cygwin* | mingw* | pw32* | cegcc*)
9078 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9079 # as there is no search path for DLLs.
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 export_dynamic_flag_spec='${wl}--export-all-symbols'
9082 allow_undefined_flag=unsupported
9083 always_export_symbols=no
9084 enable_shared_with_static_runtimes=yes
9085 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9086
9087 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9089 # If the export-symbols file already is a .def file (1st line
9090 # is EXPORTS), use it as is; otherwise, prepend...
9091 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9092 cp $export_symbols $output_objdir/$soname.def;
9093 else
9094 echo EXPORTS > $output_objdir/$soname.def;
9095 cat $export_symbols >> $output_objdir/$soname.def;
9096 fi~
9097 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9098 else
9099 ld_shlibs=no
9100 fi
9101 ;;
9102
9103 haiku*)
9104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9105 link_all_deplibs=yes
9106 ;;
9107
9108 interix[3-9]*)
9109 hardcode_direct=no
9110 hardcode_shlibpath_var=no
9111 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9112 export_dynamic_flag_spec='${wl}-E'
9113 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9114 # Instead, shared libraries are loaded at an image base (0x10000000 by
9115 # default) and relocated if they conflict, which is a slow very memory
9116 # consuming and fragmenting process. To avoid this, we pick a random,
9117 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9118 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9119 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9120 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'
9121 ;;
9122
9123 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9124 tmp_diet=no
9125 if test "$host_os" = linux-dietlibc; then
9126 case $cc_basename in
9127 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9128 esac
9129 fi
9130 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9131 && test "$tmp_diet" = no
9132 then
9133 tmp_addflag=' $pic_flag'
9134 tmp_sharedflag='-shared'
9135 case $cc_basename,$host_cpu in
9136 pgcc*) # Portland Group C compiler
9137 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'
9138 tmp_addflag=' $pic_flag'
9139 ;;
9140 pgf77* | pgf90* | pgf95* | pgfortran*)
9141 # Portland Group f77 and f90 compilers
9142 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'
9143 tmp_addflag=' $pic_flag -Mnomain' ;;
9144 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9145 tmp_addflag=' -i_dynamic' ;;
9146 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9147 tmp_addflag=' -i_dynamic -nofor_main' ;;
9148 ifc* | ifort*) # Intel Fortran compiler
9149 tmp_addflag=' -nofor_main' ;;
9150 lf95*) # Lahey Fortran 8.1
9151 whole_archive_flag_spec=
9152 tmp_sharedflag='--shared' ;;
9153 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9154 tmp_sharedflag='-qmkshrobj'
9155 tmp_addflag= ;;
9156 nvcc*) # Cuda Compiler Driver 2.2
9157 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'
9158 compiler_needs_object=yes
9159 ;;
9160 esac
9161 case `$CC -V 2>&1 | sed 5q` in
9162 *Sun\ C*) # Sun C 5.9
9163 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'
9164 compiler_needs_object=yes
9165 tmp_sharedflag='-G' ;;
9166 *Sun\ F*) # Sun Fortran 8.3
9167 tmp_sharedflag='-G' ;;
9168 esac
9169 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9170
9171 if test "x$supports_anon_versioning" = xyes; then
9172 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9174 echo "local: *; };" >> $output_objdir/$libname.ver~
9175 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9176 fi
9177
9178 case $cc_basename in
9179 xlf* | bgf* | bgxlf* | mpixlf*)
9180 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9181 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9182 hardcode_libdir_flag_spec=
9183 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9184 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9185 if test "x$supports_anon_versioning" = xyes; then
9186 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9187 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9188 echo "local: *; };" >> $output_objdir/$libname.ver~
9189 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9190 fi
9191 ;;
9192 esac
9193 else
9194 ld_shlibs=no
9195 fi
9196 ;;
9197
9198 netbsd*)
9199 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9200 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9201 wlarc=
9202 else
9203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9205 fi
9206 ;;
9207
9208 solaris*)
9209 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9210 ld_shlibs=no
9211 cat <<_LT_EOF 1>&2
9212
9213 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9214 *** create shared libraries on Solaris systems. Therefore, libtool
9215 *** is disabling shared libraries support. We urge you to upgrade GNU
9216 *** binutils to release 2.9.1 or newer. Another option is to modify
9217 *** your PATH or compiler configuration so that the native linker is
9218 *** used, and then restart.
9219
9220 _LT_EOF
9221 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9223 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9224 else
9225 ld_shlibs=no
9226 fi
9227 ;;
9228
9229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9230 case `$LD -v 2>&1` in
9231 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9232 ld_shlibs=no
9233 cat <<_LT_EOF 1>&2
9234
9235 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9236 *** reliably create shared libraries on SCO systems. Therefore, libtool
9237 *** is disabling shared libraries support. We urge you to upgrade GNU
9238 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9239 *** your PATH or compiler configuration so that the native linker is
9240 *** used, and then restart.
9241
9242 _LT_EOF
9243 ;;
9244 *)
9245 # For security reasons, it is highly recommended that you always
9246 # use absolute paths for naming shared libraries, and exclude the
9247 # DT_RUNPATH tag from executables and libraries. But doing so
9248 # requires that you compile everything twice, which is a pain.
9249 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9250 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9253 else
9254 ld_shlibs=no
9255 fi
9256 ;;
9257 esac
9258 ;;
9259
9260 sunos4*)
9261 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9262 wlarc=
9263 hardcode_direct=yes
9264 hardcode_shlibpath_var=no
9265 ;;
9266
9267 *)
9268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9270 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9271 else
9272 ld_shlibs=no
9273 fi
9274 ;;
9275 esac
9276
9277 if test "$ld_shlibs" = no; then
9278 runpath_var=
9279 hardcode_libdir_flag_spec=
9280 export_dynamic_flag_spec=
9281 whole_archive_flag_spec=
9282 fi
9283 else
9284 # PORTME fill in a description of your system's linker (not GNU ld)
9285 case $host_os in
9286 aix3*)
9287 allow_undefined_flag=unsupported
9288 always_export_symbols=yes
9289 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'
9290 # Note: this linker hardcodes the directories in LIBPATH if there
9291 # are no directories specified by -L.
9292 hardcode_minus_L=yes
9293 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9294 # Neither direct hardcoding nor static linking is supported with a
9295 # broken collect2.
9296 hardcode_direct=unsupported
9297 fi
9298 ;;
9299
9300 aix[4-9]*)
9301 if test "$host_cpu" = ia64; then
9302 # On IA64, the linker does run time linking by default, so we don't
9303 # have to do anything special.
9304 aix_use_runtimelinking=no
9305 exp_sym_flag='-Bexport'
9306 no_entry_flag=""
9307 else
9308 # If we're using GNU nm, then we don't want the "-C" option.
9309 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9310 # Also, AIX nm treats weak defined symbols like other global
9311 # defined symbols, whereas GNU nm marks them as "W".
9312 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9313 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'
9314 else
9315 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9316 fi
9317 aix_use_runtimelinking=no
9318
9319 # Test if we are trying to use run time linking or normal
9320 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9321 # need to do runtime linking.
9322 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9323 for ld_flag in $LDFLAGS; do
9324 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9325 aix_use_runtimelinking=yes
9326 break
9327 fi
9328 done
9329 ;;
9330 esac
9331
9332 exp_sym_flag='-bexport'
9333 no_entry_flag='-bnoentry'
9334 fi
9335
9336 # When large executables or shared objects are built, AIX ld can
9337 # have problems creating the table of contents. If linking a library
9338 # or program results in "error TOC overflow" add -mminimal-toc to
9339 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9340 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9341
9342 archive_cmds=''
9343 hardcode_direct=yes
9344 hardcode_direct_absolute=yes
9345 hardcode_libdir_separator=':'
9346 link_all_deplibs=yes
9347 file_list_spec='${wl}-f,'
9348
9349 if test "$GCC" = yes; then
9350 case $host_os in aix4.[012]|aix4.[012].*)
9351 # We only want to do this on AIX 4.2 and lower, the check
9352 # below for broken collect2 doesn't work under 4.3+
9353 collect2name=`${CC} -print-prog-name=collect2`
9354 if test -f "$collect2name" &&
9355 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9356 then
9357 # We have reworked collect2
9358 :
9359 else
9360 # We have old collect2
9361 hardcode_direct=unsupported
9362 # It fails to find uninstalled libraries when the uninstalled
9363 # path is not listed in the libpath. Setting hardcode_minus_L
9364 # to unsupported forces relinking
9365 hardcode_minus_L=yes
9366 hardcode_libdir_flag_spec='-L$libdir'
9367 hardcode_libdir_separator=
9368 fi
9369 ;;
9370 esac
9371 shared_flag='-shared'
9372 if test "$aix_use_runtimelinking" = yes; then
9373 shared_flag="$shared_flag "'${wl}-G'
9374 fi
9375 else
9376 # not using gcc
9377 if test "$host_cpu" = ia64; then
9378 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9379 # chokes on -Wl,-G. The following line is correct:
9380 shared_flag='-G'
9381 else
9382 if test "$aix_use_runtimelinking" = yes; then
9383 shared_flag='${wl}-G'
9384 else
9385 shared_flag='${wl}-bM:SRE'
9386 fi
9387 fi
9388 fi
9389
9390 export_dynamic_flag_spec='${wl}-bexpall'
9391 # It seems that -bexpall does not export symbols beginning with
9392 # underscore (_), so it is better to generate a list of symbols to export.
9393 always_export_symbols=yes
9394 if test "$aix_use_runtimelinking" = yes; then
9395 # Warning - without using the other runtime loading flags (-brtl),
9396 # -berok will link without error, but may produce a broken library.
9397 allow_undefined_flag='-berok'
9398 # Determine the default libpath from the value encoded in an
9399 # empty executable.
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402
9403 int
9404 main ()
9405 {
9406
9407 ;
9408 return 0;
9409 }
9410 _ACEOF
9411 if ac_fn_c_try_link "$LINENO"; then :
9412
9413 lt_aix_libpath_sed='
9414 /Import File Strings/,/^$/ {
9415 /^0/ {
9416 s/^0 *\(.*\)$/\1/
9417 p
9418 }
9419 }'
9420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9421 # Check for a 64-bit object if we didn't find anything.
9422 if test -z "$aix_libpath"; then
9423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9424 fi
9425 fi
9426 rm -f core conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext conftest.$ac_ext
9428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9429
9430 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9431 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"
9432 else
9433 if test "$host_cpu" = ia64; then
9434 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9435 allow_undefined_flag="-z nodefs"
9436 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"
9437 else
9438 # Determine the default libpath from the value encoded in an
9439 # empty executable.
9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441 /* end confdefs.h. */
9442
9443 int
9444 main ()
9445 {
9446
9447 ;
9448 return 0;
9449 }
9450 _ACEOF
9451 if ac_fn_c_try_link "$LINENO"; then :
9452
9453 lt_aix_libpath_sed='
9454 /Import File Strings/,/^$/ {
9455 /^0/ {
9456 s/^0 *\(.*\)$/\1/
9457 p
9458 }
9459 }'
9460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9461 # Check for a 64-bit object if we didn't find anything.
9462 if test -z "$aix_libpath"; then
9463 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9464 fi
9465 fi
9466 rm -f core conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
9468 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9469
9470 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9471 # Warning - without using the other run time loading flags,
9472 # -berok will link without error, but may produce a broken library.
9473 no_undefined_flag=' ${wl}-bernotok'
9474 allow_undefined_flag=' ${wl}-berok'
9475 if test "$with_gnu_ld" = yes; then
9476 # We only use this code for GNU lds that support --whole-archive.
9477 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9478 else
9479 # Exported symbols can be pulled into shared objects from archives
9480 whole_archive_flag_spec='$convenience'
9481 fi
9482 archive_cmds_need_lc=yes
9483 # This is similar to how AIX traditionally builds its shared libraries.
9484 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'
9485 fi
9486 fi
9487 ;;
9488
9489 amigaos*)
9490 case $host_cpu in
9491 powerpc)
9492 # see comment about AmigaOS4 .so support
9493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9494 archive_expsym_cmds=''
9495 ;;
9496 m68k)
9497 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)'
9498 hardcode_libdir_flag_spec='-L$libdir'
9499 hardcode_minus_L=yes
9500 ;;
9501 esac
9502 ;;
9503
9504 bsdi[45]*)
9505 export_dynamic_flag_spec=-rdynamic
9506 ;;
9507
9508 cygwin* | mingw* | pw32* | cegcc*)
9509 # When not using gcc, we currently assume that we are using
9510 # Microsoft Visual C++.
9511 # hardcode_libdir_flag_spec is actually meaningless, as there is
9512 # no search path for DLLs.
9513 hardcode_libdir_flag_spec=' '
9514 allow_undefined_flag=unsupported
9515 # Tell ltmain to make .lib files, not .a files.
9516 libext=lib
9517 # Tell ltmain to make .dll files, not .so files.
9518 shrext_cmds=".dll"
9519 # FIXME: Setting linknames here is a bad hack.
9520 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9521 # The linker will automatically build a .lib file if we build a DLL.
9522 old_archive_from_new_cmds='true'
9523 # FIXME: Should let the user specify the lib program.
9524 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9525 fix_srcfile_path='`cygpath -w "$srcfile"`'
9526 enable_shared_with_static_runtimes=yes
9527 ;;
9528
9529 darwin* | rhapsody*)
9530
9531
9532 archive_cmds_need_lc=no
9533 hardcode_direct=no
9534 hardcode_automatic=yes
9535 hardcode_shlibpath_var=unsupported
9536 if test "$lt_cv_ld_force_load" = "yes"; then
9537 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\"`'
9538 else
9539 whole_archive_flag_spec=''
9540 fi
9541 link_all_deplibs=yes
9542 allow_undefined_flag="$_lt_dar_allow_undefined"
9543 case $cc_basename in
9544 ifort*) _lt_dar_can_shared=yes ;;
9545 *) _lt_dar_can_shared=$GCC ;;
9546 esac
9547 if test "$_lt_dar_can_shared" = "yes"; then
9548 output_verbose_link_cmd=func_echo_all
9549 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9550 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9551 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}"
9552 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}"
9553
9554 else
9555 ld_shlibs=no
9556 fi
9557
9558 ;;
9559
9560 dgux*)
9561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_libdir_flag_spec='-L$libdir'
9563 hardcode_shlibpath_var=no
9564 ;;
9565
9566 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9567 # support. Future versions do this automatically, but an explicit c++rt0.o
9568 # does not break anything, and helps significantly (at the cost of a little
9569 # extra space).
9570 freebsd2.2*)
9571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9572 hardcode_libdir_flag_spec='-R$libdir'
9573 hardcode_direct=yes
9574 hardcode_shlibpath_var=no
9575 ;;
9576
9577 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9578 freebsd2.*)
9579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_direct=yes
9581 hardcode_minus_L=yes
9582 hardcode_shlibpath_var=no
9583 ;;
9584
9585 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9586 freebsd* | dragonfly*)
9587 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9588 hardcode_libdir_flag_spec='-R$libdir'
9589 hardcode_direct=yes
9590 hardcode_shlibpath_var=no
9591 ;;
9592
9593 hpux9*)
9594 if test "$GCC" = yes; then
9595 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'
9596 else
9597 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'
9598 fi
9599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9600 hardcode_libdir_separator=:
9601 hardcode_direct=yes
9602
9603 # hardcode_minus_L: Not really in the search PATH,
9604 # but as the default location of the library.
9605 hardcode_minus_L=yes
9606 export_dynamic_flag_spec='${wl}-E'
9607 ;;
9608
9609 hpux10*)
9610 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9611 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9612 else
9613 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9614 fi
9615 if test "$with_gnu_ld" = no; then
9616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9617 hardcode_libdir_flag_spec_ld='+b $libdir'
9618 hardcode_libdir_separator=:
9619 hardcode_direct=yes
9620 hardcode_direct_absolute=yes
9621 export_dynamic_flag_spec='${wl}-E'
9622 # hardcode_minus_L: Not really in the search PATH,
9623 # but as the default location of the library.
9624 hardcode_minus_L=yes
9625 fi
9626 ;;
9627
9628 hpux11*)
9629 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9630 case $host_cpu in
9631 hppa*64*)
9632 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9633 ;;
9634 ia64*)
9635 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9636 ;;
9637 *)
9638 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9639 ;;
9640 esac
9641 else
9642 case $host_cpu in
9643 hppa*64*)
9644 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9645 ;;
9646 ia64*)
9647 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9648 ;;
9649 *)
9650
9651 # Older versions of the 11.00 compiler do not understand -b yet
9652 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9654 $as_echo_n "checking if $CC understands -b... " >&6; }
9655 if ${lt_cv_prog_compiler__b+:} false; then :
9656 $as_echo_n "(cached) " >&6
9657 else
9658 lt_cv_prog_compiler__b=no
9659 save_LDFLAGS="$LDFLAGS"
9660 LDFLAGS="$LDFLAGS -b"
9661 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9663 # The linker can only warn and ignore the option if not recognized
9664 # So say no if there are warnings
9665 if test -s conftest.err; then
9666 # Append any errors to the config.log.
9667 cat conftest.err 1>&5
9668 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9670 if diff conftest.exp conftest.er2 >/dev/null; then
9671 lt_cv_prog_compiler__b=yes
9672 fi
9673 else
9674 lt_cv_prog_compiler__b=yes
9675 fi
9676 fi
9677 $RM -r conftest*
9678 LDFLAGS="$save_LDFLAGS"
9679
9680 fi
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9682 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9683
9684 if test x"$lt_cv_prog_compiler__b" = xyes; then
9685 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9686 else
9687 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9688 fi
9689
9690 ;;
9691 esac
9692 fi
9693 if test "$with_gnu_ld" = no; then
9694 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9695 hardcode_libdir_separator=:
9696
9697 case $host_cpu in
9698 hppa*64*|ia64*)
9699 hardcode_direct=no
9700 hardcode_shlibpath_var=no
9701 ;;
9702 *)
9703 hardcode_direct=yes
9704 hardcode_direct_absolute=yes
9705 export_dynamic_flag_spec='${wl}-E'
9706
9707 # hardcode_minus_L: Not really in the search PATH,
9708 # but as the default location of the library.
9709 hardcode_minus_L=yes
9710 ;;
9711 esac
9712 fi
9713 ;;
9714
9715 irix5* | irix6* | nonstopux*)
9716 if test "$GCC" = yes; then
9717 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'
9718 # Try to use the -exported_symbol ld option, if it does not
9719 # work, assume that -exports_file does not work either and
9720 # implicitly export all symbols.
9721 save_LDFLAGS="$LDFLAGS"
9722 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9725 int foo(void) {}
9726 _ACEOF
9727 if ac_fn_c_try_link "$LINENO"; then :
9728 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'
9729
9730 fi
9731 rm -f core conftest.err conftest.$ac_objext \
9732 conftest$ac_exeext conftest.$ac_ext
9733 LDFLAGS="$save_LDFLAGS"
9734 else
9735 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'
9736 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'
9737 fi
9738 archive_cmds_need_lc='no'
9739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9740 hardcode_libdir_separator=:
9741 inherit_rpath=yes
9742 link_all_deplibs=yes
9743 ;;
9744
9745 netbsd*)
9746 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9748 else
9749 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9750 fi
9751 hardcode_libdir_flag_spec='-R$libdir'
9752 hardcode_direct=yes
9753 hardcode_shlibpath_var=no
9754 ;;
9755
9756 newsos6)
9757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9758 hardcode_direct=yes
9759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9760 hardcode_libdir_separator=:
9761 hardcode_shlibpath_var=no
9762 ;;
9763
9764 *nto* | *qnx*)
9765 ;;
9766
9767 openbsd*)
9768 if test -f /usr/libexec/ld.so; then
9769 hardcode_direct=yes
9770 hardcode_shlibpath_var=no
9771 hardcode_direct_absolute=yes
9772 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9774 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9776 export_dynamic_flag_spec='${wl}-E'
9777 else
9778 case $host_os in
9779 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_libdir_flag_spec='-R$libdir'
9782 ;;
9783 *)
9784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9786 ;;
9787 esac
9788 fi
9789 else
9790 ld_shlibs=no
9791 fi
9792 ;;
9793
9794 os2*)
9795 hardcode_libdir_flag_spec='-L$libdir'
9796 hardcode_minus_L=yes
9797 allow_undefined_flag=unsupported
9798 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'
9799 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9800 ;;
9801
9802 osf3*)
9803 if test "$GCC" = yes; then
9804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9805 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'
9806 else
9807 allow_undefined_flag=' -expect_unresolved \*'
9808 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'
9809 fi
9810 archive_cmds_need_lc='no'
9811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9812 hardcode_libdir_separator=:
9813 ;;
9814
9815 osf4* | osf5*) # as osf3* with the addition of -msym flag
9816 if test "$GCC" = yes; then
9817 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9818 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'
9819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9820 else
9821 allow_undefined_flag=' -expect_unresolved \*'
9822 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'
9823 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~
9824 $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'
9825
9826 # Both c and cxx compiler support -rpath directly
9827 hardcode_libdir_flag_spec='-rpath $libdir'
9828 fi
9829 archive_cmds_need_lc='no'
9830 hardcode_libdir_separator=:
9831 ;;
9832
9833 solaris*)
9834 no_undefined_flag=' -z defs'
9835 if test "$GCC" = yes; then
9836 wlarc='${wl}'
9837 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9839 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9840 else
9841 case `$CC -V 2>&1` in
9842 *"Compilers 5.0"*)
9843 wlarc=''
9844 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9846 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9847 ;;
9848 *)
9849 wlarc='${wl}'
9850 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9851 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9852 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9853 ;;
9854 esac
9855 fi
9856 hardcode_libdir_flag_spec='-R$libdir'
9857 hardcode_shlibpath_var=no
9858 case $host_os in
9859 solaris2.[0-5] | solaris2.[0-5].*) ;;
9860 *)
9861 # The compiler driver will combine and reorder linker options,
9862 # but understands `-z linker_flag'. GCC discards it without `$wl',
9863 # but is careful enough not to reorder.
9864 # Supported since Solaris 2.6 (maybe 2.5.1?)
9865 if test "$GCC" = yes; then
9866 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9867 else
9868 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9869 fi
9870 ;;
9871 esac
9872 link_all_deplibs=yes
9873 ;;
9874
9875 sunos4*)
9876 if test "x$host_vendor" = xsequent; then
9877 # Use $CC to link under sequent, because it throws in some extra .o
9878 # files that make .init and .fini sections work.
9879 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9880 else
9881 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9882 fi
9883 hardcode_libdir_flag_spec='-L$libdir'
9884 hardcode_direct=yes
9885 hardcode_minus_L=yes
9886 hardcode_shlibpath_var=no
9887 ;;
9888
9889 sysv4)
9890 case $host_vendor in
9891 sni)
9892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9893 hardcode_direct=yes # is this really true???
9894 ;;
9895 siemens)
9896 ## LD is ld it makes a PLAMLIB
9897 ## CC just makes a GrossModule.
9898 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9899 reload_cmds='$CC -r -o $output$reload_objs'
9900 hardcode_direct=no
9901 ;;
9902 motorola)
9903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9905 ;;
9906 esac
9907 runpath_var='LD_RUN_PATH'
9908 hardcode_shlibpath_var=no
9909 ;;
9910
9911 sysv4.3*)
9912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9913 hardcode_shlibpath_var=no
9914 export_dynamic_flag_spec='-Bexport'
9915 ;;
9916
9917 sysv4*MP*)
9918 if test -d /usr/nec; then
9919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9920 hardcode_shlibpath_var=no
9921 runpath_var=LD_RUN_PATH
9922 hardcode_runpath_var=yes
9923 ld_shlibs=yes
9924 fi
9925 ;;
9926
9927 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9928 no_undefined_flag='${wl}-z,text'
9929 archive_cmds_need_lc=no
9930 hardcode_shlibpath_var=no
9931 runpath_var='LD_RUN_PATH'
9932
9933 if test "$GCC" = yes; then
9934 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9936 else
9937 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9939 fi
9940 ;;
9941
9942 sysv5* | sco3.2v5* | sco5v6*)
9943 # Note: We can NOT use -z defs as we might desire, because we do not
9944 # link with -lc, and that would cause any symbols used from libc to
9945 # always be unresolved, which means just about no library would
9946 # ever link correctly. If we're not using GNU ld we use -z text
9947 # though, which does catch some bad symbols but isn't as heavy-handed
9948 # as -z defs.
9949 no_undefined_flag='${wl}-z,text'
9950 allow_undefined_flag='${wl}-z,nodefs'
9951 archive_cmds_need_lc=no
9952 hardcode_shlibpath_var=no
9953 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9954 hardcode_libdir_separator=':'
9955 link_all_deplibs=yes
9956 export_dynamic_flag_spec='${wl}-Bexport'
9957 runpath_var='LD_RUN_PATH'
9958
9959 if test "$GCC" = yes; then
9960 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9961 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9962 else
9963 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9964 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9965 fi
9966 ;;
9967
9968 uts4*)
9969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970 hardcode_libdir_flag_spec='-L$libdir'
9971 hardcode_shlibpath_var=no
9972 ;;
9973
9974 *)
9975 ld_shlibs=no
9976 ;;
9977 esac
9978
9979 if test x$host_vendor = xsni; then
9980 case $host in
9981 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9982 export_dynamic_flag_spec='${wl}-Blargedynsym'
9983 ;;
9984 esac
9985 fi
9986 fi
9987
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9989 $as_echo "$ld_shlibs" >&6; }
9990 test "$ld_shlibs" = no && can_build_shared=no
9991
9992 with_gnu_ld=$with_gnu_ld
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008 #
10009 # Do we need to explicitly link libc?
10010 #
10011 case "x$archive_cmds_need_lc" in
10012 x|xyes)
10013 # Assume -lc should be added
10014 archive_cmds_need_lc=yes
10015
10016 if test "$enable_shared" = yes && test "$GCC" = yes; then
10017 case $archive_cmds in
10018 *'~'*)
10019 # FIXME: we may have to deal with multi-command sequences.
10020 ;;
10021 '$CC '*)
10022 # Test whether the compiler implicitly links with -lc since on some
10023 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10024 # to ld, don't add -lc before -lgcc.
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10026 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10027 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 $RM conftest*
10031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10032
10033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10034 (eval $ac_compile) 2>&5
10035 ac_status=$?
10036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10037 test $ac_status = 0; } 2>conftest.err; then
10038 soname=conftest
10039 lib=conftest
10040 libobjs=conftest.$ac_objext
10041 deplibs=
10042 wl=$lt_prog_compiler_wl
10043 pic_flag=$lt_prog_compiler_pic
10044 compiler_flags=-v
10045 linker_flags=-v
10046 verstring=
10047 output_objdir=.
10048 libname=conftest
10049 lt_save_allow_undefined_flag=$allow_undefined_flag
10050 allow_undefined_flag=
10051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10052 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10053 ac_status=$?
10054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10055 test $ac_status = 0; }
10056 then
10057 lt_cv_archive_cmds_need_lc=no
10058 else
10059 lt_cv_archive_cmds_need_lc=yes
10060 fi
10061 allow_undefined_flag=$lt_save_allow_undefined_flag
10062 else
10063 cat conftest.err 1>&5
10064 fi
10065 $RM conftest*
10066
10067 fi
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10069 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10070 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10071 ;;
10072 esac
10073 fi
10074 ;;
10075 esac
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10234 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10235
10236 if test "$GCC" = yes; then
10237 case $host_os in
10238 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10239 *) lt_awk_arg="/^libraries:/" ;;
10240 esac
10241 case $host_os in
10242 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10243 *) lt_sed_strip_eq="s,=/,/,g" ;;
10244 esac
10245 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10246 case $lt_search_path_spec in
10247 *\;*)
10248 # if the path contains ";" then we assume it to be the separator
10249 # otherwise default to the standard path separator (i.e. ":") - it is
10250 # assumed that no part of a normal pathname contains ";" but that should
10251 # okay in the real world where ";" in dirpaths is itself problematic.
10252 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10253 ;;
10254 *)
10255 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10256 ;;
10257 esac
10258 # Ok, now we have the path, separated by spaces, we can step through it
10259 # and add multilib dir if necessary.
10260 lt_tmp_lt_search_path_spec=
10261 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10262 for lt_sys_path in $lt_search_path_spec; do
10263 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10264 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10265 else
10266 test -d "$lt_sys_path" && \
10267 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10268 fi
10269 done
10270 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10271 BEGIN {RS=" "; FS="/|\n";} {
10272 lt_foo="";
10273 lt_count=0;
10274 for (lt_i = NF; lt_i > 0; lt_i--) {
10275 if ($lt_i != "" && $lt_i != ".") {
10276 if ($lt_i == "..") {
10277 lt_count++;
10278 } else {
10279 if (lt_count == 0) {
10280 lt_foo="/" $lt_i lt_foo;
10281 } else {
10282 lt_count--;
10283 }
10284 }
10285 }
10286 }
10287 if (lt_foo != "") { lt_freq[lt_foo]++; }
10288 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10289 }'`
10290 # AWK program above erroneously prepends '/' to C:/dos/paths
10291 # for these hosts.
10292 case $host_os in
10293 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10294 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10295 esac
10296 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10297 else
10298 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10299 fi
10300 library_names_spec=
10301 libname_spec='lib$name'
10302 soname_spec=
10303 shrext_cmds=".so"
10304 postinstall_cmds=
10305 postuninstall_cmds=
10306 finish_cmds=
10307 finish_eval=
10308 shlibpath_var=
10309 shlibpath_overrides_runpath=unknown
10310 version_type=none
10311 dynamic_linker="$host_os ld.so"
10312 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10313 need_lib_prefix=unknown
10314 hardcode_into_libs=no
10315
10316 # when you set need_version to no, make sure it does not cause -set_version
10317 # flags to be left without arguments
10318 need_version=unknown
10319
10320 case $host_os in
10321 aix3*)
10322 version_type=linux
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10324 shlibpath_var=LIBPATH
10325
10326 # AIX 3 has no versioning support, so we append a major version to the name.
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 ;;
10329
10330 aix[4-9]*)
10331 version_type=linux
10332 need_lib_prefix=no
10333 need_version=no
10334 hardcode_into_libs=yes
10335 if test "$host_cpu" = ia64; then
10336 # AIX 5 supports IA64
10337 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 else
10340 # With GCC up to 2.95.x, collect2 would create an import file
10341 # for dependence libraries. The import file would start with
10342 # the line `#! .'. This would cause the generated library to
10343 # depend on `.', always an invalid library. This was fixed in
10344 # development snapshots of GCC prior to 3.0.
10345 case $host_os in
10346 aix4 | aix4.[01] | aix4.[01].*)
10347 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10348 echo ' yes '
10349 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10350 :
10351 else
10352 can_build_shared=no
10353 fi
10354 ;;
10355 esac
10356 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10357 # soname into executable. Probably we can add versioning support to
10358 # collect2, so additional links can be useful in future.
10359 if test "$aix_use_runtimelinking" = yes; then
10360 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10361 # instead of lib<name>.a to let people know that these are not
10362 # typical AIX shared libraries.
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 else
10365 # We preserve .a as extension for shared libraries through AIX4.2
10366 # and later when we are not doing run time linking.
10367 library_names_spec='${libname}${release}.a $libname.a'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 fi
10370 shlibpath_var=LIBPATH
10371 fi
10372 ;;
10373
10374 amigaos*)
10375 case $host_cpu in
10376 powerpc)
10377 # Since July 2007 AmigaOS4 officially supports .so libraries.
10378 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380 ;;
10381 m68k)
10382 library_names_spec='$libname.ixlibrary $libname.a'
10383 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10384 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'
10385 ;;
10386 esac
10387 ;;
10388
10389 beos*)
10390 library_names_spec='${libname}${shared_ext}'
10391 dynamic_linker="$host_os ld.so"
10392 shlibpath_var=LIBRARY_PATH
10393 ;;
10394
10395 bsdi[45]*)
10396 version_type=linux
10397 need_version=no
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10404 # the default ld.so.conf also contains /usr/contrib/lib and
10405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10406 # libtool to hard-code these into programs
10407 ;;
10408
10409 cygwin* | mingw* | pw32* | cegcc*)
10410 version_type=windows
10411 shrext_cmds=".dll"
10412 need_version=no
10413 need_lib_prefix=no
10414
10415 case $GCC,$host_os in
10416 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10417 library_names_spec='$libname.dll.a'
10418 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10419 postinstall_cmds='base_file=`basename \${file}`~
10420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10421 dldir=$destdir/`dirname \$dlpath`~
10422 test -d \$dldir || mkdir -p \$dldir~
10423 $install_prog $dir/$dlname \$dldir/$dlname~
10424 chmod a+x \$dldir/$dlname~
10425 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10426 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10427 fi'
10428 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10429 dlpath=$dir/\$dldll~
10430 $RM \$dlpath'
10431 shlibpath_overrides_runpath=yes
10432
10433 case $host_os in
10434 cygwin*)
10435 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10436 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10437
10438 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10439 ;;
10440 mingw* | cegcc*)
10441 # MinGW DLLs use traditional 'lib' prefix
10442 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10443 ;;
10444 pw32*)
10445 # pw32 DLLs use 'pw' prefix rather than 'lib'
10446 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10447 ;;
10448 esac
10449 ;;
10450
10451 *)
10452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10453 ;;
10454 esac
10455 dynamic_linker='Win32 ld.exe'
10456 # FIXME: first we should search . and the directory the executable is in
10457 shlibpath_var=PATH
10458 ;;
10459
10460 darwin* | rhapsody*)
10461 dynamic_linker="$host_os dyld"
10462 version_type=darwin
10463 need_lib_prefix=no
10464 need_version=no
10465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10466 soname_spec='${libname}${release}${major}$shared_ext'
10467 shlibpath_overrides_runpath=yes
10468 shlibpath_var=DYLD_LIBRARY_PATH
10469 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10470
10471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10473 ;;
10474
10475 dgux*)
10476 version_type=linux
10477 need_lib_prefix=no
10478 need_version=no
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10480 soname_spec='${libname}${release}${shared_ext}$major'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 ;;
10483
10484 freebsd* | dragonfly*)
10485 # DragonFly does not have aout. When/if they implement a new
10486 # versioning mechanism, adjust this.
10487 if test -x /usr/bin/objformat; then
10488 objformat=`/usr/bin/objformat`
10489 else
10490 case $host_os in
10491 freebsd[23].*) objformat=aout ;;
10492 *) objformat=elf ;;
10493 esac
10494 fi
10495 version_type=freebsd-$objformat
10496 case $version_type in
10497 freebsd-elf*)
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10499 need_version=no
10500 need_lib_prefix=no
10501 ;;
10502 freebsd-*)
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10504 need_version=yes
10505 ;;
10506 esac
10507 shlibpath_var=LD_LIBRARY_PATH
10508 case $host_os in
10509 freebsd2.*)
10510 shlibpath_overrides_runpath=yes
10511 ;;
10512 freebsd3.[01]* | freebsdelf3.[01]*)
10513 shlibpath_overrides_runpath=yes
10514 hardcode_into_libs=yes
10515 ;;
10516 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10517 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10518 shlibpath_overrides_runpath=no
10519 hardcode_into_libs=yes
10520 ;;
10521 *) # from 4.6 on, and DragonFly
10522 shlibpath_overrides_runpath=yes
10523 hardcode_into_libs=yes
10524 ;;
10525 esac
10526 ;;
10527
10528 gnu*)
10529 version_type=linux
10530 need_lib_prefix=no
10531 need_version=no
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 shlibpath_var=LD_LIBRARY_PATH
10535 hardcode_into_libs=yes
10536 ;;
10537
10538 haiku*)
10539 version_type=linux
10540 need_lib_prefix=no
10541 need_version=no
10542 dynamic_linker="$host_os runtime_loader"
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 shlibpath_var=LIBRARY_PATH
10546 shlibpath_overrides_runpath=yes
10547 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10548 hardcode_into_libs=yes
10549 ;;
10550
10551 hpux9* | hpux10* | hpux11*)
10552 # Give a soname corresponding to the major version so that dld.sl refuses to
10553 # link against other versions.
10554 version_type=sunos
10555 need_lib_prefix=no
10556 need_version=no
10557 case $host_cpu in
10558 ia64*)
10559 shrext_cmds='.so'
10560 hardcode_into_libs=yes
10561 dynamic_linker="$host_os dld.so"
10562 shlibpath_var=LD_LIBRARY_PATH
10563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 if test "X$HPUX_IA64_MODE" = X32; then
10567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10568 else
10569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10570 fi
10571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10572 ;;
10573 hppa*64*)
10574 shrext_cmds='.sl'
10575 hardcode_into_libs=yes
10576 dynamic_linker="$host_os dld.sl"
10577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580 soname_spec='${libname}${release}${shared_ext}$major'
10581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10583 ;;
10584 *)
10585 shrext_cmds='.sl'
10586 dynamic_linker="$host_os dld.sl"
10587 shlibpath_var=SHLIB_PATH
10588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 ;;
10592 esac
10593 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10594 postinstall_cmds='chmod 555 $lib'
10595 # or fails outright, so override atomically:
10596 install_override_mode=555
10597 ;;
10598
10599 interix[3-9]*)
10600 version_type=linux
10601 need_lib_prefix=no
10602 need_version=no
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10604 soname_spec='${libname}${release}${shared_ext}$major'
10605 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10606 shlibpath_var=LD_LIBRARY_PATH
10607 shlibpath_overrides_runpath=no
10608 hardcode_into_libs=yes
10609 ;;
10610
10611 irix5* | irix6* | nonstopux*)
10612 case $host_os in
10613 nonstopux*) version_type=nonstopux ;;
10614 *)
10615 if test "$lt_cv_prog_gnu_ld" = yes; then
10616 version_type=linux
10617 else
10618 version_type=irix
10619 fi ;;
10620 esac
10621 need_lib_prefix=no
10622 need_version=no
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10625 case $host_os in
10626 irix5* | nonstopux*)
10627 libsuff= shlibsuff=
10628 ;;
10629 *)
10630 case $LD in # libtool.m4 will add one of these switches to LD
10631 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10632 libsuff= shlibsuff= libmagic=32-bit;;
10633 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10634 libsuff=32 shlibsuff=N32 libmagic=N32;;
10635 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10636 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10637 *) libsuff= shlibsuff= libmagic=never-match;;
10638 esac
10639 ;;
10640 esac
10641 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10642 shlibpath_overrides_runpath=no
10643 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10644 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10645 hardcode_into_libs=yes
10646 ;;
10647
10648 # No shared lib support for Linux oldld, aout, or coff.
10649 linux*oldld* | linux*aout* | linux*coff*)
10650 dynamic_linker=no
10651 ;;
10652
10653 # This must be Linux ELF.
10654 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10655 version_type=linux
10656 need_lib_prefix=no
10657 need_version=no
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath=no
10663
10664 # Some binutils ld are patched to set DT_RUNPATH
10665 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10666 $as_echo_n "(cached) " >&6
10667 else
10668 lt_cv_shlibpath_overrides_runpath=no
10669 save_LDFLAGS=$LDFLAGS
10670 save_libdir=$libdir
10671 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10672 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10675
10676 int
10677 main ()
10678 {
10679
10680 ;
10681 return 0;
10682 }
10683 _ACEOF
10684 if ac_fn_c_try_link "$LINENO"; then :
10685 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10686 lt_cv_shlibpath_overrides_runpath=yes
10687 fi
10688 fi
10689 rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10691 LDFLAGS=$save_LDFLAGS
10692 libdir=$save_libdir
10693
10694 fi
10695
10696 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10697
10698 # This implies no fast_install, which is unacceptable.
10699 # Some rework will be needed to allow for fast_install
10700 # before this can be enabled.
10701 hardcode_into_libs=yes
10702
10703 # Append ld.so.conf contents to the search path
10704 if test -f /etc/ld.so.conf; then
10705 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' ' '`
10706 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10707 fi
10708
10709 # We used to test for /lib/ld.so.1 and disable shared libraries on
10710 # powerpc, because MkLinux only supported shared libraries with the
10711 # GNU dynamic linker. Since this was broken with cross compilers,
10712 # most powerpc-linux boxes support dynamic linking these days and
10713 # people can always --disable-shared, the test was removed, and we
10714 # assume the GNU/Linux dynamic linker is in use.
10715 dynamic_linker='GNU/Linux ld.so'
10716 ;;
10717
10718 netbsd*)
10719 version_type=sunos
10720 need_lib_prefix=no
10721 need_version=no
10722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10725 dynamic_linker='NetBSD (a.out) ld.so'
10726 else
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 dynamic_linker='NetBSD ld.elf_so'
10730 fi
10731 shlibpath_var=LD_LIBRARY_PATH
10732 shlibpath_overrides_runpath=yes
10733 hardcode_into_libs=yes
10734 ;;
10735
10736 newsos6)
10737 version_type=linux
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739 shlibpath_var=LD_LIBRARY_PATH
10740 shlibpath_overrides_runpath=yes
10741 ;;
10742
10743 *nto* | *qnx*)
10744 version_type=qnx
10745 need_lib_prefix=no
10746 need_version=no
10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 shlibpath_overrides_runpath=no
10751 hardcode_into_libs=yes
10752 dynamic_linker='ldqnx.so'
10753 ;;
10754
10755 openbsd*)
10756 version_type=sunos
10757 sys_lib_dlsearch_path_spec="/usr/lib"
10758 need_lib_prefix=no
10759 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10760 case $host_os in
10761 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10762 *) need_version=no ;;
10763 esac
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10768 case $host_os in
10769 openbsd2.[89] | openbsd2.[89].*)
10770 shlibpath_overrides_runpath=no
10771 ;;
10772 *)
10773 shlibpath_overrides_runpath=yes
10774 ;;
10775 esac
10776 else
10777 shlibpath_overrides_runpath=yes
10778 fi
10779 ;;
10780
10781 os2*)
10782 libname_spec='$name'
10783 shrext_cmds=".dll"
10784 need_lib_prefix=no
10785 library_names_spec='$libname${shared_ext} $libname.a'
10786 dynamic_linker='OS/2 ld.exe'
10787 shlibpath_var=LIBPATH
10788 ;;
10789
10790 osf3* | osf4* | osf5*)
10791 version_type=osf
10792 need_lib_prefix=no
10793 need_version=no
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 shlibpath_var=LD_LIBRARY_PATH
10797 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10798 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10799 ;;
10800
10801 rdos*)
10802 dynamic_linker=no
10803 ;;
10804
10805 solaris*)
10806 version_type=linux
10807 need_lib_prefix=no
10808 need_version=no
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 shlibpath_var=LD_LIBRARY_PATH
10812 shlibpath_overrides_runpath=yes
10813 hardcode_into_libs=yes
10814 # ldd complains unless libraries are executable
10815 postinstall_cmds='chmod +x $lib'
10816 ;;
10817
10818 sunos4*)
10819 version_type=sunos
10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10821 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10822 shlibpath_var=LD_LIBRARY_PATH
10823 shlibpath_overrides_runpath=yes
10824 if test "$with_gnu_ld" = yes; then
10825 need_lib_prefix=no
10826 fi
10827 need_version=yes
10828 ;;
10829
10830 sysv4 | sysv4.3*)
10831 version_type=linux
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 shlibpath_var=LD_LIBRARY_PATH
10835 case $host_vendor in
10836 sni)
10837 shlibpath_overrides_runpath=no
10838 need_lib_prefix=no
10839 runpath_var=LD_RUN_PATH
10840 ;;
10841 siemens)
10842 need_lib_prefix=no
10843 ;;
10844 motorola)
10845 need_lib_prefix=no
10846 need_version=no
10847 shlibpath_overrides_runpath=no
10848 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10849 ;;
10850 esac
10851 ;;
10852
10853 sysv4*MP*)
10854 if test -d /usr/nec ;then
10855 version_type=linux
10856 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10857 soname_spec='$libname${shared_ext}.$major'
10858 shlibpath_var=LD_LIBRARY_PATH
10859 fi
10860 ;;
10861
10862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10863 version_type=freebsd-elf
10864 need_lib_prefix=no
10865 need_version=no
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10867 soname_spec='${libname}${release}${shared_ext}$major'
10868 shlibpath_var=LD_LIBRARY_PATH
10869 shlibpath_overrides_runpath=yes
10870 hardcode_into_libs=yes
10871 if test "$with_gnu_ld" = yes; then
10872 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10873 else
10874 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10875 case $host_os in
10876 sco3.2v5*)
10877 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10878 ;;
10879 esac
10880 fi
10881 sys_lib_dlsearch_path_spec='/usr/lib'
10882 ;;
10883
10884 tpf*)
10885 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10886 version_type=linux
10887 need_lib_prefix=no
10888 need_version=no
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=no
10892 hardcode_into_libs=yes
10893 ;;
10894
10895 uts4*)
10896 version_type=linux
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 ;;
10901
10902 *)
10903 dynamic_linker=no
10904 ;;
10905 esac
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10907 $as_echo "$dynamic_linker" >&6; }
10908 test "$dynamic_linker" = no && can_build_shared=no
10909
10910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10911 if test "$GCC" = yes; then
10912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10913 fi
10914
10915 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10916 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10917 fi
10918 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10919 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10920 fi
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11014 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11015 hardcode_action=
11016 if test -n "$hardcode_libdir_flag_spec" ||
11017 test -n "$runpath_var" ||
11018 test "X$hardcode_automatic" = "Xyes" ; then
11019
11020 # We can hardcode non-existent directories.
11021 if test "$hardcode_direct" != no &&
11022 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11023 # have to relink, otherwise we might link with an installed library
11024 # when we should be linking with a yet-to-be-installed one
11025 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11026 test "$hardcode_minus_L" != no; then
11027 # Linking always hardcodes the temporary library directory.
11028 hardcode_action=relink
11029 else
11030 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11031 hardcode_action=immediate
11032 fi
11033 else
11034 # We cannot hardcode anything, or else we can only hardcode existing
11035 # directories.
11036 hardcode_action=unsupported
11037 fi
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11039 $as_echo "$hardcode_action" >&6; }
11040
11041 if test "$hardcode_action" = relink ||
11042 test "$inherit_rpath" = yes; then
11043 # Fast installation is not supported
11044 enable_fast_install=no
11045 elif test "$shlibpath_overrides_runpath" = yes ||
11046 test "$enable_shared" = no; then
11047 # Fast installation is not necessary
11048 enable_fast_install=needless
11049 fi
11050
11051
11052
11053
11054
11055
11056 if test "x$enable_dlopen" != xyes; then
11057 enable_dlopen=unknown
11058 enable_dlopen_self=unknown
11059 enable_dlopen_self_static=unknown
11060 else
11061 lt_cv_dlopen=no
11062 lt_cv_dlopen_libs=
11063
11064 case $host_os in
11065 beos*)
11066 lt_cv_dlopen="load_add_on"
11067 lt_cv_dlopen_libs=
11068 lt_cv_dlopen_self=yes
11069 ;;
11070
11071 mingw* | pw32* | cegcc*)
11072 lt_cv_dlopen="LoadLibrary"
11073 lt_cv_dlopen_libs=
11074 ;;
11075
11076 cygwin*)
11077 lt_cv_dlopen="dlopen"
11078 lt_cv_dlopen_libs=
11079 ;;
11080
11081 darwin*)
11082 # if libdl is installed we need to link against it
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11084 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11085 if ${ac_cv_lib_dl_dlopen+:} false; then :
11086 $as_echo_n "(cached) " >&6
11087 else
11088 ac_check_lib_save_LIBS=$LIBS
11089 LIBS="-ldl $LIBS"
11090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11092
11093 /* Override any GCC internal prototype to avoid an error.
11094 Use char because int might match the return type of a GCC
11095 builtin and then its argument prototype would still apply. */
11096 #ifdef __cplusplus
11097 extern "C"
11098 #endif
11099 char dlopen ();
11100 int
11101 main ()
11102 {
11103 return dlopen ();
11104 ;
11105 return 0;
11106 }
11107 _ACEOF
11108 if ac_fn_c_try_link "$LINENO"; then :
11109 ac_cv_lib_dl_dlopen=yes
11110 else
11111 ac_cv_lib_dl_dlopen=no
11112 fi
11113 rm -f core conftest.err conftest.$ac_objext \
11114 conftest$ac_exeext conftest.$ac_ext
11115 LIBS=$ac_check_lib_save_LIBS
11116 fi
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11118 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11119 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11120 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11121 else
11122
11123 lt_cv_dlopen="dyld"
11124 lt_cv_dlopen_libs=
11125 lt_cv_dlopen_self=yes
11126
11127 fi
11128
11129 ;;
11130
11131 *)
11132 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11133 if test "x$ac_cv_func_shl_load" = xyes; then :
11134 lt_cv_dlopen="shl_load"
11135 else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11137 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11138 if ${ac_cv_lib_dld_shl_load+:} false; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 ac_check_lib_save_LIBS=$LIBS
11142 LIBS="-ldld $LIBS"
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11145
11146 /* Override any GCC internal prototype to avoid an error.
11147 Use char because int might match the return type of a GCC
11148 builtin and then its argument prototype would still apply. */
11149 #ifdef __cplusplus
11150 extern "C"
11151 #endif
11152 char shl_load ();
11153 int
11154 main ()
11155 {
11156 return shl_load ();
11157 ;
11158 return 0;
11159 }
11160 _ACEOF
11161 if ac_fn_c_try_link "$LINENO"; then :
11162 ac_cv_lib_dld_shl_load=yes
11163 else
11164 ac_cv_lib_dld_shl_load=no
11165 fi
11166 rm -f core conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
11168 LIBS=$ac_check_lib_save_LIBS
11169 fi
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11171 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11172 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11173 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11174 else
11175 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11176 if test "x$ac_cv_func_dlopen" = xyes; then :
11177 lt_cv_dlopen="dlopen"
11178 else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11180 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11181 if ${ac_cv_lib_dl_dlopen+:} false; then :
11182 $as_echo_n "(cached) " >&6
11183 else
11184 ac_check_lib_save_LIBS=$LIBS
11185 LIBS="-ldl $LIBS"
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11188
11189 /* Override any GCC internal prototype to avoid an error.
11190 Use char because int might match the return type of a GCC
11191 builtin and then its argument prototype would still apply. */
11192 #ifdef __cplusplus
11193 extern "C"
11194 #endif
11195 char dlopen ();
11196 int
11197 main ()
11198 {
11199 return dlopen ();
11200 ;
11201 return 0;
11202 }
11203 _ACEOF
11204 if ac_fn_c_try_link "$LINENO"; then :
11205 ac_cv_lib_dl_dlopen=yes
11206 else
11207 ac_cv_lib_dl_dlopen=no
11208 fi
11209 rm -f core conftest.err conftest.$ac_objext \
11210 conftest$ac_exeext conftest.$ac_ext
11211 LIBS=$ac_check_lib_save_LIBS
11212 fi
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11214 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11215 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11216 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11219 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11220 if ${ac_cv_lib_svld_dlopen+:} false; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 ac_check_lib_save_LIBS=$LIBS
11224 LIBS="-lsvld $LIBS"
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227
11228 /* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
11231 #ifdef __cplusplus
11232 extern "C"
11233 #endif
11234 char dlopen ();
11235 int
11236 main ()
11237 {
11238 return dlopen ();
11239 ;
11240 return 0;
11241 }
11242 _ACEOF
11243 if ac_fn_c_try_link "$LINENO"; then :
11244 ac_cv_lib_svld_dlopen=yes
11245 else
11246 ac_cv_lib_svld_dlopen=no
11247 fi
11248 rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11253 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11254 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11256 else
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11258 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11259 if ${ac_cv_lib_dld_dld_link+:} false; then :
11260 $as_echo_n "(cached) " >&6
11261 else
11262 ac_check_lib_save_LIBS=$LIBS
11263 LIBS="-ldld $LIBS"
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11266
11267 /* Override any GCC internal prototype to avoid an error.
11268 Use char because int might match the return type of a GCC
11269 builtin and then its argument prototype would still apply. */
11270 #ifdef __cplusplus
11271 extern "C"
11272 #endif
11273 char dld_link ();
11274 int
11275 main ()
11276 {
11277 return dld_link ();
11278 ;
11279 return 0;
11280 }
11281 _ACEOF
11282 if ac_fn_c_try_link "$LINENO"; then :
11283 ac_cv_lib_dld_dld_link=yes
11284 else
11285 ac_cv_lib_dld_dld_link=no
11286 fi
11287 rm -f core conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
11289 LIBS=$ac_check_lib_save_LIBS
11290 fi
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11292 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11293 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11294 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11295 fi
11296
11297
11298 fi
11299
11300
11301 fi
11302
11303
11304 fi
11305
11306
11307 fi
11308
11309
11310 fi
11311
11312 ;;
11313 esac
11314
11315 if test "x$lt_cv_dlopen" != xno; then
11316 enable_dlopen=yes
11317 else
11318 enable_dlopen=no
11319 fi
11320
11321 case $lt_cv_dlopen in
11322 dlopen)
11323 save_CPPFLAGS="$CPPFLAGS"
11324 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11325
11326 save_LDFLAGS="$LDFLAGS"
11327 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11328
11329 save_LIBS="$LIBS"
11330 LIBS="$lt_cv_dlopen_libs $LIBS"
11331
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11333 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11334 if ${lt_cv_dlopen_self+:} false; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 if test "$cross_compiling" = yes; then :
11338 lt_cv_dlopen_self=cross
11339 else
11340 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11341 lt_status=$lt_dlunknown
11342 cat > conftest.$ac_ext <<_LT_EOF
11343 #line 11343 "configure"
11344 #include "confdefs.h"
11345
11346 #if HAVE_DLFCN_H
11347 #include <dlfcn.h>
11348 #endif
11349
11350 #include <stdio.h>
11351
11352 #ifdef RTLD_GLOBAL
11353 # define LT_DLGLOBAL RTLD_GLOBAL
11354 #else
11355 # ifdef DL_GLOBAL
11356 # define LT_DLGLOBAL DL_GLOBAL
11357 # else
11358 # define LT_DLGLOBAL 0
11359 # endif
11360 #endif
11361
11362 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11363 find out it does not work in some platform. */
11364 #ifndef LT_DLLAZY_OR_NOW
11365 # ifdef RTLD_LAZY
11366 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11367 # else
11368 # ifdef DL_LAZY
11369 # define LT_DLLAZY_OR_NOW DL_LAZY
11370 # else
11371 # ifdef RTLD_NOW
11372 # define LT_DLLAZY_OR_NOW RTLD_NOW
11373 # else
11374 # ifdef DL_NOW
11375 # define LT_DLLAZY_OR_NOW DL_NOW
11376 # else
11377 # define LT_DLLAZY_OR_NOW 0
11378 # endif
11379 # endif
11380 # endif
11381 # endif
11382 #endif
11383
11384 /* When -fvisbility=hidden is used, assume the code has been annotated
11385 correspondingly for the symbols needed. */
11386 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11387 void fnord () __attribute__((visibility("default")));
11388 #endif
11389
11390 void fnord () { int i=42; }
11391 int main ()
11392 {
11393 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11394 int status = $lt_dlunknown;
11395
11396 if (self)
11397 {
11398 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11399 else
11400 {
11401 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11402 else puts (dlerror ());
11403 }
11404 /* dlclose (self); */
11405 }
11406 else
11407 puts (dlerror ());
11408
11409 return status;
11410 }
11411 _LT_EOF
11412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11413 (eval $ac_link) 2>&5
11414 ac_status=$?
11415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11416 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11417 (./conftest; exit; ) >&5 2>/dev/null
11418 lt_status=$?
11419 case x$lt_status in
11420 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11421 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11422 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11423 esac
11424 else :
11425 # compilation failed
11426 lt_cv_dlopen_self=no
11427 fi
11428 fi
11429 rm -fr conftest*
11430
11431
11432 fi
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11434 $as_echo "$lt_cv_dlopen_self" >&6; }
11435
11436 if test "x$lt_cv_dlopen_self" = xyes; then
11437 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11439 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11440 if ${lt_cv_dlopen_self_static+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 if test "$cross_compiling" = yes; then :
11444 lt_cv_dlopen_self_static=cross
11445 else
11446 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11447 lt_status=$lt_dlunknown
11448 cat > conftest.$ac_ext <<_LT_EOF
11449 #line 11449 "configure"
11450 #include "confdefs.h"
11451
11452 #if HAVE_DLFCN_H
11453 #include <dlfcn.h>
11454 #endif
11455
11456 #include <stdio.h>
11457
11458 #ifdef RTLD_GLOBAL
11459 # define LT_DLGLOBAL RTLD_GLOBAL
11460 #else
11461 # ifdef DL_GLOBAL
11462 # define LT_DLGLOBAL DL_GLOBAL
11463 # else
11464 # define LT_DLGLOBAL 0
11465 # endif
11466 #endif
11467
11468 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11469 find out it does not work in some platform. */
11470 #ifndef LT_DLLAZY_OR_NOW
11471 # ifdef RTLD_LAZY
11472 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11473 # else
11474 # ifdef DL_LAZY
11475 # define LT_DLLAZY_OR_NOW DL_LAZY
11476 # else
11477 # ifdef RTLD_NOW
11478 # define LT_DLLAZY_OR_NOW RTLD_NOW
11479 # else
11480 # ifdef DL_NOW
11481 # define LT_DLLAZY_OR_NOW DL_NOW
11482 # else
11483 # define LT_DLLAZY_OR_NOW 0
11484 # endif
11485 # endif
11486 # endif
11487 # endif
11488 #endif
11489
11490 /* When -fvisbility=hidden is used, assume the code has been annotated
11491 correspondingly for the symbols needed. */
11492 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11493 void fnord () __attribute__((visibility("default")));
11494 #endif
11495
11496 void fnord () { int i=42; }
11497 int main ()
11498 {
11499 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11500 int status = $lt_dlunknown;
11501
11502 if (self)
11503 {
11504 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11505 else
11506 {
11507 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11508 else puts (dlerror ());
11509 }
11510 /* dlclose (self); */
11511 }
11512 else
11513 puts (dlerror ());
11514
11515 return status;
11516 }
11517 _LT_EOF
11518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11519 (eval $ac_link) 2>&5
11520 ac_status=$?
11521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11522 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11523 (./conftest; exit; ) >&5 2>/dev/null
11524 lt_status=$?
11525 case x$lt_status in
11526 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11527 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11528 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11529 esac
11530 else :
11531 # compilation failed
11532 lt_cv_dlopen_self_static=no
11533 fi
11534 fi
11535 rm -fr conftest*
11536
11537
11538 fi
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11540 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11541 fi
11542
11543 CPPFLAGS="$save_CPPFLAGS"
11544 LDFLAGS="$save_LDFLAGS"
11545 LIBS="$save_LIBS"
11546 ;;
11547 esac
11548
11549 case $lt_cv_dlopen_self in
11550 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11551 *) enable_dlopen_self=unknown ;;
11552 esac
11553
11554 case $lt_cv_dlopen_self_static in
11555 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11556 *) enable_dlopen_self_static=unknown ;;
11557 esac
11558 fi
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576 striplib=
11577 old_striplib=
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11579 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11580 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11581 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11582 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11584 $as_echo "yes" >&6; }
11585 else
11586 # FIXME - insert some real tests, host_os isn't really good enough
11587 case $host_os in
11588 darwin*)
11589 if test -n "$STRIP" ; then
11590 striplib="$STRIP -x"
11591 old_striplib="$STRIP -S"
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11593 $as_echo "yes" >&6; }
11594 else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11597 fi
11598 ;;
11599 *)
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601 $as_echo "no" >&6; }
11602 ;;
11603 esac
11604 fi
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617 # Report which library types will actually be built
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11619 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11621 $as_echo "$can_build_shared" >&6; }
11622
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11624 $as_echo_n "checking whether to build shared libraries... " >&6; }
11625 test "$can_build_shared" = "no" && enable_shared=no
11626
11627 # On AIX, shared libraries and static libraries use the same namespace, and
11628 # are all built from PIC.
11629 case $host_os in
11630 aix3*)
11631 test "$enable_shared" = yes && enable_static=no
11632 if test -n "$RANLIB"; then
11633 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11634 postinstall_cmds='$RANLIB $lib'
11635 fi
11636 ;;
11637
11638 aix[4-9]*)
11639 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11640 test "$enable_shared" = yes && enable_static=no
11641 fi
11642 ;;
11643 esac
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11645 $as_echo "$enable_shared" >&6; }
11646
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11648 $as_echo_n "checking whether to build static libraries... " >&6; }
11649 # Make sure either enable_shared or enable_static is yes.
11650 test "$enable_shared" = yes || enable_static=yes
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11652 $as_echo "$enable_static" >&6; }
11653
11654
11655
11656
11657 fi
11658 ac_ext=c
11659 ac_cpp='$CPP $CPPFLAGS'
11660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11663
11664 CC="$lt_save_CC"
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678 ac_config_commands="$ac_config_commands libtool"
11679
11680
11681
11682
11683 # Only expand once:
11684
11685
11686
11687 # The tests for host and target for $enable_largefile require
11688 # canonical names.
11689
11690
11691
11692 # As the $enable_largefile decision depends on --enable-plugins we must set it
11693 # even in directories otherwise not depending on the $plugins option.
11694
11695
11696 maybe_plugins=no
11697 for ac_header in dlfcn.h
11698 do :
11699 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11700 "
11701 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11702 cat >>confdefs.h <<_ACEOF
11703 #define HAVE_DLFCN_H 1
11704 _ACEOF
11705 maybe_plugins=yes
11706 fi
11707
11708 done
11709
11710 for ac_header in windows.h
11711 do :
11712 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11713 "
11714 if test "x$ac_cv_header_windows_h" = xyes; then :
11715 cat >>confdefs.h <<_ACEOF
11716 #define HAVE_WINDOWS_H 1
11717 _ACEOF
11718 maybe_plugins=yes
11719 fi
11720
11721 done
11722
11723
11724 # Check whether --enable-plugins was given.
11725 if test "${enable_plugins+set}" = set; then :
11726 enableval=$enable_plugins; case "${enableval}" in
11727 no) plugins=no ;;
11728 *) plugins=yes
11729 if test "$maybe_plugins" != "yes" ; then
11730 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11731 fi ;;
11732 esac
11733 else
11734 plugins=$maybe_plugins
11735
11736 fi
11737
11738 if test "$plugins" = "yes"; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11740 $as_echo_n "checking for library containing dlsym... " >&6; }
11741 if ${ac_cv_search_dlsym+:} false; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 ac_func_search_save_LIBS=$LIBS
11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h. */
11747
11748 /* Override any GCC internal prototype to avoid an error.
11749 Use char because int might match the return type of a GCC
11750 builtin and then its argument prototype would still apply. */
11751 #ifdef __cplusplus
11752 extern "C"
11753 #endif
11754 char dlsym ();
11755 int
11756 main ()
11757 {
11758 return dlsym ();
11759 ;
11760 return 0;
11761 }
11762 _ACEOF
11763 for ac_lib in '' dl; do
11764 if test -z "$ac_lib"; then
11765 ac_res="none required"
11766 else
11767 ac_res=-l$ac_lib
11768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11769 fi
11770 if ac_fn_c_try_link "$LINENO"; then :
11771 ac_cv_search_dlsym=$ac_res
11772 fi
11773 rm -f core conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext
11775 if ${ac_cv_search_dlsym+:} false; then :
11776 break
11777 fi
11778 done
11779 if ${ac_cv_search_dlsym+:} false; then :
11780
11781 else
11782 ac_cv_search_dlsym=no
11783 fi
11784 rm conftest.$ac_ext
11785 LIBS=$ac_func_search_save_LIBS
11786 fi
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11788 $as_echo "$ac_cv_search_dlsym" >&6; }
11789 ac_res=$ac_cv_search_dlsym
11790 if test "$ac_res" != no; then :
11791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11792
11793 fi
11794
11795 fi
11796
11797
11798 case "${host}" in
11799 sparc-*-solaris*|i[3-7]86-*-solaris*)
11800 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11801 # are mutually exclusive; and without procfs support, the bfd/ elf module
11802 # cannot provide certain routines such as elfcore_write_prpsinfo
11803 # or elfcore_write_prstatus. So unless the user explicitly requested
11804 # large-file support through the --enable-largefile switch, disable
11805 # large-file support in favor of procfs support.
11806 test "${target}" = "${host}" -a "x$plugins" = xno \
11807 && : ${enable_largefile="no"}
11808 ;;
11809 esac
11810
11811 # Check whether --enable-largefile was given.
11812 if test "${enable_largefile+set}" = set; then :
11813 enableval=$enable_largefile;
11814 fi
11815
11816 if test "$enable_largefile" != no; then
11817
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11819 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11820 if ${ac_cv_sys_largefile_CC+:} false; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 ac_cv_sys_largefile_CC=no
11824 if test "$GCC" != yes; then
11825 ac_save_CC=$CC
11826 while :; do
11827 # IRIX 6.2 and later do not support large files by default,
11828 # so use the C compiler's -n32 option if that helps.
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831 #include <sys/types.h>
11832 /* Check that off_t can represent 2**63 - 1 correctly.
11833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11834 since some C++ compilers masquerading as C compilers
11835 incorrectly reject 9223372036854775807. */
11836 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11838 && LARGE_OFF_T % 2147483647 == 1)
11839 ? 1 : -1];
11840 int
11841 main ()
11842 {
11843
11844 ;
11845 return 0;
11846 }
11847 _ACEOF
11848 if ac_fn_c_try_compile "$LINENO"; then :
11849 break
11850 fi
11851 rm -f core conftest.err conftest.$ac_objext
11852 CC="$CC -n32"
11853 if ac_fn_c_try_compile "$LINENO"; then :
11854 ac_cv_sys_largefile_CC=' -n32'; break
11855 fi
11856 rm -f core conftest.err conftest.$ac_objext
11857 break
11858 done
11859 CC=$ac_save_CC
11860 rm -f conftest.$ac_ext
11861 fi
11862 fi
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11864 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11865 if test "$ac_cv_sys_largefile_CC" != no; then
11866 CC=$CC$ac_cv_sys_largefile_CC
11867 fi
11868
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11870 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11871 if ${ac_cv_sys_file_offset_bits+:} false; then :
11872 $as_echo_n "(cached) " >&6
11873 else
11874 while :; do
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11877 #include <sys/types.h>
11878 /* Check that off_t can represent 2**63 - 1 correctly.
11879 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11880 since some C++ compilers masquerading as C compilers
11881 incorrectly reject 9223372036854775807. */
11882 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11884 && LARGE_OFF_T % 2147483647 == 1)
11885 ? 1 : -1];
11886 int
11887 main ()
11888 {
11889
11890 ;
11891 return 0;
11892 }
11893 _ACEOF
11894 if ac_fn_c_try_compile "$LINENO"; then :
11895 ac_cv_sys_file_offset_bits=no; break
11896 fi
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11900 #define _FILE_OFFSET_BITS 64
11901 #include <sys/types.h>
11902 /* Check that off_t can represent 2**63 - 1 correctly.
11903 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11904 since some C++ compilers masquerading as C compilers
11905 incorrectly reject 9223372036854775807. */
11906 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11907 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11908 && LARGE_OFF_T % 2147483647 == 1)
11909 ? 1 : -1];
11910 int
11911 main ()
11912 {
11913
11914 ;
11915 return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_c_try_compile "$LINENO"; then :
11919 ac_cv_sys_file_offset_bits=64; break
11920 fi
11921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11922 ac_cv_sys_file_offset_bits=unknown
11923 break
11924 done
11925 fi
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11927 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11928 case $ac_cv_sys_file_offset_bits in #(
11929 no | unknown) ;;
11930 *)
11931 cat >>confdefs.h <<_ACEOF
11932 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11933 _ACEOF
11934 ;;
11935 esac
11936 rm -rf conftest*
11937 if test $ac_cv_sys_file_offset_bits = unknown; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11939 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11940 if ${ac_cv_sys_large_files+:} false; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943 while :; do
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11946 #include <sys/types.h>
11947 /* Check that off_t can represent 2**63 - 1 correctly.
11948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11949 since some C++ compilers masquerading as C compilers
11950 incorrectly reject 9223372036854775807. */
11951 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11953 && LARGE_OFF_T % 2147483647 == 1)
11954 ? 1 : -1];
11955 int
11956 main ()
11957 {
11958
11959 ;
11960 return 0;
11961 }
11962 _ACEOF
11963 if ac_fn_c_try_compile "$LINENO"; then :
11964 ac_cv_sys_large_files=no; break
11965 fi
11966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11969 #define _LARGE_FILES 1
11970 #include <sys/types.h>
11971 /* Check that off_t can represent 2**63 - 1 correctly.
11972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11973 since some C++ compilers masquerading as C compilers
11974 incorrectly reject 9223372036854775807. */
11975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11977 && LARGE_OFF_T % 2147483647 == 1)
11978 ? 1 : -1];
11979 int
11980 main ()
11981 {
11982
11983 ;
11984 return 0;
11985 }
11986 _ACEOF
11987 if ac_fn_c_try_compile "$LINENO"; then :
11988 ac_cv_sys_large_files=1; break
11989 fi
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 ac_cv_sys_large_files=unknown
11992 break
11993 done
11994 fi
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11996 $as_echo "$ac_cv_sys_large_files" >&6; }
11997 case $ac_cv_sys_large_files in #(
11998 no | unknown) ;;
11999 *)
12000 cat >>confdefs.h <<_ACEOF
12001 #define _LARGE_FILES $ac_cv_sys_large_files
12002 _ACEOF
12003 ;;
12004 esac
12005 rm -rf conftest*
12006 fi
12007
12008
12009 fi
12010
12011
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
12013 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
12014 if ${gcc_cv_prog_cmp_skip+:} false; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 echo abfoo >t1
12018 echo cdfoo >t2
12019 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
12020 if cmp t1 t2 2 2 > /dev/null 2>&1; then
12021 if cmp t1 t2 1 1 > /dev/null 2>&1; then
12022 :
12023 else
12024 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12025 fi
12026 fi
12027 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12028 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12029 :
12030 else
12031 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12032 fi
12033 fi
12034 rm t1 t2
12035
12036 fi
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
12038 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
12039 do_compare="$gcc_cv_prog_cmp_skip"
12040
12041
12042
12043 # Check whether --enable-targets was given.
12044 if test "${enable_targets+set}" = set; then :
12045 enableval=$enable_targets; case "${enableval}" in
12046 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
12047 ;;
12048 no) enable_targets= ;;
12049 *) enable_targets=$enableval ;;
12050 esac
12051 fi
12052
12053 ac_checking=yes
12054 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
12055 ac_checking=
12056 fi
12057 # Check whether --enable-checking was given.
12058 if test "${enable_checking+set}" = set; then :
12059 enableval=$enable_checking; case "${enableval}" in
12060 no|none) ac_checking= ;;
12061 *) ac_checking=yes ;;
12062 esac
12063 fi
12064 if test x$ac_checking != x ; then
12065
12066 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
12067
12068 fi
12069
12070 # PR gas/19109
12071 # Decide the default method for compressing debug sections.
12072 ac_default_compressed_debug_sections=unset
12073 # Provide a configure time option to override our default.
12074 # Check whether --enable-compressed_debug_sections was given.
12075 if test "${enable_compressed_debug_sections+set}" = set; then :
12076 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
12077 ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
12078 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
12079 *) ac_default_compressed_debug_sections=unset ;;
12080 esac
12081 fi
12082
12083 # PR gas/19520
12084 # Decide if x86 assembler should generate relax relocations.
12085 ac_default_x86_relax_relocations=unset
12086 # Provide a configure time option to override our default.
12087 # Check whether --enable-x86_relax_relocations was given.
12088 if test "${enable_x86_relax_relocations+set}" = set; then :
12089 enableval=$enable_x86_relax_relocations; case "${enableval}" in
12090 no) ac_default_x86_relax_relocations=0 ;;
12091 esac
12092 fi
12093
12094 # Decide if ELF assembler should generate common symbols with the
12095 # STT_COMMON type.
12096 ac_default_elf_stt_common=unset
12097 # Provide a configure time option to override our default.
12098 # Check whether --enable-elf_stt_common was given.
12099 if test "${enable_elf_stt_common+set}" = set; then :
12100 enableval=$enable_elf_stt_common; case "${enableval}" in
12101 yes) ac_default_elf_stt_common=1 ;;
12102 esac
12103 fi
12104
12105
12106 # Decide if the ELF assembler should default to generating
12107 # GNU Build notes if none are provided by the input.
12108 ac_default_generate_build_notes=0
12109 # Provide a configuration option to override the default.
12110 # Check whether --enable-generate_build_notes was given.
12111 if test "${enable_generate_build_notes+set}" = set; then :
12112 enableval=$enable_generate_build_notes; case "${enableval}" in
12113 yes) ac_default_generate_build_notes=1 ;;
12114 no) ac_default_generate_build_notes=0 ;;
12115 esac
12116 fi
12117
12118
12119 # Decide if the x86 ELF assembler should default to generating GNU x86
12120 # used ISA and feature properties.
12121 ac_default_generate_x86_used_note=unset
12122 # Provide a configuration option to override the default.
12123 # Check whether --enable-x86-used-note was given.
12124 if test "${enable_x86_used_note+set}" = set; then :
12125 enableval=$enable_x86_used_note; case "${enableval}" in
12126 yes) ac_default_generate_x86_used_note=1 ;;
12127 no) ac_default_generate_x86_used_note=0 ;;
12128 esac
12129 fi
12130
12131 # Decide if the RISC-V ELF assembler should default to generating attribute.
12132 ac_default_generate_riscv_attr=unset
12133 # Provide a configuration option to override the default.
12134 # Check whether --enable-default-riscv-attribute was given.
12135 if test "${enable_default_riscv_attribute+set}" = set; then :
12136 enableval=$enable_default_riscv_attribute; case "${enableval}" in
12137 yes) ac_default_generate_riscv_attr=1 ;;
12138 no) ac_default_generate_riscv_attr=0 ;;
12139 esac
12140 fi
12141
12142 using_cgen=no
12143
12144
12145 # Set the 'development' global.
12146 . $srcdir/../bfd/development.sh
12147
12148 # Set acp_cpp_for_build variable
12149 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12150
12151 # Default set of GCC warnings to enable.
12152 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12153 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12154
12155 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12158 __GNUC__
12159 _ACEOF
12160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12161 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12162
12163 else
12164 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12165 fi
12166 rm -f conftest*
12167
12168
12169 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12172 __GNUC__
12173 _ACEOF
12174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12175 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12176
12177 else
12178 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12179 fi
12180 rm -f conftest*
12181
12182
12183 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12184 WARN_WRITE_STRINGS=""
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12187 __GNUC__
12188 _ACEOF
12189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12190 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12191
12192 else
12193 WARN_WRITE_STRINGS="-Wwrite-strings"
12194 fi
12195 rm -f conftest*
12196
12197
12198 # Verify CC_FOR_BUILD to be compatible with warning flags
12199
12200 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12203 __GNUC__
12204 _ACEOF
12205 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12206 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12207
12208 else
12209 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12210 fi
12211 rm -f conftest*
12212
12213
12214 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12217 __GNUC__
12218 _ACEOF
12219 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12220 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12221
12222 else
12223 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12224 fi
12225 rm -f conftest*
12226
12227
12228 # Check whether --enable-werror was given.
12229 if test "${enable_werror+set}" = set; then :
12230 enableval=$enable_werror; case "${enableval}" in
12231 yes | y) ERROR_ON_WARNING="yes" ;;
12232 no | n) ERROR_ON_WARNING="no" ;;
12233 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12234 esac
12235 fi
12236
12237
12238 # Disable -Wformat by default when using gcc on mingw
12239 case "${host}" in
12240 *-*-mingw32*)
12241 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12242 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12243 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12244 fi
12245 ;;
12246 *) ;;
12247 esac
12248
12249 # Enable -Werror by default when using gcc. Turn it off for releases.
12250 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12251 ERROR_ON_WARNING=yes
12252 fi
12253
12254 NO_WERROR=
12255 if test "${ERROR_ON_WARNING}" = yes ; then
12256 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12257 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12258 NO_WERROR="-Wno-error"
12259 fi
12260
12261 if test "${GCC}" = yes ; then
12262 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12263 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12264 fi
12265
12266 # Check whether --enable-build-warnings was given.
12267 if test "${enable_build_warnings+set}" = set; then :
12268 enableval=$enable_build_warnings; case "${enableval}" in
12269 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12270 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12271 no) if test "${GCC}" = yes ; then
12272 WARN_CFLAGS="-w"
12273 WARN_CFLAGS_FOR_BUILD="-w"
12274 fi;;
12275 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12276 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12277 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12278 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12279 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12280 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12281 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12282 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12283 esac
12284 fi
12285
12286
12287 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12288 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12289 fi
12290
12291
12292
12293
12294
12295
12296
12297 # Generate a header file
12298 ac_config_headers="$ac_config_headers config.h:config.in"
12299
12300
12301
12302 # Check whether --with-cpu was given.
12303 if test "${with_cpu+set}" = set; then :
12304 withval=$with_cpu;
12305 cat >>confdefs.h <<_ACEOF
12306 #define TARGET_WITH_CPU "${with_cpu}"
12307 _ACEOF
12308
12309 fi
12310
12311
12312 # PR 14072
12313
12314
12315 # If we are on a DOS filesystem, we must use gdb.ini rather than
12316 # .gdbinit.
12317 case "${host}" in
12318 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
12319 GDBINIT="gdb.ini"
12320 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
12321
12322 ;;
12323 *)
12324 GDBINIT=".gdbinit"
12325 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
12326
12327 ;;
12328 esac
12329
12330
12331 #We need this for the host.
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12333 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12334 if ${ac_cv_c_bigendian+:} false; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 ac_cv_c_bigendian=unknown
12338 # See if we're dealing with a universal compiler.
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12341 #ifndef __APPLE_CC__
12342 not a universal capable compiler
12343 #endif
12344 typedef int dummy;
12345
12346 _ACEOF
12347 if ac_fn_c_try_compile "$LINENO"; then :
12348
12349 # Check for potential -arch flags. It is not universal unless
12350 # there are at least two -arch flags with different values.
12351 ac_arch=
12352 ac_prev=
12353 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12354 if test -n "$ac_prev"; then
12355 case $ac_word in
12356 i?86 | x86_64 | ppc | ppc64)
12357 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12358 ac_arch=$ac_word
12359 else
12360 ac_cv_c_bigendian=universal
12361 break
12362 fi
12363 ;;
12364 esac
12365 ac_prev=
12366 elif test "x$ac_word" = "x-arch"; then
12367 ac_prev=arch
12368 fi
12369 done
12370 fi
12371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372 if test $ac_cv_c_bigendian = unknown; then
12373 # See if sys/param.h defines the BYTE_ORDER macro.
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12376 #include <sys/types.h>
12377 #include <sys/param.h>
12378
12379 int
12380 main ()
12381 {
12382 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12383 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12384 && LITTLE_ENDIAN)
12385 bogus endian macros
12386 #endif
12387
12388 ;
12389 return 0;
12390 }
12391 _ACEOF
12392 if ac_fn_c_try_compile "$LINENO"; then :
12393 # It does; now see whether it defined to BIG_ENDIAN or not.
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h. */
12396 #include <sys/types.h>
12397 #include <sys/param.h>
12398
12399 int
12400 main ()
12401 {
12402 #if BYTE_ORDER != BIG_ENDIAN
12403 not big endian
12404 #endif
12405
12406 ;
12407 return 0;
12408 }
12409 _ACEOF
12410 if ac_fn_c_try_compile "$LINENO"; then :
12411 ac_cv_c_bigendian=yes
12412 else
12413 ac_cv_c_bigendian=no
12414 fi
12415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416 fi
12417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12418 fi
12419 if test $ac_cv_c_bigendian = unknown; then
12420 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12423 #include <limits.h>
12424
12425 int
12426 main ()
12427 {
12428 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12429 bogus endian macros
12430 #endif
12431
12432 ;
12433 return 0;
12434 }
12435 _ACEOF
12436 if ac_fn_c_try_compile "$LINENO"; then :
12437 # It does; now see whether it defined to _BIG_ENDIAN or not.
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12440 #include <limits.h>
12441
12442 int
12443 main ()
12444 {
12445 #ifndef _BIG_ENDIAN
12446 not big endian
12447 #endif
12448
12449 ;
12450 return 0;
12451 }
12452 _ACEOF
12453 if ac_fn_c_try_compile "$LINENO"; then :
12454 ac_cv_c_bigendian=yes
12455 else
12456 ac_cv_c_bigendian=no
12457 fi
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459 fi
12460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461 fi
12462 if test $ac_cv_c_bigendian = unknown; then
12463 # Compile a test program.
12464 if test "$cross_compiling" = yes; then :
12465 # Try to guess by grepping values from an object file.
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12468 short int ascii_mm[] =
12469 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12470 short int ascii_ii[] =
12471 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12472 int use_ascii (int i) {
12473 return ascii_mm[i] + ascii_ii[i];
12474 }
12475 short int ebcdic_ii[] =
12476 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12477 short int ebcdic_mm[] =
12478 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12479 int use_ebcdic (int i) {
12480 return ebcdic_mm[i] + ebcdic_ii[i];
12481 }
12482 extern int foo;
12483
12484 int
12485 main ()
12486 {
12487 return use_ascii (foo) == use_ebcdic (foo);
12488 ;
12489 return 0;
12490 }
12491 _ACEOF
12492 if ac_fn_c_try_compile "$LINENO"; then :
12493 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12494 ac_cv_c_bigendian=yes
12495 fi
12496 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12497 if test "$ac_cv_c_bigendian" = unknown; then
12498 ac_cv_c_bigendian=no
12499 else
12500 # finding both strings is unlikely to happen, but who knows?
12501 ac_cv_c_bigendian=unknown
12502 fi
12503 fi
12504 fi
12505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12506 else
12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h. */
12509 $ac_includes_default
12510 int
12511 main ()
12512 {
12513
12514 /* Are we little or big endian? From Harbison&Steele. */
12515 union
12516 {
12517 long int l;
12518 char c[sizeof (long int)];
12519 } u;
12520 u.l = 1;
12521 return u.c[sizeof (long int) - 1] == 1;
12522
12523 ;
12524 return 0;
12525 }
12526 _ACEOF
12527 if ac_fn_c_try_run "$LINENO"; then :
12528 ac_cv_c_bigendian=no
12529 else
12530 ac_cv_c_bigendian=yes
12531 fi
12532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12533 conftest.$ac_objext conftest.beam conftest.$ac_ext
12534 fi
12535
12536 fi
12537 fi
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12539 $as_echo "$ac_cv_c_bigendian" >&6; }
12540 case $ac_cv_c_bigendian in #(
12541 yes)
12542 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12543 ;; #(
12544 no)
12545 ;; #(
12546 universal)
12547
12548 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12549
12550 ;; #(
12551 *)
12552 as_fn_error $? "unknown endianness
12553 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12554 esac
12555
12556
12557 te_file=generic
12558
12559 # Makefile target for installing gas in $(tooldir)/bin.
12560 install_tooldir=install-exec-tooldir
12561
12562 canon_targets=""
12563 all_targets=no
12564 if test -n "$enable_targets" ; then
12565 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12566 if test $t = "all"; then
12567 all_targets=yes
12568 continue
12569 fi
12570 result=`$ac_config_sub $t 2>/dev/null`
12571 if test -n "$result" ; then
12572 canon_targets="$canon_targets $result"
12573 # else
12574 # # Permit "all", etc. We don't support it yet though.
12575 # canon_targets="$canon_targets $t"
12576 fi
12577 done
12578 _gas_uniq_list="$canon_targets"
12579 _gas_uniq_newlist=""
12580 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12581 case $_gas_uniq_i in
12582 _gas_uniq_dummy) ;;
12583 *) case " $_gas_uniq_newlist " in
12584 *" $_gas_uniq_i "*) ;;
12585 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12586 esac ;;
12587 esac
12588 done
12589 canon_targets=$_gas_uniq_newlist
12590
12591 fi
12592
12593 emulations=""
12594
12595 for this_target in $target $canon_targets ; do
12596
12597 targ=${this_target}
12598 . ${srcdir}/configure.tgt
12599
12600 case ${target_cpu} in
12601 crisv32)
12602
12603 cat >>confdefs.h <<_ACEOF
12604 #define DEFAULT_CRIS_ARCH $arch
12605 _ACEOF
12606
12607 ;;
12608 esac
12609
12610 if test ${this_target} = $target ; then
12611 target_cpu_type=${cpu_type}
12612 elif test ${target_cpu_type} != ${cpu_type} ; then
12613 continue
12614 fi
12615
12616 generic_target=${cpu_type}-${target_vendor}-${target_os}
12617 case ${generic_target} in
12618 i386-*-msdosdjgpp* \
12619 | i386-*-go32* \
12620 | i386-go32-rtems*)
12621
12622 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12623
12624 ;;
12625
12626 i386-*-solaris2 \
12627 | x86_64-*-solaris2 \
12628 | i386-*-solaris2.[0-9] \
12629 | i386-*-solaris2.1[01] \
12630 | x86_64-*-solaris2.1[01])
12631 if test ${this_target} = $target \
12632 && test ${ac_default_x86_relax_relocations} = unset; then
12633 ac_default_x86_relax_relocations=0
12634 fi
12635 ;;
12636
12637 microblaze*)
12638 ;;
12639
12640 ppc-*-aix[5-9].*)
12641
12642 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12643
12644 ;;
12645 ppc-*-solaris*)
12646 if test ${this_target} = $target; then
12647
12648 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12649
12650 fi
12651 if test x${endian} = xbig; then
12652 as_fn_error $? "Solaris must be configured little endian" "$LINENO" 5
12653 fi
12654 ;;
12655 esac
12656
12657 if test ${this_target} = $target ; then
12658 endian_def=
12659 if test x${endian} = xbig; then
12660 endian_def=1
12661 elif test x${endian} = xlittle; then
12662 endian_def=0
12663 fi
12664 if test x${endian_def} != x; then
12665
12666 cat >>confdefs.h <<_ACEOF
12667 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12668 _ACEOF
12669
12670 fi
12671 fi
12672
12673 # Other random stuff.
12674
12675 case ${cpu_type} in
12676 mips)
12677 # Set mips_cpu to the name of the default CPU.
12678 case ${target_cpu} in
12679 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12680 mips_cpu=from-abi
12681 ;;
12682 mipsisa32 | mipsisa32el)
12683 mips_cpu=mips32
12684 ;;
12685 mipsisa32r2 | mipsisa32r2el)
12686 mips_cpu=mips32r2
12687 ;;
12688 mipsisa32r3 | mipsisa32r3el)
12689 mips_cpu=mips32r3
12690 ;;
12691 mipsisa32r5 | mipsisa32r5el)
12692 mips_cpu=mips32r5
12693 ;;
12694 mipsisa32r6 | mipsisa32r6el)
12695 mips_cpu=mips32r6
12696 ;;
12697 mipsisa64 | mipsisa64el)
12698 mips_cpu=mips64
12699 ;;
12700 mipsisa64r2 | mipsisa64r2el)
12701 mips_cpu=mips64r2
12702 ;;
12703 mipsisa64r3 | mipsisa64r3el)
12704 mips_cpu=mips64r3
12705 ;;
12706 mipsisa64r5 | mipsisa64r5el)
12707 mips_cpu=mips64r5
12708 ;;
12709 mipsisa64r6 | mipsisa64r6el)
12710 mips_cpu=mips64r6
12711 ;;
12712 mipstx39 | mipstx39el)
12713 mips_cpu=r3900
12714 ;;
12715 mips64vr | mips64vrel)
12716 mips_cpu=vr4100
12717 ;;
12718 mipsisa32r2* | mipsisa64r2*)
12719 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12720 ;;
12721 mipsisa32r6* | mipsisa64r6*)
12722 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12723 ;;
12724 mips64* | mipsisa64* | mipsisa32*)
12725 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12726 ;;
12727 mips*)
12728 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12729 ;;
12730 *)
12731 as_fn_error $? "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12732 ;;
12733 esac
12734 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12735 # binaries. It's a GNU extension that some OSes don't understand.
12736 case ${target} in
12737 *-*-irix*)
12738 use_e_mips_abi_o32=0
12739 ;;
12740 *)
12741 use_e_mips_abi_o32=1
12742 ;;
12743 esac
12744 # Decide whether to generate 32-bit or 64-bit code by default.
12745 # Used to resolve -march=from-abi when an embedded ABI is selected.
12746 case ${target} in
12747 mips64*-*-* | mipsisa64*-*-*)
12748 mips_default_64bit=1
12749 ;;
12750 *)
12751 mips_default_64bit=0
12752 ;;
12753 esac
12754 # Decide which ABI to target by default.
12755 case ${target} in
12756 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \
12757 | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*)
12758 mips_default_abi=N32_ABI
12759 ;;
12760 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12761 mips_default_abi=O32_ABI
12762 ;;
12763 mips64*-openbsd*)
12764 mips_default_abi=N64_ABI
12765 ;;
12766 *)
12767 mips_default_abi=NO_ABI
12768 ;;
12769 esac
12770
12771 cat >>confdefs.h <<_ACEOF
12772 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12773 _ACEOF
12774
12775
12776 cat >>confdefs.h <<_ACEOF
12777 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12778 _ACEOF
12779
12780
12781 cat >>confdefs.h <<_ACEOF
12782 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12783 _ACEOF
12784
12785
12786 cat >>confdefs.h <<_ACEOF
12787 #define MIPS_DEFAULT_ABI $mips_default_abi
12788 _ACEOF
12789
12790 ;;
12791 esac
12792
12793 # Do we need the opcodes library?
12794 case ${cpu_type} in
12795 vax | tic30)
12796 ;;
12797
12798 *)
12799 need_opcodes=yes
12800
12801 case "${enable_shared}" in
12802 yes) shared_opcodes=true ;;
12803 *opcodes*) shared_opcodes=true ;;
12804 *) shared_opcodes=false ;;
12805 esac
12806 ;;
12807 esac
12808
12809 # Any other special object files needed ?
12810 case ${cpu_type} in
12811
12812 bfin)
12813 for f in bfin-parse.o bfin-lex-wrapper.o; do
12814 case " $extra_objects " in
12815 *" $f "*) ;;
12816 *) extra_objects="$extra_objects $f" ;;
12817 esac
12818 done
12819 ;;
12820
12821 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12822 using_cgen=yes
12823 ;;
12824
12825 m32c)
12826 using_cgen=yes
12827 ;;
12828 frv)
12829 using_cgen=yes
12830 ;;
12831 m68k)
12832 f=m68k-parse.o
12833 case " $extra_objects " in
12834 *" $f "*) ;;
12835 *) extra_objects="$extra_objects $f" ;;
12836 esac
12837 ;;
12838
12839 mep)
12840 using_cgen=yes
12841 ;;
12842
12843 mips)
12844 for f in itbl-parse.o itbl-lex-wrapper.o itbl-ops.o; do
12845 case " $extra_objects " in
12846 *" $f "*) ;;
12847 *) extra_objects="$extra_objects $f" ;;
12848 esac
12849 done
12850 ;;
12851
12852 mt)
12853 using_cgen=yes
12854 ;;
12855
12856 nds32)
12857 # setup NDS32_LINUX_TOOLCHAIN definition
12858 if test "linux" = $em; then
12859
12860 $as_echo "#define NDS32_LINUX_TOOLCHAIN 1" >>confdefs.h
12861
12862 else
12863
12864 $as_echo "#define NDS32_LINUX_TOOLCHAIN 0" >>confdefs.h
12865
12866 fi
12867
12868 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12869 # based on arch_name.
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12871 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12872 if test "x${with_arch}" != x; then
12873 case ${with_arch} in
12874 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12875
12876 cat >>confdefs.h <<_ACEOF
12877 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12878 _ACEOF
12879
12880 ;;
12881 *)
12882 as_fn_error $? "This kind of arch name does *NOT* exist!" "$LINENO" 5
12883 ;;
12884 esac
12885 fi
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12887 $as_echo "$with_arch" >&6; }
12888
12889 # Decide features one by one.
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12891 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12892 if test "x${enable_dx_regs}" = xyes; then
12893
12894 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12895
12896 else
12897
12898 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12899
12900 fi
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12902 $as_echo "$enable_dx_regs" >&6; }
12903
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12905 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12906 if test "x${enable_perf_ext}" = xno; then
12907
12908 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12909
12910 else
12911
12912 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12913
12914 fi
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12916 $as_echo "$enable_perf_ext" >&6; }
12917
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12919 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12920 if test "x${enable_perf_ext2}" = xno; then
12921
12922 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12923
12924 else
12925
12926 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12927
12928 fi
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12930 $as_echo "$enable_perf_ext2" >&6; }
12931
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12933 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12934 if test "x${enable_string_ext}" = xno; then
12935
12936 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12937
12938 else
12939
12940 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12941
12942 fi
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12944 $as_echo "$enable_string_ext" >&6; }
12945
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12947 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12948 if test "x${enable_audio_ext}" = xno; then
12949
12950 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12951
12952 else
12953
12954 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12955
12956 fi
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12958 $as_echo "$enable_audio_ext" >&6; }
12959
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dsp-ext" >&5
12961 $as_echo_n "checking for default configuration of --enable-dsp-ext... " >&6; }
12962 if test "x${enable_dsp_ext}" = xno; then
12963
12964 $as_echo "#define NDS32_DEFAULT_DSP_EXT 0" >>confdefs.h
12965
12966 else
12967
12968 $as_echo "#define NDS32_DEFAULT_DSP_EXT 1" >>confdefs.h
12969
12970 fi
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dsp_ext" >&5
12972 $as_echo "$enable_dsp_ext" >&6; }
12973
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-zol-ext" >&5
12975 $as_echo_n "checking for default configuration of --enable-zol-ext... " >&6; }
12976 if test "x${enable_zol_ext}" = xno; then
12977
12978 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 0" >>confdefs.h
12979
12980 else
12981
12982 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 1" >>confdefs.h
12983
12984 fi
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zol_ext" >&5
12986 $as_echo "$enable_zol_ext" >&6; }
12987 ;;
12988
12989 aarch64 | i386 | riscv | s390 | sparc)
12990 if test $this_target = $target ; then
12991
12992 cat >>confdefs.h <<_ACEOF
12993 #define DEFAULT_ARCH "${arch}"
12994 _ACEOF
12995
12996 fi
12997 ;;
12998
12999 rl78)
13000 f=rl78-parse.o
13001 case " $extra_objects " in
13002 *" $f "*) ;;
13003 *) extra_objects="$extra_objects $f" ;;
13004 esac
13005 ;;
13006
13007 rx)
13008 f=rx-parse.o
13009 case " $extra_objects " in
13010 *" $f "*) ;;
13011 *) extra_objects="$extra_objects $f" ;;
13012 esac
13013 ;;
13014
13015 xstormy16)
13016 using_cgen=yes
13017 ;;
13018
13019 xc16x)
13020 using_cgen=yes
13021 ;;
13022
13023 xtensa)
13024 f=config/xtensa-relax.o
13025 case " $extra_objects " in
13026 *" $f "*) ;;
13027 *) extra_objects="$extra_objects $f" ;;
13028 esac
13029 ;;
13030
13031 *)
13032 ;;
13033 esac
13034
13035 if test $using_cgen = yes ; then
13036 f=cgen.o
13037 case " $extra_objects " in
13038 *" $f "*) ;;
13039 *) extra_objects="$extra_objects $f" ;;
13040 esac
13041 fi
13042
13043 # See if we really can support this configuration with the emulation code.
13044
13045 if test $this_target = $target ; then
13046 obj_format=$fmt
13047 te_file=$em
13048 fi
13049
13050 case ${te_file} in
13051 vms)
13052 f=config/te-vms.o
13053 case " $extra_objects " in
13054 *" $f "*) ;;
13055 *) extra_objects="$extra_objects $f" ;;
13056 esac ;;
13057 esac
13058
13059 # From target name and format, produce a list of supported emulations.
13060
13061 case ${generic_target}-${fmt} in
13062 mips-*-*-*) case "$endian" in
13063 big) emulation="mipsbelf mipslelf mipself" ;;
13064 *) emulation="mipslelf mipsbelf mipself" ;;
13065 esac ;;
13066 # i386-pc-pe-coff != i386-pc-coff.
13067 i386-*-pe-coff) ;;
13068 # Uncommenting the next line will turn on support for i386 AOUT
13069 # for the default linux configuration
13070 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
13071 #
13072 i386-*-aout) emulation="i386aout" ;;
13073 i386-*-coff) emulation="i386coff" ;;
13074 i386-*-elf) emulation="i386elf" ;;
13075
13076 # Always all formats. The first stated emulation becomes the default.
13077 cris-*-*aout*) emulation="crisaout criself" ;;
13078 cris-*-*) emulation="criself crisaout" ;;
13079 esac
13080
13081 emulations="$emulations $emulation"
13082
13083 done
13084
13085 if test ${ac_default_x86_relax_relocations} = unset; then
13086 ac_default_x86_relax_relocations=1
13087 fi
13088
13089 cat >>confdefs.h <<_ACEOF
13090 #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
13091 _ACEOF
13092
13093
13094 if test ${ac_default_elf_stt_common} = unset; then
13095 ac_default_elf_stt_common=0
13096 fi
13097
13098 cat >>confdefs.h <<_ACEOF
13099 #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
13100 _ACEOF
13101
13102
13103
13104 cat >>confdefs.h <<_ACEOF
13105 #define DEFAULT_GENERATE_BUILD_NOTES $ac_default_generate_build_notes
13106 _ACEOF
13107
13108
13109 if test ${ac_default_generate_x86_used_note} = unset; then
13110 ac_default_generate_x86_used_note=0
13111 fi
13112
13113 cat >>confdefs.h <<_ACEOF
13114 #define DEFAULT_X86_USED_NOTE $ac_default_generate_x86_used_note
13115 _ACEOF
13116
13117
13118 if test ${ac_default_generate_riscv_attr} = unset; then
13119 case ${target_os} in
13120 elf)
13121 ac_default_generate_riscv_attr=1
13122 ;;
13123 *)
13124 ac_default_generate_riscv_attr=0
13125 ;;
13126 esac
13127 fi
13128
13129
13130 cat >>confdefs.h <<_ACEOF
13131 #define DEFAULT_RISCV_ATTR $ac_default_generate_riscv_attr
13132 _ACEOF
13133
13134
13135 if test x$ac_default_compressed_debug_sections = xyes ; then
13136
13137 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
13138
13139 fi
13140
13141 # Turn on all targets if possible
13142 if test ${all_targets} = "yes"; then
13143 case ${target_cpu_type} in
13144 i386)
13145 case ${obj_format} in
13146 aout)
13147 emulations="$emulations i386coff i386elf"
13148 ;;
13149 coff)
13150 emulations="$emulations i386aout i386elf"
13151 ;;
13152 elf)
13153 emulations="$emulations i386aout i386coff"
13154 ;;
13155 esac
13156 ;;
13157 x86_64)
13158 case ${obj_format} in
13159 aout)
13160 emulations="$emulations i386coff i386elf"
13161 ;;
13162 coff)
13163 emulations="$emulations i386aout i386elf"
13164 ;;
13165 elf)
13166 emulations="$emulations i386aout i386coff"
13167 ;;
13168 esac
13169 ;;
13170 esac
13171 fi
13172
13173 # PE code has way too many macros tweaking behaviour
13174 case ${te_file} in
13175 pe*) emulations="" ;;
13176 esac
13177
13178 # Assign floating point type. Most processors with FP support
13179 # IEEE FP. On those that don't support FP at all, usually IEEE
13180 # is emulated.
13181 case ${target_cpu} in
13182 vax | pdp11 ) atof=vax ;;
13183 *) atof=ieee ;;
13184 esac
13185
13186 case "${obj_format}" in
13187 "") as_fn_error $? "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
13188 esac
13189
13190 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
13191 cgen_cpu_prefix=""
13192 if test $using_cgen = yes ; then
13193 case ${target_cpu} in
13194 or1knd)
13195 cgen_cpu_prefix=or1k ;;
13196 *) cgen_cpu_prefix=${target_cpu} ;;
13197 esac
13198
13199
13200 $as_echo "#define USING_CGEN 1" >>confdefs.h
13201
13202 fi
13203
13204
13205 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
13206 as_fn_error $? "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
13207 fi
13208
13209 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
13210 as_fn_error $? "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
13211 fi
13212
13213 # Some COFF configurations want these random other flags set.
13214 case ${obj_format} in
13215 coff)
13216 case ${target_cpu_type} in
13217 i386)
13218 $as_echo "#define I386COFF 1" >>confdefs.h
13219 ;;
13220 x86_64)
13221 $as_echo "#define I386COFF 1" >>confdefs.h
13222 ;;
13223 esac
13224 ;;
13225 esac
13226
13227 # Getting this done right is going to be a bitch. Each configuration specified
13228 # with --enable-targets=... should be checked for environment, format, cpu
13229 # setting.
13230 #
13231 # For each configuration, the necessary object file support code must be linked
13232 # in. This might be only one, it might be up to four. The necessary emulation
13233 # code needs to be provided, too.
13234 #
13235 # And then there's "--enable-targets=all"....
13236 #
13237 # For now, just always do it for MIPS ELF configurations. Sigh.
13238
13239 formats="${obj_format}"
13240 emfiles=""
13241 EMULATIONS=""
13242 _gas_uniq_list="$emulations"
13243 _gas_uniq_newlist=""
13244 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13245 case $_gas_uniq_i in
13246 _gas_uniq_dummy) ;;
13247 *) case " $_gas_uniq_newlist " in
13248 *" $_gas_uniq_i "*) ;;
13249 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13250 esac ;;
13251 esac
13252 done
13253 emulations=$_gas_uniq_newlist
13254
13255 for em in . $emulations ; do
13256 case $em in
13257 .) continue ;;
13258 mipsbelf | mipslelf | mipself)
13259 fmt=elf file=mipself ;;
13260 *coff)
13261 fmt=coff file=$em ;;
13262 *aout)
13263 fmt=aout file=$em ;;
13264 *elf)
13265 fmt=elf file=$em ;;
13266 esac
13267 formats="$formats $fmt"
13268 emfiles="$emfiles config/e-$file.o"
13269 EMULATIONS="$EMULATIONS &$em,"
13270 done
13271 _gas_uniq_list="$formats"
13272 _gas_uniq_newlist=""
13273 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13274 case $_gas_uniq_i in
13275 _gas_uniq_dummy) ;;
13276 *) case " $_gas_uniq_newlist " in
13277 *" $_gas_uniq_i "*) ;;
13278 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13279 esac ;;
13280 esac
13281 done
13282 formats=$_gas_uniq_newlist
13283
13284 _gas_uniq_list="$emfiles"
13285 _gas_uniq_newlist=""
13286 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13287 case $_gas_uniq_i in
13288 _gas_uniq_dummy) ;;
13289 *) case " $_gas_uniq_newlist " in
13290 *" $_gas_uniq_i "*) ;;
13291 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13292 esac ;;
13293 esac
13294 done
13295 emfiles=$_gas_uniq_newlist
13296
13297 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
13298 for fmt in $formats ; do
13299 case $fmt in
13300 aout)
13301 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
13302 ;;
13303 coff)
13304 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
13305 ;;
13306 ecoff)
13307 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
13308 ;;
13309 elf)
13310 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
13311 ;;
13312 generic)
13313 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
13314 ;;
13315 som)
13316 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
13317 ;;
13318 esac
13319 extra_objects="$extra_objects config/obj-$fmt.o"
13320 done
13321 obj_format=multi
13322 fi
13323 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
13324 DEFAULT_EMULATION=`set . $emulations ; echo $2`
13325 # e-mipself has more than one emulation per file, e-i386* has just one at the
13326 # moment. If only one emulation is specified, then don't define
13327 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
13328 case "${obj_format}${emfiles}" in
13329 multi* | *mipself*)
13330 extra_objects="$extra_objects $emfiles"
13331
13332 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
13333 ;;
13334 esac
13335 fi
13336
13337
13338 cat >>confdefs.h <<_ACEOF
13339 #define EMULATIONS $EMULATIONS
13340 _ACEOF
13341
13342
13343 cat >>confdefs.h <<_ACEOF
13344 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
13345 _ACEOF
13346
13347
13348 reject_dev_configs=yes
13349
13350 case ${reject_dev_configs}-${dev} in
13351 yes-yes) # Oops.
13352 as_fn_error $? "GAS does not support the ${generic_target} configuration." "$LINENO" 5
13353 ;;
13354 esac
13355
13356
13357
13358
13359
13360
13361
13362 # do we need the opcodes library?
13363 case "${need_opcodes}" in
13364 yes)
13365 OPCODES_LIB=../opcodes/libopcodes.la
13366 ;;
13367 esac
13368
13369
13370
13371
13372 cat >>confdefs.h <<_ACEOF
13373 #define TARGET_ALIAS "${target_alias}"
13374 _ACEOF
13375
13376
13377 cat >>confdefs.h <<_ACEOF
13378 #define TARGET_CANONICAL "${target}"
13379 _ACEOF
13380
13381
13382 cat >>confdefs.h <<_ACEOF
13383 #define TARGET_CPU "${target_cpu}"
13384 _ACEOF
13385
13386
13387 cat >>confdefs.h <<_ACEOF
13388 #define TARGET_VENDOR "${target_vendor}"
13389 _ACEOF
13390
13391
13392 cat >>confdefs.h <<_ACEOF
13393 #define TARGET_OS "${target_os}"
13394 _ACEOF
13395
13396
13397 for ac_prog in 'bison -y' byacc
13398 do
13399 # Extract the first word of "$ac_prog", so it can be a program name with args.
13400 set dummy $ac_prog; ac_word=$2
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13402 $as_echo_n "checking for $ac_word... " >&6; }
13403 if ${ac_cv_prog_YACC+:} false; then :
13404 $as_echo_n "(cached) " >&6
13405 else
13406 if test -n "$YACC"; then
13407 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13408 else
13409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410 for as_dir in $PATH
13411 do
13412 IFS=$as_save_IFS
13413 test -z "$as_dir" && as_dir=.
13414 for ac_exec_ext in '' $ac_executable_extensions; do
13415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13416 ac_cv_prog_YACC="$ac_prog"
13417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13418 break 2
13419 fi
13420 done
13421 done
13422 IFS=$as_save_IFS
13423
13424 fi
13425 fi
13426 YACC=$ac_cv_prog_YACC
13427 if test -n "$YACC"; then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13429 $as_echo "$YACC" >&6; }
13430 else
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432 $as_echo "no" >&6; }
13433 fi
13434
13435
13436 test -n "$YACC" && break
13437 done
13438 test -n "$YACC" || YACC="yacc"
13439
13440 for ac_prog in flex lex
13441 do
13442 # Extract the first word of "$ac_prog", so it can be a program name with args.
13443 set dummy $ac_prog; ac_word=$2
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13445 $as_echo_n "checking for $ac_word... " >&6; }
13446 if ${ac_cv_prog_LEX+:} false; then :
13447 $as_echo_n "(cached) " >&6
13448 else
13449 if test -n "$LEX"; then
13450 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13451 else
13452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13453 for as_dir in $PATH
13454 do
13455 IFS=$as_save_IFS
13456 test -z "$as_dir" && as_dir=.
13457 for ac_exec_ext in '' $ac_executable_extensions; do
13458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13459 ac_cv_prog_LEX="$ac_prog"
13460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13461 break 2
13462 fi
13463 done
13464 done
13465 IFS=$as_save_IFS
13466
13467 fi
13468 fi
13469 LEX=$ac_cv_prog_LEX
13470 if test -n "$LEX"; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13472 $as_echo "$LEX" >&6; }
13473 else
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475 $as_echo "no" >&6; }
13476 fi
13477
13478
13479 test -n "$LEX" && break
13480 done
13481 test -n "$LEX" || LEX=":"
13482
13483 case "$LEX" in
13484 :|*"missing "*) ;;
13485 *) cat >conftest.l <<_ACEOF
13486 %%
13487 a { ECHO; }
13488 b { REJECT; }
13489 c { yymore (); }
13490 d { yyless (1); }
13491 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
13492 yyless ((input () != 0)); }
13493 f { unput (yytext[0]); }
13494 . { BEGIN INITIAL; }
13495 %%
13496 #ifdef YYTEXT_POINTER
13497 extern char *yytext;
13498 #endif
13499 int
13500 main (void)
13501 {
13502 return ! yylex () + ! yywrap ();
13503 }
13504 _ACEOF
13505 { { ac_try="$LEX conftest.l"
13506 case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509 esac
13510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13511 $as_echo "$ac_try_echo"; } >&5
13512 (eval "$LEX conftest.l") 2>&5
13513 ac_status=$?
13514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13515 test $ac_status = 0; }
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13517 $as_echo_n "checking lex output file root... " >&6; }
13518 if ${ac_cv_prog_lex_root+:} false; then :
13519 $as_echo_n "(cached) " >&6
13520 else
13521
13522 if test -f lex.yy.c; then
13523 ac_cv_prog_lex_root=lex.yy
13524 elif test -f lexyy.c; then
13525 ac_cv_prog_lex_root=lexyy
13526 else
13527 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13528 fi
13529 fi
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13531 $as_echo "$ac_cv_prog_lex_root" >&6; }
13532 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13533
13534 if test -z "${LEXLIB+set}"; then
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13536 $as_echo_n "checking lex library... " >&6; }
13537 if ${ac_cv_lib_lex+:} false; then :
13538 $as_echo_n "(cached) " >&6
13539 else
13540
13541 ac_save_LIBS=$LIBS
13542 ac_cv_lib_lex='none needed'
13543 for ac_lib in '' -lfl -ll; do
13544 LIBS="$ac_lib $ac_save_LIBS"
13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13547 `cat $LEX_OUTPUT_ROOT.c`
13548 _ACEOF
13549 if ac_fn_c_try_link "$LINENO"; then :
13550 ac_cv_lib_lex=$ac_lib
13551 fi
13552 rm -f core conftest.err conftest.$ac_objext \
13553 conftest$ac_exeext conftest.$ac_ext
13554 test "$ac_cv_lib_lex" != 'none needed' && break
13555 done
13556 LIBS=$ac_save_LIBS
13557
13558 fi
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13560 $as_echo "$ac_cv_lib_lex" >&6; }
13561 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13562 fi
13563
13564
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13566 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13567 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 # POSIX says lex can declare yytext either as a pointer or an array; the
13571 # default is implementation-dependent. Figure out which it is, since
13572 # not all implementations provide the %pointer and %array declarations.
13573 ac_cv_prog_lex_yytext_pointer=no
13574 ac_save_LIBS=$LIBS
13575 LIBS="$LEXLIB $ac_save_LIBS"
13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h. */
13578
13579 #define YYTEXT_POINTER 1
13580 `cat $LEX_OUTPUT_ROOT.c`
13581 _ACEOF
13582 if ac_fn_c_try_link "$LINENO"; then :
13583 ac_cv_prog_lex_yytext_pointer=yes
13584 fi
13585 rm -f core conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
13587 LIBS=$ac_save_LIBS
13588
13589 fi
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13591 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13592 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13593
13594 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13595
13596 fi
13597 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13598 ;;
13599 esac
13600 if test "$LEX" = :; then
13601 LEX=${am_missing_run}flex
13602 fi
13603
13604 ALL_LINGUAS="es fi fr id ja ru rw sv tr uk zh_CN"
13605 # If we haven't got the data from the intl directory,
13606 # assume NLS is disabled.
13607 USE_NLS=no
13608 LIBINTL=
13609 LIBINTL_DEP=
13610 INCINTL=
13611 XGETTEXT=
13612 GMSGFMT=
13613 POSUB=
13614
13615 if test -f ../intl/config.intl; then
13616 . ../intl/config.intl
13617 fi
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13619 $as_echo_n "checking whether NLS is requested... " >&6; }
13620 if test x"$USE_NLS" != xyes; then
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622 $as_echo "no" >&6; }
13623 else
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13625 $as_echo "yes" >&6; }
13626
13627 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13628
13629
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13631 $as_echo_n "checking for catalogs to be installed... " >&6; }
13632 # Look for .po and .gmo files in the source directory.
13633 CATALOGS=
13634 XLINGUAS=
13635 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13636 # If there aren't any .gmo files the shell will give us the
13637 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13638 # weeded out.
13639 case "$cat" in *\**)
13640 continue;;
13641 esac
13642 # The quadruple backslash is collapsed to a double backslash
13643 # by the backticks, then collapsed again by the double quotes,
13644 # leaving us with one backslash in the sed expression (right
13645 # before the dot that mustn't act as a wildcard).
13646 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13647 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13648 # The user is allowed to set LINGUAS to a list of languages to
13649 # install catalogs for. If it's empty that means "all of them."
13650 if test "x$LINGUAS" = x; then
13651 CATALOGS="$CATALOGS $cat"
13652 XLINGUAS="$XLINGUAS $lang"
13653 else
13654 case "$LINGUAS" in *$lang*)
13655 CATALOGS="$CATALOGS $cat"
13656 XLINGUAS="$XLINGUAS $lang"
13657 ;;
13658 esac
13659 fi
13660 done
13661 LINGUAS="$XLINGUAS"
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13663 $as_echo "$LINGUAS" >&6; }
13664
13665
13666 DATADIRNAME=share
13667
13668 INSTOBJEXT=.mo
13669
13670 GENCAT=gencat
13671
13672 CATOBJEXT=.gmo
13673
13674 fi
13675
13676 MKINSTALLDIRS=
13677 if test -n "$ac_aux_dir"; then
13678 case "$ac_aux_dir" in
13679 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13680 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13681 esac
13682 fi
13683 if test -z "$MKINSTALLDIRS"; then
13684 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13685 fi
13686
13687
13688
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13690 $as_echo_n "checking whether NLS is requested... " >&6; }
13691 # Check whether --enable-nls was given.
13692 if test "${enable_nls+set}" = set; then :
13693 enableval=$enable_nls; USE_NLS=$enableval
13694 else
13695 USE_NLS=yes
13696 fi
13697
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13699 $as_echo "$USE_NLS" >&6; }
13700
13701
13702
13703
13704
13705
13706 # Prepare PATH_SEPARATOR.
13707 # The user is always right.
13708 if test "${PATH_SEPARATOR+set}" != set; then
13709 echo "#! /bin/sh" >conf$$.sh
13710 echo "exit 0" >>conf$$.sh
13711 chmod +x conf$$.sh
13712 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13713 PATH_SEPARATOR=';'
13714 else
13715 PATH_SEPARATOR=:
13716 fi
13717 rm -f conf$$.sh
13718 fi
13719
13720 # Find out how to test for executable files. Don't use a zero-byte file,
13721 # as systems may use methods other than mode bits to determine executability.
13722 cat >conf$$.file <<_ASEOF
13723 #! /bin/sh
13724 exit 0
13725 _ASEOF
13726 chmod +x conf$$.file
13727 if test -x conf$$.file >/dev/null 2>&1; then
13728 ac_executable_p="test -x"
13729 else
13730 ac_executable_p="test -f"
13731 fi
13732 rm -f conf$$.file
13733
13734 # Extract the first word of "msgfmt", so it can be a program name with args.
13735 set dummy msgfmt; ac_word=$2
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737 $as_echo_n "checking for $ac_word... " >&6; }
13738 if ${ac_cv_path_MSGFMT+:} false; then :
13739 $as_echo_n "(cached) " >&6
13740 else
13741 case "$MSGFMT" in
13742 [\\/]* | ?:[\\/]*)
13743 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13744 ;;
13745 *)
13746 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13747 for ac_dir in $PATH; do
13748 IFS="$ac_save_IFS"
13749 test -z "$ac_dir" && ac_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
13751 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13752 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13753 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13754 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13755 break 2
13756 fi
13757 fi
13758 done
13759 done
13760 IFS="$ac_save_IFS"
13761 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13762 ;;
13763 esac
13764 fi
13765 MSGFMT="$ac_cv_path_MSGFMT"
13766 if test "$MSGFMT" != ":"; then
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13768 $as_echo "$MSGFMT" >&6; }
13769 else
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 $as_echo "no" >&6; }
13772 fi
13773
13774 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13775 set dummy gmsgfmt; ac_word=$2
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777 $as_echo_n "checking for $ac_word... " >&6; }
13778 if ${ac_cv_path_GMSGFMT+:} false; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 case $GMSGFMT in
13782 [\\/]* | ?:[\\/]*)
13783 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13784 ;;
13785 *)
13786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787 for as_dir in $PATH
13788 do
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
13791 for ac_exec_ext in '' $ac_executable_extensions; do
13792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13793 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13795 break 2
13796 fi
13797 done
13798 done
13799 IFS=$as_save_IFS
13800
13801 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13802 ;;
13803 esac
13804 fi
13805 GMSGFMT=$ac_cv_path_GMSGFMT
13806 if test -n "$GMSGFMT"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13808 $as_echo "$GMSGFMT" >&6; }
13809 else
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13812 fi
13813
13814
13815
13816
13817 # Prepare PATH_SEPARATOR.
13818 # The user is always right.
13819 if test "${PATH_SEPARATOR+set}" != set; then
13820 echo "#! /bin/sh" >conf$$.sh
13821 echo "exit 0" >>conf$$.sh
13822 chmod +x conf$$.sh
13823 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13824 PATH_SEPARATOR=';'
13825 else
13826 PATH_SEPARATOR=:
13827 fi
13828 rm -f conf$$.sh
13829 fi
13830
13831 # Find out how to test for executable files. Don't use a zero-byte file,
13832 # as systems may use methods other than mode bits to determine executability.
13833 cat >conf$$.file <<_ASEOF
13834 #! /bin/sh
13835 exit 0
13836 _ASEOF
13837 chmod +x conf$$.file
13838 if test -x conf$$.file >/dev/null 2>&1; then
13839 ac_executable_p="test -x"
13840 else
13841 ac_executable_p="test -f"
13842 fi
13843 rm -f conf$$.file
13844
13845 # Extract the first word of "xgettext", so it can be a program name with args.
13846 set dummy xgettext; ac_word=$2
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13848 $as_echo_n "checking for $ac_word... " >&6; }
13849 if ${ac_cv_path_XGETTEXT+:} false; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 case "$XGETTEXT" in
13853 [\\/]* | ?:[\\/]*)
13854 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13855 ;;
13856 *)
13857 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13858 for ac_dir in $PATH; do
13859 IFS="$ac_save_IFS"
13860 test -z "$ac_dir" && ac_dir=.
13861 for ac_exec_ext in '' $ac_executable_extensions; do
13862 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13863 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13864 (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
13865 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13866 break 2
13867 fi
13868 fi
13869 done
13870 done
13871 IFS="$ac_save_IFS"
13872 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13873 ;;
13874 esac
13875 fi
13876 XGETTEXT="$ac_cv_path_XGETTEXT"
13877 if test "$XGETTEXT" != ":"; then
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13879 $as_echo "$XGETTEXT" >&6; }
13880 else
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13882 $as_echo "no" >&6; }
13883 fi
13884
13885 rm -f messages.po
13886
13887
13888 # Prepare PATH_SEPARATOR.
13889 # The user is always right.
13890 if test "${PATH_SEPARATOR+set}" != set; then
13891 echo "#! /bin/sh" >conf$$.sh
13892 echo "exit 0" >>conf$$.sh
13893 chmod +x conf$$.sh
13894 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13895 PATH_SEPARATOR=';'
13896 else
13897 PATH_SEPARATOR=:
13898 fi
13899 rm -f conf$$.sh
13900 fi
13901
13902 # Find out how to test for executable files. Don't use a zero-byte file,
13903 # as systems may use methods other than mode bits to determine executability.
13904 cat >conf$$.file <<_ASEOF
13905 #! /bin/sh
13906 exit 0
13907 _ASEOF
13908 chmod +x conf$$.file
13909 if test -x conf$$.file >/dev/null 2>&1; then
13910 ac_executable_p="test -x"
13911 else
13912 ac_executable_p="test -f"
13913 fi
13914 rm -f conf$$.file
13915
13916 # Extract the first word of "msgmerge", so it can be a program name with args.
13917 set dummy msgmerge; ac_word=$2
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13919 $as_echo_n "checking for $ac_word... " >&6; }
13920 if ${ac_cv_path_MSGMERGE+:} false; then :
13921 $as_echo_n "(cached) " >&6
13922 else
13923 case "$MSGMERGE" in
13924 [\\/]* | ?:[\\/]*)
13925 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13926 ;;
13927 *)
13928 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13929 for ac_dir in $PATH; do
13930 IFS="$ac_save_IFS"
13931 test -z "$ac_dir" && ac_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13934 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13935 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13936 break 2
13937 fi
13938 fi
13939 done
13940 done
13941 IFS="$ac_save_IFS"
13942 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13943 ;;
13944 esac
13945 fi
13946 MSGMERGE="$ac_cv_path_MSGMERGE"
13947 if test "$MSGMERGE" != ":"; then
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13949 $as_echo "$MSGMERGE" >&6; }
13950 else
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952 $as_echo "no" >&6; }
13953 fi
13954
13955
13956 if test "$GMSGFMT" != ":"; then
13957 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13958 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13959 : ;
13960 else
13961 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13963 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13964 GMSGFMT=":"
13965 fi
13966 fi
13967
13968 if test "$XGETTEXT" != ":"; then
13969 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13970 (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
13971 : ;
13972 else
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13974 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13975 XGETTEXT=":"
13976 fi
13977 rm -f messages.po
13978 fi
13979
13980 ac_config_commands="$ac_config_commands default-1"
13981
13982
13983
13984
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13986 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13987 # Check whether --enable-maintainer-mode was given.
13988 if test "${enable_maintainer_mode+set}" = set; then :
13989 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13990 else
13991 USE_MAINTAINER_MODE=no
13992 fi
13993
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13995 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13996 if test $USE_MAINTAINER_MODE = yes; then
13997 MAINTAINER_MODE_TRUE=
13998 MAINTAINER_MODE_FALSE='#'
13999 else
14000 MAINTAINER_MODE_TRUE='#'
14001 MAINTAINER_MODE_FALSE=
14002 fi
14003
14004 MAINT=$MAINTAINER_MODE_TRUE
14005
14006
14007 if false; then
14008 GENINSRC_NEVER_TRUE=
14009 GENINSRC_NEVER_FALSE='#'
14010 else
14011 GENINSRC_NEVER_TRUE='#'
14012 GENINSRC_NEVER_FALSE=
14013 fi
14014
14015
14016
14017 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
14018 do :
14019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14020 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14021 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14022 cat >>confdefs.h <<_ACEOF
14023 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14024 _ACEOF
14025
14026 fi
14027
14028 done
14029
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14031 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14032 if ${gcc_cv_header_string+:} false; then :
14033 $as_echo_n "(cached) " >&6
14034 else
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14037 #include <string.h>
14038 #include <strings.h>
14039 int
14040 main ()
14041 {
14042
14043 ;
14044 return 0;
14045 }
14046 _ACEOF
14047 if ac_fn_c_try_compile "$LINENO"; then :
14048 gcc_cv_header_string=yes
14049 else
14050 gcc_cv_header_string=no
14051 fi
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 fi
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14055 $as_echo "$gcc_cv_header_string" >&6; }
14056 if test $gcc_cv_header_string = yes; then
14057
14058 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14059
14060 fi
14061
14062
14063 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
14064 # people who are not cross-compiling but are compiling cross-assemblers.
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
14066 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
14067 if test "${host}" = "${target}"; then
14068 cross_gas=no
14069 else
14070 cross_gas=yes
14071
14072 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
14073
14074 fi
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
14076 $as_echo "$cross_gas" >&6; }
14077
14078 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14079 if test "x$ac_cv_type_size_t" = xyes; then :
14080
14081 else
14082
14083 cat >>confdefs.h <<_ACEOF
14084 #define size_t unsigned int
14085 _ACEOF
14086
14087 fi
14088
14089 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14090 # for constant arguments. Useless!
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14092 $as_echo_n "checking for working alloca.h... " >&6; }
14093 if ${ac_cv_working_alloca_h+:} false; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14098 #include <alloca.h>
14099 int
14100 main ()
14101 {
14102 char *p = (char *) alloca (2 * sizeof (int));
14103 if (p) return 0;
14104 ;
14105 return 0;
14106 }
14107 _ACEOF
14108 if ac_fn_c_try_link "$LINENO"; then :
14109 ac_cv_working_alloca_h=yes
14110 else
14111 ac_cv_working_alloca_h=no
14112 fi
14113 rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14115 fi
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14117 $as_echo "$ac_cv_working_alloca_h" >&6; }
14118 if test $ac_cv_working_alloca_h = yes; then
14119
14120 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14121
14122 fi
14123
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14125 $as_echo_n "checking for alloca... " >&6; }
14126 if ${ac_cv_func_alloca_works+:} false; then :
14127 $as_echo_n "(cached) " >&6
14128 else
14129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h. */
14131 #ifdef __GNUC__
14132 # define alloca __builtin_alloca
14133 #else
14134 # ifdef _MSC_VER
14135 # include <malloc.h>
14136 # define alloca _alloca
14137 # else
14138 # ifdef HAVE_ALLOCA_H
14139 # include <alloca.h>
14140 # else
14141 # ifdef _AIX
14142 #pragma alloca
14143 # else
14144 # ifndef alloca /* predefined by HP cc +Olibcalls */
14145 void *alloca (size_t);
14146 # endif
14147 # endif
14148 # endif
14149 # endif
14150 #endif
14151
14152 int
14153 main ()
14154 {
14155 char *p = (char *) alloca (1);
14156 if (p) return 0;
14157 ;
14158 return 0;
14159 }
14160 _ACEOF
14161 if ac_fn_c_try_link "$LINENO"; then :
14162 ac_cv_func_alloca_works=yes
14163 else
14164 ac_cv_func_alloca_works=no
14165 fi
14166 rm -f core conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
14168 fi
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14170 $as_echo "$ac_cv_func_alloca_works" >&6; }
14171
14172 if test $ac_cv_func_alloca_works = yes; then
14173
14174 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14175
14176 else
14177 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14178 # that cause trouble. Some versions do not even contain alloca or
14179 # contain a buggy version. If you still want to use their alloca,
14180 # use ar to extract alloca.o from them instead of compiling alloca.c.
14181
14182 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14183
14184 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14185
14186
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14188 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14189 if ${ac_cv_os_cray+:} false; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14194 #if defined CRAY && ! defined CRAY2
14195 webecray
14196 #else
14197 wenotbecray
14198 #endif
14199
14200 _ACEOF
14201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14202 $EGREP "webecray" >/dev/null 2>&1; then :
14203 ac_cv_os_cray=yes
14204 else
14205 ac_cv_os_cray=no
14206 fi
14207 rm -f conftest*
14208
14209 fi
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14211 $as_echo "$ac_cv_os_cray" >&6; }
14212 if test $ac_cv_os_cray = yes; then
14213 for ac_func in _getb67 GETB67 getb67; do
14214 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14215 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14216 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14217
14218 cat >>confdefs.h <<_ACEOF
14219 #define CRAY_STACKSEG_END $ac_func
14220 _ACEOF
14221
14222 break
14223 fi
14224
14225 done
14226 fi
14227
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14229 $as_echo_n "checking stack direction for C alloca... " >&6; }
14230 if ${ac_cv_c_stack_direction+:} false; then :
14231 $as_echo_n "(cached) " >&6
14232 else
14233 if test "$cross_compiling" = yes; then :
14234 ac_cv_c_stack_direction=0
14235 else
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14238 $ac_includes_default
14239 int
14240 find_stack_direction (int *addr, int depth)
14241 {
14242 int dir, dummy = 0;
14243 if (! addr)
14244 addr = &dummy;
14245 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14246 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14247 return dir + dummy;
14248 }
14249
14250 int
14251 main (int argc, char **argv)
14252 {
14253 return find_stack_direction (0, argc + !argv + 20) < 0;
14254 }
14255 _ACEOF
14256 if ac_fn_c_try_run "$LINENO"; then :
14257 ac_cv_c_stack_direction=1
14258 else
14259 ac_cv_c_stack_direction=-1
14260 fi
14261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14262 conftest.$ac_objext conftest.beam conftest.$ac_ext
14263 fi
14264
14265 fi
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14267 $as_echo "$ac_cv_c_stack_direction" >&6; }
14268 cat >>confdefs.h <<_ACEOF
14269 #define STACK_DIRECTION $ac_cv_c_stack_direction
14270 _ACEOF
14271
14272
14273 fi
14274
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14276 $as_echo_n "checking for inline... " >&6; }
14277 if ${ac_cv_c_inline+:} false; then :
14278 $as_echo_n "(cached) " >&6
14279 else
14280 ac_cv_c_inline=no
14281 for ac_kw in inline __inline__ __inline; do
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 #ifndef __cplusplus
14285 typedef int foo_t;
14286 static $ac_kw foo_t static_foo () {return 0; }
14287 $ac_kw foo_t foo () {return 0; }
14288 #endif
14289
14290 _ACEOF
14291 if ac_fn_c_try_compile "$LINENO"; then :
14292 ac_cv_c_inline=$ac_kw
14293 fi
14294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14295 test "$ac_cv_c_inline" != no && break
14296 done
14297
14298 fi
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14300 $as_echo "$ac_cv_c_inline" >&6; }
14301
14302 case $ac_cv_c_inline in
14303 inline | yes) ;;
14304 *)
14305 case $ac_cv_c_inline in
14306 no) ac_val=;;
14307 *) ac_val=$ac_cv_c_inline;;
14308 esac
14309 cat >>confdefs.h <<_ACEOF
14310 #ifndef __cplusplus
14311 #define inline $ac_val
14312 #endif
14313 _ACEOF
14314 ;;
14315 esac
14316
14317
14318 # VMS doesn't have unlink.
14319 for ac_func in unlink remove
14320 do :
14321 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14322 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14323 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14324 cat >>confdefs.h <<_ACEOF
14325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14326 _ACEOF
14327 break
14328 fi
14329 done
14330
14331 for ac_func in sbrk setlocale
14332 do :
14333 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14334 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14335 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14336 cat >>confdefs.h <<_ACEOF
14337 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14338 _ACEOF
14339
14340 fi
14341 done
14342
14343 for ac_func in strsignal
14344 do :
14345 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
14346 if test "x$ac_cv_func_strsignal" = xyes; then :
14347 cat >>confdefs.h <<_ACEOF
14348 #define HAVE_STRSIGNAL 1
14349 _ACEOF
14350
14351 fi
14352 done
14353
14354
14355
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14357 $as_echo_n "checking for LC_MESSAGES... " >&6; }
14358 if ${am_cv_val_LC_MESSAGES+:} false; then :
14359 $as_echo_n "(cached) " >&6
14360 else
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h. */
14363 #include <locale.h>
14364 int
14365 main ()
14366 {
14367 return LC_MESSAGES
14368 ;
14369 return 0;
14370 }
14371 _ACEOF
14372 if ac_fn_c_try_link "$LINENO"; then :
14373 am_cv_val_LC_MESSAGES=yes
14374 else
14375 am_cv_val_LC_MESSAGES=no
14376 fi
14377 rm -f core conftest.err conftest.$ac_objext \
14378 conftest$ac_exeext conftest.$ac_ext
14379 fi
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14381 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14382 if test $am_cv_val_LC_MESSAGES = yes; then
14383
14384 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14385
14386 fi
14387
14388
14389 # do we need the math library?
14390 case "${need_libm}" in
14391 yes)
14392 LIBM=
14393 case $host in
14394 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14395 # These system don't have libm, or don't need it
14396 ;;
14397 *-ncr-sysv4.3*)
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14399 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14400 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 ac_check_lib_save_LIBS=$LIBS
14404 LIBS="-lmw $LIBS"
14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14406 /* end confdefs.h. */
14407
14408 /* Override any GCC internal prototype to avoid an error.
14409 Use char because int might match the return type of a GCC
14410 builtin and then its argument prototype would still apply. */
14411 #ifdef __cplusplus
14412 extern "C"
14413 #endif
14414 char _mwvalidcheckl ();
14415 int
14416 main ()
14417 {
14418 return _mwvalidcheckl ();
14419 ;
14420 return 0;
14421 }
14422 _ACEOF
14423 if ac_fn_c_try_link "$LINENO"; then :
14424 ac_cv_lib_mw__mwvalidcheckl=yes
14425 else
14426 ac_cv_lib_mw__mwvalidcheckl=no
14427 fi
14428 rm -f core conftest.err conftest.$ac_objext \
14429 conftest$ac_exeext conftest.$ac_ext
14430 LIBS=$ac_check_lib_save_LIBS
14431 fi
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14433 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14434 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
14435 LIBM="-lmw"
14436 fi
14437
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14439 $as_echo_n "checking for cos in -lm... " >&6; }
14440 if ${ac_cv_lib_m_cos+:} false; then :
14441 $as_echo_n "(cached) " >&6
14442 else
14443 ac_check_lib_save_LIBS=$LIBS
14444 LIBS="-lm $LIBS"
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14447
14448 /* Override any GCC internal prototype to avoid an error.
14449 Use char because int might match the return type of a GCC
14450 builtin and then its argument prototype would still apply. */
14451 #ifdef __cplusplus
14452 extern "C"
14453 #endif
14454 char cos ();
14455 int
14456 main ()
14457 {
14458 return cos ();
14459 ;
14460 return 0;
14461 }
14462 _ACEOF
14463 if ac_fn_c_try_link "$LINENO"; then :
14464 ac_cv_lib_m_cos=yes
14465 else
14466 ac_cv_lib_m_cos=no
14467 fi
14468 rm -f core conftest.err conftest.$ac_objext \
14469 conftest$ac_exeext conftest.$ac_ext
14470 LIBS=$ac_check_lib_save_LIBS
14471 fi
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14473 $as_echo "$ac_cv_lib_m_cos" >&6; }
14474 if test "x$ac_cv_lib_m_cos" = xyes; then :
14475 LIBM="$LIBM -lm"
14476 fi
14477
14478 ;;
14479 *)
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14481 $as_echo_n "checking for cos in -lm... " >&6; }
14482 if ${ac_cv_lib_m_cos+:} false; then :
14483 $as_echo_n "(cached) " >&6
14484 else
14485 ac_check_lib_save_LIBS=$LIBS
14486 LIBS="-lm $LIBS"
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14489
14490 /* Override any GCC internal prototype to avoid an error.
14491 Use char because int might match the return type of a GCC
14492 builtin and then its argument prototype would still apply. */
14493 #ifdef __cplusplus
14494 extern "C"
14495 #endif
14496 char cos ();
14497 int
14498 main ()
14499 {
14500 return cos ();
14501 ;
14502 return 0;
14503 }
14504 _ACEOF
14505 if ac_fn_c_try_link "$LINENO"; then :
14506 ac_cv_lib_m_cos=yes
14507 else
14508 ac_cv_lib_m_cos=no
14509 fi
14510 rm -f core conftest.err conftest.$ac_objext \
14511 conftest$ac_exeext conftest.$ac_ext
14512 LIBS=$ac_check_lib_save_LIBS
14513 fi
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14515 $as_echo "$ac_cv_lib_m_cos" >&6; }
14516 if test "x$ac_cv_lib_m_cos" = xyes; then :
14517 LIBM="-lm"
14518 fi
14519
14520 ;;
14521 esac
14522
14523
14524
14525 ;;
14526 esac
14527
14528 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
14529 # enough, but on some of those systems, the assert macro relies on requoting
14530 # working properly!
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
14532 $as_echo_n "checking for working assert macro... " >&6; }
14533 if ${gas_cv_assert_ok+:} false; then :
14534 $as_echo_n "(cached) " >&6
14535 else
14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h. */
14538 #include <assert.h>
14539 #include <stdio.h>
14540 int
14541 main ()
14542 {
14543
14544 /* check for requoting problems */
14545 static int a, b, c, d;
14546 static char *s;
14547 assert (!strcmp(s, "foo bar baz quux"));
14548 /* check for newline handling */
14549 assert (a == b
14550 || c == d);
14551
14552 ;
14553 return 0;
14554 }
14555 _ACEOF
14556 if ac_fn_c_try_link "$LINENO"; then :
14557 gas_cv_assert_ok=yes
14558 else
14559 gas_cv_assert_ok=no
14560 fi
14561 rm -f core conftest.err conftest.$ac_objext \
14562 conftest$ac_exeext conftest.$ac_ext
14563 fi
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
14565 $as_echo "$gas_cv_assert_ok" >&6; }
14566 test $gas_cv_assert_ok = yes ||
14567 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
14568
14569
14570
14571 # On some systems, the system header files may not declare malloc, realloc,
14572 # and free. There are places where gas needs these functions to have been
14573 # declared -- such as when taking their addresses.
14574 gas_test_headers="
14575 #ifdef HAVE_MEMORY_H
14576 #include <memory.h>
14577 #endif
14578 #ifdef HAVE_STRING_H
14579 #include <string.h>
14580 #else
14581 #ifdef HAVE_STRINGS_H
14582 #include <strings.h>
14583 #endif
14584 #endif
14585 #ifdef HAVE_STDLIB_H
14586 #include <stdlib.h>
14587 #endif
14588 #ifdef HAVE_UNISTD_H
14589 #include <unistd.h>
14590 #endif
14591 "
14592
14593 # Does errno.h declare errno, or do we have to add a separate declaration
14594 # for it?
14595
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
14597 $as_echo_n "checking whether declaration is required for errno... " >&6; }
14598 if ${gas_cv_decl_needed_errno+:} false; then :
14599 $as_echo_n "(cached) " >&6
14600 else
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
14603
14604 #ifdef HAVE_ERRNO_H
14605 #include <errno.h>
14606 #endif
14607
14608 int
14609 main ()
14610 {
14611
14612 typedef int f;
14613 f x;
14614 x = (f) errno;
14615
14616 ;
14617 return 0;
14618 }
14619 _ACEOF
14620 if ac_fn_c_try_link "$LINENO"; then :
14621 gas_cv_decl_needed_errno=no
14622 else
14623 gas_cv_decl_needed_errno=yes
14624 fi
14625 rm -f core conftest.err conftest.$ac_objext \
14626 conftest$ac_exeext conftest.$ac_ext
14627 fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
14629 $as_echo "$gas_cv_decl_needed_errno" >&6; }
14630 if test $gas_cv_decl_needed_errno = yes; then
14631
14632 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
14633
14634 fi
14635
14636
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14638 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
14639 if ${gas_cv_decl_getopt_unistd_h+:} false; then :
14640 $as_echo_n "(cached) " >&6
14641 else
14642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643 /* end confdefs.h. */
14644 #include <unistd.h>
14645 int
14646 main ()
14647 {
14648 extern int getopt (int, char *const*, const char *);
14649 ;
14650 return 0;
14651 }
14652 _ACEOF
14653 if ac_fn_c_try_compile "$LINENO"; then :
14654 gas_cv_decl_getopt_unistd_h=yes
14655 else
14656 gas_cv_decl_getopt_unistd_h=no
14657 fi
14658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659 fi
14660
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14662 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
14663 if test $gas_cv_decl_getopt_unistd_h = yes; then
14664
14665 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
14666
14667 fi
14668
14669
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14671 $as_echo_n "checking whether declaration is required for environ... " >&6; }
14672 if ${gas_cv_decl_needed_environ+:} false; then :
14673 $as_echo_n "(cached) " >&6
14674 else
14675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676 /* end confdefs.h. */
14677 $gas_test_headers
14678 int
14679 main ()
14680 {
14681
14682 typedef char **f;
14683 f x;
14684 x = (f) environ;
14685
14686 ;
14687 return 0;
14688 }
14689 _ACEOF
14690 if ac_fn_c_try_link "$LINENO"; then :
14691 gas_cv_decl_needed_environ=no
14692 else
14693 gas_cv_decl_needed_environ=yes
14694 fi
14695 rm -f core conftest.err conftest.$ac_objext \
14696 conftest$ac_exeext conftest.$ac_ext
14697 fi
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14699 $as_echo "$gas_cv_decl_needed_environ" >&6; }
14700 if test $gas_cv_decl_needed_environ = yes; then
14701
14702 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
14703
14704 fi
14705
14706
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14708 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
14709 if ${gas_cv_decl_needed_ffs+:} false; then :
14710 $as_echo_n "(cached) " >&6
14711 else
14712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713 /* end confdefs.h. */
14714 $gas_test_headers
14715 int
14716 main ()
14717 {
14718
14719 typedef int (*f)(int);
14720 f x;
14721 x = (f) ffs;
14722
14723 ;
14724 return 0;
14725 }
14726 _ACEOF
14727 if ac_fn_c_try_link "$LINENO"; then :
14728 gas_cv_decl_needed_ffs=no
14729 else
14730 gas_cv_decl_needed_ffs=yes
14731 fi
14732 rm -f core conftest.err conftest.$ac_objext \
14733 conftest$ac_exeext conftest.$ac_ext
14734 fi
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14736 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
14737 if test $gas_cv_decl_needed_ffs = yes; then
14738
14739 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
14740
14741 fi
14742
14743
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14745 $as_echo_n "checking whether declaration is required for free... " >&6; }
14746 if ${gas_cv_decl_needed_free+:} false; then :
14747 $as_echo_n "(cached) " >&6
14748 else
14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14751 $gas_test_headers
14752 int
14753 main ()
14754 {
14755
14756 typedef void (*f)();
14757 f x;
14758 x = (f) free;
14759
14760 ;
14761 return 0;
14762 }
14763 _ACEOF
14764 if ac_fn_c_try_link "$LINENO"; then :
14765 gas_cv_decl_needed_free=no
14766 else
14767 gas_cv_decl_needed_free=yes
14768 fi
14769 rm -f core conftest.err conftest.$ac_objext \
14770 conftest$ac_exeext conftest.$ac_ext
14771 fi
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14773 $as_echo "$gas_cv_decl_needed_free" >&6; }
14774 if test $gas_cv_decl_needed_free = yes; then
14775
14776 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
14777
14778 fi
14779
14780
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14782 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
14783 if ${gas_cv_decl_needed_malloc+:} false; then :
14784 $as_echo_n "(cached) " >&6
14785 else
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14788 $gas_test_headers
14789 int
14790 main ()
14791 {
14792
14793 typedef char *(*f)();
14794 f x;
14795 x = (f) malloc;
14796
14797 ;
14798 return 0;
14799 }
14800 _ACEOF
14801 if ac_fn_c_try_link "$LINENO"; then :
14802 gas_cv_decl_needed_malloc=no
14803 else
14804 gas_cv_decl_needed_malloc=yes
14805 fi
14806 rm -f core conftest.err conftest.$ac_objext \
14807 conftest$ac_exeext conftest.$ac_ext
14808 fi
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14810 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
14811 if test $gas_cv_decl_needed_malloc = yes; then
14812
14813 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
14814
14815 fi
14816
14817
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14819 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14820 if ${gas_cv_decl_needed_sbrk+:} false; then :
14821 $as_echo_n "(cached) " >&6
14822 else
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825 $gas_test_headers
14826 int
14827 main ()
14828 {
14829
14830 typedef char *(*f)();
14831 f x;
14832 x = (f) sbrk;
14833
14834 ;
14835 return 0;
14836 }
14837 _ACEOF
14838 if ac_fn_c_try_link "$LINENO"; then :
14839 gas_cv_decl_needed_sbrk=no
14840 else
14841 gas_cv_decl_needed_sbrk=yes
14842 fi
14843 rm -f core conftest.err conftest.$ac_objext \
14844 conftest$ac_exeext conftest.$ac_ext
14845 fi
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14847 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
14848 if test $gas_cv_decl_needed_sbrk = yes; then
14849
14850 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
14851
14852 fi
14853
14854
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14856 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
14857 if ${gas_cv_decl_needed_strstr+:} false; then :
14858 $as_echo_n "(cached) " >&6
14859 else
14860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14861 /* end confdefs.h. */
14862 $gas_test_headers
14863 int
14864 main ()
14865 {
14866
14867 typedef char *(*f)();
14868 f x;
14869 x = (f) strstr;
14870
14871 ;
14872 return 0;
14873 }
14874 _ACEOF
14875 if ac_fn_c_try_link "$LINENO"; then :
14876 gas_cv_decl_needed_strstr=no
14877 else
14878 gas_cv_decl_needed_strstr=yes
14879 fi
14880 rm -f core conftest.err conftest.$ac_objext \
14881 conftest$ac_exeext conftest.$ac_ext
14882 fi
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14884 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
14885 if test $gas_cv_decl_needed_strstr = yes; then
14886
14887 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
14888
14889 fi
14890
14891
14892 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14893 if test "x$ac_cv_have_decl_free" = xyes; then :
14894 ac_have_decl=1
14895 else
14896 ac_have_decl=0
14897 fi
14898
14899 cat >>confdefs.h <<_ACEOF
14900 #define HAVE_DECL_FREE $ac_have_decl
14901 _ACEOF
14902 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14903 if test "x$ac_cv_have_decl_getenv" = xyes; then :
14904 ac_have_decl=1
14905 else
14906 ac_have_decl=0
14907 fi
14908
14909 cat >>confdefs.h <<_ACEOF
14910 #define HAVE_DECL_GETENV $ac_have_decl
14911 _ACEOF
14912 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14913 if test "x$ac_cv_have_decl_malloc" = xyes; then :
14914 ac_have_decl=1
14915 else
14916 ac_have_decl=0
14917 fi
14918
14919 cat >>confdefs.h <<_ACEOF
14920 #define HAVE_DECL_MALLOC $ac_have_decl
14921 _ACEOF
14922 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14923 if test "x$ac_cv_have_decl_mempcpy" = xyes; then :
14924 ac_have_decl=1
14925 else
14926 ac_have_decl=0
14927 fi
14928
14929 cat >>confdefs.h <<_ACEOF
14930 #define HAVE_DECL_MEMPCPY $ac_have_decl
14931 _ACEOF
14932 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14933 if test "x$ac_cv_have_decl_realloc" = xyes; then :
14934 ac_have_decl=1
14935 else
14936 ac_have_decl=0
14937 fi
14938
14939 cat >>confdefs.h <<_ACEOF
14940 #define HAVE_DECL_REALLOC $ac_have_decl
14941 _ACEOF
14942 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14943 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
14944 ac_have_decl=1
14945 else
14946 ac_have_decl=0
14947 fi
14948
14949 cat >>confdefs.h <<_ACEOF
14950 #define HAVE_DECL_STPCPY $ac_have_decl
14951 _ACEOF
14952 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14953 if test "x$ac_cv_have_decl_strstr" = xyes; then :
14954 ac_have_decl=1
14955 else
14956 ac_have_decl=0
14957 fi
14958
14959 cat >>confdefs.h <<_ACEOF
14960 #define HAVE_DECL_STRSTR $ac_have_decl
14961 _ACEOF
14962 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14963 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
14964 ac_have_decl=1
14965 else
14966 ac_have_decl=0
14967 fi
14968
14969 cat >>confdefs.h <<_ACEOF
14970 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14971 _ACEOF
14972 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14973 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
14974 ac_have_decl=1
14975 else
14976 ac_have_decl=0
14977 fi
14978
14979 cat >>confdefs.h <<_ACEOF
14980 #define HAVE_DECL_ASPRINTF $ac_have_decl
14981 _ACEOF
14982
14983
14984
14985 case "${host}" in
14986 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14987
14988 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14989 ;;
14990 esac
14991
14992 # Link in zlib if we can. This allows us to write compressed debug sections.
14993
14994 # Use the system's zlib library.
14995 zlibdir="-L\$(top_builddir)/../zlib"
14996 zlibinc="-I\$(top_srcdir)/../zlib"
14997
14998 # Check whether --with-system-zlib was given.
14999 if test "${with_system_zlib+set}" = set; then :
15000 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
15001 zlibdir=
15002 zlibinc=
15003 fi
15004
15005 fi
15006
15007
15008
15009
15010
15011 # Support for VMS timestamps via cross compile
15012
15013 if test "$ac_cv_header_time_h" = yes; then
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
15015 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
15016 if ${gas_cv_have_time_type_member_tm_gmtoff+:} false; then :
15017 $as_echo_n "(cached) " >&6
15018 else
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15021
15022 #define _BSD_SOURCE 1
15023 #include <time.h>
15024 int
15025 main ()
15026 {
15027 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
15028 ;
15029 return 0;
15030 }
15031 _ACEOF
15032 if ac_fn_c_try_compile "$LINENO"; then :
15033 gas_cv_have_time_type_member_tm_gmtoff=yes
15034 else
15035 gas_cv_have_time_type_member_tm_gmtoff=no
15036
15037 fi
15038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039 fi
15040
15041 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
15042
15043 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15044
15045 fi
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
15047 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
15048
15049 fi
15050
15051 if test "$ac_cv_header_sys_stat_h" = yes; then
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
15053 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
15054 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+:} false; then :
15055 $as_echo_n "(cached) " >&6
15056 else
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h. */
15059
15060 #define _BSD_SOURCE 1
15061 #include <sys/stat.h>
15062 int
15063 main ()
15064 {
15065 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
15066 ;
15067 return 0;
15068 }
15069 _ACEOF
15070 if ac_fn_c_try_compile "$LINENO"; then :
15071 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
15072 else
15073 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
15074
15075 fi
15076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15077 fi
15078
15079 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
15080
15081 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
15082
15083 fi
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
15085 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
15086
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
15088 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
15089 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+:} false; then :
15090 $as_echo_n "(cached) " >&6
15091 else
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15094
15095 #define _BSD_SOURCE 1
15096 #include <sys/stat.h>
15097 int
15098 main ()
15099 {
15100 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
15101 ;
15102 return 0;
15103 }
15104 _ACEOF
15105 if ac_fn_c_try_compile "$LINENO"; then :
15106 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
15107 else
15108 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
15109
15110 fi
15111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112 fi
15113
15114 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
15115
15116 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
15117
15118 fi
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
15120 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
15121
15122 fi
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
15133
15134 ac_config_commands="$ac_config_commands default"
15135
15136
15137 cat >confcache <<\_ACEOF
15138 # This file is a shell script that caches the results of configure
15139 # tests run on this system so they can be shared between configure
15140 # scripts and configure runs, see configure's option --config-cache.
15141 # It is not useful on other systems. If it contains results you don't
15142 # want to keep, you may remove or edit it.
15143 #
15144 # config.status only pays attention to the cache file if you give it
15145 # the --recheck option to rerun configure.
15146 #
15147 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15148 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15149 # following values.
15150
15151 _ACEOF
15152
15153 # The following way of writing the cache mishandles newlines in values,
15154 # but we know of no workaround that is simple, portable, and efficient.
15155 # So, we kill variables containing newlines.
15156 # Ultrix sh set writes to stderr and can't be redirected directly,
15157 # and sets the high bit in the cache file unless we assign to the vars.
15158 (
15159 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15160 eval ac_val=\$$ac_var
15161 case $ac_val in #(
15162 *${as_nl}*)
15163 case $ac_var in #(
15164 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15165 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15166 esac
15167 case $ac_var in #(
15168 _ | IFS | as_nl) ;; #(
15169 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15170 *) { eval $ac_var=; unset $ac_var;} ;;
15171 esac ;;
15172 esac
15173 done
15174
15175 (set) 2>&1 |
15176 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15177 *${as_nl}ac_space=\ *)
15178 # `set' does not quote correctly, so add quotes: double-quote
15179 # substitution turns \\\\ into \\, and sed turns \\ into \.
15180 sed -n \
15181 "s/'/'\\\\''/g;
15182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15183 ;; #(
15184 *)
15185 # `set' quotes correctly as required by POSIX, so do not add quotes.
15186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15187 ;;
15188 esac |
15189 sort
15190 ) |
15191 sed '
15192 /^ac_cv_env_/b end
15193 t clear
15194 :clear
15195 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15196 t end
15197 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15198 :end' >>confcache
15199 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15200 if test -w "$cache_file"; then
15201 if test "x$cache_file" != "x/dev/null"; then
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15203 $as_echo "$as_me: updating cache $cache_file" >&6;}
15204 if test ! -f "$cache_file" || test -h "$cache_file"; then
15205 cat confcache >"$cache_file"
15206 else
15207 case $cache_file in #(
15208 */* | ?:*)
15209 mv -f confcache "$cache_file"$$ &&
15210 mv -f "$cache_file"$$ "$cache_file" ;; #(
15211 *)
15212 mv -f confcache "$cache_file" ;;
15213 esac
15214 fi
15215 fi
15216 else
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15218 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15219 fi
15220 fi
15221 rm -f confcache
15222
15223 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15224 # Let make expand exec_prefix.
15225 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15226
15227 DEFS=-DHAVE_CONFIG_H
15228
15229 ac_libobjs=
15230 ac_ltlibobjs=
15231 U=
15232 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15233 # 1. Remove the extension, and $U if already installed.
15234 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15235 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15236 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15237 # will be set to the directory where LIBOBJS objects are built.
15238 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15239 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15240 done
15241 LIBOBJS=$ac_libobjs
15242
15243 LTLIBOBJS=$ac_ltlibobjs
15244
15245
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15247 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15248 if test -n "$am_sleep_pid"; then
15249 # Hide warnings about reused PIDs.
15250 wait $am_sleep_pid 2>/dev/null
15251 fi
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15253 $as_echo "done" >&6; }
15254 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15255 as_fn_error $? "conditional \"AMDEP\" was never defined.
15256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15257 fi
15258 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15259 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15261 fi
15262 if test -n "$EXEEXT"; then
15263 am__EXEEXT_TRUE=
15264 am__EXEEXT_FALSE='#'
15265 else
15266 am__EXEEXT_TRUE='#'
15267 am__EXEEXT_FALSE=
15268 fi
15269
15270
15271 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15272 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15274 fi
15275 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15276 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
15277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15278 fi
15279
15280 : "${CONFIG_STATUS=./config.status}"
15281 ac_write_fail=0
15282 ac_clean_files_save=$ac_clean_files
15283 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15285 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15286 as_write_fail=0
15287 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15288 #! $SHELL
15289 # Generated by $as_me.
15290 # Run this file to recreate the current configuration.
15291 # Compiler output produced by configure, useful for debugging
15292 # configure, is in config.log if it exists.
15293
15294 debug=false
15295 ac_cs_recheck=false
15296 ac_cs_silent=false
15297
15298 SHELL=\${CONFIG_SHELL-$SHELL}
15299 export SHELL
15300 _ASEOF
15301 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15302 ## -------------------- ##
15303 ## M4sh Initialization. ##
15304 ## -------------------- ##
15305
15306 # Be more Bourne compatible
15307 DUALCASE=1; export DUALCASE # for MKS sh
15308 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15309 emulate sh
15310 NULLCMD=:
15311 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15312 # is contrary to our usage. Disable this feature.
15313 alias -g '${1+"$@"}'='"$@"'
15314 setopt NO_GLOB_SUBST
15315 else
15316 case `(set -o) 2>/dev/null` in #(
15317 *posix*) :
15318 set -o posix ;; #(
15319 *) :
15320 ;;
15321 esac
15322 fi
15323
15324
15325 as_nl='
15326 '
15327 export as_nl
15328 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15329 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15330 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15331 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15332 # Prefer a ksh shell builtin over an external printf program on Solaris,
15333 # but without wasting forks for bash or zsh.
15334 if test -z "$BASH_VERSION$ZSH_VERSION" \
15335 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15336 as_echo='print -r --'
15337 as_echo_n='print -rn --'
15338 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15339 as_echo='printf %s\n'
15340 as_echo_n='printf %s'
15341 else
15342 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15343 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15344 as_echo_n='/usr/ucb/echo -n'
15345 else
15346 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15347 as_echo_n_body='eval
15348 arg=$1;
15349 case $arg in #(
15350 *"$as_nl"*)
15351 expr "X$arg" : "X\\(.*\\)$as_nl";
15352 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15353 esac;
15354 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15355 '
15356 export as_echo_n_body
15357 as_echo_n='sh -c $as_echo_n_body as_echo'
15358 fi
15359 export as_echo_body
15360 as_echo='sh -c $as_echo_body as_echo'
15361 fi
15362
15363 # The user is always right.
15364 if test "${PATH_SEPARATOR+set}" != set; then
15365 PATH_SEPARATOR=:
15366 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15367 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15368 PATH_SEPARATOR=';'
15369 }
15370 fi
15371
15372
15373 # IFS
15374 # We need space, tab and new line, in precisely that order. Quoting is
15375 # there to prevent editors from complaining about space-tab.
15376 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15377 # splitting by setting IFS to empty value.)
15378 IFS=" "" $as_nl"
15379
15380 # Find who we are. Look in the path if we contain no directory separator.
15381 as_myself=
15382 case $0 in #((
15383 *[\\/]* ) as_myself=$0 ;;
15384 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15385 for as_dir in $PATH
15386 do
15387 IFS=$as_save_IFS
15388 test -z "$as_dir" && as_dir=.
15389 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15390 done
15391 IFS=$as_save_IFS
15392
15393 ;;
15394 esac
15395 # We did not find ourselves, most probably we were run as `sh COMMAND'
15396 # in which case we are not to be found in the path.
15397 if test "x$as_myself" = x; then
15398 as_myself=$0
15399 fi
15400 if test ! -f "$as_myself"; then
15401 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15402 exit 1
15403 fi
15404
15405 # Unset variables that we do not need and which cause bugs (e.g. in
15406 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15407 # suppresses any "Segmentation fault" message there. '((' could
15408 # trigger a bug in pdksh 5.2.14.
15409 for as_var in BASH_ENV ENV MAIL MAILPATH
15410 do eval test x\${$as_var+set} = xset \
15411 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15412 done
15413 PS1='$ '
15414 PS2='> '
15415 PS4='+ '
15416
15417 # NLS nuisances.
15418 LC_ALL=C
15419 export LC_ALL
15420 LANGUAGE=C
15421 export LANGUAGE
15422
15423 # CDPATH.
15424 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15425
15426
15427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15428 # ----------------------------------------
15429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15431 # script with STATUS, using 1 if that was 0.
15432 as_fn_error ()
15433 {
15434 as_status=$1; test $as_status -eq 0 && as_status=1
15435 if test "$4"; then
15436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15437 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15438 fi
15439 $as_echo "$as_me: error: $2" >&2
15440 as_fn_exit $as_status
15441 } # as_fn_error
15442
15443
15444 # as_fn_set_status STATUS
15445 # -----------------------
15446 # Set $? to STATUS, without forking.
15447 as_fn_set_status ()
15448 {
15449 return $1
15450 } # as_fn_set_status
15451
15452 # as_fn_exit STATUS
15453 # -----------------
15454 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15455 as_fn_exit ()
15456 {
15457 set +e
15458 as_fn_set_status $1
15459 exit $1
15460 } # as_fn_exit
15461
15462 # as_fn_unset VAR
15463 # ---------------
15464 # Portably unset VAR.
15465 as_fn_unset ()
15466 {
15467 { eval $1=; unset $1;}
15468 }
15469 as_unset=as_fn_unset
15470 # as_fn_append VAR VALUE
15471 # ----------------------
15472 # Append the text in VALUE to the end of the definition contained in VAR. Take
15473 # advantage of any shell optimizations that allow amortized linear growth over
15474 # repeated appends, instead of the typical quadratic growth present in naive
15475 # implementations.
15476 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15477 eval 'as_fn_append ()
15478 {
15479 eval $1+=\$2
15480 }'
15481 else
15482 as_fn_append ()
15483 {
15484 eval $1=\$$1\$2
15485 }
15486 fi # as_fn_append
15487
15488 # as_fn_arith ARG...
15489 # ------------------
15490 # Perform arithmetic evaluation on the ARGs, and store the result in the
15491 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15492 # must be portable across $(()) and expr.
15493 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15494 eval 'as_fn_arith ()
15495 {
15496 as_val=$(( $* ))
15497 }'
15498 else
15499 as_fn_arith ()
15500 {
15501 as_val=`expr "$@" || test $? -eq 1`
15502 }
15503 fi # as_fn_arith
15504
15505
15506 if expr a : '\(a\)' >/dev/null 2>&1 &&
15507 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15508 as_expr=expr
15509 else
15510 as_expr=false
15511 fi
15512
15513 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15514 as_basename=basename
15515 else
15516 as_basename=false
15517 fi
15518
15519 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15520 as_dirname=dirname
15521 else
15522 as_dirname=false
15523 fi
15524
15525 as_me=`$as_basename -- "$0" ||
15526 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15527 X"$0" : 'X\(//\)$' \| \
15528 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15529 $as_echo X/"$0" |
15530 sed '/^.*\/\([^/][^/]*\)\/*$/{
15531 s//\1/
15532 q
15533 }
15534 /^X\/\(\/\/\)$/{
15535 s//\1/
15536 q
15537 }
15538 /^X\/\(\/\).*/{
15539 s//\1/
15540 q
15541 }
15542 s/.*/./; q'`
15543
15544 # Avoid depending upon Character Ranges.
15545 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15546 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15547 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15548 as_cr_digits='0123456789'
15549 as_cr_alnum=$as_cr_Letters$as_cr_digits
15550
15551 ECHO_C= ECHO_N= ECHO_T=
15552 case `echo -n x` in #(((((
15553 -n*)
15554 case `echo 'xy\c'` in
15555 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15556 xy) ECHO_C='\c';;
15557 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15558 ECHO_T=' ';;
15559 esac;;
15560 *)
15561 ECHO_N='-n';;
15562 esac
15563
15564 rm -f conf$$ conf$$.exe conf$$.file
15565 if test -d conf$$.dir; then
15566 rm -f conf$$.dir/conf$$.file
15567 else
15568 rm -f conf$$.dir
15569 mkdir conf$$.dir 2>/dev/null
15570 fi
15571 if (echo >conf$$.file) 2>/dev/null; then
15572 if ln -s conf$$.file conf$$ 2>/dev/null; then
15573 as_ln_s='ln -s'
15574 # ... but there are two gotchas:
15575 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15576 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15577 # In both cases, we have to default to `cp -pR'.
15578 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15579 as_ln_s='cp -pR'
15580 elif ln conf$$.file conf$$ 2>/dev/null; then
15581 as_ln_s=ln
15582 else
15583 as_ln_s='cp -pR'
15584 fi
15585 else
15586 as_ln_s='cp -pR'
15587 fi
15588 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15589 rmdir conf$$.dir 2>/dev/null
15590
15591
15592 # as_fn_mkdir_p
15593 # -------------
15594 # Create "$as_dir" as a directory, including parents if necessary.
15595 as_fn_mkdir_p ()
15596 {
15597
15598 case $as_dir in #(
15599 -*) as_dir=./$as_dir;;
15600 esac
15601 test -d "$as_dir" || eval $as_mkdir_p || {
15602 as_dirs=
15603 while :; do
15604 case $as_dir in #(
15605 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15606 *) as_qdir=$as_dir;;
15607 esac
15608 as_dirs="'$as_qdir' $as_dirs"
15609 as_dir=`$as_dirname -- "$as_dir" ||
15610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15611 X"$as_dir" : 'X\(//\)[^/]' \| \
15612 X"$as_dir" : 'X\(//\)$' \| \
15613 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15614 $as_echo X"$as_dir" |
15615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15616 s//\1/
15617 q
15618 }
15619 /^X\(\/\/\)[^/].*/{
15620 s//\1/
15621 q
15622 }
15623 /^X\(\/\/\)$/{
15624 s//\1/
15625 q
15626 }
15627 /^X\(\/\).*/{
15628 s//\1/
15629 q
15630 }
15631 s/.*/./; q'`
15632 test -d "$as_dir" && break
15633 done
15634 test -z "$as_dirs" || eval "mkdir $as_dirs"
15635 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15636
15637
15638 } # as_fn_mkdir_p
15639 if mkdir -p . 2>/dev/null; then
15640 as_mkdir_p='mkdir -p "$as_dir"'
15641 else
15642 test -d ./-p && rmdir ./-p
15643 as_mkdir_p=false
15644 fi
15645
15646
15647 # as_fn_executable_p FILE
15648 # -----------------------
15649 # Test if FILE is an executable regular file.
15650 as_fn_executable_p ()
15651 {
15652 test -f "$1" && test -x "$1"
15653 } # as_fn_executable_p
15654 as_test_x='test -x'
15655 as_executable_p=as_fn_executable_p
15656
15657 # Sed expression to map a string onto a valid CPP name.
15658 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15659
15660 # Sed expression to map a string onto a valid variable name.
15661 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15662
15663
15664 exec 6>&1
15665 ## ----------------------------------- ##
15666 ## Main body of $CONFIG_STATUS script. ##
15667 ## ----------------------------------- ##
15668 _ASEOF
15669 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15670
15671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15672 # Save the log message, to keep $0 and so on meaningful, and to
15673 # report actual input values of CONFIG_FILES etc. instead of their
15674 # values after options handling.
15675 ac_log="
15676 This file was extended by gas $as_me 2.31.51, which was
15677 generated by GNU Autoconf 2.69. Invocation command line was
15678
15679 CONFIG_FILES = $CONFIG_FILES
15680 CONFIG_HEADERS = $CONFIG_HEADERS
15681 CONFIG_LINKS = $CONFIG_LINKS
15682 CONFIG_COMMANDS = $CONFIG_COMMANDS
15683 $ $0 $@
15684
15685 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15686 "
15687
15688 _ACEOF
15689
15690 case $ac_config_files in *"
15691 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15692 esac
15693
15694 case $ac_config_headers in *"
15695 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15696 esac
15697
15698
15699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15700 # Files that config.status was made for.
15701 config_files="$ac_config_files"
15702 config_headers="$ac_config_headers"
15703 config_commands="$ac_config_commands"
15704
15705 _ACEOF
15706
15707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15708 ac_cs_usage="\
15709 \`$as_me' instantiates files and other configuration actions
15710 from templates according to the current configuration. Unless the files
15711 and actions are specified as TAGs, all are instantiated by default.
15712
15713 Usage: $0 [OPTION]... [TAG]...
15714
15715 -h, --help print this help, then exit
15716 -V, --version print version number and configuration settings, then exit
15717 --config print configuration, then exit
15718 -q, --quiet, --silent
15719 do not print progress messages
15720 -d, --debug don't remove temporary files
15721 --recheck update $as_me by reconfiguring in the same conditions
15722 --file=FILE[:TEMPLATE]
15723 instantiate the configuration file FILE
15724 --header=FILE[:TEMPLATE]
15725 instantiate the configuration header FILE
15726
15727 Configuration files:
15728 $config_files
15729
15730 Configuration headers:
15731 $config_headers
15732
15733 Configuration commands:
15734 $config_commands
15735
15736 Report bugs to the package provider."
15737
15738 _ACEOF
15739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15740 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15741 ac_cs_version="\\
15742 gas config.status 2.31.51
15743 configured by $0, generated by GNU Autoconf 2.69,
15744 with options \\"\$ac_cs_config\\"
15745
15746 Copyright (C) 2012 Free Software Foundation, Inc.
15747 This config.status script is free software; the Free Software Foundation
15748 gives unlimited permission to copy, distribute and modify it."
15749
15750 ac_pwd='$ac_pwd'
15751 srcdir='$srcdir'
15752 INSTALL='$INSTALL'
15753 MKDIR_P='$MKDIR_P'
15754 AWK='$AWK'
15755 test -n "\$AWK" || AWK=awk
15756 _ACEOF
15757
15758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15759 # The default lists apply if the user does not specify any file.
15760 ac_need_defaults=:
15761 while test $# != 0
15762 do
15763 case $1 in
15764 --*=?*)
15765 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15766 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15767 ac_shift=:
15768 ;;
15769 --*=)
15770 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15771 ac_optarg=
15772 ac_shift=:
15773 ;;
15774 *)
15775 ac_option=$1
15776 ac_optarg=$2
15777 ac_shift=shift
15778 ;;
15779 esac
15780
15781 case $ac_option in
15782 # Handling of the options.
15783 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15784 ac_cs_recheck=: ;;
15785 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15786 $as_echo "$ac_cs_version"; exit ;;
15787 --config | --confi | --conf | --con | --co | --c )
15788 $as_echo "$ac_cs_config"; exit ;;
15789 --debug | --debu | --deb | --de | --d | -d )
15790 debug=: ;;
15791 --file | --fil | --fi | --f )
15792 $ac_shift
15793 case $ac_optarg in
15794 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15795 '') as_fn_error $? "missing file argument" ;;
15796 esac
15797 as_fn_append CONFIG_FILES " '$ac_optarg'"
15798 ac_need_defaults=false;;
15799 --header | --heade | --head | --hea )
15800 $ac_shift
15801 case $ac_optarg in
15802 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15803 esac
15804 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15805 ac_need_defaults=false;;
15806 --he | --h)
15807 # Conflict between --help and --header
15808 as_fn_error $? "ambiguous option: \`$1'
15809 Try \`$0 --help' for more information.";;
15810 --help | --hel | -h )
15811 $as_echo "$ac_cs_usage"; exit ;;
15812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15813 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15814 ac_cs_silent=: ;;
15815
15816 # This is an error.
15817 -*) as_fn_error $? "unrecognized option: \`$1'
15818 Try \`$0 --help' for more information." ;;
15819
15820 *) as_fn_append ac_config_targets " $1"
15821 ac_need_defaults=false ;;
15822
15823 esac
15824 shift
15825 done
15826
15827 ac_configure_extra_args=
15828
15829 if $ac_cs_silent; then
15830 exec 6>/dev/null
15831 ac_configure_extra_args="$ac_configure_extra_args --silent"
15832 fi
15833
15834 _ACEOF
15835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15836 if \$ac_cs_recheck; then
15837 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15838 shift
15839 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15840 CONFIG_SHELL='$SHELL'
15841 export CONFIG_SHELL
15842 exec "\$@"
15843 fi
15844
15845 _ACEOF
15846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15847 exec 5>>config.log
15848 {
15849 echo
15850 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15851 ## Running $as_me. ##
15852 _ASBOX
15853 $as_echo "$ac_log"
15854 } >&5
15855
15856 _ACEOF
15857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15858 #
15859 # INIT-COMMANDS
15860 #
15861 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15862
15863
15864 # The HP-UX ksh and POSIX shell print the target directory to stdout
15865 # if CDPATH is set.
15866 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15867
15868 sed_quote_subst='$sed_quote_subst'
15869 double_quote_subst='$double_quote_subst'
15870 delay_variable_subst='$delay_variable_subst'
15871 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15872 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15873 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15874 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15875 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15876 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15877 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15878 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15879 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15880 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15881 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15882 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15883 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15884 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15885 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15886 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15887 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15888 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15889 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15890 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15891 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15892 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15893 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15894 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15895 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15896 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15897 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15898 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15899 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15900 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15901 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15902 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15903 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15904 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15905 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15906 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15907 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15908 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15909 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15910 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15911 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15912 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15913 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15914 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15915 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15916 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15917 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15918 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15919 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"`'
15920 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15921 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15922 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15923 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15924 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15925 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15926 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15927 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15928 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15929 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15930 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15931 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15932 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15933 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15934 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15935 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15936 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15937 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15938 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15939 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15940 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15941 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15942 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15943 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15944 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15945 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15946 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15947 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15948 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15949 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15950 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15951 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15952 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15953 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15954 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15955 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15956 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15957 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15958 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15959 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15960 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15961 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15962 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15963 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15964 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15965 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15966 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15967 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15968 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15969 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15970 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15971 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15972 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15973 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15974 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15975 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15976 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15977 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15978 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15979 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15980 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15981 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15982 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15983 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15984 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15985 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15986 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15987 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15988 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15989 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15990 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15991
15992 LTCC='$LTCC'
15993 LTCFLAGS='$LTCFLAGS'
15994 compiler='$compiler_DEFAULT'
15995
15996 # A function that is used when there is no print builtin or printf.
15997 func_fallback_echo ()
15998 {
15999 eval 'cat <<_LTECHO_EOF
16000 \$1
16001 _LTECHO_EOF'
16002 }
16003
16004 # Quote evaled strings.
16005 for var in SHELL \
16006 ECHO \
16007 SED \
16008 GREP \
16009 EGREP \
16010 FGREP \
16011 LD \
16012 NM \
16013 LN_S \
16014 lt_SP2NL \
16015 lt_NL2SP \
16016 reload_flag \
16017 OBJDUMP \
16018 deplibs_check_method \
16019 file_magic_cmd \
16020 AR \
16021 AR_FLAGS \
16022 STRIP \
16023 RANLIB \
16024 CC \
16025 CFLAGS \
16026 compiler \
16027 lt_cv_sys_global_symbol_pipe \
16028 lt_cv_sys_global_symbol_to_cdecl \
16029 lt_cv_sys_global_symbol_to_c_name_address \
16030 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16031 lt_prog_compiler_no_builtin_flag \
16032 lt_prog_compiler_wl \
16033 lt_prog_compiler_pic \
16034 lt_prog_compiler_static \
16035 lt_cv_prog_compiler_c_o \
16036 need_locks \
16037 DSYMUTIL \
16038 NMEDIT \
16039 LIPO \
16040 OTOOL \
16041 OTOOL64 \
16042 shrext_cmds \
16043 export_dynamic_flag_spec \
16044 whole_archive_flag_spec \
16045 compiler_needs_object \
16046 with_gnu_ld \
16047 allow_undefined_flag \
16048 no_undefined_flag \
16049 hardcode_libdir_flag_spec \
16050 hardcode_libdir_flag_spec_ld \
16051 hardcode_libdir_separator \
16052 fix_srcfile_path \
16053 exclude_expsyms \
16054 include_expsyms \
16055 file_list_spec \
16056 variables_saved_for_relink \
16057 libname_spec \
16058 library_names_spec \
16059 soname_spec \
16060 install_override_mode \
16061 finish_eval \
16062 old_striplib \
16063 striplib; do
16064 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16065 *[\\\\\\\`\\"\\\$]*)
16066 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16067 ;;
16068 *)
16069 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16070 ;;
16071 esac
16072 done
16073
16074 # Double-quote double-evaled strings.
16075 for var in reload_cmds \
16076 old_postinstall_cmds \
16077 old_postuninstall_cmds \
16078 old_archive_cmds \
16079 extract_expsyms_cmds \
16080 old_archive_from_new_cmds \
16081 old_archive_from_expsyms_cmds \
16082 archive_cmds \
16083 archive_expsym_cmds \
16084 module_cmds \
16085 module_expsym_cmds \
16086 export_symbols_cmds \
16087 prelink_cmds \
16088 postinstall_cmds \
16089 postuninstall_cmds \
16090 finish_cmds \
16091 sys_lib_search_path_spec \
16092 sys_lib_dlsearch_path_spec; do
16093 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16094 *[\\\\\\\`\\"\\\$]*)
16095 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16096 ;;
16097 *)
16098 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16099 ;;
16100 esac
16101 done
16102
16103 ac_aux_dir='$ac_aux_dir'
16104 xsi_shell='$xsi_shell'
16105 lt_shell_append='$lt_shell_append'
16106
16107 # See if we are running on zsh, and set the options which allow our
16108 # commands through without removal of \ escapes INIT.
16109 if test -n "\${ZSH_VERSION+set}" ; then
16110 setopt NO_GLOB_SUBST
16111 fi
16112
16113
16114 PACKAGE='$PACKAGE'
16115 VERSION='$VERSION'
16116 TIMESTAMP='$TIMESTAMP'
16117 RM='$RM'
16118 ofile='$ofile'
16119
16120
16121
16122 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16123 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16124 # from automake.
16125 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16126 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16127 LINGUAS="${LINGUAS-%UNSET%}"
16128
16129 target_cpu_type=${target_cpu_type}
16130 cgen_cpu_prefix=${cgen_cpu_prefix}
16131 obj_format=${obj_format}
16132 te_file=${te_file}
16133
16134 _ACEOF
16135
16136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16137
16138 # Handling of arguments.
16139 for ac_config_target in $ac_config_targets
16140 do
16141 case $ac_config_target in
16142 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16143 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16144 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16145 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
16146 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16147 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16148 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16149 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16150 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16151 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16152
16153 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16154 esac
16155 done
16156
16157
16158 # If the user did not use the arguments to specify the items to instantiate,
16159 # then the envvar interface is used. Set only those that are not.
16160 # We use the long form for the default assignment because of an extremely
16161 # bizarre bug on SunOS 4.1.3.
16162 if $ac_need_defaults; then
16163 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16164 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16165 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16166 fi
16167
16168 # Have a temporary directory for convenience. Make it in the build tree
16169 # simply because there is no reason against having it here, and in addition,
16170 # creating and moving files from /tmp can sometimes cause problems.
16171 # Hook for its removal unless debugging.
16172 # Note that there is a small window in which the directory will not be cleaned:
16173 # after its creation but before its name has been assigned to `$tmp'.
16174 $debug ||
16175 {
16176 tmp= ac_tmp=
16177 trap 'exit_status=$?
16178 : "${ac_tmp:=$tmp}"
16179 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16180 ' 0
16181 trap 'as_fn_exit 1' 1 2 13 15
16182 }
16183 # Create a (secure) tmp directory for tmp files.
16184
16185 {
16186 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16187 test -d "$tmp"
16188 } ||
16189 {
16190 tmp=./conf$$-$RANDOM
16191 (umask 077 && mkdir "$tmp")
16192 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16193 ac_tmp=$tmp
16194
16195 # Set up the scripts for CONFIG_FILES section.
16196 # No need to generate them if there are no CONFIG_FILES.
16197 # This happens for instance with `./config.status config.h'.
16198 if test -n "$CONFIG_FILES"; then
16199
16200
16201 ac_cr=`echo X | tr X '\015'`
16202 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16203 # But we know of no other shell where ac_cr would be empty at this
16204 # point, so we can use a bashism as a fallback.
16205 if test "x$ac_cr" = x; then
16206 eval ac_cr=\$\'\\r\'
16207 fi
16208 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16209 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16210 ac_cs_awk_cr='\\r'
16211 else
16212 ac_cs_awk_cr=$ac_cr
16213 fi
16214
16215 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16216 _ACEOF
16217
16218
16219 {
16220 echo "cat >conf$$subs.awk <<_ACEOF" &&
16221 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16222 echo "_ACEOF"
16223 } >conf$$subs.sh ||
16224 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16225 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16226 ac_delim='%!_!# '
16227 for ac_last_try in false false false false false :; do
16228 . ./conf$$subs.sh ||
16229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16230
16231 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16232 if test $ac_delim_n = $ac_delim_num; then
16233 break
16234 elif $ac_last_try; then
16235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16236 else
16237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16238 fi
16239 done
16240 rm -f conf$$subs.sh
16241
16242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16243 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16244 _ACEOF
16245 sed -n '
16246 h
16247 s/^/S["/; s/!.*/"]=/
16248 p
16249 g
16250 s/^[^!]*!//
16251 :repl
16252 t repl
16253 s/'"$ac_delim"'$//
16254 t delim
16255 :nl
16256 h
16257 s/\(.\{148\}\)..*/\1/
16258 t more1
16259 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16260 p
16261 n
16262 b repl
16263 :more1
16264 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16265 p
16266 g
16267 s/.\{148\}//
16268 t nl
16269 :delim
16270 h
16271 s/\(.\{148\}\)..*/\1/
16272 t more2
16273 s/["\\]/\\&/g; s/^/"/; s/$/"/
16274 p
16275 b
16276 :more2
16277 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16278 p
16279 g
16280 s/.\{148\}//
16281 t delim
16282 ' <conf$$subs.awk | sed '
16283 /^[^""]/{
16284 N
16285 s/\n//
16286 }
16287 ' >>$CONFIG_STATUS || ac_write_fail=1
16288 rm -f conf$$subs.awk
16289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290 _ACAWK
16291 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16292 for (key in S) S_is_set[key] = 1
16293 FS = "\a"
16294
16295 }
16296 {
16297 line = $ 0
16298 nfields = split(line, field, "@")
16299 substed = 0
16300 len = length(field[1])
16301 for (i = 2; i < nfields; i++) {
16302 key = field[i]
16303 keylen = length(key)
16304 if (S_is_set[key]) {
16305 value = S[key]
16306 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16307 len += length(value) + length(field[++i])
16308 substed = 1
16309 } else
16310 len += 1 + keylen
16311 }
16312
16313 print line
16314 }
16315
16316 _ACAWK
16317 _ACEOF
16318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16319 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16320 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16321 else
16322 cat
16323 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16324 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16325 _ACEOF
16326
16327 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16328 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16329 # trailing colons and then remove the whole line if VPATH becomes empty
16330 # (actually we leave an empty line to preserve line numbers).
16331 if test "x$srcdir" = x.; then
16332 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16333 h
16334 s///
16335 s/^/:/
16336 s/[ ]*$/:/
16337 s/:\$(srcdir):/:/g
16338 s/:\${srcdir}:/:/g
16339 s/:@srcdir@:/:/g
16340 s/^:*//
16341 s/:*$//
16342 x
16343 s/\(=[ ]*\).*/\1/
16344 G
16345 s/\n//
16346 s/^[^=]*=[ ]*$//
16347 }'
16348 fi
16349
16350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16351 fi # test -n "$CONFIG_FILES"
16352
16353 # Set up the scripts for CONFIG_HEADERS section.
16354 # No need to generate them if there are no CONFIG_HEADERS.
16355 # This happens for instance with `./config.status Makefile'.
16356 if test -n "$CONFIG_HEADERS"; then
16357 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16358 BEGIN {
16359 _ACEOF
16360
16361 # Transform confdefs.h into an awk script `defines.awk', embedded as
16362 # here-document in config.status, that substitutes the proper values into
16363 # config.h.in to produce config.h.
16364
16365 # Create a delimiter string that does not exist in confdefs.h, to ease
16366 # handling of long lines.
16367 ac_delim='%!_!# '
16368 for ac_last_try in false false :; do
16369 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16370 if test -z "$ac_tt"; then
16371 break
16372 elif $ac_last_try; then
16373 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16374 else
16375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16376 fi
16377 done
16378
16379 # For the awk script, D is an array of macro values keyed by name,
16380 # likewise P contains macro parameters if any. Preserve backslash
16381 # newline sequences.
16382
16383 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16384 sed -n '
16385 s/.\{148\}/&'"$ac_delim"'/g
16386 t rset
16387 :rset
16388 s/^[ ]*#[ ]*define[ ][ ]*/ /
16389 t def
16390 d
16391 :def
16392 s/\\$//
16393 t bsnl
16394 s/["\\]/\\&/g
16395 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16396 D["\1"]=" \3"/p
16397 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16398 d
16399 :bsnl
16400 s/["\\]/\\&/g
16401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16402 D["\1"]=" \3\\\\\\n"\\/p
16403 t cont
16404 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16405 t cont
16406 d
16407 :cont
16408 n
16409 s/.\{148\}/&'"$ac_delim"'/g
16410 t clear
16411 :clear
16412 s/\\$//
16413 t bsnlc
16414 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16415 d
16416 :bsnlc
16417 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16418 b cont
16419 ' <confdefs.h | sed '
16420 s/'"$ac_delim"'/"\\\
16421 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16422
16423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16424 for (key in D) D_is_set[key] = 1
16425 FS = "\a"
16426 }
16427 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16428 line = \$ 0
16429 split(line, arg, " ")
16430 if (arg[1] == "#") {
16431 defundef = arg[2]
16432 mac1 = arg[3]
16433 } else {
16434 defundef = substr(arg[1], 2)
16435 mac1 = arg[2]
16436 }
16437 split(mac1, mac2, "(") #)
16438 macro = mac2[1]
16439 prefix = substr(line, 1, index(line, defundef) - 1)
16440 if (D_is_set[macro]) {
16441 # Preserve the white space surrounding the "#".
16442 print prefix "define", macro P[macro] D[macro]
16443 next
16444 } else {
16445 # Replace #undef with comments. This is necessary, for example,
16446 # in the case of _POSIX_SOURCE, which is predefined and required
16447 # on some systems where configure will not decide to define it.
16448 if (defundef == "undef") {
16449 print "/*", prefix defundef, macro, "*/"
16450 next
16451 }
16452 }
16453 }
16454 { print }
16455 _ACAWK
16456 _ACEOF
16457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16458 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16459 fi # test -n "$CONFIG_HEADERS"
16460
16461
16462 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16463 shift
16464 for ac_tag
16465 do
16466 case $ac_tag in
16467 :[FHLC]) ac_mode=$ac_tag; continue;;
16468 esac
16469 case $ac_mode$ac_tag in
16470 :[FHL]*:*);;
16471 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16472 :[FH]-) ac_tag=-:-;;
16473 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16474 esac
16475 ac_save_IFS=$IFS
16476 IFS=:
16477 set x $ac_tag
16478 IFS=$ac_save_IFS
16479 shift
16480 ac_file=$1
16481 shift
16482
16483 case $ac_mode in
16484 :L) ac_source=$1;;
16485 :[FH])
16486 ac_file_inputs=
16487 for ac_f
16488 do
16489 case $ac_f in
16490 -) ac_f="$ac_tmp/stdin";;
16491 *) # Look for the file first in the build tree, then in the source tree
16492 # (if the path is not absolute). The absolute path cannot be DOS-style,
16493 # because $ac_f cannot contain `:'.
16494 test -f "$ac_f" ||
16495 case $ac_f in
16496 [\\/$]*) false;;
16497 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16498 esac ||
16499 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16500 esac
16501 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16502 as_fn_append ac_file_inputs " '$ac_f'"
16503 done
16504
16505 # Let's still pretend it is `configure' which instantiates (i.e., don't
16506 # use $as_me), people would be surprised to read:
16507 # /* config.h. Generated by config.status. */
16508 configure_input='Generated from '`
16509 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16510 `' by configure.'
16511 if test x"$ac_file" != x-; then
16512 configure_input="$ac_file. $configure_input"
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16514 $as_echo "$as_me: creating $ac_file" >&6;}
16515 fi
16516 # Neutralize special characters interpreted by sed in replacement strings.
16517 case $configure_input in #(
16518 *\&* | *\|* | *\\* )
16519 ac_sed_conf_input=`$as_echo "$configure_input" |
16520 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16521 *) ac_sed_conf_input=$configure_input;;
16522 esac
16523
16524 case $ac_tag in
16525 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16527 esac
16528 ;;
16529 esac
16530
16531 ac_dir=`$as_dirname -- "$ac_file" ||
16532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16533 X"$ac_file" : 'X\(//\)[^/]' \| \
16534 X"$ac_file" : 'X\(//\)$' \| \
16535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16536 $as_echo X"$ac_file" |
16537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16538 s//\1/
16539 q
16540 }
16541 /^X\(\/\/\)[^/].*/{
16542 s//\1/
16543 q
16544 }
16545 /^X\(\/\/\)$/{
16546 s//\1/
16547 q
16548 }
16549 /^X\(\/\).*/{
16550 s//\1/
16551 q
16552 }
16553 s/.*/./; q'`
16554 as_dir="$ac_dir"; as_fn_mkdir_p
16555 ac_builddir=.
16556
16557 case "$ac_dir" in
16558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16559 *)
16560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16561 # A ".." for each directory in $ac_dir_suffix.
16562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16563 case $ac_top_builddir_sub in
16564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16566 esac ;;
16567 esac
16568 ac_abs_top_builddir=$ac_pwd
16569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16570 # for backward compatibility:
16571 ac_top_builddir=$ac_top_build_prefix
16572
16573 case $srcdir in
16574 .) # We are building in place.
16575 ac_srcdir=.
16576 ac_top_srcdir=$ac_top_builddir_sub
16577 ac_abs_top_srcdir=$ac_pwd ;;
16578 [\\/]* | ?:[\\/]* ) # Absolute name.
16579 ac_srcdir=$srcdir$ac_dir_suffix;
16580 ac_top_srcdir=$srcdir
16581 ac_abs_top_srcdir=$srcdir ;;
16582 *) # Relative name.
16583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16584 ac_top_srcdir=$ac_top_build_prefix$srcdir
16585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16586 esac
16587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16588
16589
16590 case $ac_mode in
16591 :F)
16592 #
16593 # CONFIG_FILE
16594 #
16595
16596 case $INSTALL in
16597 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16598 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16599 esac
16600 ac_MKDIR_P=$MKDIR_P
16601 case $MKDIR_P in
16602 [\\/$]* | ?:[\\/]* ) ;;
16603 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16604 esac
16605 _ACEOF
16606
16607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16608 # If the template does not know about datarootdir, expand it.
16609 # FIXME: This hack should be removed a few years after 2.60.
16610 ac_datarootdir_hack=; ac_datarootdir_seen=
16611 ac_sed_dataroot='
16612 /datarootdir/ {
16613 p
16614 q
16615 }
16616 /@datadir@/p
16617 /@docdir@/p
16618 /@infodir@/p
16619 /@localedir@/p
16620 /@mandir@/p'
16621 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16622 *datarootdir*) ac_datarootdir_seen=yes;;
16623 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16625 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16626 _ACEOF
16627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16628 ac_datarootdir_hack='
16629 s&@datadir@&$datadir&g
16630 s&@docdir@&$docdir&g
16631 s&@infodir@&$infodir&g
16632 s&@localedir@&$localedir&g
16633 s&@mandir@&$mandir&g
16634 s&\\\${datarootdir}&$datarootdir&g' ;;
16635 esac
16636 _ACEOF
16637
16638 # Neutralize VPATH when `$srcdir' = `.'.
16639 # Shell code in configure.ac might set extrasub.
16640 # FIXME: do we really want to maintain this feature?
16641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16642 ac_sed_extra="$ac_vpsub
16643 $extrasub
16644 _ACEOF
16645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16646 :t
16647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16648 s|@configure_input@|$ac_sed_conf_input|;t t
16649 s&@top_builddir@&$ac_top_builddir_sub&;t t
16650 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16651 s&@srcdir@&$ac_srcdir&;t t
16652 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16653 s&@top_srcdir@&$ac_top_srcdir&;t t
16654 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16655 s&@builddir@&$ac_builddir&;t t
16656 s&@abs_builddir@&$ac_abs_builddir&;t t
16657 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16658 s&@INSTALL@&$ac_INSTALL&;t t
16659 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16660 $ac_datarootdir_hack
16661 "
16662 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16663 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16664
16665 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16666 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16667 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16668 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16670 which seems to be undefined. Please make sure it is defined" >&5
16671 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16672 which seems to be undefined. Please make sure it is defined" >&2;}
16673
16674 rm -f "$ac_tmp/stdin"
16675 case $ac_file in
16676 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16677 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16678 esac \
16679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16680 ;;
16681 :H)
16682 #
16683 # CONFIG_HEADER
16684 #
16685 if test x"$ac_file" != x-; then
16686 {
16687 $as_echo "/* $configure_input */" \
16688 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16689 } >"$ac_tmp/config.h" \
16690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16691 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16693 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16694 else
16695 rm -f "$ac_file"
16696 mv "$ac_tmp/config.h" "$ac_file" \
16697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16698 fi
16699 else
16700 $as_echo "/* $configure_input */" \
16701 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16702 || as_fn_error $? "could not create -" "$LINENO" 5
16703 fi
16704 # Compute "$ac_file"'s index in $config_headers.
16705 _am_arg="$ac_file"
16706 _am_stamp_count=1
16707 for _am_header in $config_headers :; do
16708 case $_am_header in
16709 $_am_arg | $_am_arg:* )
16710 break ;;
16711 * )
16712 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16713 esac
16714 done
16715 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16716 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16717 X"$_am_arg" : 'X\(//\)[^/]' \| \
16718 X"$_am_arg" : 'X\(//\)$' \| \
16719 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16720 $as_echo X"$_am_arg" |
16721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16722 s//\1/
16723 q
16724 }
16725 /^X\(\/\/\)[^/].*/{
16726 s//\1/
16727 q
16728 }
16729 /^X\(\/\/\)$/{
16730 s//\1/
16731 q
16732 }
16733 /^X\(\/\).*/{
16734 s//\1/
16735 q
16736 }
16737 s/.*/./; q'`/stamp-h$_am_stamp_count
16738 ;;
16739
16740 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16741 $as_echo "$as_me: executing $ac_file commands" >&6;}
16742 ;;
16743 esac
16744
16745
16746 case $ac_file$ac_mode in
16747 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16748 # Older Autoconf quotes --file arguments for eval, but not when files
16749 # are listed without --file. Let's play safe and only enable the eval
16750 # if we detect the quoting.
16751 case $CONFIG_FILES in
16752 *\'*) eval set x "$CONFIG_FILES" ;;
16753 *) set x $CONFIG_FILES ;;
16754 esac
16755 shift
16756 for mf
16757 do
16758 # Strip MF so we end up with the name of the file.
16759 mf=`echo "$mf" | sed -e 's/:.*$//'`
16760 # Check whether this is an Automake generated Makefile or not.
16761 # We used to match only the files named 'Makefile.in', but
16762 # some people rename them; so instead we look at the file content.
16763 # Grep'ing the first line is not enough: some people post-process
16764 # each Makefile.in and add a new line on top of each file to say so.
16765 # Grep'ing the whole file is not good either: AIX grep has a line
16766 # limit of 2048, but all sed's we know have understand at least 4000.
16767 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16768 dirpart=`$as_dirname -- "$mf" ||
16769 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16770 X"$mf" : 'X\(//\)[^/]' \| \
16771 X"$mf" : 'X\(//\)$' \| \
16772 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16773 $as_echo X"$mf" |
16774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16775 s//\1/
16776 q
16777 }
16778 /^X\(\/\/\)[^/].*/{
16779 s//\1/
16780 q
16781 }
16782 /^X\(\/\/\)$/{
16783 s//\1/
16784 q
16785 }
16786 /^X\(\/\).*/{
16787 s//\1/
16788 q
16789 }
16790 s/.*/./; q'`
16791 else
16792 continue
16793 fi
16794 # Extract the definition of DEPDIR, am__include, and am__quote
16795 # from the Makefile without running 'make'.
16796 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16797 test -z "$DEPDIR" && continue
16798 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16799 test -z "$am__include" && continue
16800 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16801 # Find all dependency output files, they are included files with
16802 # $(DEPDIR) in their names. We invoke sed twice because it is the
16803 # simplest approach to changing $(DEPDIR) to its actual value in the
16804 # expansion.
16805 for file in `sed -n "
16806 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16807 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16808 # Make sure the directory exists.
16809 test -f "$dirpart/$file" && continue
16810 fdir=`$as_dirname -- "$file" ||
16811 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16812 X"$file" : 'X\(//\)[^/]' \| \
16813 X"$file" : 'X\(//\)$' \| \
16814 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16815 $as_echo X"$file" |
16816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16817 s//\1/
16818 q
16819 }
16820 /^X\(\/\/\)[^/].*/{
16821 s//\1/
16822 q
16823 }
16824 /^X\(\/\/\)$/{
16825 s//\1/
16826 q
16827 }
16828 /^X\(\/\).*/{
16829 s//\1/
16830 q
16831 }
16832 s/.*/./; q'`
16833 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16834 # echo "creating $dirpart/$file"
16835 echo '# dummy' > "$dirpart/$file"
16836 done
16837 done
16838 }
16839 ;;
16840 "libtool":C)
16841
16842 # See if we are running on zsh, and set the options which allow our
16843 # commands through without removal of \ escapes.
16844 if test -n "${ZSH_VERSION+set}" ; then
16845 setopt NO_GLOB_SUBST
16846 fi
16847
16848 cfgfile="${ofile}T"
16849 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16850 $RM "$cfgfile"
16851
16852 cat <<_LT_EOF >> "$cfgfile"
16853 #! $SHELL
16854
16855 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16856 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16857 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16858 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16859 #
16860 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16861 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16862 # Written by Gordon Matzigkeit, 1996
16863 #
16864 # This file is part of GNU Libtool.
16865 #
16866 # GNU Libtool is free software; you can redistribute it and/or
16867 # modify it under the terms of the GNU General Public License as
16868 # published by the Free Software Foundation; either version 2 of
16869 # the License, or (at your option) any later version.
16870 #
16871 # As a special exception to the GNU General Public License,
16872 # if you distribute this file as part of a program or library that
16873 # is built using GNU Libtool, you may include this file under the
16874 # same distribution terms that you use for the rest of that program.
16875 #
16876 # GNU Libtool is distributed in the hope that it will be useful,
16877 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16878 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16879 # GNU General Public License for more details.
16880 #
16881 # You should have received a copy of the GNU General Public License
16882 # along with GNU Libtool; see the file COPYING. If not, a copy
16883 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16884 # obtained by writing to the Free Software Foundation, Inc.,
16885 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16886
16887
16888 # The names of the tagged configurations supported by this script.
16889 available_tags=""
16890
16891 # ### BEGIN LIBTOOL CONFIG
16892
16893 # Which release of libtool.m4 was used?
16894 macro_version=$macro_version
16895 macro_revision=$macro_revision
16896
16897 # Whether or not to build shared libraries.
16898 build_libtool_libs=$enable_shared
16899
16900 # Whether or not to build static libraries.
16901 build_old_libs=$enable_static
16902
16903 # What type of objects to build.
16904 pic_mode=$pic_mode
16905
16906 # Whether or not to optimize for fast installation.
16907 fast_install=$enable_fast_install
16908
16909 # Shell to use when invoking shell scripts.
16910 SHELL=$lt_SHELL
16911
16912 # An echo program that protects backslashes.
16913 ECHO=$lt_ECHO
16914
16915 # The host system.
16916 host_alias=$host_alias
16917 host=$host
16918 host_os=$host_os
16919
16920 # The build system.
16921 build_alias=$build_alias
16922 build=$build
16923 build_os=$build_os
16924
16925 # A sed program that does not truncate output.
16926 SED=$lt_SED
16927
16928 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16929 Xsed="\$SED -e 1s/^X//"
16930
16931 # A grep program that handles long lines.
16932 GREP=$lt_GREP
16933
16934 # An ERE matcher.
16935 EGREP=$lt_EGREP
16936
16937 # A literal string matcher.
16938 FGREP=$lt_FGREP
16939
16940 # A BSD- or MS-compatible name lister.
16941 NM=$lt_NM
16942
16943 # Whether we need soft or hard links.
16944 LN_S=$lt_LN_S
16945
16946 # What is the maximum length of a command?
16947 max_cmd_len=$max_cmd_len
16948
16949 # Object file suffix (normally "o").
16950 objext=$ac_objext
16951
16952 # Executable file suffix (normally "").
16953 exeext=$exeext
16954
16955 # whether the shell understands "unset".
16956 lt_unset=$lt_unset
16957
16958 # turn spaces into newlines.
16959 SP2NL=$lt_lt_SP2NL
16960
16961 # turn newlines into spaces.
16962 NL2SP=$lt_lt_NL2SP
16963
16964 # An object symbol dumper.
16965 OBJDUMP=$lt_OBJDUMP
16966
16967 # Method to check whether dependent libraries are shared objects.
16968 deplibs_check_method=$lt_deplibs_check_method
16969
16970 # Command to use when deplibs_check_method == "file_magic".
16971 file_magic_cmd=$lt_file_magic_cmd
16972
16973 # The archiver.
16974 AR=$lt_AR
16975 AR_FLAGS=$lt_AR_FLAGS
16976
16977 # A symbol stripping program.
16978 STRIP=$lt_STRIP
16979
16980 # Commands used to install an old-style archive.
16981 RANLIB=$lt_RANLIB
16982 old_postinstall_cmds=$lt_old_postinstall_cmds
16983 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16984
16985 # Whether to use a lock for old archive extraction.
16986 lock_old_archive_extraction=$lock_old_archive_extraction
16987
16988 # A C compiler.
16989 LTCC=$lt_CC
16990
16991 # LTCC compiler flags.
16992 LTCFLAGS=$lt_CFLAGS
16993
16994 # Take the output of nm and produce a listing of raw symbols and C names.
16995 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16996
16997 # Transform the output of nm in a proper C declaration.
16998 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16999
17000 # Transform the output of nm in a C name address pair.
17001 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17002
17003 # Transform the output of nm in a C name address pair when lib prefix is needed.
17004 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17005
17006 # The name of the directory that contains temporary libtool files.
17007 objdir=$objdir
17008
17009 # Used to examine libraries when file_magic_cmd begins with "file".
17010 MAGIC_CMD=$MAGIC_CMD
17011
17012 # Must we lock files when doing compilation?
17013 need_locks=$lt_need_locks
17014
17015 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17016 DSYMUTIL=$lt_DSYMUTIL
17017
17018 # Tool to change global to local symbols on Mac OS X.
17019 NMEDIT=$lt_NMEDIT
17020
17021 # Tool to manipulate fat objects and archives on Mac OS X.
17022 LIPO=$lt_LIPO
17023
17024 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17025 OTOOL=$lt_OTOOL
17026
17027 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17028 OTOOL64=$lt_OTOOL64
17029
17030 # Old archive suffix (normally "a").
17031 libext=$libext
17032
17033 # Shared library suffix (normally ".so").
17034 shrext_cmds=$lt_shrext_cmds
17035
17036 # The commands to extract the exported symbol list from a shared archive.
17037 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17038
17039 # Variables whose values should be saved in libtool wrapper scripts and
17040 # restored at link time.
17041 variables_saved_for_relink=$lt_variables_saved_for_relink
17042
17043 # Do we need the "lib" prefix for modules?
17044 need_lib_prefix=$need_lib_prefix
17045
17046 # Do we need a version for libraries?
17047 need_version=$need_version
17048
17049 # Library versioning type.
17050 version_type=$version_type
17051
17052 # Shared library runtime path variable.
17053 runpath_var=$runpath_var
17054
17055 # Shared library path variable.
17056 shlibpath_var=$shlibpath_var
17057
17058 # Is shlibpath searched before the hard-coded library search path?
17059 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17060
17061 # Format of library name prefix.
17062 libname_spec=$lt_libname_spec
17063
17064 # List of archive names. First name is the real one, the rest are links.
17065 # The last name is the one that the linker finds with -lNAME
17066 library_names_spec=$lt_library_names_spec
17067
17068 # The coded name of the library, if different from the real name.
17069 soname_spec=$lt_soname_spec
17070
17071 # Permission mode override for installation of shared libraries.
17072 install_override_mode=$lt_install_override_mode
17073
17074 # Command to use after installation of a shared archive.
17075 postinstall_cmds=$lt_postinstall_cmds
17076
17077 # Command to use after uninstallation of a shared archive.
17078 postuninstall_cmds=$lt_postuninstall_cmds
17079
17080 # Commands used to finish a libtool library installation in a directory.
17081 finish_cmds=$lt_finish_cmds
17082
17083 # As "finish_cmds", except a single script fragment to be evaled but
17084 # not shown.
17085 finish_eval=$lt_finish_eval
17086
17087 # Whether we should hardcode library paths into libraries.
17088 hardcode_into_libs=$hardcode_into_libs
17089
17090 # Compile-time system search path for libraries.
17091 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17092
17093 # Run-time system search path for libraries.
17094 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17095
17096 # Whether dlopen is supported.
17097 dlopen_support=$enable_dlopen
17098
17099 # Whether dlopen of programs is supported.
17100 dlopen_self=$enable_dlopen_self
17101
17102 # Whether dlopen of statically linked programs is supported.
17103 dlopen_self_static=$enable_dlopen_self_static
17104
17105 # Commands to strip libraries.
17106 old_striplib=$lt_old_striplib
17107 striplib=$lt_striplib
17108
17109
17110 # The linker used to build libraries.
17111 LD=$lt_LD
17112
17113 # How to create reloadable object files.
17114 reload_flag=$lt_reload_flag
17115 reload_cmds=$lt_reload_cmds
17116
17117 # Commands used to build an old-style archive.
17118 old_archive_cmds=$lt_old_archive_cmds
17119
17120 # A language specific compiler.
17121 CC=$lt_compiler
17122
17123 # Is the compiler the GNU compiler?
17124 with_gcc=$GCC
17125
17126 # Compiler flag to turn off builtin functions.
17127 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17128
17129 # How to pass a linker flag through the compiler.
17130 wl=$lt_lt_prog_compiler_wl
17131
17132 # Additional compiler flags for building library objects.
17133 pic_flag=$lt_lt_prog_compiler_pic
17134
17135 # Compiler flag to prevent dynamic linking.
17136 link_static_flag=$lt_lt_prog_compiler_static
17137
17138 # Does compiler simultaneously support -c and -o options?
17139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17140
17141 # Whether or not to add -lc for building shared libraries.
17142 build_libtool_need_lc=$archive_cmds_need_lc
17143
17144 # Whether or not to disallow shared libs when runtime libs are static.
17145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17146
17147 # Compiler flag to allow reflexive dlopens.
17148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17149
17150 # Compiler flag to generate shared objects directly from archives.
17151 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17152
17153 # Whether the compiler copes with passing no objects directly.
17154 compiler_needs_object=$lt_compiler_needs_object
17155
17156 # Create an old-style archive from a shared archive.
17157 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17158
17159 # Create a temporary old-style archive to link instead of a shared archive.
17160 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17161
17162 # Commands used to build a shared archive.
17163 archive_cmds=$lt_archive_cmds
17164 archive_expsym_cmds=$lt_archive_expsym_cmds
17165
17166 # Commands used to build a loadable module if different from building
17167 # a shared archive.
17168 module_cmds=$lt_module_cmds
17169 module_expsym_cmds=$lt_module_expsym_cmds
17170
17171 # Whether we are building with GNU ld or not.
17172 with_gnu_ld=$lt_with_gnu_ld
17173
17174 # Flag that allows shared libraries with undefined symbols to be built.
17175 allow_undefined_flag=$lt_allow_undefined_flag
17176
17177 # Flag that enforces no undefined symbols.
17178 no_undefined_flag=$lt_no_undefined_flag
17179
17180 # Flag to hardcode \$libdir into a binary during linking.
17181 # This must work even if \$libdir does not exist
17182 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17183
17184 # If ld is used when linking, flag to hardcode \$libdir into a binary
17185 # during linking. This must work even if \$libdir does not exist.
17186 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17187
17188 # Whether we need a single "-rpath" flag with a separated argument.
17189 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17190
17191 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17192 # DIR into the resulting binary.
17193 hardcode_direct=$hardcode_direct
17194
17195 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17196 # DIR into the resulting binary and the resulting library dependency is
17197 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17198 # library is relocated.
17199 hardcode_direct_absolute=$hardcode_direct_absolute
17200
17201 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17202 # into the resulting binary.
17203 hardcode_minus_L=$hardcode_minus_L
17204
17205 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17206 # into the resulting binary.
17207 hardcode_shlibpath_var=$hardcode_shlibpath_var
17208
17209 # Set to "yes" if building a shared library automatically hardcodes DIR
17210 # into the library and all subsequent libraries and executables linked
17211 # against it.
17212 hardcode_automatic=$hardcode_automatic
17213
17214 # Set to yes if linker adds runtime paths of dependent libraries
17215 # to runtime path list.
17216 inherit_rpath=$inherit_rpath
17217
17218 # Whether libtool must link a program against all its dependency libraries.
17219 link_all_deplibs=$link_all_deplibs
17220
17221 # Fix the shell variable \$srcfile for the compiler.
17222 fix_srcfile_path=$lt_fix_srcfile_path
17223
17224 # Set to "yes" if exported symbols are required.
17225 always_export_symbols=$always_export_symbols
17226
17227 # The commands to list exported symbols.
17228 export_symbols_cmds=$lt_export_symbols_cmds
17229
17230 # Symbols that should not be listed in the preloaded symbols.
17231 exclude_expsyms=$lt_exclude_expsyms
17232
17233 # Symbols that must always be exported.
17234 include_expsyms=$lt_include_expsyms
17235
17236 # Commands necessary for linking programs (against libraries) with templates.
17237 prelink_cmds=$lt_prelink_cmds
17238
17239 # Specify filename containing input files.
17240 file_list_spec=$lt_file_list_spec
17241
17242 # How to hardcode a shared library path into an executable.
17243 hardcode_action=$hardcode_action
17244
17245 # ### END LIBTOOL CONFIG
17246
17247 _LT_EOF
17248
17249 case $host_os in
17250 aix3*)
17251 cat <<\_LT_EOF >> "$cfgfile"
17252 # AIX sometimes has problems with the GCC collect2 program. For some
17253 # reason, if we set the COLLECT_NAMES environment variable, the problems
17254 # vanish in a puff of smoke.
17255 if test "X${COLLECT_NAMES+set}" != Xset; then
17256 COLLECT_NAMES=
17257 export COLLECT_NAMES
17258 fi
17259 _LT_EOF
17260 ;;
17261 esac
17262
17263
17264 ltmain="$ac_aux_dir/ltmain.sh"
17265
17266
17267 # We use sed instead of cat because bash on DJGPP gets confused if
17268 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17269 # text mode, it properly converts lines to CR/LF. This bash problem
17270 # is reportedly fixed, but why not run on old versions too?
17271 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17272 || (rm -f "$cfgfile"; exit 1)
17273
17274 case $xsi_shell in
17275 yes)
17276 cat << \_LT_EOF >> "$cfgfile"
17277
17278 # func_dirname file append nondir_replacement
17279 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17280 # otherwise set result to NONDIR_REPLACEMENT.
17281 func_dirname ()
17282 {
17283 case ${1} in
17284 */*) func_dirname_result="${1%/*}${2}" ;;
17285 * ) func_dirname_result="${3}" ;;
17286 esac
17287 }
17288
17289 # func_basename file
17290 func_basename ()
17291 {
17292 func_basename_result="${1##*/}"
17293 }
17294
17295 # func_dirname_and_basename file append nondir_replacement
17296 # perform func_basename and func_dirname in a single function
17297 # call:
17298 # dirname: Compute the dirname of FILE. If nonempty,
17299 # add APPEND to the result, otherwise set result
17300 # to NONDIR_REPLACEMENT.
17301 # value returned in "$func_dirname_result"
17302 # basename: Compute filename of FILE.
17303 # value retuned in "$func_basename_result"
17304 # Implementation must be kept synchronized with func_dirname
17305 # and func_basename. For efficiency, we do not delegate to
17306 # those functions but instead duplicate the functionality here.
17307 func_dirname_and_basename ()
17308 {
17309 case ${1} in
17310 */*) func_dirname_result="${1%/*}${2}" ;;
17311 * ) func_dirname_result="${3}" ;;
17312 esac
17313 func_basename_result="${1##*/}"
17314 }
17315
17316 # func_stripname prefix suffix name
17317 # strip PREFIX and SUFFIX off of NAME.
17318 # PREFIX and SUFFIX must not contain globbing or regex special
17319 # characters, hashes, percent signs, but SUFFIX may contain a leading
17320 # dot (in which case that matches only a dot).
17321 func_stripname ()
17322 {
17323 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17324 # positional parameters, so assign one to ordinary parameter first.
17325 func_stripname_result=${3}
17326 func_stripname_result=${func_stripname_result#"${1}"}
17327 func_stripname_result=${func_stripname_result%"${2}"}
17328 }
17329
17330 # func_opt_split
17331 func_opt_split ()
17332 {
17333 func_opt_split_opt=${1%%=*}
17334 func_opt_split_arg=${1#*=}
17335 }
17336
17337 # func_lo2o object
17338 func_lo2o ()
17339 {
17340 case ${1} in
17341 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17342 *) func_lo2o_result=${1} ;;
17343 esac
17344 }
17345
17346 # func_xform libobj-or-source
17347 func_xform ()
17348 {
17349 func_xform_result=${1%.*}.lo
17350 }
17351
17352 # func_arith arithmetic-term...
17353 func_arith ()
17354 {
17355 func_arith_result=$(( $* ))
17356 }
17357
17358 # func_len string
17359 # STRING may not start with a hyphen.
17360 func_len ()
17361 {
17362 func_len_result=${#1}
17363 }
17364
17365 _LT_EOF
17366 ;;
17367 *) # Bourne compatible functions.
17368 cat << \_LT_EOF >> "$cfgfile"
17369
17370 # func_dirname file append nondir_replacement
17371 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17372 # otherwise set result to NONDIR_REPLACEMENT.
17373 func_dirname ()
17374 {
17375 # Extract subdirectory from the argument.
17376 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17377 if test "X$func_dirname_result" = "X${1}"; then
17378 func_dirname_result="${3}"
17379 else
17380 func_dirname_result="$func_dirname_result${2}"
17381 fi
17382 }
17383
17384 # func_basename file
17385 func_basename ()
17386 {
17387 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17388 }
17389
17390
17391 # func_stripname prefix suffix name
17392 # strip PREFIX and SUFFIX off of NAME.
17393 # PREFIX and SUFFIX must not contain globbing or regex special
17394 # characters, hashes, percent signs, but SUFFIX may contain a leading
17395 # dot (in which case that matches only a dot).
17396 # func_strip_suffix prefix name
17397 func_stripname ()
17398 {
17399 case ${2} in
17400 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17401 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17402 esac
17403 }
17404
17405 # sed scripts:
17406 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17407 my_sed_long_arg='1s/^-[^=]*=//'
17408
17409 # func_opt_split
17410 func_opt_split ()
17411 {
17412 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17413 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17414 }
17415
17416 # func_lo2o object
17417 func_lo2o ()
17418 {
17419 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17420 }
17421
17422 # func_xform libobj-or-source
17423 func_xform ()
17424 {
17425 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17426 }
17427
17428 # func_arith arithmetic-term...
17429 func_arith ()
17430 {
17431 func_arith_result=`expr "$@"`
17432 }
17433
17434 # func_len string
17435 # STRING may not start with a hyphen.
17436 func_len ()
17437 {
17438 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17439 }
17440
17441 _LT_EOF
17442 esac
17443
17444 case $lt_shell_append in
17445 yes)
17446 cat << \_LT_EOF >> "$cfgfile"
17447
17448 # func_append var value
17449 # Append VALUE to the end of shell variable VAR.
17450 func_append ()
17451 {
17452 eval "$1+=\$2"
17453 }
17454 _LT_EOF
17455 ;;
17456 *)
17457 cat << \_LT_EOF >> "$cfgfile"
17458
17459 # func_append var value
17460 # Append VALUE to the end of shell variable VAR.
17461 func_append ()
17462 {
17463 eval "$1=\$$1\$2"
17464 }
17465
17466 _LT_EOF
17467 ;;
17468 esac
17469
17470
17471 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17472 || (rm -f "$cfgfile"; exit 1)
17473
17474 mv -f "$cfgfile" "$ofile" ||
17475 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17476 chmod +x "$ofile"
17477
17478 ;;
17479 "default-1":C)
17480 for ac_file in $CONFIG_FILES; do
17481 # Support "outfile[:infile[:infile...]]"
17482 case "$ac_file" in
17483 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17484 esac
17485 # PO directories have a Makefile.in generated from Makefile.in.in.
17486 case "$ac_file" in */Makefile.in)
17487 # Adjust a relative srcdir.
17488 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17489 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17490 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17491 # In autoconf-2.13 it is called $ac_given_srcdir.
17492 # In autoconf-2.50 it is called $srcdir.
17493 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17494 case "$ac_given_srcdir" in
17495 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17496 /*) top_srcdir="$ac_given_srcdir" ;;
17497 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17498 esac
17499 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17500 rm -f "$ac_dir/POTFILES"
17501 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17502 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17503 POMAKEFILEDEPS="POTFILES.in"
17504 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17505 # on $ac_dir but don't depend on user-specified configuration
17506 # parameters.
17507 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17508 # The LINGUAS file contains the set of available languages.
17509 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17510 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
17511 fi
17512 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17513 # Hide the ALL_LINGUAS assigment from automake.
17514 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17515 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17516 else
17517 # The set of available languages was given in configure.ac.
17518 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17519 fi
17520 case "$ac_given_srcdir" in
17521 .) srcdirpre= ;;
17522 *) srcdirpre='$(srcdir)/' ;;
17523 esac
17524 POFILES=
17525 GMOFILES=
17526 UPDATEPOFILES=
17527 DUMMYPOFILES=
17528 for lang in $ALL_LINGUAS; do
17529 POFILES="$POFILES $srcdirpre$lang.po"
17530 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17531 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17532 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17533 done
17534 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17535 # environment variable.
17536 INST_LINGUAS=
17537 if test -n "$ALL_LINGUAS"; then
17538 for presentlang in $ALL_LINGUAS; do
17539 useit=no
17540 if test "%UNSET%" != "$LINGUAS"; then
17541 desiredlanguages="$LINGUAS"
17542 else
17543 desiredlanguages="$ALL_LINGUAS"
17544 fi
17545 for desiredlang in $desiredlanguages; do
17546 # Use the presentlang catalog if desiredlang is
17547 # a. equal to presentlang, or
17548 # b. a variant of presentlang (because in this case,
17549 # presentlang can be used as a fallback for messages
17550 # which are not translated in the desiredlang catalog).
17551 case "$desiredlang" in
17552 "$presentlang"*) useit=yes;;
17553 esac
17554 done
17555 if test $useit = yes; then
17556 INST_LINGUAS="$INST_LINGUAS $presentlang"
17557 fi
17558 done
17559 fi
17560 CATALOGS=
17561 if test -n "$INST_LINGUAS"; then
17562 for lang in $INST_LINGUAS; do
17563 CATALOGS="$CATALOGS $lang.gmo"
17564 done
17565 fi
17566 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17567 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"
17568 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17569 if test -f "$f"; then
17570 case "$f" in
17571 *.orig | *.bak | *~) ;;
17572 *) cat "$f" >> "$ac_dir/Makefile" ;;
17573 esac
17574 fi
17575 done
17576 fi
17577 ;;
17578 esac
17579 done ;;
17580 "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
17581 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
17582 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
17583 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
17584 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
17585 if test "x$cgen_cpu_prefix" != x ; then
17586 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
17587 fi ;;
17588
17589 esac
17590 done # for ac_tag
17591
17592
17593 as_fn_exit 0
17594 _ACEOF
17595 ac_clean_files=$ac_clean_files_save
17596
17597 test $ac_write_fail = 0 ||
17598 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17599
17600
17601 # configure is writing to config.log, and then calls config.status.
17602 # config.status does its own redirection, appending to config.log.
17603 # Unfortunately, on DOS this fails, as config.log is still kept open
17604 # by configure, so config.status won't be able to write to it; its
17605 # output is simply discarded. So we exec the FD to /dev/null,
17606 # effectively closing config.log, so it can be properly (re)opened and
17607 # appended to by config.status. When coming back to configure, we
17608 # need to make the FD available again.
17609 if test "$no_create" != yes; then
17610 ac_cs_success=:
17611 ac_config_status_args=
17612 test "$silent" = yes &&
17613 ac_config_status_args="$ac_config_status_args --quiet"
17614 exec 5>/dev/null
17615 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17616 exec 5>>config.log
17617 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17618 # would make configure fail if this is the last instruction.
17619 $ac_cs_success || as_fn_exit 1
17620 fi
17621 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17623 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17624 fi
17625