]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/configure
bfd: Stop using -Wstack-usage=262144 when built with Clang
[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.39.50.
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.39.50'
591 PACKAGE_STRING='gas 2.39.50'
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 GENINSRC_NEVER_FALSE
640 GENINSRC_NEVER_TRUE
641 MAINT
642 MAINTAINER_MODE_FALSE
643 MAINTAINER_MODE_TRUE
644 MSGMERGE
645 MSGFMT
646 MKINSTALLDIRS
647 CATOBJEXT
648 GENCAT
649 INSTOBJEXT
650 DATADIRNAME
651 CATALOGS
652 POSUB
653 GMSGFMT
654 XGETTEXT
655 INCINTL
656 LIBINTL_DEP
657 LIBINTL
658 USE_NLS
659 LEXLIB
660 LEX_OUTPUT_ROOT
661 LEX
662 YFLAGS
663 YACC
664 OPCODES_LIB
665 atof
666 install_tooldir
667 te_file
668 obj_format
669 target_cpu_type
670 extra_objects
671 cgen_cpu_prefix
672 GDBINIT
673 WARN_WRITE_STRINGS
674 NO_WERROR
675 WARN_CFLAGS_FOR_BUILD
676 WARN_CFLAGS
677 do_compare
678 LARGEFILE_CPPFLAGS
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__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__quote
706 am__include
707 DEPDIR
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 AM_BACKSLASH
716 AM_DEFAULT_VERBOSITY
717 AM_DEFAULT_V
718 AM_V
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 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_silent_rules
796 enable_dependency_tracking
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_mips_fix_loongson3_llsc
812 enable_x86_used_note
813 enable_default_riscv_attribute
814 enable_werror
815 enable_build_warnings
816 with_cpu
817 enable_nls
818 enable_maintainer_mode
819 with_system_zlib
820 '
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CC
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 CPP
830 YACC
831 YFLAGS'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures gas 2.39.50 to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 --target=TARGET configure for building compilers for TARGET [HOST]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of gas 2.39.50:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-silent-rules less verbose build output (undo: "make V=1")
1452 --disable-silent-rules verbose build output (undo: "make V=0")
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --enable-plugins Enable support for plugins
1463 --disable-largefile omit support for large files
1464 --enable-targets alternative target configurations besides the primary
1465 --enable-checking enable run-time checks
1466 --enable-compressed-debug-sections={all,gas,none}
1467 compress debug sections by default
1468 --enable-x86-relax-relocations
1469 generate x86 relax relocations by default
1470 --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1471 default
1472 --enable-generate-build-notes
1473 generate GNU Build notes if none are provided by the
1474 input
1475 --enable-mips-fix-loongson3-llsc
1476 enable MIPS fix Loongson3 LLSC errata
1477 --enable-x86-used-note generate GNU x86 used ISA and feature properties
1478 --enable-default-riscv-attribute
1479 generate RISC-V arch attribute by default
1480 --enable-werror treat compile warnings as errors
1481 --enable-build-warnings enable build-time compiler warnings
1482 --disable-nls do not use Native Language Support
1483 --enable-maintainer-mode
1484 enable make rules and dependencies not useful (and
1485 sometimes confusing) to the casual installer
1486
1487 Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-pic try to use only PIC/non-PIC objects [default=use
1491 both]
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-cpu=CPU default cpu variant is CPU (currently only supported
1494 on ARC)
1495 --with-system-zlib use installed libz
1496
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1505 CPP C preprocessor
1506 YACC The `Yet Another Compiler Compiler' implementation to use.
1507 Defaults to the first program found out of: `bison -y', `byacc',
1508 `yacc'.
1509 YFLAGS The list of arguments that will be passed by default to $YACC.
1510 This script will default YFLAGS to the empty string to avoid a
1511 default value of `-d' given by some make applications.
1512
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1515
1516 Report bugs to the package provider.
1517 _ACEOF
1518 ac_status=$?
1519 fi
1520
1521 if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
1527 ac_builddir=.
1528
1529 case "$ac_dir" in
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *)
1532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539 esac
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1544
1545 case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 esac
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1569 else
1570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1573 done
1574 fi
1575
1576 test -n "$ac_init_help" && exit $ac_status
1577 if $ac_init_version; then
1578 cat <<\_ACEOF
1579 gas configure 2.39.50
1580 generated by GNU Autoconf 2.69
1581
1582 Copyright (C) 2012 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586 exit
1587 fi
1588
1589 ## ------------------------ ##
1590 ## Autoconf initialization. ##
1591 ## ------------------------ ##
1592
1593 # ac_fn_c_try_compile LINENO
1594 # --------------------------
1595 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_compile ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625 fi
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1628
1629 } # ac_fn_c_try_compile
1630
1631 # ac_fn_c_try_cpp LINENO
1632 # ----------------------
1633 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_cpp ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_cpp conftest.$ac_ext"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } > conftest.i && {
1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 }; then :
1656 ac_retval=0
1657 else
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=1
1662 fi
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_cpp
1667
1668 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1669 # -------------------------------------------------------
1670 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1671 # the include files in INCLUDES and setting the cache variable VAR
1672 # accordingly.
1673 ac_fn_c_check_header_mongrel ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if eval \${$3+:} false; then :
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 $as_echo_n "checking for $2... " >&6; }
1679 if eval \${$3+:} false; then :
1680 $as_echo_n "(cached) " >&6
1681 fi
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 else
1686 # Is the header compilable?
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1688 $as_echo_n "checking $2 usability... " >&6; }
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1691 $4
1692 #include <$2>
1693 _ACEOF
1694 if ac_fn_c_try_compile "$LINENO"; then :
1695 ac_header_compiler=yes
1696 else
1697 ac_header_compiler=no
1698 fi
1699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1701 $as_echo "$ac_header_compiler" >&6; }
1702
1703 # Is the header present?
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1705 $as_echo_n "checking $2 presence... " >&6; }
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1708 #include <$2>
1709 _ACEOF
1710 if ac_fn_c_try_cpp "$LINENO"; then :
1711 ac_header_preproc=yes
1712 else
1713 ac_header_preproc=no
1714 fi
1715 rm -f conftest.err conftest.i conftest.$ac_ext
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1717 $as_echo "$ac_header_preproc" >&6; }
1718
1719 # So? What about this header?
1720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1721 yes:no: )
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1723 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1725 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1726 ;;
1727 no:yes:* )
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1729 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1731 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1733 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1735 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1737 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1738 ;;
1739 esac
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1744 else
1745 eval "$3=\$ac_header_compiler"
1746 fi
1747 eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750 fi
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752
1753 } # ac_fn_c_check_header_mongrel
1754
1755 # ac_fn_c_try_run LINENO
1756 # ----------------------
1757 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1758 # that executables *can* be run.
1759 ac_fn_c_try_run ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_link"
1763 case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_link") 2>&5
1770 ac_status=$?
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1773 { { case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_try") 2>&5
1780 ac_status=$?
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; }; }; then :
1783 ac_retval=0
1784 else
1785 $as_echo "$as_me: program exited with status $ac_status" >&5
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=$ac_status
1790 fi
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1794
1795 } # ac_fn_c_try_run
1796
1797 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists and can be compiled using the include files in
1800 # INCLUDES, setting the cache variable VAR accordingly.
1801 ac_fn_c_check_header_compile ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1808 else
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1811 $4
1812 #include <$2>
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815 eval "$3=yes"
1816 else
1817 eval "$3=no"
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 fi
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826 } # ac_fn_c_check_header_compile
1827
1828 # ac_fn_c_try_link LINENO
1829 # -----------------------
1830 # Try to link conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_c_try_link ()
1832 {
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext conftest$ac_exeext
1835 if { { ac_try="$ac_link"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>conftest.err
1843 ac_status=$?
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1848 fi
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest$ac_exeext && {
1854 test "$cross_compiling" = yes ||
1855 test -x conftest$ac_exeext
1856 }; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1861
1862 ac_retval=1
1863 fi
1864 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1865 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1866 # interfere with the next link command; also delete a directory that is
1867 # left behind by Apple's compiler. We do this before executing the actions.
1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
1871
1872 } # ac_fn_c_try_link
1873
1874 # ac_fn_c_check_func LINENO FUNC VAR
1875 # ----------------------------------
1876 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1877 ac_fn_c_check_func ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1884 else
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1889 #define $2 innocuous_$2
1890
1891 /* System header to define __stub macros and hopefully few prototypes,
1892 which can conflict with char $2 (); below.
1893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894 <limits.h> exists even on freestanding compilers. */
1895
1896 #ifdef __STDC__
1897 # include <limits.h>
1898 #else
1899 # include <assert.h>
1900 #endif
1901
1902 #undef $2
1903
1904 /* Override any GCC internal prototype to avoid an error.
1905 Use char because int might match the return type of a GCC
1906 builtin and then its argument prototype would still apply. */
1907 #ifdef __cplusplus
1908 extern "C"
1909 #endif
1910 char $2 ();
1911 /* The GNU C library defines this for functions which it implements
1912 to always fail with ENOSYS. Some functions are actually named
1913 something starting with __ and the normal name is an alias. */
1914 #if defined __stub_$2 || defined __stub___$2
1915 choke me
1916 #endif
1917
1918 int
1919 main ()
1920 {
1921 return $2 ();
1922 ;
1923 return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_link "$LINENO"; then :
1927 eval "$3=yes"
1928 else
1929 eval "$3=no"
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext \
1932 conftest$ac_exeext conftest.$ac_ext
1933 fi
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939 } # ac_fn_c_check_func
1940
1941 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1942 # ---------------------------------------------
1943 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1944 # accordingly.
1945 ac_fn_c_check_decl ()
1946 {
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 as_decl_name=`echo $2|sed 's/ *(.*//'`
1949 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1951 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1954 else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 $4
1958 int
1959 main ()
1960 {
1961 #ifndef $as_decl_name
1962 #ifdef __cplusplus
1963 (void) $as_decl_use;
1964 #else
1965 (void) $as_decl_name;
1966 #endif
1967 #endif
1968
1969 ;
1970 return 0;
1971 }
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974 eval "$3=yes"
1975 else
1976 eval "$3=no"
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985 } # ac_fn_c_check_decl
1986 cat >config.log <<_ACEOF
1987 This file contains any messages produced by compilers while
1988 running configure, to aid debugging if configure makes a mistake.
1989
1990 It was created by gas $as_me 2.39.50, which was
1991 generated by GNU Autoconf 2.69. Invocation command line was
1992
1993 $ $0 $@
1994
1995 _ACEOF
1996 exec 5>>config.log
1997 {
1998 cat <<_ASUNAME
1999 ## --------- ##
2000 ## Platform. ##
2001 ## --------- ##
2002
2003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2004 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2005 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2006 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2007 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2008
2009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2010 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2011
2012 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2013 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2015 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2016 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2017 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2018 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2019
2020 _ASUNAME
2021
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 $as_echo "PATH: $as_dir"
2028 done
2029 IFS=$as_save_IFS
2030
2031 } >&5
2032
2033 cat >&5 <<_ACEOF
2034
2035
2036 ## ----------- ##
2037 ## Core tests. ##
2038 ## ----------- ##
2039
2040 _ACEOF
2041
2042
2043 # Keep a trace of the command line.
2044 # Strip out --no-create and --no-recursion so they do not pile up.
2045 # Strip out --silent because we don't want to record it for future runs.
2046 # Also quote any args containing shell meta-characters.
2047 # Make two passes to allow for proper duplicate-argument suppression.
2048 ac_configure_args=
2049 ac_configure_args0=
2050 ac_configure_args1=
2051 ac_must_keep_next=false
2052 for ac_pass in 1 2
2053 do
2054 for ac_arg
2055 do
2056 case $ac_arg in
2057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2059 | -silent | --silent | --silen | --sile | --sil)
2060 continue ;;
2061 *\'*)
2062 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2063 esac
2064 case $ac_pass in
2065 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2066 2)
2067 as_fn_append ac_configure_args1 " '$ac_arg'"
2068 if test $ac_must_keep_next = true; then
2069 ac_must_keep_next=false # Got value, back to normal.
2070 else
2071 case $ac_arg in
2072 *=* | --config-cache | -C | -disable-* | --disable-* \
2073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2075 | -with-* | --with-* | -without-* | --without-* | --x)
2076 case "$ac_configure_args0 " in
2077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2078 esac
2079 ;;
2080 -* ) ac_must_keep_next=true ;;
2081 esac
2082 fi
2083 as_fn_append ac_configure_args " '$ac_arg'"
2084 ;;
2085 esac
2086 done
2087 done
2088 { ac_configure_args0=; unset ac_configure_args0;}
2089 { ac_configure_args1=; unset ac_configure_args1;}
2090
2091 # When interrupted or exit'd, cleanup temporary files, and complete
2092 # config.log. We remove comments because anyway the quotes in there
2093 # would cause problems or look ugly.
2094 # WARNING: Use '\'' to represent an apostrophe within the trap.
2095 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2096 trap 'exit_status=$?
2097 # Save into config.log some information that might help in debugging.
2098 {
2099 echo
2100
2101 $as_echo "## ---------------- ##
2102 ## Cache variables. ##
2103 ## ---------------- ##"
2104 echo
2105 # The following way of writing the cache mishandles newlines in values,
2106 (
2107 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in #(
2110 *${as_nl}*)
2111 case $ac_var in #(
2112 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2113 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2114 esac
2115 case $ac_var in #(
2116 _ | IFS | as_nl) ;; #(
2117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2118 *) { eval $ac_var=; unset $ac_var;} ;;
2119 esac ;;
2120 esac
2121 done
2122 (set) 2>&1 |
2123 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2124 *${as_nl}ac_space=\ *)
2125 sed -n \
2126 "s/'\''/'\''\\\\'\'''\''/g;
2127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2128 ;; #(
2129 *)
2130 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131 ;;
2132 esac |
2133 sort
2134 )
2135 echo
2136
2137 $as_echo "## ----------------- ##
2138 ## Output variables. ##
2139 ## ----------------- ##"
2140 echo
2141 for ac_var in $ac_subst_vars
2142 do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2150
2151 if test -n "$ac_subst_files"; then
2152 $as_echo "## ------------------- ##
2153 ## File substitutions. ##
2154 ## ------------------- ##"
2155 echo
2156 for ac_var in $ac_subst_files
2157 do
2158 eval ac_val=\$$ac_var
2159 case $ac_val in
2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161 esac
2162 $as_echo "$ac_var='\''$ac_val'\''"
2163 done | sort
2164 echo
2165 fi
2166
2167 if test -s confdefs.h; then
2168 $as_echo "## ----------- ##
2169 ## confdefs.h. ##
2170 ## ----------- ##"
2171 echo
2172 cat confdefs.h
2173 echo
2174 fi
2175 test "$ac_signal" != 0 &&
2176 $as_echo "$as_me: caught signal $ac_signal"
2177 $as_echo "$as_me: exit $exit_status"
2178 } >&5
2179 rm -f core *.core core.conftest.* &&
2180 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181 exit $exit_status
2182 ' 0
2183 for ac_signal in 1 2 13 15; do
2184 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185 done
2186 ac_signal=0
2187
2188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2189 rm -f -r conftest* confdefs.h
2190
2191 $as_echo "/* confdefs.h */" > confdefs.h
2192
2193 # Predefined preprocessor variables.
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_NAME "$PACKAGE_NAME"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201 _ACEOF
2202
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2205 _ACEOF
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_STRING "$PACKAGE_STRING"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_URL "$PACKAGE_URL"
2217 _ACEOF
2218
2219
2220 # Let the site file select an alternate cache file if it wants to.
2221 # Prefer an explicitly selected file to automatically selected ones.
2222 ac_site_file1=NONE
2223 ac_site_file2=NONE
2224 if test -n "$CONFIG_SITE"; then
2225 # We do not want a PATH search for config.site.
2226 case $CONFIG_SITE in #((
2227 -*) ac_site_file1=./$CONFIG_SITE;;
2228 */*) ac_site_file1=$CONFIG_SITE;;
2229 *) ac_site_file1=./$CONFIG_SITE;;
2230 esac
2231 elif test "x$prefix" != xNONE; then
2232 ac_site_file1=$prefix/share/config.site
2233 ac_site_file2=$prefix/etc/config.site
2234 else
2235 ac_site_file1=$ac_default_prefix/share/config.site
2236 ac_site_file2=$ac_default_prefix/etc/config.site
2237 fi
2238 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2239 do
2240 test "x$ac_site_file" = xNONE && continue
2241 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2243 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2244 sed 's/^/| /' "$ac_site_file" >&5
2245 . "$ac_site_file" \
2246 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 as_fn_error $? "failed to load site script $ac_site_file
2249 See \`config.log' for more details" "$LINENO" 5; }
2250 fi
2251 done
2252
2253 if test -r "$cache_file"; then
2254 # Some versions of bash will fail to source /dev/null (special files
2255 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2256 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2258 $as_echo "$as_me: loading cache $cache_file" >&6;}
2259 case $cache_file in
2260 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2261 *) . "./$cache_file";;
2262 esac
2263 fi
2264 else
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2266 $as_echo "$as_me: creating cache $cache_file" >&6;}
2267 >$cache_file
2268 fi
2269
2270 # Check that the precious variables saved in the cache have kept the same
2271 # value.
2272 ac_cache_corrupted=false
2273 for ac_var in $ac_precious_vars; do
2274 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2275 eval ac_new_set=\$ac_env_${ac_var}_set
2276 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2277 eval ac_new_val=\$ac_env_${ac_var}_value
2278 case $ac_old_set,$ac_new_set in
2279 set,)
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2282 ac_cache_corrupted=: ;;
2283 ,set)
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2285 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2286 ac_cache_corrupted=: ;;
2287 ,);;
2288 *)
2289 if test "x$ac_old_val" != "x$ac_new_val"; then
2290 # differences in whitespace do not lead to failure.
2291 ac_old_val_w=`echo x $ac_old_val`
2292 ac_new_val_w=`echo x $ac_new_val`
2293 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2295 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2296 ac_cache_corrupted=:
2297 else
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2299 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2300 eval $ac_var=\$ac_old_val
2301 fi
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2303 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2305 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2306 fi;;
2307 esac
2308 # Pass precious variables to config.status.
2309 if test "$ac_new_set" = set; then
2310 case $ac_new_val in
2311 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2312 *) ac_arg=$ac_var=$ac_new_val ;;
2313 esac
2314 case " $ac_configure_args " in
2315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2316 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2317 esac
2318 fi
2319 done
2320 if $ac_cache_corrupted; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2324 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2325 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2326 fi
2327 ## -------------------- ##
2328 ## Main body of script. ##
2329 ## -------------------- ##
2330
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337
2338
2339
2340
2341
2342
2343 ac_aux_dir=
2344 for ac_dir in .. "$srcdir"/..; do
2345 if test -f "$ac_dir/install-sh"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/install-sh -c"
2348 break
2349 elif test -f "$ac_dir/install.sh"; then
2350 ac_aux_dir=$ac_dir
2351 ac_install_sh="$ac_aux_dir/install.sh -c"
2352 break
2353 elif test -f "$ac_dir/shtool"; then
2354 ac_aux_dir=$ac_dir
2355 ac_install_sh="$ac_aux_dir/shtool install -c"
2356 break
2357 fi
2358 done
2359 if test -z "$ac_aux_dir"; then
2360 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2361 fi
2362
2363 # These three variables are undocumented and unsupported,
2364 # and are intended to be withdrawn in a future Autoconf release.
2365 # They can cause serious problems if a builder's source tree is in a directory
2366 # whose full name contains unusual characters.
2367 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2368 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2369 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2370
2371
2372 # Make sure we can run config.sub.
2373 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2374 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2375
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2377 $as_echo_n "checking build system type... " >&6; }
2378 if ${ac_cv_build+:} false; then :
2379 $as_echo_n "(cached) " >&6
2380 else
2381 ac_build_alias=$build_alias
2382 test "x$ac_build_alias" = x &&
2383 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2384 test "x$ac_build_alias" = x &&
2385 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2386 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2388
2389 fi
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2391 $as_echo "$ac_cv_build" >&6; }
2392 case $ac_cv_build in
2393 *-*-*) ;;
2394 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2395 esac
2396 build=$ac_cv_build
2397 ac_save_IFS=$IFS; IFS='-'
2398 set x $ac_cv_build
2399 shift
2400 build_cpu=$1
2401 build_vendor=$2
2402 shift; shift
2403 # Remember, the first character of IFS is used to create $*,
2404 # except with old shells:
2405 build_os=$*
2406 IFS=$ac_save_IFS
2407 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2408
2409
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2411 $as_echo_n "checking host system type... " >&6; }
2412 if ${ac_cv_host+:} false; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 if test "x$host_alias" = x; then
2416 ac_cv_host=$ac_cv_build
2417 else
2418 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2419 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2420 fi
2421
2422 fi
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2424 $as_echo "$ac_cv_host" >&6; }
2425 case $ac_cv_host in
2426 *-*-*) ;;
2427 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2428 esac
2429 host=$ac_cv_host
2430 ac_save_IFS=$IFS; IFS='-'
2431 set x $ac_cv_host
2432 shift
2433 host_cpu=$1
2434 host_vendor=$2
2435 shift; shift
2436 # Remember, the first character of IFS is used to create $*,
2437 # except with old shells:
2438 host_os=$*
2439 IFS=$ac_save_IFS
2440 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2441
2442
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2444 $as_echo_n "checking target system type... " >&6; }
2445 if ${ac_cv_target+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 if test "x$target_alias" = x; then
2449 ac_cv_target=$ac_cv_host
2450 else
2451 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2453 fi
2454
2455 fi
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2457 $as_echo "$ac_cv_target" >&6; }
2458 case $ac_cv_target in
2459 *-*-*) ;;
2460 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2461 esac
2462 target=$ac_cv_target
2463 ac_save_IFS=$IFS; IFS='-'
2464 set x $ac_cv_target
2465 shift
2466 target_cpu=$1
2467 target_vendor=$2
2468 shift; shift
2469 # Remember, the first character of IFS is used to create $*,
2470 # except with old shells:
2471 target_os=$*
2472 IFS=$ac_save_IFS
2473 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2474
2475
2476 # The aliases save the names the user supplied, while $host etc.
2477 # will get canonicalized.
2478 test -n "$target_alias" &&
2479 test "$program_prefix$program_suffix$program_transform_name" = \
2480 NONENONEs,x,x, &&
2481 program_prefix=${target_alias}-
2482
2483 am__api_version='1.15'
2484
2485 # Find a good install program. We prefer a C program (faster),
2486 # so one script is as good as another. But avoid the broken or
2487 # incompatible versions:
2488 # SysV /etc/install, /usr/sbin/install
2489 # SunOS /usr/etc/install
2490 # IRIX /sbin/install
2491 # AIX /bin/install
2492 # AmigaOS /C/install, which installs bootblocks on floppy discs
2493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2496 # OS/2's system install, which has a completely different semantic
2497 # ./install, which can be erroneously created by make from ./install.sh.
2498 # Reject install programs that cannot install multiple files.
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2500 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2501 if test -z "$INSTALL"; then
2502 if ${ac_cv_path_install+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 # Account for people who put trailing slashes in PATH elements.
2511 case $as_dir/ in #((
2512 ./ | .// | /[cC]/* | \
2513 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2514 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2515 /usr/ucb/* ) ;;
2516 *)
2517 # OSF1 and SCO ODT 3.0 have their own names for install.
2518 # Don't use installbsd from OSF since it installs stuff as root
2519 # by default.
2520 for ac_prog in ginstall scoinst install; do
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2523 if test $ac_prog = install &&
2524 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525 # AIX install. It has an incompatible calling convention.
2526 :
2527 elif test $ac_prog = install &&
2528 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # program-specific install script used by HP pwplus--don't use.
2530 :
2531 else
2532 rm -rf conftest.one conftest.two conftest.dir
2533 echo one > conftest.one
2534 echo two > conftest.two
2535 mkdir conftest.dir
2536 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2537 test -s conftest.one && test -s conftest.two &&
2538 test -s conftest.dir/conftest.one &&
2539 test -s conftest.dir/conftest.two
2540 then
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 break 3
2543 fi
2544 fi
2545 fi
2546 done
2547 done
2548 ;;
2549 esac
2550
2551 done
2552 IFS=$as_save_IFS
2553
2554 rm -rf conftest.one conftest.two conftest.dir
2555
2556 fi
2557 if test "${ac_cv_path_install+set}" = set; then
2558 INSTALL=$ac_cv_path_install
2559 else
2560 # As a last resort, use the slow shell script. Don't cache a
2561 # value for INSTALL within a source directory, because that will
2562 # break other packages using the cache if that directory is
2563 # removed, or if the value is a relative name.
2564 INSTALL=$ac_install_sh
2565 fi
2566 fi
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2568 $as_echo "$INSTALL" >&6; }
2569
2570 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2571 # It thinks the first close brace ends the variable substitution.
2572 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2573
2574 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2575
2576 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2577
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2579 $as_echo_n "checking whether build environment is sane... " >&6; }
2580 # Reject unsafe characters in $srcdir or the absolute working directory
2581 # name. Accept space and tab only in the latter.
2582 am_lf='
2583 '
2584 case `pwd` in
2585 *[\\\"\#\$\&\'\`$am_lf]*)
2586 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2587 esac
2588 case $srcdir in
2589 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2590 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2591 esac
2592
2593 # Do 'set' in a subshell so we don't clobber the current shell's
2594 # arguments. Must try -L first in case configure is actually a
2595 # symlink; some systems play weird games with the mod time of symlinks
2596 # (eg FreeBSD returns the mod time of the symlink's containing
2597 # directory).
2598 if (
2599 am_has_slept=no
2600 for am_try in 1 2; do
2601 echo "timestamp, slept: $am_has_slept" > conftest.file
2602 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2603 if test "$*" = "X"; then
2604 # -L didn't work.
2605 set X `ls -t "$srcdir/configure" conftest.file`
2606 fi
2607 if test "$*" != "X $srcdir/configure conftest.file" \
2608 && test "$*" != "X conftest.file $srcdir/configure"; then
2609
2610 # If neither matched, then we have a broken ls. This can happen
2611 # if, for instance, CONFIG_SHELL is bash and it inherits a
2612 # broken ls alias from the environment. This has actually
2613 # happened. Such a system could not be considered "sane".
2614 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2615 alias in your environment" "$LINENO" 5
2616 fi
2617 if test "$2" = conftest.file || test $am_try -eq 2; then
2618 break
2619 fi
2620 # Just in case.
2621 sleep 1
2622 am_has_slept=yes
2623 done
2624 test "$2" = conftest.file
2625 )
2626 then
2627 # Ok.
2628 :
2629 else
2630 as_fn_error $? "newly created file is older than distributed files!
2631 Check your system clock" "$LINENO" 5
2632 fi
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2634 $as_echo "yes" >&6; }
2635 # If we didn't sleep, we still need to ensure time stamps of config.status and
2636 # generated files are strictly newer.
2637 am_sleep_pid=
2638 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2639 ( sleep 1 ) &
2640 am_sleep_pid=$!
2641 fi
2642
2643 rm -f conftest.file
2644
2645 test "$program_prefix" != NONE &&
2646 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2647 # Use a double $ so make ignores it.
2648 test "$program_suffix" != NONE &&
2649 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2650 # Double any \ or $.
2651 # By default was `s,x,x', remove it if useless.
2652 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2653 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2654
2655 # Expand $ac_aux_dir to an absolute path.
2656 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2657
2658 if test x"${MISSING+set}" != xset; then
2659 case $am_aux_dir in
2660 *\ * | *\ *)
2661 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2662 *)
2663 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2664 esac
2665 fi
2666 # Use eval to expand $SHELL
2667 if eval "$MISSING --is-lightweight"; then
2668 am_missing_run="$MISSING "
2669 else
2670 am_missing_run=
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2672 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2673 fi
2674
2675 if test x"${install_sh+set}" != xset; then
2676 case $am_aux_dir in
2677 *\ * | *\ *)
2678 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2679 *)
2680 install_sh="\${SHELL} $am_aux_dir/install-sh"
2681 esac
2682 fi
2683
2684 # Installed binaries are usually stripped using 'strip' when the user
2685 # run "make install-strip". However 'strip' might not be the right
2686 # tool to use in cross-compilation environments, therefore Automake
2687 # will honor the 'STRIP' environment variable to overrule this program.
2688 if test "$cross_compiling" != no; then
2689 if test -n "$ac_tool_prefix"; then
2690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}strip; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if ${ac_cv_prog_STRIP+:} false; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 if test -n "$STRIP"; then
2698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2710 fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 STRIP=$ac_cv_prog_STRIP
2718 if test -n "$STRIP"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2720 $as_echo "$STRIP" >&6; }
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726
2727 fi
2728 if test -z "$ac_cv_prog_STRIP"; then
2729 ac_ct_STRIP=$STRIP
2730 # Extract the first word of "strip", so it can be a program name with args.
2731 set dummy strip; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 if test -n "$ac_ct_STRIP"; then
2738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_ac_ct_STRIP="strip"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751 done
2752 done
2753 IFS=$as_save_IFS
2754
2755 fi
2756 fi
2757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2758 if test -n "$ac_ct_STRIP"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2760 $as_echo "$ac_ct_STRIP" >&6; }
2761 else
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764 fi
2765
2766 if test "x$ac_ct_STRIP" = x; then
2767 STRIP=":"
2768 else
2769 case $cross_compiling:$ac_tool_warned in
2770 yes:)
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2773 ac_tool_warned=yes ;;
2774 esac
2775 STRIP=$ac_ct_STRIP
2776 fi
2777 else
2778 STRIP="$ac_cv_prog_STRIP"
2779 fi
2780
2781 fi
2782 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2783
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2785 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2786 if test -z "$MKDIR_P"; then
2787 if ${ac_cv_path_mkdir+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2792 do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_prog in mkdir gmkdir; do
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2798 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2799 'mkdir (GNU coreutils) '* | \
2800 'mkdir (coreutils) '* | \
2801 'mkdir (fileutils) '4.1*)
2802 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2803 break 3;;
2804 esac
2805 done
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811
2812 test -d ./--version && rmdir ./--version
2813 if test "${ac_cv_path_mkdir+set}" = set; then
2814 MKDIR_P="$ac_cv_path_mkdir -p"
2815 else
2816 # As a last resort, use the slow shell script. Don't cache a
2817 # value for MKDIR_P within a source directory, because that will
2818 # break other packages using the cache if that directory is
2819 # removed, or if the value is a relative name.
2820 MKDIR_P="$ac_install_sh -d"
2821 fi
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2824 $as_echo "$MKDIR_P" >&6; }
2825
2826 for ac_prog in gawk mawk nawk awk
2827 do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy $ac_prog; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_AWK+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test -n "$AWK"; then
2836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_AWK="$ac_prog"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849 done
2850 done
2851 IFS=$as_save_IFS
2852
2853 fi
2854 fi
2855 AWK=$ac_cv_prog_AWK
2856 if test -n "$AWK"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2858 $as_echo "$AWK" >&6; }
2859 else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2862 fi
2863
2864
2865 test -n "$AWK" && break
2866 done
2867
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2869 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2870 set x ${MAKE-make}
2871 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2872 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 cat >conftest.make <<\_ACEOF
2876 SHELL = /bin/sh
2877 all:
2878 @echo '@@@%%%=$(MAKE)=@@@%%%'
2879 _ACEOF
2880 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2881 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2882 *@@@%%%=?*=@@@%%%*)
2883 eval ac_cv_prog_make_${ac_make}_set=yes;;
2884 *)
2885 eval ac_cv_prog_make_${ac_make}_set=no;;
2886 esac
2887 rm -f conftest.make
2888 fi
2889 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891 $as_echo "yes" >&6; }
2892 SET_MAKE=
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 SET_MAKE="MAKE=${MAKE-make}"
2897 fi
2898
2899 rm -rf .tst 2>/dev/null
2900 mkdir .tst 2>/dev/null
2901 if test -d .tst; then
2902 am__leading_dot=.
2903 else
2904 am__leading_dot=_
2905 fi
2906 rmdir .tst 2>/dev/null
2907
2908 # Check whether --enable-silent-rules was given.
2909 if test "${enable_silent_rules+set}" = set; then :
2910 enableval=$enable_silent_rules;
2911 fi
2912
2913 case $enable_silent_rules in # (((
2914 yes) AM_DEFAULT_VERBOSITY=0;;
2915 no) AM_DEFAULT_VERBOSITY=1;;
2916 *) AM_DEFAULT_VERBOSITY=1;;
2917 esac
2918 am_make=${MAKE-make}
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2920 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2921 if ${am_cv_make_support_nested_variables+:} false; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 if $as_echo 'TRUE=$(BAR$(V))
2925 BAR0=false
2926 BAR1=true
2927 V=1
2928 am__doit:
2929 @$(TRUE)
2930 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2931 am_cv_make_support_nested_variables=yes
2932 else
2933 am_cv_make_support_nested_variables=no
2934 fi
2935 fi
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2937 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2938 if test $am_cv_make_support_nested_variables = yes; then
2939 AM_V='$(V)'
2940 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2941 else
2942 AM_V=$AM_DEFAULT_VERBOSITY
2943 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2944 fi
2945 AM_BACKSLASH='\'
2946
2947 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2948 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2949 # is not polluted with repeated "-I."
2950 am__isrc=' -I$(srcdir)'
2951 # test to see if srcdir already configured
2952 if test -f $srcdir/config.status; then
2953 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2954 fi
2955 fi
2956
2957 # test whether we have cygpath
2958 if test -z "$CYGPATH_W"; then
2959 if (cygpath --version) >/dev/null 2>/dev/null; then
2960 CYGPATH_W='cygpath -w'
2961 else
2962 CYGPATH_W=echo
2963 fi
2964 fi
2965
2966
2967 # Define the identity of the package.
2968 PACKAGE='gas'
2969 VERSION='2.39.50'
2970
2971
2972 cat >>confdefs.h <<_ACEOF
2973 #define PACKAGE "$PACKAGE"
2974 _ACEOF
2975
2976
2977 cat >>confdefs.h <<_ACEOF
2978 #define VERSION "$VERSION"
2979 _ACEOF
2980
2981 # Some tools Automake needs.
2982
2983 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2984
2985
2986 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2987
2988
2989 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2990
2991
2992 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2993
2994
2995 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2996
2997 # For better backward compatibility. To be removed once Automake 1.9.x
2998 # dies out for good. For more background, see:
2999 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3000 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3001 mkdir_p='$(MKDIR_P)'
3002
3003 # We need awk for the "check" target (and possibly the TAP driver). The
3004 # system "awk" is bad on some platforms.
3005 # Always define AMTAR for backward compatibility. Yes, it's still used
3006 # in the wild :-( We should find a proper way to deprecate it ...
3007 AMTAR='$${TAR-tar}'
3008
3009
3010 # We'll loop over all known methods to create a tar archive until one works.
3011 _am_tools='gnutar pax cpio none'
3012
3013 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3014
3015
3016
3017
3018
3019
3020 # POSIX will say in a future version that running "rm -f" with no argument
3021 # is OK; and we want to be able to make that assumption in our Makefile
3022 # recipes. So use an aggressive probe to check that the usage we want is
3023 # actually supported "in the wild" to an acceptable degree.
3024 # See automake bug#10828.
3025 # To make any issue more visible, cause the running configure to be aborted
3026 # by default if the 'rm' program in use doesn't match our expectations; the
3027 # user can still override this though.
3028 if rm -f && rm -fr && rm -rf; then : OK; else
3029 cat >&2 <<'END'
3030 Oops!
3031
3032 Your 'rm' program seems unable to run without file operands specified
3033 on the command line, even when the '-f' option is present. This is contrary
3034 to the behaviour of most rm programs out there, and not conforming with
3035 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3036
3037 Please tell bug-automake@gnu.org about your system, including the value
3038 of your $PATH and any error possibly output before this message. This
3039 can help us improve future automake versions.
3040
3041 END
3042 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3043 echo 'Configuration will proceed anyway, since you have set the' >&2
3044 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3045 echo >&2
3046 else
3047 cat >&2 <<'END'
3048 Aborting the configuration process, to ensure you take notice of the issue.
3049
3050 You can download and install GNU coreutils to get an 'rm' implementation
3051 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3052
3053 If you want to complete the configuration process using your problematic
3054 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3055 to "yes", and re-run configure.
3056
3057 END
3058 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3059 fi
3060 fi
3061
3062 # Check whether --enable-silent-rules was given.
3063 if test "${enable_silent_rules+set}" = set; then :
3064 enableval=$enable_silent_rules;
3065 fi
3066
3067 case $enable_silent_rules in # (((
3068 yes) AM_DEFAULT_VERBOSITY=0;;
3069 no) AM_DEFAULT_VERBOSITY=1;;
3070 *) AM_DEFAULT_VERBOSITY=0;;
3071 esac
3072 am_make=${MAKE-make}
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3074 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3075 if ${am_cv_make_support_nested_variables+:} false; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if $as_echo 'TRUE=$(BAR$(V))
3079 BAR0=false
3080 BAR1=true
3081 V=1
3082 am__doit:
3083 @$(TRUE)
3084 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3085 am_cv_make_support_nested_variables=yes
3086 else
3087 am_cv_make_support_nested_variables=no
3088 fi
3089 fi
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3091 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3092 if test $am_cv_make_support_nested_variables = yes; then
3093 AM_V='$(V)'
3094 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3095 else
3096 AM_V=$AM_DEFAULT_VERBOSITY
3097 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3098 fi
3099 AM_BACKSLASH='\'
3100
3101
3102 ac_ext=c
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107 if test -n "$ac_tool_prefix"; then
3108 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3109 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111 $as_echo_n "checking for $ac_word... " >&6; }
3112 if ${ac_cv_prog_CC+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC="$CC" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129 done
3130 done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 CC=$ac_cv_prog_CC
3136 if test -n "$CC"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138 $as_echo "$CC" >&6; }
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 fi
3143
3144
3145 fi
3146 if test -z "$ac_cv_prog_CC"; then
3147 ac_ct_CC=$CC
3148 # Extract the first word of "gcc", so it can be a program name with args.
3149 set dummy gcc; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3153 $as_echo_n "(cached) " >&6
3154 else
3155 if test -n "$ac_ct_CC"; then
3156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165 ac_cv_prog_ac_ct_CC="gcc"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169 done
3170 done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3176 if test -n "$ac_ct_CC"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3178 $as_echo "$ac_ct_CC" >&6; }
3179 else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 fi
3183
3184 if test "x$ac_ct_CC" = x; then
3185 CC=""
3186 else
3187 case $cross_compiling:$ac_tool_warned in
3188 yes:)
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191 ac_tool_warned=yes ;;
3192 esac
3193 CC=$ac_ct_CC
3194 fi
3195 else
3196 CC="$ac_cv_prog_CC"
3197 fi
3198
3199 if test -z "$CC"; then
3200 if test -n "$ac_tool_prefix"; then
3201 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3202 set dummy ${ac_tool_prefix}cc; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_CC+:} false; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_CC="${ac_tool_prefix}cc"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3221 fi
3222 done
3223 done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3232 else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238 fi
3239 fi
3240 if test -z "$CC"; then
3241 # Extract the first word of "cc", so it can be a program name with args.
3242 set dummy cc; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_CC+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 ac_prog_rejected=no
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3260 ac_prog_rejected=yes
3261 continue
3262 fi
3263 ac_cv_prog_CC="cc"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267 done
3268 done
3269 IFS=$as_save_IFS
3270
3271 if test $ac_prog_rejected = yes; then
3272 # We found a bogon in the path, so make sure we never use it.
3273 set dummy $ac_cv_prog_CC
3274 shift
3275 if test $# != 0; then
3276 # We chose a different compiler from the bogus one.
3277 # However, it has the same basename, so the bogon will be chosen
3278 # first if we set CC to just the basename; use the full file name.
3279 shift
3280 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3281 fi
3282 fi
3283 fi
3284 fi
3285 CC=$ac_cv_prog_CC
3286 if test -n "$CC"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288 $as_echo "$CC" >&6; }
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 fi
3293
3294
3295 fi
3296 if test -z "$CC"; then
3297 if test -n "$ac_tool_prefix"; then
3298 for ac_prog in cl.exe
3299 do
3300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_prog_CC+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 if test -n "$CC"; then
3308 ac_cv_prog_CC="$CC" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323 IFS=$as_save_IFS
3324
3325 fi
3326 fi
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336
3337 test -n "$CC" && break
3338 done
3339 fi
3340 if test -z "$CC"; then
3341 ac_ct_CC=$CC
3342 for ac_prog in cl.exe
3343 do
3344 # Extract the first word of "$ac_prog", so it can be a program name with args.
3345 set dummy $ac_prog; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$ac_ct_CC"; then
3352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_ac_ct_CC="$ac_prog"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365 done
3366 done
3367 IFS=$as_save_IFS
3368
3369 fi
3370 fi
3371 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3372 if test -n "$ac_ct_CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3374 $as_echo "$ac_ct_CC" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 fi
3379
3380
3381 test -n "$ac_ct_CC" && break
3382 done
3383
3384 if test "x$ac_ct_CC" = x; then
3385 CC=""
3386 else
3387 case $cross_compiling:$ac_tool_warned in
3388 yes:)
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3391 ac_tool_warned=yes ;;
3392 esac
3393 CC=$ac_ct_CC
3394 fi
3395 fi
3396
3397 fi
3398
3399
3400 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error $? "no acceptable C compiler found in \$PATH
3403 See \`config.log' for more details" "$LINENO" 5; }
3404
3405 # Provide some information about the compiler.
3406 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3407 set X $ac_compile
3408 ac_compiler=$2
3409 for ac_option in --version -v -V -qversion; do
3410 { { ac_try="$ac_compiler $ac_option >&5"
3411 case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414 esac
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3418 ac_status=$?
3419 if test -s conftest.err; then
3420 sed '10a\
3421 ... rest of stderr output deleted ...
3422 10q' conftest.err >conftest.er1
3423 cat conftest.er1 >&5
3424 fi
3425 rm -f conftest.er1 conftest.err
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }
3428 done
3429
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3432
3433 int
3434 main ()
3435 {
3436
3437 ;
3438 return 0;
3439 }
3440 _ACEOF
3441 ac_clean_files_save=$ac_clean_files
3442 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3443 # Try to create an executable without -o first, disregard a.out.
3444 # It will help us diagnose broken compilers, and finding out an intuition
3445 # of exeext.
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3447 $as_echo_n "checking whether the C compiler works... " >&6; }
3448 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3449
3450 # The possible output files:
3451 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3452
3453 ac_rmfiles=
3454 for ac_file in $ac_files
3455 do
3456 case $ac_file in
3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3458 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3459 esac
3460 done
3461 rm -f $ac_rmfiles
3462
3463 if { { ac_try="$ac_link_default"
3464 case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_link_default") 2>&5
3471 ac_status=$?
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }; then :
3474 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3475 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3476 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3477 # so that the user can short-circuit this test for compilers unknown to
3478 # Autoconf.
3479 for ac_file in $ac_files ''
3480 do
3481 test -f "$ac_file" || continue
3482 case $ac_file in
3483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3484 ;;
3485 [ab].out )
3486 # We found the default executable, but exeext='' is most
3487 # certainly right.
3488 break;;
3489 *.* )
3490 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3491 then :; else
3492 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3493 fi
3494 # We set ac_cv_exeext here because the later test for it is not
3495 # safe: cross compilers may not add the suffix if given an `-o'
3496 # argument, so we may need to know it at that point already.
3497 # Even if this section looks crufty: it has the advantage of
3498 # actually working.
3499 break;;
3500 * )
3501 break;;
3502 esac
3503 done
3504 test "$ac_cv_exeext" = no && ac_cv_exeext=
3505
3506 else
3507 ac_file=''
3508 fi
3509 if test -z "$ac_file"; then :
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3512 $as_echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517 as_fn_error 77 "C compiler cannot create executables
3518 See \`config.log' for more details" "$LINENO" 5; }
3519 else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3521 $as_echo "yes" >&6; }
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3524 $as_echo_n "checking for C compiler default output file name... " >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3526 $as_echo "$ac_file" >&6; }
3527 ac_exeext=$ac_cv_exeext
3528
3529 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3530 ac_clean_files=$ac_clean_files_save
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3532 $as_echo_n "checking for suffix of executables... " >&6; }
3533 if { { ac_try="$ac_link"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539 $as_echo "$ac_try_echo"; } >&5
3540 (eval "$ac_link") 2>&5
3541 ac_status=$?
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; then :
3544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3545 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3546 # work properly (i.e., refer to `conftest.exe'), while it won't with
3547 # `rm'.
3548 for ac_file in conftest.exe conftest conftest.*; do
3549 test -f "$ac_file" || continue
3550 case $ac_file in
3551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3552 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3553 break;;
3554 * ) break;;
3555 esac
3556 done
3557 else
3558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3561 See \`config.log' for more details" "$LINENO" 5; }
3562 fi
3563 rm -f conftest conftest$ac_cv_exeext
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3565 $as_echo "$ac_cv_exeext" >&6; }
3566
3567 rm -f conftest.$ac_ext
3568 EXEEXT=$ac_cv_exeext
3569 ac_exeext=$EXEEXT
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572 #include <stdio.h>
3573 int
3574 main ()
3575 {
3576 FILE *f = fopen ("conftest.out", "w");
3577 return ferror (f) || fclose (f) != 0;
3578
3579 ;
3580 return 0;
3581 }
3582 _ACEOF
3583 ac_clean_files="$ac_clean_files conftest.out"
3584 # Check that the compiler produces executables we can run. If not, either
3585 # the compiler is broken, or we cross compile.
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3587 $as_echo_n "checking whether we are cross compiling... " >&6; }
3588 if test "$cross_compiling" != yes; then
3589 { { ac_try="$ac_link"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_link") 2>&5
3597 ac_status=$?
3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599 test $ac_status = 0; }
3600 if { ac_try='./conftest$ac_cv_exeext'
3601 { { case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_try") 2>&5
3608 ac_status=$?
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }; }; then
3611 cross_compiling=no
3612 else
3613 if test "$cross_compiling" = maybe; then
3614 cross_compiling=yes
3615 else
3616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618 as_fn_error $? "cannot run C compiled programs.
3619 If you meant to cross compile, use \`--host'.
3620 See \`config.log' for more details" "$LINENO" 5; }
3621 fi
3622 fi
3623 fi
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3625 $as_echo "$cross_compiling" >&6; }
3626
3627 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3628 ac_clean_files=$ac_clean_files_save
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3630 $as_echo_n "checking for suffix of object files... " >&6; }
3631 if ${ac_cv_objext+:} false; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3636
3637 int
3638 main ()
3639 {
3640
3641 ;
3642 return 0;
3643 }
3644 _ACEOF
3645 rm -f conftest.o conftest.obj
3646 if { { ac_try="$ac_compile"
3647 case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 $as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_compile") 2>&5
3654 ac_status=$?
3655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656 test $ac_status = 0; }; then :
3657 for ac_file in conftest.o conftest.obj conftest.*; do
3658 test -f "$ac_file" || continue;
3659 case $ac_file in
3660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3661 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3662 break;;
3663 esac
3664 done
3665 else
3666 $as_echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error $? "cannot compute suffix of object files: cannot compile
3672 See \`config.log' for more details" "$LINENO" 5; }
3673 fi
3674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3677 $as_echo "$ac_cv_objext" >&6; }
3678 OBJEXT=$ac_cv_objext
3679 ac_objext=$OBJEXT
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3681 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3682 if ${ac_cv_c_compiler_gnu+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687
3688 int
3689 main ()
3690 {
3691 #ifndef __GNUC__
3692 choke me
3693 #endif
3694
3695 ;
3696 return 0;
3697 }
3698 _ACEOF
3699 if ac_fn_c_try_compile "$LINENO"; then :
3700 ac_compiler_gnu=yes
3701 else
3702 ac_compiler_gnu=no
3703 fi
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3706
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3709 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3710 if test $ac_compiler_gnu = yes; then
3711 GCC=yes
3712 else
3713 GCC=
3714 fi
3715 ac_test_CFLAGS=${CFLAGS+set}
3716 ac_save_CFLAGS=$CFLAGS
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3718 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3719 if ${ac_cv_prog_cc_g+:} false; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 ac_save_c_werror_flag=$ac_c_werror_flag
3723 ac_c_werror_flag=yes
3724 ac_cv_prog_cc_g=no
3725 CFLAGS="-g"
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 int
3730 main ()
3731 {
3732
3733 ;
3734 return 0;
3735 }
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738 ac_cv_prog_cc_g=yes
3739 else
3740 CFLAGS=""
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3743
3744 int
3745 main ()
3746 {
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753
3754 else
3755 ac_c_werror_flag=$ac_save_c_werror_flag
3756 CFLAGS="-g"
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759
3760 int
3761 main ()
3762 {
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_cv_prog_cc_g=yes
3770 fi
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 fi
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 fi
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 ac_c_werror_flag=$ac_save_c_werror_flag
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3779 $as_echo "$ac_cv_prog_cc_g" >&6; }
3780 if test "$ac_test_CFLAGS" = set; then
3781 CFLAGS=$ac_save_CFLAGS
3782 elif test $ac_cv_prog_cc_g = yes; then
3783 if test "$GCC" = yes; then
3784 CFLAGS="-g -O2"
3785 else
3786 CFLAGS="-g"
3787 fi
3788 else
3789 if test "$GCC" = yes; then
3790 CFLAGS="-O2"
3791 else
3792 CFLAGS=
3793 fi
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3796 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3797 if ${ac_cv_prog_cc_c89+:} false; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 ac_cv_prog_cc_c89=no
3801 ac_save_CC=$CC
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3804 #include <stdarg.h>
3805 #include <stdio.h>
3806 struct stat;
3807 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3808 struct buf { int x; };
3809 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3810 static char *e (p, i)
3811 char **p;
3812 int i;
3813 {
3814 return p[i];
3815 }
3816 static char *f (char * (*g) (char **, int), char **p, ...)
3817 {
3818 char *s;
3819 va_list v;
3820 va_start (v,p);
3821 s = g (p, va_arg (v,int));
3822 va_end (v);
3823 return s;
3824 }
3825
3826 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3827 function prototypes and stuff, but not '\xHH' hex character constants.
3828 These don't provoke an error unfortunately, instead are silently treated
3829 as 'x'. The following induces an error, until -std is added to get
3830 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3831 array size at least. It's necessary to write '\x00'==0 to get something
3832 that's true only with -std. */
3833 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3834
3835 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3836 inside strings and character constants. */
3837 #define FOO(x) 'x'
3838 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3839
3840 int test (int i, double x);
3841 struct s1 {int (*f) (int a);};
3842 struct s2 {int (*f) (double a);};
3843 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3844 int argc;
3845 char **argv;
3846 int
3847 main ()
3848 {
3849 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3850 ;
3851 return 0;
3852 }
3853 _ACEOF
3854 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3855 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3856 do
3857 CC="$ac_save_CC $ac_arg"
3858 if ac_fn_c_try_compile "$LINENO"; then :
3859 ac_cv_prog_cc_c89=$ac_arg
3860 fi
3861 rm -f core conftest.err conftest.$ac_objext
3862 test "x$ac_cv_prog_cc_c89" != "xno" && break
3863 done
3864 rm -f conftest.$ac_ext
3865 CC=$ac_save_CC
3866
3867 fi
3868 # AC_CACHE_VAL
3869 case "x$ac_cv_prog_cc_c89" in
3870 x)
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3872 $as_echo "none needed" >&6; } ;;
3873 xno)
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3875 $as_echo "unsupported" >&6; } ;;
3876 *)
3877 CC="$CC $ac_cv_prog_cc_c89"
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3879 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3880 esac
3881 if test "x$ac_cv_prog_cc_c89" != xno; then :
3882
3883 fi
3884
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890
3891 ac_ext=c
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3897 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3898 if ${am_cv_prog_cc_c_o+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903
3904 int
3905 main ()
3906 {
3907
3908 ;
3909 return 0;
3910 }
3911 _ACEOF
3912 # Make sure it works both with $CC and with simple cc.
3913 # Following AC_PROG_CC_C_O, we do the test twice because some
3914 # compilers refuse to overwrite an existing .o file with -o,
3915 # though they will create one.
3916 am_cv_prog_cc_c_o=yes
3917 for am_i in 1 2; do
3918 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3919 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } \
3923 && test -f conftest2.$ac_objext; then
3924 : OK
3925 else
3926 am_cv_prog_cc_c_o=no
3927 break
3928 fi
3929 done
3930 rm -f core conftest*
3931 unset am_i
3932 fi
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3934 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3935 if test "$am_cv_prog_cc_c_o" != yes; then
3936 # Losing compiler, so override with the script.
3937 # FIXME: It is wrong to rewrite CC.
3938 # But if we don't then we get into trouble of one sort or another.
3939 # A longer-term fix would be to have automake use am__CC in this case,
3940 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3941 CC="$am_aux_dir/compile $CC"
3942 fi
3943 ac_ext=c
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948
3949 DEPDIR="${am__leading_dot}deps"
3950
3951 ac_config_commands="$ac_config_commands depfiles"
3952
3953
3954 am_make=${MAKE-make}
3955 cat > confinc << 'END'
3956 am__doit:
3957 @echo this is the am__doit target
3958 .PHONY: am__doit
3959 END
3960 # If we don't find an include directive, just comment out the code.
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3962 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3963 am__include="#"
3964 am__quote=
3965 _am_result=none
3966 # First try GNU make style include.
3967 echo "include confinc" > confmf
3968 # Ignore all kinds of additional output from 'make'.
3969 case `$am_make -s -f confmf 2> /dev/null` in #(
3970 *the\ am__doit\ target*)
3971 am__include=include
3972 am__quote=
3973 _am_result=GNU
3974 ;;
3975 esac
3976 # Now try BSD make style include.
3977 if test "$am__include" = "#"; then
3978 echo '.include "confinc"' > confmf
3979 case `$am_make -s -f confmf 2> /dev/null` in #(
3980 *the\ am__doit\ target*)
3981 am__include=.include
3982 am__quote="\""
3983 _am_result=BSD
3984 ;;
3985 esac
3986 fi
3987
3988
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3990 $as_echo "$_am_result" >&6; }
3991 rm -f confinc confmf
3992
3993 # Check whether --enable-dependency-tracking was given.
3994 if test "${enable_dependency_tracking+set}" = set; then :
3995 enableval=$enable_dependency_tracking;
3996 fi
3997
3998 if test "x$enable_dependency_tracking" != xno; then
3999 am_depcomp="$ac_aux_dir/depcomp"
4000 AMDEPBACKSLASH='\'
4001 am__nodep='_no'
4002 fi
4003 if test "x$enable_dependency_tracking" != xno; then
4004 AMDEP_TRUE=
4005 AMDEP_FALSE='#'
4006 else
4007 AMDEP_TRUE='#'
4008 AMDEP_FALSE=
4009 fi
4010
4011
4012
4013 depcc="$CC" am_compiler_list=
4014
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4016 $as_echo_n "checking dependency style of $depcc... " >&6; }
4017 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4018 $as_echo_n "(cached) " >&6
4019 else
4020 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4021 # We make a subdir and do the tests there. Otherwise we can end up
4022 # making bogus files that we don't know about and never remove. For
4023 # instance it was reported that on HP-UX the gcc test will end up
4024 # making a dummy file named 'D' -- because '-MD' means "put the output
4025 # in D".
4026 rm -rf conftest.dir
4027 mkdir conftest.dir
4028 # Copy depcomp to subdir because otherwise we won't find it if we're
4029 # using a relative directory.
4030 cp "$am_depcomp" conftest.dir
4031 cd conftest.dir
4032 # We will build objects and dependencies in a subdirectory because
4033 # it helps to detect inapplicable dependency modes. For instance
4034 # both Tru64's cc and ICC support -MD to output dependencies as a
4035 # side effect of compilation, but ICC will put the dependencies in
4036 # the current directory while Tru64 will put them in the object
4037 # directory.
4038 mkdir sub
4039
4040 am_cv_CC_dependencies_compiler_type=none
4041 if test "$am_compiler_list" = ""; then
4042 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4043 fi
4044 am__universal=false
4045 case " $depcc " in #(
4046 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4047 esac
4048
4049 for depmode in $am_compiler_list; do
4050 # Setup a source with many dependencies, because some compilers
4051 # like to wrap large dependency lists on column 80 (with \), and
4052 # we should not choose a depcomp mode which is confused by this.
4053 #
4054 # We need to recreate these files for each test, as the compiler may
4055 # overwrite some of them when testing with obscure command lines.
4056 # This happens at least with the AIX C compiler.
4057 : > sub/conftest.c
4058 for i in 1 2 3 4 5 6; do
4059 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4060 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4061 # Solaris 10 /bin/sh.
4062 echo '/* dummy */' > sub/conftst$i.h
4063 done
4064 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4065
4066 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4067 # mode. It turns out that the SunPro C++ compiler does not properly
4068 # handle '-M -o', and we need to detect this. Also, some Intel
4069 # versions had trouble with output in subdirs.
4070 am__obj=sub/conftest.${OBJEXT-o}
4071 am__minus_obj="-o $am__obj"
4072 case $depmode in
4073 gcc)
4074 # This depmode causes a compiler race in universal mode.
4075 test "$am__universal" = false || continue
4076 ;;
4077 nosideeffect)
4078 # After this tag, mechanisms are not by side-effect, so they'll
4079 # only be used when explicitly requested.
4080 if test "x$enable_dependency_tracking" = xyes; then
4081 continue
4082 else
4083 break
4084 fi
4085 ;;
4086 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4087 # This compiler won't grok '-c -o', but also, the minuso test has
4088 # not run yet. These depmodes are late enough in the game, and
4089 # so weak that their functioning should not be impacted.
4090 am__obj=conftest.${OBJEXT-o}
4091 am__minus_obj=
4092 ;;
4093 none) break ;;
4094 esac
4095 if depmode=$depmode \
4096 source=sub/conftest.c object=$am__obj \
4097 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4098 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4099 >/dev/null 2>conftest.err &&
4100 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4101 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4102 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4103 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4104 # icc doesn't choke on unknown options, it will just issue warnings
4105 # or remarks (even with -Werror). So we grep stderr for any message
4106 # that says an option was ignored or not supported.
4107 # When given -MP, icc 7.0 and 7.1 complain thusly:
4108 # icc: Command line warning: ignoring option '-M'; no argument required
4109 # The diagnosis changed in icc 8.0:
4110 # icc: Command line remark: option '-MP' not supported
4111 if (grep 'ignoring option' conftest.err ||
4112 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4113 am_cv_CC_dependencies_compiler_type=$depmode
4114 break
4115 fi
4116 fi
4117 done
4118
4119 cd ..
4120 rm -rf conftest.dir
4121 else
4122 am_cv_CC_dependencies_compiler_type=none
4123 fi
4124
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4127 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4128 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4129
4130 if
4131 test "x$enable_dependency_tracking" != xno \
4132 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4133 am__fastdepCC_TRUE=
4134 am__fastdepCC_FALSE='#'
4135 else
4136 am__fastdepCC_TRUE='#'
4137 am__fastdepCC_FALSE=
4138 fi
4139
4140
4141
4142 ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4148 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4149 # On Suns, sometimes $CPP names a directory.
4150 if test -n "$CPP" && test -d "$CPP"; then
4151 CPP=
4152 fi
4153 if test -z "$CPP"; then
4154 if ${ac_cv_prog_CPP+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 # Double quotes because CPP needs to be expanded
4158 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4159 do
4160 ac_preproc_ok=false
4161 for ac_c_preproc_warn_flag in '' yes
4162 do
4163 # Use a header file that comes with gcc, so configuring glibc
4164 # with a fresh cross-compiler works.
4165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4166 # <limits.h> exists even on freestanding compilers.
4167 # On the NeXT, cc -E runs the code through the compiler's parser,
4168 # not just through cpp. "Syntax error" is here to catch this case.
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171 #ifdef __STDC__
4172 # include <limits.h>
4173 #else
4174 # include <assert.h>
4175 #endif
4176 Syntax error
4177 _ACEOF
4178 if ac_fn_c_try_cpp "$LINENO"; then :
4179
4180 else
4181 # Broken: fails on valid input.
4182 continue
4183 fi
4184 rm -f conftest.err conftest.i conftest.$ac_ext
4185
4186 # OK, works on sane cases. Now check whether nonexistent headers
4187 # can be detected and how.
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4190 #include <ac_nonexistent.h>
4191 _ACEOF
4192 if ac_fn_c_try_cpp "$LINENO"; then :
4193 # Broken: success on invalid input.
4194 continue
4195 else
4196 # Passes both tests.
4197 ac_preproc_ok=:
4198 break
4199 fi
4200 rm -f conftest.err conftest.i conftest.$ac_ext
4201
4202 done
4203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4204 rm -f conftest.i conftest.err conftest.$ac_ext
4205 if $ac_preproc_ok; then :
4206 break
4207 fi
4208
4209 done
4210 ac_cv_prog_CPP=$CPP
4211
4212 fi
4213 CPP=$ac_cv_prog_CPP
4214 else
4215 ac_cv_prog_CPP=$CPP
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4218 $as_echo "$CPP" >&6; }
4219 ac_preproc_ok=false
4220 for ac_c_preproc_warn_flag in '' yes
4221 do
4222 # Use a header file that comes with gcc, so configuring glibc
4223 # with a fresh cross-compiler works.
4224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4225 # <limits.h> exists even on freestanding compilers.
4226 # On the NeXT, cc -E runs the code through the compiler's parser,
4227 # not just through cpp. "Syntax error" is here to catch this case.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230 #ifdef __STDC__
4231 # include <limits.h>
4232 #else
4233 # include <assert.h>
4234 #endif
4235 Syntax error
4236 _ACEOF
4237 if ac_fn_c_try_cpp "$LINENO"; then :
4238
4239 else
4240 # Broken: fails on valid input.
4241 continue
4242 fi
4243 rm -f conftest.err conftest.i conftest.$ac_ext
4244
4245 # OK, works on sane cases. Now check whether nonexistent headers
4246 # can be detected and how.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #include <ac_nonexistent.h>
4250 _ACEOF
4251 if ac_fn_c_try_cpp "$LINENO"; then :
4252 # Broken: success on invalid input.
4253 continue
4254 else
4255 # Passes both tests.
4256 ac_preproc_ok=:
4257 break
4258 fi
4259 rm -f conftest.err conftest.i conftest.$ac_ext
4260
4261 done
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.i conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then :
4265
4266 else
4267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4270 See \`config.log' for more details" "$LINENO" 5; }
4271 fi
4272
4273 ac_ext=c
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278
4279
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4281 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4282 if ${ac_cv_path_GREP+:} false; then :
4283 $as_echo_n "(cached) " >&6
4284 else
4285 if test -z "$GREP"; then
4286 ac_path_GREP_found=false
4287 # Loop through the user's path and test for each of PROGNAME-LIST
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4290 do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_prog in grep ggrep; do
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4296 as_fn_executable_p "$ac_path_GREP" || continue
4297 # Check for GNU ac_path_GREP and select it if it is found.
4298 # Check for GNU $ac_path_GREP
4299 case `"$ac_path_GREP" --version 2>&1` in
4300 *GNU*)
4301 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4302 *)
4303 ac_count=0
4304 $as_echo_n 0123456789 >"conftest.in"
4305 while :
4306 do
4307 cat "conftest.in" "conftest.in" >"conftest.tmp"
4308 mv "conftest.tmp" "conftest.in"
4309 cp "conftest.in" "conftest.nl"
4310 $as_echo 'GREP' >> "conftest.nl"
4311 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4313 as_fn_arith $ac_count + 1 && ac_count=$as_val
4314 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4315 # Best one so far, save it but keep looking for a better one
4316 ac_cv_path_GREP="$ac_path_GREP"
4317 ac_path_GREP_max=$ac_count
4318 fi
4319 # 10*(2^10) chars as input seems more than enough
4320 test $ac_count -gt 10 && break
4321 done
4322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4323 esac
4324
4325 $ac_path_GREP_found && break 3
4326 done
4327 done
4328 done
4329 IFS=$as_save_IFS
4330 if test -z "$ac_cv_path_GREP"; then
4331 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4332 fi
4333 else
4334 ac_cv_path_GREP=$GREP
4335 fi
4336
4337 fi
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4339 $as_echo "$ac_cv_path_GREP" >&6; }
4340 GREP="$ac_cv_path_GREP"
4341
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4344 $as_echo_n "checking for egrep... " >&6; }
4345 if ${ac_cv_path_EGREP+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4349 then ac_cv_path_EGREP="$GREP -E"
4350 else
4351 if test -z "$EGREP"; then
4352 ac_path_EGREP_found=false
4353 # Loop through the user's path and test for each of PROGNAME-LIST
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4356 do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_prog in egrep; do
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4362 as_fn_executable_p "$ac_path_EGREP" || continue
4363 # Check for GNU ac_path_EGREP and select it if it is found.
4364 # Check for GNU $ac_path_EGREP
4365 case `"$ac_path_EGREP" --version 2>&1` in
4366 *GNU*)
4367 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4368 *)
4369 ac_count=0
4370 $as_echo_n 0123456789 >"conftest.in"
4371 while :
4372 do
4373 cat "conftest.in" "conftest.in" >"conftest.tmp"
4374 mv "conftest.tmp" "conftest.in"
4375 cp "conftest.in" "conftest.nl"
4376 $as_echo 'EGREP' >> "conftest.nl"
4377 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4379 as_fn_arith $ac_count + 1 && ac_count=$as_val
4380 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4381 # Best one so far, save it but keep looking for a better one
4382 ac_cv_path_EGREP="$ac_path_EGREP"
4383 ac_path_EGREP_max=$ac_count
4384 fi
4385 # 10*(2^10) chars as input seems more than enough
4386 test $ac_count -gt 10 && break
4387 done
4388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4389 esac
4390
4391 $ac_path_EGREP_found && break 3
4392 done
4393 done
4394 done
4395 IFS=$as_save_IFS
4396 if test -z "$ac_cv_path_EGREP"; then
4397 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4398 fi
4399 else
4400 ac_cv_path_EGREP=$EGREP
4401 fi
4402
4403 fi
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4406 $as_echo "$ac_cv_path_EGREP" >&6; }
4407 EGREP="$ac_cv_path_EGREP"
4408
4409
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4411 $as_echo_n "checking for ANSI C header files... " >&6; }
4412 if ${ac_cv_header_stdc+:} false; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <stdlib.h>
4418 #include <stdarg.h>
4419 #include <string.h>
4420 #include <float.h>
4421
4422 int
4423 main ()
4424 {
4425
4426 ;
4427 return 0;
4428 }
4429 _ACEOF
4430 if ac_fn_c_try_compile "$LINENO"; then :
4431 ac_cv_header_stdc=yes
4432 else
4433 ac_cv_header_stdc=no
4434 fi
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436
4437 if test $ac_cv_header_stdc = yes; then
4438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4441 #include <string.h>
4442
4443 _ACEOF
4444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4445 $EGREP "memchr" >/dev/null 2>&1; then :
4446
4447 else
4448 ac_cv_header_stdc=no
4449 fi
4450 rm -f conftest*
4451
4452 fi
4453
4454 if test $ac_cv_header_stdc = yes; then
4455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458 #include <stdlib.h>
4459
4460 _ACEOF
4461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4462 $EGREP "free" >/dev/null 2>&1; then :
4463
4464 else
4465 ac_cv_header_stdc=no
4466 fi
4467 rm -f conftest*
4468
4469 fi
4470
4471 if test $ac_cv_header_stdc = yes; then
4472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4473 if test "$cross_compiling" = yes; then :
4474 :
4475 else
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478 #include <ctype.h>
4479 #include <stdlib.h>
4480 #if ((' ' & 0x0FF) == 0x020)
4481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4483 #else
4484 # define ISLOWER(c) \
4485 (('a' <= (c) && (c) <= 'i') \
4486 || ('j' <= (c) && (c) <= 'r') \
4487 || ('s' <= (c) && (c) <= 'z'))
4488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4489 #endif
4490
4491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4492 int
4493 main ()
4494 {
4495 int i;
4496 for (i = 0; i < 256; i++)
4497 if (XOR (islower (i), ISLOWER (i))
4498 || toupper (i) != TOUPPER (i))
4499 return 2;
4500 return 0;
4501 }
4502 _ACEOF
4503 if ac_fn_c_try_run "$LINENO"; then :
4504
4505 else
4506 ac_cv_header_stdc=no
4507 fi
4508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4509 conftest.$ac_objext conftest.beam conftest.$ac_ext
4510 fi
4511
4512 fi
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4515 $as_echo "$ac_cv_header_stdc" >&6; }
4516 if test $ac_cv_header_stdc = yes; then
4517
4518 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4519
4520 fi
4521
4522 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4523 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4524 inttypes.h stdint.h unistd.h
4525 do :
4526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4527 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4528 "
4529 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4530 cat >>confdefs.h <<_ACEOF
4531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4532 _ACEOF
4533
4534 fi
4535
4536 done
4537
4538
4539
4540 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4541 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4542 MINIX=yes
4543 else
4544 MINIX=
4545 fi
4546
4547
4548 if test "$MINIX" = yes; then
4549
4550 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4551
4552
4553 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4554
4555
4556 $as_echo "#define _MINIX 1" >>confdefs.h
4557
4558 fi
4559
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4562 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4563 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4568
4569 # define __EXTENSIONS__ 1
4570 $ac_includes_default
4571 int
4572 main ()
4573 {
4574
4575 ;
4576 return 0;
4577 }
4578 _ACEOF
4579 if ac_fn_c_try_compile "$LINENO"; then :
4580 ac_cv_safe_to_define___extensions__=yes
4581 else
4582 ac_cv_safe_to_define___extensions__=no
4583 fi
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4587 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4588 test $ac_cv_safe_to_define___extensions__ = yes &&
4589 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4590
4591 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4592
4593 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4594
4595 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4596
4597 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4598
4599
4600
4601
4602
4603 case `pwd` in
4604 *\ * | *\ *)
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4606 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4607 esac
4608
4609
4610
4611 macro_version='2.2.7a'
4612 macro_revision='1.3134'
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626 ltmain="$ac_aux_dir/ltmain.sh"
4627
4628 # Backslashify metacharacters that are still active within
4629 # double-quoted strings.
4630 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4631
4632 # Same as above, but do not quote variable references.
4633 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4634
4635 # Sed substitution to delay expansion of an escaped shell variable in a
4636 # double_quote_subst'ed string.
4637 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4638
4639 # Sed substitution to delay expansion of an escaped single quote.
4640 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4641
4642 # Sed substitution to avoid accidental globbing in evaled expressions
4643 no_glob_subst='s/\*/\\\*/g'
4644
4645 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4646 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4647 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4650 $as_echo_n "checking how to print strings... " >&6; }
4651 # Test print first, because it will be a builtin if present.
4652 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4653 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4654 ECHO='print -r --'
4655 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4656 ECHO='printf %s\n'
4657 else
4658 # Use this function as a fallback that always works.
4659 func_fallback_echo ()
4660 {
4661 eval 'cat <<_LTECHO_EOF
4662 $1
4663 _LTECHO_EOF'
4664 }
4665 ECHO='func_fallback_echo'
4666 fi
4667
4668 # func_echo_all arg...
4669 # Invoke $ECHO with all args, space-separated.
4670 func_echo_all ()
4671 {
4672 $ECHO ""
4673 }
4674
4675 case "$ECHO" in
4676 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4677 $as_echo "printf" >&6; } ;;
4678 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4679 $as_echo "print -r" >&6; } ;;
4680 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4681 $as_echo "cat" >&6; } ;;
4682 esac
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4698 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4699 if ${ac_cv_path_SED+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4703 for ac_i in 1 2 3 4 5 6 7; do
4704 ac_script="$ac_script$as_nl$ac_script"
4705 done
4706 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4707 { ac_script=; unset ac_script;}
4708 if test -z "$SED"; then
4709 ac_path_SED_found=false
4710 # Loop through the user's path and test for each of PROGNAME-LIST
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_prog in sed gsed; do
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4719 as_fn_executable_p "$ac_path_SED" || continue
4720 # Check for GNU ac_path_SED and select it if it is found.
4721 # Check for GNU $ac_path_SED
4722 case `"$ac_path_SED" --version 2>&1` in
4723 *GNU*)
4724 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4725 *)
4726 ac_count=0
4727 $as_echo_n 0123456789 >"conftest.in"
4728 while :
4729 do
4730 cat "conftest.in" "conftest.in" >"conftest.tmp"
4731 mv "conftest.tmp" "conftest.in"
4732 cp "conftest.in" "conftest.nl"
4733 $as_echo '' >> "conftest.nl"
4734 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4736 as_fn_arith $ac_count + 1 && ac_count=$as_val
4737 if test $ac_count -gt ${ac_path_SED_max-0}; then
4738 # Best one so far, save it but keep looking for a better one
4739 ac_cv_path_SED="$ac_path_SED"
4740 ac_path_SED_max=$ac_count
4741 fi
4742 # 10*(2^10) chars as input seems more than enough
4743 test $ac_count -gt 10 && break
4744 done
4745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4746 esac
4747
4748 $ac_path_SED_found && break 3
4749 done
4750 done
4751 done
4752 IFS=$as_save_IFS
4753 if test -z "$ac_cv_path_SED"; then
4754 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4755 fi
4756 else
4757 ac_cv_path_SED=$SED
4758 fi
4759
4760 fi
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4762 $as_echo "$ac_cv_path_SED" >&6; }
4763 SED="$ac_cv_path_SED"
4764 rm -f conftest.sed
4765
4766 test -z "$SED" && SED=sed
4767 Xsed="$SED -e 1s/^X//"
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4780 $as_echo_n "checking for fgrep... " >&6; }
4781 if ${ac_cv_path_FGREP+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4785 then ac_cv_path_FGREP="$GREP -F"
4786 else
4787 if test -z "$FGREP"; then
4788 ac_path_FGREP_found=false
4789 # Loop through the user's path and test for each of PROGNAME-LIST
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4792 do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_prog in fgrep; do
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4798 as_fn_executable_p "$ac_path_FGREP" || continue
4799 # Check for GNU ac_path_FGREP and select it if it is found.
4800 # Check for GNU $ac_path_FGREP
4801 case `"$ac_path_FGREP" --version 2>&1` in
4802 *GNU*)
4803 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4804 *)
4805 ac_count=0
4806 $as_echo_n 0123456789 >"conftest.in"
4807 while :
4808 do
4809 cat "conftest.in" "conftest.in" >"conftest.tmp"
4810 mv "conftest.tmp" "conftest.in"
4811 cp "conftest.in" "conftest.nl"
4812 $as_echo 'FGREP' >> "conftest.nl"
4813 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4815 as_fn_arith $ac_count + 1 && ac_count=$as_val
4816 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4817 # Best one so far, save it but keep looking for a better one
4818 ac_cv_path_FGREP="$ac_path_FGREP"
4819 ac_path_FGREP_max=$ac_count
4820 fi
4821 # 10*(2^10) chars as input seems more than enough
4822 test $ac_count -gt 10 && break
4823 done
4824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4825 esac
4826
4827 $ac_path_FGREP_found && break 3
4828 done
4829 done
4830 done
4831 IFS=$as_save_IFS
4832 if test -z "$ac_cv_path_FGREP"; then
4833 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4834 fi
4835 else
4836 ac_cv_path_FGREP=$FGREP
4837 fi
4838
4839 fi
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4842 $as_echo "$ac_cv_path_FGREP" >&6; }
4843 FGREP="$ac_cv_path_FGREP"
4844
4845
4846 test -z "$GREP" && GREP=grep
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866 # Check whether --with-gnu-ld was given.
4867 if test "${with_gnu_ld+set}" = set; then :
4868 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4869 else
4870 with_gnu_ld=no
4871 fi
4872
4873 ac_prog=ld
4874 if test "$GCC" = yes; then
4875 # Check if gcc -print-prog-name=ld gives a path.
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4877 $as_echo_n "checking for ld used by $CC... " >&6; }
4878 case $host in
4879 *-*-mingw*)
4880 # gcc leaves a trailing carriage return which upsets mingw
4881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4882 *)
4883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4884 esac
4885 case $ac_prog in
4886 # Accept absolute paths.
4887 [\\/]* | ?:[\\/]*)
4888 re_direlt='/[^/][^/]*/\.\./'
4889 # Canonicalize the pathname of ld
4890 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4891 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4892 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4893 done
4894 test -z "$LD" && LD="$ac_prog"
4895 ;;
4896 "")
4897 # If it fails, then pretend we aren't using GCC.
4898 ac_prog=ld
4899 ;;
4900 *)
4901 # If it is relative, then search for the first ld in PATH.
4902 with_gnu_ld=unknown
4903 ;;
4904 esac
4905 elif test "$with_gnu_ld" = yes; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4907 $as_echo_n "checking for GNU ld... " >&6; }
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4910 $as_echo_n "checking for non-GNU ld... " >&6; }
4911 fi
4912 if ${lt_cv_path_LD+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 if test -z "$LD"; then
4916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4917 for ac_dir in $PATH; do
4918 IFS="$lt_save_ifs"
4919 test -z "$ac_dir" && ac_dir=.
4920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4921 lt_cv_path_LD="$ac_dir/$ac_prog"
4922 # Check to see if the program is GNU ld. I'd rather use --version,
4923 # but apparently some variants of GNU ld only accept -v.
4924 # Break only if it was the GNU/non-GNU ld that we prefer.
4925 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4926 *GNU* | *'with BFD'*)
4927 test "$with_gnu_ld" != no && break
4928 ;;
4929 *)
4930 test "$with_gnu_ld" != yes && break
4931 ;;
4932 esac
4933 fi
4934 done
4935 IFS="$lt_save_ifs"
4936 else
4937 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4938 fi
4939 fi
4940
4941 LD="$lt_cv_path_LD"
4942 if test -n "$LD"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4944 $as_echo "$LD" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4952 if ${lt_cv_prog_gnu_ld+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4956 case `$LD -v 2>&1 </dev/null` in
4957 *GNU* | *'with BFD'*)
4958 lt_cv_prog_gnu_ld=yes
4959 ;;
4960 *)
4961 lt_cv_prog_gnu_ld=no
4962 ;;
4963 esac
4964 fi
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4966 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4967 with_gnu_ld=$lt_cv_prog_gnu_ld
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4978 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4979 if ${lt_cv_path_NM+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -n "$NM"; then
4983 # Let the user override the nm to test.
4984 lt_nm_to_check="$NM"
4985 else
4986 lt_nm_to_check="${ac_tool_prefix}nm"
4987 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4988 lt_nm_to_check="$lt_nm_to_check nm"
4989 fi
4990 fi
4991 for lt_tmp_nm in "$lt_nm_to_check"; do
4992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4993 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4994 IFS="$lt_save_ifs"
4995 test -z "$ac_dir" && ac_dir=.
4996 # Strip out any user-provided options from the nm to test twice,
4997 # the first time to test to see if nm (rather than its options) has
4998 # an explicit path, the second time to yield a file which can be
4999 # nm'ed itself.
5000 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5001 case "$tmp_nm_path" in
5002 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5003 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5004 esac
5005 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5006 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5007 # Check to see if the nm accepts a BSD-compat flag.
5008 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5009 # nm: unknown option "B" ignored
5010 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5011 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5012 break
5013 ;;
5014 *)
5015 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5016 *$tmp_nm*)
5017 lt_cv_path_NM="$tmp_nm -p"
5018 break
5019 ;;
5020 *)
5021 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5022 continue # so that we can try to find one that supports BSD flags
5023 ;;
5024 esac
5025 ;;
5026 esac
5027 fi
5028 done
5029 IFS="$lt_save_ifs"
5030 done
5031 : ${lt_cv_path_NM=no}
5032 fi
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5034 $as_echo "$lt_cv_path_NM" >&6; }
5035 if test "$lt_cv_path_NM" != "no"; then
5036 NM="$lt_cv_path_NM"
5037 else
5038 # Didn't find any BSD compatible name lister, look for dumpbin.
5039 if test -n "$DUMPBIN"; then :
5040 # Let the user override the test.
5041 else
5042 if test -n "$ac_tool_prefix"; then
5043 for ac_prog in dumpbin "link -dump"
5044 do
5045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if ${ac_cv_prog_DUMPBIN+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$DUMPBIN"; then
5053 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5062 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5065 fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070 fi
5071 fi
5072 DUMPBIN=$ac_cv_prog_DUMPBIN
5073 if test -n "$DUMPBIN"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5075 $as_echo "$DUMPBIN" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5079 fi
5080
5081
5082 test -n "$DUMPBIN" && break
5083 done
5084 fi
5085 if test -z "$DUMPBIN"; then
5086 ac_ct_DUMPBIN=$DUMPBIN
5087 for ac_prog in dumpbin "link -dump"
5088 do
5089 # Extract the first word of "$ac_prog", so it can be a program name with args.
5090 set dummy $ac_prog; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -n "$ac_ct_DUMPBIN"; then
5097 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5109 fi
5110 done
5111 done
5112 IFS=$as_save_IFS
5113
5114 fi
5115 fi
5116 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5117 if test -n "$ac_ct_DUMPBIN"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5119 $as_echo "$ac_ct_DUMPBIN" >&6; }
5120 else
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124
5125
5126 test -n "$ac_ct_DUMPBIN" && break
5127 done
5128
5129 if test "x$ac_ct_DUMPBIN" = x; then
5130 DUMPBIN=":"
5131 else
5132 case $cross_compiling:$ac_tool_warned in
5133 yes:)
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5136 ac_tool_warned=yes ;;
5137 esac
5138 DUMPBIN=$ac_ct_DUMPBIN
5139 fi
5140 fi
5141
5142 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5143 *COFF*)
5144 DUMPBIN="$DUMPBIN -symbols"
5145 ;;
5146 *)
5147 DUMPBIN=:
5148 ;;
5149 esac
5150 fi
5151
5152 if test "$DUMPBIN" != ":"; then
5153 NM="$DUMPBIN"
5154 fi
5155 fi
5156 test -z "$NM" && NM=nm
5157
5158
5159
5160
5161
5162
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5164 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5165 if ${lt_cv_nm_interface+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 lt_cv_nm_interface="BSD nm"
5169 echo "int some_variable = 0;" > conftest.$ac_ext
5170 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5171 (eval "$ac_compile" 2>conftest.err)
5172 cat conftest.err >&5
5173 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5174 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5175 cat conftest.err >&5
5176 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5177 cat conftest.out >&5
5178 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5179 lt_cv_nm_interface="MS dumpbin"
5180 fi
5181 rm -f conftest*
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5184 $as_echo "$lt_cv_nm_interface" >&6; }
5185
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5187 $as_echo_n "checking whether ln -s works... " >&6; }
5188 LN_S=$as_ln_s
5189 if test "$LN_S" = "ln -s"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5191 $as_echo "yes" >&6; }
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5194 $as_echo "no, using $LN_S" >&6; }
5195 fi
5196
5197 # find the maximum length of command line arguments
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5199 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5200 if ${lt_cv_sys_max_cmd_len+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 i=0
5204 teststring="ABCD"
5205
5206 case $build_os in
5207 msdosdjgpp*)
5208 # On DJGPP, this test can blow up pretty badly due to problems in libc
5209 # (any single argument exceeding 2000 bytes causes a buffer overrun
5210 # during glob expansion). Even if it were fixed, the result of this
5211 # check would be larger than it should be.
5212 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5213 ;;
5214
5215 gnu*)
5216 # Under GNU Hurd, this test is not required because there is
5217 # no limit to the length of command line arguments.
5218 # Libtool will interpret -1 as no limit whatsoever
5219 lt_cv_sys_max_cmd_len=-1;
5220 ;;
5221
5222 cygwin* | mingw* | cegcc*)
5223 # On Win9x/ME, this test blows up -- it succeeds, but takes
5224 # about 5 minutes as the teststring grows exponentially.
5225 # Worse, since 9x/ME are not pre-emptively multitasking,
5226 # you end up with a "frozen" computer, even though with patience
5227 # the test eventually succeeds (with a max line length of 256k).
5228 # Instead, let's just punt: use the minimum linelength reported by
5229 # all of the supported platforms: 8192 (on NT/2K/XP).
5230 lt_cv_sys_max_cmd_len=8192;
5231 ;;
5232
5233 mint*)
5234 # On MiNT this can take a long time and run out of memory.
5235 lt_cv_sys_max_cmd_len=8192;
5236 ;;
5237
5238 amigaos*)
5239 # On AmigaOS with pdksh, this test takes hours, literally.
5240 # So we just punt and use a minimum line length of 8192.
5241 lt_cv_sys_max_cmd_len=8192;
5242 ;;
5243
5244 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5245 # This has been around since 386BSD, at least. Likely further.
5246 if test -x /sbin/sysctl; then
5247 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5248 elif test -x /usr/sbin/sysctl; then
5249 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5250 else
5251 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5252 fi
5253 # And add a safety zone
5254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5256 ;;
5257
5258 interix*)
5259 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5260 lt_cv_sys_max_cmd_len=196608
5261 ;;
5262
5263 osf*)
5264 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5265 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5266 # nice to cause kernel panics so lets avoid the loop below.
5267 # First set a reasonable default.
5268 lt_cv_sys_max_cmd_len=16384
5269 #
5270 if test -x /sbin/sysconfig; then
5271 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5272 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5273 esac
5274 fi
5275 ;;
5276 sco3.2v5*)
5277 lt_cv_sys_max_cmd_len=102400
5278 ;;
5279 sysv5* | sco5v6* | sysv4.2uw2*)
5280 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5281 if test -n "$kargmax"; then
5282 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5283 else
5284 lt_cv_sys_max_cmd_len=32768
5285 fi
5286 ;;
5287 *)
5288 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5289 if test -n "$lt_cv_sys_max_cmd_len"; then
5290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5291 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5292 else
5293 # Make teststring a little bigger before we do anything with it.
5294 # a 1K string should be a reasonable start.
5295 for i in 1 2 3 4 5 6 7 8 ; do
5296 teststring=$teststring$teststring
5297 done
5298 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5299 # If test is not a shell built-in, we'll probably end up computing a
5300 # maximum length that is only half of the actual maximum length, but
5301 # we can't tell.
5302 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5303 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5304 test $i != 17 # 1/2 MB should be enough
5305 do
5306 i=`expr $i + 1`
5307 teststring=$teststring$teststring
5308 done
5309 # Only check the string length outside the loop.
5310 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5311 teststring=
5312 # Add a significant safety factor because C++ compilers can tack on
5313 # massive amounts of additional arguments before passing them to the
5314 # linker. It appears as though 1/2 is a usable value.
5315 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5316 fi
5317 ;;
5318 esac
5319
5320 fi
5321
5322 if test -n $lt_cv_sys_max_cmd_len ; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5324 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5325 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5327 $as_echo "none" >&6; }
5328 fi
5329 max_cmd_len=$lt_cv_sys_max_cmd_len
5330
5331
5332
5333
5334
5335
5336 : ${CP="cp -f"}
5337 : ${MV="mv -f"}
5338 : ${RM="rm -f"}
5339
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5341 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5342 # Try some XSI features
5343 xsi_shell=no
5344 ( _lt_dummy="a/b/c"
5345 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5346 = c,a/b,, \
5347 && eval 'test $(( 1 + 1 )) -eq 2 \
5348 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5349 && xsi_shell=yes
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5351 $as_echo "$xsi_shell" >&6; }
5352
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5355 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5356 lt_shell_append=no
5357 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5358 >/dev/null 2>&1 \
5359 && lt_shell_append=yes
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5361 $as_echo "$lt_shell_append" >&6; }
5362
5363
5364 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5365 lt_unset=unset
5366 else
5367 lt_unset=false
5368 fi
5369
5370
5371
5372
5373
5374 # test EBCDIC or ASCII
5375 case `echo X|tr X '\101'` in
5376 A) # ASCII based system
5377 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5378 lt_SP2NL='tr \040 \012'
5379 lt_NL2SP='tr \015\012 \040\040'
5380 ;;
5381 *) # EBCDIC based system
5382 lt_SP2NL='tr \100 \n'
5383 lt_NL2SP='tr \r\n \100\100'
5384 ;;
5385 esac
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5396 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5397 if ${lt_cv_ld_reload_flag+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 lt_cv_ld_reload_flag='-r'
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5403 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5404 reload_flag=$lt_cv_ld_reload_flag
5405 case $reload_flag in
5406 "" | " "*) ;;
5407 *) reload_flag=" $reload_flag" ;;
5408 esac
5409 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5410 case $host_os in
5411 darwin*)
5412 if test "$GCC" = yes; then
5413 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5414 else
5415 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5416 fi
5417 ;;
5418 esac
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428 if test -n "$ac_tool_prefix"; then
5429 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5430 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if ${ac_cv_prog_OBJDUMP+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 if test -n "$OBJDUMP"; then
5437 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5438 else
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5441 do
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 break 2
5449 fi
5450 done
5451 done
5452 IFS=$as_save_IFS
5453
5454 fi
5455 fi
5456 OBJDUMP=$ac_cv_prog_OBJDUMP
5457 if test -n "$OBJDUMP"; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5459 $as_echo "$OBJDUMP" >&6; }
5460 else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5463 fi
5464
5465
5466 fi
5467 if test -z "$ac_cv_prog_OBJDUMP"; then
5468 ac_ct_OBJDUMP=$OBJDUMP
5469 # Extract the first word of "objdump", so it can be a program name with args.
5470 set dummy objdump; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$ac_ct_OBJDUMP"; then
5477 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5489 fi
5490 done
5491 done
5492 IFS=$as_save_IFS
5493
5494 fi
5495 fi
5496 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5497 if test -n "$ac_ct_OBJDUMP"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5499 $as_echo "$ac_ct_OBJDUMP" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5503 fi
5504
5505 if test "x$ac_ct_OBJDUMP" = x; then
5506 OBJDUMP="false"
5507 else
5508 case $cross_compiling:$ac_tool_warned in
5509 yes:)
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5512 ac_tool_warned=yes ;;
5513 esac
5514 OBJDUMP=$ac_ct_OBJDUMP
5515 fi
5516 else
5517 OBJDUMP="$ac_cv_prog_OBJDUMP"
5518 fi
5519
5520 test -z "$OBJDUMP" && OBJDUMP=objdump
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5531 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5532 if ${lt_cv_deplibs_check_method+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 lt_cv_file_magic_cmd='$MAGIC_CMD'
5536 lt_cv_file_magic_test_file=
5537 lt_cv_deplibs_check_method='unknown'
5538 # Need to set the preceding variable on all platforms that support
5539 # interlibrary dependencies.
5540 # 'none' -- dependencies not supported.
5541 # `unknown' -- same as none, but documents that we really don't know.
5542 # 'pass_all' -- all dependencies passed with no checks.
5543 # 'test_compile' -- check by making test program.
5544 # 'file_magic [[regex]]' -- check by looking for files in library path
5545 # which responds to the $file_magic_cmd with a given extended regex.
5546 # If you have `file' or equivalent on your system and you're not sure
5547 # whether `pass_all' will *always* work, you probably want this one.
5548
5549 case $host_os in
5550 aix[4-9]*)
5551 lt_cv_deplibs_check_method=pass_all
5552 ;;
5553
5554 beos*)
5555 lt_cv_deplibs_check_method=pass_all
5556 ;;
5557
5558 bsdi[45]*)
5559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5560 lt_cv_file_magic_cmd='/usr/bin/file -L'
5561 lt_cv_file_magic_test_file=/shlib/libc.so
5562 ;;
5563
5564 cygwin*)
5565 # func_win32_libid is a shell function defined in ltmain.sh
5566 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5567 lt_cv_file_magic_cmd='func_win32_libid'
5568 ;;
5569
5570 mingw* | pw32*)
5571 # Base MSYS/MinGW do not provide the 'file' command needed by
5572 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5573 # unless we find 'file', for example because we are cross-compiling.
5574 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5575 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5576 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5577 lt_cv_file_magic_cmd='func_win32_libid'
5578 else
5579 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5580 lt_cv_file_magic_cmd='$OBJDUMP -f'
5581 fi
5582 ;;
5583
5584 cegcc*)
5585 # use the weaker test based on 'objdump'. See mingw*.
5586 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5587 lt_cv_file_magic_cmd='$OBJDUMP -f'
5588 ;;
5589
5590 darwin* | rhapsody*)
5591 lt_cv_deplibs_check_method=pass_all
5592 ;;
5593
5594 freebsd* | dragonfly*)
5595 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5596 case $host_cpu in
5597 i*86 )
5598 # Not sure whether the presence of OpenBSD here was a mistake.
5599 # Let's accept both of them until this is cleared up.
5600 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5601 lt_cv_file_magic_cmd=/usr/bin/file
5602 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5603 ;;
5604 esac
5605 else
5606 lt_cv_deplibs_check_method=pass_all
5607 fi
5608 ;;
5609
5610 gnu*)
5611 lt_cv_deplibs_check_method=pass_all
5612 ;;
5613
5614 haiku*)
5615 lt_cv_deplibs_check_method=pass_all
5616 ;;
5617
5618 hpux10.20* | hpux11*)
5619 lt_cv_file_magic_cmd=/usr/bin/file
5620 case $host_cpu in
5621 ia64*)
5622 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5623 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5624 ;;
5625 hppa*64*)
5626 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]'
5627 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5628 ;;
5629 *)
5630 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5631 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5632 ;;
5633 esac
5634 ;;
5635
5636 interix[3-9]*)
5637 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5639 ;;
5640
5641 irix5* | irix6* | nonstopux*)
5642 case $LD in
5643 *-32|*"-32 ") libmagic=32-bit;;
5644 *-n32|*"-n32 ") libmagic=N32;;
5645 *-64|*"-64 ") libmagic=64-bit;;
5646 *) libmagic=never-match;;
5647 esac
5648 lt_cv_deplibs_check_method=pass_all
5649 ;;
5650
5651 # This must be Linux ELF.
5652 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655
5656 netbsd*)
5657 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5658 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5659 else
5660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5661 fi
5662 ;;
5663
5664 newos6*)
5665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5666 lt_cv_file_magic_cmd=/usr/bin/file
5667 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5668 ;;
5669
5670 *nto* | *qnx*)
5671 lt_cv_deplibs_check_method=pass_all
5672 ;;
5673
5674 openbsd*)
5675 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5677 else
5678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5679 fi
5680 ;;
5681
5682 osf3* | osf4* | osf5*)
5683 lt_cv_deplibs_check_method=pass_all
5684 ;;
5685
5686 rdos*)
5687 lt_cv_deplibs_check_method=pass_all
5688 ;;
5689
5690 solaris*)
5691 lt_cv_deplibs_check_method=pass_all
5692 ;;
5693
5694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5695 lt_cv_deplibs_check_method=pass_all
5696 ;;
5697
5698 sysv4 | sysv4.3*)
5699 case $host_vendor in
5700 motorola)
5701 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]'
5702 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5703 ;;
5704 ncr)
5705 lt_cv_deplibs_check_method=pass_all
5706 ;;
5707 sequent)
5708 lt_cv_file_magic_cmd='/bin/file'
5709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5710 ;;
5711 sni)
5712 lt_cv_file_magic_cmd='/bin/file'
5713 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5714 lt_cv_file_magic_test_file=/lib/libc.so
5715 ;;
5716 siemens)
5717 lt_cv_deplibs_check_method=pass_all
5718 ;;
5719 pc)
5720 lt_cv_deplibs_check_method=pass_all
5721 ;;
5722 esac
5723 ;;
5724
5725 tpf*)
5726 lt_cv_deplibs_check_method=pass_all
5727 ;;
5728 esac
5729
5730 fi
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5732 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5733 file_magic_cmd=$lt_cv_file_magic_cmd
5734 deplibs_check_method=$lt_cv_deplibs_check_method
5735 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748 plugin_option=
5749 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5750 for plugin in $plugin_names; do
5751 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5752 if test x$plugin_so = x$plugin; then
5753 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5754 fi
5755 if test x$plugin_so != x$plugin; then
5756 plugin_option="--plugin $plugin_so"
5757 break
5758 fi
5759 done
5760
5761 if test -n "$ac_tool_prefix"; then
5762 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5763 set dummy ${ac_tool_prefix}ar; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if ${ac_cv_prog_AR+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 if test -n "$AR"; then
5770 ac_cv_prog_AR="$AR" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_AR="${ac_tool_prefix}ar"
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5782 fi
5783 done
5784 done
5785 IFS=$as_save_IFS
5786
5787 fi
5788 fi
5789 AR=$ac_cv_prog_AR
5790 if test -n "$AR"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5792 $as_echo "$AR" >&6; }
5793 else
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5796 fi
5797
5798
5799 fi
5800 if test -z "$ac_cv_prog_AR"; then
5801 ac_ct_AR=$AR
5802 # Extract the first word of "ar", so it can be a program name with args.
5803 set dummy ar; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 if test -n "$ac_ct_AR"; then
5810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_ac_ct_AR="ar"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823 done
5824 done
5825 IFS=$as_save_IFS
5826
5827 fi
5828 fi
5829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5830 if test -n "$ac_ct_AR"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5832 $as_echo "$ac_ct_AR" >&6; }
5833 else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5836 fi
5837
5838 if test "x$ac_ct_AR" = x; then
5839 AR="false"
5840 else
5841 case $cross_compiling:$ac_tool_warned in
5842 yes:)
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5845 ac_tool_warned=yes ;;
5846 esac
5847 AR=$ac_ct_AR
5848 fi
5849 else
5850 AR="$ac_cv_prog_AR"
5851 fi
5852
5853 test -z "$AR" && AR=ar
5854 if test -n "$plugin_option"; then
5855 if $AR --help 2>&1 | grep -q "\--plugin"; then
5856 touch conftest.c
5857 $AR $plugin_option rc conftest.a conftest.c
5858 if test "$?" != 0; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5860 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5861 else
5862 AR="$AR $plugin_option"
5863 fi
5864 rm -f conftest.*
5865 fi
5866 fi
5867 test -z "$AR_FLAGS" && AR_FLAGS=cru
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879 if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5881 set dummy ${ac_tool_prefix}strip; ac_word=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if ${ac_cv_prog_STRIP+:} false; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 if test -n "$STRIP"; then
5888 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5889 else
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5892 do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901 done
5902 done
5903 IFS=$as_save_IFS
5904
5905 fi
5906 fi
5907 STRIP=$ac_cv_prog_STRIP
5908 if test -n "$STRIP"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5910 $as_echo "$STRIP" >&6; }
5911 else
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5914 fi
5915
5916
5917 fi
5918 if test -z "$ac_cv_prog_STRIP"; then
5919 ac_ct_STRIP=$STRIP
5920 # Extract the first word of "strip", so it can be a program name with args.
5921 set dummy strip; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if test -n "$ac_ct_STRIP"; then
5928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937 ac_cv_prog_ac_ct_STRIP="strip"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941 done
5942 done
5943 IFS=$as_save_IFS
5944
5945 fi
5946 fi
5947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5948 if test -n "$ac_ct_STRIP"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5950 $as_echo "$ac_ct_STRIP" >&6; }
5951 else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955
5956 if test "x$ac_ct_STRIP" = x; then
5957 STRIP=":"
5958 else
5959 case $cross_compiling:$ac_tool_warned in
5960 yes:)
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned=yes ;;
5964 esac
5965 STRIP=$ac_ct_STRIP
5966 fi
5967 else
5968 STRIP="$ac_cv_prog_STRIP"
5969 fi
5970
5971 test -z "$STRIP" && STRIP=:
5972
5973
5974
5975
5976
5977
5978 if test -n "$ac_tool_prefix"; then
5979 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5980 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 $as_echo_n "checking for $ac_word... " >&6; }
5983 if ${ac_cv_prog_RANLIB+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 if test -n "$RANLIB"; then
5987 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5988 else
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH
5991 do
5992 IFS=$as_save_IFS
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5996 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 break 2
5999 fi
6000 done
6001 done
6002 IFS=$as_save_IFS
6003
6004 fi
6005 fi
6006 RANLIB=$ac_cv_prog_RANLIB
6007 if test -n "$RANLIB"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6009 $as_echo "$RANLIB" >&6; }
6010 else
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6013 fi
6014
6015
6016 fi
6017 if test -z "$ac_cv_prog_RANLIB"; then
6018 ac_ct_RANLIB=$RANLIB
6019 # Extract the first word of "ranlib", so it can be a program name with args.
6020 set dummy ranlib; ac_word=$2
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6022 $as_echo_n "checking for $ac_word... " >&6; }
6023 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 if test -n "$ac_ct_RANLIB"; then
6027 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6028 else
6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 for as_dir in $PATH
6031 do
6032 IFS=$as_save_IFS
6033 test -z "$as_dir" && as_dir=.
6034 for ac_exec_ext in '' $ac_executable_extensions; do
6035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6036 ac_cv_prog_ac_ct_RANLIB="ranlib"
6037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 break 2
6039 fi
6040 done
6041 done
6042 IFS=$as_save_IFS
6043
6044 fi
6045 fi
6046 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6047 if test -n "$ac_ct_RANLIB"; then
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6049 $as_echo "$ac_ct_RANLIB" >&6; }
6050 else
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052 $as_echo "no" >&6; }
6053 fi
6054
6055 if test "x$ac_ct_RANLIB" = x; then
6056 RANLIB=":"
6057 else
6058 case $cross_compiling:$ac_tool_warned in
6059 yes:)
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6062 ac_tool_warned=yes ;;
6063 esac
6064 RANLIB=$ac_ct_RANLIB
6065 fi
6066 else
6067 RANLIB="$ac_cv_prog_RANLIB"
6068 fi
6069
6070 test -z "$RANLIB" && RANLIB=:
6071 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6072 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6073 RANLIB="$RANLIB $plugin_option"
6074 fi
6075 fi
6076
6077
6078
6079
6080
6081
6082 # Determine commands to create old-style static archives.
6083 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6084 old_postinstall_cmds='chmod 644 $oldlib'
6085 old_postuninstall_cmds=
6086
6087 if test -n "$RANLIB"; then
6088 case $host_os in
6089 openbsd*)
6090 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6091 ;;
6092 *)
6093 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6094 ;;
6095 esac
6096 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6097 fi
6098
6099 case $host_os in
6100 darwin*)
6101 lock_old_archive_extraction=yes ;;
6102 *)
6103 lock_old_archive_extraction=no ;;
6104 esac
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144 # If no C compiler was specified, use CC.
6145 LTCC=${LTCC-"$CC"}
6146
6147 # If no C compiler flags were specified, use CFLAGS.
6148 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6149
6150 # Allow CC to be a program name with arguments.
6151 compiler=$CC
6152
6153
6154 # Check for command to grab the raw symbol name followed by C symbol from nm.
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6156 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6157 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160
6161 # These are sane defaults that work on at least a few old systems.
6162 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6163
6164 # Character class describing NM global symbol codes.
6165 symcode='[BCDEGRST]'
6166
6167 # Regexp to match symbols that can be accessed directly from C.
6168 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6169
6170 # Define system-specific variables.
6171 case $host_os in
6172 aix*)
6173 symcode='[BCDT]'
6174 ;;
6175 cygwin* | mingw* | pw32* | cegcc*)
6176 symcode='[ABCDGISTW]'
6177 ;;
6178 hpux*)
6179 if test "$host_cpu" = ia64; then
6180 symcode='[ABCDEGRST]'
6181 fi
6182 ;;
6183 irix* | nonstopux*)
6184 symcode='[BCDEGRST]'
6185 ;;
6186 osf*)
6187 symcode='[BCDEGQRST]'
6188 ;;
6189 solaris*)
6190 symcode='[BCDRT]'
6191 ;;
6192 sco3.2v5*)
6193 symcode='[DT]'
6194 ;;
6195 sysv4.2uw2*)
6196 symcode='[DT]'
6197 ;;
6198 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6199 symcode='[ABDT]'
6200 ;;
6201 sysv4)
6202 symcode='[DFNSTU]'
6203 ;;
6204 esac
6205
6206 # If we're using GNU nm, then use its standard symbol codes.
6207 case `$NM -V 2>&1` in
6208 *GNU* | *'with BFD'*)
6209 symcode='[ABCDGIRSTW]' ;;
6210 esac
6211
6212 # Transform an extracted symbol line into a proper C declaration.
6213 # Some systems (esp. on ia64) link data and code symbols differently,
6214 # so use this general approach.
6215 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6216
6217 # Transform an extracted symbol line into symbol name and symbol address
6218 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6219 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'"
6220
6221 # Handle CRLF in mingw tool chain
6222 opt_cr=
6223 case $build_os in
6224 mingw*)
6225 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6226 ;;
6227 esac
6228
6229 # Try without a prefix underscore, then with it.
6230 for ac_symprfx in "" "_"; do
6231
6232 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6233 symxfrm="\\1 $ac_symprfx\\2 \\2"
6234
6235 # Write the raw and C identifiers.
6236 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6237 # Fake it for dumpbin and say T for any non-static function
6238 # and D for any global variable.
6239 # Also find C++ and __fastcall symbols from MSVC++,
6240 # which start with @ or ?.
6241 lt_cv_sys_global_symbol_pipe="$AWK '"\
6242 " {last_section=section; section=\$ 3};"\
6243 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6244 " \$ 0!~/External *\|/{next};"\
6245 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6246 " {if(hide[section]) next};"\
6247 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6248 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6249 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6250 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6251 " ' prfx=^$ac_symprfx"
6252 else
6253 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6254 fi
6255
6256 # Check to see that the pipe works correctly.
6257 pipe_works=no
6258
6259 rm -f conftest*
6260 cat > conftest.$ac_ext <<_LT_EOF
6261 #ifdef __cplusplus
6262 extern "C" {
6263 #endif
6264 char nm_test_var;
6265 void nm_test_func(void);
6266 void nm_test_func(void){}
6267 #ifdef __cplusplus
6268 }
6269 #endif
6270 int main(){nm_test_var='a';nm_test_func();return(0);}
6271 _LT_EOF
6272
6273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6274 (eval $ac_compile) 2>&5
6275 ac_status=$?
6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277 test $ac_status = 0; }; then
6278 # Now try to grab the symbols.
6279 nlist=conftest.nm
6280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6281 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6282 ac_status=$?
6283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6284 test $ac_status = 0; } && test -s "$nlist"; then
6285 # Try sorting and uniquifying the output.
6286 if sort "$nlist" | uniq > "$nlist"T; then
6287 mv -f "$nlist"T "$nlist"
6288 else
6289 rm -f "$nlist"T
6290 fi
6291
6292 # Make sure that we snagged all the symbols we need.
6293 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6294 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6295 cat <<_LT_EOF > conftest.$ac_ext
6296 #ifdef __cplusplus
6297 extern "C" {
6298 #endif
6299
6300 _LT_EOF
6301 # Now generate the symbol file.
6302 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6303
6304 cat <<_LT_EOF >> conftest.$ac_ext
6305
6306 /* The mapping between symbol names and symbols. */
6307 const struct {
6308 const char *name;
6309 void *address;
6310 }
6311 lt__PROGRAM__LTX_preloaded_symbols[] =
6312 {
6313 { "@PROGRAM@", (void *) 0 },
6314 _LT_EOF
6315 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6316 cat <<\_LT_EOF >> conftest.$ac_ext
6317 {0, (void *) 0}
6318 };
6319
6320 /* This works around a problem in FreeBSD linker */
6321 #ifdef FREEBSD_WORKAROUND
6322 static const void *lt_preloaded_setup() {
6323 return lt__PROGRAM__LTX_preloaded_symbols;
6324 }
6325 #endif
6326
6327 #ifdef __cplusplus
6328 }
6329 #endif
6330 _LT_EOF
6331 # Now try linking the two files.
6332 mv conftest.$ac_objext conftstm.$ac_objext
6333 lt_save_LIBS="$LIBS"
6334 lt_save_CFLAGS="$CFLAGS"
6335 LIBS="conftstm.$ac_objext"
6336 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6338 (eval $ac_link) 2>&5
6339 ac_status=$?
6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6342 pipe_works=yes
6343 fi
6344 LIBS="$lt_save_LIBS"
6345 CFLAGS="$lt_save_CFLAGS"
6346 else
6347 echo "cannot find nm_test_func in $nlist" >&5
6348 fi
6349 else
6350 echo "cannot find nm_test_var in $nlist" >&5
6351 fi
6352 else
6353 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6354 fi
6355 else
6356 echo "$progname: failed program was:" >&5
6357 cat conftest.$ac_ext >&5
6358 fi
6359 rm -rf conftest* conftst*
6360
6361 # Do not use the global_symbol_pipe unless it works.
6362 if test "$pipe_works" = yes; then
6363 break
6364 else
6365 lt_cv_sys_global_symbol_pipe=
6366 fi
6367 done
6368
6369 fi
6370
6371 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6372 lt_cv_sys_global_symbol_to_cdecl=
6373 fi
6374 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6376 $as_echo "failed" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6379 $as_echo "ok" >&6; }
6380 fi
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403 # Check whether --enable-libtool-lock was given.
6404 if test "${enable_libtool_lock+set}" = set; then :
6405 enableval=$enable_libtool_lock;
6406 fi
6407
6408 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6409
6410 # Some flags need to be propagated to the compiler or linker for good
6411 # libtool support.
6412 case $host in
6413 ia64-*-hpux*)
6414 # Find out which ABI we are using.
6415 echo 'int i;' > conftest.$ac_ext
6416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417 (eval $ac_compile) 2>&5
6418 ac_status=$?
6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420 test $ac_status = 0; }; then
6421 case `/usr/bin/file conftest.$ac_objext` in
6422 *ELF-32*)
6423 HPUX_IA64_MODE="32"
6424 ;;
6425 *ELF-64*)
6426 HPUX_IA64_MODE="64"
6427 ;;
6428 esac
6429 fi
6430 rm -rf conftest*
6431 ;;
6432 *-*-irix6*)
6433 # Find out which ABI we are using.
6434 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6436 (eval $ac_compile) 2>&5
6437 ac_status=$?
6438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439 test $ac_status = 0; }; then
6440 if test "$lt_cv_prog_gnu_ld" = yes; then
6441 case `/usr/bin/file conftest.$ac_objext` in
6442 *32-bit*)
6443 LD="${LD-ld} -melf32bsmip"
6444 ;;
6445 *N32*)
6446 LD="${LD-ld} -melf32bmipn32"
6447 ;;
6448 *64-bit*)
6449 LD="${LD-ld} -melf64bmip"
6450 ;;
6451 esac
6452 else
6453 case `/usr/bin/file conftest.$ac_objext` in
6454 *32-bit*)
6455 LD="${LD-ld} -32"
6456 ;;
6457 *N32*)
6458 LD="${LD-ld} -n32"
6459 ;;
6460 *64-bit*)
6461 LD="${LD-ld} -64"
6462 ;;
6463 esac
6464 fi
6465 fi
6466 rm -rf conftest*
6467 ;;
6468
6469 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6470 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6471 # Find out which ABI we are using.
6472 echo 'int i;' > conftest.$ac_ext
6473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6474 (eval $ac_compile) 2>&5
6475 ac_status=$?
6476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6477 test $ac_status = 0; }; then
6478 case `/usr/bin/file conftest.o` in
6479 *32-bit*)
6480 case $host in
6481 x86_64-*kfreebsd*-gnu)
6482 LD="${LD-ld} -m elf_i386_fbsd"
6483 ;;
6484 x86_64-*linux*)
6485 case `/usr/bin/file conftest.o` in
6486 *x86-64*)
6487 LD="${LD-ld} -m elf32_x86_64"
6488 ;;
6489 *)
6490 LD="${LD-ld} -m elf_i386"
6491 ;;
6492 esac
6493 ;;
6494 powerpc64le-*linux*)
6495 LD="${LD-ld} -m elf32lppclinux"
6496 ;;
6497 powerpc64-*linux*)
6498 LD="${LD-ld} -m elf32ppclinux"
6499 ;;
6500 s390x-*linux*)
6501 LD="${LD-ld} -m elf_s390"
6502 ;;
6503 sparc64-*linux*)
6504 LD="${LD-ld} -m elf32_sparc"
6505 ;;
6506 esac
6507 ;;
6508 *64-bit*)
6509 case $host in
6510 x86_64-*kfreebsd*-gnu)
6511 LD="${LD-ld} -m elf_x86_64_fbsd"
6512 ;;
6513 x86_64-*linux*)
6514 LD="${LD-ld} -m elf_x86_64"
6515 ;;
6516 powerpcle-*linux*)
6517 LD="${LD-ld} -m elf64lppc"
6518 ;;
6519 powerpc-*linux*)
6520 LD="${LD-ld} -m elf64ppc"
6521 ;;
6522 s390*-*linux*|s390*-*tpf*)
6523 LD="${LD-ld} -m elf64_s390"
6524 ;;
6525 sparc*-*linux*)
6526 LD="${LD-ld} -m elf64_sparc"
6527 ;;
6528 esac
6529 ;;
6530 esac
6531 fi
6532 rm -rf conftest*
6533 ;;
6534
6535 *-*-sco3.2v5*)
6536 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6537 SAVE_CFLAGS="$CFLAGS"
6538 CFLAGS="$CFLAGS -belf"
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6540 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6541 if ${lt_cv_cc_needs_belf+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 ac_ext=c
6545 ac_cpp='$CPP $CPPFLAGS'
6546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6549
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6552
6553 int
6554 main ()
6555 {
6556
6557 ;
6558 return 0;
6559 }
6560 _ACEOF
6561 if ac_fn_c_try_link "$LINENO"; then :
6562 lt_cv_cc_needs_belf=yes
6563 else
6564 lt_cv_cc_needs_belf=no
6565 fi
6566 rm -f core conftest.err conftest.$ac_objext \
6567 conftest$ac_exeext conftest.$ac_ext
6568 ac_ext=c
6569 ac_cpp='$CPP $CPPFLAGS'
6570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6573
6574 fi
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6576 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6577 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6578 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6579 CFLAGS="$SAVE_CFLAGS"
6580 fi
6581 ;;
6582 sparc*-*solaris*)
6583 # Find out which ABI we are using.
6584 echo 'int i;' > conftest.$ac_ext
6585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6586 (eval $ac_compile) 2>&5
6587 ac_status=$?
6588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6589 test $ac_status = 0; }; then
6590 case `/usr/bin/file conftest.o` in
6591 *64-bit*)
6592 case $lt_cv_prog_gnu_ld in
6593 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6594 *)
6595 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6596 LD="${LD-ld} -64"
6597 fi
6598 ;;
6599 esac
6600 ;;
6601 esac
6602 fi
6603 rm -rf conftest*
6604 ;;
6605 esac
6606
6607 need_locks="$enable_libtool_lock"
6608
6609
6610 case $host_os in
6611 rhapsody* | darwin*)
6612 if test -n "$ac_tool_prefix"; then
6613 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6614 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 if test -n "$DSYMUTIL"; then
6621 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626 IFS=$as_save_IFS
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 break 2
6633 fi
6634 done
6635 done
6636 IFS=$as_save_IFS
6637
6638 fi
6639 fi
6640 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6641 if test -n "$DSYMUTIL"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6643 $as_echo "$DSYMUTIL" >&6; }
6644 else
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6647 fi
6648
6649
6650 fi
6651 if test -z "$ac_cv_prog_DSYMUTIL"; then
6652 ac_ct_DSYMUTIL=$DSYMUTIL
6653 # Extract the first word of "dsymutil", so it can be a program name with args.
6654 set dummy dsymutil; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 if test -n "$ac_ct_DSYMUTIL"; then
6661 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6681 if test -n "$ac_ct_DSYMUTIL"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6683 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6684 else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689 if test "x$ac_ct_DSYMUTIL" = x; then
6690 DSYMUTIL=":"
6691 else
6692 case $cross_compiling:$ac_tool_warned in
6693 yes:)
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696 ac_tool_warned=yes ;;
6697 esac
6698 DSYMUTIL=$ac_ct_DSYMUTIL
6699 fi
6700 else
6701 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6702 fi
6703
6704 if test -n "$ac_tool_prefix"; then
6705 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6706 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_prog_NMEDIT+:} false; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 if test -n "$NMEDIT"; then
6713 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6722 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6725 fi
6726 done
6727 done
6728 IFS=$as_save_IFS
6729
6730 fi
6731 fi
6732 NMEDIT=$ac_cv_prog_NMEDIT
6733 if test -n "$NMEDIT"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6735 $as_echo "$NMEDIT" >&6; }
6736 else
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6739 fi
6740
6741
6742 fi
6743 if test -z "$ac_cv_prog_NMEDIT"; then
6744 ac_ct_NMEDIT=$NMEDIT
6745 # Extract the first word of "nmedit", so it can be a program name with args.
6746 set dummy nmedit; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 if test -n "$ac_ct_NMEDIT"; then
6753 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 break 2
6765 fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770 fi
6771 fi
6772 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6773 if test -n "$ac_ct_NMEDIT"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6775 $as_echo "$ac_ct_NMEDIT" >&6; }
6776 else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6779 fi
6780
6781 if test "x$ac_ct_NMEDIT" = x; then
6782 NMEDIT=":"
6783 else
6784 case $cross_compiling:$ac_tool_warned in
6785 yes:)
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6788 ac_tool_warned=yes ;;
6789 esac
6790 NMEDIT=$ac_ct_NMEDIT
6791 fi
6792 else
6793 NMEDIT="$ac_cv_prog_NMEDIT"
6794 fi
6795
6796 if test -n "$ac_tool_prefix"; then
6797 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6798 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if ${ac_cv_prog_LIPO+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 if test -n "$LIPO"; then
6805 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818 done
6819 done
6820 IFS=$as_save_IFS
6821
6822 fi
6823 fi
6824 LIPO=$ac_cv_prog_LIPO
6825 if test -n "$LIPO"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6827 $as_echo "$LIPO" >&6; }
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6831 fi
6832
6833
6834 fi
6835 if test -z "$ac_cv_prog_LIPO"; then
6836 ac_ct_LIPO=$LIPO
6837 # Extract the first word of "lipo", so it can be a program name with args.
6838 set dummy lipo; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 if test -n "$ac_ct_LIPO"; then
6845 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854 ac_cv_prog_ac_ct_LIPO="lipo"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6857 fi
6858 done
6859 done
6860 IFS=$as_save_IFS
6861
6862 fi
6863 fi
6864 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6865 if test -n "$ac_ct_LIPO"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6867 $as_echo "$ac_ct_LIPO" >&6; }
6868 else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6871 fi
6872
6873 if test "x$ac_ct_LIPO" = x; then
6874 LIPO=":"
6875 else
6876 case $cross_compiling:$ac_tool_warned in
6877 yes:)
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880 ac_tool_warned=yes ;;
6881 esac
6882 LIPO=$ac_ct_LIPO
6883 fi
6884 else
6885 LIPO="$ac_cv_prog_LIPO"
6886 fi
6887
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}otool; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if ${ac_cv_prog_OTOOL+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 if test -n "$OTOOL"; then
6897 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6913
6914 fi
6915 fi
6916 OTOOL=$ac_cv_prog_OTOOL
6917 if test -n "$OTOOL"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6919 $as_echo "$OTOOL" >&6; }
6920 else
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6923 fi
6924
6925
6926 fi
6927 if test -z "$ac_cv_prog_OTOOL"; then
6928 ac_ct_OTOOL=$OTOOL
6929 # Extract the first word of "otool", so it can be a program name with args.
6930 set dummy otool; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 if test -n "$ac_ct_OTOOL"; then
6937 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946 ac_cv_prog_ac_ct_OTOOL="otool"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6949 fi
6950 done
6951 done
6952 IFS=$as_save_IFS
6953
6954 fi
6955 fi
6956 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6957 if test -n "$ac_ct_OTOOL"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6959 $as_echo "$ac_ct_OTOOL" >&6; }
6960 else
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6963 fi
6964
6965 if test "x$ac_ct_OTOOL" = x; then
6966 OTOOL=":"
6967 else
6968 case $cross_compiling:$ac_tool_warned in
6969 yes:)
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972 ac_tool_warned=yes ;;
6973 esac
6974 OTOOL=$ac_ct_OTOOL
6975 fi
6976 else
6977 OTOOL="$ac_cv_prog_OTOOL"
6978 fi
6979
6980 if test -n "$ac_tool_prefix"; then
6981 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6982 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if ${ac_cv_prog_OTOOL64+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 if test -n "$OTOOL64"; then
6989 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6990 else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7001 fi
7002 done
7003 done
7004 IFS=$as_save_IFS
7005
7006 fi
7007 fi
7008 OTOOL64=$ac_cv_prog_OTOOL64
7009 if test -n "$OTOOL64"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7011 $as_echo "$OTOOL64" >&6; }
7012 else
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7015 fi
7016
7017
7018 fi
7019 if test -z "$ac_cv_prog_OTOOL64"; then
7020 ac_ct_OTOOL64=$OTOOL64
7021 # Extract the first word of "otool64", so it can be a program name with args.
7022 set dummy otool64; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 if test -n "$ac_ct_OTOOL64"; then
7029 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038 ac_cv_prog_ac_ct_OTOOL64="otool64"
7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 break 2
7041 fi
7042 done
7043 done
7044 IFS=$as_save_IFS
7045
7046 fi
7047 fi
7048 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7049 if test -n "$ac_ct_OTOOL64"; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7051 $as_echo "$ac_ct_OTOOL64" >&6; }
7052 else
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7055 fi
7056
7057 if test "x$ac_ct_OTOOL64" = x; then
7058 OTOOL64=":"
7059 else
7060 case $cross_compiling:$ac_tool_warned in
7061 yes:)
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7064 ac_tool_warned=yes ;;
7065 esac
7066 OTOOL64=$ac_ct_OTOOL64
7067 fi
7068 else
7069 OTOOL64="$ac_cv_prog_OTOOL64"
7070 fi
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7099 $as_echo_n "checking for -single_module linker flag... " >&6; }
7100 if ${lt_cv_apple_cc_single_mod+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 lt_cv_apple_cc_single_mod=no
7104 if test -z "${LT_MULTI_MODULE}"; then
7105 # By default we will add the -single_module flag. You can override
7106 # by either setting the environment variable LT_MULTI_MODULE
7107 # non-empty at configure time, or by adding -multi_module to the
7108 # link flags.
7109 rm -rf libconftest.dylib*
7110 echo "int foo(void){return 1;}" > conftest.c
7111 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7112 -dynamiclib -Wl,-single_module conftest.c" >&5
7113 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7114 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7115 _lt_result=$?
7116 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7117 lt_cv_apple_cc_single_mod=yes
7118 else
7119 cat conftest.err >&5
7120 fi
7121 rm -rf libconftest.dylib*
7122 rm -f conftest.*
7123 fi
7124 fi
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7126 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7128 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7129 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 lt_cv_ld_exported_symbols_list=no
7133 save_LDFLAGS=$LDFLAGS
7134 echo "_main" > conftest.sym
7135 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138
7139 int
7140 main ()
7141 {
7142
7143 ;
7144 return 0;
7145 }
7146 _ACEOF
7147 if ac_fn_c_try_link "$LINENO"; then :
7148 lt_cv_ld_exported_symbols_list=yes
7149 else
7150 lt_cv_ld_exported_symbols_list=no
7151 fi
7152 rm -f core conftest.err conftest.$ac_objext \
7153 conftest$ac_exeext conftest.$ac_ext
7154 LDFLAGS="$save_LDFLAGS"
7155
7156 fi
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7158 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7160 $as_echo_n "checking for -force_load linker flag... " >&6; }
7161 if ${lt_cv_ld_force_load+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 lt_cv_ld_force_load=no
7165 cat > conftest.c << _LT_EOF
7166 int forced_loaded() { return 2;}
7167 _LT_EOF
7168 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7169 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7170 echo "$AR cru libconftest.a conftest.o" >&5
7171 $AR cru libconftest.a conftest.o 2>&5
7172 cat > conftest.c << _LT_EOF
7173 int main() { return 0;}
7174 _LT_EOF
7175 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7176 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7177 _lt_result=$?
7178 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7179 lt_cv_ld_force_load=yes
7180 else
7181 cat conftest.err >&5
7182 fi
7183 rm -f conftest.err libconftest.a conftest conftest.c
7184 rm -rf conftest.dSYM
7185
7186 fi
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7188 $as_echo "$lt_cv_ld_force_load" >&6; }
7189 case $host_os in
7190 rhapsody* | darwin1.[012])
7191 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7192 darwin1.*)
7193 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7194 darwin*) # darwin 5.x on
7195 # if running on 10.5 or later, the deployment target defaults
7196 # to the OS version, if on x86, and 10.4, the deployment
7197 # target defaults to 10.4. Don't you love it?
7198 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7199 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7200 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7201 10.[012][,.]*)
7202 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7203 10.*)
7204 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7205 esac
7206 ;;
7207 esac
7208 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7209 _lt_dar_single_mod='$single_module'
7210 fi
7211 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7212 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7213 else
7214 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7215 fi
7216 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7217 _lt_dsymutil='~$DSYMUTIL $lib || :'
7218 else
7219 _lt_dsymutil=
7220 fi
7221 ;;
7222 esac
7223
7224 for ac_header in dlfcn.h
7225 do :
7226 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7227 "
7228 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7229 cat >>confdefs.h <<_ACEOF
7230 #define HAVE_DLFCN_H 1
7231 _ACEOF
7232
7233 fi
7234
7235 done
7236
7237
7238
7239
7240
7241 # Set options
7242
7243
7244
7245 enable_dlopen=no
7246
7247
7248 enable_win32_dll=no
7249
7250
7251 # Check whether --enable-shared was given.
7252 if test "${enable_shared+set}" = set; then :
7253 enableval=$enable_shared; p=${PACKAGE-default}
7254 case $enableval in
7255 yes) enable_shared=yes ;;
7256 no) enable_shared=no ;;
7257 *)
7258 enable_shared=no
7259 # Look at the argument we got. We use all the common list separators.
7260 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7261 for pkg in $enableval; do
7262 IFS="$lt_save_ifs"
7263 if test "X$pkg" = "X$p"; then
7264 enable_shared=yes
7265 fi
7266 done
7267 IFS="$lt_save_ifs"
7268 ;;
7269 esac
7270 else
7271 enable_shared=yes
7272 fi
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282 # Check whether --enable-static was given.
7283 if test "${enable_static+set}" = set; then :
7284 enableval=$enable_static; p=${PACKAGE-default}
7285 case $enableval in
7286 yes) enable_static=yes ;;
7287 no) enable_static=no ;;
7288 *)
7289 enable_static=no
7290 # Look at the argument we got. We use all the common list separators.
7291 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7292 for pkg in $enableval; do
7293 IFS="$lt_save_ifs"
7294 if test "X$pkg" = "X$p"; then
7295 enable_static=yes
7296 fi
7297 done
7298 IFS="$lt_save_ifs"
7299 ;;
7300 esac
7301 else
7302 enable_static=yes
7303 fi
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314 # Check whether --with-pic was given.
7315 if test "${with_pic+set}" = set; then :
7316 withval=$with_pic; pic_mode="$withval"
7317 else
7318 pic_mode=default
7319 fi
7320
7321
7322 test -z "$pic_mode" && pic_mode=default
7323
7324
7325
7326
7327
7328
7329
7330 # Check whether --enable-fast-install was given.
7331 if test "${enable_fast_install+set}" = set; then :
7332 enableval=$enable_fast_install; p=${PACKAGE-default}
7333 case $enableval in
7334 yes) enable_fast_install=yes ;;
7335 no) enable_fast_install=no ;;
7336 *)
7337 enable_fast_install=no
7338 # Look at the argument we got. We use all the common list separators.
7339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7340 for pkg in $enableval; do
7341 IFS="$lt_save_ifs"
7342 if test "X$pkg" = "X$p"; then
7343 enable_fast_install=yes
7344 fi
7345 done
7346 IFS="$lt_save_ifs"
7347 ;;
7348 esac
7349 else
7350 enable_fast_install=yes
7351 fi
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363 # This can be used to rebuild libtool when needed
7364 LIBTOOL_DEPS="$ltmain"
7365
7366 # Always use our own libtool.
7367 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394 test -z "$LN_S" && LN_S="ln -s"
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409 if test -n "${ZSH_VERSION+set}" ; then
7410 setopt NO_GLOB_SUBST
7411 fi
7412
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7414 $as_echo_n "checking for objdir... " >&6; }
7415 if ${lt_cv_objdir+:} false; then :
7416 $as_echo_n "(cached) " >&6
7417 else
7418 rm -f .libs 2>/dev/null
7419 mkdir .libs 2>/dev/null
7420 if test -d .libs; then
7421 lt_cv_objdir=.libs
7422 else
7423 # MS-DOS does not allow filenames that begin with a dot.
7424 lt_cv_objdir=_libs
7425 fi
7426 rmdir .libs 2>/dev/null
7427 fi
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7429 $as_echo "$lt_cv_objdir" >&6; }
7430 objdir=$lt_cv_objdir
7431
7432
7433
7434
7435
7436 cat >>confdefs.h <<_ACEOF
7437 #define LT_OBJDIR "$lt_cv_objdir/"
7438 _ACEOF
7439
7440
7441
7442
7443 case $host_os in
7444 aix3*)
7445 # AIX sometimes has problems with the GCC collect2 program. For some
7446 # reason, if we set the COLLECT_NAMES environment variable, the problems
7447 # vanish in a puff of smoke.
7448 if test "X${COLLECT_NAMES+set}" != Xset; then
7449 COLLECT_NAMES=
7450 export COLLECT_NAMES
7451 fi
7452 ;;
7453 esac
7454
7455 # Global variables:
7456 ofile=libtool
7457 can_build_shared=yes
7458
7459 # All known linkers require a `.a' archive for static linking (except MSVC,
7460 # which needs '.lib').
7461 libext=a
7462
7463 with_gnu_ld="$lt_cv_prog_gnu_ld"
7464
7465 old_CC="$CC"
7466 old_CFLAGS="$CFLAGS"
7467
7468 # Set sane defaults for various variables
7469 test -z "$CC" && CC=cc
7470 test -z "$LTCC" && LTCC=$CC
7471 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7472 test -z "$LD" && LD=ld
7473 test -z "$ac_objext" && ac_objext=o
7474
7475 for cc_temp in $compiler""; do
7476 case $cc_temp in
7477 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7478 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7479 \-*) ;;
7480 *) break;;
7481 esac
7482 done
7483 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7484
7485
7486 # Only perform the check for file, if the check method requires it
7487 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7488 case $deplibs_check_method in
7489 file_magic*)
7490 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7492 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7493 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 case $MAGIC_CMD in
7497 [\\/*] | ?:[\\/]*)
7498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7499 ;;
7500 *)
7501 lt_save_MAGIC_CMD="$MAGIC_CMD"
7502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7503 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7504 for ac_dir in $ac_dummy; do
7505 IFS="$lt_save_ifs"
7506 test -z "$ac_dir" && ac_dir=.
7507 if test -f $ac_dir/${ac_tool_prefix}file; then
7508 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7509 if test -n "$file_magic_test_file"; then
7510 case $deplibs_check_method in
7511 "file_magic "*)
7512 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7514 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7515 $EGREP "$file_magic_regex" > /dev/null; then
7516 :
7517 else
7518 cat <<_LT_EOF 1>&2
7519
7520 *** Warning: the command libtool uses to detect shared libraries,
7521 *** $file_magic_cmd, produces output that libtool cannot recognize.
7522 *** The result is that libtool may fail to recognize shared libraries
7523 *** as such. This will affect the creation of libtool libraries that
7524 *** depend on shared libraries, but programs linked with such libtool
7525 *** libraries will work regardless of this problem. Nevertheless, you
7526 *** may want to report the problem to your system manager and/or to
7527 *** bug-libtool@gnu.org
7528
7529 _LT_EOF
7530 fi ;;
7531 esac
7532 fi
7533 break
7534 fi
7535 done
7536 IFS="$lt_save_ifs"
7537 MAGIC_CMD="$lt_save_MAGIC_CMD"
7538 ;;
7539 esac
7540 fi
7541
7542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7543 if test -n "$MAGIC_CMD"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7545 $as_echo "$MAGIC_CMD" >&6; }
7546 else
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550
7551
7552
7553
7554
7555 if test -z "$lt_cv_path_MAGIC_CMD"; then
7556 if test -n "$ac_tool_prefix"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7558 $as_echo_n "checking for file... " >&6; }
7559 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 case $MAGIC_CMD in
7563 [\\/*] | ?:[\\/]*)
7564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7565 ;;
7566 *)
7567 lt_save_MAGIC_CMD="$MAGIC_CMD"
7568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7570 for ac_dir in $ac_dummy; do
7571 IFS="$lt_save_ifs"
7572 test -z "$ac_dir" && ac_dir=.
7573 if test -f $ac_dir/file; then
7574 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7575 if test -n "$file_magic_test_file"; then
7576 case $deplibs_check_method in
7577 "file_magic "*)
7578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7581 $EGREP "$file_magic_regex" > /dev/null; then
7582 :
7583 else
7584 cat <<_LT_EOF 1>&2
7585
7586 *** Warning: the command libtool uses to detect shared libraries,
7587 *** $file_magic_cmd, produces output that libtool cannot recognize.
7588 *** The result is that libtool may fail to recognize shared libraries
7589 *** as such. This will affect the creation of libtool libraries that
7590 *** depend on shared libraries, but programs linked with such libtool
7591 *** libraries will work regardless of this problem. Nevertheless, you
7592 *** may want to report the problem to your system manager and/or to
7593 *** bug-libtool@gnu.org
7594
7595 _LT_EOF
7596 fi ;;
7597 esac
7598 fi
7599 break
7600 fi
7601 done
7602 IFS="$lt_save_ifs"
7603 MAGIC_CMD="$lt_save_MAGIC_CMD"
7604 ;;
7605 esac
7606 fi
7607
7608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7609 if test -n "$MAGIC_CMD"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7611 $as_echo "$MAGIC_CMD" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7615 fi
7616
7617
7618 else
7619 MAGIC_CMD=:
7620 fi
7621 fi
7622
7623 fi
7624 ;;
7625 esac
7626
7627 # Use C for the default configuration in the libtool script
7628
7629 lt_save_CC="$CC"
7630 ac_ext=c
7631 ac_cpp='$CPP $CPPFLAGS'
7632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7635
7636
7637 # Source file extension for C test sources.
7638 ac_ext=c
7639
7640 # Object file extension for compiled C test sources.
7641 objext=o
7642 objext=$objext
7643
7644 # Code to be used in simple compile tests
7645 lt_simple_compile_test_code="int some_variable = 0;"
7646
7647 # Code to be used in simple link tests
7648 lt_simple_link_test_code='int main(){return(0);}'
7649
7650
7651
7652
7653
7654
7655
7656 # If no C compiler was specified, use CC.
7657 LTCC=${LTCC-"$CC"}
7658
7659 # If no C compiler flags were specified, use CFLAGS.
7660 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7661
7662 # Allow CC to be a program name with arguments.
7663 compiler=$CC
7664
7665 # Save the default compiler, since it gets overwritten when the other
7666 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7667 compiler_DEFAULT=$CC
7668
7669 # save warnings/boilerplate of simple test code
7670 ac_outfile=conftest.$ac_objext
7671 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7672 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7673 _lt_compiler_boilerplate=`cat conftest.err`
7674 $RM conftest*
7675
7676 ac_outfile=conftest.$ac_objext
7677 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7678 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7679 _lt_linker_boilerplate=`cat conftest.err`
7680 $RM -r conftest*
7681
7682
7683 ## CAVEAT EMPTOR:
7684 ## There is no encapsulation within the following macros, do not change
7685 ## the running order or otherwise move them around unless you know exactly
7686 ## what you are doing...
7687 if test -n "$compiler"; then
7688
7689 lt_prog_compiler_no_builtin_flag=
7690
7691 if test "$GCC" = yes; then
7692 case $cc_basename in
7693 nvcc*)
7694 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7695 *)
7696 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7697 esac
7698
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7700 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7701 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 lt_cv_prog_compiler_rtti_exceptions=no
7705 ac_outfile=conftest.$ac_objext
7706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7707 lt_compiler_flag="-fno-rtti -fno-exceptions"
7708 # Insert the option either (1) after the last *FLAGS variable, or
7709 # (2) before a word containing "conftest.", or (3) at the end.
7710 # Note that $ac_compile itself does not contain backslashes and begins
7711 # with a dollar sign (not a hyphen), so the echo should work correctly.
7712 # The option is referenced via a variable to avoid confusing sed.
7713 lt_compile=`echo "$ac_compile" | $SED \
7714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7716 -e 's:$: $lt_compiler_flag:'`
7717 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7718 (eval "$lt_compile" 2>conftest.err)
7719 ac_status=$?
7720 cat conftest.err >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 if (exit $ac_status) && test -s "$ac_outfile"; then
7723 # The compiler can only warn and ignore the option if not recognized
7724 # So say no if there are warnings other than the usual output.
7725 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7728 lt_cv_prog_compiler_rtti_exceptions=yes
7729 fi
7730 fi
7731 $RM conftest*
7732
7733 fi
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7735 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7736
7737 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7738 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7739 else
7740 :
7741 fi
7742
7743 fi
7744
7745
7746
7747
7748
7749
7750 lt_prog_compiler_wl=
7751 lt_prog_compiler_pic=
7752 lt_prog_compiler_static=
7753
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7755 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7756
7757 if test "$GCC" = yes; then
7758 lt_prog_compiler_wl='-Wl,'
7759 lt_prog_compiler_static='-static'
7760
7761 case $host_os in
7762 aix*)
7763 # All AIX code is PIC.
7764 if test "$host_cpu" = ia64; then
7765 # AIX 5 now supports IA64 processor
7766 lt_prog_compiler_static='-Bstatic'
7767 fi
7768 lt_prog_compiler_pic='-fPIC'
7769 ;;
7770
7771 amigaos*)
7772 case $host_cpu in
7773 powerpc)
7774 # see comment about AmigaOS4 .so support
7775 lt_prog_compiler_pic='-fPIC'
7776 ;;
7777 m68k)
7778 # FIXME: we need at least 68020 code to build shared libraries, but
7779 # adding the `-m68020' flag to GCC prevents building anything better,
7780 # like `-m68040'.
7781 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7782 ;;
7783 esac
7784 ;;
7785
7786 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7787 # PIC is the default for these OSes.
7788 ;;
7789
7790 mingw* | cygwin* | pw32* | os2* | cegcc*)
7791 # This hack is so that the source file can tell whether it is being
7792 # built for inclusion in a dll (and should export symbols for example).
7793 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7794 # (--disable-auto-import) libraries
7795 lt_prog_compiler_pic='-DDLL_EXPORT'
7796 ;;
7797
7798 darwin* | rhapsody*)
7799 # PIC is the default on this platform
7800 # Common symbols not allowed in MH_DYLIB files
7801 lt_prog_compiler_pic='-fno-common'
7802 ;;
7803
7804 haiku*)
7805 # PIC is the default for Haiku.
7806 # The "-static" flag exists, but is broken.
7807 lt_prog_compiler_static=
7808 ;;
7809
7810 hpux*)
7811 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7812 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7813 # sets the default TLS model and affects inlining.
7814 case $host_cpu in
7815 hppa*64*)
7816 # +Z the default
7817 ;;
7818 *)
7819 lt_prog_compiler_pic='-fPIC'
7820 ;;
7821 esac
7822 ;;
7823
7824 interix[3-9]*)
7825 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7826 # Instead, we relocate shared libraries at runtime.
7827 ;;
7828
7829 msdosdjgpp*)
7830 # Just because we use GCC doesn't mean we suddenly get shared libraries
7831 # on systems that don't support them.
7832 lt_prog_compiler_can_build_shared=no
7833 enable_shared=no
7834 ;;
7835
7836 *nto* | *qnx*)
7837 # QNX uses GNU C++, but need to define -shared option too, otherwise
7838 # it will coredump.
7839 lt_prog_compiler_pic='-fPIC -shared'
7840 ;;
7841
7842 sysv4*MP*)
7843 if test -d /usr/nec; then
7844 lt_prog_compiler_pic=-Kconform_pic
7845 fi
7846 ;;
7847
7848 *)
7849 lt_prog_compiler_pic='-fPIC'
7850 ;;
7851 esac
7852
7853 case $cc_basename in
7854 nvcc*) # Cuda Compiler Driver 2.2
7855 lt_prog_compiler_wl='-Xlinker '
7856 lt_prog_compiler_pic='-Xcompiler -fPIC'
7857 ;;
7858 esac
7859 else
7860 # PORTME Check for flag to pass linker flags through the system compiler.
7861 case $host_os in
7862 aix*)
7863 lt_prog_compiler_wl='-Wl,'
7864 if test "$host_cpu" = ia64; then
7865 # AIX 5 now supports IA64 processor
7866 lt_prog_compiler_static='-Bstatic'
7867 else
7868 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7869 fi
7870 ;;
7871
7872 mingw* | cygwin* | pw32* | os2* | cegcc*)
7873 # This hack is so that the source file can tell whether it is being
7874 # built for inclusion in a dll (and should export symbols for example).
7875 lt_prog_compiler_pic='-DDLL_EXPORT'
7876 ;;
7877
7878 hpux9* | hpux10* | hpux11*)
7879 lt_prog_compiler_wl='-Wl,'
7880 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7881 # not for PA HP-UX.
7882 case $host_cpu in
7883 hppa*64*|ia64*)
7884 # +Z the default
7885 ;;
7886 *)
7887 lt_prog_compiler_pic='+Z'
7888 ;;
7889 esac
7890 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7891 lt_prog_compiler_static='${wl}-a ${wl}archive'
7892 ;;
7893
7894 irix5* | irix6* | nonstopux*)
7895 lt_prog_compiler_wl='-Wl,'
7896 # PIC (with -KPIC) is the default.
7897 lt_prog_compiler_static='-non_shared'
7898 ;;
7899
7900 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7901 case $cc_basename in
7902 # old Intel for x86_64 which still supported -KPIC.
7903 ecc*)
7904 lt_prog_compiler_wl='-Wl,'
7905 lt_prog_compiler_pic='-KPIC'
7906 lt_prog_compiler_static='-static'
7907 ;;
7908 # icc used to be incompatible with GCC.
7909 # ICC 10 doesn't accept -KPIC any more.
7910 icc* | ifort*)
7911 lt_prog_compiler_wl='-Wl,'
7912 lt_prog_compiler_pic='-fPIC'
7913 lt_prog_compiler_static='-static'
7914 ;;
7915 # Lahey Fortran 8.1.
7916 lf95*)
7917 lt_prog_compiler_wl='-Wl,'
7918 lt_prog_compiler_pic='--shared'
7919 lt_prog_compiler_static='--static'
7920 ;;
7921 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7922 # Portland Group compilers (*not* the Pentium gcc compiler,
7923 # which looks to be a dead project)
7924 lt_prog_compiler_wl='-Wl,'
7925 lt_prog_compiler_pic='-fpic'
7926 lt_prog_compiler_static='-Bstatic'
7927 ;;
7928 ccc*)
7929 lt_prog_compiler_wl='-Wl,'
7930 # All Alpha code is PIC.
7931 lt_prog_compiler_static='-non_shared'
7932 ;;
7933 xl* | bgxl* | bgf* | mpixl*)
7934 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7935 lt_prog_compiler_wl='-Wl,'
7936 lt_prog_compiler_pic='-qpic'
7937 lt_prog_compiler_static='-qstaticlink'
7938 ;;
7939 *)
7940 case `$CC -V 2>&1 | sed 5q` in
7941 *Sun\ F* | *Sun*Fortran*)
7942 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7943 lt_prog_compiler_pic='-KPIC'
7944 lt_prog_compiler_static='-Bstatic'
7945 lt_prog_compiler_wl=''
7946 ;;
7947 *Sun\ C*)
7948 # Sun C 5.9
7949 lt_prog_compiler_pic='-KPIC'
7950 lt_prog_compiler_static='-Bstatic'
7951 lt_prog_compiler_wl='-Wl,'
7952 ;;
7953 esac
7954 ;;
7955 esac
7956 ;;
7957
7958 newsos6)
7959 lt_prog_compiler_pic='-KPIC'
7960 lt_prog_compiler_static='-Bstatic'
7961 ;;
7962
7963 *nto* | *qnx*)
7964 # QNX uses GNU C++, but need to define -shared option too, otherwise
7965 # it will coredump.
7966 lt_prog_compiler_pic='-fPIC -shared'
7967 ;;
7968
7969 osf3* | osf4* | osf5*)
7970 lt_prog_compiler_wl='-Wl,'
7971 # All OSF/1 code is PIC.
7972 lt_prog_compiler_static='-non_shared'
7973 ;;
7974
7975 rdos*)
7976 lt_prog_compiler_static='-non_shared'
7977 ;;
7978
7979 solaris*)
7980 lt_prog_compiler_pic='-KPIC'
7981 lt_prog_compiler_static='-Bstatic'
7982 case $cc_basename in
7983 f77* | f90* | f95*)
7984 lt_prog_compiler_wl='-Qoption ld ';;
7985 *)
7986 lt_prog_compiler_wl='-Wl,';;
7987 esac
7988 ;;
7989
7990 sunos4*)
7991 lt_prog_compiler_wl='-Qoption ld '
7992 lt_prog_compiler_pic='-PIC'
7993 lt_prog_compiler_static='-Bstatic'
7994 ;;
7995
7996 sysv4 | sysv4.2uw2* | sysv4.3*)
7997 lt_prog_compiler_wl='-Wl,'
7998 lt_prog_compiler_pic='-KPIC'
7999 lt_prog_compiler_static='-Bstatic'
8000 ;;
8001
8002 sysv4*MP*)
8003 if test -d /usr/nec ;then
8004 lt_prog_compiler_pic='-Kconform_pic'
8005 lt_prog_compiler_static='-Bstatic'
8006 fi
8007 ;;
8008
8009 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8010 lt_prog_compiler_wl='-Wl,'
8011 lt_prog_compiler_pic='-KPIC'
8012 lt_prog_compiler_static='-Bstatic'
8013 ;;
8014
8015 unicos*)
8016 lt_prog_compiler_wl='-Wl,'
8017 lt_prog_compiler_can_build_shared=no
8018 ;;
8019
8020 uts4*)
8021 lt_prog_compiler_pic='-pic'
8022 lt_prog_compiler_static='-Bstatic'
8023 ;;
8024
8025 *)
8026 lt_prog_compiler_can_build_shared=no
8027 ;;
8028 esac
8029 fi
8030
8031 case $host_os in
8032 # For platforms which do not support PIC, -DPIC is meaningless:
8033 *djgpp*)
8034 lt_prog_compiler_pic=
8035 ;;
8036 *)
8037 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8038 ;;
8039 esac
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8041 $as_echo "$lt_prog_compiler_pic" >&6; }
8042
8043
8044
8045
8046
8047
8048 #
8049 # Check to make sure the PIC flag actually works.
8050 #
8051 if test -n "$lt_prog_compiler_pic"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8053 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8054 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 lt_cv_prog_compiler_pic_works=no
8058 ac_outfile=conftest.$ac_objext
8059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8060 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8061 # Insert the option either (1) after the last *FLAGS variable, or
8062 # (2) before a word containing "conftest.", or (3) at the end.
8063 # Note that $ac_compile itself does not contain backslashes and begins
8064 # with a dollar sign (not a hyphen), so the echo should work correctly.
8065 # The option is referenced via a variable to avoid confusing sed.
8066 lt_compile=`echo "$ac_compile" | $SED \
8067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8069 -e 's:$: $lt_compiler_flag:'`
8070 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8071 (eval "$lt_compile" 2>conftest.err)
8072 ac_status=$?
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 if (exit $ac_status) && test -s "$ac_outfile"; then
8076 # The compiler can only warn and ignore the option if not recognized
8077 # So say no if there are warnings other than the usual output.
8078 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8081 lt_cv_prog_compiler_pic_works=yes
8082 fi
8083 fi
8084 $RM conftest*
8085
8086 fi
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8088 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8089
8090 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8091 case $lt_prog_compiler_pic in
8092 "" | " "*) ;;
8093 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8094 esac
8095 else
8096 lt_prog_compiler_pic=
8097 lt_prog_compiler_can_build_shared=no
8098 fi
8099
8100 fi
8101
8102
8103
8104
8105
8106
8107 #
8108 # Check to make sure the static flag actually works.
8109 #
8110 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8112 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8113 if ${lt_cv_prog_compiler_static_works+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 lt_cv_prog_compiler_static_works=no
8117 save_LDFLAGS="$LDFLAGS"
8118 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8119 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8121 # The linker can only warn and ignore the option if not recognized
8122 # So say no if there are warnings
8123 if test -s conftest.err; then
8124 # Append any errors to the config.log.
8125 cat conftest.err 1>&5
8126 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8128 if diff conftest.exp conftest.er2 >/dev/null; then
8129 lt_cv_prog_compiler_static_works=yes
8130 fi
8131 else
8132 lt_cv_prog_compiler_static_works=yes
8133 fi
8134 fi
8135 $RM -r conftest*
8136 LDFLAGS="$save_LDFLAGS"
8137
8138 fi
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8140 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8141
8142 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8143 :
8144 else
8145 lt_prog_compiler_static=
8146 fi
8147
8148
8149
8150
8151
8152
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8155 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8156 if ${lt_cv_prog_compiler_c_o+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 lt_cv_prog_compiler_c_o=no
8160 $RM -r conftest 2>/dev/null
8161 mkdir conftest
8162 cd conftest
8163 mkdir out
8164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8165
8166 lt_compiler_flag="-o out/conftest2.$ac_objext"
8167 # Insert the option either (1) after the last *FLAGS variable, or
8168 # (2) before a word containing "conftest.", or (3) at the end.
8169 # Note that $ac_compile itself does not contain backslashes and begins
8170 # with a dollar sign (not a hyphen), so the echo should work correctly.
8171 lt_compile=`echo "$ac_compile" | $SED \
8172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8174 -e 's:$: $lt_compiler_flag:'`
8175 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8176 (eval "$lt_compile" 2>out/conftest.err)
8177 ac_status=$?
8178 cat out/conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8181 then
8182 # The compiler can only warn and ignore the option if not recognized
8183 # So say no if there are warnings
8184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8187 lt_cv_prog_compiler_c_o=yes
8188 fi
8189 fi
8190 chmod u+w . 2>&5
8191 $RM conftest*
8192 # SGI C++ compiler will create directory out/ii_files/ for
8193 # template instantiation
8194 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8195 $RM out/* && rmdir out
8196 cd ..
8197 $RM -r conftest
8198 $RM conftest*
8199
8200 fi
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8202 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8203
8204
8205
8206
8207
8208
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8210 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8211 if ${lt_cv_prog_compiler_c_o+:} false; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 lt_cv_prog_compiler_c_o=no
8215 $RM -r conftest 2>/dev/null
8216 mkdir conftest
8217 cd conftest
8218 mkdir out
8219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8220
8221 lt_compiler_flag="-o out/conftest2.$ac_objext"
8222 # Insert the option either (1) after the last *FLAGS variable, or
8223 # (2) before a word containing "conftest.", or (3) at the end.
8224 # Note that $ac_compile itself does not contain backslashes and begins
8225 # with a dollar sign (not a hyphen), so the echo should work correctly.
8226 lt_compile=`echo "$ac_compile" | $SED \
8227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8229 -e 's:$: $lt_compiler_flag:'`
8230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8231 (eval "$lt_compile" 2>out/conftest.err)
8232 ac_status=$?
8233 cat out/conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8236 then
8237 # The compiler can only warn and ignore the option if not recognized
8238 # So say no if there are warnings
8239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8242 lt_cv_prog_compiler_c_o=yes
8243 fi
8244 fi
8245 chmod u+w . 2>&5
8246 $RM conftest*
8247 # SGI C++ compiler will create directory out/ii_files/ for
8248 # template instantiation
8249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8250 $RM out/* && rmdir out
8251 cd ..
8252 $RM -r conftest
8253 $RM conftest*
8254
8255 fi
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8257 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8258
8259
8260
8261
8262 hard_links="nottested"
8263 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8264 # do not overwrite the value of need_locks provided by the user
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8266 $as_echo_n "checking if we can lock with hard links... " >&6; }
8267 hard_links=yes
8268 $RM conftest*
8269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8270 touch conftest.a
8271 ln conftest.a conftest.b 2>&5 || hard_links=no
8272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8274 $as_echo "$hard_links" >&6; }
8275 if test "$hard_links" = no; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8277 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8278 need_locks=warn
8279 fi
8280 else
8281 need_locks=no
8282 fi
8283
8284
8285
8286
8287
8288
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8290 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8291
8292 runpath_var=
8293 allow_undefined_flag=
8294 always_export_symbols=no
8295 archive_cmds=
8296 archive_expsym_cmds=
8297 compiler_needs_object=no
8298 enable_shared_with_static_runtimes=no
8299 export_dynamic_flag_spec=
8300 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8301 hardcode_automatic=no
8302 hardcode_direct=no
8303 hardcode_direct_absolute=no
8304 hardcode_libdir_flag_spec=
8305 hardcode_libdir_flag_spec_ld=
8306 hardcode_libdir_separator=
8307 hardcode_minus_L=no
8308 hardcode_shlibpath_var=unsupported
8309 inherit_rpath=no
8310 link_all_deplibs=unknown
8311 module_cmds=
8312 module_expsym_cmds=
8313 old_archive_from_new_cmds=
8314 old_archive_from_expsyms_cmds=
8315 thread_safe_flag_spec=
8316 whole_archive_flag_spec=
8317 # include_expsyms should be a list of space-separated symbols to be *always*
8318 # included in the symbol list
8319 include_expsyms=
8320 # exclude_expsyms can be an extended regexp of symbols to exclude
8321 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8322 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8323 # as well as any symbol that contains `d'.
8324 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8325 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8326 # platforms (ab)use it in PIC code, but their linkers get confused if
8327 # the symbol is explicitly referenced. Since portable code cannot
8328 # rely on this symbol name, it's probably fine to never include it in
8329 # preloaded symbol tables.
8330 # Exclude shared library initialization/finalization symbols.
8331 extract_expsyms_cmds=
8332
8333 case $host_os in
8334 cygwin* | mingw* | pw32* | cegcc*)
8335 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8336 # When not using gcc, we currently assume that we are using
8337 # Microsoft Visual C++.
8338 if test "$GCC" != yes; then
8339 with_gnu_ld=no
8340 fi
8341 ;;
8342 interix*)
8343 # we just hope/assume this is gcc and not c89 (= MSVC++)
8344 with_gnu_ld=yes
8345 ;;
8346 openbsd*)
8347 with_gnu_ld=no
8348 ;;
8349 esac
8350
8351 ld_shlibs=yes
8352
8353 # On some targets, GNU ld is compatible enough with the native linker
8354 # that we're better off using the native interface for both.
8355 lt_use_gnu_ld_interface=no
8356 if test "$with_gnu_ld" = yes; then
8357 case $host_os in
8358 aix*)
8359 # The AIX port of GNU ld has always aspired to compatibility
8360 # with the native linker. However, as the warning in the GNU ld
8361 # block says, versions before 2.19.5* couldn't really create working
8362 # shared libraries, regardless of the interface used.
8363 case `$LD -v 2>&1` in
8364 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8365 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8366 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8367 *)
8368 lt_use_gnu_ld_interface=yes
8369 ;;
8370 esac
8371 ;;
8372 *)
8373 lt_use_gnu_ld_interface=yes
8374 ;;
8375 esac
8376 fi
8377
8378 if test "$lt_use_gnu_ld_interface" = yes; then
8379 # If archive_cmds runs LD, not CC, wlarc should be empty
8380 wlarc='${wl}'
8381
8382 # Set some defaults for GNU ld with shared library support. These
8383 # are reset later if shared libraries are not supported. Putting them
8384 # here allows them to be overridden if necessary.
8385 runpath_var=LD_RUN_PATH
8386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8387 export_dynamic_flag_spec='${wl}--export-dynamic'
8388 # ancient GNU ld didn't support --whole-archive et. al.
8389 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8390 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8391 else
8392 whole_archive_flag_spec=
8393 fi
8394 supports_anon_versioning=no
8395 case `$LD -v 2>&1` in
8396 *GNU\ gold*) supports_anon_versioning=yes ;;
8397 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8398 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8399 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8400 *\ 2.11.*) ;; # other 2.11 versions
8401 *) supports_anon_versioning=yes ;;
8402 esac
8403
8404 # See if GNU ld supports shared libraries.
8405 case $host_os in
8406 aix[3-9]*)
8407 # On AIX/PPC, the GNU linker is very broken
8408 if test "$host_cpu" != ia64; then
8409 ld_shlibs=no
8410 cat <<_LT_EOF 1>&2
8411
8412 *** Warning: the GNU linker, at least up to release 2.19, is reported
8413 *** to be unable to reliably create shared libraries on AIX.
8414 *** Therefore, libtool is disabling shared libraries support. If you
8415 *** really care for shared libraries, you may want to install binutils
8416 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8417 *** You will then need to restart the configuration process.
8418
8419 _LT_EOF
8420 fi
8421 ;;
8422
8423 amigaos*)
8424 case $host_cpu in
8425 powerpc)
8426 # see comment about AmigaOS4 .so support
8427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8428 archive_expsym_cmds=''
8429 ;;
8430 m68k)
8431 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)'
8432 hardcode_libdir_flag_spec='-L$libdir'
8433 hardcode_minus_L=yes
8434 ;;
8435 esac
8436 ;;
8437
8438 beos*)
8439 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8440 allow_undefined_flag=unsupported
8441 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8442 # support --undefined. This deserves some investigation. FIXME
8443 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8444 else
8445 ld_shlibs=no
8446 fi
8447 ;;
8448
8449 cygwin* | mingw* | pw32* | cegcc*)
8450 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8451 # as there is no search path for DLLs.
8452 hardcode_libdir_flag_spec='-L$libdir'
8453 export_dynamic_flag_spec='${wl}--export-all-symbols'
8454 allow_undefined_flag=unsupported
8455 always_export_symbols=no
8456 enable_shared_with_static_runtimes=yes
8457 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8458
8459 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8461 # If the export-symbols file already is a .def file (1st line
8462 # is EXPORTS), use it as is; otherwise, prepend...
8463 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8464 cp $export_symbols $output_objdir/$soname.def;
8465 else
8466 echo EXPORTS > $output_objdir/$soname.def;
8467 cat $export_symbols >> $output_objdir/$soname.def;
8468 fi~
8469 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8470 else
8471 ld_shlibs=no
8472 fi
8473 ;;
8474
8475 haiku*)
8476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8477 link_all_deplibs=yes
8478 ;;
8479
8480 interix[3-9]*)
8481 hardcode_direct=no
8482 hardcode_shlibpath_var=no
8483 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8484 export_dynamic_flag_spec='${wl}-E'
8485 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8486 # Instead, shared libraries are loaded at an image base (0x10000000 by
8487 # default) and relocated if they conflict, which is a slow very memory
8488 # consuming and fragmenting process. To avoid this, we pick a random,
8489 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8490 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8491 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8492 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'
8493 ;;
8494
8495 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8496 tmp_diet=no
8497 if test "$host_os" = linux-dietlibc; then
8498 case $cc_basename in
8499 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8500 esac
8501 fi
8502 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8503 && test "$tmp_diet" = no
8504 then
8505 tmp_addflag=' $pic_flag'
8506 tmp_sharedflag='-shared'
8507 case $cc_basename,$host_cpu in
8508 pgcc*) # Portland Group C compiler
8509 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'
8510 tmp_addflag=' $pic_flag'
8511 ;;
8512 pgf77* | pgf90* | pgf95* | pgfortran*)
8513 # Portland Group f77 and f90 compilers
8514 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'
8515 tmp_addflag=' $pic_flag -Mnomain' ;;
8516 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8517 tmp_addflag=' -i_dynamic' ;;
8518 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8519 tmp_addflag=' -i_dynamic -nofor_main' ;;
8520 ifc* | ifort*) # Intel Fortran compiler
8521 tmp_addflag=' -nofor_main' ;;
8522 lf95*) # Lahey Fortran 8.1
8523 whole_archive_flag_spec=
8524 tmp_sharedflag='--shared' ;;
8525 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8526 tmp_sharedflag='-qmkshrobj'
8527 tmp_addflag= ;;
8528 nvcc*) # Cuda Compiler Driver 2.2
8529 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'
8530 compiler_needs_object=yes
8531 ;;
8532 esac
8533 case `$CC -V 2>&1 | sed 5q` in
8534 *Sun\ C*) # Sun C 5.9
8535 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'
8536 compiler_needs_object=yes
8537 tmp_sharedflag='-G' ;;
8538 *Sun\ F*) # Sun Fortran 8.3
8539 tmp_sharedflag='-G' ;;
8540 esac
8541 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8542
8543 if test "x$supports_anon_versioning" = xyes; then
8544 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8545 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8546 echo "local: *; };" >> $output_objdir/$libname.ver~
8547 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8548 fi
8549
8550 case $cc_basename in
8551 xlf* | bgf* | bgxlf* | mpixlf*)
8552 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8553 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8554 hardcode_libdir_flag_spec=
8555 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8556 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8557 if test "x$supports_anon_versioning" = xyes; then
8558 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8559 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8560 echo "local: *; };" >> $output_objdir/$libname.ver~
8561 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8562 fi
8563 ;;
8564 esac
8565 else
8566 ld_shlibs=no
8567 fi
8568 ;;
8569
8570 netbsd*)
8571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8572 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8573 wlarc=
8574 else
8575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8577 fi
8578 ;;
8579
8580 solaris*)
8581 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8582 ld_shlibs=no
8583 cat <<_LT_EOF 1>&2
8584
8585 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8586 *** create shared libraries on Solaris systems. Therefore, libtool
8587 *** is disabling shared libraries support. We urge you to upgrade GNU
8588 *** binutils to release 2.9.1 or newer. Another option is to modify
8589 *** your PATH or compiler configuration so that the native linker is
8590 *** used, and then restart.
8591
8592 _LT_EOF
8593 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8596 else
8597 ld_shlibs=no
8598 fi
8599 ;;
8600
8601 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8602 case `$LD -v 2>&1` in
8603 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8604 ld_shlibs=no
8605 cat <<_LT_EOF 1>&2
8606
8607 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8608 *** reliably create shared libraries on SCO systems. Therefore, libtool
8609 *** is disabling shared libraries support. We urge you to upgrade GNU
8610 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8611 *** your PATH or compiler configuration so that the native linker is
8612 *** used, and then restart.
8613
8614 _LT_EOF
8615 ;;
8616 *)
8617 # For security reasons, it is highly recommended that you always
8618 # use absolute paths for naming shared libraries, and exclude the
8619 # DT_RUNPATH tag from executables and libraries. But doing so
8620 # requires that you compile everything twice, which is a pain.
8621 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8624 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8625 else
8626 ld_shlibs=no
8627 fi
8628 ;;
8629 esac
8630 ;;
8631
8632 sunos4*)
8633 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8634 wlarc=
8635 hardcode_direct=yes
8636 hardcode_shlibpath_var=no
8637 ;;
8638
8639 *)
8640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8643 else
8644 ld_shlibs=no
8645 fi
8646 ;;
8647 esac
8648
8649 if test "$ld_shlibs" = no; then
8650 runpath_var=
8651 hardcode_libdir_flag_spec=
8652 export_dynamic_flag_spec=
8653 whole_archive_flag_spec=
8654 fi
8655 else
8656 # PORTME fill in a description of your system's linker (not GNU ld)
8657 case $host_os in
8658 aix3*)
8659 allow_undefined_flag=unsupported
8660 always_export_symbols=yes
8661 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'
8662 # Note: this linker hardcodes the directories in LIBPATH if there
8663 # are no directories specified by -L.
8664 hardcode_minus_L=yes
8665 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8666 # Neither direct hardcoding nor static linking is supported with a
8667 # broken collect2.
8668 hardcode_direct=unsupported
8669 fi
8670 ;;
8671
8672 aix[4-9]*)
8673 if test "$host_cpu" = ia64; then
8674 # On IA64, the linker does run time linking by default, so we don't
8675 # have to do anything special.
8676 aix_use_runtimelinking=no
8677 exp_sym_flag='-Bexport'
8678 no_entry_flag=""
8679 else
8680 # If we're using GNU nm, then we don't want the "-C" option.
8681 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8682 # Also, AIX nm treats weak defined symbols like other global
8683 # defined symbols, whereas GNU nm marks them as "W".
8684 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8685 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'
8686 else
8687 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'
8688 fi
8689 aix_use_runtimelinking=no
8690
8691 # Test if we are trying to use run time linking or normal
8692 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8693 # need to do runtime linking.
8694 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8695 for ld_flag in $LDFLAGS; do
8696 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8697 aix_use_runtimelinking=yes
8698 break
8699 fi
8700 done
8701 ;;
8702 esac
8703
8704 exp_sym_flag='-bexport'
8705 no_entry_flag='-bnoentry'
8706 fi
8707
8708 # When large executables or shared objects are built, AIX ld can
8709 # have problems creating the table of contents. If linking a library
8710 # or program results in "error TOC overflow" add -mminimal-toc to
8711 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8712 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8713
8714 archive_cmds=''
8715 hardcode_direct=yes
8716 hardcode_direct_absolute=yes
8717 hardcode_libdir_separator=':'
8718 link_all_deplibs=yes
8719 file_list_spec='${wl}-f,'
8720
8721 if test "$GCC" = yes; then
8722 case $host_os in aix4.[012]|aix4.[012].*)
8723 # We only want to do this on AIX 4.2 and lower, the check
8724 # below for broken collect2 doesn't work under 4.3+
8725 collect2name=`${CC} -print-prog-name=collect2`
8726 if test -f "$collect2name" &&
8727 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8728 then
8729 # We have reworked collect2
8730 :
8731 else
8732 # We have old collect2
8733 hardcode_direct=unsupported
8734 # It fails to find uninstalled libraries when the uninstalled
8735 # path is not listed in the libpath. Setting hardcode_minus_L
8736 # to unsupported forces relinking
8737 hardcode_minus_L=yes
8738 hardcode_libdir_flag_spec='-L$libdir'
8739 hardcode_libdir_separator=
8740 fi
8741 ;;
8742 esac
8743 shared_flag='-shared'
8744 if test "$aix_use_runtimelinking" = yes; then
8745 shared_flag="$shared_flag "'${wl}-G'
8746 fi
8747 else
8748 # not using gcc
8749 if test "$host_cpu" = ia64; then
8750 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8751 # chokes on -Wl,-G. The following line is correct:
8752 shared_flag='-G'
8753 else
8754 if test "$aix_use_runtimelinking" = yes; then
8755 shared_flag='${wl}-G'
8756 else
8757 shared_flag='${wl}-bM:SRE'
8758 fi
8759 fi
8760 fi
8761
8762 export_dynamic_flag_spec='${wl}-bexpall'
8763 # It seems that -bexpall does not export symbols beginning with
8764 # underscore (_), so it is better to generate a list of symbols to export.
8765 always_export_symbols=yes
8766 if test "$aix_use_runtimelinking" = yes; then
8767 # Warning - without using the other runtime loading flags (-brtl),
8768 # -berok will link without error, but may produce a broken library.
8769 allow_undefined_flag='-berok'
8770 # Determine the default libpath from the value encoded in an
8771 # empty executable.
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h. */
8774
8775 int
8776 main ()
8777 {
8778
8779 ;
8780 return 0;
8781 }
8782 _ACEOF
8783 if ac_fn_c_try_link "$LINENO"; then :
8784
8785 lt_aix_libpath_sed='
8786 /Import File Strings/,/^$/ {
8787 /^0/ {
8788 s/^0 *\(.*\)$/\1/
8789 p
8790 }
8791 }'
8792 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8793 # Check for a 64-bit object if we didn't find anything.
8794 if test -z "$aix_libpath"; then
8795 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8796 fi
8797 fi
8798 rm -f core conftest.err conftest.$ac_objext \
8799 conftest$ac_exeext conftest.$ac_ext
8800 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8801
8802 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8803 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"
8804 else
8805 if test "$host_cpu" = ia64; then
8806 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8807 allow_undefined_flag="-z nodefs"
8808 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"
8809 else
8810 # Determine the default libpath from the value encoded in an
8811 # empty executable.
8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813 /* end confdefs.h. */
8814
8815 int
8816 main ()
8817 {
8818
8819 ;
8820 return 0;
8821 }
8822 _ACEOF
8823 if ac_fn_c_try_link "$LINENO"; then :
8824
8825 lt_aix_libpath_sed='
8826 /Import File Strings/,/^$/ {
8827 /^0/ {
8828 s/^0 *\(.*\)$/\1/
8829 p
8830 }
8831 }'
8832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8833 # Check for a 64-bit object if we didn't find anything.
8834 if test -z "$aix_libpath"; then
8835 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8836 fi
8837 fi
8838 rm -f core conftest.err conftest.$ac_objext \
8839 conftest$ac_exeext conftest.$ac_ext
8840 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8841
8842 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8843 # Warning - without using the other run time loading flags,
8844 # -berok will link without error, but may produce a broken library.
8845 no_undefined_flag=' ${wl}-bernotok'
8846 allow_undefined_flag=' ${wl}-berok'
8847 if test "$with_gnu_ld" = yes; then
8848 # We only use this code for GNU lds that support --whole-archive.
8849 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8850 else
8851 # Exported symbols can be pulled into shared objects from archives
8852 whole_archive_flag_spec='$convenience'
8853 fi
8854 archive_cmds_need_lc=yes
8855 # This is similar to how AIX traditionally builds its shared libraries.
8856 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'
8857 fi
8858 fi
8859 ;;
8860
8861 amigaos*)
8862 case $host_cpu in
8863 powerpc)
8864 # see comment about AmigaOS4 .so support
8865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8866 archive_expsym_cmds=''
8867 ;;
8868 m68k)
8869 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)'
8870 hardcode_libdir_flag_spec='-L$libdir'
8871 hardcode_minus_L=yes
8872 ;;
8873 esac
8874 ;;
8875
8876 bsdi[45]*)
8877 export_dynamic_flag_spec=-rdynamic
8878 ;;
8879
8880 cygwin* | mingw* | pw32* | cegcc*)
8881 # When not using gcc, we currently assume that we are using
8882 # Microsoft Visual C++.
8883 # hardcode_libdir_flag_spec is actually meaningless, as there is
8884 # no search path for DLLs.
8885 hardcode_libdir_flag_spec=' '
8886 allow_undefined_flag=unsupported
8887 # Tell ltmain to make .lib files, not .a files.
8888 libext=lib
8889 # Tell ltmain to make .dll files, not .so files.
8890 shrext_cmds=".dll"
8891 # FIXME: Setting linknames here is a bad hack.
8892 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8893 # The linker will automatically build a .lib file if we build a DLL.
8894 old_archive_from_new_cmds='true'
8895 # FIXME: Should let the user specify the lib program.
8896 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8897 fix_srcfile_path='`cygpath -w "$srcfile"`'
8898 enable_shared_with_static_runtimes=yes
8899 ;;
8900
8901 darwin* | rhapsody*)
8902
8903
8904 archive_cmds_need_lc=no
8905 hardcode_direct=no
8906 hardcode_automatic=yes
8907 hardcode_shlibpath_var=unsupported
8908 if test "$lt_cv_ld_force_load" = "yes"; then
8909 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\"`'
8910 else
8911 whole_archive_flag_spec=''
8912 fi
8913 link_all_deplibs=yes
8914 allow_undefined_flag="$_lt_dar_allow_undefined"
8915 case $cc_basename in
8916 ifort*) _lt_dar_can_shared=yes ;;
8917 *) _lt_dar_can_shared=$GCC ;;
8918 esac
8919 if test "$_lt_dar_can_shared" = "yes"; then
8920 output_verbose_link_cmd=func_echo_all
8921 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8922 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8923 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}"
8924 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}"
8925
8926 else
8927 ld_shlibs=no
8928 fi
8929
8930 ;;
8931
8932 dgux*)
8933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934 hardcode_libdir_flag_spec='-L$libdir'
8935 hardcode_shlibpath_var=no
8936 ;;
8937
8938 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8939 # support. Future versions do this automatically, but an explicit c++rt0.o
8940 # does not break anything, and helps significantly (at the cost of a little
8941 # extra space).
8942 freebsd2.2*)
8943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8944 hardcode_libdir_flag_spec='-R$libdir'
8945 hardcode_direct=yes
8946 hardcode_shlibpath_var=no
8947 ;;
8948
8949 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8950 freebsd2.*)
8951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8952 hardcode_direct=yes
8953 hardcode_minus_L=yes
8954 hardcode_shlibpath_var=no
8955 ;;
8956
8957 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8958 freebsd* | dragonfly*)
8959 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8960 hardcode_libdir_flag_spec='-R$libdir'
8961 hardcode_direct=yes
8962 hardcode_shlibpath_var=no
8963 ;;
8964
8965 hpux9*)
8966 if test "$GCC" = yes; then
8967 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'
8968 else
8969 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'
8970 fi
8971 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8972 hardcode_libdir_separator=:
8973 hardcode_direct=yes
8974
8975 # hardcode_minus_L: Not really in the search PATH,
8976 # but as the default location of the library.
8977 hardcode_minus_L=yes
8978 export_dynamic_flag_spec='${wl}-E'
8979 ;;
8980
8981 hpux10*)
8982 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8983 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8984 else
8985 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8986 fi
8987 if test "$with_gnu_ld" = no; then
8988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8989 hardcode_libdir_flag_spec_ld='+b $libdir'
8990 hardcode_libdir_separator=:
8991 hardcode_direct=yes
8992 hardcode_direct_absolute=yes
8993 export_dynamic_flag_spec='${wl}-E'
8994 # hardcode_minus_L: Not really in the search PATH,
8995 # but as the default location of the library.
8996 hardcode_minus_L=yes
8997 fi
8998 ;;
8999
9000 hpux11*)
9001 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9002 case $host_cpu in
9003 hppa*64*)
9004 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9005 ;;
9006 ia64*)
9007 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9008 ;;
9009 *)
9010 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9011 ;;
9012 esac
9013 else
9014 case $host_cpu in
9015 hppa*64*)
9016 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9017 ;;
9018 ia64*)
9019 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9020 ;;
9021 *)
9022
9023 # Older versions of the 11.00 compiler do not understand -b yet
9024 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9026 $as_echo_n "checking if $CC understands -b... " >&6; }
9027 if ${lt_cv_prog_compiler__b+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 lt_cv_prog_compiler__b=no
9031 save_LDFLAGS="$LDFLAGS"
9032 LDFLAGS="$LDFLAGS -b"
9033 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9034 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9035 # The linker can only warn and ignore the option if not recognized
9036 # So say no if there are warnings
9037 if test -s conftest.err; then
9038 # Append any errors to the config.log.
9039 cat conftest.err 1>&5
9040 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9042 if diff conftest.exp conftest.er2 >/dev/null; then
9043 lt_cv_prog_compiler__b=yes
9044 fi
9045 else
9046 lt_cv_prog_compiler__b=yes
9047 fi
9048 fi
9049 $RM -r conftest*
9050 LDFLAGS="$save_LDFLAGS"
9051
9052 fi
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9054 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9055
9056 if test x"$lt_cv_prog_compiler__b" = xyes; then
9057 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9058 else
9059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9060 fi
9061
9062 ;;
9063 esac
9064 fi
9065 if test "$with_gnu_ld" = no; then
9066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9067 hardcode_libdir_separator=:
9068
9069 case $host_cpu in
9070 hppa*64*|ia64*)
9071 hardcode_direct=no
9072 hardcode_shlibpath_var=no
9073 ;;
9074 *)
9075 hardcode_direct=yes
9076 hardcode_direct_absolute=yes
9077 export_dynamic_flag_spec='${wl}-E'
9078
9079 # hardcode_minus_L: Not really in the search PATH,
9080 # but as the default location of the library.
9081 hardcode_minus_L=yes
9082 ;;
9083 esac
9084 fi
9085 ;;
9086
9087 irix5* | irix6* | nonstopux*)
9088 if test "$GCC" = yes; then
9089 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'
9090 # Try to use the -exported_symbol ld option, if it does not
9091 # work, assume that -exports_file does not work either and
9092 # implicitly export all symbols.
9093 save_LDFLAGS="$LDFLAGS"
9094 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9097 int foo(void) {}
9098 _ACEOF
9099 if ac_fn_c_try_link "$LINENO"; then :
9100 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'
9101
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext \
9104 conftest$ac_exeext conftest.$ac_ext
9105 LDFLAGS="$save_LDFLAGS"
9106 else
9107 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'
9108 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'
9109 fi
9110 archive_cmds_need_lc='no'
9111 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9112 hardcode_libdir_separator=:
9113 inherit_rpath=yes
9114 link_all_deplibs=yes
9115 ;;
9116
9117 netbsd*)
9118 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9120 else
9121 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9122 fi
9123 hardcode_libdir_flag_spec='-R$libdir'
9124 hardcode_direct=yes
9125 hardcode_shlibpath_var=no
9126 ;;
9127
9128 newsos6)
9129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9130 hardcode_direct=yes
9131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9132 hardcode_libdir_separator=:
9133 hardcode_shlibpath_var=no
9134 ;;
9135
9136 *nto* | *qnx*)
9137 ;;
9138
9139 openbsd*)
9140 if test -f /usr/libexec/ld.so; then
9141 hardcode_direct=yes
9142 hardcode_shlibpath_var=no
9143 hardcode_direct_absolute=yes
9144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9145 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9146 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9147 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9148 export_dynamic_flag_spec='${wl}-E'
9149 else
9150 case $host_os in
9151 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9153 hardcode_libdir_flag_spec='-R$libdir'
9154 ;;
9155 *)
9156 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9157 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9158 ;;
9159 esac
9160 fi
9161 else
9162 ld_shlibs=no
9163 fi
9164 ;;
9165
9166 os2*)
9167 hardcode_libdir_flag_spec='-L$libdir'
9168 hardcode_minus_L=yes
9169 allow_undefined_flag=unsupported
9170 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'
9171 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9172 ;;
9173
9174 osf3*)
9175 if test "$GCC" = yes; then
9176 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9177 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'
9178 else
9179 allow_undefined_flag=' -expect_unresolved \*'
9180 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'
9181 fi
9182 archive_cmds_need_lc='no'
9183 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9184 hardcode_libdir_separator=:
9185 ;;
9186
9187 osf4* | osf5*) # as osf3* with the addition of -msym flag
9188 if test "$GCC" = yes; then
9189 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9190 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'
9191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9192 else
9193 allow_undefined_flag=' -expect_unresolved \*'
9194 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'
9195 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~
9196 $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'
9197
9198 # Both c and cxx compiler support -rpath directly
9199 hardcode_libdir_flag_spec='-rpath $libdir'
9200 fi
9201 archive_cmds_need_lc='no'
9202 hardcode_libdir_separator=:
9203 ;;
9204
9205 solaris*)
9206 no_undefined_flag=' -z defs'
9207 if test "$GCC" = yes; then
9208 wlarc='${wl}'
9209 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9210 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9211 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9212 else
9213 case `$CC -V 2>&1` in
9214 *"Compilers 5.0"*)
9215 wlarc=''
9216 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9218 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9219 ;;
9220 *)
9221 wlarc='${wl}'
9222 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9223 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9224 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9225 ;;
9226 esac
9227 fi
9228 hardcode_libdir_flag_spec='-R$libdir'
9229 hardcode_shlibpath_var=no
9230 case $host_os in
9231 solaris2.[0-5] | solaris2.[0-5].*) ;;
9232 *)
9233 # The compiler driver will combine and reorder linker options,
9234 # but understands `-z linker_flag'. GCC discards it without `$wl',
9235 # but is careful enough not to reorder.
9236 # Supported since Solaris 2.6 (maybe 2.5.1?)
9237 if test "$GCC" = yes; then
9238 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9239 else
9240 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9241 fi
9242 ;;
9243 esac
9244 link_all_deplibs=yes
9245 ;;
9246
9247 sunos4*)
9248 if test "x$host_vendor" = xsequent; then
9249 # Use $CC to link under sequent, because it throws in some extra .o
9250 # files that make .init and .fini sections work.
9251 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9252 else
9253 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9254 fi
9255 hardcode_libdir_flag_spec='-L$libdir'
9256 hardcode_direct=yes
9257 hardcode_minus_L=yes
9258 hardcode_shlibpath_var=no
9259 ;;
9260
9261 sysv4)
9262 case $host_vendor in
9263 sni)
9264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9265 hardcode_direct=yes # is this really true???
9266 ;;
9267 siemens)
9268 ## LD is ld it makes a PLAMLIB
9269 ## CC just makes a GrossModule.
9270 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9271 reload_cmds='$CC -r -o $output$reload_objs'
9272 hardcode_direct=no
9273 ;;
9274 motorola)
9275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9276 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9277 ;;
9278 esac
9279 runpath_var='LD_RUN_PATH'
9280 hardcode_shlibpath_var=no
9281 ;;
9282
9283 sysv4.3*)
9284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9285 hardcode_shlibpath_var=no
9286 export_dynamic_flag_spec='-Bexport'
9287 ;;
9288
9289 sysv4*MP*)
9290 if test -d /usr/nec; then
9291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9292 hardcode_shlibpath_var=no
9293 runpath_var=LD_RUN_PATH
9294 hardcode_runpath_var=yes
9295 ld_shlibs=yes
9296 fi
9297 ;;
9298
9299 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9300 no_undefined_flag='${wl}-z,text'
9301 archive_cmds_need_lc=no
9302 hardcode_shlibpath_var=no
9303 runpath_var='LD_RUN_PATH'
9304
9305 if test "$GCC" = yes; then
9306 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9307 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9308 else
9309 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9310 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9311 fi
9312 ;;
9313
9314 sysv5* | sco3.2v5* | sco5v6*)
9315 # Note: We can NOT use -z defs as we might desire, because we do not
9316 # link with -lc, and that would cause any symbols used from libc to
9317 # always be unresolved, which means just about no library would
9318 # ever link correctly. If we're not using GNU ld we use -z text
9319 # though, which does catch some bad symbols but isn't as heavy-handed
9320 # as -z defs.
9321 no_undefined_flag='${wl}-z,text'
9322 allow_undefined_flag='${wl}-z,nodefs'
9323 archive_cmds_need_lc=no
9324 hardcode_shlibpath_var=no
9325 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9326 hardcode_libdir_separator=':'
9327 link_all_deplibs=yes
9328 export_dynamic_flag_spec='${wl}-Bexport'
9329 runpath_var='LD_RUN_PATH'
9330
9331 if test "$GCC" = yes; then
9332 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9333 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9334 else
9335 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9336 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9337 fi
9338 ;;
9339
9340 uts4*)
9341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342 hardcode_libdir_flag_spec='-L$libdir'
9343 hardcode_shlibpath_var=no
9344 ;;
9345
9346 *)
9347 ld_shlibs=no
9348 ;;
9349 esac
9350
9351 if test x$host_vendor = xsni; then
9352 case $host in
9353 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9354 export_dynamic_flag_spec='${wl}-Blargedynsym'
9355 ;;
9356 esac
9357 fi
9358 fi
9359
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9361 $as_echo "$ld_shlibs" >&6; }
9362 test "$ld_shlibs" = no && can_build_shared=no
9363
9364 with_gnu_ld=$with_gnu_ld
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380 #
9381 # Do we need to explicitly link libc?
9382 #
9383 case "x$archive_cmds_need_lc" in
9384 x|xyes)
9385 # Assume -lc should be added
9386 archive_cmds_need_lc=yes
9387
9388 if test "$enable_shared" = yes && test "$GCC" = yes; then
9389 case $archive_cmds in
9390 *'~'*)
9391 # FIXME: we may have to deal with multi-command sequences.
9392 ;;
9393 '$CC '*)
9394 # Test whether the compiler implicitly links with -lc since on some
9395 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9396 # to ld, don't add -lc before -lgcc.
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9398 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9399 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9400 $as_echo_n "(cached) " >&6
9401 else
9402 $RM conftest*
9403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9404
9405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9406 (eval $ac_compile) 2>&5
9407 ac_status=$?
9408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9409 test $ac_status = 0; } 2>conftest.err; then
9410 soname=conftest
9411 lib=conftest
9412 libobjs=conftest.$ac_objext
9413 deplibs=
9414 wl=$lt_prog_compiler_wl
9415 pic_flag=$lt_prog_compiler_pic
9416 compiler_flags=-v
9417 linker_flags=-v
9418 verstring=
9419 output_objdir=.
9420 libname=conftest
9421 lt_save_allow_undefined_flag=$allow_undefined_flag
9422 allow_undefined_flag=
9423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9424 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9425 ac_status=$?
9426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9427 test $ac_status = 0; }
9428 then
9429 lt_cv_archive_cmds_need_lc=no
9430 else
9431 lt_cv_archive_cmds_need_lc=yes
9432 fi
9433 allow_undefined_flag=$lt_save_allow_undefined_flag
9434 else
9435 cat conftest.err 1>&5
9436 fi
9437 $RM conftest*
9438
9439 fi
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9441 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9442 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9443 ;;
9444 esac
9445 fi
9446 ;;
9447 esac
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9606 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9607
9608 if test "$GCC" = yes; then
9609 case $host_os in
9610 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9611 *) lt_awk_arg="/^libraries:/" ;;
9612 esac
9613 case $host_os in
9614 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9615 *) lt_sed_strip_eq="s,=/,/,g" ;;
9616 esac
9617 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9618 case $lt_search_path_spec in
9619 *\;*)
9620 # if the path contains ";" then we assume it to be the separator
9621 # otherwise default to the standard path separator (i.e. ":") - it is
9622 # assumed that no part of a normal pathname contains ";" but that should
9623 # okay in the real world where ";" in dirpaths is itself problematic.
9624 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9625 ;;
9626 *)
9627 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9628 ;;
9629 esac
9630 # Ok, now we have the path, separated by spaces, we can step through it
9631 # and add multilib dir if necessary.
9632 lt_tmp_lt_search_path_spec=
9633 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9634 for lt_sys_path in $lt_search_path_spec; do
9635 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9636 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9637 else
9638 test -d "$lt_sys_path" && \
9639 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9640 fi
9641 done
9642 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9643 BEGIN {RS=" "; FS="/|\n";} {
9644 lt_foo="";
9645 lt_count=0;
9646 for (lt_i = NF; lt_i > 0; lt_i--) {
9647 if ($lt_i != "" && $lt_i != ".") {
9648 if ($lt_i == "..") {
9649 lt_count++;
9650 } else {
9651 if (lt_count == 0) {
9652 lt_foo="/" $lt_i lt_foo;
9653 } else {
9654 lt_count--;
9655 }
9656 }
9657 }
9658 }
9659 if (lt_foo != "") { lt_freq[lt_foo]++; }
9660 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9661 }'`
9662 # AWK program above erroneously prepends '/' to C:/dos/paths
9663 # for these hosts.
9664 case $host_os in
9665 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9666 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9667 esac
9668 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9669 else
9670 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9671 fi
9672 library_names_spec=
9673 libname_spec='lib$name'
9674 soname_spec=
9675 shrext_cmds=".so"
9676 postinstall_cmds=
9677 postuninstall_cmds=
9678 finish_cmds=
9679 finish_eval=
9680 shlibpath_var=
9681 shlibpath_overrides_runpath=unknown
9682 version_type=none
9683 dynamic_linker="$host_os ld.so"
9684 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9685 need_lib_prefix=unknown
9686 hardcode_into_libs=no
9687
9688 # when you set need_version to no, make sure it does not cause -set_version
9689 # flags to be left without arguments
9690 need_version=unknown
9691
9692 case $host_os in
9693 aix3*)
9694 version_type=linux
9695 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9696 shlibpath_var=LIBPATH
9697
9698 # AIX 3 has no versioning support, so we append a major version to the name.
9699 soname_spec='${libname}${release}${shared_ext}$major'
9700 ;;
9701
9702 aix[4-9]*)
9703 version_type=linux
9704 need_lib_prefix=no
9705 need_version=no
9706 hardcode_into_libs=yes
9707 if test "$host_cpu" = ia64; then
9708 # AIX 5 supports IA64
9709 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9710 shlibpath_var=LD_LIBRARY_PATH
9711 else
9712 # With GCC up to 2.95.x, collect2 would create an import file
9713 # for dependence libraries. The import file would start with
9714 # the line `#! .'. This would cause the generated library to
9715 # depend on `.', always an invalid library. This was fixed in
9716 # development snapshots of GCC prior to 3.0.
9717 case $host_os in
9718 aix4 | aix4.[01] | aix4.[01].*)
9719 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9720 echo ' yes '
9721 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9722 :
9723 else
9724 can_build_shared=no
9725 fi
9726 ;;
9727 esac
9728 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9729 # soname into executable. Probably we can add versioning support to
9730 # collect2, so additional links can be useful in future.
9731 if test "$aix_use_runtimelinking" = yes; then
9732 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9733 # instead of lib<name>.a to let people know that these are not
9734 # typical AIX shared libraries.
9735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9736 else
9737 # We preserve .a as extension for shared libraries through AIX4.2
9738 # and later when we are not doing run time linking.
9739 library_names_spec='${libname}${release}.a $libname.a'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 fi
9742 shlibpath_var=LIBPATH
9743 fi
9744 ;;
9745
9746 amigaos*)
9747 case $host_cpu in
9748 powerpc)
9749 # Since July 2007 AmigaOS4 officially supports .so libraries.
9750 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752 ;;
9753 m68k)
9754 library_names_spec='$libname.ixlibrary $libname.a'
9755 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9756 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'
9757 ;;
9758 esac
9759 ;;
9760
9761 beos*)
9762 library_names_spec='${libname}${shared_ext}'
9763 dynamic_linker="$host_os ld.so"
9764 shlibpath_var=LIBRARY_PATH
9765 ;;
9766
9767 bsdi[45]*)
9768 version_type=linux
9769 need_version=no
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771 soname_spec='${libname}${release}${shared_ext}$major'
9772 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9773 shlibpath_var=LD_LIBRARY_PATH
9774 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9775 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9776 # the default ld.so.conf also contains /usr/contrib/lib and
9777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9778 # libtool to hard-code these into programs
9779 ;;
9780
9781 cygwin* | mingw* | pw32* | cegcc*)
9782 version_type=windows
9783 shrext_cmds=".dll"
9784 need_version=no
9785 need_lib_prefix=no
9786
9787 case $GCC,$host_os in
9788 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9789 library_names_spec='$libname.dll.a'
9790 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9791 postinstall_cmds='base_file=`basename \${file}`~
9792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9793 dldir=$destdir/`dirname \$dlpath`~
9794 test -d \$dldir || mkdir -p \$dldir~
9795 $install_prog $dir/$dlname \$dldir/$dlname~
9796 chmod a+x \$dldir/$dlname~
9797 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9798 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9799 fi'
9800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9801 dlpath=$dir/\$dldll~
9802 $RM \$dlpath'
9803 shlibpath_overrides_runpath=yes
9804
9805 case $host_os in
9806 cygwin*)
9807 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9808 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9809
9810 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9811 ;;
9812 mingw* | cegcc*)
9813 # MinGW DLLs use traditional 'lib' prefix
9814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9815 ;;
9816 pw32*)
9817 # pw32 DLLs use 'pw' prefix rather than 'lib'
9818 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9819 ;;
9820 esac
9821 ;;
9822
9823 *)
9824 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9825 ;;
9826 esac
9827 dynamic_linker='Win32 ld.exe'
9828 # FIXME: first we should search . and the directory the executable is in
9829 shlibpath_var=PATH
9830 ;;
9831
9832 darwin* | rhapsody*)
9833 dynamic_linker="$host_os dyld"
9834 version_type=darwin
9835 need_lib_prefix=no
9836 need_version=no
9837 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9838 soname_spec='${libname}${release}${major}$shared_ext'
9839 shlibpath_overrides_runpath=yes
9840 shlibpath_var=DYLD_LIBRARY_PATH
9841 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9842
9843 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9845 ;;
9846
9847 dgux*)
9848 version_type=linux
9849 need_lib_prefix=no
9850 need_version=no
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 shlibpath_var=LD_LIBRARY_PATH
9854 ;;
9855
9856 freebsd* | dragonfly*)
9857 # DragonFly does not have aout. When/if they implement a new
9858 # versioning mechanism, adjust this.
9859 if test -x /usr/bin/objformat; then
9860 objformat=`/usr/bin/objformat`
9861 else
9862 case $host_os in
9863 freebsd[23].*) objformat=aout ;;
9864 *) objformat=elf ;;
9865 esac
9866 fi
9867 version_type=freebsd-$objformat
9868 case $version_type in
9869 freebsd-elf*)
9870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9871 need_version=no
9872 need_lib_prefix=no
9873 ;;
9874 freebsd-*)
9875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9876 need_version=yes
9877 ;;
9878 esac
9879 shlibpath_var=LD_LIBRARY_PATH
9880 case $host_os in
9881 freebsd2.*)
9882 shlibpath_overrides_runpath=yes
9883 ;;
9884 freebsd3.[01]* | freebsdelf3.[01]*)
9885 shlibpath_overrides_runpath=yes
9886 hardcode_into_libs=yes
9887 ;;
9888 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9889 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9890 shlibpath_overrides_runpath=no
9891 hardcode_into_libs=yes
9892 ;;
9893 *) # from 4.6 on, and DragonFly
9894 shlibpath_overrides_runpath=yes
9895 hardcode_into_libs=yes
9896 ;;
9897 esac
9898 ;;
9899
9900 haiku*)
9901 version_type=linux
9902 need_lib_prefix=no
9903 need_version=no
9904 dynamic_linker="$host_os runtime_loader"
9905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9906 soname_spec='${libname}${release}${shared_ext}$major'
9907 shlibpath_var=LIBRARY_PATH
9908 shlibpath_overrides_runpath=yes
9909 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9910 hardcode_into_libs=yes
9911 ;;
9912
9913 hpux9* | hpux10* | hpux11*)
9914 # Give a soname corresponding to the major version so that dld.sl refuses to
9915 # link against other versions.
9916 version_type=sunos
9917 need_lib_prefix=no
9918 need_version=no
9919 case $host_cpu in
9920 ia64*)
9921 shrext_cmds='.so'
9922 hardcode_into_libs=yes
9923 dynamic_linker="$host_os dld.so"
9924 shlibpath_var=LD_LIBRARY_PATH
9925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 if test "X$HPUX_IA64_MODE" = X32; then
9929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9930 else
9931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9932 fi
9933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9934 ;;
9935 hppa*64*)
9936 shrext_cmds='.sl'
9937 hardcode_into_libs=yes
9938 dynamic_linker="$host_os dld.sl"
9939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9942 soname_spec='${libname}${release}${shared_ext}$major'
9943 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9945 ;;
9946 *)
9947 shrext_cmds='.sl'
9948 dynamic_linker="$host_os dld.sl"
9949 shlibpath_var=SHLIB_PATH
9950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9953 ;;
9954 esac
9955 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9956 postinstall_cmds='chmod 555 $lib'
9957 # or fails outright, so override atomically:
9958 install_override_mode=555
9959 ;;
9960
9961 interix[3-9]*)
9962 version_type=linux
9963 need_lib_prefix=no
9964 need_version=no
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 shlibpath_overrides_runpath=no
9970 hardcode_into_libs=yes
9971 ;;
9972
9973 irix5* | irix6* | nonstopux*)
9974 case $host_os in
9975 nonstopux*) version_type=nonstopux ;;
9976 *)
9977 if test "$lt_cv_prog_gnu_ld" = yes; then
9978 version_type=linux
9979 else
9980 version_type=irix
9981 fi ;;
9982 esac
9983 need_lib_prefix=no
9984 need_version=no
9985 soname_spec='${libname}${release}${shared_ext}$major'
9986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9987 case $host_os in
9988 irix5* | nonstopux*)
9989 libsuff= shlibsuff=
9990 ;;
9991 *)
9992 case $LD in # libtool.m4 will add one of these switches to LD
9993 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9994 libsuff= shlibsuff= libmagic=32-bit;;
9995 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9996 libsuff=32 shlibsuff=N32 libmagic=N32;;
9997 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9998 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9999 *) libsuff= shlibsuff= libmagic=never-match;;
10000 esac
10001 ;;
10002 esac
10003 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10004 shlibpath_overrides_runpath=no
10005 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10006 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10007 hardcode_into_libs=yes
10008 ;;
10009
10010 # No shared lib support for Linux oldld, aout, or coff.
10011 linux*oldld* | linux*aout* | linux*coff*)
10012 dynamic_linker=no
10013 ;;
10014
10015 # This must be Linux ELF.
10016 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10017 version_type=linux
10018 need_lib_prefix=no
10019 need_version=no
10020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021 soname_spec='${libname}${release}${shared_ext}$major'
10022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10023 shlibpath_var=LD_LIBRARY_PATH
10024 shlibpath_overrides_runpath=no
10025
10026 # Some binutils ld are patched to set DT_RUNPATH
10027 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 lt_cv_shlibpath_overrides_runpath=no
10031 save_LDFLAGS=$LDFLAGS
10032 save_libdir=$libdir
10033 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10034 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10037
10038 int
10039 main ()
10040 {
10041
10042 ;
10043 return 0;
10044 }
10045 _ACEOF
10046 if ac_fn_c_try_link "$LINENO"; then :
10047 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10048 lt_cv_shlibpath_overrides_runpath=yes
10049 fi
10050 fi
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053 LDFLAGS=$save_LDFLAGS
10054 libdir=$save_libdir
10055
10056 fi
10057
10058 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10059
10060 # This implies no fast_install, which is unacceptable.
10061 # Some rework will be needed to allow for fast_install
10062 # before this can be enabled.
10063 hardcode_into_libs=yes
10064
10065 # Append ld.so.conf contents to the search path
10066 if test -f /etc/ld.so.conf; then
10067 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' ' '`
10068 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10069 fi
10070
10071 # We used to test for /lib/ld.so.1 and disable shared libraries on
10072 # powerpc, because MkLinux only supported shared libraries with the
10073 # GNU dynamic linker. Since this was broken with cross compilers,
10074 # most powerpc-linux boxes support dynamic linking these days and
10075 # people can always --disable-shared, the test was removed, and we
10076 # assume the GNU/Linux dynamic linker is in use.
10077 dynamic_linker='GNU/Linux ld.so'
10078 ;;
10079
10080 netbsd*)
10081 version_type=sunos
10082 need_lib_prefix=no
10083 need_version=no
10084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10087 dynamic_linker='NetBSD (a.out) ld.so'
10088 else
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10090 soname_spec='${libname}${release}${shared_ext}$major'
10091 dynamic_linker='NetBSD ld.elf_so'
10092 fi
10093 shlibpath_var=LD_LIBRARY_PATH
10094 shlibpath_overrides_runpath=yes
10095 hardcode_into_libs=yes
10096 ;;
10097
10098 newsos6)
10099 version_type=linux
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 shlibpath_overrides_runpath=yes
10103 ;;
10104
10105 *nto* | *qnx*)
10106 version_type=qnx
10107 need_lib_prefix=no
10108 need_version=no
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 shlibpath_var=LD_LIBRARY_PATH
10112 shlibpath_overrides_runpath=no
10113 hardcode_into_libs=yes
10114 dynamic_linker='ldqnx.so'
10115 ;;
10116
10117 openbsd*)
10118 version_type=sunos
10119 sys_lib_dlsearch_path_spec="/usr/lib"
10120 need_lib_prefix=no
10121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10122 case $host_os in
10123 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10124 *) need_version=no ;;
10125 esac
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10128 shlibpath_var=LD_LIBRARY_PATH
10129 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10130 case $host_os in
10131 openbsd2.[89] | openbsd2.[89].*)
10132 shlibpath_overrides_runpath=no
10133 ;;
10134 *)
10135 shlibpath_overrides_runpath=yes
10136 ;;
10137 esac
10138 else
10139 shlibpath_overrides_runpath=yes
10140 fi
10141 ;;
10142
10143 os2*)
10144 libname_spec='$name'
10145 shrext_cmds=".dll"
10146 need_lib_prefix=no
10147 library_names_spec='$libname${shared_ext} $libname.a'
10148 dynamic_linker='OS/2 ld.exe'
10149 shlibpath_var=LIBPATH
10150 ;;
10151
10152 osf3* | osf4* | osf5*)
10153 version_type=osf
10154 need_lib_prefix=no
10155 need_version=no
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 shlibpath_var=LD_LIBRARY_PATH
10159 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10160 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10161 ;;
10162
10163 rdos*)
10164 dynamic_linker=no
10165 ;;
10166
10167 solaris*)
10168 version_type=linux
10169 need_lib_prefix=no
10170 need_version=no
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=yes
10175 hardcode_into_libs=yes
10176 # ldd complains unless libraries are executable
10177 postinstall_cmds='chmod +x $lib'
10178 ;;
10179
10180 sunos4*)
10181 version_type=sunos
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10183 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10184 shlibpath_var=LD_LIBRARY_PATH
10185 shlibpath_overrides_runpath=yes
10186 if test "$with_gnu_ld" = yes; then
10187 need_lib_prefix=no
10188 fi
10189 need_version=yes
10190 ;;
10191
10192 sysv4 | sysv4.3*)
10193 version_type=linux
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 shlibpath_var=LD_LIBRARY_PATH
10197 case $host_vendor in
10198 sni)
10199 shlibpath_overrides_runpath=no
10200 need_lib_prefix=no
10201 runpath_var=LD_RUN_PATH
10202 ;;
10203 siemens)
10204 need_lib_prefix=no
10205 ;;
10206 motorola)
10207 need_lib_prefix=no
10208 need_version=no
10209 shlibpath_overrides_runpath=no
10210 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10211 ;;
10212 esac
10213 ;;
10214
10215 sysv4*MP*)
10216 if test -d /usr/nec ;then
10217 version_type=linux
10218 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10219 soname_spec='$libname${shared_ext}.$major'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 fi
10222 ;;
10223
10224 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10225 version_type=freebsd-elf
10226 need_lib_prefix=no
10227 need_version=no
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10229 soname_spec='${libname}${release}${shared_ext}$major'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 shlibpath_overrides_runpath=yes
10232 hardcode_into_libs=yes
10233 if test "$with_gnu_ld" = yes; then
10234 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10235 else
10236 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10237 case $host_os in
10238 sco3.2v5*)
10239 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10240 ;;
10241 esac
10242 fi
10243 sys_lib_dlsearch_path_spec='/usr/lib'
10244 ;;
10245
10246 tpf*)
10247 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10248 version_type=linux
10249 need_lib_prefix=no
10250 need_version=no
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 shlibpath_overrides_runpath=no
10254 hardcode_into_libs=yes
10255 ;;
10256
10257 uts4*)
10258 version_type=linux
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 shlibpath_var=LD_LIBRARY_PATH
10262 ;;
10263
10264 *)
10265 dynamic_linker=no
10266 ;;
10267 esac
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10269 $as_echo "$dynamic_linker" >&6; }
10270 test "$dynamic_linker" = no && can_build_shared=no
10271
10272 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10273 if test "$GCC" = yes; then
10274 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10275 fi
10276
10277 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10278 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10279 fi
10280 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10281 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10282 fi
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10376 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10377 hardcode_action=
10378 if test -n "$hardcode_libdir_flag_spec" ||
10379 test -n "$runpath_var" ||
10380 test "X$hardcode_automatic" = "Xyes" ; then
10381
10382 # We can hardcode non-existent directories.
10383 if test "$hardcode_direct" != no &&
10384 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10385 # have to relink, otherwise we might link with an installed library
10386 # when we should be linking with a yet-to-be-installed one
10387 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10388 test "$hardcode_minus_L" != no; then
10389 # Linking always hardcodes the temporary library directory.
10390 hardcode_action=relink
10391 else
10392 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10393 hardcode_action=immediate
10394 fi
10395 else
10396 # We cannot hardcode anything, or else we can only hardcode existing
10397 # directories.
10398 hardcode_action=unsupported
10399 fi
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10401 $as_echo "$hardcode_action" >&6; }
10402
10403 if test "$hardcode_action" = relink ||
10404 test "$inherit_rpath" = yes; then
10405 # Fast installation is not supported
10406 enable_fast_install=no
10407 elif test "$shlibpath_overrides_runpath" = yes ||
10408 test "$enable_shared" = no; then
10409 # Fast installation is not necessary
10410 enable_fast_install=needless
10411 fi
10412
10413
10414
10415
10416
10417
10418 if test "x$enable_dlopen" != xyes; then
10419 enable_dlopen=unknown
10420 enable_dlopen_self=unknown
10421 enable_dlopen_self_static=unknown
10422 else
10423 lt_cv_dlopen=no
10424 lt_cv_dlopen_libs=
10425
10426 case $host_os in
10427 beos*)
10428 lt_cv_dlopen="load_add_on"
10429 lt_cv_dlopen_libs=
10430 lt_cv_dlopen_self=yes
10431 ;;
10432
10433 mingw* | pw32* | cegcc*)
10434 lt_cv_dlopen="LoadLibrary"
10435 lt_cv_dlopen_libs=
10436 ;;
10437
10438 cygwin*)
10439 lt_cv_dlopen="dlopen"
10440 lt_cv_dlopen_libs=
10441 ;;
10442
10443 darwin*)
10444 # if libdl is installed we need to link against it
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10446 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10447 if ${ac_cv_lib_dl_dlopen+:} false; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10450 ac_check_lib_save_LIBS=$LIBS
10451 LIBS="-ldl $LIBS"
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453 /* end confdefs.h. */
10454
10455 /* Override any GCC internal prototype to avoid an error.
10456 Use char because int might match the return type of a GCC
10457 builtin and then its argument prototype would still apply. */
10458 #ifdef __cplusplus
10459 extern "C"
10460 #endif
10461 char dlopen ();
10462 int
10463 main ()
10464 {
10465 return dlopen ();
10466 ;
10467 return 0;
10468 }
10469 _ACEOF
10470 if ac_fn_c_try_link "$LINENO"; then :
10471 ac_cv_lib_dl_dlopen=yes
10472 else
10473 ac_cv_lib_dl_dlopen=no
10474 fi
10475 rm -f core conftest.err conftest.$ac_objext \
10476 conftest$ac_exeext conftest.$ac_ext
10477 LIBS=$ac_check_lib_save_LIBS
10478 fi
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10480 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10481 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10482 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10483 else
10484
10485 lt_cv_dlopen="dyld"
10486 lt_cv_dlopen_libs=
10487 lt_cv_dlopen_self=yes
10488
10489 fi
10490
10491 ;;
10492
10493 *)
10494 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10495 if test "x$ac_cv_func_shl_load" = xyes; then :
10496 lt_cv_dlopen="shl_load"
10497 else
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10499 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10500 if ${ac_cv_lib_dld_shl_load+:} false; then :
10501 $as_echo_n "(cached) " >&6
10502 else
10503 ac_check_lib_save_LIBS=$LIBS
10504 LIBS="-ldld $LIBS"
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10507
10508 /* Override any GCC internal prototype to avoid an error.
10509 Use char because int might match the return type of a GCC
10510 builtin and then its argument prototype would still apply. */
10511 #ifdef __cplusplus
10512 extern "C"
10513 #endif
10514 char shl_load ();
10515 int
10516 main ()
10517 {
10518 return shl_load ();
10519 ;
10520 return 0;
10521 }
10522 _ACEOF
10523 if ac_fn_c_try_link "$LINENO"; then :
10524 ac_cv_lib_dld_shl_load=yes
10525 else
10526 ac_cv_lib_dld_shl_load=no
10527 fi
10528 rm -f core conftest.err conftest.$ac_objext \
10529 conftest$ac_exeext conftest.$ac_ext
10530 LIBS=$ac_check_lib_save_LIBS
10531 fi
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10533 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10534 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10535 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10536 else
10537 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10538 if test "x$ac_cv_func_dlopen" = xyes; then :
10539 lt_cv_dlopen="dlopen"
10540 else
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10542 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10543 if ${ac_cv_lib_dl_dlopen+:} false; then :
10544 $as_echo_n "(cached) " >&6
10545 else
10546 ac_check_lib_save_LIBS=$LIBS
10547 LIBS="-ldl $LIBS"
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10550
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10554 #ifdef __cplusplus
10555 extern "C"
10556 #endif
10557 char dlopen ();
10558 int
10559 main ()
10560 {
10561 return dlopen ();
10562 ;
10563 return 0;
10564 }
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"; then :
10567 ac_cv_lib_dl_dlopen=yes
10568 else
10569 ac_cv_lib_dl_dlopen=no
10570 fi
10571 rm -f core conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10573 LIBS=$ac_check_lib_save_LIBS
10574 fi
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10576 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10577 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10579 else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10581 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10582 if ${ac_cv_lib_svld_dlopen+:} false; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 ac_check_lib_save_LIBS=$LIBS
10586 LIBS="-lsvld $LIBS"
10587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588 /* end confdefs.h. */
10589
10590 /* Override any GCC internal prototype to avoid an error.
10591 Use char because int might match the return type of a GCC
10592 builtin and then its argument prototype would still apply. */
10593 #ifdef __cplusplus
10594 extern "C"
10595 #endif
10596 char dlopen ();
10597 int
10598 main ()
10599 {
10600 return dlopen ();
10601 ;
10602 return 0;
10603 }
10604 _ACEOF
10605 if ac_fn_c_try_link "$LINENO"; then :
10606 ac_cv_lib_svld_dlopen=yes
10607 else
10608 ac_cv_lib_svld_dlopen=no
10609 fi
10610 rm -f core conftest.err conftest.$ac_objext \
10611 conftest$ac_exeext conftest.$ac_ext
10612 LIBS=$ac_check_lib_save_LIBS
10613 fi
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10615 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10616 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10617 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10618 else
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10620 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10621 if ${ac_cv_lib_dld_dld_link+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623 else
10624 ac_check_lib_save_LIBS=$LIBS
10625 LIBS="-ldld $LIBS"
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628
10629 /* Override any GCC internal prototype to avoid an error.
10630 Use char because int might match the return type of a GCC
10631 builtin and then its argument prototype would still apply. */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 char dld_link ();
10636 int
10637 main ()
10638 {
10639 return dld_link ();
10640 ;
10641 return 0;
10642 }
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"; then :
10645 ac_cv_lib_dld_dld_link=yes
10646 else
10647 ac_cv_lib_dld_dld_link=no
10648 fi
10649 rm -f core conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10651 LIBS=$ac_check_lib_save_LIBS
10652 fi
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10654 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10655 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10656 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10657 fi
10658
10659
10660 fi
10661
10662
10663 fi
10664
10665
10666 fi
10667
10668
10669 fi
10670
10671
10672 fi
10673
10674 ;;
10675 esac
10676
10677 if test "x$lt_cv_dlopen" != xno; then
10678 enable_dlopen=yes
10679 else
10680 enable_dlopen=no
10681 fi
10682
10683 case $lt_cv_dlopen in
10684 dlopen)
10685 save_CPPFLAGS="$CPPFLAGS"
10686 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10687
10688 save_LDFLAGS="$LDFLAGS"
10689 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10690
10691 save_LIBS="$LIBS"
10692 LIBS="$lt_cv_dlopen_libs $LIBS"
10693
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10695 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10696 if ${lt_cv_dlopen_self+:} false; then :
10697 $as_echo_n "(cached) " >&6
10698 else
10699 if test "$cross_compiling" = yes; then :
10700 lt_cv_dlopen_self=cross
10701 else
10702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10703 lt_status=$lt_dlunknown
10704 cat > conftest.$ac_ext <<_LT_EOF
10705 #line 10705 "configure"
10706 #include "confdefs.h"
10707
10708 #if HAVE_DLFCN_H
10709 #include <dlfcn.h>
10710 #endif
10711
10712 #include <stdio.h>
10713
10714 #ifdef RTLD_GLOBAL
10715 # define LT_DLGLOBAL RTLD_GLOBAL
10716 #else
10717 # ifdef DL_GLOBAL
10718 # define LT_DLGLOBAL DL_GLOBAL
10719 # else
10720 # define LT_DLGLOBAL 0
10721 # endif
10722 #endif
10723
10724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10725 find out it does not work in some platform. */
10726 #ifndef LT_DLLAZY_OR_NOW
10727 # ifdef RTLD_LAZY
10728 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10729 # else
10730 # ifdef DL_LAZY
10731 # define LT_DLLAZY_OR_NOW DL_LAZY
10732 # else
10733 # ifdef RTLD_NOW
10734 # define LT_DLLAZY_OR_NOW RTLD_NOW
10735 # else
10736 # ifdef DL_NOW
10737 # define LT_DLLAZY_OR_NOW DL_NOW
10738 # else
10739 # define LT_DLLAZY_OR_NOW 0
10740 # endif
10741 # endif
10742 # endif
10743 # endif
10744 #endif
10745
10746 /* When -fvisbility=hidden is used, assume the code has been annotated
10747 correspondingly for the symbols needed. */
10748 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10749 void fnord () __attribute__((visibility("default")));
10750 #endif
10751
10752 void fnord () { int i=42; }
10753 int main ()
10754 {
10755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10756 int status = $lt_dlunknown;
10757
10758 if (self)
10759 {
10760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10761 else
10762 {
10763 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10764 else puts (dlerror ());
10765 }
10766 /* dlclose (self); */
10767 }
10768 else
10769 puts (dlerror ());
10770
10771 return status;
10772 }
10773 _LT_EOF
10774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10775 (eval $ac_link) 2>&5
10776 ac_status=$?
10777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10778 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10779 (./conftest; exit; ) >&5 2>/dev/null
10780 lt_status=$?
10781 case x$lt_status in
10782 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10783 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10784 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10785 esac
10786 else :
10787 # compilation failed
10788 lt_cv_dlopen_self=no
10789 fi
10790 fi
10791 rm -fr conftest*
10792
10793
10794 fi
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10796 $as_echo "$lt_cv_dlopen_self" >&6; }
10797
10798 if test "x$lt_cv_dlopen_self" = xyes; then
10799 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10801 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10802 if ${lt_cv_dlopen_self_static+:} false; then :
10803 $as_echo_n "(cached) " >&6
10804 else
10805 if test "$cross_compiling" = yes; then :
10806 lt_cv_dlopen_self_static=cross
10807 else
10808 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10809 lt_status=$lt_dlunknown
10810 cat > conftest.$ac_ext <<_LT_EOF
10811 #line 10811 "configure"
10812 #include "confdefs.h"
10813
10814 #if HAVE_DLFCN_H
10815 #include <dlfcn.h>
10816 #endif
10817
10818 #include <stdio.h>
10819
10820 #ifdef RTLD_GLOBAL
10821 # define LT_DLGLOBAL RTLD_GLOBAL
10822 #else
10823 # ifdef DL_GLOBAL
10824 # define LT_DLGLOBAL DL_GLOBAL
10825 # else
10826 # define LT_DLGLOBAL 0
10827 # endif
10828 #endif
10829
10830 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10831 find out it does not work in some platform. */
10832 #ifndef LT_DLLAZY_OR_NOW
10833 # ifdef RTLD_LAZY
10834 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10835 # else
10836 # ifdef DL_LAZY
10837 # define LT_DLLAZY_OR_NOW DL_LAZY
10838 # else
10839 # ifdef RTLD_NOW
10840 # define LT_DLLAZY_OR_NOW RTLD_NOW
10841 # else
10842 # ifdef DL_NOW
10843 # define LT_DLLAZY_OR_NOW DL_NOW
10844 # else
10845 # define LT_DLLAZY_OR_NOW 0
10846 # endif
10847 # endif
10848 # endif
10849 # endif
10850 #endif
10851
10852 /* When -fvisbility=hidden is used, assume the code has been annotated
10853 correspondingly for the symbols needed. */
10854 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10855 void fnord () __attribute__((visibility("default")));
10856 #endif
10857
10858 void fnord () { int i=42; }
10859 int main ()
10860 {
10861 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10862 int status = $lt_dlunknown;
10863
10864 if (self)
10865 {
10866 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10867 else
10868 {
10869 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10870 else puts (dlerror ());
10871 }
10872 /* dlclose (self); */
10873 }
10874 else
10875 puts (dlerror ());
10876
10877 return status;
10878 }
10879 _LT_EOF
10880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10881 (eval $ac_link) 2>&5
10882 ac_status=$?
10883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10884 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10885 (./conftest; exit; ) >&5 2>/dev/null
10886 lt_status=$?
10887 case x$lt_status in
10888 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10889 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10890 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10891 esac
10892 else :
10893 # compilation failed
10894 lt_cv_dlopen_self_static=no
10895 fi
10896 fi
10897 rm -fr conftest*
10898
10899
10900 fi
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10902 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10903 fi
10904
10905 CPPFLAGS="$save_CPPFLAGS"
10906 LDFLAGS="$save_LDFLAGS"
10907 LIBS="$save_LIBS"
10908 ;;
10909 esac
10910
10911 case $lt_cv_dlopen_self in
10912 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10913 *) enable_dlopen_self=unknown ;;
10914 esac
10915
10916 case $lt_cv_dlopen_self_static in
10917 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10918 *) enable_dlopen_self_static=unknown ;;
10919 esac
10920 fi
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938 striplib=
10939 old_striplib=
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10941 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10942 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10943 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10944 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10946 $as_echo "yes" >&6; }
10947 else
10948 # FIXME - insert some real tests, host_os isn't really good enough
10949 case $host_os in
10950 darwin*)
10951 if test -n "$STRIP" ; then
10952 striplib="$STRIP -x"
10953 old_striplib="$STRIP -S"
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10955 $as_echo "yes" >&6; }
10956 else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 $as_echo "no" >&6; }
10959 fi
10960 ;;
10961 *)
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 $as_echo "no" >&6; }
10964 ;;
10965 esac
10966 fi
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979 # Report which library types will actually be built
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10981 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10983 $as_echo "$can_build_shared" >&6; }
10984
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10986 $as_echo_n "checking whether to build shared libraries... " >&6; }
10987 test "$can_build_shared" = "no" && enable_shared=no
10988
10989 # On AIX, shared libraries and static libraries use the same namespace, and
10990 # are all built from PIC.
10991 case $host_os in
10992 aix3*)
10993 test "$enable_shared" = yes && enable_static=no
10994 if test -n "$RANLIB"; then
10995 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10996 postinstall_cmds='$RANLIB $lib'
10997 fi
10998 ;;
10999
11000 aix[4-9]*)
11001 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11002 test "$enable_shared" = yes && enable_static=no
11003 fi
11004 ;;
11005 esac
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11007 $as_echo "$enable_shared" >&6; }
11008
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11010 $as_echo_n "checking whether to build static libraries... " >&6; }
11011 # Make sure either enable_shared or enable_static is yes.
11012 test "$enable_shared" = yes || enable_static=yes
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11014 $as_echo "$enable_static" >&6; }
11015
11016
11017
11018
11019 fi
11020 ac_ext=c
11021 ac_cpp='$CPP $CPPFLAGS'
11022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11025
11026 CC="$lt_save_CC"
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040 ac_config_commands="$ac_config_commands libtool"
11041
11042
11043
11044
11045 # Only expand once:
11046
11047
11048
11049 # The tests for host and target for $enable_largefile require
11050 # canonical names.
11051
11052
11053
11054 # As the $enable_largefile decision depends on --enable-plugins we must set it
11055 # even in directories otherwise not depending on the $plugins option.
11056
11057
11058 maybe_plugins=no
11059 for ac_header in dlfcn.h
11060 do :
11061 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11062 "
11063 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11064 cat >>confdefs.h <<_ACEOF
11065 #define HAVE_DLFCN_H 1
11066 _ACEOF
11067 maybe_plugins=yes
11068 fi
11069
11070 done
11071
11072 for ac_header in windows.h
11073 do :
11074 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11075 "
11076 if test "x$ac_cv_header_windows_h" = xyes; then :
11077 cat >>confdefs.h <<_ACEOF
11078 #define HAVE_WINDOWS_H 1
11079 _ACEOF
11080 maybe_plugins=yes
11081 fi
11082
11083 done
11084
11085
11086 # Check whether --enable-plugins was given.
11087 if test "${enable_plugins+set}" = set; then :
11088 enableval=$enable_plugins; case "${enableval}" in
11089 no) plugins=no ;;
11090 *) plugins=yes
11091 if test "$maybe_plugins" != "yes" ; then
11092 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11093 fi ;;
11094 esac
11095 else
11096 plugins=$maybe_plugins
11097
11098 fi
11099
11100 if test "$plugins" = "yes"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11102 $as_echo_n "checking for library containing dlsym... " >&6; }
11103 if ${ac_cv_search_dlsym+:} false; then :
11104 $as_echo_n "(cached) " >&6
11105 else
11106 ac_func_search_save_LIBS=$LIBS
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11109
11110 /* Override any GCC internal prototype to avoid an error.
11111 Use char because int might match the return type of a GCC
11112 builtin and then its argument prototype would still apply. */
11113 #ifdef __cplusplus
11114 extern "C"
11115 #endif
11116 char dlsym ();
11117 int
11118 main ()
11119 {
11120 return dlsym ();
11121 ;
11122 return 0;
11123 }
11124 _ACEOF
11125 for ac_lib in '' dl; do
11126 if test -z "$ac_lib"; then
11127 ac_res="none required"
11128 else
11129 ac_res=-l$ac_lib
11130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11131 fi
11132 if ac_fn_c_try_link "$LINENO"; then :
11133 ac_cv_search_dlsym=$ac_res
11134 fi
11135 rm -f core conftest.err conftest.$ac_objext \
11136 conftest$ac_exeext
11137 if ${ac_cv_search_dlsym+:} false; then :
11138 break
11139 fi
11140 done
11141 if ${ac_cv_search_dlsym+:} false; then :
11142
11143 else
11144 ac_cv_search_dlsym=no
11145 fi
11146 rm conftest.$ac_ext
11147 LIBS=$ac_func_search_save_LIBS
11148 fi
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11150 $as_echo "$ac_cv_search_dlsym" >&6; }
11151 ac_res=$ac_cv_search_dlsym
11152 if test "$ac_res" != no; then :
11153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11154
11155 fi
11156
11157 fi
11158
11159
11160 case "${host}" in
11161 sparc-*-solaris*|i?86-*-solaris*)
11162 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11163 # were mutually exclusive until Solaris 11.3. Without procfs support,
11164 # the bfd/ elf module cannot provide certain routines such as
11165 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11166 # explicitly requested large-file support through the
11167 # --enable-largefile switch, disable large-file support in favor of
11168 # procfs support.
11169 #
11170 # Check if <sys/procfs.h> is incompatible with large-file support.
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11173 #define _FILE_OFFSET_BITS 64
11174 #define _STRUCTURED_PROC 1
11175 #include <sys/procfs.h>
11176 int
11177 main ()
11178 {
11179
11180 ;
11181 return 0;
11182 }
11183 _ACEOF
11184 if ac_fn_c_try_compile "$LINENO"; then :
11185 acx_cv_procfs_lfs=yes
11186 else
11187 acx_cv_procfs_lfs=no
11188 fi
11189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11190 #
11191 # Forcefully disable large-file support only if necessary, gdb is in
11192 # tree and enabled.
11193 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11194 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11195 : ${enable_largefile="no"}
11196 if test "$plugins" = yes; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11198 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11199 $as_echo "$as_me: WARNING:
11200 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11201 plugins=no
11202 fi
11203 fi
11204 #
11205 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11206 # benefit of g++ 9+ which predefines it on Solaris.
11207 if test "$enable_largefile" = no; then
11208 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11209
11210 fi
11211 ;;
11212 esac
11213
11214 # Check whether --enable-largefile was given.
11215 if test "${enable_largefile+set}" = set; then :
11216 enableval=$enable_largefile;
11217 fi
11218
11219 if test "$enable_largefile" != no; then
11220
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11222 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11223 if ${ac_cv_sys_largefile_CC+:} false; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 ac_cv_sys_largefile_CC=no
11227 if test "$GCC" != yes; then
11228 ac_save_CC=$CC
11229 while :; do
11230 # IRIX 6.2 and later do not support large files by default,
11231 # so use the C compiler's -n32 option if that helps.
11232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11234 #include <sys/types.h>
11235 /* Check that off_t can represent 2**63 - 1 correctly.
11236 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11237 since some C++ compilers masquerading as C compilers
11238 incorrectly reject 9223372036854775807. */
11239 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11240 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11241 && LARGE_OFF_T % 2147483647 == 1)
11242 ? 1 : -1];
11243 int
11244 main ()
11245 {
11246
11247 ;
11248 return 0;
11249 }
11250 _ACEOF
11251 if ac_fn_c_try_compile "$LINENO"; then :
11252 break
11253 fi
11254 rm -f core conftest.err conftest.$ac_objext
11255 CC="$CC -n32"
11256 if ac_fn_c_try_compile "$LINENO"; then :
11257 ac_cv_sys_largefile_CC=' -n32'; break
11258 fi
11259 rm -f core conftest.err conftest.$ac_objext
11260 break
11261 done
11262 CC=$ac_save_CC
11263 rm -f conftest.$ac_ext
11264 fi
11265 fi
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11267 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11268 if test "$ac_cv_sys_largefile_CC" != no; then
11269 CC=$CC$ac_cv_sys_largefile_CC
11270 fi
11271
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11273 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11274 if ${ac_cv_sys_file_offset_bits+:} false; then :
11275 $as_echo_n "(cached) " >&6
11276 else
11277 while :; do
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11280 #include <sys/types.h>
11281 /* Check that off_t can represent 2**63 - 1 correctly.
11282 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11283 since some C++ compilers masquerading as C compilers
11284 incorrectly reject 9223372036854775807. */
11285 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11286 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11287 && LARGE_OFF_T % 2147483647 == 1)
11288 ? 1 : -1];
11289 int
11290 main ()
11291 {
11292
11293 ;
11294 return 0;
11295 }
11296 _ACEOF
11297 if ac_fn_c_try_compile "$LINENO"; then :
11298 ac_cv_sys_file_offset_bits=no; break
11299 fi
11300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11303 #define _FILE_OFFSET_BITS 64
11304 #include <sys/types.h>
11305 /* Check that off_t can represent 2**63 - 1 correctly.
11306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11307 since some C++ compilers masquerading as C compilers
11308 incorrectly reject 9223372036854775807. */
11309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11311 && LARGE_OFF_T % 2147483647 == 1)
11312 ? 1 : -1];
11313 int
11314 main ()
11315 {
11316
11317 ;
11318 return 0;
11319 }
11320 _ACEOF
11321 if ac_fn_c_try_compile "$LINENO"; then :
11322 ac_cv_sys_file_offset_bits=64; break
11323 fi
11324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11325 ac_cv_sys_file_offset_bits=unknown
11326 break
11327 done
11328 fi
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11330 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11331 case $ac_cv_sys_file_offset_bits in #(
11332 no | unknown) ;;
11333 *)
11334 cat >>confdefs.h <<_ACEOF
11335 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11336 _ACEOF
11337 ;;
11338 esac
11339 rm -rf conftest*
11340 if test $ac_cv_sys_file_offset_bits = unknown; then
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11342 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11343 if ${ac_cv_sys_large_files+:} false; then :
11344 $as_echo_n "(cached) " >&6
11345 else
11346 while :; do
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11349 #include <sys/types.h>
11350 /* Check that off_t can represent 2**63 - 1 correctly.
11351 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11352 since some C++ compilers masquerading as C compilers
11353 incorrectly reject 9223372036854775807. */
11354 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11356 && LARGE_OFF_T % 2147483647 == 1)
11357 ? 1 : -1];
11358 int
11359 main ()
11360 {
11361
11362 ;
11363 return 0;
11364 }
11365 _ACEOF
11366 if ac_fn_c_try_compile "$LINENO"; then :
11367 ac_cv_sys_large_files=no; break
11368 fi
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11372 #define _LARGE_FILES 1
11373 #include <sys/types.h>
11374 /* Check that off_t can represent 2**63 - 1 correctly.
11375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11376 since some C++ compilers masquerading as C compilers
11377 incorrectly reject 9223372036854775807. */
11378 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11380 && LARGE_OFF_T % 2147483647 == 1)
11381 ? 1 : -1];
11382 int
11383 main ()
11384 {
11385
11386 ;
11387 return 0;
11388 }
11389 _ACEOF
11390 if ac_fn_c_try_compile "$LINENO"; then :
11391 ac_cv_sys_large_files=1; break
11392 fi
11393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11394 ac_cv_sys_large_files=unknown
11395 break
11396 done
11397 fi
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11399 $as_echo "$ac_cv_sys_large_files" >&6; }
11400 case $ac_cv_sys_large_files in #(
11401 no | unknown) ;;
11402 *)
11403 cat >>confdefs.h <<_ACEOF
11404 #define _LARGE_FILES $ac_cv_sys_large_files
11405 _ACEOF
11406 ;;
11407 esac
11408 rm -rf conftest*
11409 fi
11410
11411
11412 fi
11413
11414
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
11416 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
11417 if ${gcc_cv_prog_cmp_skip+:} false; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 echo abfoo >t1
11421 echo cdfoo >t2
11422 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
11423 if cmp t1 t2 2 2 > /dev/null 2>&1; then
11424 if cmp t1 t2 1 1 > /dev/null 2>&1; then
11425 :
11426 else
11427 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
11428 fi
11429 fi
11430 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
11431 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
11432 :
11433 else
11434 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
11435 fi
11436 fi
11437 rm t1 t2
11438
11439 fi
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
11441 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
11442 do_compare="$gcc_cv_prog_cmp_skip"
11443
11444
11445
11446 # Check whether --enable-targets was given.
11447 if test "${enable_targets+set}" = set; then :
11448 enableval=$enable_targets; case "${enableval}" in
11449 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11450 ;;
11451 no) enable_targets= ;;
11452 *) enable_targets=$enableval ;;
11453 esac
11454 fi
11455
11456 ac_checking=
11457 . ${srcdir}/../bfd/development.sh
11458 test "$development" = true && ac_checking=yes
11459 # Check whether --enable-checking was given.
11460 if test "${enable_checking+set}" = set; then :
11461 enableval=$enable_checking; case "${enableval}" in
11462 no|none) ac_checking= ;;
11463 *) ac_checking=yes ;;
11464 esac
11465 fi
11466 if test x$ac_checking != x ; then
11467
11468 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11469
11470 fi
11471
11472 # PR gas/19109
11473 # Decide the default method for compressing debug sections.
11474 ac_default_compressed_debug_sections=unset
11475 # Provide a configure time option to override our default.
11476 # Check whether --enable-compressed_debug_sections was given.
11477 if test "${enable_compressed_debug_sections+set}" = set; then :
11478 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
11479 ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
11480 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
11481 *) ac_default_compressed_debug_sections=unset ;;
11482 esac
11483 fi
11484
11485 # PR gas/19520
11486 # Decide if x86 assembler should generate relax relocations.
11487 ac_default_x86_relax_relocations=unset
11488 # Provide a configure time option to override our default.
11489 # Check whether --enable-x86_relax_relocations was given.
11490 if test "${enable_x86_relax_relocations+set}" = set; then :
11491 enableval=$enable_x86_relax_relocations; case "${enableval}" in
11492 no) ac_default_x86_relax_relocations=0 ;;
11493 esac
11494 fi
11495
11496 # Decide if ELF assembler should generate common symbols with the
11497 # STT_COMMON type.
11498 ac_default_elf_stt_common=unset
11499 # Provide a configure time option to override our default.
11500 # Check whether --enable-elf_stt_common was given.
11501 if test "${enable_elf_stt_common+set}" = set; then :
11502 enableval=$enable_elf_stt_common; case "${enableval}" in
11503 yes) ac_default_elf_stt_common=1 ;;
11504 esac
11505 fi
11506
11507
11508 # Decide if the ELF assembler should default to generating
11509 # GNU Build notes if none are provided by the input.
11510 ac_default_generate_build_notes=0
11511 # Provide a configuration option to override the default.
11512 # Check whether --enable-generate_build_notes was given.
11513 if test "${enable_generate_build_notes+set}" = set; then :
11514 enableval=$enable_generate_build_notes; case "${enableval}" in
11515 yes) ac_default_generate_build_notes=1 ;;
11516 no) ac_default_generate_build_notes=0 ;;
11517 esac
11518 fi
11519
11520 # Decide if the MIPS assembler should default to enable MIPS fix Loongson3
11521 # LLSC errata.
11522 ac_default_mips_fix_loongson3_llsc=unset
11523 # Provide a configuration option to override the default.
11524 # Check whether --enable-mips-fix-loongson3-llsc was given.
11525 if test "${enable_mips_fix_loongson3_llsc+set}" = set; then :
11526 enableval=$enable_mips_fix_loongson3_llsc; case "${enableval}" in
11527 yes) ac_default_mips_fix_loongson3_llsc=1 ;;
11528 no) ac_default_mips_fix_loongson3_llsc=0 ;;
11529 esac
11530 fi
11531
11532 # Decide if the x86 ELF assembler should default to generating GNU x86
11533 # used ISA and feature properties.
11534 ac_default_generate_x86_used_note=unset
11535 # Provide a configuration option to override the default.
11536 # Check whether --enable-x86-used-note was given.
11537 if test "${enable_x86_used_note+set}" = set; then :
11538 enableval=$enable_x86_used_note; case "${enableval}" in
11539 yes) ac_default_generate_x86_used_note=1 ;;
11540 no) ac_default_generate_x86_used_note=0 ;;
11541 esac
11542 fi
11543
11544 # Decide if the RISC-V ELF assembler should default to generating attribute.
11545 ac_default_generate_riscv_attr=unset
11546 # Provide a configuration option to override the default.
11547 # Check whether --enable-default-riscv-attribute was given.
11548 if test "${enable_default_riscv_attribute+set}" = set; then :
11549 enableval=$enable_default_riscv_attribute; case "${enableval}" in
11550 yes) ac_default_generate_riscv_attr=1 ;;
11551 no) ac_default_generate_riscv_attr=0 ;;
11552 esac
11553 fi
11554
11555 using_cgen=no
11556
11557
11558 # Set the 'development' global.
11559 . $srcdir/../bfd/development.sh
11560
11561 # Set acp_cpp_for_build variable
11562 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11563
11564 # Default set of GCC warnings to enable.
11565 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11566 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11567
11568 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11571 __GNUC__
11572 _ACEOF
11573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11574 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11575
11576 else
11577 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11578 fi
11579 rm -f conftest*
11580
11581
11582 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11585 __GNUC__
11586 _ACEOF
11587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11588 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11589
11590 else
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11593 __clang__
11594 _ACEOF
11595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11596 $EGREP "^__clang__$" >/dev/null 2>&1; then :
11597 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11598 fi
11599 rm -f conftest*
11600
11601 fi
11602 rm -f conftest*
11603
11604
11605 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11606 WARN_WRITE_STRINGS=""
11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11609 __GNUC__
11610 _ACEOF
11611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11612 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11613
11614 else
11615 WARN_WRITE_STRINGS="-Wwrite-strings"
11616 fi
11617 rm -f conftest*
11618
11619
11620 # Verify CC_FOR_BUILD to be compatible with warning flags
11621
11622 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11625 __GNUC__
11626 _ACEOF
11627 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11628 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11629
11630 else
11631 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
11632 fi
11633 rm -f conftest*
11634
11635
11636 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11639 __GNUC__
11640 _ACEOF
11641 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11642 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11643
11644 else
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647 __clang__
11648 _ACEOF
11649 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11650 $EGREP "^__clang__$" >/dev/null 2>&1; then :
11651 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
11652 fi
11653 rm -f conftest*
11654
11655 fi
11656 rm -f conftest*
11657
11658
11659 # Check whether --enable-werror was given.
11660 if test "${enable_werror+set}" = set; then :
11661 enableval=$enable_werror; case "${enableval}" in
11662 yes | y) ERROR_ON_WARNING="yes" ;;
11663 no | n) ERROR_ON_WARNING="no" ;;
11664 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11665 esac
11666 fi
11667
11668
11669 # Disable -Wformat by default when using gcc on mingw
11670 case "${host}" in
11671 *-*-mingw32*)
11672 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11673 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11674 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
11675 fi
11676 ;;
11677 *) ;;
11678 esac
11679
11680 # Enable -Werror by default when using gcc. Turn it off for releases.
11681 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11682 ERROR_ON_WARNING=yes
11683 fi
11684
11685 NO_WERROR=
11686 if test "${ERROR_ON_WARNING}" = yes ; then
11687 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11688 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
11689 NO_WERROR="-Wno-error"
11690 fi
11691
11692 if test "${GCC}" = yes ; then
11693 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11694 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
11695 fi
11696
11697 # Check whether --enable-build-warnings was given.
11698 if test "${enable_build_warnings+set}" = set; then :
11699 enableval=$enable_build_warnings; case "${enableval}" in
11700 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11701 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
11702 no) if test "${GCC}" = yes ; then
11703 WARN_CFLAGS="-w"
11704 WARN_CFLAGS_FOR_BUILD="-w"
11705 fi;;
11706 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11707 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
11708 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
11709 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11710 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
11711 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
11712 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
11713 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11714 esac
11715 fi
11716
11717
11718 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11719 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11720 fi
11721
11722
11723
11724
11725
11726
11727
11728 # Generate a header file
11729 ac_config_headers="$ac_config_headers config.h:config.in"
11730
11731
11732
11733 # Check whether --with-cpu was given.
11734 if test "${with_cpu+set}" = set; then :
11735 withval=$with_cpu;
11736 cat >>confdefs.h <<_ACEOF
11737 #define TARGET_WITH_CPU "${with_cpu}"
11738 _ACEOF
11739
11740 fi
11741
11742
11743 # PR 14072
11744
11745
11746 # If we are on a DOS filesystem, we must use gdb.ini rather than
11747 # .gdbinit.
11748 case "${host}" in
11749 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11750 GDBINIT="gdb.ini"
11751 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11752
11753 ;;
11754 *)
11755 GDBINIT=".gdbinit"
11756 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11757
11758 ;;
11759 esac
11760
11761
11762 #We need this for the host.
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11764 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11765 if ${ac_cv_c_bigendian+:} false; then :
11766 $as_echo_n "(cached) " >&6
11767 else
11768 ac_cv_c_bigendian=unknown
11769 # See if we're dealing with a universal compiler.
11770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771 /* end confdefs.h. */
11772 #ifndef __APPLE_CC__
11773 not a universal capable compiler
11774 #endif
11775 typedef int dummy;
11776
11777 _ACEOF
11778 if ac_fn_c_try_compile "$LINENO"; then :
11779
11780 # Check for potential -arch flags. It is not universal unless
11781 # there are at least two -arch flags with different values.
11782 ac_arch=
11783 ac_prev=
11784 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11785 if test -n "$ac_prev"; then
11786 case $ac_word in
11787 i?86 | x86_64 | ppc | ppc64)
11788 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11789 ac_arch=$ac_word
11790 else
11791 ac_cv_c_bigendian=universal
11792 break
11793 fi
11794 ;;
11795 esac
11796 ac_prev=
11797 elif test "x$ac_word" = "x-arch"; then
11798 ac_prev=arch
11799 fi
11800 done
11801 fi
11802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803 if test $ac_cv_c_bigendian = unknown; then
11804 # See if sys/param.h defines the BYTE_ORDER macro.
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11807 #include <sys/types.h>
11808 #include <sys/param.h>
11809
11810 int
11811 main ()
11812 {
11813 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11814 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11815 && LITTLE_ENDIAN)
11816 bogus endian macros
11817 #endif
11818
11819 ;
11820 return 0;
11821 }
11822 _ACEOF
11823 if ac_fn_c_try_compile "$LINENO"; then :
11824 # It does; now see whether it defined to BIG_ENDIAN or not.
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11827 #include <sys/types.h>
11828 #include <sys/param.h>
11829
11830 int
11831 main ()
11832 {
11833 #if BYTE_ORDER != BIG_ENDIAN
11834 not big endian
11835 #endif
11836
11837 ;
11838 return 0;
11839 }
11840 _ACEOF
11841 if ac_fn_c_try_compile "$LINENO"; then :
11842 ac_cv_c_bigendian=yes
11843 else
11844 ac_cv_c_bigendian=no
11845 fi
11846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11847 fi
11848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11849 fi
11850 if test $ac_cv_c_bigendian = unknown; then
11851 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854 #include <limits.h>
11855
11856 int
11857 main ()
11858 {
11859 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11860 bogus endian macros
11861 #endif
11862
11863 ;
11864 return 0;
11865 }
11866 _ACEOF
11867 if ac_fn_c_try_compile "$LINENO"; then :
11868 # It does; now see whether it defined to _BIG_ENDIAN or not.
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11871 #include <limits.h>
11872
11873 int
11874 main ()
11875 {
11876 #ifndef _BIG_ENDIAN
11877 not big endian
11878 #endif
11879
11880 ;
11881 return 0;
11882 }
11883 _ACEOF
11884 if ac_fn_c_try_compile "$LINENO"; then :
11885 ac_cv_c_bigendian=yes
11886 else
11887 ac_cv_c_bigendian=no
11888 fi
11889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11890 fi
11891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11892 fi
11893 if test $ac_cv_c_bigendian = unknown; then
11894 # Compile a test program.
11895 if test "$cross_compiling" = yes; then :
11896 # Try to guess by grepping values from an object file.
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11899 short int ascii_mm[] =
11900 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11901 short int ascii_ii[] =
11902 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11903 int use_ascii (int i) {
11904 return ascii_mm[i] + ascii_ii[i];
11905 }
11906 short int ebcdic_ii[] =
11907 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11908 short int ebcdic_mm[] =
11909 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11910 int use_ebcdic (int i) {
11911 return ebcdic_mm[i] + ebcdic_ii[i];
11912 }
11913 extern int foo;
11914
11915 int
11916 main ()
11917 {
11918 return use_ascii (foo) == use_ebcdic (foo);
11919 ;
11920 return 0;
11921 }
11922 _ACEOF
11923 if ac_fn_c_try_compile "$LINENO"; then :
11924 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11925 ac_cv_c_bigendian=yes
11926 fi
11927 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11928 if test "$ac_cv_c_bigendian" = unknown; then
11929 ac_cv_c_bigendian=no
11930 else
11931 # finding both strings is unlikely to happen, but who knows?
11932 ac_cv_c_bigendian=unknown
11933 fi
11934 fi
11935 fi
11936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 else
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11940 $ac_includes_default
11941 int
11942 main ()
11943 {
11944
11945 /* Are we little or big endian? From Harbison&Steele. */
11946 union
11947 {
11948 long int l;
11949 char c[sizeof (long int)];
11950 } u;
11951 u.l = 1;
11952 return u.c[sizeof (long int) - 1] == 1;
11953
11954 ;
11955 return 0;
11956 }
11957 _ACEOF
11958 if ac_fn_c_try_run "$LINENO"; then :
11959 ac_cv_c_bigendian=no
11960 else
11961 ac_cv_c_bigendian=yes
11962 fi
11963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11964 conftest.$ac_objext conftest.beam conftest.$ac_ext
11965 fi
11966
11967 fi
11968 fi
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11970 $as_echo "$ac_cv_c_bigendian" >&6; }
11971 case $ac_cv_c_bigendian in #(
11972 yes)
11973 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11974 ;; #(
11975 no)
11976 ;; #(
11977 universal)
11978
11979 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11980
11981 ;; #(
11982 *)
11983 as_fn_error $? "unknown endianness
11984 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11985 esac
11986
11987
11988 te_file=generic
11989
11990 # Makefile target for installing gas in $(tooldir)/bin.
11991 install_tooldir=install-exec-tooldir
11992
11993 canon_targets=""
11994 all_targets=no
11995 if test -n "$enable_targets" ; then
11996 for t in `echo $enable_targets | sed 's/,/ /g'`; do
11997 if test $t = "all"; then
11998 all_targets=yes
11999 continue
12000 fi
12001 result=`$ac_config_sub $t 2>/dev/null`
12002 if test -n "$result" ; then
12003 canon_targets="$canon_targets $result"
12004 # else
12005 # # Permit "all", etc. We don't support it yet though.
12006 # canon_targets="$canon_targets $t"
12007 fi
12008 done
12009 _gas_uniq_list="$canon_targets"
12010 _gas_uniq_newlist=""
12011 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12012 case $_gas_uniq_i in
12013 _gas_uniq_dummy) ;;
12014 *) case " $_gas_uniq_newlist " in
12015 *" $_gas_uniq_i "*) ;;
12016 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12017 esac ;;
12018 esac
12019 done
12020 canon_targets=$_gas_uniq_newlist
12021
12022 fi
12023
12024 emulations=""
12025
12026 for this_target in $target $canon_targets ; do
12027
12028 targ=${this_target}
12029 . ${srcdir}/configure.tgt
12030
12031 case ${target_cpu} in
12032 crisv32)
12033
12034 cat >>confdefs.h <<_ACEOF
12035 #define DEFAULT_CRIS_ARCH $arch
12036 _ACEOF
12037
12038 ;;
12039 esac
12040
12041 if test ${this_target} = $target ; then
12042 target_cpu_type=${cpu_type}
12043 elif test ${target_cpu_type} != ${cpu_type} ; then
12044 continue
12045 fi
12046
12047 generic_target=${cpu_type}-${target_vendor}-${target_os}
12048 case ${generic_target} in
12049 i386-*-msdosdjgpp* \
12050 | i386-*-go32* \
12051 | i386-go32-rtems*)
12052
12053 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12054
12055 ;;
12056
12057 i386-*-linux-* | x86_64-*-linux-*)
12058 if test ${this_target} = $target \
12059 && test ${ac_default_generate_x86_used_note} = unset; then
12060 ac_default_generate_x86_used_note=1
12061 fi
12062 ;;
12063
12064 i386-*-solaris2 \
12065 | x86_64-*-solaris2 \
12066 | i386-*-solaris2.[0-9] \
12067 | i386-*-solaris2.1[01] \
12068 | x86_64-*-solaris2.1[01])
12069 if test ${this_target} = $target \
12070 && test ${ac_default_x86_relax_relocations} = unset; then
12071 ac_default_x86_relax_relocations=0
12072 fi
12073 ;;
12074
12075 microblaze*)
12076 ;;
12077
12078 ppc-*-aix[5-9].*)
12079
12080 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12081
12082 ;;
12083 ppc-*-solaris*)
12084 if test ${this_target} = $target; then
12085
12086 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12087
12088 fi
12089 if test x${endian} = xbig; then
12090 as_fn_error $? "Solaris must be configured little endian" "$LINENO" 5
12091 fi
12092 ;;
12093 esac
12094
12095 if test ${this_target} = $target ; then
12096 endian_def=
12097 if test x${endian} = xbig; then
12098 endian_def=1
12099 elif test x${endian} = xlittle; then
12100 endian_def=0
12101 fi
12102 if test x${endian_def} != x; then
12103
12104 cat >>confdefs.h <<_ACEOF
12105 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12106 _ACEOF
12107
12108 fi
12109 fi
12110
12111 # Other random stuff.
12112
12113 case ${cpu_type} in
12114 mips)
12115 # Set mips_cpu to the name of the default CPU.
12116 case ${target_cpu} in
12117 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12118 mips_cpu=from-abi
12119 ;;
12120 mipsisa32 | mipsisa32el)
12121 mips_cpu=mips32
12122 ;;
12123 mipsisa32r2 | mipsisa32r2el)
12124 mips_cpu=mips32r2
12125 ;;
12126 mipsisa32r3 | mipsisa32r3el)
12127 mips_cpu=mips32r3
12128 ;;
12129 mipsisa32r5 | mipsisa32r5el)
12130 mips_cpu=mips32r5
12131 ;;
12132 mipsisa32r6 | mipsisa32r6el)
12133 mips_cpu=mips32r6
12134 ;;
12135 mipsisa64 | mipsisa64el)
12136 mips_cpu=mips64
12137 ;;
12138 mipsisa64r2 | mipsisa64r2el)
12139 mips_cpu=mips64r2
12140 ;;
12141 mipsisa64r3 | mipsisa64r3el)
12142 mips_cpu=mips64r3
12143 ;;
12144 mipsisa64r5 | mipsisa64r5el)
12145 mips_cpu=mips64r5
12146 ;;
12147 mipsisa64r6 | mipsisa64r6el)
12148 mips_cpu=mips64r6
12149 ;;
12150 mipstx39 | mipstx39el)
12151 mips_cpu=r3900
12152 ;;
12153 mips64vr | mips64vrel)
12154 mips_cpu=vr4100
12155 ;;
12156 mipsisa32r2* | mipsisa64r2*)
12157 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12158 ;;
12159 mipsisa32r6* | mipsisa64r6*)
12160 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12161 ;;
12162 mips64* | mipsisa64* | mipsisa32*)
12163 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12164 ;;
12165 mips*)
12166 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12167 ;;
12168 *)
12169 as_fn_error $? "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12170 ;;
12171 esac
12172 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12173 # binaries. It's a GNU extension that some OSes don't understand.
12174 case ${target} in
12175 *-*-irix*)
12176 use_e_mips_abi_o32=0
12177 ;;
12178 *)
12179 use_e_mips_abi_o32=1
12180 ;;
12181 esac
12182 # Decide whether to generate 32-bit or 64-bit code by default.
12183 # Used to resolve -march=from-abi when an embedded ABI is selected.
12184 case ${target} in
12185 mips64*-*-* | mipsisa64*-*-*)
12186 mips_default_64bit=1
12187 ;;
12188 *)
12189 mips_default_64bit=0
12190 ;;
12191 esac
12192 # Decide which ABI to target by default.
12193 case ${target} in
12194 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \
12195 | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*)
12196 mips_default_abi=N32_ABI
12197 ;;
12198 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12199 mips_default_abi=O32_ABI
12200 ;;
12201 mips64*-openbsd*)
12202 mips_default_abi=N64_ABI
12203 ;;
12204 *)
12205 mips_default_abi=NO_ABI
12206 ;;
12207 esac
12208
12209 cat >>confdefs.h <<_ACEOF
12210 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12211 _ACEOF
12212
12213
12214 cat >>confdefs.h <<_ACEOF
12215 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12216 _ACEOF
12217
12218
12219 cat >>confdefs.h <<_ACEOF
12220 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12221 _ACEOF
12222
12223
12224 cat >>confdefs.h <<_ACEOF
12225 #define MIPS_DEFAULT_ABI $mips_default_abi
12226 _ACEOF
12227
12228 ;;
12229 esac
12230
12231 # Do we need the opcodes library?
12232 case ${cpu_type} in
12233 vax | tic30)
12234 ;;
12235
12236 *)
12237 need_opcodes=yes
12238
12239 case "${enable_shared}" in
12240 yes) shared_opcodes=true ;;
12241 *opcodes*) shared_opcodes=true ;;
12242 *) shared_opcodes=false ;;
12243 esac
12244 ;;
12245 esac
12246
12247 # Any other special object files needed ?
12248 case ${cpu_type} in
12249
12250 bfin)
12251 for f in config/bfin-parse.o config/bfin-lex-wrapper.o; do
12252 case " $extra_objects " in
12253 *" $f "*) ;;
12254 *) extra_objects="$extra_objects $f" ;;
12255 esac
12256 done
12257 ;;
12258
12259 bpf)
12260 if test $this_target = $target ; then
12261
12262 cat >>confdefs.h <<_ACEOF
12263 #define DEFAULT_ARCH "${arch}"
12264 _ACEOF
12265
12266 fi
12267 using_cgen=yes
12268 ;;
12269 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12270 using_cgen=yes
12271 ;;
12272
12273 loongarch)
12274 for f in config/loongarch-parse.o config/loongarch-lex-wrapper.o; do
12275 case " $extra_objects " in
12276 *" $f "*) ;;
12277 *) extra_objects="$extra_objects $f" ;;
12278 esac
12279 done
12280 # --target=loongarch[32|64]-*-*. */
12281 if test $this_target = $target ; then
12282
12283 cat >>confdefs.h <<_ACEOF
12284 #define DEFAULT_ARCH "${arch}"
12285 _ACEOF
12286
12287 fi
12288 ;;
12289
12290 m32c)
12291 using_cgen=yes
12292 ;;
12293 frv)
12294 using_cgen=yes
12295 ;;
12296 m68k)
12297 f=config/m68k-parse.o
12298 case " $extra_objects " in
12299 *" $f "*) ;;
12300 *) extra_objects="$extra_objects $f" ;;
12301 esac
12302 ;;
12303
12304 mep)
12305 using_cgen=yes
12306 ;;
12307
12308 mips)
12309 for f in itbl-parse.o itbl-lex-wrapper.o itbl-ops.o; do
12310 case " $extra_objects " in
12311 *" $f "*) ;;
12312 *) extra_objects="$extra_objects $f" ;;
12313 esac
12314 done
12315 ;;
12316
12317 mt)
12318 using_cgen=yes
12319 ;;
12320
12321 nds32)
12322 # setup NDS32_LINUX_TOOLCHAIN definition
12323 if test "linux" = $em; then
12324
12325 $as_echo "#define NDS32_LINUX_TOOLCHAIN 1" >>confdefs.h
12326
12327 else
12328
12329 $as_echo "#define NDS32_LINUX_TOOLCHAIN 0" >>confdefs.h
12330
12331 fi
12332
12333 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12334 # based on arch_name.
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12336 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12337 if test "x${with_arch}" != x; then
12338 case ${with_arch} in
12339 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12340
12341 cat >>confdefs.h <<_ACEOF
12342 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12343 _ACEOF
12344
12345 ;;
12346 *)
12347 as_fn_error $? "This kind of arch name does *NOT* exist!" "$LINENO" 5
12348 ;;
12349 esac
12350 fi
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12352 $as_echo "$with_arch" >&6; }
12353
12354 # Decide features one by one.
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12356 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12357 if test "x${enable_dx_regs}" = xyes; then
12358
12359 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12360
12361 else
12362
12363 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12364
12365 fi
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12367 $as_echo "$enable_dx_regs" >&6; }
12368
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12370 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12371 if test "x${enable_perf_ext}" = xno; then
12372
12373 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12374
12375 else
12376
12377 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12378
12379 fi
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12381 $as_echo "$enable_perf_ext" >&6; }
12382
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12384 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12385 if test "x${enable_perf_ext2}" = xno; then
12386
12387 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12388
12389 else
12390
12391 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12392
12393 fi
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12395 $as_echo "$enable_perf_ext2" >&6; }
12396
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12398 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12399 if test "x${enable_string_ext}" = xno; then
12400
12401 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12402
12403 else
12404
12405 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12406
12407 fi
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12409 $as_echo "$enable_string_ext" >&6; }
12410
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12412 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12413 if test "x${enable_audio_ext}" = xno; then
12414
12415 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12416
12417 else
12418
12419 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12420
12421 fi
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12423 $as_echo "$enable_audio_ext" >&6; }
12424
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dsp-ext" >&5
12426 $as_echo_n "checking for default configuration of --enable-dsp-ext... " >&6; }
12427 if test "x${enable_dsp_ext}" = xno; then
12428
12429 $as_echo "#define NDS32_DEFAULT_DSP_EXT 0" >>confdefs.h
12430
12431 else
12432
12433 $as_echo "#define NDS32_DEFAULT_DSP_EXT 1" >>confdefs.h
12434
12435 fi
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dsp_ext" >&5
12437 $as_echo "$enable_dsp_ext" >&6; }
12438
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-zol-ext" >&5
12440 $as_echo_n "checking for default configuration of --enable-zol-ext... " >&6; }
12441 if test "x${enable_zol_ext}" = xno; then
12442
12443 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 0" >>confdefs.h
12444
12445 else
12446
12447 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 1" >>confdefs.h
12448
12449 fi
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zol_ext" >&5
12451 $as_echo "$enable_zol_ext" >&6; }
12452 ;;
12453
12454 aarch64 | i386 | s390 | sparc)
12455 if test $this_target = $target ; then
12456
12457 cat >>confdefs.h <<_ACEOF
12458 #define DEFAULT_ARCH "${arch}"
12459 _ACEOF
12460
12461 fi
12462 ;;
12463
12464 riscv)
12465 # --target=riscv[32|64]-*-*. */
12466 if test $this_target = $target ; then
12467
12468 cat >>confdefs.h <<_ACEOF
12469 #define DEFAULT_ARCH "${arch}"
12470 _ACEOF
12471
12472 fi
12473
12474 # --with-arch=<value>. The syntax of <value> is same as Gas option -march.
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12476 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12477 if test "x${with_arch}" != x; then
12478
12479 cat >>confdefs.h <<_ACEOF
12480 #define DEFAULT_RISCV_ARCH_WITH_EXT "$with_arch"
12481 _ACEOF
12482
12483 fi
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12485 $as_echo "$with_arch" >&6; }
12486
12487 # --with-isa-spec=[2.2|20190608|20191213].
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-isa-spec" >&5
12489 $as_echo_n "checking for default configuration of --with-isa-spec... " >&6; }
12490 if test "x${with_isa_spec}" != x; then
12491
12492 cat >>confdefs.h <<_ACEOF
12493 #define DEFAULT_RISCV_ISA_SPEC "$with_isa_spec"
12494 _ACEOF
12495
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_isa_spec" >&5
12498 $as_echo "$with_isa_spec" >&6; }
12499
12500 # --with-priv-spec=[1.9.1|1.10|1.11|1.12].
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-priv-spec" >&5
12502 $as_echo_n "checking for default configuration of --with-priv-spec... " >&6; }
12503 if test "x${with_priv_spec}" != x; then
12504
12505 cat >>confdefs.h <<_ACEOF
12506 #define DEFAULT_RISCV_PRIV_SPEC "$with_priv_spec"
12507 _ACEOF
12508
12509 fi
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_priv_spec" >&5
12511 $as_echo "$with_priv_spec" >&6; }
12512 ;;
12513
12514 rl78)
12515 f=config/rl78-parse.o
12516 case " $extra_objects " in
12517 *" $f "*) ;;
12518 *) extra_objects="$extra_objects $f" ;;
12519 esac
12520 ;;
12521
12522 rx)
12523 f=config/rx-parse.o
12524 case " $extra_objects " in
12525 *" $f "*) ;;
12526 *) extra_objects="$extra_objects $f" ;;
12527 esac
12528 ;;
12529
12530 xstormy16)
12531 using_cgen=yes
12532 ;;
12533
12534 xtensa)
12535 f=config/xtensa-relax.o
12536 case " $extra_objects " in
12537 *" $f "*) ;;
12538 *) extra_objects="$extra_objects $f" ;;
12539 esac
12540 ;;
12541
12542 *)
12543 ;;
12544 esac
12545
12546 if test $using_cgen = yes ; then
12547 f=cgen.o
12548 case " $extra_objects " in
12549 *" $f "*) ;;
12550 *) extra_objects="$extra_objects $f" ;;
12551 esac
12552 fi
12553
12554 # See if we really can support this configuration with the emulation code.
12555
12556 if test $this_target = $target ; then
12557 obj_format=$fmt
12558 te_file=$em
12559 fi
12560
12561 case ${te_file} in
12562 vms)
12563 f=config/te-vms.o
12564 case " $extra_objects " in
12565 *" $f "*) ;;
12566 *) extra_objects="$extra_objects $f" ;;
12567 esac ;;
12568 esac
12569
12570 # From target name and format, produce a list of supported emulations.
12571
12572 case ${generic_target}-${fmt} in
12573 mips-*-*-*) case "$endian" in
12574 big) emulation="mipsbelf mipslelf mipself" ;;
12575 *) emulation="mipslelf mipsbelf mipself" ;;
12576 esac ;;
12577 # i386-pc-pe-coff != i386-pc-coff.
12578 i386-*-pe-coff) ;;
12579 # Uncommenting the next line will turn on support for i386 AOUT
12580 # for the default linux configuration
12581 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12582 #
12583 i386-*-aout) emulation="i386aout" ;;
12584 i386-*-coff) emulation="i386coff" ;;
12585 i386-*-elf) emulation="i386elf" ;;
12586
12587 # Always all formats. The first stated emulation becomes the default.
12588 cris-*-*aout*) emulation="crisaout criself" ;;
12589 cris-*-*) emulation="criself crisaout" ;;
12590 esac
12591
12592 emulations="$emulations $emulation"
12593
12594 done
12595
12596 if test ${ac_default_x86_relax_relocations} = unset; then
12597 ac_default_x86_relax_relocations=1
12598 fi
12599
12600 cat >>confdefs.h <<_ACEOF
12601 #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
12602 _ACEOF
12603
12604
12605 if test ${ac_default_elf_stt_common} = unset; then
12606 ac_default_elf_stt_common=0
12607 fi
12608
12609 cat >>confdefs.h <<_ACEOF
12610 #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
12611 _ACEOF
12612
12613
12614
12615 cat >>confdefs.h <<_ACEOF
12616 #define DEFAULT_GENERATE_BUILD_NOTES $ac_default_generate_build_notes
12617 _ACEOF
12618
12619
12620 if test ${ac_default_generate_x86_used_note} = unset; then
12621 ac_default_generate_x86_used_note=0
12622 fi
12623
12624 cat >>confdefs.h <<_ACEOF
12625 #define DEFAULT_X86_USED_NOTE $ac_default_generate_x86_used_note
12626 _ACEOF
12627
12628
12629 if test ${ac_default_generate_riscv_attr} = unset; then
12630 ac_default_generate_riscv_attr=1
12631 fi
12632
12633
12634 cat >>confdefs.h <<_ACEOF
12635 #define DEFAULT_RISCV_ATTR $ac_default_generate_riscv_attr
12636 _ACEOF
12637
12638
12639 if test ${ac_default_mips_fix_loongson3_llsc} = unset; then
12640 ac_default_mips_fix_loongson3_llsc=0
12641 fi
12642
12643 cat >>confdefs.h <<_ACEOF
12644 #define DEFAULT_MIPS_FIX_LOONGSON3_LLSC $ac_default_mips_fix_loongson3_llsc
12645 _ACEOF
12646
12647
12648 if test x$ac_default_compressed_debug_sections = xyes ; then
12649
12650 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12651
12652 fi
12653
12654 # Turn on all targets if possible
12655 if test ${all_targets} = "yes"; then
12656 case ${target_cpu_type} in
12657 i386)
12658 case ${obj_format} in
12659 aout)
12660 emulations="$emulations i386coff i386elf"
12661 ;;
12662 coff)
12663 emulations="$emulations i386aout i386elf"
12664 ;;
12665 elf)
12666 emulations="$emulations i386aout i386coff"
12667 ;;
12668 esac
12669 ;;
12670 x86_64)
12671 case ${obj_format} in
12672 aout)
12673 emulations="$emulations i386coff i386elf"
12674 ;;
12675 coff)
12676 emulations="$emulations i386aout i386elf"
12677 ;;
12678 elf)
12679 emulations="$emulations i386aout i386coff"
12680 ;;
12681 esac
12682 ;;
12683 esac
12684 fi
12685
12686 # PE code has way too many macros tweaking behaviour
12687 case ${te_file} in
12688 pe*) emulations="" ;;
12689 esac
12690
12691 # Assign floating point type. Most processors with FP support
12692 # IEEE FP. On those that don't support FP at all, usually IEEE
12693 # is emulated.
12694 case ${target_cpu} in
12695 vax | pdp11 ) atof=vax ;;
12696 *) atof=ieee ;;
12697 esac
12698
12699 case "${obj_format}" in
12700 "") as_fn_error $? "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12701 esac
12702
12703 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12704 cgen_cpu_prefix=""
12705 if test $using_cgen = yes ; then
12706 case ${target_cpu} in
12707 or1knd)
12708 cgen_cpu_prefix=or1k ;;
12709 *) cgen_cpu_prefix=${target_cpu} ;;
12710 esac
12711
12712
12713 $as_echo "#define USING_CGEN 1" >>confdefs.h
12714
12715 fi
12716
12717
12718 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12719 as_fn_error $? "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12720 fi
12721
12722 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12723 as_fn_error $? "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12724 fi
12725
12726 # Some COFF configurations want these random other flags set.
12727 case ${obj_format} in
12728 coff)
12729 case ${target_cpu_type} in
12730 i386)
12731 $as_echo "#define I386COFF 1" >>confdefs.h
12732 ;;
12733 x86_64)
12734 $as_echo "#define I386COFF 1" >>confdefs.h
12735 ;;
12736 esac
12737 ;;
12738 esac
12739
12740 # Getting this done right is going to be a bitch. Each configuration specified
12741 # with --enable-targets=... should be checked for environment, format, cpu
12742 # setting.
12743 #
12744 # For each configuration, the necessary object file support code must be linked
12745 # in. This might be only one, it might be up to four. The necessary emulation
12746 # code needs to be provided, too.
12747 #
12748 # And then there's "--enable-targets=all"....
12749 #
12750 # For now, just always do it for MIPS ELF configurations. Sigh.
12751
12752 formats="${obj_format}"
12753 emfiles=""
12754 EMULATIONS=""
12755 _gas_uniq_list="$emulations"
12756 _gas_uniq_newlist=""
12757 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12758 case $_gas_uniq_i in
12759 _gas_uniq_dummy) ;;
12760 *) case " $_gas_uniq_newlist " in
12761 *" $_gas_uniq_i "*) ;;
12762 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12763 esac ;;
12764 esac
12765 done
12766 emulations=$_gas_uniq_newlist
12767
12768 for em in . $emulations ; do
12769 case $em in
12770 .) continue ;;
12771 mipsbelf | mipslelf | mipself)
12772 fmt=elf file=mipself ;;
12773 *coff)
12774 fmt=coff file=$em ;;
12775 *aout)
12776 fmt=aout file=$em ;;
12777 *elf)
12778 fmt=elf file=$em ;;
12779 esac
12780 formats="$formats $fmt"
12781 emfiles="$emfiles config/e-$file.o"
12782 EMULATIONS="$EMULATIONS &$em,"
12783 done
12784 _gas_uniq_list="$formats"
12785 _gas_uniq_newlist=""
12786 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12787 case $_gas_uniq_i in
12788 _gas_uniq_dummy) ;;
12789 *) case " $_gas_uniq_newlist " in
12790 *" $_gas_uniq_i "*) ;;
12791 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12792 esac ;;
12793 esac
12794 done
12795 formats=$_gas_uniq_newlist
12796
12797 _gas_uniq_list="$emfiles"
12798 _gas_uniq_newlist=""
12799 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12800 case $_gas_uniq_i in
12801 _gas_uniq_dummy) ;;
12802 *) case " $_gas_uniq_newlist " in
12803 *" $_gas_uniq_i "*) ;;
12804 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12805 esac ;;
12806 esac
12807 done
12808 emfiles=$_gas_uniq_newlist
12809
12810 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12811 for fmt in $formats ; do
12812 case $fmt in
12813 aout)
12814 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12815 ;;
12816 coff)
12817 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12818 ;;
12819 ecoff)
12820 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12821 ;;
12822 elf)
12823 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12824 ;;
12825 generic)
12826 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12827 ;;
12828 som)
12829 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12830 ;;
12831 esac
12832 extra_objects="$extra_objects config/obj-$fmt.o"
12833 done
12834 obj_format=multi
12835 fi
12836 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12837 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12838 # e-mipself has more than one emulation per file, e-i386* has just one at the
12839 # moment. If only one emulation is specified, then don't define
12840 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12841 case "${obj_format}${emfiles}" in
12842 multi* | *mipself*)
12843 extra_objects="$extra_objects $emfiles"
12844
12845 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12846 ;;
12847 esac
12848 fi
12849
12850
12851 cat >>confdefs.h <<_ACEOF
12852 #define EMULATIONS $EMULATIONS
12853 _ACEOF
12854
12855
12856 cat >>confdefs.h <<_ACEOF
12857 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12858 _ACEOF
12859
12860
12861 reject_dev_configs=yes
12862
12863 case ${reject_dev_configs}-${dev} in
12864 yes-yes) # Oops.
12865 as_fn_error $? "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12866 ;;
12867 esac
12868
12869
12870
12871
12872
12873
12874
12875 # do we need the opcodes library?
12876 case "${need_opcodes}" in
12877 yes)
12878 OPCODES_LIB=../opcodes/libopcodes.la
12879 ;;
12880 esac
12881
12882
12883
12884
12885 cat >>confdefs.h <<_ACEOF
12886 #define TARGET_ALIAS "${target_alias}"
12887 _ACEOF
12888
12889
12890 cat >>confdefs.h <<_ACEOF
12891 #define TARGET_CANONICAL "${target}"
12892 _ACEOF
12893
12894
12895 cat >>confdefs.h <<_ACEOF
12896 #define TARGET_CPU "${target_cpu}"
12897 _ACEOF
12898
12899
12900 cat >>confdefs.h <<_ACEOF
12901 #define TARGET_VENDOR "${target_vendor}"
12902 _ACEOF
12903
12904
12905 cat >>confdefs.h <<_ACEOF
12906 #define TARGET_OS "${target_os}"
12907 _ACEOF
12908
12909
12910 for ac_prog in 'bison -y' byacc
12911 do
12912 # Extract the first word of "$ac_prog", so it can be a program name with args.
12913 set dummy $ac_prog; ac_word=$2
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12915 $as_echo_n "checking for $ac_word... " >&6; }
12916 if ${ac_cv_prog_YACC+:} false; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 if test -n "$YACC"; then
12920 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12921 else
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12924 do
12925 IFS=$as_save_IFS
12926 test -z "$as_dir" && as_dir=.
12927 for ac_exec_ext in '' $ac_executable_extensions; do
12928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12929 ac_cv_prog_YACC="$ac_prog"
12930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12931 break 2
12932 fi
12933 done
12934 done
12935 IFS=$as_save_IFS
12936
12937 fi
12938 fi
12939 YACC=$ac_cv_prog_YACC
12940 if test -n "$YACC"; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12942 $as_echo "$YACC" >&6; }
12943 else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12946 fi
12947
12948
12949 test -n "$YACC" && break
12950 done
12951 test -n "$YACC" || YACC="yacc"
12952
12953 for ac_prog in flex lex
12954 do
12955 # Extract the first word of "$ac_prog", so it can be a program name with args.
12956 set dummy $ac_prog; ac_word=$2
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12958 $as_echo_n "checking for $ac_word... " >&6; }
12959 if ${ac_cv_prog_LEX+:} false; then :
12960 $as_echo_n "(cached) " >&6
12961 else
12962 if test -n "$LEX"; then
12963 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12964 else
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $PATH
12967 do
12968 IFS=$as_save_IFS
12969 test -z "$as_dir" && as_dir=.
12970 for ac_exec_ext in '' $ac_executable_extensions; do
12971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12972 ac_cv_prog_LEX="$ac_prog"
12973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12974 break 2
12975 fi
12976 done
12977 done
12978 IFS=$as_save_IFS
12979
12980 fi
12981 fi
12982 LEX=$ac_cv_prog_LEX
12983 if test -n "$LEX"; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12985 $as_echo "$LEX" >&6; }
12986 else
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988 $as_echo "no" >&6; }
12989 fi
12990
12991
12992 test -n "$LEX" && break
12993 done
12994 test -n "$LEX" || LEX=":"
12995
12996 case "$LEX" in
12997 :|*"missing "*) ;;
12998 *) cat >conftest.l <<_ACEOF
12999 %%
13000 a { ECHO; }
13001 b { REJECT; }
13002 c { yymore (); }
13003 d { yyless (1); }
13004 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
13005 yyless ((input () != 0)); }
13006 f { unput (yytext[0]); }
13007 . { BEGIN INITIAL; }
13008 %%
13009 #ifdef YYTEXT_POINTER
13010 extern char *yytext;
13011 #endif
13012 int
13013 main (void)
13014 {
13015 return ! yylex () + ! yywrap ();
13016 }
13017 _ACEOF
13018 { { ac_try="$LEX conftest.l"
13019 case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022 esac
13023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13024 $as_echo "$ac_try_echo"; } >&5
13025 (eval "$LEX conftest.l") 2>&5
13026 ac_status=$?
13027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13028 test $ac_status = 0; }
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13030 $as_echo_n "checking lex output file root... " >&6; }
13031 if ${ac_cv_prog_lex_root+:} false; then :
13032 $as_echo_n "(cached) " >&6
13033 else
13034
13035 if test -f lex.yy.c; then
13036 ac_cv_prog_lex_root=lex.yy
13037 elif test -f lexyy.c; then
13038 ac_cv_prog_lex_root=lexyy
13039 else
13040 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13041 fi
13042 fi
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13044 $as_echo "$ac_cv_prog_lex_root" >&6; }
13045 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13046
13047 if test -z "${LEXLIB+set}"; then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13049 $as_echo_n "checking lex library... " >&6; }
13050 if ${ac_cv_lib_lex+:} false; then :
13051 $as_echo_n "(cached) " >&6
13052 else
13053
13054 ac_save_LIBS=$LIBS
13055 ac_cv_lib_lex='none needed'
13056 for ac_lib in '' -lfl -ll; do
13057 LIBS="$ac_lib $ac_save_LIBS"
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060 `cat $LEX_OUTPUT_ROOT.c`
13061 _ACEOF
13062 if ac_fn_c_try_link "$LINENO"; then :
13063 ac_cv_lib_lex=$ac_lib
13064 fi
13065 rm -f core conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13067 test "$ac_cv_lib_lex" != 'none needed' && break
13068 done
13069 LIBS=$ac_save_LIBS
13070
13071 fi
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13073 $as_echo "$ac_cv_lib_lex" >&6; }
13074 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13075 fi
13076
13077
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13079 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13080 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 # POSIX says lex can declare yytext either as a pointer or an array; the
13084 # default is implementation-dependent. Figure out which it is, since
13085 # not all implementations provide the %pointer and %array declarations.
13086 ac_cv_prog_lex_yytext_pointer=no
13087 ac_save_LIBS=$LIBS
13088 LIBS="$LEXLIB $ac_save_LIBS"
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13091
13092 #define YYTEXT_POINTER 1
13093 `cat $LEX_OUTPUT_ROOT.c`
13094 _ACEOF
13095 if ac_fn_c_try_link "$LINENO"; then :
13096 ac_cv_prog_lex_yytext_pointer=yes
13097 fi
13098 rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13100 LIBS=$ac_save_LIBS
13101
13102 fi
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13104 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13105 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13106
13107 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13108
13109 fi
13110 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13111 ;;
13112 esac
13113 if test "$LEX" = :; then
13114 LEX=${am_missing_run}flex
13115 fi
13116
13117 ALL_LINGUAS="es fi fr id ja ru rw sv tr uk zh_CN"
13118 # If we haven't got the data from the intl directory,
13119 # assume NLS is disabled.
13120 USE_NLS=no
13121 LIBINTL=
13122 LIBINTL_DEP=
13123 INCINTL=
13124 XGETTEXT=
13125 GMSGFMT=
13126 POSUB=
13127
13128 if test -f ../intl/config.intl; then
13129 . ../intl/config.intl
13130 fi
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13132 $as_echo_n "checking whether NLS is requested... " >&6; }
13133 if test x"$USE_NLS" != xyes; then
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13136 else
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13138 $as_echo "yes" >&6; }
13139
13140 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13141
13142
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13144 $as_echo_n "checking for catalogs to be installed... " >&6; }
13145 # Look for .po and .gmo files in the source directory.
13146 CATALOGS=
13147 XLINGUAS=
13148 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13149 # If there aren't any .gmo files the shell will give us the
13150 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13151 # weeded out.
13152 case "$cat" in *\**)
13153 continue;;
13154 esac
13155 # The quadruple backslash is collapsed to a double backslash
13156 # by the backticks, then collapsed again by the double quotes,
13157 # leaving us with one backslash in the sed expression (right
13158 # before the dot that mustn't act as a wildcard).
13159 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13160 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13161 # The user is allowed to set LINGUAS to a list of languages to
13162 # install catalogs for. If it's empty that means "all of them."
13163 if test "x$LINGUAS" = x; then
13164 CATALOGS="$CATALOGS $cat"
13165 XLINGUAS="$XLINGUAS $lang"
13166 else
13167 case "$LINGUAS" in *$lang*)
13168 CATALOGS="$CATALOGS $cat"
13169 XLINGUAS="$XLINGUAS $lang"
13170 ;;
13171 esac
13172 fi
13173 done
13174 LINGUAS="$XLINGUAS"
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13176 $as_echo "$LINGUAS" >&6; }
13177
13178
13179 DATADIRNAME=share
13180
13181 INSTOBJEXT=.mo
13182
13183 GENCAT=gencat
13184
13185 CATOBJEXT=.gmo
13186
13187 fi
13188
13189 MKINSTALLDIRS=
13190 if test -n "$ac_aux_dir"; then
13191 case "$ac_aux_dir" in
13192 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13193 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13194 esac
13195 fi
13196 if test -z "$MKINSTALLDIRS"; then
13197 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13198 fi
13199
13200
13201
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13203 $as_echo_n "checking whether NLS is requested... " >&6; }
13204 # Check whether --enable-nls was given.
13205 if test "${enable_nls+set}" = set; then :
13206 enableval=$enable_nls; USE_NLS=$enableval
13207 else
13208 USE_NLS=yes
13209 fi
13210
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13212 $as_echo "$USE_NLS" >&6; }
13213
13214
13215
13216
13217
13218
13219 # Prepare PATH_SEPARATOR.
13220 # The user is always right.
13221 if test "${PATH_SEPARATOR+set}" != set; then
13222 echo "#! /bin/sh" >conf$$.sh
13223 echo "exit 0" >>conf$$.sh
13224 chmod +x conf$$.sh
13225 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13226 PATH_SEPARATOR=';'
13227 else
13228 PATH_SEPARATOR=:
13229 fi
13230 rm -f conf$$.sh
13231 fi
13232
13233 # Find out how to test for executable files. Don't use a zero-byte file,
13234 # as systems may use methods other than mode bits to determine executability.
13235 cat >conf$$.file <<_ASEOF
13236 #! /bin/sh
13237 exit 0
13238 _ASEOF
13239 chmod +x conf$$.file
13240 if test -x conf$$.file >/dev/null 2>&1; then
13241 ac_executable_p="test -x"
13242 else
13243 ac_executable_p="test -f"
13244 fi
13245 rm -f conf$$.file
13246
13247 # Extract the first word of "msgfmt", so it can be a program name with args.
13248 set dummy msgfmt; ac_word=$2
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13250 $as_echo_n "checking for $ac_word... " >&6; }
13251 if ${ac_cv_path_MSGFMT+:} false; then :
13252 $as_echo_n "(cached) " >&6
13253 else
13254 case "$MSGFMT" in
13255 [\\/]* | ?:[\\/]*)
13256 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13257 ;;
13258 *)
13259 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13260 for ac_dir in $PATH; do
13261 IFS="$ac_save_IFS"
13262 test -z "$ac_dir" && ac_dir=.
13263 for ac_exec_ext in '' $ac_executable_extensions; do
13264 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13265 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13266 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13267 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13268 break 2
13269 fi
13270 fi
13271 done
13272 done
13273 IFS="$ac_save_IFS"
13274 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13275 ;;
13276 esac
13277 fi
13278 MSGFMT="$ac_cv_path_MSGFMT"
13279 if test "$MSGFMT" != ":"; then
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13281 $as_echo "$MSGFMT" >&6; }
13282 else
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284 $as_echo "no" >&6; }
13285 fi
13286
13287 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13288 set dummy gmsgfmt; ac_word=$2
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13290 $as_echo_n "checking for $ac_word... " >&6; }
13291 if ${ac_cv_path_GMSGFMT+:} false; then :
13292 $as_echo_n "(cached) " >&6
13293 else
13294 case $GMSGFMT in
13295 [\\/]* | ?:[\\/]*)
13296 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13297 ;;
13298 *)
13299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13300 for as_dir in $PATH
13301 do
13302 IFS=$as_save_IFS
13303 test -z "$as_dir" && as_dir=.
13304 for ac_exec_ext in '' $ac_executable_extensions; do
13305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13306 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13308 break 2
13309 fi
13310 done
13311 done
13312 IFS=$as_save_IFS
13313
13314 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13315 ;;
13316 esac
13317 fi
13318 GMSGFMT=$ac_cv_path_GMSGFMT
13319 if test -n "$GMSGFMT"; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13321 $as_echo "$GMSGFMT" >&6; }
13322 else
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13325 fi
13326
13327
13328
13329
13330 # Prepare PATH_SEPARATOR.
13331 # The user is always right.
13332 if test "${PATH_SEPARATOR+set}" != set; then
13333 echo "#! /bin/sh" >conf$$.sh
13334 echo "exit 0" >>conf$$.sh
13335 chmod +x conf$$.sh
13336 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13337 PATH_SEPARATOR=';'
13338 else
13339 PATH_SEPARATOR=:
13340 fi
13341 rm -f conf$$.sh
13342 fi
13343
13344 # Find out how to test for executable files. Don't use a zero-byte file,
13345 # as systems may use methods other than mode bits to determine executability.
13346 cat >conf$$.file <<_ASEOF
13347 #! /bin/sh
13348 exit 0
13349 _ASEOF
13350 chmod +x conf$$.file
13351 if test -x conf$$.file >/dev/null 2>&1; then
13352 ac_executable_p="test -x"
13353 else
13354 ac_executable_p="test -f"
13355 fi
13356 rm -f conf$$.file
13357
13358 # Extract the first word of "xgettext", so it can be a program name with args.
13359 set dummy xgettext; ac_word=$2
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13361 $as_echo_n "checking for $ac_word... " >&6; }
13362 if ${ac_cv_path_XGETTEXT+:} false; then :
13363 $as_echo_n "(cached) " >&6
13364 else
13365 case "$XGETTEXT" in
13366 [\\/]* | ?:[\\/]*)
13367 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13368 ;;
13369 *)
13370 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13371 for ac_dir in $PATH; do
13372 IFS="$ac_save_IFS"
13373 test -z "$ac_dir" && ac_dir=.
13374 for ac_exec_ext in '' $ac_executable_extensions; do
13375 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13376 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13377 (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
13378 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13379 break 2
13380 fi
13381 fi
13382 done
13383 done
13384 IFS="$ac_save_IFS"
13385 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13386 ;;
13387 esac
13388 fi
13389 XGETTEXT="$ac_cv_path_XGETTEXT"
13390 if test "$XGETTEXT" != ":"; then
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13392 $as_echo "$XGETTEXT" >&6; }
13393 else
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 $as_echo "no" >&6; }
13396 fi
13397
13398 rm -f messages.po
13399
13400
13401 # Prepare PATH_SEPARATOR.
13402 # The user is always right.
13403 if test "${PATH_SEPARATOR+set}" != set; then
13404 echo "#! /bin/sh" >conf$$.sh
13405 echo "exit 0" >>conf$$.sh
13406 chmod +x conf$$.sh
13407 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13408 PATH_SEPARATOR=';'
13409 else
13410 PATH_SEPARATOR=:
13411 fi
13412 rm -f conf$$.sh
13413 fi
13414
13415 # Find out how to test for executable files. Don't use a zero-byte file,
13416 # as systems may use methods other than mode bits to determine executability.
13417 cat >conf$$.file <<_ASEOF
13418 #! /bin/sh
13419 exit 0
13420 _ASEOF
13421 chmod +x conf$$.file
13422 if test -x conf$$.file >/dev/null 2>&1; then
13423 ac_executable_p="test -x"
13424 else
13425 ac_executable_p="test -f"
13426 fi
13427 rm -f conf$$.file
13428
13429 # Extract the first word of "msgmerge", so it can be a program name with args.
13430 set dummy msgmerge; ac_word=$2
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13432 $as_echo_n "checking for $ac_word... " >&6; }
13433 if ${ac_cv_path_MSGMERGE+:} false; then :
13434 $as_echo_n "(cached) " >&6
13435 else
13436 case "$MSGMERGE" in
13437 [\\/]* | ?:[\\/]*)
13438 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13439 ;;
13440 *)
13441 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13442 for ac_dir in $PATH; do
13443 IFS="$ac_save_IFS"
13444 test -z "$ac_dir" && ac_dir=.
13445 for ac_exec_ext in '' $ac_executable_extensions; do
13446 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13447 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13448 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13449 break 2
13450 fi
13451 fi
13452 done
13453 done
13454 IFS="$ac_save_IFS"
13455 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13456 ;;
13457 esac
13458 fi
13459 MSGMERGE="$ac_cv_path_MSGMERGE"
13460 if test "$MSGMERGE" != ":"; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13462 $as_echo "$MSGMERGE" >&6; }
13463 else
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 $as_echo "no" >&6; }
13466 fi
13467
13468
13469 if test "$GMSGFMT" != ":"; then
13470 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13471 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13472 : ;
13473 else
13474 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13476 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13477 GMSGFMT=":"
13478 fi
13479 fi
13480
13481 if test "$XGETTEXT" != ":"; then
13482 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13483 (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
13484 : ;
13485 else
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13487 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13488 XGETTEXT=":"
13489 fi
13490 rm -f messages.po
13491 fi
13492
13493 ac_config_commands="$ac_config_commands default-1"
13494
13495
13496
13497
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13499 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13500 # Check whether --enable-maintainer-mode was given.
13501 if test "${enable_maintainer_mode+set}" = set; then :
13502 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13503 else
13504 USE_MAINTAINER_MODE=no
13505 fi
13506
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13508 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13509 if test $USE_MAINTAINER_MODE = yes; then
13510 MAINTAINER_MODE_TRUE=
13511 MAINTAINER_MODE_FALSE='#'
13512 else
13513 MAINTAINER_MODE_TRUE='#'
13514 MAINTAINER_MODE_FALSE=
13515 fi
13516
13517 MAINT=$MAINTAINER_MODE_TRUE
13518
13519
13520 if false; then
13521 GENINSRC_NEVER_TRUE=
13522 GENINSRC_NEVER_FALSE='#'
13523 else
13524 GENINSRC_NEVER_TRUE='#'
13525 GENINSRC_NEVER_FALSE=
13526 fi
13527
13528
13529
13530 for ac_header in memory.h sys/stat.h sys/types.h unistd.h
13531 do :
13532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13533 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13534 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13535 cat >>confdefs.h <<_ACEOF
13536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13537 _ACEOF
13538
13539 fi
13540
13541 done
13542
13543
13544 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13545 # people who are not cross-compiling but are compiling cross-assemblers.
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13547 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13548 if test "${host}" = "${target}"; then
13549 cross_gas=no
13550 else
13551 cross_gas=yes
13552
13553 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13554
13555 fi
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13557 $as_echo "$cross_gas" >&6; }
13558
13559 for ac_func in strsignal
13560 do :
13561 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
13562 if test "x$ac_cv_func_strsignal" = xyes; then :
13563 cat >>confdefs.h <<_ACEOF
13564 #define HAVE_STRSIGNAL 1
13565 _ACEOF
13566
13567 fi
13568 done
13569
13570
13571
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13573 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13574 if ${am_cv_val_LC_MESSAGES+:} false; then :
13575 $as_echo_n "(cached) " >&6
13576 else
13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h. */
13579 #include <locale.h>
13580 int
13581 main ()
13582 {
13583 return LC_MESSAGES
13584 ;
13585 return 0;
13586 }
13587 _ACEOF
13588 if ac_fn_c_try_link "$LINENO"; then :
13589 am_cv_val_LC_MESSAGES=yes
13590 else
13591 am_cv_val_LC_MESSAGES=no
13592 fi
13593 rm -f core conftest.err conftest.$ac_objext \
13594 conftest$ac_exeext conftest.$ac_ext
13595 fi
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13597 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13598 if test $am_cv_val_LC_MESSAGES = yes; then
13599
13600 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13601
13602 fi
13603
13604
13605 # do we need the math library?
13606 case "${need_libm}" in
13607 yes)
13608 LIBM=
13609 case $host in
13610 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13611 # These system don't have libm, or don't need it
13612 ;;
13613 *-ncr-sysv4.3*)
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13615 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13616 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
13617 $as_echo_n "(cached) " >&6
13618 else
13619 ac_check_lib_save_LIBS=$LIBS
13620 LIBS="-lmw $LIBS"
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623
13624 /* Override any GCC internal prototype to avoid an error.
13625 Use char because int might match the return type of a GCC
13626 builtin and then its argument prototype would still apply. */
13627 #ifdef __cplusplus
13628 extern "C"
13629 #endif
13630 char _mwvalidcheckl ();
13631 int
13632 main ()
13633 {
13634 return _mwvalidcheckl ();
13635 ;
13636 return 0;
13637 }
13638 _ACEOF
13639 if ac_fn_c_try_link "$LINENO"; then :
13640 ac_cv_lib_mw__mwvalidcheckl=yes
13641 else
13642 ac_cv_lib_mw__mwvalidcheckl=no
13643 fi
13644 rm -f core conftest.err conftest.$ac_objext \
13645 conftest$ac_exeext conftest.$ac_ext
13646 LIBS=$ac_check_lib_save_LIBS
13647 fi
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13649 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13650 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
13651 LIBM="-lmw"
13652 fi
13653
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13655 $as_echo_n "checking for cos in -lm... " >&6; }
13656 if ${ac_cv_lib_m_cos+:} false; then :
13657 $as_echo_n "(cached) " >&6
13658 else
13659 ac_check_lib_save_LIBS=$LIBS
13660 LIBS="-lm $LIBS"
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13663
13664 /* Override any GCC internal prototype to avoid an error.
13665 Use char because int might match the return type of a GCC
13666 builtin and then its argument prototype would still apply. */
13667 #ifdef __cplusplus
13668 extern "C"
13669 #endif
13670 char cos ();
13671 int
13672 main ()
13673 {
13674 return cos ();
13675 ;
13676 return 0;
13677 }
13678 _ACEOF
13679 if ac_fn_c_try_link "$LINENO"; then :
13680 ac_cv_lib_m_cos=yes
13681 else
13682 ac_cv_lib_m_cos=no
13683 fi
13684 rm -f core conftest.err conftest.$ac_objext \
13685 conftest$ac_exeext conftest.$ac_ext
13686 LIBS=$ac_check_lib_save_LIBS
13687 fi
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13689 $as_echo "$ac_cv_lib_m_cos" >&6; }
13690 if test "x$ac_cv_lib_m_cos" = xyes; then :
13691 LIBM="$LIBM -lm"
13692 fi
13693
13694 ;;
13695 *)
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13697 $as_echo_n "checking for cos in -lm... " >&6; }
13698 if ${ac_cv_lib_m_cos+:} false; then :
13699 $as_echo_n "(cached) " >&6
13700 else
13701 ac_check_lib_save_LIBS=$LIBS
13702 LIBS="-lm $LIBS"
13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h. */
13705
13706 /* Override any GCC internal prototype to avoid an error.
13707 Use char because int might match the return type of a GCC
13708 builtin and then its argument prototype would still apply. */
13709 #ifdef __cplusplus
13710 extern "C"
13711 #endif
13712 char cos ();
13713 int
13714 main ()
13715 {
13716 return cos ();
13717 ;
13718 return 0;
13719 }
13720 _ACEOF
13721 if ac_fn_c_try_link "$LINENO"; then :
13722 ac_cv_lib_m_cos=yes
13723 else
13724 ac_cv_lib_m_cos=no
13725 fi
13726 rm -f core conftest.err conftest.$ac_objext \
13727 conftest$ac_exeext conftest.$ac_ext
13728 LIBS=$ac_check_lib_save_LIBS
13729 fi
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13731 $as_echo "$ac_cv_lib_m_cos" >&6; }
13732 if test "x$ac_cv_lib_m_cos" = xyes; then :
13733 LIBM="-lm"
13734 fi
13735
13736 ;;
13737 esac
13738
13739
13740
13741 ;;
13742 esac
13743
13744 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13745 # enough, but on some of those systems, the assert macro relies on requoting
13746 # working properly!
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13748 $as_echo_n "checking for working assert macro... " >&6; }
13749 if ${gas_cv_assert_ok+:} false; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13754 #include <assert.h>
13755 #include <stdio.h>
13756 int
13757 main ()
13758 {
13759
13760 /* check for requoting problems */
13761 static int a, b, c, d;
13762 static char *s;
13763 assert (!strcmp(s, "foo bar baz quux"));
13764 /* check for newline handling */
13765 assert (a == b
13766 || c == d);
13767
13768 ;
13769 return 0;
13770 }
13771 _ACEOF
13772 if ac_fn_c_try_link "$LINENO"; then :
13773 gas_cv_assert_ok=yes
13774 else
13775 gas_cv_assert_ok=no
13776 fi
13777 rm -f core conftest.err conftest.$ac_objext \
13778 conftest$ac_exeext conftest.$ac_ext
13779 fi
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13781 $as_echo "$gas_cv_assert_ok" >&6; }
13782 test $gas_cv_assert_ok = yes ||
13783 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
13784
13785
13786
13787 # On some systems, the system header files may not declare malloc, realloc,
13788 # and free. There are places where gas needs these functions to have been
13789 # declared -- such as when taking their addresses.
13790 gas_test_headers="
13791 #ifdef HAVE_MEMORY_H
13792 #include <memory.h>
13793 #endif
13794 #include <string.h>
13795 #include <stdlib.h>
13796 #ifdef HAVE_UNISTD_H
13797 #include <unistd.h>
13798 #endif
13799 "
13800
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13802 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13803 if ${gas_cv_decl_getopt_unistd_h+:} false; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13808 #include <unistd.h>
13809 int
13810 main ()
13811 {
13812 extern int getopt (int, char *const*, const char *);
13813 ;
13814 return 0;
13815 }
13816 _ACEOF
13817 if ac_fn_c_try_compile "$LINENO"; then :
13818 gas_cv_decl_getopt_unistd_h=yes
13819 else
13820 gas_cv_decl_getopt_unistd_h=no
13821 fi
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823 fi
13824
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
13826 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
13827 if test $gas_cv_decl_getopt_unistd_h = yes; then
13828
13829 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13830
13831 fi
13832
13833
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
13835 $as_echo_n "checking whether declaration is required for environ... " >&6; }
13836 if ${gas_cv_decl_needed_environ+:} false; then :
13837 $as_echo_n "(cached) " >&6
13838 else
13839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13841 $gas_test_headers
13842 int
13843 main ()
13844 {
13845
13846 typedef char **f;
13847 f x;
13848 x = (f) environ;
13849
13850 ;
13851 return 0;
13852 }
13853 _ACEOF
13854 if ac_fn_c_try_link "$LINENO"; then :
13855 gas_cv_decl_needed_environ=no
13856 else
13857 gas_cv_decl_needed_environ=yes
13858 fi
13859 rm -f core conftest.err conftest.$ac_objext \
13860 conftest$ac_exeext conftest.$ac_ext
13861 fi
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
13863 $as_echo "$gas_cv_decl_needed_environ" >&6; }
13864 if test $gas_cv_decl_needed_environ = yes; then
13865
13866 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13867
13868 fi
13869
13870
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
13872 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
13873 if ${gas_cv_decl_needed_ffs+:} false; then :
13874 $as_echo_n "(cached) " >&6
13875 else
13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h. */
13878 $gas_test_headers
13879 int
13880 main ()
13881 {
13882
13883 typedef int (*f)(int);
13884 f x;
13885 x = (f) ffs;
13886
13887 ;
13888 return 0;
13889 }
13890 _ACEOF
13891 if ac_fn_c_try_link "$LINENO"; then :
13892 gas_cv_decl_needed_ffs=no
13893 else
13894 gas_cv_decl_needed_ffs=yes
13895 fi
13896 rm -f core conftest.err conftest.$ac_objext \
13897 conftest$ac_exeext conftest.$ac_ext
13898 fi
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
13900 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
13901 if test $gas_cv_decl_needed_ffs = yes; then
13902
13903 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13904
13905 fi
13906
13907
13908 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13909 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
13910 ac_have_decl=1
13911 else
13912 ac_have_decl=0
13913 fi
13914
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_DECL_ASPRINTF $ac_have_decl
13917 _ACEOF
13918 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
13919 if test "x$ac_cv_have_decl_mempcpy" = xyes; then :
13920 ac_have_decl=1
13921 else
13922 ac_have_decl=0
13923 fi
13924
13925 cat >>confdefs.h <<_ACEOF
13926 #define HAVE_DECL_MEMPCPY $ac_have_decl
13927 _ACEOF
13928 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13929 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
13930 ac_have_decl=1
13931 else
13932 ac_have_decl=0
13933 fi
13934
13935 cat >>confdefs.h <<_ACEOF
13936 #define HAVE_DECL_STPCPY $ac_have_decl
13937 _ACEOF
13938
13939
13940
13941 case "${host}" in
13942 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13943
13944 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13945 ;;
13946 esac
13947
13948 # Link in zlib if we can. This allows us to write compressed debug sections.
13949
13950 # Use the system's zlib library.
13951 zlibdir="-L\$(top_builddir)/../zlib"
13952 zlibinc="-I\$(top_srcdir)/../zlib"
13953
13954 # Check whether --with-system-zlib was given.
13955 if test "${with_system_zlib+set}" = set; then :
13956 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13957 zlibdir=
13958 zlibinc=
13959 fi
13960
13961 fi
13962
13963
13964
13965
13966
13967 # Support for VMS timestamps via cross compile
13968
13969 if test "$ac_cv_header_time_h" = yes; then
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
13971 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
13972 if ${gas_cv_have_time_type_member_tm_gmtoff+:} false; then :
13973 $as_echo_n "(cached) " >&6
13974 else
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13977
13978 #define _BSD_SOURCE 1
13979 #include <time.h>
13980 int
13981 main ()
13982 {
13983 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
13984 ;
13985 return 0;
13986 }
13987 _ACEOF
13988 if ac_fn_c_try_compile "$LINENO"; then :
13989 gas_cv_have_time_type_member_tm_gmtoff=yes
13990 else
13991 gas_cv_have_time_type_member_tm_gmtoff=no
13992
13993 fi
13994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13995 fi
13996
13997 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
13998
13999 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14000
14001 fi
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14003 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14004
14005 fi
14006
14007 if test "$ac_cv_header_sys_stat_h" = yes; then
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14009 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14010 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+:} false; then :
14011 $as_echo_n "(cached) " >&6
14012 else
14013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14015
14016 #define _BSD_SOURCE 1
14017 #include <sys/stat.h>
14018 int
14019 main ()
14020 {
14021 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14022 ;
14023 return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_compile "$LINENO"; then :
14027 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14028 else
14029 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14030
14031 fi
14032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14033 fi
14034
14035 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14036
14037 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14038
14039 fi
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14041 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14042
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14044 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14045 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+:} false; then :
14046 $as_echo_n "(cached) " >&6
14047 else
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14050
14051 #define _BSD_SOURCE 1
14052 #include <sys/stat.h>
14053 int
14054 main ()
14055 {
14056 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14057 ;
14058 return 0;
14059 }
14060 _ACEOF
14061 if ac_fn_c_try_compile "$LINENO"; then :
14062 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14063 else
14064 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14065
14066 fi
14067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068 fi
14069
14070 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14071
14072 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14073
14074 fi
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14076 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14077
14078 fi
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
14089
14090 ac_config_commands="$ac_config_commands default"
14091
14092
14093 cat >confcache <<\_ACEOF
14094 # This file is a shell script that caches the results of configure
14095 # tests run on this system so they can be shared between configure
14096 # scripts and configure runs, see configure's option --config-cache.
14097 # It is not useful on other systems. If it contains results you don't
14098 # want to keep, you may remove or edit it.
14099 #
14100 # config.status only pays attention to the cache file if you give it
14101 # the --recheck option to rerun configure.
14102 #
14103 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14104 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14105 # following values.
14106
14107 _ACEOF
14108
14109 # The following way of writing the cache mishandles newlines in values,
14110 # but we know of no workaround that is simple, portable, and efficient.
14111 # So, we kill variables containing newlines.
14112 # Ultrix sh set writes to stderr and can't be redirected directly,
14113 # and sets the high bit in the cache file unless we assign to the vars.
14114 (
14115 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14116 eval ac_val=\$$ac_var
14117 case $ac_val in #(
14118 *${as_nl}*)
14119 case $ac_var in #(
14120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14122 esac
14123 case $ac_var in #(
14124 _ | IFS | as_nl) ;; #(
14125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14126 *) { eval $ac_var=; unset $ac_var;} ;;
14127 esac ;;
14128 esac
14129 done
14130
14131 (set) 2>&1 |
14132 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14133 *${as_nl}ac_space=\ *)
14134 # `set' does not quote correctly, so add quotes: double-quote
14135 # substitution turns \\\\ into \\, and sed turns \\ into \.
14136 sed -n \
14137 "s/'/'\\\\''/g;
14138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14139 ;; #(
14140 *)
14141 # `set' quotes correctly as required by POSIX, so do not add quotes.
14142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14143 ;;
14144 esac |
14145 sort
14146 ) |
14147 sed '
14148 /^ac_cv_env_/b end
14149 t clear
14150 :clear
14151 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14152 t end
14153 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14154 :end' >>confcache
14155 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14156 if test -w "$cache_file"; then
14157 if test "x$cache_file" != "x/dev/null"; then
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14159 $as_echo "$as_me: updating cache $cache_file" >&6;}
14160 if test ! -f "$cache_file" || test -h "$cache_file"; then
14161 cat confcache >"$cache_file"
14162 else
14163 case $cache_file in #(
14164 */* | ?:*)
14165 mv -f confcache "$cache_file"$$ &&
14166 mv -f "$cache_file"$$ "$cache_file" ;; #(
14167 *)
14168 mv -f confcache "$cache_file" ;;
14169 esac
14170 fi
14171 fi
14172 else
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14174 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14175 fi
14176 fi
14177 rm -f confcache
14178
14179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14180 # Let make expand exec_prefix.
14181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14182
14183 DEFS=-DHAVE_CONFIG_H
14184
14185 ac_libobjs=
14186 ac_ltlibobjs=
14187 U=
14188 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14189 # 1. Remove the extension, and $U if already installed.
14190 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14191 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14192 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14193 # will be set to the directory where LIBOBJS objects are built.
14194 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14195 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14196 done
14197 LIBOBJS=$ac_libobjs
14198
14199 LTLIBOBJS=$ac_ltlibobjs
14200
14201
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14203 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14204 if test -n "$am_sleep_pid"; then
14205 # Hide warnings about reused PIDs.
14206 wait $am_sleep_pid 2>/dev/null
14207 fi
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14209 $as_echo "done" >&6; }
14210 if test -n "$EXEEXT"; then
14211 am__EXEEXT_TRUE=
14212 am__EXEEXT_FALSE='#'
14213 else
14214 am__EXEEXT_TRUE='#'
14215 am__EXEEXT_FALSE=
14216 fi
14217
14218 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14219 as_fn_error $? "conditional \"AMDEP\" was never defined.
14220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14221 fi
14222 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14223 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14225 fi
14226
14227 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14228 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14230 fi
14231 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14232 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
14233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14234 fi
14235
14236 : "${CONFIG_STATUS=./config.status}"
14237 ac_write_fail=0
14238 ac_clean_files_save=$ac_clean_files
14239 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14241 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14242 as_write_fail=0
14243 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14244 #! $SHELL
14245 # Generated by $as_me.
14246 # Run this file to recreate the current configuration.
14247 # Compiler output produced by configure, useful for debugging
14248 # configure, is in config.log if it exists.
14249
14250 debug=false
14251 ac_cs_recheck=false
14252 ac_cs_silent=false
14253
14254 SHELL=\${CONFIG_SHELL-$SHELL}
14255 export SHELL
14256 _ASEOF
14257 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14258 ## -------------------- ##
14259 ## M4sh Initialization. ##
14260 ## -------------------- ##
14261
14262 # Be more Bourne compatible
14263 DUALCASE=1; export DUALCASE # for MKS sh
14264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14265 emulate sh
14266 NULLCMD=:
14267 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14268 # is contrary to our usage. Disable this feature.
14269 alias -g '${1+"$@"}'='"$@"'
14270 setopt NO_GLOB_SUBST
14271 else
14272 case `(set -o) 2>/dev/null` in #(
14273 *posix*) :
14274 set -o posix ;; #(
14275 *) :
14276 ;;
14277 esac
14278 fi
14279
14280
14281 as_nl='
14282 '
14283 export as_nl
14284 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14285 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14286 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14288 # Prefer a ksh shell builtin over an external printf program on Solaris,
14289 # but without wasting forks for bash or zsh.
14290 if test -z "$BASH_VERSION$ZSH_VERSION" \
14291 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14292 as_echo='print -r --'
14293 as_echo_n='print -rn --'
14294 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14295 as_echo='printf %s\n'
14296 as_echo_n='printf %s'
14297 else
14298 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14299 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14300 as_echo_n='/usr/ucb/echo -n'
14301 else
14302 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14303 as_echo_n_body='eval
14304 arg=$1;
14305 case $arg in #(
14306 *"$as_nl"*)
14307 expr "X$arg" : "X\\(.*\\)$as_nl";
14308 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14309 esac;
14310 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14311 '
14312 export as_echo_n_body
14313 as_echo_n='sh -c $as_echo_n_body as_echo'
14314 fi
14315 export as_echo_body
14316 as_echo='sh -c $as_echo_body as_echo'
14317 fi
14318
14319 # The user is always right.
14320 if test "${PATH_SEPARATOR+set}" != set; then
14321 PATH_SEPARATOR=:
14322 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14323 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14324 PATH_SEPARATOR=';'
14325 }
14326 fi
14327
14328
14329 # IFS
14330 # We need space, tab and new line, in precisely that order. Quoting is
14331 # there to prevent editors from complaining about space-tab.
14332 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14333 # splitting by setting IFS to empty value.)
14334 IFS=" "" $as_nl"
14335
14336 # Find who we are. Look in the path if we contain no directory separator.
14337 as_myself=
14338 case $0 in #((
14339 *[\\/]* ) as_myself=$0 ;;
14340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14341 for as_dir in $PATH
14342 do
14343 IFS=$as_save_IFS
14344 test -z "$as_dir" && as_dir=.
14345 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14346 done
14347 IFS=$as_save_IFS
14348
14349 ;;
14350 esac
14351 # We did not find ourselves, most probably we were run as `sh COMMAND'
14352 # in which case we are not to be found in the path.
14353 if test "x$as_myself" = x; then
14354 as_myself=$0
14355 fi
14356 if test ! -f "$as_myself"; then
14357 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14358 exit 1
14359 fi
14360
14361 # Unset variables that we do not need and which cause bugs (e.g. in
14362 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14363 # suppresses any "Segmentation fault" message there. '((' could
14364 # trigger a bug in pdksh 5.2.14.
14365 for as_var in BASH_ENV ENV MAIL MAILPATH
14366 do eval test x\${$as_var+set} = xset \
14367 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14368 done
14369 PS1='$ '
14370 PS2='> '
14371 PS4='+ '
14372
14373 # NLS nuisances.
14374 LC_ALL=C
14375 export LC_ALL
14376 LANGUAGE=C
14377 export LANGUAGE
14378
14379 # CDPATH.
14380 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14381
14382
14383 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14384 # ----------------------------------------
14385 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14386 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14387 # script with STATUS, using 1 if that was 0.
14388 as_fn_error ()
14389 {
14390 as_status=$1; test $as_status -eq 0 && as_status=1
14391 if test "$4"; then
14392 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14393 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14394 fi
14395 $as_echo "$as_me: error: $2" >&2
14396 as_fn_exit $as_status
14397 } # as_fn_error
14398
14399
14400 # as_fn_set_status STATUS
14401 # -----------------------
14402 # Set $? to STATUS, without forking.
14403 as_fn_set_status ()
14404 {
14405 return $1
14406 } # as_fn_set_status
14407
14408 # as_fn_exit STATUS
14409 # -----------------
14410 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14411 as_fn_exit ()
14412 {
14413 set +e
14414 as_fn_set_status $1
14415 exit $1
14416 } # as_fn_exit
14417
14418 # as_fn_unset VAR
14419 # ---------------
14420 # Portably unset VAR.
14421 as_fn_unset ()
14422 {
14423 { eval $1=; unset $1;}
14424 }
14425 as_unset=as_fn_unset
14426 # as_fn_append VAR VALUE
14427 # ----------------------
14428 # Append the text in VALUE to the end of the definition contained in VAR. Take
14429 # advantage of any shell optimizations that allow amortized linear growth over
14430 # repeated appends, instead of the typical quadratic growth present in naive
14431 # implementations.
14432 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14433 eval 'as_fn_append ()
14434 {
14435 eval $1+=\$2
14436 }'
14437 else
14438 as_fn_append ()
14439 {
14440 eval $1=\$$1\$2
14441 }
14442 fi # as_fn_append
14443
14444 # as_fn_arith ARG...
14445 # ------------------
14446 # Perform arithmetic evaluation on the ARGs, and store the result in the
14447 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14448 # must be portable across $(()) and expr.
14449 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14450 eval 'as_fn_arith ()
14451 {
14452 as_val=$(( $* ))
14453 }'
14454 else
14455 as_fn_arith ()
14456 {
14457 as_val=`expr "$@" || test $? -eq 1`
14458 }
14459 fi # as_fn_arith
14460
14461
14462 if expr a : '\(a\)' >/dev/null 2>&1 &&
14463 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14464 as_expr=expr
14465 else
14466 as_expr=false
14467 fi
14468
14469 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14470 as_basename=basename
14471 else
14472 as_basename=false
14473 fi
14474
14475 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14476 as_dirname=dirname
14477 else
14478 as_dirname=false
14479 fi
14480
14481 as_me=`$as_basename -- "$0" ||
14482 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14483 X"$0" : 'X\(//\)$' \| \
14484 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14485 $as_echo X/"$0" |
14486 sed '/^.*\/\([^/][^/]*\)\/*$/{
14487 s//\1/
14488 q
14489 }
14490 /^X\/\(\/\/\)$/{
14491 s//\1/
14492 q
14493 }
14494 /^X\/\(\/\).*/{
14495 s//\1/
14496 q
14497 }
14498 s/.*/./; q'`
14499
14500 # Avoid depending upon Character Ranges.
14501 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14502 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14503 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14504 as_cr_digits='0123456789'
14505 as_cr_alnum=$as_cr_Letters$as_cr_digits
14506
14507 ECHO_C= ECHO_N= ECHO_T=
14508 case `echo -n x` in #(((((
14509 -n*)
14510 case `echo 'xy\c'` in
14511 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14512 xy) ECHO_C='\c';;
14513 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14514 ECHO_T=' ';;
14515 esac;;
14516 *)
14517 ECHO_N='-n';;
14518 esac
14519
14520 rm -f conf$$ conf$$.exe conf$$.file
14521 if test -d conf$$.dir; then
14522 rm -f conf$$.dir/conf$$.file
14523 else
14524 rm -f conf$$.dir
14525 mkdir conf$$.dir 2>/dev/null
14526 fi
14527 if (echo >conf$$.file) 2>/dev/null; then
14528 if ln -s conf$$.file conf$$ 2>/dev/null; then
14529 as_ln_s='ln -s'
14530 # ... but there are two gotchas:
14531 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14532 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14533 # In both cases, we have to default to `cp -pR'.
14534 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14535 as_ln_s='cp -pR'
14536 elif ln conf$$.file conf$$ 2>/dev/null; then
14537 as_ln_s=ln
14538 else
14539 as_ln_s='cp -pR'
14540 fi
14541 else
14542 as_ln_s='cp -pR'
14543 fi
14544 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14545 rmdir conf$$.dir 2>/dev/null
14546
14547
14548 # as_fn_mkdir_p
14549 # -------------
14550 # Create "$as_dir" as a directory, including parents if necessary.
14551 as_fn_mkdir_p ()
14552 {
14553
14554 case $as_dir in #(
14555 -*) as_dir=./$as_dir;;
14556 esac
14557 test -d "$as_dir" || eval $as_mkdir_p || {
14558 as_dirs=
14559 while :; do
14560 case $as_dir in #(
14561 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14562 *) as_qdir=$as_dir;;
14563 esac
14564 as_dirs="'$as_qdir' $as_dirs"
14565 as_dir=`$as_dirname -- "$as_dir" ||
14566 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14567 X"$as_dir" : 'X\(//\)[^/]' \| \
14568 X"$as_dir" : 'X\(//\)$' \| \
14569 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14570 $as_echo X"$as_dir" |
14571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14572 s//\1/
14573 q
14574 }
14575 /^X\(\/\/\)[^/].*/{
14576 s//\1/
14577 q
14578 }
14579 /^X\(\/\/\)$/{
14580 s//\1/
14581 q
14582 }
14583 /^X\(\/\).*/{
14584 s//\1/
14585 q
14586 }
14587 s/.*/./; q'`
14588 test -d "$as_dir" && break
14589 done
14590 test -z "$as_dirs" || eval "mkdir $as_dirs"
14591 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14592
14593
14594 } # as_fn_mkdir_p
14595 if mkdir -p . 2>/dev/null; then
14596 as_mkdir_p='mkdir -p "$as_dir"'
14597 else
14598 test -d ./-p && rmdir ./-p
14599 as_mkdir_p=false
14600 fi
14601
14602
14603 # as_fn_executable_p FILE
14604 # -----------------------
14605 # Test if FILE is an executable regular file.
14606 as_fn_executable_p ()
14607 {
14608 test -f "$1" && test -x "$1"
14609 } # as_fn_executable_p
14610 as_test_x='test -x'
14611 as_executable_p=as_fn_executable_p
14612
14613 # Sed expression to map a string onto a valid CPP name.
14614 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14615
14616 # Sed expression to map a string onto a valid variable name.
14617 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14618
14619
14620 exec 6>&1
14621 ## ----------------------------------- ##
14622 ## Main body of $CONFIG_STATUS script. ##
14623 ## ----------------------------------- ##
14624 _ASEOF
14625 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14626
14627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14628 # Save the log message, to keep $0 and so on meaningful, and to
14629 # report actual input values of CONFIG_FILES etc. instead of their
14630 # values after options handling.
14631 ac_log="
14632 This file was extended by gas $as_me 2.39.50, which was
14633 generated by GNU Autoconf 2.69. Invocation command line was
14634
14635 CONFIG_FILES = $CONFIG_FILES
14636 CONFIG_HEADERS = $CONFIG_HEADERS
14637 CONFIG_LINKS = $CONFIG_LINKS
14638 CONFIG_COMMANDS = $CONFIG_COMMANDS
14639 $ $0 $@
14640
14641 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14642 "
14643
14644 _ACEOF
14645
14646 case $ac_config_files in *"
14647 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14648 esac
14649
14650 case $ac_config_headers in *"
14651 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14652 esac
14653
14654
14655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14656 # Files that config.status was made for.
14657 config_files="$ac_config_files"
14658 config_headers="$ac_config_headers"
14659 config_commands="$ac_config_commands"
14660
14661 _ACEOF
14662
14663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14664 ac_cs_usage="\
14665 \`$as_me' instantiates files and other configuration actions
14666 from templates according to the current configuration. Unless the files
14667 and actions are specified as TAGs, all are instantiated by default.
14668
14669 Usage: $0 [OPTION]... [TAG]...
14670
14671 -h, --help print this help, then exit
14672 -V, --version print version number and configuration settings, then exit
14673 --config print configuration, then exit
14674 -q, --quiet, --silent
14675 do not print progress messages
14676 -d, --debug don't remove temporary files
14677 --recheck update $as_me by reconfiguring in the same conditions
14678 --file=FILE[:TEMPLATE]
14679 instantiate the configuration file FILE
14680 --header=FILE[:TEMPLATE]
14681 instantiate the configuration header FILE
14682
14683 Configuration files:
14684 $config_files
14685
14686 Configuration headers:
14687 $config_headers
14688
14689 Configuration commands:
14690 $config_commands
14691
14692 Report bugs to the package provider."
14693
14694 _ACEOF
14695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14696 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14697 ac_cs_version="\\
14698 gas config.status 2.39.50
14699 configured by $0, generated by GNU Autoconf 2.69,
14700 with options \\"\$ac_cs_config\\"
14701
14702 Copyright (C) 2012 Free Software Foundation, Inc.
14703 This config.status script is free software; the Free Software Foundation
14704 gives unlimited permission to copy, distribute and modify it."
14705
14706 ac_pwd='$ac_pwd'
14707 srcdir='$srcdir'
14708 INSTALL='$INSTALL'
14709 MKDIR_P='$MKDIR_P'
14710 AWK='$AWK'
14711 test -n "\$AWK" || AWK=awk
14712 _ACEOF
14713
14714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14715 # The default lists apply if the user does not specify any file.
14716 ac_need_defaults=:
14717 while test $# != 0
14718 do
14719 case $1 in
14720 --*=?*)
14721 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14722 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14723 ac_shift=:
14724 ;;
14725 --*=)
14726 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14727 ac_optarg=
14728 ac_shift=:
14729 ;;
14730 *)
14731 ac_option=$1
14732 ac_optarg=$2
14733 ac_shift=shift
14734 ;;
14735 esac
14736
14737 case $ac_option in
14738 # Handling of the options.
14739 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14740 ac_cs_recheck=: ;;
14741 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14742 $as_echo "$ac_cs_version"; exit ;;
14743 --config | --confi | --conf | --con | --co | --c )
14744 $as_echo "$ac_cs_config"; exit ;;
14745 --debug | --debu | --deb | --de | --d | -d )
14746 debug=: ;;
14747 --file | --fil | --fi | --f )
14748 $ac_shift
14749 case $ac_optarg in
14750 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14751 '') as_fn_error $? "missing file argument" ;;
14752 esac
14753 as_fn_append CONFIG_FILES " '$ac_optarg'"
14754 ac_need_defaults=false;;
14755 --header | --heade | --head | --hea )
14756 $ac_shift
14757 case $ac_optarg in
14758 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14759 esac
14760 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14761 ac_need_defaults=false;;
14762 --he | --h)
14763 # Conflict between --help and --header
14764 as_fn_error $? "ambiguous option: \`$1'
14765 Try \`$0 --help' for more information.";;
14766 --help | --hel | -h )
14767 $as_echo "$ac_cs_usage"; exit ;;
14768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14769 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14770 ac_cs_silent=: ;;
14771
14772 # This is an error.
14773 -*) as_fn_error $? "unrecognized option: \`$1'
14774 Try \`$0 --help' for more information." ;;
14775
14776 *) as_fn_append ac_config_targets " $1"
14777 ac_need_defaults=false ;;
14778
14779 esac
14780 shift
14781 done
14782
14783 ac_configure_extra_args=
14784
14785 if $ac_cs_silent; then
14786 exec 6>/dev/null
14787 ac_configure_extra_args="$ac_configure_extra_args --silent"
14788 fi
14789
14790 _ACEOF
14791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14792 if \$ac_cs_recheck; then
14793 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14794 shift
14795 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14796 CONFIG_SHELL='$SHELL'
14797 export CONFIG_SHELL
14798 exec "\$@"
14799 fi
14800
14801 _ACEOF
14802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14803 exec 5>>config.log
14804 {
14805 echo
14806 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14807 ## Running $as_me. ##
14808 _ASBOX
14809 $as_echo "$ac_log"
14810 } >&5
14811
14812 _ACEOF
14813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14814 #
14815 # INIT-COMMANDS
14816 #
14817 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14818
14819
14820 # The HP-UX ksh and POSIX shell print the target directory to stdout
14821 # if CDPATH is set.
14822 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14823
14824 sed_quote_subst='$sed_quote_subst'
14825 double_quote_subst='$double_quote_subst'
14826 delay_variable_subst='$delay_variable_subst'
14827 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14828 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14829 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14830 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14831 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14832 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14833 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14834 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14835 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14836 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14837 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14838 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14839 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14840 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14841 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14842 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14843 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14844 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14845 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14846 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14847 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14848 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14849 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14850 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14851 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14852 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14853 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14854 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14855 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14856 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14857 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14858 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14859 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14860 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14861 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14862 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14863 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14864 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14865 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14866 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14867 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14868 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14869 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14870 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14871 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14872 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14873 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14874 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14875 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"`'
14876 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14877 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14878 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14879 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14880 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14881 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14882 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14883 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14884 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14885 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14886 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14887 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14888 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14889 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14890 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14891 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14892 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14893 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14894 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14895 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14896 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14897 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14898 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14899 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14900 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14901 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14902 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14903 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14904 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14905 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14906 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14907 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14908 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14909 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14910 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14911 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14912 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14913 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14914 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14915 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14916 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14917 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14918 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14919 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14920 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14921 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14922 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14923 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14924 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14925 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14926 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14927 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14928 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14929 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14930 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14931 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14932 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14933 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14934 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14935 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14936 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14937 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14938 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14939 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14940 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14941 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14942 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14943 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14944 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14945 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14946 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14947
14948 LTCC='$LTCC'
14949 LTCFLAGS='$LTCFLAGS'
14950 compiler='$compiler_DEFAULT'
14951
14952 # A function that is used when there is no print builtin or printf.
14953 func_fallback_echo ()
14954 {
14955 eval 'cat <<_LTECHO_EOF
14956 \$1
14957 _LTECHO_EOF'
14958 }
14959
14960 # Quote evaled strings.
14961 for var in SHELL \
14962 ECHO \
14963 SED \
14964 GREP \
14965 EGREP \
14966 FGREP \
14967 LD \
14968 NM \
14969 LN_S \
14970 lt_SP2NL \
14971 lt_NL2SP \
14972 reload_flag \
14973 OBJDUMP \
14974 deplibs_check_method \
14975 file_magic_cmd \
14976 AR \
14977 AR_FLAGS \
14978 STRIP \
14979 RANLIB \
14980 CC \
14981 CFLAGS \
14982 compiler \
14983 lt_cv_sys_global_symbol_pipe \
14984 lt_cv_sys_global_symbol_to_cdecl \
14985 lt_cv_sys_global_symbol_to_c_name_address \
14986 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14987 lt_prog_compiler_no_builtin_flag \
14988 lt_prog_compiler_wl \
14989 lt_prog_compiler_pic \
14990 lt_prog_compiler_static \
14991 lt_cv_prog_compiler_c_o \
14992 need_locks \
14993 DSYMUTIL \
14994 NMEDIT \
14995 LIPO \
14996 OTOOL \
14997 OTOOL64 \
14998 shrext_cmds \
14999 export_dynamic_flag_spec \
15000 whole_archive_flag_spec \
15001 compiler_needs_object \
15002 with_gnu_ld \
15003 allow_undefined_flag \
15004 no_undefined_flag \
15005 hardcode_libdir_flag_spec \
15006 hardcode_libdir_flag_spec_ld \
15007 hardcode_libdir_separator \
15008 fix_srcfile_path \
15009 exclude_expsyms \
15010 include_expsyms \
15011 file_list_spec \
15012 variables_saved_for_relink \
15013 libname_spec \
15014 library_names_spec \
15015 soname_spec \
15016 install_override_mode \
15017 finish_eval \
15018 old_striplib \
15019 striplib; do
15020 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15021 *[\\\\\\\`\\"\\\$]*)
15022 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15023 ;;
15024 *)
15025 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15026 ;;
15027 esac
15028 done
15029
15030 # Double-quote double-evaled strings.
15031 for var in reload_cmds \
15032 old_postinstall_cmds \
15033 old_postuninstall_cmds \
15034 old_archive_cmds \
15035 extract_expsyms_cmds \
15036 old_archive_from_new_cmds \
15037 old_archive_from_expsyms_cmds \
15038 archive_cmds \
15039 archive_expsym_cmds \
15040 module_cmds \
15041 module_expsym_cmds \
15042 export_symbols_cmds \
15043 prelink_cmds \
15044 postinstall_cmds \
15045 postuninstall_cmds \
15046 finish_cmds \
15047 sys_lib_search_path_spec \
15048 sys_lib_dlsearch_path_spec; do
15049 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15050 *[\\\\\\\`\\"\\\$]*)
15051 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15052 ;;
15053 *)
15054 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15055 ;;
15056 esac
15057 done
15058
15059 ac_aux_dir='$ac_aux_dir'
15060 xsi_shell='$xsi_shell'
15061 lt_shell_append='$lt_shell_append'
15062
15063 # See if we are running on zsh, and set the options which allow our
15064 # commands through without removal of \ escapes INIT.
15065 if test -n "\${ZSH_VERSION+set}" ; then
15066 setopt NO_GLOB_SUBST
15067 fi
15068
15069
15070 PACKAGE='$PACKAGE'
15071 VERSION='$VERSION'
15072 TIMESTAMP='$TIMESTAMP'
15073 RM='$RM'
15074 ofile='$ofile'
15075
15076
15077
15078 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15079 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15080 # from automake.
15081 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15082 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15083 LINGUAS="${LINGUAS-%UNSET%}"
15084
15085 target_cpu_type=${target_cpu_type}
15086 cgen_cpu_prefix=${cgen_cpu_prefix}
15087 obj_format=${obj_format}
15088 te_file=${te_file}
15089
15090 _ACEOF
15091
15092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15093
15094 # Handling of arguments.
15095 for ac_config_target in $ac_config_targets
15096 do
15097 case $ac_config_target in
15098 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15099 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15100 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15101 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15102 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15103 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15104 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15105 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15106 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15107
15108 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15109 esac
15110 done
15111
15112
15113 # If the user did not use the arguments to specify the items to instantiate,
15114 # then the envvar interface is used. Set only those that are not.
15115 # We use the long form for the default assignment because of an extremely
15116 # bizarre bug on SunOS 4.1.3.
15117 if $ac_need_defaults; then
15118 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15119 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15120 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15121 fi
15122
15123 # Have a temporary directory for convenience. Make it in the build tree
15124 # simply because there is no reason against having it here, and in addition,
15125 # creating and moving files from /tmp can sometimes cause problems.
15126 # Hook for its removal unless debugging.
15127 # Note that there is a small window in which the directory will not be cleaned:
15128 # after its creation but before its name has been assigned to `$tmp'.
15129 $debug ||
15130 {
15131 tmp= ac_tmp=
15132 trap 'exit_status=$?
15133 : "${ac_tmp:=$tmp}"
15134 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15135 ' 0
15136 trap 'as_fn_exit 1' 1 2 13 15
15137 }
15138 # Create a (secure) tmp directory for tmp files.
15139
15140 {
15141 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15142 test -d "$tmp"
15143 } ||
15144 {
15145 tmp=./conf$$-$RANDOM
15146 (umask 077 && mkdir "$tmp")
15147 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15148 ac_tmp=$tmp
15149
15150 # Set up the scripts for CONFIG_FILES section.
15151 # No need to generate them if there are no CONFIG_FILES.
15152 # This happens for instance with `./config.status config.h'.
15153 if test -n "$CONFIG_FILES"; then
15154
15155
15156 ac_cr=`echo X | tr X '\015'`
15157 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15158 # But we know of no other shell where ac_cr would be empty at this
15159 # point, so we can use a bashism as a fallback.
15160 if test "x$ac_cr" = x; then
15161 eval ac_cr=\$\'\\r\'
15162 fi
15163 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15164 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15165 ac_cs_awk_cr='\\r'
15166 else
15167 ac_cs_awk_cr=$ac_cr
15168 fi
15169
15170 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15171 _ACEOF
15172
15173
15174 {
15175 echo "cat >conf$$subs.awk <<_ACEOF" &&
15176 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15177 echo "_ACEOF"
15178 } >conf$$subs.sh ||
15179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15180 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15181 ac_delim='%!_!# '
15182 for ac_last_try in false false false false false :; do
15183 . ./conf$$subs.sh ||
15184 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15185
15186 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15187 if test $ac_delim_n = $ac_delim_num; then
15188 break
15189 elif $ac_last_try; then
15190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15191 else
15192 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15193 fi
15194 done
15195 rm -f conf$$subs.sh
15196
15197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15198 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15199 _ACEOF
15200 sed -n '
15201 h
15202 s/^/S["/; s/!.*/"]=/
15203 p
15204 g
15205 s/^[^!]*!//
15206 :repl
15207 t repl
15208 s/'"$ac_delim"'$//
15209 t delim
15210 :nl
15211 h
15212 s/\(.\{148\}\)..*/\1/
15213 t more1
15214 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15215 p
15216 n
15217 b repl
15218 :more1
15219 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15220 p
15221 g
15222 s/.\{148\}//
15223 t nl
15224 :delim
15225 h
15226 s/\(.\{148\}\)..*/\1/
15227 t more2
15228 s/["\\]/\\&/g; s/^/"/; s/$/"/
15229 p
15230 b
15231 :more2
15232 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15233 p
15234 g
15235 s/.\{148\}//
15236 t delim
15237 ' <conf$$subs.awk | sed '
15238 /^[^""]/{
15239 N
15240 s/\n//
15241 }
15242 ' >>$CONFIG_STATUS || ac_write_fail=1
15243 rm -f conf$$subs.awk
15244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15245 _ACAWK
15246 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15247 for (key in S) S_is_set[key] = 1
15248 FS = "\a"
15249
15250 }
15251 {
15252 line = $ 0
15253 nfields = split(line, field, "@")
15254 substed = 0
15255 len = length(field[1])
15256 for (i = 2; i < nfields; i++) {
15257 key = field[i]
15258 keylen = length(key)
15259 if (S_is_set[key]) {
15260 value = S[key]
15261 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15262 len += length(value) + length(field[++i])
15263 substed = 1
15264 } else
15265 len += 1 + keylen
15266 }
15267
15268 print line
15269 }
15270
15271 _ACAWK
15272 _ACEOF
15273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15274 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15275 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15276 else
15277 cat
15278 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15279 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15280 _ACEOF
15281
15282 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15283 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15284 # trailing colons and then remove the whole line if VPATH becomes empty
15285 # (actually we leave an empty line to preserve line numbers).
15286 if test "x$srcdir" = x.; then
15287 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15288 h
15289 s///
15290 s/^/:/
15291 s/[ ]*$/:/
15292 s/:\$(srcdir):/:/g
15293 s/:\${srcdir}:/:/g
15294 s/:@srcdir@:/:/g
15295 s/^:*//
15296 s/:*$//
15297 x
15298 s/\(=[ ]*\).*/\1/
15299 G
15300 s/\n//
15301 s/^[^=]*=[ ]*$//
15302 }'
15303 fi
15304
15305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15306 fi # test -n "$CONFIG_FILES"
15307
15308 # Set up the scripts for CONFIG_HEADERS section.
15309 # No need to generate them if there are no CONFIG_HEADERS.
15310 # This happens for instance with `./config.status Makefile'.
15311 if test -n "$CONFIG_HEADERS"; then
15312 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15313 BEGIN {
15314 _ACEOF
15315
15316 # Transform confdefs.h into an awk script `defines.awk', embedded as
15317 # here-document in config.status, that substitutes the proper values into
15318 # config.h.in to produce config.h.
15319
15320 # Create a delimiter string that does not exist in confdefs.h, to ease
15321 # handling of long lines.
15322 ac_delim='%!_!# '
15323 for ac_last_try in false false :; do
15324 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15325 if test -z "$ac_tt"; then
15326 break
15327 elif $ac_last_try; then
15328 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15329 else
15330 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15331 fi
15332 done
15333
15334 # For the awk script, D is an array of macro values keyed by name,
15335 # likewise P contains macro parameters if any. Preserve backslash
15336 # newline sequences.
15337
15338 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15339 sed -n '
15340 s/.\{148\}/&'"$ac_delim"'/g
15341 t rset
15342 :rset
15343 s/^[ ]*#[ ]*define[ ][ ]*/ /
15344 t def
15345 d
15346 :def
15347 s/\\$//
15348 t bsnl
15349 s/["\\]/\\&/g
15350 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15351 D["\1"]=" \3"/p
15352 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15353 d
15354 :bsnl
15355 s/["\\]/\\&/g
15356 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15357 D["\1"]=" \3\\\\\\n"\\/p
15358 t cont
15359 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15360 t cont
15361 d
15362 :cont
15363 n
15364 s/.\{148\}/&'"$ac_delim"'/g
15365 t clear
15366 :clear
15367 s/\\$//
15368 t bsnlc
15369 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15370 d
15371 :bsnlc
15372 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15373 b cont
15374 ' <confdefs.h | sed '
15375 s/'"$ac_delim"'/"\\\
15376 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15377
15378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15379 for (key in D) D_is_set[key] = 1
15380 FS = "\a"
15381 }
15382 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15383 line = \$ 0
15384 split(line, arg, " ")
15385 if (arg[1] == "#") {
15386 defundef = arg[2]
15387 mac1 = arg[3]
15388 } else {
15389 defundef = substr(arg[1], 2)
15390 mac1 = arg[2]
15391 }
15392 split(mac1, mac2, "(") #)
15393 macro = mac2[1]
15394 prefix = substr(line, 1, index(line, defundef) - 1)
15395 if (D_is_set[macro]) {
15396 # Preserve the white space surrounding the "#".
15397 print prefix "define", macro P[macro] D[macro]
15398 next
15399 } else {
15400 # Replace #undef with comments. This is necessary, for example,
15401 # in the case of _POSIX_SOURCE, which is predefined and required
15402 # on some systems where configure will not decide to define it.
15403 if (defundef == "undef") {
15404 print "/*", prefix defundef, macro, "*/"
15405 next
15406 }
15407 }
15408 }
15409 { print }
15410 _ACAWK
15411 _ACEOF
15412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15413 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15414 fi # test -n "$CONFIG_HEADERS"
15415
15416
15417 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15418 shift
15419 for ac_tag
15420 do
15421 case $ac_tag in
15422 :[FHLC]) ac_mode=$ac_tag; continue;;
15423 esac
15424 case $ac_mode$ac_tag in
15425 :[FHL]*:*);;
15426 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15427 :[FH]-) ac_tag=-:-;;
15428 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15429 esac
15430 ac_save_IFS=$IFS
15431 IFS=:
15432 set x $ac_tag
15433 IFS=$ac_save_IFS
15434 shift
15435 ac_file=$1
15436 shift
15437
15438 case $ac_mode in
15439 :L) ac_source=$1;;
15440 :[FH])
15441 ac_file_inputs=
15442 for ac_f
15443 do
15444 case $ac_f in
15445 -) ac_f="$ac_tmp/stdin";;
15446 *) # Look for the file first in the build tree, then in the source tree
15447 # (if the path is not absolute). The absolute path cannot be DOS-style,
15448 # because $ac_f cannot contain `:'.
15449 test -f "$ac_f" ||
15450 case $ac_f in
15451 [\\/$]*) false;;
15452 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15453 esac ||
15454 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15455 esac
15456 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15457 as_fn_append ac_file_inputs " '$ac_f'"
15458 done
15459
15460 # Let's still pretend it is `configure' which instantiates (i.e., don't
15461 # use $as_me), people would be surprised to read:
15462 # /* config.h. Generated by config.status. */
15463 configure_input='Generated from '`
15464 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15465 `' by configure.'
15466 if test x"$ac_file" != x-; then
15467 configure_input="$ac_file. $configure_input"
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15469 $as_echo "$as_me: creating $ac_file" >&6;}
15470 fi
15471 # Neutralize special characters interpreted by sed in replacement strings.
15472 case $configure_input in #(
15473 *\&* | *\|* | *\\* )
15474 ac_sed_conf_input=`$as_echo "$configure_input" |
15475 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15476 *) ac_sed_conf_input=$configure_input;;
15477 esac
15478
15479 case $ac_tag in
15480 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15482 esac
15483 ;;
15484 esac
15485
15486 ac_dir=`$as_dirname -- "$ac_file" ||
15487 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15488 X"$ac_file" : 'X\(//\)[^/]' \| \
15489 X"$ac_file" : 'X\(//\)$' \| \
15490 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15491 $as_echo X"$ac_file" |
15492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15493 s//\1/
15494 q
15495 }
15496 /^X\(\/\/\)[^/].*/{
15497 s//\1/
15498 q
15499 }
15500 /^X\(\/\/\)$/{
15501 s//\1/
15502 q
15503 }
15504 /^X\(\/\).*/{
15505 s//\1/
15506 q
15507 }
15508 s/.*/./; q'`
15509 as_dir="$ac_dir"; as_fn_mkdir_p
15510 ac_builddir=.
15511
15512 case "$ac_dir" in
15513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15514 *)
15515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15516 # A ".." for each directory in $ac_dir_suffix.
15517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15518 case $ac_top_builddir_sub in
15519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15521 esac ;;
15522 esac
15523 ac_abs_top_builddir=$ac_pwd
15524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15525 # for backward compatibility:
15526 ac_top_builddir=$ac_top_build_prefix
15527
15528 case $srcdir in
15529 .) # We are building in place.
15530 ac_srcdir=.
15531 ac_top_srcdir=$ac_top_builddir_sub
15532 ac_abs_top_srcdir=$ac_pwd ;;
15533 [\\/]* | ?:[\\/]* ) # Absolute name.
15534 ac_srcdir=$srcdir$ac_dir_suffix;
15535 ac_top_srcdir=$srcdir
15536 ac_abs_top_srcdir=$srcdir ;;
15537 *) # Relative name.
15538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15539 ac_top_srcdir=$ac_top_build_prefix$srcdir
15540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15541 esac
15542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15543
15544
15545 case $ac_mode in
15546 :F)
15547 #
15548 # CONFIG_FILE
15549 #
15550
15551 case $INSTALL in
15552 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15553 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15554 esac
15555 ac_MKDIR_P=$MKDIR_P
15556 case $MKDIR_P in
15557 [\\/$]* | ?:[\\/]* ) ;;
15558 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15559 esac
15560 _ACEOF
15561
15562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15563 # If the template does not know about datarootdir, expand it.
15564 # FIXME: This hack should be removed a few years after 2.60.
15565 ac_datarootdir_hack=; ac_datarootdir_seen=
15566 ac_sed_dataroot='
15567 /datarootdir/ {
15568 p
15569 q
15570 }
15571 /@datadir@/p
15572 /@docdir@/p
15573 /@infodir@/p
15574 /@localedir@/p
15575 /@mandir@/p'
15576 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15577 *datarootdir*) ac_datarootdir_seen=yes;;
15578 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15580 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15581 _ACEOF
15582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15583 ac_datarootdir_hack='
15584 s&@datadir@&$datadir&g
15585 s&@docdir@&$docdir&g
15586 s&@infodir@&$infodir&g
15587 s&@localedir@&$localedir&g
15588 s&@mandir@&$mandir&g
15589 s&\\\${datarootdir}&$datarootdir&g' ;;
15590 esac
15591 _ACEOF
15592
15593 # Neutralize VPATH when `$srcdir' = `.'.
15594 # Shell code in configure.ac might set extrasub.
15595 # FIXME: do we really want to maintain this feature?
15596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15597 ac_sed_extra="$ac_vpsub
15598 $extrasub
15599 _ACEOF
15600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15601 :t
15602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15603 s|@configure_input@|$ac_sed_conf_input|;t t
15604 s&@top_builddir@&$ac_top_builddir_sub&;t t
15605 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15606 s&@srcdir@&$ac_srcdir&;t t
15607 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15608 s&@top_srcdir@&$ac_top_srcdir&;t t
15609 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15610 s&@builddir@&$ac_builddir&;t t
15611 s&@abs_builddir@&$ac_abs_builddir&;t t
15612 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15613 s&@INSTALL@&$ac_INSTALL&;t t
15614 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15615 $ac_datarootdir_hack
15616 "
15617 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15618 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15619
15620 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15621 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15622 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15623 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15625 which seems to be undefined. Please make sure it is defined" >&5
15626 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15627 which seems to be undefined. Please make sure it is defined" >&2;}
15628
15629 rm -f "$ac_tmp/stdin"
15630 case $ac_file in
15631 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15632 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15633 esac \
15634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15635 ;;
15636 :H)
15637 #
15638 # CONFIG_HEADER
15639 #
15640 if test x"$ac_file" != x-; then
15641 {
15642 $as_echo "/* $configure_input */" \
15643 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15644 } >"$ac_tmp/config.h" \
15645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15646 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15648 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15649 else
15650 rm -f "$ac_file"
15651 mv "$ac_tmp/config.h" "$ac_file" \
15652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15653 fi
15654 else
15655 $as_echo "/* $configure_input */" \
15656 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15657 || as_fn_error $? "could not create -" "$LINENO" 5
15658 fi
15659 # Compute "$ac_file"'s index in $config_headers.
15660 _am_arg="$ac_file"
15661 _am_stamp_count=1
15662 for _am_header in $config_headers :; do
15663 case $_am_header in
15664 $_am_arg | $_am_arg:* )
15665 break ;;
15666 * )
15667 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15668 esac
15669 done
15670 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15671 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15672 X"$_am_arg" : 'X\(//\)[^/]' \| \
15673 X"$_am_arg" : 'X\(//\)$' \| \
15674 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15675 $as_echo X"$_am_arg" |
15676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15677 s//\1/
15678 q
15679 }
15680 /^X\(\/\/\)[^/].*/{
15681 s//\1/
15682 q
15683 }
15684 /^X\(\/\/\)$/{
15685 s//\1/
15686 q
15687 }
15688 /^X\(\/\).*/{
15689 s//\1/
15690 q
15691 }
15692 s/.*/./; q'`/stamp-h$_am_stamp_count
15693 ;;
15694
15695 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15696 $as_echo "$as_me: executing $ac_file commands" >&6;}
15697 ;;
15698 esac
15699
15700
15701 case $ac_file$ac_mode in
15702 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15703 # Older Autoconf quotes --file arguments for eval, but not when files
15704 # are listed without --file. Let's play safe and only enable the eval
15705 # if we detect the quoting.
15706 case $CONFIG_FILES in
15707 *\'*) eval set x "$CONFIG_FILES" ;;
15708 *) set x $CONFIG_FILES ;;
15709 esac
15710 shift
15711 for mf
15712 do
15713 # Strip MF so we end up with the name of the file.
15714 mf=`echo "$mf" | sed -e 's/:.*$//'`
15715 # Check whether this is an Automake generated Makefile or not.
15716 # We used to match only the files named 'Makefile.in', but
15717 # some people rename them; so instead we look at the file content.
15718 # Grep'ing the first line is not enough: some people post-process
15719 # each Makefile.in and add a new line on top of each file to say so.
15720 # Grep'ing the whole file is not good either: AIX grep has a line
15721 # limit of 2048, but all sed's we know have understand at least 4000.
15722 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15723 dirpart=`$as_dirname -- "$mf" ||
15724 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15725 X"$mf" : 'X\(//\)[^/]' \| \
15726 X"$mf" : 'X\(//\)$' \| \
15727 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15728 $as_echo X"$mf" |
15729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15730 s//\1/
15731 q
15732 }
15733 /^X\(\/\/\)[^/].*/{
15734 s//\1/
15735 q
15736 }
15737 /^X\(\/\/\)$/{
15738 s//\1/
15739 q
15740 }
15741 /^X\(\/\).*/{
15742 s//\1/
15743 q
15744 }
15745 s/.*/./; q'`
15746 else
15747 continue
15748 fi
15749 # Extract the definition of DEPDIR, am__include, and am__quote
15750 # from the Makefile without running 'make'.
15751 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15752 test -z "$DEPDIR" && continue
15753 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15754 test -z "$am__include" && continue
15755 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15756 # Find all dependency output files, they are included files with
15757 # $(DEPDIR) in their names. We invoke sed twice because it is the
15758 # simplest approach to changing $(DEPDIR) to its actual value in the
15759 # expansion.
15760 for file in `sed -n "
15761 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15762 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15763 # Make sure the directory exists.
15764 test -f "$dirpart/$file" && continue
15765 fdir=`$as_dirname -- "$file" ||
15766 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15767 X"$file" : 'X\(//\)[^/]' \| \
15768 X"$file" : 'X\(//\)$' \| \
15769 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15770 $as_echo X"$file" |
15771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15772 s//\1/
15773 q
15774 }
15775 /^X\(\/\/\)[^/].*/{
15776 s//\1/
15777 q
15778 }
15779 /^X\(\/\/\)$/{
15780 s//\1/
15781 q
15782 }
15783 /^X\(\/\).*/{
15784 s//\1/
15785 q
15786 }
15787 s/.*/./; q'`
15788 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15789 # echo "creating $dirpart/$file"
15790 echo '# dummy' > "$dirpart/$file"
15791 done
15792 done
15793 }
15794 ;;
15795 "libtool":C)
15796
15797 # See if we are running on zsh, and set the options which allow our
15798 # commands through without removal of \ escapes.
15799 if test -n "${ZSH_VERSION+set}" ; then
15800 setopt NO_GLOB_SUBST
15801 fi
15802
15803 cfgfile="${ofile}T"
15804 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15805 $RM "$cfgfile"
15806
15807 cat <<_LT_EOF >> "$cfgfile"
15808 #! $SHELL
15809
15810 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15811 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15812 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15813 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15814 #
15815 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15816 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15817 # Written by Gordon Matzigkeit, 1996
15818 #
15819 # This file is part of GNU Libtool.
15820 #
15821 # GNU Libtool is free software; you can redistribute it and/or
15822 # modify it under the terms of the GNU General Public License as
15823 # published by the Free Software Foundation; either version 2 of
15824 # the License, or (at your option) any later version.
15825 #
15826 # As a special exception to the GNU General Public License,
15827 # if you distribute this file as part of a program or library that
15828 # is built using GNU Libtool, you may include this file under the
15829 # same distribution terms that you use for the rest of that program.
15830 #
15831 # GNU Libtool is distributed in the hope that it will be useful,
15832 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15833 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15834 # GNU General Public License for more details.
15835 #
15836 # You should have received a copy of the GNU General Public License
15837 # along with GNU Libtool; see the file COPYING. If not, a copy
15838 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15839 # obtained by writing to the Free Software Foundation, Inc.,
15840 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15841
15842
15843 # The names of the tagged configurations supported by this script.
15844 available_tags=""
15845
15846 # ### BEGIN LIBTOOL CONFIG
15847
15848 # Which release of libtool.m4 was used?
15849 macro_version=$macro_version
15850 macro_revision=$macro_revision
15851
15852 # Whether or not to build shared libraries.
15853 build_libtool_libs=$enable_shared
15854
15855 # Whether or not to build static libraries.
15856 build_old_libs=$enable_static
15857
15858 # What type of objects to build.
15859 pic_mode=$pic_mode
15860
15861 # Whether or not to optimize for fast installation.
15862 fast_install=$enable_fast_install
15863
15864 # Shell to use when invoking shell scripts.
15865 SHELL=$lt_SHELL
15866
15867 # An echo program that protects backslashes.
15868 ECHO=$lt_ECHO
15869
15870 # The host system.
15871 host_alias=$host_alias
15872 host=$host
15873 host_os=$host_os
15874
15875 # The build system.
15876 build_alias=$build_alias
15877 build=$build
15878 build_os=$build_os
15879
15880 # A sed program that does not truncate output.
15881 SED=$lt_SED
15882
15883 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15884 Xsed="\$SED -e 1s/^X//"
15885
15886 # A grep program that handles long lines.
15887 GREP=$lt_GREP
15888
15889 # An ERE matcher.
15890 EGREP=$lt_EGREP
15891
15892 # A literal string matcher.
15893 FGREP=$lt_FGREP
15894
15895 # A BSD- or MS-compatible name lister.
15896 NM=$lt_NM
15897
15898 # Whether we need soft or hard links.
15899 LN_S=$lt_LN_S
15900
15901 # What is the maximum length of a command?
15902 max_cmd_len=$max_cmd_len
15903
15904 # Object file suffix (normally "o").
15905 objext=$ac_objext
15906
15907 # Executable file suffix (normally "").
15908 exeext=$exeext
15909
15910 # whether the shell understands "unset".
15911 lt_unset=$lt_unset
15912
15913 # turn spaces into newlines.
15914 SP2NL=$lt_lt_SP2NL
15915
15916 # turn newlines into spaces.
15917 NL2SP=$lt_lt_NL2SP
15918
15919 # An object symbol dumper.
15920 OBJDUMP=$lt_OBJDUMP
15921
15922 # Method to check whether dependent libraries are shared objects.
15923 deplibs_check_method=$lt_deplibs_check_method
15924
15925 # Command to use when deplibs_check_method == "file_magic".
15926 file_magic_cmd=$lt_file_magic_cmd
15927
15928 # The archiver.
15929 AR=$lt_AR
15930 AR_FLAGS=$lt_AR_FLAGS
15931
15932 # A symbol stripping program.
15933 STRIP=$lt_STRIP
15934
15935 # Commands used to install an old-style archive.
15936 RANLIB=$lt_RANLIB
15937 old_postinstall_cmds=$lt_old_postinstall_cmds
15938 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15939
15940 # Whether to use a lock for old archive extraction.
15941 lock_old_archive_extraction=$lock_old_archive_extraction
15942
15943 # A C compiler.
15944 LTCC=$lt_CC
15945
15946 # LTCC compiler flags.
15947 LTCFLAGS=$lt_CFLAGS
15948
15949 # Take the output of nm and produce a listing of raw symbols and C names.
15950 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15951
15952 # Transform the output of nm in a proper C declaration.
15953 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15954
15955 # Transform the output of nm in a C name address pair.
15956 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15957
15958 # Transform the output of nm in a C name address pair when lib prefix is needed.
15959 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15960
15961 # The name of the directory that contains temporary libtool files.
15962 objdir=$objdir
15963
15964 # Used to examine libraries when file_magic_cmd begins with "file".
15965 MAGIC_CMD=$MAGIC_CMD
15966
15967 # Must we lock files when doing compilation?
15968 need_locks=$lt_need_locks
15969
15970 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15971 DSYMUTIL=$lt_DSYMUTIL
15972
15973 # Tool to change global to local symbols on Mac OS X.
15974 NMEDIT=$lt_NMEDIT
15975
15976 # Tool to manipulate fat objects and archives on Mac OS X.
15977 LIPO=$lt_LIPO
15978
15979 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15980 OTOOL=$lt_OTOOL
15981
15982 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15983 OTOOL64=$lt_OTOOL64
15984
15985 # Old archive suffix (normally "a").
15986 libext=$libext
15987
15988 # Shared library suffix (normally ".so").
15989 shrext_cmds=$lt_shrext_cmds
15990
15991 # The commands to extract the exported symbol list from a shared archive.
15992 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15993
15994 # Variables whose values should be saved in libtool wrapper scripts and
15995 # restored at link time.
15996 variables_saved_for_relink=$lt_variables_saved_for_relink
15997
15998 # Do we need the "lib" prefix for modules?
15999 need_lib_prefix=$need_lib_prefix
16000
16001 # Do we need a version for libraries?
16002 need_version=$need_version
16003
16004 # Library versioning type.
16005 version_type=$version_type
16006
16007 # Shared library runtime path variable.
16008 runpath_var=$runpath_var
16009
16010 # Shared library path variable.
16011 shlibpath_var=$shlibpath_var
16012
16013 # Is shlibpath searched before the hard-coded library search path?
16014 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16015
16016 # Format of library name prefix.
16017 libname_spec=$lt_libname_spec
16018
16019 # List of archive names. First name is the real one, the rest are links.
16020 # The last name is the one that the linker finds with -lNAME
16021 library_names_spec=$lt_library_names_spec
16022
16023 # The coded name of the library, if different from the real name.
16024 soname_spec=$lt_soname_spec
16025
16026 # Permission mode override for installation of shared libraries.
16027 install_override_mode=$lt_install_override_mode
16028
16029 # Command to use after installation of a shared archive.
16030 postinstall_cmds=$lt_postinstall_cmds
16031
16032 # Command to use after uninstallation of a shared archive.
16033 postuninstall_cmds=$lt_postuninstall_cmds
16034
16035 # Commands used to finish a libtool library installation in a directory.
16036 finish_cmds=$lt_finish_cmds
16037
16038 # As "finish_cmds", except a single script fragment to be evaled but
16039 # not shown.
16040 finish_eval=$lt_finish_eval
16041
16042 # Whether we should hardcode library paths into libraries.
16043 hardcode_into_libs=$hardcode_into_libs
16044
16045 # Compile-time system search path for libraries.
16046 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16047
16048 # Run-time system search path for libraries.
16049 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16050
16051 # Whether dlopen is supported.
16052 dlopen_support=$enable_dlopen
16053
16054 # Whether dlopen of programs is supported.
16055 dlopen_self=$enable_dlopen_self
16056
16057 # Whether dlopen of statically linked programs is supported.
16058 dlopen_self_static=$enable_dlopen_self_static
16059
16060 # Commands to strip libraries.
16061 old_striplib=$lt_old_striplib
16062 striplib=$lt_striplib
16063
16064
16065 # The linker used to build libraries.
16066 LD=$lt_LD
16067
16068 # How to create reloadable object files.
16069 reload_flag=$lt_reload_flag
16070 reload_cmds=$lt_reload_cmds
16071
16072 # Commands used to build an old-style archive.
16073 old_archive_cmds=$lt_old_archive_cmds
16074
16075 # A language specific compiler.
16076 CC=$lt_compiler
16077
16078 # Is the compiler the GNU compiler?
16079 with_gcc=$GCC
16080
16081 # Compiler flag to turn off builtin functions.
16082 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16083
16084 # How to pass a linker flag through the compiler.
16085 wl=$lt_lt_prog_compiler_wl
16086
16087 # Additional compiler flags for building library objects.
16088 pic_flag=$lt_lt_prog_compiler_pic
16089
16090 # Compiler flag to prevent dynamic linking.
16091 link_static_flag=$lt_lt_prog_compiler_static
16092
16093 # Does compiler simultaneously support -c and -o options?
16094 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16095
16096 # Whether or not to add -lc for building shared libraries.
16097 build_libtool_need_lc=$archive_cmds_need_lc
16098
16099 # Whether or not to disallow shared libs when runtime libs are static.
16100 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16101
16102 # Compiler flag to allow reflexive dlopens.
16103 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16104
16105 # Compiler flag to generate shared objects directly from archives.
16106 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16107
16108 # Whether the compiler copes with passing no objects directly.
16109 compiler_needs_object=$lt_compiler_needs_object
16110
16111 # Create an old-style archive from a shared archive.
16112 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16113
16114 # Create a temporary old-style archive to link instead of a shared archive.
16115 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16116
16117 # Commands used to build a shared archive.
16118 archive_cmds=$lt_archive_cmds
16119 archive_expsym_cmds=$lt_archive_expsym_cmds
16120
16121 # Commands used to build a loadable module if different from building
16122 # a shared archive.
16123 module_cmds=$lt_module_cmds
16124 module_expsym_cmds=$lt_module_expsym_cmds
16125
16126 # Whether we are building with GNU ld or not.
16127 with_gnu_ld=$lt_with_gnu_ld
16128
16129 # Flag that allows shared libraries with undefined symbols to be built.
16130 allow_undefined_flag=$lt_allow_undefined_flag
16131
16132 # Flag that enforces no undefined symbols.
16133 no_undefined_flag=$lt_no_undefined_flag
16134
16135 # Flag to hardcode \$libdir into a binary during linking.
16136 # This must work even if \$libdir does not exist
16137 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16138
16139 # If ld is used when linking, flag to hardcode \$libdir into a binary
16140 # during linking. This must work even if \$libdir does not exist.
16141 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16142
16143 # Whether we need a single "-rpath" flag with a separated argument.
16144 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16145
16146 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16147 # DIR into the resulting binary.
16148 hardcode_direct=$hardcode_direct
16149
16150 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16151 # DIR into the resulting binary and the resulting library dependency is
16152 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16153 # library is relocated.
16154 hardcode_direct_absolute=$hardcode_direct_absolute
16155
16156 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16157 # into the resulting binary.
16158 hardcode_minus_L=$hardcode_minus_L
16159
16160 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16161 # into the resulting binary.
16162 hardcode_shlibpath_var=$hardcode_shlibpath_var
16163
16164 # Set to "yes" if building a shared library automatically hardcodes DIR
16165 # into the library and all subsequent libraries and executables linked
16166 # against it.
16167 hardcode_automatic=$hardcode_automatic
16168
16169 # Set to yes if linker adds runtime paths of dependent libraries
16170 # to runtime path list.
16171 inherit_rpath=$inherit_rpath
16172
16173 # Whether libtool must link a program against all its dependency libraries.
16174 link_all_deplibs=$link_all_deplibs
16175
16176 # Fix the shell variable \$srcfile for the compiler.
16177 fix_srcfile_path=$lt_fix_srcfile_path
16178
16179 # Set to "yes" if exported symbols are required.
16180 always_export_symbols=$always_export_symbols
16181
16182 # The commands to list exported symbols.
16183 export_symbols_cmds=$lt_export_symbols_cmds
16184
16185 # Symbols that should not be listed in the preloaded symbols.
16186 exclude_expsyms=$lt_exclude_expsyms
16187
16188 # Symbols that must always be exported.
16189 include_expsyms=$lt_include_expsyms
16190
16191 # Commands necessary for linking programs (against libraries) with templates.
16192 prelink_cmds=$lt_prelink_cmds
16193
16194 # Specify filename containing input files.
16195 file_list_spec=$lt_file_list_spec
16196
16197 # How to hardcode a shared library path into an executable.
16198 hardcode_action=$hardcode_action
16199
16200 # ### END LIBTOOL CONFIG
16201
16202 _LT_EOF
16203
16204 case $host_os in
16205 aix3*)
16206 cat <<\_LT_EOF >> "$cfgfile"
16207 # AIX sometimes has problems with the GCC collect2 program. For some
16208 # reason, if we set the COLLECT_NAMES environment variable, the problems
16209 # vanish in a puff of smoke.
16210 if test "X${COLLECT_NAMES+set}" != Xset; then
16211 COLLECT_NAMES=
16212 export COLLECT_NAMES
16213 fi
16214 _LT_EOF
16215 ;;
16216 esac
16217
16218
16219 ltmain="$ac_aux_dir/ltmain.sh"
16220
16221
16222 # We use sed instead of cat because bash on DJGPP gets confused if
16223 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16224 # text mode, it properly converts lines to CR/LF. This bash problem
16225 # is reportedly fixed, but why not run on old versions too?
16226 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16227 || (rm -f "$cfgfile"; exit 1)
16228
16229 case $xsi_shell in
16230 yes)
16231 cat << \_LT_EOF >> "$cfgfile"
16232
16233 # func_dirname file append nondir_replacement
16234 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16235 # otherwise set result to NONDIR_REPLACEMENT.
16236 func_dirname ()
16237 {
16238 case ${1} in
16239 */*) func_dirname_result="${1%/*}${2}" ;;
16240 * ) func_dirname_result="${3}" ;;
16241 esac
16242 }
16243
16244 # func_basename file
16245 func_basename ()
16246 {
16247 func_basename_result="${1##*/}"
16248 }
16249
16250 # func_dirname_and_basename file append nondir_replacement
16251 # perform func_basename and func_dirname in a single function
16252 # call:
16253 # dirname: Compute the dirname of FILE. If nonempty,
16254 # add APPEND to the result, otherwise set result
16255 # to NONDIR_REPLACEMENT.
16256 # value returned in "$func_dirname_result"
16257 # basename: Compute filename of FILE.
16258 # value retuned in "$func_basename_result"
16259 # Implementation must be kept synchronized with func_dirname
16260 # and func_basename. For efficiency, we do not delegate to
16261 # those functions but instead duplicate the functionality here.
16262 func_dirname_and_basename ()
16263 {
16264 case ${1} in
16265 */*) func_dirname_result="${1%/*}${2}" ;;
16266 * ) func_dirname_result="${3}" ;;
16267 esac
16268 func_basename_result="${1##*/}"
16269 }
16270
16271 # func_stripname prefix suffix name
16272 # strip PREFIX and SUFFIX off of NAME.
16273 # PREFIX and SUFFIX must not contain globbing or regex special
16274 # characters, hashes, percent signs, but SUFFIX may contain a leading
16275 # dot (in which case that matches only a dot).
16276 func_stripname ()
16277 {
16278 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16279 # positional parameters, so assign one to ordinary parameter first.
16280 func_stripname_result=${3}
16281 func_stripname_result=${func_stripname_result#"${1}"}
16282 func_stripname_result=${func_stripname_result%"${2}"}
16283 }
16284
16285 # func_opt_split
16286 func_opt_split ()
16287 {
16288 func_opt_split_opt=${1%%=*}
16289 func_opt_split_arg=${1#*=}
16290 }
16291
16292 # func_lo2o object
16293 func_lo2o ()
16294 {
16295 case ${1} in
16296 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16297 *) func_lo2o_result=${1} ;;
16298 esac
16299 }
16300
16301 # func_xform libobj-or-source
16302 func_xform ()
16303 {
16304 func_xform_result=${1%.*}.lo
16305 }
16306
16307 # func_arith arithmetic-term...
16308 func_arith ()
16309 {
16310 func_arith_result=$(( $* ))
16311 }
16312
16313 # func_len string
16314 # STRING may not start with a hyphen.
16315 func_len ()
16316 {
16317 func_len_result=${#1}
16318 }
16319
16320 _LT_EOF
16321 ;;
16322 *) # Bourne compatible functions.
16323 cat << \_LT_EOF >> "$cfgfile"
16324
16325 # func_dirname file append nondir_replacement
16326 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16327 # otherwise set result to NONDIR_REPLACEMENT.
16328 func_dirname ()
16329 {
16330 # Extract subdirectory from the argument.
16331 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16332 if test "X$func_dirname_result" = "X${1}"; then
16333 func_dirname_result="${3}"
16334 else
16335 func_dirname_result="$func_dirname_result${2}"
16336 fi
16337 }
16338
16339 # func_basename file
16340 func_basename ()
16341 {
16342 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16343 }
16344
16345
16346 # func_stripname prefix suffix name
16347 # strip PREFIX and SUFFIX off of NAME.
16348 # PREFIX and SUFFIX must not contain globbing or regex special
16349 # characters, hashes, percent signs, but SUFFIX may contain a leading
16350 # dot (in which case that matches only a dot).
16351 # func_strip_suffix prefix name
16352 func_stripname ()
16353 {
16354 case ${2} in
16355 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16356 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16357 esac
16358 }
16359
16360 # sed scripts:
16361 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16362 my_sed_long_arg='1s/^-[^=]*=//'
16363
16364 # func_opt_split
16365 func_opt_split ()
16366 {
16367 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16368 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16369 }
16370
16371 # func_lo2o object
16372 func_lo2o ()
16373 {
16374 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16375 }
16376
16377 # func_xform libobj-or-source
16378 func_xform ()
16379 {
16380 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16381 }
16382
16383 # func_arith arithmetic-term...
16384 func_arith ()
16385 {
16386 func_arith_result=`expr "$@"`
16387 }
16388
16389 # func_len string
16390 # STRING may not start with a hyphen.
16391 func_len ()
16392 {
16393 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16394 }
16395
16396 _LT_EOF
16397 esac
16398
16399 case $lt_shell_append in
16400 yes)
16401 cat << \_LT_EOF >> "$cfgfile"
16402
16403 # func_append var value
16404 # Append VALUE to the end of shell variable VAR.
16405 func_append ()
16406 {
16407 eval "$1+=\$2"
16408 }
16409 _LT_EOF
16410 ;;
16411 *)
16412 cat << \_LT_EOF >> "$cfgfile"
16413
16414 # func_append var value
16415 # Append VALUE to the end of shell variable VAR.
16416 func_append ()
16417 {
16418 eval "$1=\$$1\$2"
16419 }
16420
16421 _LT_EOF
16422 ;;
16423 esac
16424
16425
16426 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16427 || (rm -f "$cfgfile"; exit 1)
16428
16429 mv -f "$cfgfile" "$ofile" ||
16430 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16431 chmod +x "$ofile"
16432
16433 ;;
16434 "default-1":C)
16435 for ac_file in $CONFIG_FILES; do
16436 # Support "outfile[:infile[:infile...]]"
16437 case "$ac_file" in
16438 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16439 esac
16440 # PO directories have a Makefile.in generated from Makefile.in.in.
16441 case "$ac_file" in */Makefile.in)
16442 # Adjust a relative srcdir.
16443 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16444 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16445 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16446 # In autoconf-2.13 it is called $ac_given_srcdir.
16447 # In autoconf-2.50 it is called $srcdir.
16448 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16449 case "$ac_given_srcdir" in
16450 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16451 /*) top_srcdir="$ac_given_srcdir" ;;
16452 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16453 esac
16454 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16455 rm -f "$ac_dir/POTFILES"
16456 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16457 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16458 POMAKEFILEDEPS="POTFILES.in"
16459 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16460 # on $ac_dir but don't depend on user-specified configuration
16461 # parameters.
16462 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16463 # The LINGUAS file contains the set of available languages.
16464 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16465 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16466 fi
16467 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16468 # Hide the ALL_LINGUAS assigment from automake.
16469 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16470 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16471 else
16472 # The set of available languages was given in configure.ac.
16473 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16474 fi
16475 case "$ac_given_srcdir" in
16476 .) srcdirpre= ;;
16477 *) srcdirpre='$(srcdir)/' ;;
16478 esac
16479 POFILES=
16480 GMOFILES=
16481 UPDATEPOFILES=
16482 DUMMYPOFILES=
16483 for lang in $ALL_LINGUAS; do
16484 POFILES="$POFILES $srcdirpre$lang.po"
16485 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16486 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16487 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16488 done
16489 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16490 # environment variable.
16491 INST_LINGUAS=
16492 if test -n "$ALL_LINGUAS"; then
16493 for presentlang in $ALL_LINGUAS; do
16494 useit=no
16495 if test "%UNSET%" != "$LINGUAS"; then
16496 desiredlanguages="$LINGUAS"
16497 else
16498 desiredlanguages="$ALL_LINGUAS"
16499 fi
16500 for desiredlang in $desiredlanguages; do
16501 # Use the presentlang catalog if desiredlang is
16502 # a. equal to presentlang, or
16503 # b. a variant of presentlang (because in this case,
16504 # presentlang can be used as a fallback for messages
16505 # which are not translated in the desiredlang catalog).
16506 case "$desiredlang" in
16507 "$presentlang"*) useit=yes;;
16508 esac
16509 done
16510 if test $useit = yes; then
16511 INST_LINGUAS="$INST_LINGUAS $presentlang"
16512 fi
16513 done
16514 fi
16515 CATALOGS=
16516 if test -n "$INST_LINGUAS"; then
16517 for lang in $INST_LINGUAS; do
16518 CATALOGS="$CATALOGS $lang.gmo"
16519 done
16520 fi
16521 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16522 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"
16523 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16524 if test -f "$f"; then
16525 case "$f" in
16526 *.orig | *.bak | *~) ;;
16527 *) cat "$f" >> "$ac_dir/Makefile" ;;
16528 esac
16529 fi
16530 done
16531 fi
16532 ;;
16533 esac
16534 done ;;
16535 "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
16536 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16537 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16538 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16539 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16540 if test "x$cgen_cpu_prefix" != x ; then
16541 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16542 fi ;;
16543
16544 esac
16545 done # for ac_tag
16546
16547
16548 as_fn_exit 0
16549 _ACEOF
16550 ac_clean_files=$ac_clean_files_save
16551
16552 test $ac_write_fail = 0 ||
16553 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16554
16555
16556 # configure is writing to config.log, and then calls config.status.
16557 # config.status does its own redirection, appending to config.log.
16558 # Unfortunately, on DOS this fails, as config.log is still kept open
16559 # by configure, so config.status won't be able to write to it; its
16560 # output is simply discarded. So we exec the FD to /dev/null,
16561 # effectively closing config.log, so it can be properly (re)opened and
16562 # appended to by config.status. When coming back to configure, we
16563 # need to make the FD available again.
16564 if test "$no_create" != yes; then
16565 ac_cs_success=:
16566 ac_config_status_args=
16567 test "$silent" = yes &&
16568 ac_config_status_args="$ac_config_status_args --quiet"
16569 exec 5>/dev/null
16570 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16571 exec 5>>config.log
16572 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16573 # would make configure fail if this is the last instruction.
16574 $ac_cs_success || as_fn_exit 1
16575 fi
16576 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16578 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16579 fi
16580
16581
16582
16583 touch config.status.tmp
16584 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
16585 sed '/as_fn_exit 0/i \
16586 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
16587 touch --reference=Makefile Makefile.tmp \
16588 mv Makefile.tmp Makefile \
16589 ' config.status > config.status.tmp
16590 touch --reference=config.status config.status.tmp
16591 mv config.status.tmp config.status
16592 chmod +x config.status
16593 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
16594 touch --reference=Makefile Makefile.tmp
16595 mv Makefile.tmp Makefile
16596 else
16597 rm -f config.status.tmp
16598 fi