]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/configure
binutils, gdb: support zstd compressed debug sections
[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 ZSTD_LIBS
637 ZSTD_CFLAGS
638 PKG_CONFIG_LIBDIR
639 PKG_CONFIG_PATH
640 PKG_CONFIG
641 zlibinc
642 zlibdir
643 LIBM
644 GENINSRC_NEVER_FALSE
645 GENINSRC_NEVER_TRUE
646 MAINT
647 MAINTAINER_MODE_FALSE
648 MAINTAINER_MODE_TRUE
649 MSGMERGE
650 MSGFMT
651 MKINSTALLDIRS
652 CATOBJEXT
653 GENCAT
654 INSTOBJEXT
655 DATADIRNAME
656 CATALOGS
657 POSUB
658 GMSGFMT
659 XGETTEXT
660 INCINTL
661 LIBINTL_DEP
662 LIBINTL
663 USE_NLS
664 LEXLIB
665 LEX_OUTPUT_ROOT
666 LEX
667 YFLAGS
668 YACC
669 OPCODES_LIB
670 atof
671 install_tooldir
672 te_file
673 obj_format
674 target_cpu_type
675 extra_objects
676 cgen_cpu_prefix
677 GDBINIT
678 WARN_WRITE_STRINGS
679 NO_WERROR
680 WARN_CFLAGS_FOR_BUILD
681 WARN_CFLAGS
682 do_compare
683 LARGEFILE_CPPFLAGS
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 RANLIB
690 AR
691 OBJDUMP
692 LN_S
693 NM
694 ac_ct_DUMPBIN
695 DUMPBIN
696 LD
697 FGREP
698 SED
699 LIBTOOL
700 EGREP
701 GREP
702 CPP
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__quote
711 am__include
712 DEPDIR
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
719 CC
720 AM_BACKSLASH
721 AM_DEFAULT_VERBOSITY
722 AM_DEFAULT_V
723 AM_V
724 am__untar
725 am__tar
726 AMTAR
727 am__leading_dot
728 SET_MAKE
729 AWK
730 mkdir_p
731 MKDIR_P
732 INSTALL_STRIP_PROGRAM
733 STRIP
734 install_sh
735 MAKEINFO
736 AUTOHEADER
737 AUTOMAKE
738 AUTOCONF
739 ACLOCAL
740 VERSION
741 PACKAGE
742 CYGPATH_W
743 am__isrc
744 INSTALL_DATA
745 INSTALL_SCRIPT
746 INSTALL_PROGRAM
747 target_os
748 target_vendor
749 target_cpu
750 target
751 host_os
752 host_vendor
753 host_cpu
754 host
755 build_os
756 build_vendor
757 build_cpu
758 build
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_silent_rules
801 enable_dependency_tracking
802 enable_shared
803 enable_static
804 with_pic
805 enable_fast_install
806 with_gnu_ld
807 enable_libtool_lock
808 enable_plugins
809 enable_largefile
810 enable_targets
811 enable_checking
812 enable_compressed_debug_sections
813 enable_x86_relax_relocations
814 enable_elf_stt_common
815 enable_generate_build_notes
816 enable_mips_fix_loongson3_llsc
817 enable_x86_used_note
818 enable_default_riscv_attribute
819 enable_werror
820 enable_build_warnings
821 with_cpu
822 enable_nls
823 enable_maintainer_mode
824 with_system_zlib
825 with_zstd
826 '
827 ac_precious_vars='build_alias
828 host_alias
829 target_alias
830 CC
831 CFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
835 CPP
836 YACC
837 YFLAGS
838 PKG_CONFIG
839 PKG_CONFIG_PATH
840 PKG_CONFIG_LIBDIR
841 ZSTD_CFLAGS
842 ZSTD_LIBS'
843
844
845 # Initialize some variables set by options.
846 ac_init_help=
847 ac_init_version=false
848 ac_unrecognized_opts=
849 ac_unrecognized_sep=
850 # The variables have the same names as the options, with
851 # dashes changed to underlines.
852 cache_file=/dev/null
853 exec_prefix=NONE
854 no_create=
855 no_recursion=
856 prefix=NONE
857 program_prefix=NONE
858 program_suffix=NONE
859 program_transform_name=s,x,x,
860 silent=
861 site=
862 srcdir=
863 verbose=
864 x_includes=NONE
865 x_libraries=NONE
866
867 # Installation directory options.
868 # These are left unexpanded so users can "make install exec_prefix=/foo"
869 # and all the variables that are supposed to be based on exec_prefix
870 # by default will actually change.
871 # Use braces instead of parens because sh, perl, etc. also accept them.
872 # (The list follows the same order as the GNU Coding Standards.)
873 bindir='${exec_prefix}/bin'
874 sbindir='${exec_prefix}/sbin'
875 libexecdir='${exec_prefix}/libexec'
876 datarootdir='${prefix}/share'
877 datadir='${datarootdir}'
878 sysconfdir='${prefix}/etc'
879 sharedstatedir='${prefix}/com'
880 localstatedir='${prefix}/var'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
892
893 ac_prev=
894 ac_dashdash=
895 for ac_option
896 do
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
902 fi
903
904 case $ac_option in
905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *=) ac_optarg= ;;
907 *) ac_optarg=yes ;;
908 esac
909
910 # Accept the important Cygnus configure options, so we can diagnose typos.
911
912 case $ac_dashdash$ac_option in
913 --)
914 ac_dashdash=yes ;;
915
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
920
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
925
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
932
933 --config-cache | -C)
934 cache_file=config.cache ;;
935
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
940
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
947
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
963
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
968
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
973
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
989
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
998
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1002
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1009
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1014
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1020
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1027
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1032
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1037
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1044
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1049
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1056
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1061
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1065
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1069
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1073
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1082
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1087
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1094
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1101
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1118
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1123
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1128
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1132
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1138
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1149
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1154
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1159
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1166
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1171
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1174
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1177
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
1193
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1209
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1213
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1220
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1227
1228 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information"
1230 ;;
1231
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1241
1242 *)
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 ;;
1249
1250 esac
1251 done
1252
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error $? "missing argument to $ac_option"
1256 fi
1257
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1264 fi
1265
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1271 do
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
1280 case $ac_val in
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 esac
1284 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1286
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1300 fi
1301 fi
1302
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306 test "$silent" = yes && exec 6>/dev/null
1307
1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $? "pwd does not report name of working directory"
1315
1316
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\).*/{
1340 s//\1/
1341 q
1342 }
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1347 fi
1348 else
1349 ac_srcdir_defaulted=no
1350 fi
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 fi
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures gas 2.39.50 to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1437
1438 cat <<\_ACEOF
1439
1440 Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444
1445 System types:
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 --target=TARGET configure for building compilers for TARGET [HOST]
1449 _ACEOF
1450 fi
1451
1452 if test -n "$ac_init_help"; then
1453 case $ac_init_help in
1454 short | recursive ) echo "Configuration of gas 2.39.50:";;
1455 esac
1456 cat <<\_ACEOF
1457
1458 Optional Features:
1459 --disable-option-checking ignore unrecognized --enable/--with options
1460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1462 --enable-silent-rules less verbose build output (undo: "make V=1")
1463 --disable-silent-rules verbose build output (undo: "make V=0")
1464 --enable-dependency-tracking
1465 do not reject slow dependency extractors
1466 --disable-dependency-tracking
1467 speeds up one-time build
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --disable-libtool-lock avoid locking (might break parallel builds)
1473 --enable-plugins Enable support for plugins
1474 --disable-largefile omit support for large files
1475 --enable-targets alternative target configurations besides the primary
1476 --enable-checking enable run-time checks
1477 --enable-compressed-debug-sections={all,gas,none}
1478 compress debug sections by default
1479 --enable-x86-relax-relocations
1480 generate x86 relax relocations by default
1481 --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1482 default
1483 --enable-generate-build-notes
1484 generate GNU Build notes if none are provided by the
1485 input
1486 --enable-mips-fix-loongson3-llsc
1487 enable MIPS fix Loongson3 LLSC errata
1488 --enable-x86-used-note generate GNU x86 used ISA and feature properties
1489 --enable-default-riscv-attribute
1490 generate RISC-V arch attribute by default
1491 --enable-werror treat compile warnings as errors
1492 --enable-build-warnings enable build-time compiler warnings
1493 --disable-nls do not use Native Language Support
1494 --enable-maintainer-mode
1495 enable make rules and dependencies not useful (and
1496 sometimes confusing) to the casual installer
1497
1498 Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-pic try to use only PIC/non-PIC objects [default=use
1502 both]
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-cpu=CPU default cpu variant is CPU (currently only supported
1505 on ARC)
1506 --with-system-zlib use installed libz
1507 --with-zstd support zstd compressed debug sections
1508 (default=auto)
1509
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 CPP C preprocessor
1519 YACC The `Yet Another Compiler Compiler' implementation to use.
1520 Defaults to the first program found out of: `bison -y', `byacc',
1521 `yacc'.
1522 YFLAGS The list of arguments that will be passed by default to $YACC.
1523 This script will default YFLAGS to the empty string to avoid a
1524 default value of `-d' given by some make applications.
1525 PKG_CONFIG path to pkg-config utility
1526 PKG_CONFIG_PATH
1527 directories to add to pkg-config's search path
1528 PKG_CONFIG_LIBDIR
1529 path overriding pkg-config's built-in search path
1530 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1531 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1532
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1535
1536 Report bugs to the package provider.
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 continue
1547 ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598 cat <<\_ACEOF
1599 gas configure 2.39.50
1600 generated by GNU Autoconf 2.69
1601
1602 Copyright (C) 2012 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606 exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext
1620 if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645 fi
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_compile
1650
1651 # ac_fn_c_try_cpp LINENO
1652 # ----------------------
1653 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_cpp ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } > conftest.i && {
1673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_cpp
1687
1688 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1691 # the include files in INCLUDES and setting the cache variable VAR
1692 # accordingly.
1693 ac_fn_c_check_header_mongrel ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if eval \${$3+:} false; then :
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if eval \${$3+:} false; then :
1700 $as_echo_n "(cached) " >&6
1701 fi
1702 eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 else
1706 # Is the header compilable?
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1708 $as_echo_n "checking $2 usability... " >&6; }
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1711 $4
1712 #include <$2>
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715 ac_header_compiler=yes
1716 else
1717 ac_header_compiler=no
1718 fi
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1721 $as_echo "$ac_header_compiler" >&6; }
1722
1723 # Is the header present?
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1725 $as_echo_n "checking $2 presence... " >&6; }
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1728 #include <$2>
1729 _ACEOF
1730 if ac_fn_c_try_cpp "$LINENO"; then :
1731 ac_header_preproc=yes
1732 else
1733 ac_header_preproc=no
1734 fi
1735 rm -f conftest.err conftest.i conftest.$ac_ext
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1737 $as_echo "$ac_header_preproc" >&6; }
1738
1739 # So? What about this header?
1740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1741 yes:no: )
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1743 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1745 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 ;;
1747 no:yes:* )
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1749 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1751 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1753 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1755 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1757 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1758 ;;
1759 esac
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if eval \${$3+:} false; then :
1763 $as_echo_n "(cached) " >&6
1764 else
1765 eval "$3=\$ac_header_compiler"
1766 fi
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 fi
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773 } # ac_fn_c_check_header_mongrel
1774
1775 # ac_fn_c_try_run LINENO
1776 # ----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1778 # that executables *can* be run.
1779 ac_fn_c_try_run ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>&5
1790 ac_status=$?
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1793 { { case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_try") 2>&5
1800 ac_status=$?
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; }; }; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: program exited with status $ac_status" >&5
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=$ac_status
1810 fi
1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1814
1815 } # ac_fn_c_try_run
1816
1817 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1818 # -------------------------------------------------------
1819 # Tests whether HEADER exists and can be compiled using the include files in
1820 # INCLUDES, setting the cache variable VAR accordingly.
1821 ac_fn_c_check_header_compile ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828 else
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 $4
1832 #include <$2>
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"; then :
1835 eval "$3=yes"
1836 else
1837 eval "$3=no"
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 fi
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846 } # ac_fn_c_check_header_compile
1847
1848 # ac_fn_c_try_link LINENO
1849 # -----------------------
1850 # Try to link conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_link ()
1852 {
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext conftest$ac_exeext
1855 if { { ac_try="$ac_link"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_link") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest$ac_exeext && {
1874 test "$cross_compiling" = yes ||
1875 test -x conftest$ac_exeext
1876 }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 ac_retval=1
1883 fi
1884 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1885 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1886 # interfere with the next link command; also delete a directory that is
1887 # left behind by Apple's compiler. We do this before executing the actions.
1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1891
1892 } # ac_fn_c_try_link
1893
1894 # ac_fn_c_check_func LINENO FUNC VAR
1895 # ----------------------------------
1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897 ac_fn_c_check_func ()
1898 {
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1909 #define $2 innocuous_$2
1910
1911 /* System header to define __stub macros and hopefully few prototypes,
1912 which can conflict with char $2 (); below.
1913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1914 <limits.h> exists even on freestanding compilers. */
1915
1916 #ifdef __STDC__
1917 # include <limits.h>
1918 #else
1919 # include <assert.h>
1920 #endif
1921
1922 #undef $2
1923
1924 /* Override any GCC internal prototype to avoid an error.
1925 Use char because int might match the return type of a GCC
1926 builtin and then its argument prototype would still apply. */
1927 #ifdef __cplusplus
1928 extern "C"
1929 #endif
1930 char $2 ();
1931 /* The GNU C library defines this for functions which it implements
1932 to always fail with ENOSYS. Some functions are actually named
1933 something starting with __ and the normal name is an alias. */
1934 #if defined __stub_$2 || defined __stub___$2
1935 choke me
1936 #endif
1937
1938 int
1939 main ()
1940 {
1941 return $2 ();
1942 ;
1943 return 0;
1944 }
1945 _ACEOF
1946 if ac_fn_c_try_link "$LINENO"; then :
1947 eval "$3=yes"
1948 else
1949 eval "$3=no"
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext \
1952 conftest$ac_exeext conftest.$ac_ext
1953 fi
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959 } # ac_fn_c_check_func
1960
1961 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1962 # ---------------------------------------------
1963 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1964 # accordingly.
1965 ac_fn_c_check_decl ()
1966 {
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 as_decl_name=`echo $2|sed 's/ *(.*//'`
1969 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1971 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1972 if eval \${$3+:} false; then :
1973 $as_echo_n "(cached) " >&6
1974 else
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 $4
1978 int
1979 main ()
1980 {
1981 #ifndef $as_decl_name
1982 #ifdef __cplusplus
1983 (void) $as_decl_use;
1984 #else
1985 (void) $as_decl_name;
1986 #endif
1987 #endif
1988
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 eval "$3=yes"
1995 else
1996 eval "$3=no"
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005 } # ac_fn_c_check_decl
2006 cat >config.log <<_ACEOF
2007 This file contains any messages produced by compilers while
2008 running configure, to aid debugging if configure makes a mistake.
2009
2010 It was created by gas $as_me 2.39.50, which was
2011 generated by GNU Autoconf 2.69. Invocation command line was
2012
2013 $ $0 $@
2014
2015 _ACEOF
2016 exec 5>>config.log
2017 {
2018 cat <<_ASUNAME
2019 ## --------- ##
2020 ## Platform. ##
2021 ## --------- ##
2022
2023 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028
2029 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2031
2032 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2033 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2034 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2035 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2036 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2037 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2038 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2039
2040 _ASUNAME
2041
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 $as_echo "PATH: $as_dir"
2048 done
2049 IFS=$as_save_IFS
2050
2051 } >&5
2052
2053 cat >&5 <<_ACEOF
2054
2055
2056 ## ----------- ##
2057 ## Core tests. ##
2058 ## ----------- ##
2059
2060 _ACEOF
2061
2062
2063 # Keep a trace of the command line.
2064 # Strip out --no-create and --no-recursion so they do not pile up.
2065 # Strip out --silent because we don't want to record it for future runs.
2066 # Also quote any args containing shell meta-characters.
2067 # Make two passes to allow for proper duplicate-argument suppression.
2068 ac_configure_args=
2069 ac_configure_args0=
2070 ac_configure_args1=
2071 ac_must_keep_next=false
2072 for ac_pass in 1 2
2073 do
2074 for ac_arg
2075 do
2076 case $ac_arg in
2077 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2079 | -silent | --silent | --silen | --sile | --sil)
2080 continue ;;
2081 *\'*)
2082 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2083 esac
2084 case $ac_pass in
2085 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2086 2)
2087 as_fn_append ac_configure_args1 " '$ac_arg'"
2088 if test $ac_must_keep_next = true; then
2089 ac_must_keep_next=false # Got value, back to normal.
2090 else
2091 case $ac_arg in
2092 *=* | --config-cache | -C | -disable-* | --disable-* \
2093 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2094 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2095 | -with-* | --with-* | -without-* | --without-* | --x)
2096 case "$ac_configure_args0 " in
2097 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2098 esac
2099 ;;
2100 -* ) ac_must_keep_next=true ;;
2101 esac
2102 fi
2103 as_fn_append ac_configure_args " '$ac_arg'"
2104 ;;
2105 esac
2106 done
2107 done
2108 { ac_configure_args0=; unset ac_configure_args0;}
2109 { ac_configure_args1=; unset ac_configure_args1;}
2110
2111 # When interrupted or exit'd, cleanup temporary files, and complete
2112 # config.log. We remove comments because anyway the quotes in there
2113 # would cause problems or look ugly.
2114 # WARNING: Use '\'' to represent an apostrophe within the trap.
2115 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2116 trap 'exit_status=$?
2117 # Save into config.log some information that might help in debugging.
2118 {
2119 echo
2120
2121 $as_echo "## ---------------- ##
2122 ## Cache variables. ##
2123 ## ---------------- ##"
2124 echo
2125 # The following way of writing the cache mishandles newlines in values,
2126 (
2127 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2128 eval ac_val=\$$ac_var
2129 case $ac_val in #(
2130 *${as_nl}*)
2131 case $ac_var in #(
2132 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2133 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2134 esac
2135 case $ac_var in #(
2136 _ | IFS | as_nl) ;; #(
2137 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2138 *) { eval $ac_var=; unset $ac_var;} ;;
2139 esac ;;
2140 esac
2141 done
2142 (set) 2>&1 |
2143 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2144 *${as_nl}ac_space=\ *)
2145 sed -n \
2146 "s/'\''/'\''\\\\'\'''\''/g;
2147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2148 ;; #(
2149 *)
2150 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2151 ;;
2152 esac |
2153 sort
2154 )
2155 echo
2156
2157 $as_echo "## ----------------- ##
2158 ## Output variables. ##
2159 ## ----------------- ##"
2160 echo
2161 for ac_var in $ac_subst_vars
2162 do
2163 eval ac_val=\$$ac_var
2164 case $ac_val in
2165 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166 esac
2167 $as_echo "$ac_var='\''$ac_val'\''"
2168 done | sort
2169 echo
2170
2171 if test -n "$ac_subst_files"; then
2172 $as_echo "## ------------------- ##
2173 ## File substitutions. ##
2174 ## ------------------- ##"
2175 echo
2176 for ac_var in $ac_subst_files
2177 do
2178 eval ac_val=\$$ac_var
2179 case $ac_val in
2180 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2181 esac
2182 $as_echo "$ac_var='\''$ac_val'\''"
2183 done | sort
2184 echo
2185 fi
2186
2187 if test -s confdefs.h; then
2188 $as_echo "## ----------- ##
2189 ## confdefs.h. ##
2190 ## ----------- ##"
2191 echo
2192 cat confdefs.h
2193 echo
2194 fi
2195 test "$ac_signal" != 0 &&
2196 $as_echo "$as_me: caught signal $ac_signal"
2197 $as_echo "$as_me: exit $exit_status"
2198 } >&5
2199 rm -f core *.core core.conftest.* &&
2200 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2201 exit $exit_status
2202 ' 0
2203 for ac_signal in 1 2 13 15; do
2204 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2205 done
2206 ac_signal=0
2207
2208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2209 rm -f -r conftest* confdefs.h
2210
2211 $as_echo "/* confdefs.h */" > confdefs.h
2212
2213 # Predefined preprocessor variables.
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_NAME "$PACKAGE_NAME"
2217 _ACEOF
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2221 _ACEOF
2222
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2225 _ACEOF
2226
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_STRING "$PACKAGE_STRING"
2229 _ACEOF
2230
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2233 _ACEOF
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_URL "$PACKAGE_URL"
2237 _ACEOF
2238
2239
2240 # Let the site file select an alternate cache file if it wants to.
2241 # Prefer an explicitly selected file to automatically selected ones.
2242 ac_site_file1=NONE
2243 ac_site_file2=NONE
2244 if test -n "$CONFIG_SITE"; then
2245 # We do not want a PATH search for config.site.
2246 case $CONFIG_SITE in #((
2247 -*) ac_site_file1=./$CONFIG_SITE;;
2248 */*) ac_site_file1=$CONFIG_SITE;;
2249 *) ac_site_file1=./$CONFIG_SITE;;
2250 esac
2251 elif test "x$prefix" != xNONE; then
2252 ac_site_file1=$prefix/share/config.site
2253 ac_site_file2=$prefix/etc/config.site
2254 else
2255 ac_site_file1=$ac_default_prefix/share/config.site
2256 ac_site_file2=$ac_default_prefix/etc/config.site
2257 fi
2258 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2259 do
2260 test "x$ac_site_file" = xNONE && continue
2261 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2263 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2264 sed 's/^/| /' "$ac_site_file" >&5
2265 . "$ac_site_file" \
2266 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2268 as_fn_error $? "failed to load site script $ac_site_file
2269 See \`config.log' for more details" "$LINENO" 5; }
2270 fi
2271 done
2272
2273 if test -r "$cache_file"; then
2274 # Some versions of bash will fail to source /dev/null (special files
2275 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2276 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2278 $as_echo "$as_me: loading cache $cache_file" >&6;}
2279 case $cache_file in
2280 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2281 *) . "./$cache_file";;
2282 esac
2283 fi
2284 else
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2286 $as_echo "$as_me: creating cache $cache_file" >&6;}
2287 >$cache_file
2288 fi
2289
2290 # Check that the precious variables saved in the cache have kept the same
2291 # value.
2292 ac_cache_corrupted=false
2293 for ac_var in $ac_precious_vars; do
2294 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2295 eval ac_new_set=\$ac_env_${ac_var}_set
2296 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2297 eval ac_new_val=\$ac_env_${ac_var}_value
2298 case $ac_old_set,$ac_new_set in
2299 set,)
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2301 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2302 ac_cache_corrupted=: ;;
2303 ,set)
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2305 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2306 ac_cache_corrupted=: ;;
2307 ,);;
2308 *)
2309 if test "x$ac_old_val" != "x$ac_new_val"; then
2310 # differences in whitespace do not lead to failure.
2311 ac_old_val_w=`echo x $ac_old_val`
2312 ac_new_val_w=`echo x $ac_new_val`
2313 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2315 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2316 ac_cache_corrupted=:
2317 else
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2319 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2320 eval $ac_var=\$ac_old_val
2321 fi
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2323 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2325 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2326 fi;;
2327 esac
2328 # Pass precious variables to config.status.
2329 if test "$ac_new_set" = set; then
2330 case $ac_new_val in
2331 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2332 *) ac_arg=$ac_var=$ac_new_val ;;
2333 esac
2334 case " $ac_configure_args " in
2335 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2336 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2337 esac
2338 fi
2339 done
2340 if $ac_cache_corrupted; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2344 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2345 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2346 fi
2347 ## -------------------- ##
2348 ## Main body of script. ##
2349 ## -------------------- ##
2350
2351 ac_ext=c
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356
2357
2358
2359
2360
2361
2362
2363 ac_aux_dir=
2364 for ac_dir in .. "$srcdir"/..; do
2365 if test -f "$ac_dir/install-sh"; then
2366 ac_aux_dir=$ac_dir
2367 ac_install_sh="$ac_aux_dir/install-sh -c"
2368 break
2369 elif test -f "$ac_dir/install.sh"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/install.sh -c"
2372 break
2373 elif test -f "$ac_dir/shtool"; then
2374 ac_aux_dir=$ac_dir
2375 ac_install_sh="$ac_aux_dir/shtool install -c"
2376 break
2377 fi
2378 done
2379 if test -z "$ac_aux_dir"; then
2380 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2381 fi
2382
2383 # These three variables are undocumented and unsupported,
2384 # and are intended to be withdrawn in a future Autoconf release.
2385 # They can cause serious problems if a builder's source tree is in a directory
2386 # whose full name contains unusual characters.
2387 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2388 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2389 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2390
2391
2392 # Make sure we can run config.sub.
2393 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2394 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2395
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2397 $as_echo_n "checking build system type... " >&6; }
2398 if ${ac_cv_build+:} false; then :
2399 $as_echo_n "(cached) " >&6
2400 else
2401 ac_build_alias=$build_alias
2402 test "x$ac_build_alias" = x &&
2403 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2404 test "x$ac_build_alias" = x &&
2405 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2406 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2407 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2408
2409 fi
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2411 $as_echo "$ac_cv_build" >&6; }
2412 case $ac_cv_build in
2413 *-*-*) ;;
2414 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2415 esac
2416 build=$ac_cv_build
2417 ac_save_IFS=$IFS; IFS='-'
2418 set x $ac_cv_build
2419 shift
2420 build_cpu=$1
2421 build_vendor=$2
2422 shift; shift
2423 # Remember, the first character of IFS is used to create $*,
2424 # except with old shells:
2425 build_os=$*
2426 IFS=$ac_save_IFS
2427 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2428
2429
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2431 $as_echo_n "checking host system type... " >&6; }
2432 if ${ac_cv_host+:} false; then :
2433 $as_echo_n "(cached) " >&6
2434 else
2435 if test "x$host_alias" = x; then
2436 ac_cv_host=$ac_cv_build
2437 else
2438 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2439 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2440 fi
2441
2442 fi
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2444 $as_echo "$ac_cv_host" >&6; }
2445 case $ac_cv_host in
2446 *-*-*) ;;
2447 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2448 esac
2449 host=$ac_cv_host
2450 ac_save_IFS=$IFS; IFS='-'
2451 set x $ac_cv_host
2452 shift
2453 host_cpu=$1
2454 host_vendor=$2
2455 shift; shift
2456 # Remember, the first character of IFS is used to create $*,
2457 # except with old shells:
2458 host_os=$*
2459 IFS=$ac_save_IFS
2460 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2461
2462
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2464 $as_echo_n "checking target system type... " >&6; }
2465 if ${ac_cv_target+:} false; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 if test "x$target_alias" = x; then
2469 ac_cv_target=$ac_cv_host
2470 else
2471 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2473 fi
2474
2475 fi
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2477 $as_echo "$ac_cv_target" >&6; }
2478 case $ac_cv_target in
2479 *-*-*) ;;
2480 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2481 esac
2482 target=$ac_cv_target
2483 ac_save_IFS=$IFS; IFS='-'
2484 set x $ac_cv_target
2485 shift
2486 target_cpu=$1
2487 target_vendor=$2
2488 shift; shift
2489 # Remember, the first character of IFS is used to create $*,
2490 # except with old shells:
2491 target_os=$*
2492 IFS=$ac_save_IFS
2493 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2494
2495
2496 # The aliases save the names the user supplied, while $host etc.
2497 # will get canonicalized.
2498 test -n "$target_alias" &&
2499 test "$program_prefix$program_suffix$program_transform_name" = \
2500 NONENONEs,x,x, &&
2501 program_prefix=${target_alias}-
2502
2503 am__api_version='1.15'
2504
2505 # Find a good install program. We prefer a C program (faster),
2506 # so one script is as good as another. But avoid the broken or
2507 # incompatible versions:
2508 # SysV /etc/install, /usr/sbin/install
2509 # SunOS /usr/etc/install
2510 # IRIX /sbin/install
2511 # AIX /bin/install
2512 # AmigaOS /C/install, which installs bootblocks on floppy discs
2513 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2516 # OS/2's system install, which has a completely different semantic
2517 # ./install, which can be erroneously created by make from ./install.sh.
2518 # Reject install programs that cannot install multiple files.
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2520 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2521 if test -z "$INSTALL"; then
2522 if ${ac_cv_path_install+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 # Account for people who put trailing slashes in PATH elements.
2531 case $as_dir/ in #((
2532 ./ | .// | /[cC]/* | \
2533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2534 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2535 /usr/ucb/* ) ;;
2536 *)
2537 # OSF1 and SCO ODT 3.0 have their own names for install.
2538 # Don't use installbsd from OSF since it installs stuff as root
2539 # by default.
2540 for ac_prog in ginstall scoinst install; do
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2543 if test $ac_prog = install &&
2544 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545 # AIX install. It has an incompatible calling convention.
2546 :
2547 elif test $ac_prog = install &&
2548 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2549 # program-specific install script used by HP pwplus--don't use.
2550 :
2551 else
2552 rm -rf conftest.one conftest.two conftest.dir
2553 echo one > conftest.one
2554 echo two > conftest.two
2555 mkdir conftest.dir
2556 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2557 test -s conftest.one && test -s conftest.two &&
2558 test -s conftest.dir/conftest.one &&
2559 test -s conftest.dir/conftest.two
2560 then
2561 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2562 break 3
2563 fi
2564 fi
2565 fi
2566 done
2567 done
2568 ;;
2569 esac
2570
2571 done
2572 IFS=$as_save_IFS
2573
2574 rm -rf conftest.one conftest.two conftest.dir
2575
2576 fi
2577 if test "${ac_cv_path_install+set}" = set; then
2578 INSTALL=$ac_cv_path_install
2579 else
2580 # As a last resort, use the slow shell script. Don't cache a
2581 # value for INSTALL within a source directory, because that will
2582 # break other packages using the cache if that directory is
2583 # removed, or if the value is a relative name.
2584 INSTALL=$ac_install_sh
2585 fi
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2588 $as_echo "$INSTALL" >&6; }
2589
2590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2591 # It thinks the first close brace ends the variable substitution.
2592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2593
2594 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2595
2596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2597
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2599 $as_echo_n "checking whether build environment is sane... " >&6; }
2600 # Reject unsafe characters in $srcdir or the absolute working directory
2601 # name. Accept space and tab only in the latter.
2602 am_lf='
2603 '
2604 case `pwd` in
2605 *[\\\"\#\$\&\'\`$am_lf]*)
2606 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2607 esac
2608 case $srcdir in
2609 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2610 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2611 esac
2612
2613 # Do 'set' in a subshell so we don't clobber the current shell's
2614 # arguments. Must try -L first in case configure is actually a
2615 # symlink; some systems play weird games with the mod time of symlinks
2616 # (eg FreeBSD returns the mod time of the symlink's containing
2617 # directory).
2618 if (
2619 am_has_slept=no
2620 for am_try in 1 2; do
2621 echo "timestamp, slept: $am_has_slept" > conftest.file
2622 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2623 if test "$*" = "X"; then
2624 # -L didn't work.
2625 set X `ls -t "$srcdir/configure" conftest.file`
2626 fi
2627 if test "$*" != "X $srcdir/configure conftest.file" \
2628 && test "$*" != "X conftest.file $srcdir/configure"; then
2629
2630 # If neither matched, then we have a broken ls. This can happen
2631 # if, for instance, CONFIG_SHELL is bash and it inherits a
2632 # broken ls alias from the environment. This has actually
2633 # happened. Such a system could not be considered "sane".
2634 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2635 alias in your environment" "$LINENO" 5
2636 fi
2637 if test "$2" = conftest.file || test $am_try -eq 2; then
2638 break
2639 fi
2640 # Just in case.
2641 sleep 1
2642 am_has_slept=yes
2643 done
2644 test "$2" = conftest.file
2645 )
2646 then
2647 # Ok.
2648 :
2649 else
2650 as_fn_error $? "newly created file is older than distributed files!
2651 Check your system clock" "$LINENO" 5
2652 fi
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2654 $as_echo "yes" >&6; }
2655 # If we didn't sleep, we still need to ensure time stamps of config.status and
2656 # generated files are strictly newer.
2657 am_sleep_pid=
2658 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2659 ( sleep 1 ) &
2660 am_sleep_pid=$!
2661 fi
2662
2663 rm -f conftest.file
2664
2665 test "$program_prefix" != NONE &&
2666 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2667 # Use a double $ so make ignores it.
2668 test "$program_suffix" != NONE &&
2669 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2670 # Double any \ or $.
2671 # By default was `s,x,x', remove it if useless.
2672 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2673 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2674
2675 # Expand $ac_aux_dir to an absolute path.
2676 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2677
2678 if test x"${MISSING+set}" != xset; then
2679 case $am_aux_dir in
2680 *\ * | *\ *)
2681 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2682 *)
2683 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2684 esac
2685 fi
2686 # Use eval to expand $SHELL
2687 if eval "$MISSING --is-lightweight"; then
2688 am_missing_run="$MISSING "
2689 else
2690 am_missing_run=
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2692 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2693 fi
2694
2695 if test x"${install_sh+set}" != xset; then
2696 case $am_aux_dir in
2697 *\ * | *\ *)
2698 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2699 *)
2700 install_sh="\${SHELL} $am_aux_dir/install-sh"
2701 esac
2702 fi
2703
2704 # Installed binaries are usually stripped using 'strip' when the user
2705 # run "make install-strip". However 'strip' might not be the right
2706 # tool to use in cross-compilation environments, therefore Automake
2707 # will honor the 'STRIP' environment variable to overrule this program.
2708 if test "$cross_compiling" != no; then
2709 if test -n "$ac_tool_prefix"; then
2710 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2711 set dummy ${ac_tool_prefix}strip; ac_word=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if ${ac_cv_prog_STRIP+:} false; then :
2715 $as_echo_n "(cached) " >&6
2716 else
2717 if test -n "$STRIP"; then
2718 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2719 else
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2722 do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2730 fi
2731 done
2732 done
2733 IFS=$as_save_IFS
2734
2735 fi
2736 fi
2737 STRIP=$ac_cv_prog_STRIP
2738 if test -n "$STRIP"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2740 $as_echo "$STRIP" >&6; }
2741 else
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2744 fi
2745
2746
2747 fi
2748 if test -z "$ac_cv_prog_STRIP"; then
2749 ac_ct_STRIP=$STRIP
2750 # Extract the first word of "strip", so it can be a program name with args.
2751 set dummy strip; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test -n "$ac_ct_STRIP"; then
2758 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_ac_ct_STRIP="strip"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2770 fi
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi
2776 fi
2777 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2778 if test -n "$ac_ct_STRIP"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2780 $as_echo "$ac_ct_STRIP" >&6; }
2781 else
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2784 fi
2785
2786 if test "x$ac_ct_STRIP" = x; then
2787 STRIP=":"
2788 else
2789 case $cross_compiling:$ac_tool_warned in
2790 yes:)
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2793 ac_tool_warned=yes ;;
2794 esac
2795 STRIP=$ac_ct_STRIP
2796 fi
2797 else
2798 STRIP="$ac_cv_prog_STRIP"
2799 fi
2800
2801 fi
2802 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2803
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2805 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2806 if test -z "$MKDIR_P"; then
2807 if ${ac_cv_path_mkdir+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2812 do
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_prog in mkdir gmkdir; do
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2818 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2819 'mkdir (GNU coreutils) '* | \
2820 'mkdir (coreutils) '* | \
2821 'mkdir (fileutils) '4.1*)
2822 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2823 break 3;;
2824 esac
2825 done
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 fi
2831
2832 test -d ./--version && rmdir ./--version
2833 if test "${ac_cv_path_mkdir+set}" = set; then
2834 MKDIR_P="$ac_cv_path_mkdir -p"
2835 else
2836 # As a last resort, use the slow shell script. Don't cache a
2837 # value for MKDIR_P within a source directory, because that will
2838 # break other packages using the cache if that directory is
2839 # removed, or if the value is a relative name.
2840 MKDIR_P="$ac_install_sh -d"
2841 fi
2842 fi
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2844 $as_echo "$MKDIR_P" >&6; }
2845
2846 for ac_prog in gawk mawk nawk awk
2847 do
2848 # Extract the first word of "$ac_prog", so it can be a program name with args.
2849 set dummy $ac_prog; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_AWK+:} false; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 if test -n "$AWK"; then
2856 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865 ac_cv_prog_AWK="$ac_prog"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2868 fi
2869 done
2870 done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 AWK=$ac_cv_prog_AWK
2876 if test -n "$AWK"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2878 $as_echo "$AWK" >&6; }
2879 else
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 fi
2883
2884
2885 test -n "$AWK" && break
2886 done
2887
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2889 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2890 set x ${MAKE-make}
2891 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2892 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 cat >conftest.make <<\_ACEOF
2896 SHELL = /bin/sh
2897 all:
2898 @echo '@@@%%%=$(MAKE)=@@@%%%'
2899 _ACEOF
2900 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2901 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2902 *@@@%%%=?*=@@@%%%*)
2903 eval ac_cv_prog_make_${ac_make}_set=yes;;
2904 *)
2905 eval ac_cv_prog_make_${ac_make}_set=no;;
2906 esac
2907 rm -f conftest.make
2908 fi
2909 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2911 $as_echo "yes" >&6; }
2912 SET_MAKE=
2913 else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916 SET_MAKE="MAKE=${MAKE-make}"
2917 fi
2918
2919 rm -rf .tst 2>/dev/null
2920 mkdir .tst 2>/dev/null
2921 if test -d .tst; then
2922 am__leading_dot=.
2923 else
2924 am__leading_dot=_
2925 fi
2926 rmdir .tst 2>/dev/null
2927
2928 # Check whether --enable-silent-rules was given.
2929 if test "${enable_silent_rules+set}" = set; then :
2930 enableval=$enable_silent_rules;
2931 fi
2932
2933 case $enable_silent_rules in # (((
2934 yes) AM_DEFAULT_VERBOSITY=0;;
2935 no) AM_DEFAULT_VERBOSITY=1;;
2936 *) AM_DEFAULT_VERBOSITY=1;;
2937 esac
2938 am_make=${MAKE-make}
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2940 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2941 if ${am_cv_make_support_nested_variables+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if $as_echo 'TRUE=$(BAR$(V))
2945 BAR0=false
2946 BAR1=true
2947 V=1
2948 am__doit:
2949 @$(TRUE)
2950 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2951 am_cv_make_support_nested_variables=yes
2952 else
2953 am_cv_make_support_nested_variables=no
2954 fi
2955 fi
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2957 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2958 if test $am_cv_make_support_nested_variables = yes; then
2959 AM_V='$(V)'
2960 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2961 else
2962 AM_V=$AM_DEFAULT_VERBOSITY
2963 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2964 fi
2965 AM_BACKSLASH='\'
2966
2967 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2968 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2969 # is not polluted with repeated "-I."
2970 am__isrc=' -I$(srcdir)'
2971 # test to see if srcdir already configured
2972 if test -f $srcdir/config.status; then
2973 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2974 fi
2975 fi
2976
2977 # test whether we have cygpath
2978 if test -z "$CYGPATH_W"; then
2979 if (cygpath --version) >/dev/null 2>/dev/null; then
2980 CYGPATH_W='cygpath -w'
2981 else
2982 CYGPATH_W=echo
2983 fi
2984 fi
2985
2986
2987 # Define the identity of the package.
2988 PACKAGE='gas'
2989 VERSION='2.39.50'
2990
2991
2992 cat >>confdefs.h <<_ACEOF
2993 #define PACKAGE "$PACKAGE"
2994 _ACEOF
2995
2996
2997 cat >>confdefs.h <<_ACEOF
2998 #define VERSION "$VERSION"
2999 _ACEOF
3000
3001 # Some tools Automake needs.
3002
3003 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3004
3005
3006 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3007
3008
3009 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3010
3011
3012 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3013
3014
3015 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3016
3017 # For better backward compatibility. To be removed once Automake 1.9.x
3018 # dies out for good. For more background, see:
3019 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3020 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3021 mkdir_p='$(MKDIR_P)'
3022
3023 # We need awk for the "check" target (and possibly the TAP driver). The
3024 # system "awk" is bad on some platforms.
3025 # Always define AMTAR for backward compatibility. Yes, it's still used
3026 # in the wild :-( We should find a proper way to deprecate it ...
3027 AMTAR='$${TAR-tar}'
3028
3029
3030 # We'll loop over all known methods to create a tar archive until one works.
3031 _am_tools='gnutar pax cpio none'
3032
3033 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3034
3035
3036
3037
3038
3039
3040 # POSIX will say in a future version that running "rm -f" with no argument
3041 # is OK; and we want to be able to make that assumption in our Makefile
3042 # recipes. So use an aggressive probe to check that the usage we want is
3043 # actually supported "in the wild" to an acceptable degree.
3044 # See automake bug#10828.
3045 # To make any issue more visible, cause the running configure to be aborted
3046 # by default if the 'rm' program in use doesn't match our expectations; the
3047 # user can still override this though.
3048 if rm -f && rm -fr && rm -rf; then : OK; else
3049 cat >&2 <<'END'
3050 Oops!
3051
3052 Your 'rm' program seems unable to run without file operands specified
3053 on the command line, even when the '-f' option is present. This is contrary
3054 to the behaviour of most rm programs out there, and not conforming with
3055 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3056
3057 Please tell bug-automake@gnu.org about your system, including the value
3058 of your $PATH and any error possibly output before this message. This
3059 can help us improve future automake versions.
3060
3061 END
3062 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3063 echo 'Configuration will proceed anyway, since you have set the' >&2
3064 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3065 echo >&2
3066 else
3067 cat >&2 <<'END'
3068 Aborting the configuration process, to ensure you take notice of the issue.
3069
3070 You can download and install GNU coreutils to get an 'rm' implementation
3071 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3072
3073 If you want to complete the configuration process using your problematic
3074 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3075 to "yes", and re-run configure.
3076
3077 END
3078 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3079 fi
3080 fi
3081
3082 # Check whether --enable-silent-rules was given.
3083 if test "${enable_silent_rules+set}" = set; then :
3084 enableval=$enable_silent_rules;
3085 fi
3086
3087 case $enable_silent_rules in # (((
3088 yes) AM_DEFAULT_VERBOSITY=0;;
3089 no) AM_DEFAULT_VERBOSITY=1;;
3090 *) AM_DEFAULT_VERBOSITY=0;;
3091 esac
3092 am_make=${MAKE-make}
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3094 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3095 if ${am_cv_make_support_nested_variables+:} false; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if $as_echo 'TRUE=$(BAR$(V))
3099 BAR0=false
3100 BAR1=true
3101 V=1
3102 am__doit:
3103 @$(TRUE)
3104 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3105 am_cv_make_support_nested_variables=yes
3106 else
3107 am_cv_make_support_nested_variables=no
3108 fi
3109 fi
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3111 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3112 if test $am_cv_make_support_nested_variables = yes; then
3113 AM_V='$(V)'
3114 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3115 else
3116 AM_V=$AM_DEFAULT_VERBOSITY
3117 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3118 fi
3119 AM_BACKSLASH='\'
3120
3121
3122 ac_ext=c
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3127 if test -n "$ac_tool_prefix"; then
3128 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3129 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_CC+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 if test -n "$CC"; then
3136 ac_cv_prog_CC="$CC" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149 done
3150 done
3151 IFS=$as_save_IFS
3152
3153 fi
3154 fi
3155 CC=$ac_cv_prog_CC
3156 if test -n "$CC"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158 $as_echo "$CC" >&6; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163
3164
3165 fi
3166 if test -z "$ac_cv_prog_CC"; then
3167 ac_ct_CC=$CC
3168 # Extract the first word of "gcc", so it can be a program name with args.
3169 set dummy gcc; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 if test -n "$ac_ct_CC"; then
3176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3180 do
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185 ac_cv_prog_ac_ct_CC="gcc"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 break 2
3188 fi
3189 done
3190 done
3191 IFS=$as_save_IFS
3192
3193 fi
3194 fi
3195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3196 if test -n "$ac_ct_CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3198 $as_echo "$ac_ct_CC" >&6; }
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204 if test "x$ac_ct_CC" = x; then
3205 CC=""
3206 else
3207 case $cross_compiling:$ac_tool_warned in
3208 yes:)
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211 ac_tool_warned=yes ;;
3212 esac
3213 CC=$ac_ct_CC
3214 fi
3215 else
3216 CC="$ac_cv_prog_CC"
3217 fi
3218
3219 if test -z "$CC"; then
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3222 set dummy ${ac_tool_prefix}cc; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_CC+:} false; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 if test -n "$CC"; then
3229 ac_cv_prog_CC="$CC" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238 ac_cv_prog_CC="${ac_tool_prefix}cc"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3241 fi
3242 done
3243 done
3244 IFS=$as_save_IFS
3245
3246 fi
3247 fi
3248 CC=$ac_cv_prog_CC
3249 if test -n "$CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257
3258 fi
3259 fi
3260 if test -z "$CC"; then
3261 # Extract the first word of "cc", so it can be a program name with args.
3262 set dummy cc; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if ${ac_cv_prog_CC+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
3270 else
3271 ac_prog_rejected=no
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3280 ac_prog_rejected=yes
3281 continue
3282 fi
3283 ac_cv_prog_CC="cc"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287 done
3288 done
3289 IFS=$as_save_IFS
3290
3291 if test $ac_prog_rejected = yes; then
3292 # We found a bogon in the path, so make sure we never use it.
3293 set dummy $ac_cv_prog_CC
3294 shift
3295 if test $# != 0; then
3296 # We chose a different compiler from the bogus one.
3297 # However, it has the same basename, so the bogon will be chosen
3298 # first if we set CC to just the basename; use the full file name.
3299 shift
3300 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3301 fi
3302 fi
3303 fi
3304 fi
3305 CC=$ac_cv_prog_CC
3306 if test -n "$CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315 fi
3316 if test -z "$CC"; then
3317 if test -n "$ac_tool_prefix"; then
3318 for ac_prog in cl.exe
3319 do
3320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CC+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 break 2
3340 fi
3341 done
3342 done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357 test -n "$CC" && break
3358 done
3359 fi
3360 if test -z "$CC"; then
3361 ac_ct_CC=$CC
3362 for ac_prog in cl.exe
3363 do
3364 # Extract the first word of "$ac_prog", so it can be a program name with args.
3365 set dummy $ac_prog; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 if test -n "$ac_ct_CC"; then
3372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_ac_ct_CC="$ac_prog"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385 done
3386 done
3387 IFS=$as_save_IFS
3388
3389 fi
3390 fi
3391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3392 if test -n "$ac_ct_CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3394 $as_echo "$ac_ct_CC" >&6; }
3395 else
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3398 fi
3399
3400
3401 test -n "$ac_ct_CC" && break
3402 done
3403
3404 if test "x$ac_ct_CC" = x; then
3405 CC=""
3406 else
3407 case $cross_compiling:$ac_tool_warned in
3408 yes:)
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3411 ac_tool_warned=yes ;;
3412 esac
3413 CC=$ac_ct_CC
3414 fi
3415 fi
3416
3417 fi
3418
3419
3420 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 as_fn_error $? "no acceptable C compiler found in \$PATH
3423 See \`config.log' for more details" "$LINENO" 5; }
3424
3425 # Provide some information about the compiler.
3426 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3427 set X $ac_compile
3428 ac_compiler=$2
3429 for ac_option in --version -v -V -qversion; do
3430 { { ac_try="$ac_compiler $ac_option >&5"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3438 ac_status=$?
3439 if test -s conftest.err; then
3440 sed '10a\
3441 ... rest of stderr output deleted ...
3442 10q' conftest.err >conftest.er1
3443 cat conftest.er1 >&5
3444 fi
3445 rm -f conftest.er1 conftest.err
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }
3448 done
3449
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3452
3453 int
3454 main ()
3455 {
3456
3457 ;
3458 return 0;
3459 }
3460 _ACEOF
3461 ac_clean_files_save=$ac_clean_files
3462 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3463 # Try to create an executable without -o first, disregard a.out.
3464 # It will help us diagnose broken compilers, and finding out an intuition
3465 # of exeext.
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3467 $as_echo_n "checking whether the C compiler works... " >&6; }
3468 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3469
3470 # The possible output files:
3471 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3472
3473 ac_rmfiles=
3474 for ac_file in $ac_files
3475 do
3476 case $ac_file in
3477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3478 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3479 esac
3480 done
3481 rm -f $ac_rmfiles
3482
3483 if { { ac_try="$ac_link_default"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_link_default") 2>&5
3491 ac_status=$?
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }; then :
3494 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3495 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3496 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3497 # so that the user can short-circuit this test for compilers unknown to
3498 # Autoconf.
3499 for ac_file in $ac_files ''
3500 do
3501 test -f "$ac_file" || continue
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3504 ;;
3505 [ab].out )
3506 # We found the default executable, but exeext='' is most
3507 # certainly right.
3508 break;;
3509 *.* )
3510 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3511 then :; else
3512 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3513 fi
3514 # We set ac_cv_exeext here because the later test for it is not
3515 # safe: cross compilers may not add the suffix if given an `-o'
3516 # argument, so we may need to know it at that point already.
3517 # Even if this section looks crufty: it has the advantage of
3518 # actually working.
3519 break;;
3520 * )
3521 break;;
3522 esac
3523 done
3524 test "$ac_cv_exeext" = no && ac_cv_exeext=
3525
3526 else
3527 ac_file=''
3528 fi
3529 if test -z "$ac_file"; then :
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3532 $as_echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error 77 "C compiler cannot create executables
3538 See \`config.log' for more details" "$LINENO" 5; }
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3541 $as_echo "yes" >&6; }
3542 fi
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3544 $as_echo_n "checking for C compiler default output file name... " >&6; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3546 $as_echo "$ac_file" >&6; }
3547 ac_exeext=$ac_cv_exeext
3548
3549 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3550 ac_clean_files=$ac_clean_files_save
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3552 $as_echo_n "checking for suffix of executables... " >&6; }
3553 if { { ac_try="$ac_link"
3554 case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560 (eval "$ac_link") 2>&5
3561 ac_status=$?
3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563 test $ac_status = 0; }; then :
3564 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3565 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3566 # work properly (i.e., refer to `conftest.exe'), while it won't with
3567 # `rm'.
3568 for ac_file in conftest.exe conftest conftest.*; do
3569 test -f "$ac_file" || continue
3570 case $ac_file in
3571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3573 break;;
3574 * ) break;;
3575 esac
3576 done
3577 else
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3581 See \`config.log' for more details" "$LINENO" 5; }
3582 fi
3583 rm -f conftest conftest$ac_cv_exeext
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3585 $as_echo "$ac_cv_exeext" >&6; }
3586
3587 rm -f conftest.$ac_ext
3588 EXEEXT=$ac_cv_exeext
3589 ac_exeext=$EXEEXT
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592 #include <stdio.h>
3593 int
3594 main ()
3595 {
3596 FILE *f = fopen ("conftest.out", "w");
3597 return ferror (f) || fclose (f) != 0;
3598
3599 ;
3600 return 0;
3601 }
3602 _ACEOF
3603 ac_clean_files="$ac_clean_files conftest.out"
3604 # Check that the compiler produces executables we can run. If not, either
3605 # the compiler is broken, or we cross compile.
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3607 $as_echo_n "checking whether we are cross compiling... " >&6; }
3608 if test "$cross_compiling" != yes; then
3609 { { ac_try="$ac_link"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_link") 2>&5
3617 ac_status=$?
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }
3620 if { ac_try='./conftest$ac_cv_exeext'
3621 { { case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_try") 2>&5
3628 ac_status=$?
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }; }; then
3631 cross_compiling=no
3632 else
3633 if test "$cross_compiling" = maybe; then
3634 cross_compiling=yes
3635 else
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "cannot run C compiled programs.
3639 If you meant to cross compile, use \`--host'.
3640 See \`config.log' for more details" "$LINENO" 5; }
3641 fi
3642 fi
3643 fi
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3645 $as_echo "$cross_compiling" >&6; }
3646
3647 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3648 ac_clean_files=$ac_clean_files_save
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3650 $as_echo_n "checking for suffix of object files... " >&6; }
3651 if ${ac_cv_objext+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656
3657 int
3658 main ()
3659 {
3660
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 rm -f conftest.o conftest.obj
3666 if { { ac_try="$ac_compile"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_compile") 2>&5
3674 ac_status=$?
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }; then :
3677 for ac_file in conftest.o conftest.obj conftest.*; do
3678 test -f "$ac_file" || continue;
3679 case $ac_file in
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3681 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3682 break;;
3683 esac
3684 done
3685 else
3686 $as_echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "cannot compute suffix of object files: cannot compile
3692 See \`config.log' for more details" "$LINENO" 5; }
3693 fi
3694 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3695 fi
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3697 $as_echo "$ac_cv_objext" >&6; }
3698 OBJEXT=$ac_cv_objext
3699 ac_objext=$OBJEXT
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3701 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3702 if ${ac_cv_c_compiler_gnu+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707
3708 int
3709 main ()
3710 {
3711 #ifndef __GNUC__
3712 choke me
3713 #endif
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720 ac_compiler_gnu=yes
3721 else
3722 ac_compiler_gnu=no
3723 fi
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3726
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3729 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3730 if test $ac_compiler_gnu = yes; then
3731 GCC=yes
3732 else
3733 GCC=
3734 fi
3735 ac_test_CFLAGS=${CFLAGS+set}
3736 ac_save_CFLAGS=$CFLAGS
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3738 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3739 if ${ac_cv_prog_cc_g+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 ac_save_c_werror_flag=$ac_c_werror_flag
3743 ac_c_werror_flag=yes
3744 ac_cv_prog_cc_g=no
3745 CFLAGS="-g"
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3748
3749 int
3750 main ()
3751 {
3752
3753 ;
3754 return 0;
3755 }
3756 _ACEOF
3757 if ac_fn_c_try_compile "$LINENO"; then :
3758 ac_cv_prog_cc_g=yes
3759 else
3760 CFLAGS=""
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763
3764 int
3765 main ()
3766 {
3767
3768 ;
3769 return 0;
3770 }
3771 _ACEOF
3772 if ac_fn_c_try_compile "$LINENO"; then :
3773
3774 else
3775 ac_c_werror_flag=$ac_save_c_werror_flag
3776 CFLAGS="-g"
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779
3780 int
3781 main ()
3782 {
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789 ac_cv_prog_cc_g=yes
3790 fi
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 fi
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 ac_c_werror_flag=$ac_save_c_werror_flag
3797 fi
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3799 $as_echo "$ac_cv_prog_cc_g" >&6; }
3800 if test "$ac_test_CFLAGS" = set; then
3801 CFLAGS=$ac_save_CFLAGS
3802 elif test $ac_cv_prog_cc_g = yes; then
3803 if test "$GCC" = yes; then
3804 CFLAGS="-g -O2"
3805 else
3806 CFLAGS="-g"
3807 fi
3808 else
3809 if test "$GCC" = yes; then
3810 CFLAGS="-O2"
3811 else
3812 CFLAGS=
3813 fi
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3816 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3817 if ${ac_cv_prog_cc_c89+:} false; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 ac_cv_prog_cc_c89=no
3821 ac_save_CC=$CC
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824 #include <stdarg.h>
3825 #include <stdio.h>
3826 struct stat;
3827 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3828 struct buf { int x; };
3829 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3830 static char *e (p, i)
3831 char **p;
3832 int i;
3833 {
3834 return p[i];
3835 }
3836 static char *f (char * (*g) (char **, int), char **p, ...)
3837 {
3838 char *s;
3839 va_list v;
3840 va_start (v,p);
3841 s = g (p, va_arg (v,int));
3842 va_end (v);
3843 return s;
3844 }
3845
3846 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3847 function prototypes and stuff, but not '\xHH' hex character constants.
3848 These don't provoke an error unfortunately, instead are silently treated
3849 as 'x'. The following induces an error, until -std is added to get
3850 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3851 array size at least. It's necessary to write '\x00'==0 to get something
3852 that's true only with -std. */
3853 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3854
3855 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3856 inside strings and character constants. */
3857 #define FOO(x) 'x'
3858 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3859
3860 int test (int i, double x);
3861 struct s1 {int (*f) (int a);};
3862 struct s2 {int (*f) (double a);};
3863 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3864 int argc;
3865 char **argv;
3866 int
3867 main ()
3868 {
3869 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3875 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3876 do
3877 CC="$ac_save_CC $ac_arg"
3878 if ac_fn_c_try_compile "$LINENO"; then :
3879 ac_cv_prog_cc_c89=$ac_arg
3880 fi
3881 rm -f core conftest.err conftest.$ac_objext
3882 test "x$ac_cv_prog_cc_c89" != "xno" && break
3883 done
3884 rm -f conftest.$ac_ext
3885 CC=$ac_save_CC
3886
3887 fi
3888 # AC_CACHE_VAL
3889 case "x$ac_cv_prog_cc_c89" in
3890 x)
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3892 $as_echo "none needed" >&6; } ;;
3893 xno)
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3895 $as_echo "unsupported" >&6; } ;;
3896 *)
3897 CC="$CC $ac_cv_prog_cc_c89"
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3899 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3900 esac
3901 if test "x$ac_cv_prog_cc_c89" != xno; then :
3902
3903 fi
3904
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910
3911 ac_ext=c
3912 ac_cpp='$CPP $CPPFLAGS'
3913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3917 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3918 if ${am_cv_prog_cc_c_o+:} false; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923
3924 int
3925 main ()
3926 {
3927
3928 ;
3929 return 0;
3930 }
3931 _ACEOF
3932 # Make sure it works both with $CC and with simple cc.
3933 # Following AC_PROG_CC_C_O, we do the test twice because some
3934 # compilers refuse to overwrite an existing .o file with -o,
3935 # though they will create one.
3936 am_cv_prog_cc_c_o=yes
3937 for am_i in 1 2; do
3938 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3939 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } \
3943 && test -f conftest2.$ac_objext; then
3944 : OK
3945 else
3946 am_cv_prog_cc_c_o=no
3947 break
3948 fi
3949 done
3950 rm -f core conftest*
3951 unset am_i
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3954 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3955 if test "$am_cv_prog_cc_c_o" != yes; then
3956 # Losing compiler, so override with the script.
3957 # FIXME: It is wrong to rewrite CC.
3958 # But if we don't then we get into trouble of one sort or another.
3959 # A longer-term fix would be to have automake use am__CC in this case,
3960 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3961 CC="$am_aux_dir/compile $CC"
3962 fi
3963 ac_ext=c
3964 ac_cpp='$CPP $CPPFLAGS'
3965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3968
3969 DEPDIR="${am__leading_dot}deps"
3970
3971 ac_config_commands="$ac_config_commands depfiles"
3972
3973
3974 am_make=${MAKE-make}
3975 cat > confinc << 'END'
3976 am__doit:
3977 @echo this is the am__doit target
3978 .PHONY: am__doit
3979 END
3980 # If we don't find an include directive, just comment out the code.
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3982 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3983 am__include="#"
3984 am__quote=
3985 _am_result=none
3986 # First try GNU make style include.
3987 echo "include confinc" > confmf
3988 # Ignore all kinds of additional output from 'make'.
3989 case `$am_make -s -f confmf 2> /dev/null` in #(
3990 *the\ am__doit\ target*)
3991 am__include=include
3992 am__quote=
3993 _am_result=GNU
3994 ;;
3995 esac
3996 # Now try BSD make style include.
3997 if test "$am__include" = "#"; then
3998 echo '.include "confinc"' > confmf
3999 case `$am_make -s -f confmf 2> /dev/null` in #(
4000 *the\ am__doit\ target*)
4001 am__include=.include
4002 am__quote="\""
4003 _am_result=BSD
4004 ;;
4005 esac
4006 fi
4007
4008
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4010 $as_echo "$_am_result" >&6; }
4011 rm -f confinc confmf
4012
4013 # Check whether --enable-dependency-tracking was given.
4014 if test "${enable_dependency_tracking+set}" = set; then :
4015 enableval=$enable_dependency_tracking;
4016 fi
4017
4018 if test "x$enable_dependency_tracking" != xno; then
4019 am_depcomp="$ac_aux_dir/depcomp"
4020 AMDEPBACKSLASH='\'
4021 am__nodep='_no'
4022 fi
4023 if test "x$enable_dependency_tracking" != xno; then
4024 AMDEP_TRUE=
4025 AMDEP_FALSE='#'
4026 else
4027 AMDEP_TRUE='#'
4028 AMDEP_FALSE=
4029 fi
4030
4031
4032
4033 depcc="$CC" am_compiler_list=
4034
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4036 $as_echo_n "checking dependency style of $depcc... " >&6; }
4037 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4041 # We make a subdir and do the tests there. Otherwise we can end up
4042 # making bogus files that we don't know about and never remove. For
4043 # instance it was reported that on HP-UX the gcc test will end up
4044 # making a dummy file named 'D' -- because '-MD' means "put the output
4045 # in D".
4046 rm -rf conftest.dir
4047 mkdir conftest.dir
4048 # Copy depcomp to subdir because otherwise we won't find it if we're
4049 # using a relative directory.
4050 cp "$am_depcomp" conftest.dir
4051 cd conftest.dir
4052 # We will build objects and dependencies in a subdirectory because
4053 # it helps to detect inapplicable dependency modes. For instance
4054 # both Tru64's cc and ICC support -MD to output dependencies as a
4055 # side effect of compilation, but ICC will put the dependencies in
4056 # the current directory while Tru64 will put them in the object
4057 # directory.
4058 mkdir sub
4059
4060 am_cv_CC_dependencies_compiler_type=none
4061 if test "$am_compiler_list" = ""; then
4062 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4063 fi
4064 am__universal=false
4065 case " $depcc " in #(
4066 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4067 esac
4068
4069 for depmode in $am_compiler_list; do
4070 # Setup a source with many dependencies, because some compilers
4071 # like to wrap large dependency lists on column 80 (with \), and
4072 # we should not choose a depcomp mode which is confused by this.
4073 #
4074 # We need to recreate these files for each test, as the compiler may
4075 # overwrite some of them when testing with obscure command lines.
4076 # This happens at least with the AIX C compiler.
4077 : > sub/conftest.c
4078 for i in 1 2 3 4 5 6; do
4079 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4080 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4081 # Solaris 10 /bin/sh.
4082 echo '/* dummy */' > sub/conftst$i.h
4083 done
4084 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4085
4086 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4087 # mode. It turns out that the SunPro C++ compiler does not properly
4088 # handle '-M -o', and we need to detect this. Also, some Intel
4089 # versions had trouble with output in subdirs.
4090 am__obj=sub/conftest.${OBJEXT-o}
4091 am__minus_obj="-o $am__obj"
4092 case $depmode in
4093 gcc)
4094 # This depmode causes a compiler race in universal mode.
4095 test "$am__universal" = false || continue
4096 ;;
4097 nosideeffect)
4098 # After this tag, mechanisms are not by side-effect, so they'll
4099 # only be used when explicitly requested.
4100 if test "x$enable_dependency_tracking" = xyes; then
4101 continue
4102 else
4103 break
4104 fi
4105 ;;
4106 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4107 # This compiler won't grok '-c -o', but also, the minuso test has
4108 # not run yet. These depmodes are late enough in the game, and
4109 # so weak that their functioning should not be impacted.
4110 am__obj=conftest.${OBJEXT-o}
4111 am__minus_obj=
4112 ;;
4113 none) break ;;
4114 esac
4115 if depmode=$depmode \
4116 source=sub/conftest.c object=$am__obj \
4117 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4118 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4119 >/dev/null 2>conftest.err &&
4120 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4121 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4122 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4123 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4124 # icc doesn't choke on unknown options, it will just issue warnings
4125 # or remarks (even with -Werror). So we grep stderr for any message
4126 # that says an option was ignored or not supported.
4127 # When given -MP, icc 7.0 and 7.1 complain thusly:
4128 # icc: Command line warning: ignoring option '-M'; no argument required
4129 # The diagnosis changed in icc 8.0:
4130 # icc: Command line remark: option '-MP' not supported
4131 if (grep 'ignoring option' conftest.err ||
4132 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4133 am_cv_CC_dependencies_compiler_type=$depmode
4134 break
4135 fi
4136 fi
4137 done
4138
4139 cd ..
4140 rm -rf conftest.dir
4141 else
4142 am_cv_CC_dependencies_compiler_type=none
4143 fi
4144
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4147 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4148 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4149
4150 if
4151 test "x$enable_dependency_tracking" != xno \
4152 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4153 am__fastdepCC_TRUE=
4154 am__fastdepCC_FALSE='#'
4155 else
4156 am__fastdepCC_TRUE='#'
4157 am__fastdepCC_FALSE=
4158 fi
4159
4160
4161
4162 ac_ext=c
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4168 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4169 # On Suns, sometimes $CPP names a directory.
4170 if test -n "$CPP" && test -d "$CPP"; then
4171 CPP=
4172 fi
4173 if test -z "$CPP"; then
4174 if ${ac_cv_prog_CPP+:} false; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 # Double quotes because CPP needs to be expanded
4178 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4179 do
4180 ac_preproc_ok=false
4181 for ac_c_preproc_warn_flag in '' yes
4182 do
4183 # Use a header file that comes with gcc, so configuring glibc
4184 # with a fresh cross-compiler works.
4185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4186 # <limits.h> exists even on freestanding compilers.
4187 # On the NeXT, cc -E runs the code through the compiler's parser,
4188 # not just through cpp. "Syntax error" is here to catch this case.
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #ifdef __STDC__
4192 # include <limits.h>
4193 #else
4194 # include <assert.h>
4195 #endif
4196 Syntax error
4197 _ACEOF
4198 if ac_fn_c_try_cpp "$LINENO"; then :
4199
4200 else
4201 # Broken: fails on valid input.
4202 continue
4203 fi
4204 rm -f conftest.err conftest.i conftest.$ac_ext
4205
4206 # OK, works on sane cases. Now check whether nonexistent headers
4207 # can be detected and how.
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #include <ac_nonexistent.h>
4211 _ACEOF
4212 if ac_fn_c_try_cpp "$LINENO"; then :
4213 # Broken: success on invalid input.
4214 continue
4215 else
4216 # Passes both tests.
4217 ac_preproc_ok=:
4218 break
4219 fi
4220 rm -f conftest.err conftest.i conftest.$ac_ext
4221
4222 done
4223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224 rm -f conftest.i conftest.err conftest.$ac_ext
4225 if $ac_preproc_ok; then :
4226 break
4227 fi
4228
4229 done
4230 ac_cv_prog_CPP=$CPP
4231
4232 fi
4233 CPP=$ac_cv_prog_CPP
4234 else
4235 ac_cv_prog_CPP=$CPP
4236 fi
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4238 $as_echo "$CPP" >&6; }
4239 ac_preproc_ok=false
4240 for ac_c_preproc_warn_flag in '' yes
4241 do
4242 # Use a header file that comes with gcc, so configuring glibc
4243 # with a fresh cross-compiler works.
4244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4245 # <limits.h> exists even on freestanding compilers.
4246 # On the NeXT, cc -E runs the code through the compiler's parser,
4247 # not just through cpp. "Syntax error" is here to catch this case.
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250 #ifdef __STDC__
4251 # include <limits.h>
4252 #else
4253 # include <assert.h>
4254 #endif
4255 Syntax error
4256 _ACEOF
4257 if ac_fn_c_try_cpp "$LINENO"; then :
4258
4259 else
4260 # Broken: fails on valid input.
4261 continue
4262 fi
4263 rm -f conftest.err conftest.i conftest.$ac_ext
4264
4265 # OK, works on sane cases. Now check whether nonexistent headers
4266 # can be detected and how.
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4269 #include <ac_nonexistent.h>
4270 _ACEOF
4271 if ac_fn_c_try_cpp "$LINENO"; then :
4272 # Broken: success on invalid input.
4273 continue
4274 else
4275 # Passes both tests.
4276 ac_preproc_ok=:
4277 break
4278 fi
4279 rm -f conftest.err conftest.i conftest.$ac_ext
4280
4281 done
4282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4283 rm -f conftest.i conftest.err conftest.$ac_ext
4284 if $ac_preproc_ok; then :
4285
4286 else
4287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4289 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4290 See \`config.log' for more details" "$LINENO" 5; }
4291 fi
4292
4293 ac_ext=c
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4301 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4302 if ${ac_cv_path_GREP+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 if test -z "$GREP"; then
4306 ac_path_GREP_found=false
4307 # Loop through the user's path and test for each of PROGNAME-LIST
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4310 do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 for ac_prog in grep ggrep; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4316 as_fn_executable_p "$ac_path_GREP" || continue
4317 # Check for GNU ac_path_GREP and select it if it is found.
4318 # Check for GNU $ac_path_GREP
4319 case `"$ac_path_GREP" --version 2>&1` in
4320 *GNU*)
4321 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4322 *)
4323 ac_count=0
4324 $as_echo_n 0123456789 >"conftest.in"
4325 while :
4326 do
4327 cat "conftest.in" "conftest.in" >"conftest.tmp"
4328 mv "conftest.tmp" "conftest.in"
4329 cp "conftest.in" "conftest.nl"
4330 $as_echo 'GREP' >> "conftest.nl"
4331 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333 as_fn_arith $ac_count + 1 && ac_count=$as_val
4334 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4335 # Best one so far, save it but keep looking for a better one
4336 ac_cv_path_GREP="$ac_path_GREP"
4337 ac_path_GREP_max=$ac_count
4338 fi
4339 # 10*(2^10) chars as input seems more than enough
4340 test $ac_count -gt 10 && break
4341 done
4342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343 esac
4344
4345 $ac_path_GREP_found && break 3
4346 done
4347 done
4348 done
4349 IFS=$as_save_IFS
4350 if test -z "$ac_cv_path_GREP"; then
4351 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4352 fi
4353 else
4354 ac_cv_path_GREP=$GREP
4355 fi
4356
4357 fi
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4359 $as_echo "$ac_cv_path_GREP" >&6; }
4360 GREP="$ac_cv_path_GREP"
4361
4362
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4364 $as_echo_n "checking for egrep... " >&6; }
4365 if ${ac_cv_path_EGREP+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4369 then ac_cv_path_EGREP="$GREP -E"
4370 else
4371 if test -z "$EGREP"; then
4372 ac_path_EGREP_found=false
4373 # Loop through the user's path and test for each of PROGNAME-LIST
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4376 do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_prog in egrep; do
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4382 as_fn_executable_p "$ac_path_EGREP" || continue
4383 # Check for GNU ac_path_EGREP and select it if it is found.
4384 # Check for GNU $ac_path_EGREP
4385 case `"$ac_path_EGREP" --version 2>&1` in
4386 *GNU*)
4387 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4388 *)
4389 ac_count=0
4390 $as_echo_n 0123456789 >"conftest.in"
4391 while :
4392 do
4393 cat "conftest.in" "conftest.in" >"conftest.tmp"
4394 mv "conftest.tmp" "conftest.in"
4395 cp "conftest.in" "conftest.nl"
4396 $as_echo 'EGREP' >> "conftest.nl"
4397 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4399 as_fn_arith $ac_count + 1 && ac_count=$as_val
4400 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4401 # Best one so far, save it but keep looking for a better one
4402 ac_cv_path_EGREP="$ac_path_EGREP"
4403 ac_path_EGREP_max=$ac_count
4404 fi
4405 # 10*(2^10) chars as input seems more than enough
4406 test $ac_count -gt 10 && break
4407 done
4408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4409 esac
4410
4411 $ac_path_EGREP_found && break 3
4412 done
4413 done
4414 done
4415 IFS=$as_save_IFS
4416 if test -z "$ac_cv_path_EGREP"; then
4417 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4418 fi
4419 else
4420 ac_cv_path_EGREP=$EGREP
4421 fi
4422
4423 fi
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4426 $as_echo "$ac_cv_path_EGREP" >&6; }
4427 EGREP="$ac_cv_path_EGREP"
4428
4429
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4431 $as_echo_n "checking for ANSI C header files... " >&6; }
4432 if ${ac_cv_header_stdc+:} false; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437 #include <stdlib.h>
4438 #include <stdarg.h>
4439 #include <string.h>
4440 #include <float.h>
4441
4442 int
4443 main ()
4444 {
4445
4446 ;
4447 return 0;
4448 }
4449 _ACEOF
4450 if ac_fn_c_try_compile "$LINENO"; then :
4451 ac_cv_header_stdc=yes
4452 else
4453 ac_cv_header_stdc=no
4454 fi
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456
4457 if test $ac_cv_header_stdc = yes; then
4458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 #include <string.h>
4462
4463 _ACEOF
4464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4465 $EGREP "memchr" >/dev/null 2>&1; then :
4466
4467 else
4468 ac_cv_header_stdc=no
4469 fi
4470 rm -f conftest*
4471
4472 fi
4473
4474 if test $ac_cv_header_stdc = yes; then
4475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478 #include <stdlib.h>
4479
4480 _ACEOF
4481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4482 $EGREP "free" >/dev/null 2>&1; then :
4483
4484 else
4485 ac_cv_header_stdc=no
4486 fi
4487 rm -f conftest*
4488
4489 fi
4490
4491 if test $ac_cv_header_stdc = yes; then
4492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4493 if test "$cross_compiling" = yes; then :
4494 :
4495 else
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 #include <ctype.h>
4499 #include <stdlib.h>
4500 #if ((' ' & 0x0FF) == 0x020)
4501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4503 #else
4504 # define ISLOWER(c) \
4505 (('a' <= (c) && (c) <= 'i') \
4506 || ('j' <= (c) && (c) <= 'r') \
4507 || ('s' <= (c) && (c) <= 'z'))
4508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4509 #endif
4510
4511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4512 int
4513 main ()
4514 {
4515 int i;
4516 for (i = 0; i < 256; i++)
4517 if (XOR (islower (i), ISLOWER (i))
4518 || toupper (i) != TOUPPER (i))
4519 return 2;
4520 return 0;
4521 }
4522 _ACEOF
4523 if ac_fn_c_try_run "$LINENO"; then :
4524
4525 else
4526 ac_cv_header_stdc=no
4527 fi
4528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4529 conftest.$ac_objext conftest.beam conftest.$ac_ext
4530 fi
4531
4532 fi
4533 fi
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4535 $as_echo "$ac_cv_header_stdc" >&6; }
4536 if test $ac_cv_header_stdc = yes; then
4537
4538 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4539
4540 fi
4541
4542 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4543 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4544 inttypes.h stdint.h unistd.h
4545 do :
4546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4547 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4548 "
4549 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4550 cat >>confdefs.h <<_ACEOF
4551 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4552 _ACEOF
4553
4554 fi
4555
4556 done
4557
4558
4559
4560 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4561 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4562 MINIX=yes
4563 else
4564 MINIX=
4565 fi
4566
4567
4568 if test "$MINIX" = yes; then
4569
4570 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4571
4572
4573 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4574
4575
4576 $as_echo "#define _MINIX 1" >>confdefs.h
4577
4578 fi
4579
4580
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4582 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4583 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4588
4589 # define __EXTENSIONS__ 1
4590 $ac_includes_default
4591 int
4592 main ()
4593 {
4594
4595 ;
4596 return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_c_try_compile "$LINENO"; then :
4600 ac_cv_safe_to_define___extensions__=yes
4601 else
4602 ac_cv_safe_to_define___extensions__=no
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4607 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4608 test $ac_cv_safe_to_define___extensions__ = yes &&
4609 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4610
4611 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4612
4613 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4614
4615 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4616
4617 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4618
4619
4620
4621
4622
4623 case `pwd` in
4624 *\ * | *\ *)
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4626 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4627 esac
4628
4629
4630
4631 macro_version='2.2.7a'
4632 macro_revision='1.3134'
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646 ltmain="$ac_aux_dir/ltmain.sh"
4647
4648 # Backslashify metacharacters that are still active within
4649 # double-quoted strings.
4650 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4651
4652 # Same as above, but do not quote variable references.
4653 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4654
4655 # Sed substitution to delay expansion of an escaped shell variable in a
4656 # double_quote_subst'ed string.
4657 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4658
4659 # Sed substitution to delay expansion of an escaped single quote.
4660 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4661
4662 # Sed substitution to avoid accidental globbing in evaled expressions
4663 no_glob_subst='s/\*/\\\*/g'
4664
4665 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4666 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4667 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4668
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4670 $as_echo_n "checking how to print strings... " >&6; }
4671 # Test print first, because it will be a builtin if present.
4672 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4673 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4674 ECHO='print -r --'
4675 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4676 ECHO='printf %s\n'
4677 else
4678 # Use this function as a fallback that always works.
4679 func_fallback_echo ()
4680 {
4681 eval 'cat <<_LTECHO_EOF
4682 $1
4683 _LTECHO_EOF'
4684 }
4685 ECHO='func_fallback_echo'
4686 fi
4687
4688 # func_echo_all arg...
4689 # Invoke $ECHO with all args, space-separated.
4690 func_echo_all ()
4691 {
4692 $ECHO ""
4693 }
4694
4695 case "$ECHO" in
4696 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4697 $as_echo "printf" >&6; } ;;
4698 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4699 $as_echo "print -r" >&6; } ;;
4700 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4701 $as_echo "cat" >&6; } ;;
4702 esac
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4718 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4719 if ${ac_cv_path_SED+:} false; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4723 for ac_i in 1 2 3 4 5 6 7; do
4724 ac_script="$ac_script$as_nl$ac_script"
4725 done
4726 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4727 { ac_script=; unset ac_script;}
4728 if test -z "$SED"; then
4729 ac_path_SED_found=false
4730 # Loop through the user's path and test for each of PROGNAME-LIST
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_prog in sed gsed; do
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4739 as_fn_executable_p "$ac_path_SED" || continue
4740 # Check for GNU ac_path_SED and select it if it is found.
4741 # Check for GNU $ac_path_SED
4742 case `"$ac_path_SED" --version 2>&1` in
4743 *GNU*)
4744 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4745 *)
4746 ac_count=0
4747 $as_echo_n 0123456789 >"conftest.in"
4748 while :
4749 do
4750 cat "conftest.in" "conftest.in" >"conftest.tmp"
4751 mv "conftest.tmp" "conftest.in"
4752 cp "conftest.in" "conftest.nl"
4753 $as_echo '' >> "conftest.nl"
4754 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4756 as_fn_arith $ac_count + 1 && ac_count=$as_val
4757 if test $ac_count -gt ${ac_path_SED_max-0}; then
4758 # Best one so far, save it but keep looking for a better one
4759 ac_cv_path_SED="$ac_path_SED"
4760 ac_path_SED_max=$ac_count
4761 fi
4762 # 10*(2^10) chars as input seems more than enough
4763 test $ac_count -gt 10 && break
4764 done
4765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4766 esac
4767
4768 $ac_path_SED_found && break 3
4769 done
4770 done
4771 done
4772 IFS=$as_save_IFS
4773 if test -z "$ac_cv_path_SED"; then
4774 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4775 fi
4776 else
4777 ac_cv_path_SED=$SED
4778 fi
4779
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4782 $as_echo "$ac_cv_path_SED" >&6; }
4783 SED="$ac_cv_path_SED"
4784 rm -f conftest.sed
4785
4786 test -z "$SED" && SED=sed
4787 Xsed="$SED -e 1s/^X//"
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4800 $as_echo_n "checking for fgrep... " >&6; }
4801 if ${ac_cv_path_FGREP+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4805 then ac_cv_path_FGREP="$GREP -F"
4806 else
4807 if test -z "$FGREP"; then
4808 ac_path_FGREP_found=false
4809 # Loop through the user's path and test for each of PROGNAME-LIST
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4812 do
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
4815 for ac_prog in fgrep; do
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4818 as_fn_executable_p "$ac_path_FGREP" || continue
4819 # Check for GNU ac_path_FGREP and select it if it is found.
4820 # Check for GNU $ac_path_FGREP
4821 case `"$ac_path_FGREP" --version 2>&1` in
4822 *GNU*)
4823 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4824 *)
4825 ac_count=0
4826 $as_echo_n 0123456789 >"conftest.in"
4827 while :
4828 do
4829 cat "conftest.in" "conftest.in" >"conftest.tmp"
4830 mv "conftest.tmp" "conftest.in"
4831 cp "conftest.in" "conftest.nl"
4832 $as_echo 'FGREP' >> "conftest.nl"
4833 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835 as_fn_arith $ac_count + 1 && ac_count=$as_val
4836 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4837 # Best one so far, save it but keep looking for a better one
4838 ac_cv_path_FGREP="$ac_path_FGREP"
4839 ac_path_FGREP_max=$ac_count
4840 fi
4841 # 10*(2^10) chars as input seems more than enough
4842 test $ac_count -gt 10 && break
4843 done
4844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845 esac
4846
4847 $ac_path_FGREP_found && break 3
4848 done
4849 done
4850 done
4851 IFS=$as_save_IFS
4852 if test -z "$ac_cv_path_FGREP"; then
4853 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4854 fi
4855 else
4856 ac_cv_path_FGREP=$FGREP
4857 fi
4858
4859 fi
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4862 $as_echo "$ac_cv_path_FGREP" >&6; }
4863 FGREP="$ac_cv_path_FGREP"
4864
4865
4866 test -z "$GREP" && GREP=grep
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886 # Check whether --with-gnu-ld was given.
4887 if test "${with_gnu_ld+set}" = set; then :
4888 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4889 else
4890 with_gnu_ld=no
4891 fi
4892
4893 ac_prog=ld
4894 if test "$GCC" = yes; then
4895 # Check if gcc -print-prog-name=ld gives a path.
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4897 $as_echo_n "checking for ld used by $CC... " >&6; }
4898 case $host in
4899 *-*-mingw*)
4900 # gcc leaves a trailing carriage return which upsets mingw
4901 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4902 *)
4903 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4904 esac
4905 case $ac_prog in
4906 # Accept absolute paths.
4907 [\\/]* | ?:[\\/]*)
4908 re_direlt='/[^/][^/]*/\.\./'
4909 # Canonicalize the pathname of ld
4910 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4911 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4912 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4913 done
4914 test -z "$LD" && LD="$ac_prog"
4915 ;;
4916 "")
4917 # If it fails, then pretend we aren't using GCC.
4918 ac_prog=ld
4919 ;;
4920 *)
4921 # If it is relative, then search for the first ld in PATH.
4922 with_gnu_ld=unknown
4923 ;;
4924 esac
4925 elif test "$with_gnu_ld" = yes; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4927 $as_echo_n "checking for GNU ld... " >&6; }
4928 else
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4930 $as_echo_n "checking for non-GNU ld... " >&6; }
4931 fi
4932 if ${lt_cv_path_LD+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 if test -z "$LD"; then
4936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4937 for ac_dir in $PATH; do
4938 IFS="$lt_save_ifs"
4939 test -z "$ac_dir" && ac_dir=.
4940 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4941 lt_cv_path_LD="$ac_dir/$ac_prog"
4942 # Check to see if the program is GNU ld. I'd rather use --version,
4943 # but apparently some variants of GNU ld only accept -v.
4944 # Break only if it was the GNU/non-GNU ld that we prefer.
4945 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4946 *GNU* | *'with BFD'*)
4947 test "$with_gnu_ld" != no && break
4948 ;;
4949 *)
4950 test "$with_gnu_ld" != yes && break
4951 ;;
4952 esac
4953 fi
4954 done
4955 IFS="$lt_save_ifs"
4956 else
4957 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4958 fi
4959 fi
4960
4961 LD="$lt_cv_path_LD"
4962 if test -n "$LD"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4964 $as_echo "$LD" >&6; }
4965 else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 fi
4969 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4971 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4972 if ${lt_cv_prog_gnu_ld+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4976 case `$LD -v 2>&1 </dev/null` in
4977 *GNU* | *'with BFD'*)
4978 lt_cv_prog_gnu_ld=yes
4979 ;;
4980 *)
4981 lt_cv_prog_gnu_ld=no
4982 ;;
4983 esac
4984 fi
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4986 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4987 with_gnu_ld=$lt_cv_prog_gnu_ld
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4998 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4999 if ${lt_cv_path_NM+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test -n "$NM"; then
5003 # Let the user override the nm to test.
5004 lt_nm_to_check="$NM"
5005 else
5006 lt_nm_to_check="${ac_tool_prefix}nm"
5007 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5008 lt_nm_to_check="$lt_nm_to_check nm"
5009 fi
5010 fi
5011 for lt_tmp_nm in "$lt_nm_to_check"; do
5012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5013 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5014 IFS="$lt_save_ifs"
5015 test -z "$ac_dir" && ac_dir=.
5016 # Strip out any user-provided options from the nm to test twice,
5017 # the first time to test to see if nm (rather than its options) has
5018 # an explicit path, the second time to yield a file which can be
5019 # nm'ed itself.
5020 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5021 case "$tmp_nm_path" in
5022 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5023 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5024 esac
5025 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5026 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5027 # Check to see if the nm accepts a BSD-compat flag.
5028 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5029 # nm: unknown option "B" ignored
5030 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5031 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5032 break
5033 ;;
5034 *)
5035 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5036 *$tmp_nm*)
5037 lt_cv_path_NM="$tmp_nm -p"
5038 break
5039 ;;
5040 *)
5041 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5042 continue # so that we can try to find one that supports BSD flags
5043 ;;
5044 esac
5045 ;;
5046 esac
5047 fi
5048 done
5049 IFS="$lt_save_ifs"
5050 done
5051 : ${lt_cv_path_NM=no}
5052 fi
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5054 $as_echo "$lt_cv_path_NM" >&6; }
5055 if test "$lt_cv_path_NM" != "no"; then
5056 NM="$lt_cv_path_NM"
5057 else
5058 # Didn't find any BSD compatible name lister, look for dumpbin.
5059 if test -n "$DUMPBIN"; then :
5060 # Let the user override the test.
5061 else
5062 if test -n "$ac_tool_prefix"; then
5063 for ac_prog in dumpbin "link -dump"
5064 do
5065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if ${ac_cv_prog_DUMPBIN+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 if test -n "$DUMPBIN"; then
5073 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5077 do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5085 fi
5086 done
5087 done
5088 IFS=$as_save_IFS
5089
5090 fi
5091 fi
5092 DUMPBIN=$ac_cv_prog_DUMPBIN
5093 if test -n "$DUMPBIN"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5095 $as_echo "$DUMPBIN" >&6; }
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5099 fi
5100
5101
5102 test -n "$DUMPBIN" && break
5103 done
5104 fi
5105 if test -z "$DUMPBIN"; then
5106 ac_ct_DUMPBIN=$DUMPBIN
5107 for ac_prog in dumpbin "link -dump"
5108 do
5109 # Extract the first word of "$ac_prog", so it can be a program name with args.
5110 set dummy $ac_prog; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 if test -n "$ac_ct_DUMPBIN"; then
5117 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5118 else
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130 done
5131 done
5132 IFS=$as_save_IFS
5133
5134 fi
5135 fi
5136 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5137 if test -n "$ac_ct_DUMPBIN"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5139 $as_echo "$ac_ct_DUMPBIN" >&6; }
5140 else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5143 fi
5144
5145
5146 test -n "$ac_ct_DUMPBIN" && break
5147 done
5148
5149 if test "x$ac_ct_DUMPBIN" = x; then
5150 DUMPBIN=":"
5151 else
5152 case $cross_compiling:$ac_tool_warned in
5153 yes:)
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5156 ac_tool_warned=yes ;;
5157 esac
5158 DUMPBIN=$ac_ct_DUMPBIN
5159 fi
5160 fi
5161
5162 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5163 *COFF*)
5164 DUMPBIN="$DUMPBIN -symbols"
5165 ;;
5166 *)
5167 DUMPBIN=:
5168 ;;
5169 esac
5170 fi
5171
5172 if test "$DUMPBIN" != ":"; then
5173 NM="$DUMPBIN"
5174 fi
5175 fi
5176 test -z "$NM" && NM=nm
5177
5178
5179
5180
5181
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5184 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5185 if ${lt_cv_nm_interface+:} false; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 lt_cv_nm_interface="BSD nm"
5189 echo "int some_variable = 0;" > conftest.$ac_ext
5190 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5191 (eval "$ac_compile" 2>conftest.err)
5192 cat conftest.err >&5
5193 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5194 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5195 cat conftest.err >&5
5196 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5197 cat conftest.out >&5
5198 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5199 lt_cv_nm_interface="MS dumpbin"
5200 fi
5201 rm -f conftest*
5202 fi
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5204 $as_echo "$lt_cv_nm_interface" >&6; }
5205
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5207 $as_echo_n "checking whether ln -s works... " >&6; }
5208 LN_S=$as_ln_s
5209 if test "$LN_S" = "ln -s"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5211 $as_echo "yes" >&6; }
5212 else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5214 $as_echo "no, using $LN_S" >&6; }
5215 fi
5216
5217 # find the maximum length of command line arguments
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5219 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5220 if ${lt_cv_sys_max_cmd_len+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 i=0
5224 teststring="ABCD"
5225
5226 case $build_os in
5227 msdosdjgpp*)
5228 # On DJGPP, this test can blow up pretty badly due to problems in libc
5229 # (any single argument exceeding 2000 bytes causes a buffer overrun
5230 # during glob expansion). Even if it were fixed, the result of this
5231 # check would be larger than it should be.
5232 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5233 ;;
5234
5235 gnu*)
5236 # Under GNU Hurd, this test is not required because there is
5237 # no limit to the length of command line arguments.
5238 # Libtool will interpret -1 as no limit whatsoever
5239 lt_cv_sys_max_cmd_len=-1;
5240 ;;
5241
5242 cygwin* | mingw* | cegcc*)
5243 # On Win9x/ME, this test blows up -- it succeeds, but takes
5244 # about 5 minutes as the teststring grows exponentially.
5245 # Worse, since 9x/ME are not pre-emptively multitasking,
5246 # you end up with a "frozen" computer, even though with patience
5247 # the test eventually succeeds (with a max line length of 256k).
5248 # Instead, let's just punt: use the minimum linelength reported by
5249 # all of the supported platforms: 8192 (on NT/2K/XP).
5250 lt_cv_sys_max_cmd_len=8192;
5251 ;;
5252
5253 mint*)
5254 # On MiNT this can take a long time and run out of memory.
5255 lt_cv_sys_max_cmd_len=8192;
5256 ;;
5257
5258 amigaos*)
5259 # On AmigaOS with pdksh, this test takes hours, literally.
5260 # So we just punt and use a minimum line length of 8192.
5261 lt_cv_sys_max_cmd_len=8192;
5262 ;;
5263
5264 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5265 # This has been around since 386BSD, at least. Likely further.
5266 if test -x /sbin/sysctl; then
5267 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5268 elif test -x /usr/sbin/sysctl; then
5269 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5270 else
5271 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5272 fi
5273 # And add a safety zone
5274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5276 ;;
5277
5278 interix*)
5279 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5280 lt_cv_sys_max_cmd_len=196608
5281 ;;
5282
5283 osf*)
5284 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5285 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5286 # nice to cause kernel panics so lets avoid the loop below.
5287 # First set a reasonable default.
5288 lt_cv_sys_max_cmd_len=16384
5289 #
5290 if test -x /sbin/sysconfig; then
5291 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5292 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5293 esac
5294 fi
5295 ;;
5296 sco3.2v5*)
5297 lt_cv_sys_max_cmd_len=102400
5298 ;;
5299 sysv5* | sco5v6* | sysv4.2uw2*)
5300 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5301 if test -n "$kargmax"; then
5302 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5303 else
5304 lt_cv_sys_max_cmd_len=32768
5305 fi
5306 ;;
5307 *)
5308 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5309 if test -n "$lt_cv_sys_max_cmd_len"; then
5310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5312 else
5313 # Make teststring a little bigger before we do anything with it.
5314 # a 1K string should be a reasonable start.
5315 for i in 1 2 3 4 5 6 7 8 ; do
5316 teststring=$teststring$teststring
5317 done
5318 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5319 # If test is not a shell built-in, we'll probably end up computing a
5320 # maximum length that is only half of the actual maximum length, but
5321 # we can't tell.
5322 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5323 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5324 test $i != 17 # 1/2 MB should be enough
5325 do
5326 i=`expr $i + 1`
5327 teststring=$teststring$teststring
5328 done
5329 # Only check the string length outside the loop.
5330 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5331 teststring=
5332 # Add a significant safety factor because C++ compilers can tack on
5333 # massive amounts of additional arguments before passing them to the
5334 # linker. It appears as though 1/2 is a usable value.
5335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5336 fi
5337 ;;
5338 esac
5339
5340 fi
5341
5342 if test -n $lt_cv_sys_max_cmd_len ; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5344 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5345 else
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5347 $as_echo "none" >&6; }
5348 fi
5349 max_cmd_len=$lt_cv_sys_max_cmd_len
5350
5351
5352
5353
5354
5355
5356 : ${CP="cp -f"}
5357 : ${MV="mv -f"}
5358 : ${RM="rm -f"}
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5361 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5362 # Try some XSI features
5363 xsi_shell=no
5364 ( _lt_dummy="a/b/c"
5365 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5366 = c,a/b,, \
5367 && eval 'test $(( 1 + 1 )) -eq 2 \
5368 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5369 && xsi_shell=yes
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5371 $as_echo "$xsi_shell" >&6; }
5372
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5375 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5376 lt_shell_append=no
5377 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5378 >/dev/null 2>&1 \
5379 && lt_shell_append=yes
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5381 $as_echo "$lt_shell_append" >&6; }
5382
5383
5384 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5385 lt_unset=unset
5386 else
5387 lt_unset=false
5388 fi
5389
5390
5391
5392
5393
5394 # test EBCDIC or ASCII
5395 case `echo X|tr X '\101'` in
5396 A) # ASCII based system
5397 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5398 lt_SP2NL='tr \040 \012'
5399 lt_NL2SP='tr \015\012 \040\040'
5400 ;;
5401 *) # EBCDIC based system
5402 lt_SP2NL='tr \100 \n'
5403 lt_NL2SP='tr \r\n \100\100'
5404 ;;
5405 esac
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5416 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5417 if ${lt_cv_ld_reload_flag+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 lt_cv_ld_reload_flag='-r'
5421 fi
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5423 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5424 reload_flag=$lt_cv_ld_reload_flag
5425 case $reload_flag in
5426 "" | " "*) ;;
5427 *) reload_flag=" $reload_flag" ;;
5428 esac
5429 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5430 case $host_os in
5431 darwin*)
5432 if test "$GCC" = yes; then
5433 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5434 else
5435 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5436 fi
5437 ;;
5438 esac
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448 if test -n "$ac_tool_prefix"; then
5449 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5450 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if ${ac_cv_prog_OBJDUMP+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 if test -n "$OBJDUMP"; then
5457 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 break 2
5469 fi
5470 done
5471 done
5472 IFS=$as_save_IFS
5473
5474 fi
5475 fi
5476 OBJDUMP=$ac_cv_prog_OBJDUMP
5477 if test -n "$OBJDUMP"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5479 $as_echo "$OBJDUMP" >&6; }
5480 else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5483 fi
5484
5485
5486 fi
5487 if test -z "$ac_cv_prog_OBJDUMP"; then
5488 ac_ct_OBJDUMP=$OBJDUMP
5489 # Extract the first word of "objdump", so it can be a program name with args.
5490 set dummy objdump; ac_word=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496 if test -n "$ac_ct_OBJDUMP"; then
5497 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5498 else
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5501 do
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5506 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 break 2
5509 fi
5510 done
5511 done
5512 IFS=$as_save_IFS
5513
5514 fi
5515 fi
5516 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5517 if test -n "$ac_ct_OBJDUMP"; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5519 $as_echo "$ac_ct_OBJDUMP" >&6; }
5520 else
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5523 fi
5524
5525 if test "x$ac_ct_OBJDUMP" = x; then
5526 OBJDUMP="false"
5527 else
5528 case $cross_compiling:$ac_tool_warned in
5529 yes:)
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5532 ac_tool_warned=yes ;;
5533 esac
5534 OBJDUMP=$ac_ct_OBJDUMP
5535 fi
5536 else
5537 OBJDUMP="$ac_cv_prog_OBJDUMP"
5538 fi
5539
5540 test -z "$OBJDUMP" && OBJDUMP=objdump
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5551 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5552 if ${lt_cv_deplibs_check_method+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 lt_cv_file_magic_cmd='$MAGIC_CMD'
5556 lt_cv_file_magic_test_file=
5557 lt_cv_deplibs_check_method='unknown'
5558 # Need to set the preceding variable on all platforms that support
5559 # interlibrary dependencies.
5560 # 'none' -- dependencies not supported.
5561 # `unknown' -- same as none, but documents that we really don't know.
5562 # 'pass_all' -- all dependencies passed with no checks.
5563 # 'test_compile' -- check by making test program.
5564 # 'file_magic [[regex]]' -- check by looking for files in library path
5565 # which responds to the $file_magic_cmd with a given extended regex.
5566 # If you have `file' or equivalent on your system and you're not sure
5567 # whether `pass_all' will *always* work, you probably want this one.
5568
5569 case $host_os in
5570 aix[4-9]*)
5571 lt_cv_deplibs_check_method=pass_all
5572 ;;
5573
5574 beos*)
5575 lt_cv_deplibs_check_method=pass_all
5576 ;;
5577
5578 bsdi[45]*)
5579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5580 lt_cv_file_magic_cmd='/usr/bin/file -L'
5581 lt_cv_file_magic_test_file=/shlib/libc.so
5582 ;;
5583
5584 cygwin*)
5585 # func_win32_libid is a shell function defined in ltmain.sh
5586 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5587 lt_cv_file_magic_cmd='func_win32_libid'
5588 ;;
5589
5590 mingw* | pw32*)
5591 # Base MSYS/MinGW do not provide the 'file' command needed by
5592 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5593 # unless we find 'file', for example because we are cross-compiling.
5594 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5595 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5596 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5597 lt_cv_file_magic_cmd='func_win32_libid'
5598 else
5599 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5600 lt_cv_file_magic_cmd='$OBJDUMP -f'
5601 fi
5602 ;;
5603
5604 cegcc*)
5605 # use the weaker test based on 'objdump'. See mingw*.
5606 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5607 lt_cv_file_magic_cmd='$OBJDUMP -f'
5608 ;;
5609
5610 darwin* | rhapsody*)
5611 lt_cv_deplibs_check_method=pass_all
5612 ;;
5613
5614 freebsd* | dragonfly*)
5615 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5616 case $host_cpu in
5617 i*86 )
5618 # Not sure whether the presence of OpenBSD here was a mistake.
5619 # Let's accept both of them until this is cleared up.
5620 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5621 lt_cv_file_magic_cmd=/usr/bin/file
5622 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5623 ;;
5624 esac
5625 else
5626 lt_cv_deplibs_check_method=pass_all
5627 fi
5628 ;;
5629
5630 gnu*)
5631 lt_cv_deplibs_check_method=pass_all
5632 ;;
5633
5634 haiku*)
5635 lt_cv_deplibs_check_method=pass_all
5636 ;;
5637
5638 hpux10.20* | hpux11*)
5639 lt_cv_file_magic_cmd=/usr/bin/file
5640 case $host_cpu in
5641 ia64*)
5642 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5643 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5644 ;;
5645 hppa*64*)
5646 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]'
5647 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5648 ;;
5649 *)
5650 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5651 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5652 ;;
5653 esac
5654 ;;
5655
5656 interix[3-9]*)
5657 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5658 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5659 ;;
5660
5661 irix5* | irix6* | nonstopux*)
5662 case $LD in
5663 *-32|*"-32 ") libmagic=32-bit;;
5664 *-n32|*"-n32 ") libmagic=N32;;
5665 *-64|*"-64 ") libmagic=64-bit;;
5666 *) libmagic=never-match;;
5667 esac
5668 lt_cv_deplibs_check_method=pass_all
5669 ;;
5670
5671 # This must be Linux ELF.
5672 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5673 lt_cv_deplibs_check_method=pass_all
5674 ;;
5675
5676 netbsd*)
5677 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5679 else
5680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5681 fi
5682 ;;
5683
5684 newos6*)
5685 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5686 lt_cv_file_magic_cmd=/usr/bin/file
5687 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5688 ;;
5689
5690 *nto* | *qnx*)
5691 lt_cv_deplibs_check_method=pass_all
5692 ;;
5693
5694 openbsd*)
5695 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5697 else
5698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5699 fi
5700 ;;
5701
5702 osf3* | osf4* | osf5*)
5703 lt_cv_deplibs_check_method=pass_all
5704 ;;
5705
5706 rdos*)
5707 lt_cv_deplibs_check_method=pass_all
5708 ;;
5709
5710 solaris*)
5711 lt_cv_deplibs_check_method=pass_all
5712 ;;
5713
5714 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5715 lt_cv_deplibs_check_method=pass_all
5716 ;;
5717
5718 sysv4 | sysv4.3*)
5719 case $host_vendor in
5720 motorola)
5721 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]'
5722 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5723 ;;
5724 ncr)
5725 lt_cv_deplibs_check_method=pass_all
5726 ;;
5727 sequent)
5728 lt_cv_file_magic_cmd='/bin/file'
5729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5730 ;;
5731 sni)
5732 lt_cv_file_magic_cmd='/bin/file'
5733 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5734 lt_cv_file_magic_test_file=/lib/libc.so
5735 ;;
5736 siemens)
5737 lt_cv_deplibs_check_method=pass_all
5738 ;;
5739 pc)
5740 lt_cv_deplibs_check_method=pass_all
5741 ;;
5742 esac
5743 ;;
5744
5745 tpf*)
5746 lt_cv_deplibs_check_method=pass_all
5747 ;;
5748 esac
5749
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5752 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5753 file_magic_cmd=$lt_cv_file_magic_cmd
5754 deplibs_check_method=$lt_cv_deplibs_check_method
5755 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768 plugin_option=
5769 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5770 for plugin in $plugin_names; do
5771 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5772 if test x$plugin_so = x$plugin; then
5773 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5774 fi
5775 if test x$plugin_so != x$plugin; then
5776 plugin_option="--plugin $plugin_so"
5777 break
5778 fi
5779 done
5780
5781 if test -n "$ac_tool_prefix"; then
5782 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5783 set dummy ${ac_tool_prefix}ar; ac_word=$2
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 $as_echo_n "checking for $ac_word... " >&6; }
5786 if ${ac_cv_prog_AR+:} false; then :
5787 $as_echo_n "(cached) " >&6
5788 else
5789 if test -n "$AR"; then
5790 ac_cv_prog_AR="$AR" # Let the user override the test.
5791 else
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH
5794 do
5795 IFS=$as_save_IFS
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5799 ac_cv_prog_AR="${ac_tool_prefix}ar"
5800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 break 2
5802 fi
5803 done
5804 done
5805 IFS=$as_save_IFS
5806
5807 fi
5808 fi
5809 AR=$ac_cv_prog_AR
5810 if test -n "$AR"; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5812 $as_echo "$AR" >&6; }
5813 else
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5816 fi
5817
5818
5819 fi
5820 if test -z "$ac_cv_prog_AR"; then
5821 ac_ct_AR=$AR
5822 # Extract the first word of "ar", so it can be a program name with args.
5823 set dummy ar; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 if test -n "$ac_ct_AR"; then
5830 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839 ac_cv_prog_ac_ct_AR="ar"
5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5842 fi
5843 done
5844 done
5845 IFS=$as_save_IFS
5846
5847 fi
5848 fi
5849 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5850 if test -n "$ac_ct_AR"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5852 $as_echo "$ac_ct_AR" >&6; }
5853 else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5856 fi
5857
5858 if test "x$ac_ct_AR" = x; then
5859 AR="false"
5860 else
5861 case $cross_compiling:$ac_tool_warned in
5862 yes:)
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5865 ac_tool_warned=yes ;;
5866 esac
5867 AR=$ac_ct_AR
5868 fi
5869 else
5870 AR="$ac_cv_prog_AR"
5871 fi
5872
5873 test -z "$AR" && AR=ar
5874 if test -n "$plugin_option"; then
5875 if $AR --help 2>&1 | grep -q "\--plugin"; then
5876 touch conftest.c
5877 $AR $plugin_option rc conftest.a conftest.c
5878 if test "$?" != 0; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5880 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5881 else
5882 AR="$AR $plugin_option"
5883 fi
5884 rm -f conftest.*
5885 fi
5886 fi
5887 test -z "$AR_FLAGS" && AR_FLAGS=cru
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899 if test -n "$ac_tool_prefix"; then
5900 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5901 set dummy ${ac_tool_prefix}strip; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if ${ac_cv_prog_STRIP+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 if test -n "$STRIP"; then
5908 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 break 2
5920 fi
5921 done
5922 done
5923 IFS=$as_save_IFS
5924
5925 fi
5926 fi
5927 STRIP=$ac_cv_prog_STRIP
5928 if test -n "$STRIP"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5930 $as_echo "$STRIP" >&6; }
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5934 fi
5935
5936
5937 fi
5938 if test -z "$ac_cv_prog_STRIP"; then
5939 ac_ct_STRIP=$STRIP
5940 # Extract the first word of "strip", so it can be a program name with args.
5941 set dummy strip; ac_word=$2
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943 $as_echo_n "checking for $ac_word... " >&6; }
5944 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 if test -n "$ac_ct_STRIP"; then
5948 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957 ac_cv_prog_ac_ct_STRIP="strip"
5958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 break 2
5960 fi
5961 done
5962 done
5963 IFS=$as_save_IFS
5964
5965 fi
5966 fi
5967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5968 if test -n "$ac_ct_STRIP"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5970 $as_echo "$ac_ct_STRIP" >&6; }
5971 else
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5974 fi
5975
5976 if test "x$ac_ct_STRIP" = x; then
5977 STRIP=":"
5978 else
5979 case $cross_compiling:$ac_tool_warned in
5980 yes:)
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5983 ac_tool_warned=yes ;;
5984 esac
5985 STRIP=$ac_ct_STRIP
5986 fi
5987 else
5988 STRIP="$ac_cv_prog_STRIP"
5989 fi
5990
5991 test -z "$STRIP" && STRIP=:
5992
5993
5994
5995
5996
5997
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_prog_RANLIB+:} false; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if test -n "$RANLIB"; then
6007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 RANLIB=$ac_cv_prog_RANLIB
6027 if test -n "$RANLIB"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6029 $as_echo "$RANLIB" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034
6035
6036 fi
6037 if test -z "$ac_cv_prog_RANLIB"; then
6038 ac_ct_RANLIB=$RANLIB
6039 # Extract the first word of "ranlib", so it can be a program name with args.
6040 set dummy ranlib; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$ac_ct_RANLIB"; then
6047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056 ac_cv_prog_ac_ct_RANLIB="ranlib"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6067 if test -n "$ac_ct_RANLIB"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6069 $as_echo "$ac_ct_RANLIB" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6073 fi
6074
6075 if test "x$ac_ct_RANLIB" = x; then
6076 RANLIB=":"
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6083 esac
6084 RANLIB=$ac_ct_RANLIB
6085 fi
6086 else
6087 RANLIB="$ac_cv_prog_RANLIB"
6088 fi
6089
6090 test -z "$RANLIB" && RANLIB=:
6091 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6092 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6093 RANLIB="$RANLIB $plugin_option"
6094 fi
6095 fi
6096
6097
6098
6099
6100
6101
6102 # Determine commands to create old-style static archives.
6103 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6104 old_postinstall_cmds='chmod 644 $oldlib'
6105 old_postuninstall_cmds=
6106
6107 if test -n "$RANLIB"; then
6108 case $host_os in
6109 openbsd*)
6110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6111 ;;
6112 *)
6113 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6114 ;;
6115 esac
6116 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6117 fi
6118
6119 case $host_os in
6120 darwin*)
6121 lock_old_archive_extraction=yes ;;
6122 *)
6123 lock_old_archive_extraction=no ;;
6124 esac
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164 # If no C compiler was specified, use CC.
6165 LTCC=${LTCC-"$CC"}
6166
6167 # If no C compiler flags were specified, use CFLAGS.
6168 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6169
6170 # Allow CC to be a program name with arguments.
6171 compiler=$CC
6172
6173
6174 # Check for command to grab the raw symbol name followed by C symbol from nm.
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6176 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6177 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180
6181 # These are sane defaults that work on at least a few old systems.
6182 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6183
6184 # Character class describing NM global symbol codes.
6185 symcode='[BCDEGRST]'
6186
6187 # Regexp to match symbols that can be accessed directly from C.
6188 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6189
6190 # Define system-specific variables.
6191 case $host_os in
6192 aix*)
6193 symcode='[BCDT]'
6194 ;;
6195 cygwin* | mingw* | pw32* | cegcc*)
6196 symcode='[ABCDGISTW]'
6197 ;;
6198 hpux*)
6199 if test "$host_cpu" = ia64; then
6200 symcode='[ABCDEGRST]'
6201 fi
6202 ;;
6203 irix* | nonstopux*)
6204 symcode='[BCDEGRST]'
6205 ;;
6206 osf*)
6207 symcode='[BCDEGQRST]'
6208 ;;
6209 solaris*)
6210 symcode='[BCDRT]'
6211 ;;
6212 sco3.2v5*)
6213 symcode='[DT]'
6214 ;;
6215 sysv4.2uw2*)
6216 symcode='[DT]'
6217 ;;
6218 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6219 symcode='[ABDT]'
6220 ;;
6221 sysv4)
6222 symcode='[DFNSTU]'
6223 ;;
6224 esac
6225
6226 # If we're using GNU nm, then use its standard symbol codes.
6227 case `$NM -V 2>&1` in
6228 *GNU* | *'with BFD'*)
6229 symcode='[ABCDGIRSTW]' ;;
6230 esac
6231
6232 # Transform an extracted symbol line into a proper C declaration.
6233 # Some systems (esp. on ia64) link data and code symbols differently,
6234 # so use this general approach.
6235 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6236
6237 # Transform an extracted symbol line into symbol name and symbol address
6238 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6239 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'"
6240
6241 # Handle CRLF in mingw tool chain
6242 opt_cr=
6243 case $build_os in
6244 mingw*)
6245 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6246 ;;
6247 esac
6248
6249 # Try without a prefix underscore, then with it.
6250 for ac_symprfx in "" "_"; do
6251
6252 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6253 symxfrm="\\1 $ac_symprfx\\2 \\2"
6254
6255 # Write the raw and C identifiers.
6256 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6257 # Fake it for dumpbin and say T for any non-static function
6258 # and D for any global variable.
6259 # Also find C++ and __fastcall symbols from MSVC++,
6260 # which start with @ or ?.
6261 lt_cv_sys_global_symbol_pipe="$AWK '"\
6262 " {last_section=section; section=\$ 3};"\
6263 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6264 " \$ 0!~/External *\|/{next};"\
6265 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6266 " {if(hide[section]) next};"\
6267 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6268 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6269 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6270 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6271 " ' prfx=^$ac_symprfx"
6272 else
6273 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6274 fi
6275
6276 # Check to see that the pipe works correctly.
6277 pipe_works=no
6278
6279 rm -f conftest*
6280 cat > conftest.$ac_ext <<_LT_EOF
6281 #ifdef __cplusplus
6282 extern "C" {
6283 #endif
6284 char nm_test_var;
6285 void nm_test_func(void);
6286 void nm_test_func(void){}
6287 #ifdef __cplusplus
6288 }
6289 #endif
6290 int main(){nm_test_var='a';nm_test_func();return(0);}
6291 _LT_EOF
6292
6293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6294 (eval $ac_compile) 2>&5
6295 ac_status=$?
6296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297 test $ac_status = 0; }; then
6298 # Now try to grab the symbols.
6299 nlist=conftest.nm
6300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6301 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6302 ac_status=$?
6303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6304 test $ac_status = 0; } && test -s "$nlist"; then
6305 # Try sorting and uniquifying the output.
6306 if sort "$nlist" | uniq > "$nlist"T; then
6307 mv -f "$nlist"T "$nlist"
6308 else
6309 rm -f "$nlist"T
6310 fi
6311
6312 # Make sure that we snagged all the symbols we need.
6313 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6314 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6315 cat <<_LT_EOF > conftest.$ac_ext
6316 #ifdef __cplusplus
6317 extern "C" {
6318 #endif
6319
6320 _LT_EOF
6321 # Now generate the symbol file.
6322 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6323
6324 cat <<_LT_EOF >> conftest.$ac_ext
6325
6326 /* The mapping between symbol names and symbols. */
6327 const struct {
6328 const char *name;
6329 void *address;
6330 }
6331 lt__PROGRAM__LTX_preloaded_symbols[] =
6332 {
6333 { "@PROGRAM@", (void *) 0 },
6334 _LT_EOF
6335 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6336 cat <<\_LT_EOF >> conftest.$ac_ext
6337 {0, (void *) 0}
6338 };
6339
6340 /* This works around a problem in FreeBSD linker */
6341 #ifdef FREEBSD_WORKAROUND
6342 static const void *lt_preloaded_setup() {
6343 return lt__PROGRAM__LTX_preloaded_symbols;
6344 }
6345 #endif
6346
6347 #ifdef __cplusplus
6348 }
6349 #endif
6350 _LT_EOF
6351 # Now try linking the two files.
6352 mv conftest.$ac_objext conftstm.$ac_objext
6353 lt_save_LIBS="$LIBS"
6354 lt_save_CFLAGS="$CFLAGS"
6355 LIBS="conftstm.$ac_objext"
6356 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6358 (eval $ac_link) 2>&5
6359 ac_status=$?
6360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6362 pipe_works=yes
6363 fi
6364 LIBS="$lt_save_LIBS"
6365 CFLAGS="$lt_save_CFLAGS"
6366 else
6367 echo "cannot find nm_test_func in $nlist" >&5
6368 fi
6369 else
6370 echo "cannot find nm_test_var in $nlist" >&5
6371 fi
6372 else
6373 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6374 fi
6375 else
6376 echo "$progname: failed program was:" >&5
6377 cat conftest.$ac_ext >&5
6378 fi
6379 rm -rf conftest* conftst*
6380
6381 # Do not use the global_symbol_pipe unless it works.
6382 if test "$pipe_works" = yes; then
6383 break
6384 else
6385 lt_cv_sys_global_symbol_pipe=
6386 fi
6387 done
6388
6389 fi
6390
6391 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6392 lt_cv_sys_global_symbol_to_cdecl=
6393 fi
6394 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6396 $as_echo "failed" >&6; }
6397 else
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6399 $as_echo "ok" >&6; }
6400 fi
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423 # Check whether --enable-libtool-lock was given.
6424 if test "${enable_libtool_lock+set}" = set; then :
6425 enableval=$enable_libtool_lock;
6426 fi
6427
6428 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6429
6430 # Some flags need to be propagated to the compiler or linker for good
6431 # libtool support.
6432 case $host in
6433 ia64-*-hpux*)
6434 # Find out which ABI we are using.
6435 echo 'int i;' > conftest.$ac_ext
6436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6437 (eval $ac_compile) 2>&5
6438 ac_status=$?
6439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6440 test $ac_status = 0; }; then
6441 case `/usr/bin/file conftest.$ac_objext` in
6442 *ELF-32*)
6443 HPUX_IA64_MODE="32"
6444 ;;
6445 *ELF-64*)
6446 HPUX_IA64_MODE="64"
6447 ;;
6448 esac
6449 fi
6450 rm -rf conftest*
6451 ;;
6452 *-*-irix6*)
6453 # Find out which ABI we are using.
6454 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6456 (eval $ac_compile) 2>&5
6457 ac_status=$?
6458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6459 test $ac_status = 0; }; then
6460 if test "$lt_cv_prog_gnu_ld" = yes; then
6461 case `/usr/bin/file conftest.$ac_objext` in
6462 *32-bit*)
6463 LD="${LD-ld} -melf32bsmip"
6464 ;;
6465 *N32*)
6466 LD="${LD-ld} -melf32bmipn32"
6467 ;;
6468 *64-bit*)
6469 LD="${LD-ld} -melf64bmip"
6470 ;;
6471 esac
6472 else
6473 case `/usr/bin/file conftest.$ac_objext` in
6474 *32-bit*)
6475 LD="${LD-ld} -32"
6476 ;;
6477 *N32*)
6478 LD="${LD-ld} -n32"
6479 ;;
6480 *64-bit*)
6481 LD="${LD-ld} -64"
6482 ;;
6483 esac
6484 fi
6485 fi
6486 rm -rf conftest*
6487 ;;
6488
6489 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6490 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6491 # Find out which ABI we are using.
6492 echo 'int i;' > conftest.$ac_ext
6493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6494 (eval $ac_compile) 2>&5
6495 ac_status=$?
6496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6497 test $ac_status = 0; }; then
6498 case `/usr/bin/file conftest.o` in
6499 *32-bit*)
6500 case $host in
6501 x86_64-*kfreebsd*-gnu)
6502 LD="${LD-ld} -m elf_i386_fbsd"
6503 ;;
6504 x86_64-*linux*)
6505 case `/usr/bin/file conftest.o` in
6506 *x86-64*)
6507 LD="${LD-ld} -m elf32_x86_64"
6508 ;;
6509 *)
6510 LD="${LD-ld} -m elf_i386"
6511 ;;
6512 esac
6513 ;;
6514 powerpc64le-*linux*)
6515 LD="${LD-ld} -m elf32lppclinux"
6516 ;;
6517 powerpc64-*linux*)
6518 LD="${LD-ld} -m elf32ppclinux"
6519 ;;
6520 s390x-*linux*)
6521 LD="${LD-ld} -m elf_s390"
6522 ;;
6523 sparc64-*linux*)
6524 LD="${LD-ld} -m elf32_sparc"
6525 ;;
6526 esac
6527 ;;
6528 *64-bit*)
6529 case $host in
6530 x86_64-*kfreebsd*-gnu)
6531 LD="${LD-ld} -m elf_x86_64_fbsd"
6532 ;;
6533 x86_64-*linux*)
6534 LD="${LD-ld} -m elf_x86_64"
6535 ;;
6536 powerpcle-*linux*)
6537 LD="${LD-ld} -m elf64lppc"
6538 ;;
6539 powerpc-*linux*)
6540 LD="${LD-ld} -m elf64ppc"
6541 ;;
6542 s390*-*linux*|s390*-*tpf*)
6543 LD="${LD-ld} -m elf64_s390"
6544 ;;
6545 sparc*-*linux*)
6546 LD="${LD-ld} -m elf64_sparc"
6547 ;;
6548 esac
6549 ;;
6550 esac
6551 fi
6552 rm -rf conftest*
6553 ;;
6554
6555 *-*-sco3.2v5*)
6556 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6557 SAVE_CFLAGS="$CFLAGS"
6558 CFLAGS="$CFLAGS -belf"
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6560 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6561 if ${lt_cv_cc_needs_belf+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 ac_ext=c
6565 ac_cpp='$CPP $CPPFLAGS'
6566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6569
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572
6573 int
6574 main ()
6575 {
6576
6577 ;
6578 return 0;
6579 }
6580 _ACEOF
6581 if ac_fn_c_try_link "$LINENO"; then :
6582 lt_cv_cc_needs_belf=yes
6583 else
6584 lt_cv_cc_needs_belf=no
6585 fi
6586 rm -f core conftest.err conftest.$ac_objext \
6587 conftest$ac_exeext conftest.$ac_ext
6588 ac_ext=c
6589 ac_cpp='$CPP $CPPFLAGS'
6590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6593
6594 fi
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6596 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6597 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6598 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6599 CFLAGS="$SAVE_CFLAGS"
6600 fi
6601 ;;
6602 sparc*-*solaris*)
6603 # Find out which ABI we are using.
6604 echo 'int i;' > conftest.$ac_ext
6605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6606 (eval $ac_compile) 2>&5
6607 ac_status=$?
6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609 test $ac_status = 0; }; then
6610 case `/usr/bin/file conftest.o` in
6611 *64-bit*)
6612 case $lt_cv_prog_gnu_ld in
6613 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6614 *)
6615 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6616 LD="${LD-ld} -64"
6617 fi
6618 ;;
6619 esac
6620 ;;
6621 esac
6622 fi
6623 rm -rf conftest*
6624 ;;
6625 esac
6626
6627 need_locks="$enable_libtool_lock"
6628
6629
6630 case $host_os in
6631 rhapsody* | darwin*)
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 if test -n "$DSYMUTIL"; then
6641 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6661 if test -n "$DSYMUTIL"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6663 $as_echo "$DSYMUTIL" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669
6670 fi
6671 if test -z "$ac_cv_prog_DSYMUTIL"; then
6672 ac_ct_DSYMUTIL=$DSYMUTIL
6673 # Extract the first word of "dsymutil", so it can be a program name with args.
6674 set dummy dsymutil; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 if test -n "$ac_ct_DSYMUTIL"; then
6681 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6701 if test -n "$ac_ct_DSYMUTIL"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6703 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709 if test "x$ac_ct_DSYMUTIL" = x; then
6710 DSYMUTIL=":"
6711 else
6712 case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6717 esac
6718 DSYMUTIL=$ac_ct_DSYMUTIL
6719 fi
6720 else
6721 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6722 fi
6723
6724 if test -n "$ac_tool_prefix"; then
6725 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6726 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_NMEDIT+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 if test -n "$NMEDIT"; then
6733 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 NMEDIT=$ac_cv_prog_NMEDIT
6753 if test -n "$NMEDIT"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6755 $as_echo "$NMEDIT" >&6; }
6756 else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761
6762 fi
6763 if test -z "$ac_cv_prog_NMEDIT"; then
6764 ac_ct_NMEDIT=$NMEDIT
6765 # Extract the first word of "nmedit", so it can be a program name with args.
6766 set dummy nmedit; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 if test -n "$ac_ct_NMEDIT"; then
6773 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786 done
6787 done
6788 IFS=$as_save_IFS
6789
6790 fi
6791 fi
6792 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6793 if test -n "$ac_ct_NMEDIT"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6795 $as_echo "$ac_ct_NMEDIT" >&6; }
6796 else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 fi
6800
6801 if test "x$ac_ct_NMEDIT" = x; then
6802 NMEDIT=":"
6803 else
6804 case $cross_compiling:$ac_tool_warned in
6805 yes:)
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808 ac_tool_warned=yes ;;
6809 esac
6810 NMEDIT=$ac_ct_NMEDIT
6811 fi
6812 else
6813 NMEDIT="$ac_cv_prog_NMEDIT"
6814 fi
6815
6816 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if ${ac_cv_prog_LIPO+:} false; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 if test -n "$LIPO"; then
6825 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6834 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 LIPO=$ac_cv_prog_LIPO
6845 if test -n "$LIPO"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6847 $as_echo "$LIPO" >&6; }
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853
6854 fi
6855 if test -z "$ac_cv_prog_LIPO"; then
6856 ac_ct_LIPO=$LIPO
6857 # Extract the first word of "lipo", so it can be a program name with args.
6858 set dummy lipo; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 if test -n "$ac_ct_LIPO"; then
6865 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874 ac_cv_prog_ac_ct_LIPO="lipo"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6885 if test -n "$ac_ct_LIPO"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6887 $as_echo "$ac_ct_LIPO" >&6; }
6888 else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6891 fi
6892
6893 if test "x$ac_ct_LIPO" = x; then
6894 LIPO=":"
6895 else
6896 case $cross_compiling:$ac_tool_warned in
6897 yes:)
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900 ac_tool_warned=yes ;;
6901 esac
6902 LIPO=$ac_ct_LIPO
6903 fi
6904 else
6905 LIPO="$ac_cv_prog_LIPO"
6906 fi
6907
6908 if test -n "$ac_tool_prefix"; then
6909 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6910 set dummy ${ac_tool_prefix}otool; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_OTOOL+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 if test -n "$OTOOL"; then
6917 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930 done
6931 done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 OTOOL=$ac_cv_prog_OTOOL
6937 if test -n "$OTOOL"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6939 $as_echo "$OTOOL" >&6; }
6940 else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945
6946 fi
6947 if test -z "$ac_cv_prog_OTOOL"; then
6948 ac_ct_OTOOL=$OTOOL
6949 # Extract the first word of "otool", so it can be a program name with args.
6950 set dummy otool; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 if test -n "$ac_ct_OTOOL"; then
6957 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966 ac_cv_prog_ac_ct_OTOOL="otool"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6977 if test -n "$ac_ct_OTOOL"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6979 $as_echo "$ac_ct_OTOOL" >&6; }
6980 else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985 if test "x$ac_ct_OTOOL" = x; then
6986 OTOOL=":"
6987 else
6988 case $cross_compiling:$ac_tool_warned in
6989 yes:)
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992 ac_tool_warned=yes ;;
6993 esac
6994 OTOOL=$ac_ct_OTOOL
6995 fi
6996 else
6997 OTOOL="$ac_cv_prog_OTOOL"
6998 fi
6999
7000 if test -n "$ac_tool_prefix"; then
7001 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7002 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_OTOOL64+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 if test -n "$OTOOL64"; then
7009 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022 done
7023 done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 OTOOL64=$ac_cv_prog_OTOOL64
7029 if test -n "$OTOOL64"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7031 $as_echo "$OTOOL64" >&6; }
7032 else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7035 fi
7036
7037
7038 fi
7039 if test -z "$ac_cv_prog_OTOOL64"; then
7040 ac_ct_OTOOL64=$OTOOL64
7041 # Extract the first word of "otool64", so it can be a program name with args.
7042 set dummy otool64; ac_word=$2
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 $as_echo_n "checking for $ac_word... " >&6; }
7045 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 if test -n "$ac_ct_OTOOL64"; then
7049 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7058 ac_cv_prog_ac_ct_OTOOL64="otool64"
7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066 fi
7067 fi
7068 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7069 if test -n "$ac_ct_OTOOL64"; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7071 $as_echo "$ac_ct_OTOOL64" >&6; }
7072 else
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 $as_echo "no" >&6; }
7075 fi
7076
7077 if test "x$ac_ct_OTOOL64" = x; then
7078 OTOOL64=":"
7079 else
7080 case $cross_compiling:$ac_tool_warned in
7081 yes:)
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7084 ac_tool_warned=yes ;;
7085 esac
7086 OTOOL64=$ac_ct_OTOOL64
7087 fi
7088 else
7089 OTOOL64="$ac_cv_prog_OTOOL64"
7090 fi
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7119 $as_echo_n "checking for -single_module linker flag... " >&6; }
7120 if ${lt_cv_apple_cc_single_mod+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 lt_cv_apple_cc_single_mod=no
7124 if test -z "${LT_MULTI_MODULE}"; then
7125 # By default we will add the -single_module flag. You can override
7126 # by either setting the environment variable LT_MULTI_MODULE
7127 # non-empty at configure time, or by adding -multi_module to the
7128 # link flags.
7129 rm -rf libconftest.dylib*
7130 echo "int foo(void){return 1;}" > conftest.c
7131 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7132 -dynamiclib -Wl,-single_module conftest.c" >&5
7133 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7134 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7135 _lt_result=$?
7136 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7137 lt_cv_apple_cc_single_mod=yes
7138 else
7139 cat conftest.err >&5
7140 fi
7141 rm -rf libconftest.dylib*
7142 rm -f conftest.*
7143 fi
7144 fi
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7146 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7148 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7149 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 lt_cv_ld_exported_symbols_list=no
7153 save_LDFLAGS=$LDFLAGS
7154 echo "_main" > conftest.sym
7155 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158
7159 int
7160 main ()
7161 {
7162
7163 ;
7164 return 0;
7165 }
7166 _ACEOF
7167 if ac_fn_c_try_link "$LINENO"; then :
7168 lt_cv_ld_exported_symbols_list=yes
7169 else
7170 lt_cv_ld_exported_symbols_list=no
7171 fi
7172 rm -f core conftest.err conftest.$ac_objext \
7173 conftest$ac_exeext conftest.$ac_ext
7174 LDFLAGS="$save_LDFLAGS"
7175
7176 fi
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7178 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7180 $as_echo_n "checking for -force_load linker flag... " >&6; }
7181 if ${lt_cv_ld_force_load+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 lt_cv_ld_force_load=no
7185 cat > conftest.c << _LT_EOF
7186 int forced_loaded() { return 2;}
7187 _LT_EOF
7188 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7189 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7190 echo "$AR cru libconftest.a conftest.o" >&5
7191 $AR cru libconftest.a conftest.o 2>&5
7192 cat > conftest.c << _LT_EOF
7193 int main() { return 0;}
7194 _LT_EOF
7195 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7196 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7197 _lt_result=$?
7198 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7199 lt_cv_ld_force_load=yes
7200 else
7201 cat conftest.err >&5
7202 fi
7203 rm -f conftest.err libconftest.a conftest conftest.c
7204 rm -rf conftest.dSYM
7205
7206 fi
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7208 $as_echo "$lt_cv_ld_force_load" >&6; }
7209 case $host_os in
7210 rhapsody* | darwin1.[012])
7211 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7212 darwin1.*)
7213 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7214 darwin*) # darwin 5.x on
7215 # if running on 10.5 or later, the deployment target defaults
7216 # to the OS version, if on x86, and 10.4, the deployment
7217 # target defaults to 10.4. Don't you love it?
7218 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7219 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7220 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7221 10.[012][,.]*)
7222 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7223 10.*)
7224 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7225 esac
7226 ;;
7227 esac
7228 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7229 _lt_dar_single_mod='$single_module'
7230 fi
7231 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7232 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7233 else
7234 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7235 fi
7236 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7237 _lt_dsymutil='~$DSYMUTIL $lib || :'
7238 else
7239 _lt_dsymutil=
7240 fi
7241 ;;
7242 esac
7243
7244 for ac_header in dlfcn.h
7245 do :
7246 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7247 "
7248 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7249 cat >>confdefs.h <<_ACEOF
7250 #define HAVE_DLFCN_H 1
7251 _ACEOF
7252
7253 fi
7254
7255 done
7256
7257
7258
7259
7260
7261 # Set options
7262
7263
7264
7265 enable_dlopen=no
7266
7267
7268 enable_win32_dll=no
7269
7270
7271 # Check whether --enable-shared was given.
7272 if test "${enable_shared+set}" = set; then :
7273 enableval=$enable_shared; p=${PACKAGE-default}
7274 case $enableval in
7275 yes) enable_shared=yes ;;
7276 no) enable_shared=no ;;
7277 *)
7278 enable_shared=no
7279 # Look at the argument we got. We use all the common list separators.
7280 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7281 for pkg in $enableval; do
7282 IFS="$lt_save_ifs"
7283 if test "X$pkg" = "X$p"; then
7284 enable_shared=yes
7285 fi
7286 done
7287 IFS="$lt_save_ifs"
7288 ;;
7289 esac
7290 else
7291 enable_shared=yes
7292 fi
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302 # Check whether --enable-static was given.
7303 if test "${enable_static+set}" = set; then :
7304 enableval=$enable_static; p=${PACKAGE-default}
7305 case $enableval in
7306 yes) enable_static=yes ;;
7307 no) enable_static=no ;;
7308 *)
7309 enable_static=no
7310 # Look at the argument we got. We use all the common list separators.
7311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7312 for pkg in $enableval; do
7313 IFS="$lt_save_ifs"
7314 if test "X$pkg" = "X$p"; then
7315 enable_static=yes
7316 fi
7317 done
7318 IFS="$lt_save_ifs"
7319 ;;
7320 esac
7321 else
7322 enable_static=yes
7323 fi
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334 # Check whether --with-pic was given.
7335 if test "${with_pic+set}" = set; then :
7336 withval=$with_pic; pic_mode="$withval"
7337 else
7338 pic_mode=default
7339 fi
7340
7341
7342 test -z "$pic_mode" && pic_mode=default
7343
7344
7345
7346
7347
7348
7349
7350 # Check whether --enable-fast-install was given.
7351 if test "${enable_fast_install+set}" = set; then :
7352 enableval=$enable_fast_install; p=${PACKAGE-default}
7353 case $enableval in
7354 yes) enable_fast_install=yes ;;
7355 no) enable_fast_install=no ;;
7356 *)
7357 enable_fast_install=no
7358 # Look at the argument we got. We use all the common list separators.
7359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7360 for pkg in $enableval; do
7361 IFS="$lt_save_ifs"
7362 if test "X$pkg" = "X$p"; then
7363 enable_fast_install=yes
7364 fi
7365 done
7366 IFS="$lt_save_ifs"
7367 ;;
7368 esac
7369 else
7370 enable_fast_install=yes
7371 fi
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383 # This can be used to rebuild libtool when needed
7384 LIBTOOL_DEPS="$ltmain"
7385
7386 # Always use our own libtool.
7387 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414 test -z "$LN_S" && LN_S="ln -s"
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429 if test -n "${ZSH_VERSION+set}" ; then
7430 setopt NO_GLOB_SUBST
7431 fi
7432
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7434 $as_echo_n "checking for objdir... " >&6; }
7435 if ${lt_cv_objdir+:} false; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 rm -f .libs 2>/dev/null
7439 mkdir .libs 2>/dev/null
7440 if test -d .libs; then
7441 lt_cv_objdir=.libs
7442 else
7443 # MS-DOS does not allow filenames that begin with a dot.
7444 lt_cv_objdir=_libs
7445 fi
7446 rmdir .libs 2>/dev/null
7447 fi
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7449 $as_echo "$lt_cv_objdir" >&6; }
7450 objdir=$lt_cv_objdir
7451
7452
7453
7454
7455
7456 cat >>confdefs.h <<_ACEOF
7457 #define LT_OBJDIR "$lt_cv_objdir/"
7458 _ACEOF
7459
7460
7461
7462
7463 case $host_os in
7464 aix3*)
7465 # AIX sometimes has problems with the GCC collect2 program. For some
7466 # reason, if we set the COLLECT_NAMES environment variable, the problems
7467 # vanish in a puff of smoke.
7468 if test "X${COLLECT_NAMES+set}" != Xset; then
7469 COLLECT_NAMES=
7470 export COLLECT_NAMES
7471 fi
7472 ;;
7473 esac
7474
7475 # Global variables:
7476 ofile=libtool
7477 can_build_shared=yes
7478
7479 # All known linkers require a `.a' archive for static linking (except MSVC,
7480 # which needs '.lib').
7481 libext=a
7482
7483 with_gnu_ld="$lt_cv_prog_gnu_ld"
7484
7485 old_CC="$CC"
7486 old_CFLAGS="$CFLAGS"
7487
7488 # Set sane defaults for various variables
7489 test -z "$CC" && CC=cc
7490 test -z "$LTCC" && LTCC=$CC
7491 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7492 test -z "$LD" && LD=ld
7493 test -z "$ac_objext" && ac_objext=o
7494
7495 for cc_temp in $compiler""; do
7496 case $cc_temp in
7497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7499 \-*) ;;
7500 *) break;;
7501 esac
7502 done
7503 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7504
7505
7506 # Only perform the check for file, if the check method requires it
7507 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7508 case $deplibs_check_method in
7509 file_magic*)
7510 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7512 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7513 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 case $MAGIC_CMD in
7517 [\\/*] | ?:[\\/]*)
7518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7519 ;;
7520 *)
7521 lt_save_MAGIC_CMD="$MAGIC_CMD"
7522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7523 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7524 for ac_dir in $ac_dummy; do
7525 IFS="$lt_save_ifs"
7526 test -z "$ac_dir" && ac_dir=.
7527 if test -f $ac_dir/${ac_tool_prefix}file; then
7528 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7529 if test -n "$file_magic_test_file"; then
7530 case $deplibs_check_method in
7531 "file_magic "*)
7532 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7534 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7535 $EGREP "$file_magic_regex" > /dev/null; then
7536 :
7537 else
7538 cat <<_LT_EOF 1>&2
7539
7540 *** Warning: the command libtool uses to detect shared libraries,
7541 *** $file_magic_cmd, produces output that libtool cannot recognize.
7542 *** The result is that libtool may fail to recognize shared libraries
7543 *** as such. This will affect the creation of libtool libraries that
7544 *** depend on shared libraries, but programs linked with such libtool
7545 *** libraries will work regardless of this problem. Nevertheless, you
7546 *** may want to report the problem to your system manager and/or to
7547 *** bug-libtool@gnu.org
7548
7549 _LT_EOF
7550 fi ;;
7551 esac
7552 fi
7553 break
7554 fi
7555 done
7556 IFS="$lt_save_ifs"
7557 MAGIC_CMD="$lt_save_MAGIC_CMD"
7558 ;;
7559 esac
7560 fi
7561
7562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7563 if test -n "$MAGIC_CMD"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7565 $as_echo "$MAGIC_CMD" >&6; }
7566 else
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7569 fi
7570
7571
7572
7573
7574
7575 if test -z "$lt_cv_path_MAGIC_CMD"; then
7576 if test -n "$ac_tool_prefix"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7578 $as_echo_n "checking for file... " >&6; }
7579 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 case $MAGIC_CMD in
7583 [\\/*] | ?:[\\/]*)
7584 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7585 ;;
7586 *)
7587 lt_save_MAGIC_CMD="$MAGIC_CMD"
7588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7589 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7590 for ac_dir in $ac_dummy; do
7591 IFS="$lt_save_ifs"
7592 test -z "$ac_dir" && ac_dir=.
7593 if test -f $ac_dir/file; then
7594 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7595 if test -n "$file_magic_test_file"; then
7596 case $deplibs_check_method in
7597 "file_magic "*)
7598 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7600 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7601 $EGREP "$file_magic_regex" > /dev/null; then
7602 :
7603 else
7604 cat <<_LT_EOF 1>&2
7605
7606 *** Warning: the command libtool uses to detect shared libraries,
7607 *** $file_magic_cmd, produces output that libtool cannot recognize.
7608 *** The result is that libtool may fail to recognize shared libraries
7609 *** as such. This will affect the creation of libtool libraries that
7610 *** depend on shared libraries, but programs linked with such libtool
7611 *** libraries will work regardless of this problem. Nevertheless, you
7612 *** may want to report the problem to your system manager and/or to
7613 *** bug-libtool@gnu.org
7614
7615 _LT_EOF
7616 fi ;;
7617 esac
7618 fi
7619 break
7620 fi
7621 done
7622 IFS="$lt_save_ifs"
7623 MAGIC_CMD="$lt_save_MAGIC_CMD"
7624 ;;
7625 esac
7626 fi
7627
7628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7629 if test -n "$MAGIC_CMD"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7631 $as_echo "$MAGIC_CMD" >&6; }
7632 else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636
7637
7638 else
7639 MAGIC_CMD=:
7640 fi
7641 fi
7642
7643 fi
7644 ;;
7645 esac
7646
7647 # Use C for the default configuration in the libtool script
7648
7649 lt_save_CC="$CC"
7650 ac_ext=c
7651 ac_cpp='$CPP $CPPFLAGS'
7652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7655
7656
7657 # Source file extension for C test sources.
7658 ac_ext=c
7659
7660 # Object file extension for compiled C test sources.
7661 objext=o
7662 objext=$objext
7663
7664 # Code to be used in simple compile tests
7665 lt_simple_compile_test_code="int some_variable = 0;"
7666
7667 # Code to be used in simple link tests
7668 lt_simple_link_test_code='int main(){return(0);}'
7669
7670
7671
7672
7673
7674
7675
7676 # If no C compiler was specified, use CC.
7677 LTCC=${LTCC-"$CC"}
7678
7679 # If no C compiler flags were specified, use CFLAGS.
7680 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7681
7682 # Allow CC to be a program name with arguments.
7683 compiler=$CC
7684
7685 # Save the default compiler, since it gets overwritten when the other
7686 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7687 compiler_DEFAULT=$CC
7688
7689 # save warnings/boilerplate of simple test code
7690 ac_outfile=conftest.$ac_objext
7691 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7692 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7693 _lt_compiler_boilerplate=`cat conftest.err`
7694 $RM conftest*
7695
7696 ac_outfile=conftest.$ac_objext
7697 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7698 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7699 _lt_linker_boilerplate=`cat conftest.err`
7700 $RM -r conftest*
7701
7702
7703 ## CAVEAT EMPTOR:
7704 ## There is no encapsulation within the following macros, do not change
7705 ## the running order or otherwise move them around unless you know exactly
7706 ## what you are doing...
7707 if test -n "$compiler"; then
7708
7709 lt_prog_compiler_no_builtin_flag=
7710
7711 if test "$GCC" = yes; then
7712 case $cc_basename in
7713 nvcc*)
7714 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7715 *)
7716 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7717 esac
7718
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7720 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7721 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 lt_cv_prog_compiler_rtti_exceptions=no
7725 ac_outfile=conftest.$ac_objext
7726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7727 lt_compiler_flag="-fno-rtti -fno-exceptions"
7728 # Insert the option either (1) after the last *FLAGS variable, or
7729 # (2) before a word containing "conftest.", or (3) at the end.
7730 # Note that $ac_compile itself does not contain backslashes and begins
7731 # with a dollar sign (not a hyphen), so the echo should work correctly.
7732 # The option is referenced via a variable to avoid confusing sed.
7733 lt_compile=`echo "$ac_compile" | $SED \
7734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7736 -e 's:$: $lt_compiler_flag:'`
7737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7738 (eval "$lt_compile" 2>conftest.err)
7739 ac_status=$?
7740 cat conftest.err >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 if (exit $ac_status) && test -s "$ac_outfile"; then
7743 # The compiler can only warn and ignore the option if not recognized
7744 # So say no if there are warnings other than the usual output.
7745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7748 lt_cv_prog_compiler_rtti_exceptions=yes
7749 fi
7750 fi
7751 $RM conftest*
7752
7753 fi
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7755 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7756
7757 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7758 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7759 else
7760 :
7761 fi
7762
7763 fi
7764
7765
7766
7767
7768
7769
7770 lt_prog_compiler_wl=
7771 lt_prog_compiler_pic=
7772 lt_prog_compiler_static=
7773
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7775 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7776
7777 if test "$GCC" = yes; then
7778 lt_prog_compiler_wl='-Wl,'
7779 lt_prog_compiler_static='-static'
7780
7781 case $host_os in
7782 aix*)
7783 # All AIX code is PIC.
7784 if test "$host_cpu" = ia64; then
7785 # AIX 5 now supports IA64 processor
7786 lt_prog_compiler_static='-Bstatic'
7787 fi
7788 lt_prog_compiler_pic='-fPIC'
7789 ;;
7790
7791 amigaos*)
7792 case $host_cpu in
7793 powerpc)
7794 # see comment about AmigaOS4 .so support
7795 lt_prog_compiler_pic='-fPIC'
7796 ;;
7797 m68k)
7798 # FIXME: we need at least 68020 code to build shared libraries, but
7799 # adding the `-m68020' flag to GCC prevents building anything better,
7800 # like `-m68040'.
7801 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7802 ;;
7803 esac
7804 ;;
7805
7806 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7807 # PIC is the default for these OSes.
7808 ;;
7809
7810 mingw* | cygwin* | pw32* | os2* | cegcc*)
7811 # This hack is so that the source file can tell whether it is being
7812 # built for inclusion in a dll (and should export symbols for example).
7813 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7814 # (--disable-auto-import) libraries
7815 lt_prog_compiler_pic='-DDLL_EXPORT'
7816 ;;
7817
7818 darwin* | rhapsody*)
7819 # PIC is the default on this platform
7820 # Common symbols not allowed in MH_DYLIB files
7821 lt_prog_compiler_pic='-fno-common'
7822 ;;
7823
7824 haiku*)
7825 # PIC is the default for Haiku.
7826 # The "-static" flag exists, but is broken.
7827 lt_prog_compiler_static=
7828 ;;
7829
7830 hpux*)
7831 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7832 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7833 # sets the default TLS model and affects inlining.
7834 case $host_cpu in
7835 hppa*64*)
7836 # +Z the default
7837 ;;
7838 *)
7839 lt_prog_compiler_pic='-fPIC'
7840 ;;
7841 esac
7842 ;;
7843
7844 interix[3-9]*)
7845 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7846 # Instead, we relocate shared libraries at runtime.
7847 ;;
7848
7849 msdosdjgpp*)
7850 # Just because we use GCC doesn't mean we suddenly get shared libraries
7851 # on systems that don't support them.
7852 lt_prog_compiler_can_build_shared=no
7853 enable_shared=no
7854 ;;
7855
7856 *nto* | *qnx*)
7857 # QNX uses GNU C++, but need to define -shared option too, otherwise
7858 # it will coredump.
7859 lt_prog_compiler_pic='-fPIC -shared'
7860 ;;
7861
7862 sysv4*MP*)
7863 if test -d /usr/nec; then
7864 lt_prog_compiler_pic=-Kconform_pic
7865 fi
7866 ;;
7867
7868 *)
7869 lt_prog_compiler_pic='-fPIC'
7870 ;;
7871 esac
7872
7873 case $cc_basename in
7874 nvcc*) # Cuda Compiler Driver 2.2
7875 lt_prog_compiler_wl='-Xlinker '
7876 lt_prog_compiler_pic='-Xcompiler -fPIC'
7877 ;;
7878 esac
7879 else
7880 # PORTME Check for flag to pass linker flags through the system compiler.
7881 case $host_os in
7882 aix*)
7883 lt_prog_compiler_wl='-Wl,'
7884 if test "$host_cpu" = ia64; then
7885 # AIX 5 now supports IA64 processor
7886 lt_prog_compiler_static='-Bstatic'
7887 else
7888 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7889 fi
7890 ;;
7891
7892 mingw* | cygwin* | pw32* | os2* | cegcc*)
7893 # This hack is so that the source file can tell whether it is being
7894 # built for inclusion in a dll (and should export symbols for example).
7895 lt_prog_compiler_pic='-DDLL_EXPORT'
7896 ;;
7897
7898 hpux9* | hpux10* | hpux11*)
7899 lt_prog_compiler_wl='-Wl,'
7900 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7901 # not for PA HP-UX.
7902 case $host_cpu in
7903 hppa*64*|ia64*)
7904 # +Z the default
7905 ;;
7906 *)
7907 lt_prog_compiler_pic='+Z'
7908 ;;
7909 esac
7910 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7911 lt_prog_compiler_static='${wl}-a ${wl}archive'
7912 ;;
7913
7914 irix5* | irix6* | nonstopux*)
7915 lt_prog_compiler_wl='-Wl,'
7916 # PIC (with -KPIC) is the default.
7917 lt_prog_compiler_static='-non_shared'
7918 ;;
7919
7920 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7921 case $cc_basename in
7922 # old Intel for x86_64 which still supported -KPIC.
7923 ecc*)
7924 lt_prog_compiler_wl='-Wl,'
7925 lt_prog_compiler_pic='-KPIC'
7926 lt_prog_compiler_static='-static'
7927 ;;
7928 # icc used to be incompatible with GCC.
7929 # ICC 10 doesn't accept -KPIC any more.
7930 icc* | ifort*)
7931 lt_prog_compiler_wl='-Wl,'
7932 lt_prog_compiler_pic='-fPIC'
7933 lt_prog_compiler_static='-static'
7934 ;;
7935 # Lahey Fortran 8.1.
7936 lf95*)
7937 lt_prog_compiler_wl='-Wl,'
7938 lt_prog_compiler_pic='--shared'
7939 lt_prog_compiler_static='--static'
7940 ;;
7941 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7942 # Portland Group compilers (*not* the Pentium gcc compiler,
7943 # which looks to be a dead project)
7944 lt_prog_compiler_wl='-Wl,'
7945 lt_prog_compiler_pic='-fpic'
7946 lt_prog_compiler_static='-Bstatic'
7947 ;;
7948 ccc*)
7949 lt_prog_compiler_wl='-Wl,'
7950 # All Alpha code is PIC.
7951 lt_prog_compiler_static='-non_shared'
7952 ;;
7953 xl* | bgxl* | bgf* | mpixl*)
7954 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7955 lt_prog_compiler_wl='-Wl,'
7956 lt_prog_compiler_pic='-qpic'
7957 lt_prog_compiler_static='-qstaticlink'
7958 ;;
7959 *)
7960 case `$CC -V 2>&1 | sed 5q` in
7961 *Sun\ F* | *Sun*Fortran*)
7962 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7963 lt_prog_compiler_pic='-KPIC'
7964 lt_prog_compiler_static='-Bstatic'
7965 lt_prog_compiler_wl=''
7966 ;;
7967 *Sun\ C*)
7968 # Sun C 5.9
7969 lt_prog_compiler_pic='-KPIC'
7970 lt_prog_compiler_static='-Bstatic'
7971 lt_prog_compiler_wl='-Wl,'
7972 ;;
7973 esac
7974 ;;
7975 esac
7976 ;;
7977
7978 newsos6)
7979 lt_prog_compiler_pic='-KPIC'
7980 lt_prog_compiler_static='-Bstatic'
7981 ;;
7982
7983 *nto* | *qnx*)
7984 # QNX uses GNU C++, but need to define -shared option too, otherwise
7985 # it will coredump.
7986 lt_prog_compiler_pic='-fPIC -shared'
7987 ;;
7988
7989 osf3* | osf4* | osf5*)
7990 lt_prog_compiler_wl='-Wl,'
7991 # All OSF/1 code is PIC.
7992 lt_prog_compiler_static='-non_shared'
7993 ;;
7994
7995 rdos*)
7996 lt_prog_compiler_static='-non_shared'
7997 ;;
7998
7999 solaris*)
8000 lt_prog_compiler_pic='-KPIC'
8001 lt_prog_compiler_static='-Bstatic'
8002 case $cc_basename in
8003 f77* | f90* | f95*)
8004 lt_prog_compiler_wl='-Qoption ld ';;
8005 *)
8006 lt_prog_compiler_wl='-Wl,';;
8007 esac
8008 ;;
8009
8010 sunos4*)
8011 lt_prog_compiler_wl='-Qoption ld '
8012 lt_prog_compiler_pic='-PIC'
8013 lt_prog_compiler_static='-Bstatic'
8014 ;;
8015
8016 sysv4 | sysv4.2uw2* | sysv4.3*)
8017 lt_prog_compiler_wl='-Wl,'
8018 lt_prog_compiler_pic='-KPIC'
8019 lt_prog_compiler_static='-Bstatic'
8020 ;;
8021
8022 sysv4*MP*)
8023 if test -d /usr/nec ;then
8024 lt_prog_compiler_pic='-Kconform_pic'
8025 lt_prog_compiler_static='-Bstatic'
8026 fi
8027 ;;
8028
8029 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8030 lt_prog_compiler_wl='-Wl,'
8031 lt_prog_compiler_pic='-KPIC'
8032 lt_prog_compiler_static='-Bstatic'
8033 ;;
8034
8035 unicos*)
8036 lt_prog_compiler_wl='-Wl,'
8037 lt_prog_compiler_can_build_shared=no
8038 ;;
8039
8040 uts4*)
8041 lt_prog_compiler_pic='-pic'
8042 lt_prog_compiler_static='-Bstatic'
8043 ;;
8044
8045 *)
8046 lt_prog_compiler_can_build_shared=no
8047 ;;
8048 esac
8049 fi
8050
8051 case $host_os in
8052 # For platforms which do not support PIC, -DPIC is meaningless:
8053 *djgpp*)
8054 lt_prog_compiler_pic=
8055 ;;
8056 *)
8057 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8058 ;;
8059 esac
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8061 $as_echo "$lt_prog_compiler_pic" >&6; }
8062
8063
8064
8065
8066
8067
8068 #
8069 # Check to make sure the PIC flag actually works.
8070 #
8071 if test -n "$lt_prog_compiler_pic"; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8073 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8074 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 lt_cv_prog_compiler_pic_works=no
8078 ac_outfile=conftest.$ac_objext
8079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8080 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8081 # Insert the option either (1) after the last *FLAGS variable, or
8082 # (2) before a word containing "conftest.", or (3) at the end.
8083 # Note that $ac_compile itself does not contain backslashes and begins
8084 # with a dollar sign (not a hyphen), so the echo should work correctly.
8085 # The option is referenced via a variable to avoid confusing sed.
8086 lt_compile=`echo "$ac_compile" | $SED \
8087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8089 -e 's:$: $lt_compiler_flag:'`
8090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8091 (eval "$lt_compile" 2>conftest.err)
8092 ac_status=$?
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 if (exit $ac_status) && test -s "$ac_outfile"; then
8096 # The compiler can only warn and ignore the option if not recognized
8097 # So say no if there are warnings other than the usual output.
8098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8101 lt_cv_prog_compiler_pic_works=yes
8102 fi
8103 fi
8104 $RM conftest*
8105
8106 fi
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8108 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8109
8110 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8111 case $lt_prog_compiler_pic in
8112 "" | " "*) ;;
8113 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8114 esac
8115 else
8116 lt_prog_compiler_pic=
8117 lt_prog_compiler_can_build_shared=no
8118 fi
8119
8120 fi
8121
8122
8123
8124
8125
8126
8127 #
8128 # Check to make sure the static flag actually works.
8129 #
8130 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8132 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8133 if ${lt_cv_prog_compiler_static_works+:} false; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 lt_cv_prog_compiler_static_works=no
8137 save_LDFLAGS="$LDFLAGS"
8138 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8139 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8140 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8141 # The linker can only warn and ignore the option if not recognized
8142 # So say no if there are warnings
8143 if test -s conftest.err; then
8144 # Append any errors to the config.log.
8145 cat conftest.err 1>&5
8146 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8148 if diff conftest.exp conftest.er2 >/dev/null; then
8149 lt_cv_prog_compiler_static_works=yes
8150 fi
8151 else
8152 lt_cv_prog_compiler_static_works=yes
8153 fi
8154 fi
8155 $RM -r conftest*
8156 LDFLAGS="$save_LDFLAGS"
8157
8158 fi
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8160 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8161
8162 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8163 :
8164 else
8165 lt_prog_compiler_static=
8166 fi
8167
8168
8169
8170
8171
8172
8173
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8175 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8176 if ${lt_cv_prog_compiler_c_o+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 lt_cv_prog_compiler_c_o=no
8180 $RM -r conftest 2>/dev/null
8181 mkdir conftest
8182 cd conftest
8183 mkdir out
8184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8185
8186 lt_compiler_flag="-o out/conftest2.$ac_objext"
8187 # Insert the option either (1) after the last *FLAGS variable, or
8188 # (2) before a word containing "conftest.", or (3) at the end.
8189 # Note that $ac_compile itself does not contain backslashes and begins
8190 # with a dollar sign (not a hyphen), so the echo should work correctly.
8191 lt_compile=`echo "$ac_compile" | $SED \
8192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8194 -e 's:$: $lt_compiler_flag:'`
8195 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8196 (eval "$lt_compile" 2>out/conftest.err)
8197 ac_status=$?
8198 cat out/conftest.err >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8201 then
8202 # The compiler can only warn and ignore the option if not recognized
8203 # So say no if there are warnings
8204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8205 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8206 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8207 lt_cv_prog_compiler_c_o=yes
8208 fi
8209 fi
8210 chmod u+w . 2>&5
8211 $RM conftest*
8212 # SGI C++ compiler will create directory out/ii_files/ for
8213 # template instantiation
8214 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8215 $RM out/* && rmdir out
8216 cd ..
8217 $RM -r conftest
8218 $RM conftest*
8219
8220 fi
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8222 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8223
8224
8225
8226
8227
8228
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8230 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8231 if ${lt_cv_prog_compiler_c_o+:} false; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 lt_cv_prog_compiler_c_o=no
8235 $RM -r conftest 2>/dev/null
8236 mkdir conftest
8237 cd conftest
8238 mkdir out
8239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8240
8241 lt_compiler_flag="-o out/conftest2.$ac_objext"
8242 # Insert the option either (1) after the last *FLAGS variable, or
8243 # (2) before a word containing "conftest.", or (3) at the end.
8244 # Note that $ac_compile itself does not contain backslashes and begins
8245 # with a dollar sign (not a hyphen), so the echo should work correctly.
8246 lt_compile=`echo "$ac_compile" | $SED \
8247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8249 -e 's:$: $lt_compiler_flag:'`
8250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8251 (eval "$lt_compile" 2>out/conftest.err)
8252 ac_status=$?
8253 cat out/conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8256 then
8257 # The compiler can only warn and ignore the option if not recognized
8258 # So say no if there are warnings
8259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8260 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8261 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8262 lt_cv_prog_compiler_c_o=yes
8263 fi
8264 fi
8265 chmod u+w . 2>&5
8266 $RM conftest*
8267 # SGI C++ compiler will create directory out/ii_files/ for
8268 # template instantiation
8269 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8270 $RM out/* && rmdir out
8271 cd ..
8272 $RM -r conftest
8273 $RM conftest*
8274
8275 fi
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8277 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8278
8279
8280
8281
8282 hard_links="nottested"
8283 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8284 # do not overwrite the value of need_locks provided by the user
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8286 $as_echo_n "checking if we can lock with hard links... " >&6; }
8287 hard_links=yes
8288 $RM conftest*
8289 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8290 touch conftest.a
8291 ln conftest.a conftest.b 2>&5 || hard_links=no
8292 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8294 $as_echo "$hard_links" >&6; }
8295 if test "$hard_links" = no; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8297 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8298 need_locks=warn
8299 fi
8300 else
8301 need_locks=no
8302 fi
8303
8304
8305
8306
8307
8308
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8310 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8311
8312 runpath_var=
8313 allow_undefined_flag=
8314 always_export_symbols=no
8315 archive_cmds=
8316 archive_expsym_cmds=
8317 compiler_needs_object=no
8318 enable_shared_with_static_runtimes=no
8319 export_dynamic_flag_spec=
8320 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8321 hardcode_automatic=no
8322 hardcode_direct=no
8323 hardcode_direct_absolute=no
8324 hardcode_libdir_flag_spec=
8325 hardcode_libdir_flag_spec_ld=
8326 hardcode_libdir_separator=
8327 hardcode_minus_L=no
8328 hardcode_shlibpath_var=unsupported
8329 inherit_rpath=no
8330 link_all_deplibs=unknown
8331 module_cmds=
8332 module_expsym_cmds=
8333 old_archive_from_new_cmds=
8334 old_archive_from_expsyms_cmds=
8335 thread_safe_flag_spec=
8336 whole_archive_flag_spec=
8337 # include_expsyms should be a list of space-separated symbols to be *always*
8338 # included in the symbol list
8339 include_expsyms=
8340 # exclude_expsyms can be an extended regexp of symbols to exclude
8341 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8342 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8343 # as well as any symbol that contains `d'.
8344 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8345 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8346 # platforms (ab)use it in PIC code, but their linkers get confused if
8347 # the symbol is explicitly referenced. Since portable code cannot
8348 # rely on this symbol name, it's probably fine to never include it in
8349 # preloaded symbol tables.
8350 # Exclude shared library initialization/finalization symbols.
8351 extract_expsyms_cmds=
8352
8353 case $host_os in
8354 cygwin* | mingw* | pw32* | cegcc*)
8355 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8356 # When not using gcc, we currently assume that we are using
8357 # Microsoft Visual C++.
8358 if test "$GCC" != yes; then
8359 with_gnu_ld=no
8360 fi
8361 ;;
8362 interix*)
8363 # we just hope/assume this is gcc and not c89 (= MSVC++)
8364 with_gnu_ld=yes
8365 ;;
8366 openbsd*)
8367 with_gnu_ld=no
8368 ;;
8369 esac
8370
8371 ld_shlibs=yes
8372
8373 # On some targets, GNU ld is compatible enough with the native linker
8374 # that we're better off using the native interface for both.
8375 lt_use_gnu_ld_interface=no
8376 if test "$with_gnu_ld" = yes; then
8377 case $host_os in
8378 aix*)
8379 # The AIX port of GNU ld has always aspired to compatibility
8380 # with the native linker. However, as the warning in the GNU ld
8381 # block says, versions before 2.19.5* couldn't really create working
8382 # shared libraries, regardless of the interface used.
8383 case `$LD -v 2>&1` in
8384 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8385 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8386 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8387 *)
8388 lt_use_gnu_ld_interface=yes
8389 ;;
8390 esac
8391 ;;
8392 *)
8393 lt_use_gnu_ld_interface=yes
8394 ;;
8395 esac
8396 fi
8397
8398 if test "$lt_use_gnu_ld_interface" = yes; then
8399 # If archive_cmds runs LD, not CC, wlarc should be empty
8400 wlarc='${wl}'
8401
8402 # Set some defaults for GNU ld with shared library support. These
8403 # are reset later if shared libraries are not supported. Putting them
8404 # here allows them to be overridden if necessary.
8405 runpath_var=LD_RUN_PATH
8406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8407 export_dynamic_flag_spec='${wl}--export-dynamic'
8408 # ancient GNU ld didn't support --whole-archive et. al.
8409 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8410 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8411 else
8412 whole_archive_flag_spec=
8413 fi
8414 supports_anon_versioning=no
8415 case `$LD -v 2>&1` in
8416 *GNU\ gold*) supports_anon_versioning=yes ;;
8417 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8418 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8419 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8420 *\ 2.11.*) ;; # other 2.11 versions
8421 *) supports_anon_versioning=yes ;;
8422 esac
8423
8424 # See if GNU ld supports shared libraries.
8425 case $host_os in
8426 aix[3-9]*)
8427 # On AIX/PPC, the GNU linker is very broken
8428 if test "$host_cpu" != ia64; then
8429 ld_shlibs=no
8430 cat <<_LT_EOF 1>&2
8431
8432 *** Warning: the GNU linker, at least up to release 2.19, is reported
8433 *** to be unable to reliably create shared libraries on AIX.
8434 *** Therefore, libtool is disabling shared libraries support. If you
8435 *** really care for shared libraries, you may want to install binutils
8436 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8437 *** You will then need to restart the configuration process.
8438
8439 _LT_EOF
8440 fi
8441 ;;
8442
8443 amigaos*)
8444 case $host_cpu in
8445 powerpc)
8446 # see comment about AmigaOS4 .so support
8447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8448 archive_expsym_cmds=''
8449 ;;
8450 m68k)
8451 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)'
8452 hardcode_libdir_flag_spec='-L$libdir'
8453 hardcode_minus_L=yes
8454 ;;
8455 esac
8456 ;;
8457
8458 beos*)
8459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8460 allow_undefined_flag=unsupported
8461 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8462 # support --undefined. This deserves some investigation. FIXME
8463 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8464 else
8465 ld_shlibs=no
8466 fi
8467 ;;
8468
8469 cygwin* | mingw* | pw32* | cegcc*)
8470 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8471 # as there is no search path for DLLs.
8472 hardcode_libdir_flag_spec='-L$libdir'
8473 export_dynamic_flag_spec='${wl}--export-all-symbols'
8474 allow_undefined_flag=unsupported
8475 always_export_symbols=no
8476 enable_shared_with_static_runtimes=yes
8477 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8478
8479 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8481 # If the export-symbols file already is a .def file (1st line
8482 # is EXPORTS), use it as is; otherwise, prepend...
8483 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8484 cp $export_symbols $output_objdir/$soname.def;
8485 else
8486 echo EXPORTS > $output_objdir/$soname.def;
8487 cat $export_symbols >> $output_objdir/$soname.def;
8488 fi~
8489 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8490 else
8491 ld_shlibs=no
8492 fi
8493 ;;
8494
8495 haiku*)
8496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8497 link_all_deplibs=yes
8498 ;;
8499
8500 interix[3-9]*)
8501 hardcode_direct=no
8502 hardcode_shlibpath_var=no
8503 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8504 export_dynamic_flag_spec='${wl}-E'
8505 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8506 # Instead, shared libraries are loaded at an image base (0x10000000 by
8507 # default) and relocated if they conflict, which is a slow very memory
8508 # consuming and fragmenting process. To avoid this, we pick a random,
8509 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8510 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8511 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8512 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'
8513 ;;
8514
8515 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8516 tmp_diet=no
8517 if test "$host_os" = linux-dietlibc; then
8518 case $cc_basename in
8519 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8520 esac
8521 fi
8522 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8523 && test "$tmp_diet" = no
8524 then
8525 tmp_addflag=' $pic_flag'
8526 tmp_sharedflag='-shared'
8527 case $cc_basename,$host_cpu in
8528 pgcc*) # Portland Group C compiler
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 tmp_addflag=' $pic_flag'
8531 ;;
8532 pgf77* | pgf90* | pgf95* | pgfortran*)
8533 # Portland Group f77 and f90 compilers
8534 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'
8535 tmp_addflag=' $pic_flag -Mnomain' ;;
8536 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8537 tmp_addflag=' -i_dynamic' ;;
8538 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8539 tmp_addflag=' -i_dynamic -nofor_main' ;;
8540 ifc* | ifort*) # Intel Fortran compiler
8541 tmp_addflag=' -nofor_main' ;;
8542 lf95*) # Lahey Fortran 8.1
8543 whole_archive_flag_spec=
8544 tmp_sharedflag='--shared' ;;
8545 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8546 tmp_sharedflag='-qmkshrobj'
8547 tmp_addflag= ;;
8548 nvcc*) # Cuda Compiler Driver 2.2
8549 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'
8550 compiler_needs_object=yes
8551 ;;
8552 esac
8553 case `$CC -V 2>&1 | sed 5q` in
8554 *Sun\ C*) # Sun C 5.9
8555 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'
8556 compiler_needs_object=yes
8557 tmp_sharedflag='-G' ;;
8558 *Sun\ F*) # Sun Fortran 8.3
8559 tmp_sharedflag='-G' ;;
8560 esac
8561 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8562
8563 if test "x$supports_anon_versioning" = xyes; then
8564 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8565 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8566 echo "local: *; };" >> $output_objdir/$libname.ver~
8567 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8568 fi
8569
8570 case $cc_basename in
8571 xlf* | bgf* | bgxlf* | mpixlf*)
8572 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8573 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8574 hardcode_libdir_flag_spec=
8575 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8576 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8577 if test "x$supports_anon_versioning" = xyes; then
8578 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8579 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8580 echo "local: *; };" >> $output_objdir/$libname.ver~
8581 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8582 fi
8583 ;;
8584 esac
8585 else
8586 ld_shlibs=no
8587 fi
8588 ;;
8589
8590 netbsd*)
8591 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8592 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8593 wlarc=
8594 else
8595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8597 fi
8598 ;;
8599
8600 solaris*)
8601 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8602 ld_shlibs=no
8603 cat <<_LT_EOF 1>&2
8604
8605 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8606 *** create shared libraries on Solaris systems. Therefore, libtool
8607 *** is disabling shared libraries support. We urge you to upgrade GNU
8608 *** binutils to release 2.9.1 or newer. Another option is to modify
8609 *** your PATH or compiler configuration so that the native linker is
8610 *** used, and then restart.
8611
8612 _LT_EOF
8613 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8615 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8616 else
8617 ld_shlibs=no
8618 fi
8619 ;;
8620
8621 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8622 case `$LD -v 2>&1` in
8623 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8624 ld_shlibs=no
8625 cat <<_LT_EOF 1>&2
8626
8627 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8628 *** reliably create shared libraries on SCO systems. Therefore, libtool
8629 *** is disabling shared libraries support. We urge you to upgrade GNU
8630 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8631 *** your PATH or compiler configuration so that the native linker is
8632 *** used, and then restart.
8633
8634 _LT_EOF
8635 ;;
8636 *)
8637 # For security reasons, it is highly recommended that you always
8638 # use absolute paths for naming shared libraries, and exclude the
8639 # DT_RUNPATH tag from executables and libraries. But doing so
8640 # requires that you compile everything twice, which is a pain.
8641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8645 else
8646 ld_shlibs=no
8647 fi
8648 ;;
8649 esac
8650 ;;
8651
8652 sunos4*)
8653 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8654 wlarc=
8655 hardcode_direct=yes
8656 hardcode_shlibpath_var=no
8657 ;;
8658
8659 *)
8660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8663 else
8664 ld_shlibs=no
8665 fi
8666 ;;
8667 esac
8668
8669 if test "$ld_shlibs" = no; then
8670 runpath_var=
8671 hardcode_libdir_flag_spec=
8672 export_dynamic_flag_spec=
8673 whole_archive_flag_spec=
8674 fi
8675 else
8676 # PORTME fill in a description of your system's linker (not GNU ld)
8677 case $host_os in
8678 aix3*)
8679 allow_undefined_flag=unsupported
8680 always_export_symbols=yes
8681 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'
8682 # Note: this linker hardcodes the directories in LIBPATH if there
8683 # are no directories specified by -L.
8684 hardcode_minus_L=yes
8685 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8686 # Neither direct hardcoding nor static linking is supported with a
8687 # broken collect2.
8688 hardcode_direct=unsupported
8689 fi
8690 ;;
8691
8692 aix[4-9]*)
8693 if test "$host_cpu" = ia64; then
8694 # On IA64, the linker does run time linking by default, so we don't
8695 # have to do anything special.
8696 aix_use_runtimelinking=no
8697 exp_sym_flag='-Bexport'
8698 no_entry_flag=""
8699 else
8700 # If we're using GNU nm, then we don't want the "-C" option.
8701 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8702 # Also, AIX nm treats weak defined symbols like other global
8703 # defined symbols, whereas GNU nm marks them as "W".
8704 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8705 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'
8706 else
8707 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'
8708 fi
8709 aix_use_runtimelinking=no
8710
8711 # Test if we are trying to use run time linking or normal
8712 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8713 # need to do runtime linking.
8714 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8715 for ld_flag in $LDFLAGS; do
8716 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8717 aix_use_runtimelinking=yes
8718 break
8719 fi
8720 done
8721 ;;
8722 esac
8723
8724 exp_sym_flag='-bexport'
8725 no_entry_flag='-bnoentry'
8726 fi
8727
8728 # When large executables or shared objects are built, AIX ld can
8729 # have problems creating the table of contents. If linking a library
8730 # or program results in "error TOC overflow" add -mminimal-toc to
8731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8733
8734 archive_cmds=''
8735 hardcode_direct=yes
8736 hardcode_direct_absolute=yes
8737 hardcode_libdir_separator=':'
8738 link_all_deplibs=yes
8739 file_list_spec='${wl}-f,'
8740
8741 if test "$GCC" = yes; then
8742 case $host_os in aix4.[012]|aix4.[012].*)
8743 # We only want to do this on AIX 4.2 and lower, the check
8744 # below for broken collect2 doesn't work under 4.3+
8745 collect2name=`${CC} -print-prog-name=collect2`
8746 if test -f "$collect2name" &&
8747 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8748 then
8749 # We have reworked collect2
8750 :
8751 else
8752 # We have old collect2
8753 hardcode_direct=unsupported
8754 # It fails to find uninstalled libraries when the uninstalled
8755 # path is not listed in the libpath. Setting hardcode_minus_L
8756 # to unsupported forces relinking
8757 hardcode_minus_L=yes
8758 hardcode_libdir_flag_spec='-L$libdir'
8759 hardcode_libdir_separator=
8760 fi
8761 ;;
8762 esac
8763 shared_flag='-shared'
8764 if test "$aix_use_runtimelinking" = yes; then
8765 shared_flag="$shared_flag "'${wl}-G'
8766 fi
8767 else
8768 # not using gcc
8769 if test "$host_cpu" = ia64; then
8770 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8771 # chokes on -Wl,-G. The following line is correct:
8772 shared_flag='-G'
8773 else
8774 if test "$aix_use_runtimelinking" = yes; then
8775 shared_flag='${wl}-G'
8776 else
8777 shared_flag='${wl}-bM:SRE'
8778 fi
8779 fi
8780 fi
8781
8782 export_dynamic_flag_spec='${wl}-bexpall'
8783 # It seems that -bexpall does not export symbols beginning with
8784 # underscore (_), so it is better to generate a list of symbols to export.
8785 always_export_symbols=yes
8786 if test "$aix_use_runtimelinking" = yes; then
8787 # Warning - without using the other runtime loading flags (-brtl),
8788 # -berok will link without error, but may produce a broken library.
8789 allow_undefined_flag='-berok'
8790 # Determine the default libpath from the value encoded in an
8791 # empty executable.
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794
8795 int
8796 main ()
8797 {
8798
8799 ;
8800 return 0;
8801 }
8802 _ACEOF
8803 if ac_fn_c_try_link "$LINENO"; then :
8804
8805 lt_aix_libpath_sed='
8806 /Import File Strings/,/^$/ {
8807 /^0/ {
8808 s/^0 *\(.*\)$/\1/
8809 p
8810 }
8811 }'
8812 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8813 # Check for a 64-bit object if we didn't find anything.
8814 if test -z "$aix_libpath"; then
8815 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8816 fi
8817 fi
8818 rm -f core conftest.err conftest.$ac_objext \
8819 conftest$ac_exeext conftest.$ac_ext
8820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8821
8822 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8823 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"
8824 else
8825 if test "$host_cpu" = ia64; then
8826 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8827 allow_undefined_flag="-z nodefs"
8828 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"
8829 else
8830 # Determine the default libpath from the value encoded in an
8831 # empty executable.
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834
8835 int
8836 main ()
8837 {
8838
8839 ;
8840 return 0;
8841 }
8842 _ACEOF
8843 if ac_fn_c_try_link "$LINENO"; then :
8844
8845 lt_aix_libpath_sed='
8846 /Import File Strings/,/^$/ {
8847 /^0/ {
8848 s/^0 *\(.*\)$/\1/
8849 p
8850 }
8851 }'
8852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8853 # Check for a 64-bit object if we didn't find anything.
8854 if test -z "$aix_libpath"; then
8855 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8856 fi
8857 fi
8858 rm -f core conftest.err conftest.$ac_objext \
8859 conftest$ac_exeext conftest.$ac_ext
8860 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8861
8862 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8863 # Warning - without using the other run time loading flags,
8864 # -berok will link without error, but may produce a broken library.
8865 no_undefined_flag=' ${wl}-bernotok'
8866 allow_undefined_flag=' ${wl}-berok'
8867 if test "$with_gnu_ld" = yes; then
8868 # We only use this code for GNU lds that support --whole-archive.
8869 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8870 else
8871 # Exported symbols can be pulled into shared objects from archives
8872 whole_archive_flag_spec='$convenience'
8873 fi
8874 archive_cmds_need_lc=yes
8875 # This is similar to how AIX traditionally builds its shared libraries.
8876 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'
8877 fi
8878 fi
8879 ;;
8880
8881 amigaos*)
8882 case $host_cpu in
8883 powerpc)
8884 # see comment about AmigaOS4 .so support
8885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8886 archive_expsym_cmds=''
8887 ;;
8888 m68k)
8889 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)'
8890 hardcode_libdir_flag_spec='-L$libdir'
8891 hardcode_minus_L=yes
8892 ;;
8893 esac
8894 ;;
8895
8896 bsdi[45]*)
8897 export_dynamic_flag_spec=-rdynamic
8898 ;;
8899
8900 cygwin* | mingw* | pw32* | cegcc*)
8901 # When not using gcc, we currently assume that we are using
8902 # Microsoft Visual C++.
8903 # hardcode_libdir_flag_spec is actually meaningless, as there is
8904 # no search path for DLLs.
8905 hardcode_libdir_flag_spec=' '
8906 allow_undefined_flag=unsupported
8907 # Tell ltmain to make .lib files, not .a files.
8908 libext=lib
8909 # Tell ltmain to make .dll files, not .so files.
8910 shrext_cmds=".dll"
8911 # FIXME: Setting linknames here is a bad hack.
8912 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8913 # The linker will automatically build a .lib file if we build a DLL.
8914 old_archive_from_new_cmds='true'
8915 # FIXME: Should let the user specify the lib program.
8916 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8917 fix_srcfile_path='`cygpath -w "$srcfile"`'
8918 enable_shared_with_static_runtimes=yes
8919 ;;
8920
8921 darwin* | rhapsody*)
8922
8923
8924 archive_cmds_need_lc=no
8925 hardcode_direct=no
8926 hardcode_automatic=yes
8927 hardcode_shlibpath_var=unsupported
8928 if test "$lt_cv_ld_force_load" = "yes"; then
8929 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\"`'
8930 else
8931 whole_archive_flag_spec=''
8932 fi
8933 link_all_deplibs=yes
8934 allow_undefined_flag="$_lt_dar_allow_undefined"
8935 case $cc_basename in
8936 ifort*) _lt_dar_can_shared=yes ;;
8937 *) _lt_dar_can_shared=$GCC ;;
8938 esac
8939 if test "$_lt_dar_can_shared" = "yes"; then
8940 output_verbose_link_cmd=func_echo_all
8941 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8942 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8943 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}"
8944 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}"
8945
8946 else
8947 ld_shlibs=no
8948 fi
8949
8950 ;;
8951
8952 dgux*)
8953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8954 hardcode_libdir_flag_spec='-L$libdir'
8955 hardcode_shlibpath_var=no
8956 ;;
8957
8958 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8959 # support. Future versions do this automatically, but an explicit c++rt0.o
8960 # does not break anything, and helps significantly (at the cost of a little
8961 # extra space).
8962 freebsd2.2*)
8963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8964 hardcode_libdir_flag_spec='-R$libdir'
8965 hardcode_direct=yes
8966 hardcode_shlibpath_var=no
8967 ;;
8968
8969 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8970 freebsd2.*)
8971 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8972 hardcode_direct=yes
8973 hardcode_minus_L=yes
8974 hardcode_shlibpath_var=no
8975 ;;
8976
8977 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8978 freebsd* | dragonfly*)
8979 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8980 hardcode_libdir_flag_spec='-R$libdir'
8981 hardcode_direct=yes
8982 hardcode_shlibpath_var=no
8983 ;;
8984
8985 hpux9*)
8986 if test "$GCC" = yes; then
8987 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'
8988 else
8989 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'
8990 fi
8991 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8992 hardcode_libdir_separator=:
8993 hardcode_direct=yes
8994
8995 # hardcode_minus_L: Not really in the search PATH,
8996 # but as the default location of the library.
8997 hardcode_minus_L=yes
8998 export_dynamic_flag_spec='${wl}-E'
8999 ;;
9000
9001 hpux10*)
9002 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9003 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9004 else
9005 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9006 fi
9007 if test "$with_gnu_ld" = no; then
9008 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9009 hardcode_libdir_flag_spec_ld='+b $libdir'
9010 hardcode_libdir_separator=:
9011 hardcode_direct=yes
9012 hardcode_direct_absolute=yes
9013 export_dynamic_flag_spec='${wl}-E'
9014 # hardcode_minus_L: Not really in the search PATH,
9015 # but as the default location of the library.
9016 hardcode_minus_L=yes
9017 fi
9018 ;;
9019
9020 hpux11*)
9021 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9022 case $host_cpu in
9023 hppa*64*)
9024 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9025 ;;
9026 ia64*)
9027 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9028 ;;
9029 *)
9030 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9031 ;;
9032 esac
9033 else
9034 case $host_cpu in
9035 hppa*64*)
9036 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9037 ;;
9038 ia64*)
9039 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9040 ;;
9041 *)
9042
9043 # Older versions of the 11.00 compiler do not understand -b yet
9044 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9046 $as_echo_n "checking if $CC understands -b... " >&6; }
9047 if ${lt_cv_prog_compiler__b+:} false; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 lt_cv_prog_compiler__b=no
9051 save_LDFLAGS="$LDFLAGS"
9052 LDFLAGS="$LDFLAGS -b"
9053 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9054 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9055 # The linker can only warn and ignore the option if not recognized
9056 # So say no if there are warnings
9057 if test -s conftest.err; then
9058 # Append any errors to the config.log.
9059 cat conftest.err 1>&5
9060 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9062 if diff conftest.exp conftest.er2 >/dev/null; then
9063 lt_cv_prog_compiler__b=yes
9064 fi
9065 else
9066 lt_cv_prog_compiler__b=yes
9067 fi
9068 fi
9069 $RM -r conftest*
9070 LDFLAGS="$save_LDFLAGS"
9071
9072 fi
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9074 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9075
9076 if test x"$lt_cv_prog_compiler__b" = xyes; then
9077 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9078 else
9079 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9080 fi
9081
9082 ;;
9083 esac
9084 fi
9085 if test "$with_gnu_ld" = no; then
9086 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9087 hardcode_libdir_separator=:
9088
9089 case $host_cpu in
9090 hppa*64*|ia64*)
9091 hardcode_direct=no
9092 hardcode_shlibpath_var=no
9093 ;;
9094 *)
9095 hardcode_direct=yes
9096 hardcode_direct_absolute=yes
9097 export_dynamic_flag_spec='${wl}-E'
9098
9099 # hardcode_minus_L: Not really in the search PATH,
9100 # but as the default location of the library.
9101 hardcode_minus_L=yes
9102 ;;
9103 esac
9104 fi
9105 ;;
9106
9107 irix5* | irix6* | nonstopux*)
9108 if test "$GCC" = yes; then
9109 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'
9110 # Try to use the -exported_symbol ld option, if it does not
9111 # work, assume that -exports_file does not work either and
9112 # implicitly export all symbols.
9113 save_LDFLAGS="$LDFLAGS"
9114 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 int foo(void) {}
9118 _ACEOF
9119 if ac_fn_c_try_link "$LINENO"; then :
9120 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'
9121
9122 fi
9123 rm -f core conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
9125 LDFLAGS="$save_LDFLAGS"
9126 else
9127 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'
9128 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'
9129 fi
9130 archive_cmds_need_lc='no'
9131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9132 hardcode_libdir_separator=:
9133 inherit_rpath=yes
9134 link_all_deplibs=yes
9135 ;;
9136
9137 netbsd*)
9138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9140 else
9141 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9142 fi
9143 hardcode_libdir_flag_spec='-R$libdir'
9144 hardcode_direct=yes
9145 hardcode_shlibpath_var=no
9146 ;;
9147
9148 newsos6)
9149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9150 hardcode_direct=yes
9151 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9152 hardcode_libdir_separator=:
9153 hardcode_shlibpath_var=no
9154 ;;
9155
9156 *nto* | *qnx*)
9157 ;;
9158
9159 openbsd*)
9160 if test -f /usr/libexec/ld.so; then
9161 hardcode_direct=yes
9162 hardcode_shlibpath_var=no
9163 hardcode_direct_absolute=yes
9164 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9165 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9166 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9167 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9168 export_dynamic_flag_spec='${wl}-E'
9169 else
9170 case $host_os in
9171 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9173 hardcode_libdir_flag_spec='-R$libdir'
9174 ;;
9175 *)
9176 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9177 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9178 ;;
9179 esac
9180 fi
9181 else
9182 ld_shlibs=no
9183 fi
9184 ;;
9185
9186 os2*)
9187 hardcode_libdir_flag_spec='-L$libdir'
9188 hardcode_minus_L=yes
9189 allow_undefined_flag=unsupported
9190 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'
9191 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9192 ;;
9193
9194 osf3*)
9195 if test "$GCC" = yes; then
9196 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9197 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'
9198 else
9199 allow_undefined_flag=' -expect_unresolved \*'
9200 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'
9201 fi
9202 archive_cmds_need_lc='no'
9203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9204 hardcode_libdir_separator=:
9205 ;;
9206
9207 osf4* | osf5*) # as osf3* with the addition of -msym flag
9208 if test "$GCC" = yes; then
9209 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9210 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'
9211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9212 else
9213 allow_undefined_flag=' -expect_unresolved \*'
9214 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'
9215 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~
9216 $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'
9217
9218 # Both c and cxx compiler support -rpath directly
9219 hardcode_libdir_flag_spec='-rpath $libdir'
9220 fi
9221 archive_cmds_need_lc='no'
9222 hardcode_libdir_separator=:
9223 ;;
9224
9225 solaris*)
9226 no_undefined_flag=' -z defs'
9227 if test "$GCC" = yes; then
9228 wlarc='${wl}'
9229 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9230 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9231 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9232 else
9233 case `$CC -V 2>&1` in
9234 *"Compilers 5.0"*)
9235 wlarc=''
9236 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9238 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9239 ;;
9240 *)
9241 wlarc='${wl}'
9242 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9243 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9244 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9245 ;;
9246 esac
9247 fi
9248 hardcode_libdir_flag_spec='-R$libdir'
9249 hardcode_shlibpath_var=no
9250 case $host_os in
9251 solaris2.[0-5] | solaris2.[0-5].*) ;;
9252 *)
9253 # The compiler driver will combine and reorder linker options,
9254 # but understands `-z linker_flag'. GCC discards it without `$wl',
9255 # but is careful enough not to reorder.
9256 # Supported since Solaris 2.6 (maybe 2.5.1?)
9257 if test "$GCC" = yes; then
9258 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9259 else
9260 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9261 fi
9262 ;;
9263 esac
9264 link_all_deplibs=yes
9265 ;;
9266
9267 sunos4*)
9268 if test "x$host_vendor" = xsequent; then
9269 # Use $CC to link under sequent, because it throws in some extra .o
9270 # files that make .init and .fini sections work.
9271 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9272 else
9273 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9274 fi
9275 hardcode_libdir_flag_spec='-L$libdir'
9276 hardcode_direct=yes
9277 hardcode_minus_L=yes
9278 hardcode_shlibpath_var=no
9279 ;;
9280
9281 sysv4)
9282 case $host_vendor in
9283 sni)
9284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9285 hardcode_direct=yes # is this really true???
9286 ;;
9287 siemens)
9288 ## LD is ld it makes a PLAMLIB
9289 ## CC just makes a GrossModule.
9290 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9291 reload_cmds='$CC -r -o $output$reload_objs'
9292 hardcode_direct=no
9293 ;;
9294 motorola)
9295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9296 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9297 ;;
9298 esac
9299 runpath_var='LD_RUN_PATH'
9300 hardcode_shlibpath_var=no
9301 ;;
9302
9303 sysv4.3*)
9304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9305 hardcode_shlibpath_var=no
9306 export_dynamic_flag_spec='-Bexport'
9307 ;;
9308
9309 sysv4*MP*)
9310 if test -d /usr/nec; then
9311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312 hardcode_shlibpath_var=no
9313 runpath_var=LD_RUN_PATH
9314 hardcode_runpath_var=yes
9315 ld_shlibs=yes
9316 fi
9317 ;;
9318
9319 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9320 no_undefined_flag='${wl}-z,text'
9321 archive_cmds_need_lc=no
9322 hardcode_shlibpath_var=no
9323 runpath_var='LD_RUN_PATH'
9324
9325 if test "$GCC" = yes; then
9326 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9327 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9328 else
9329 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9330 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9331 fi
9332 ;;
9333
9334 sysv5* | sco3.2v5* | sco5v6*)
9335 # Note: We can NOT use -z defs as we might desire, because we do not
9336 # link with -lc, and that would cause any symbols used from libc to
9337 # always be unresolved, which means just about no library would
9338 # ever link correctly. If we're not using GNU ld we use -z text
9339 # though, which does catch some bad symbols but isn't as heavy-handed
9340 # as -z defs.
9341 no_undefined_flag='${wl}-z,text'
9342 allow_undefined_flag='${wl}-z,nodefs'
9343 archive_cmds_need_lc=no
9344 hardcode_shlibpath_var=no
9345 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9346 hardcode_libdir_separator=':'
9347 link_all_deplibs=yes
9348 export_dynamic_flag_spec='${wl}-Bexport'
9349 runpath_var='LD_RUN_PATH'
9350
9351 if test "$GCC" = yes; then
9352 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354 else
9355 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9357 fi
9358 ;;
9359
9360 uts4*)
9361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362 hardcode_libdir_flag_spec='-L$libdir'
9363 hardcode_shlibpath_var=no
9364 ;;
9365
9366 *)
9367 ld_shlibs=no
9368 ;;
9369 esac
9370
9371 if test x$host_vendor = xsni; then
9372 case $host in
9373 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9374 export_dynamic_flag_spec='${wl}-Blargedynsym'
9375 ;;
9376 esac
9377 fi
9378 fi
9379
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9381 $as_echo "$ld_shlibs" >&6; }
9382 test "$ld_shlibs" = no && can_build_shared=no
9383
9384 with_gnu_ld=$with_gnu_ld
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400 #
9401 # Do we need to explicitly link libc?
9402 #
9403 case "x$archive_cmds_need_lc" in
9404 x|xyes)
9405 # Assume -lc should be added
9406 archive_cmds_need_lc=yes
9407
9408 if test "$enable_shared" = yes && test "$GCC" = yes; then
9409 case $archive_cmds in
9410 *'~'*)
9411 # FIXME: we may have to deal with multi-command sequences.
9412 ;;
9413 '$CC '*)
9414 # Test whether the compiler implicitly links with -lc since on some
9415 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9416 # to ld, don't add -lc before -lgcc.
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9418 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9419 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9422 $RM conftest*
9423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9424
9425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9426 (eval $ac_compile) 2>&5
9427 ac_status=$?
9428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9429 test $ac_status = 0; } 2>conftest.err; then
9430 soname=conftest
9431 lib=conftest
9432 libobjs=conftest.$ac_objext
9433 deplibs=
9434 wl=$lt_prog_compiler_wl
9435 pic_flag=$lt_prog_compiler_pic
9436 compiler_flags=-v
9437 linker_flags=-v
9438 verstring=
9439 output_objdir=.
9440 libname=conftest
9441 lt_save_allow_undefined_flag=$allow_undefined_flag
9442 allow_undefined_flag=
9443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9444 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9445 ac_status=$?
9446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9447 test $ac_status = 0; }
9448 then
9449 lt_cv_archive_cmds_need_lc=no
9450 else
9451 lt_cv_archive_cmds_need_lc=yes
9452 fi
9453 allow_undefined_flag=$lt_save_allow_undefined_flag
9454 else
9455 cat conftest.err 1>&5
9456 fi
9457 $RM conftest*
9458
9459 fi
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9461 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9462 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9463 ;;
9464 esac
9465 fi
9466 ;;
9467 esac
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
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9626 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9627
9628 if test "$GCC" = yes; then
9629 case $host_os in
9630 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9631 *) lt_awk_arg="/^libraries:/" ;;
9632 esac
9633 case $host_os in
9634 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9635 *) lt_sed_strip_eq="s,=/,/,g" ;;
9636 esac
9637 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9638 case $lt_search_path_spec in
9639 *\;*)
9640 # if the path contains ";" then we assume it to be the separator
9641 # otherwise default to the standard path separator (i.e. ":") - it is
9642 # assumed that no part of a normal pathname contains ";" but that should
9643 # okay in the real world where ";" in dirpaths is itself problematic.
9644 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9645 ;;
9646 *)
9647 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9648 ;;
9649 esac
9650 # Ok, now we have the path, separated by spaces, we can step through it
9651 # and add multilib dir if necessary.
9652 lt_tmp_lt_search_path_spec=
9653 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9654 for lt_sys_path in $lt_search_path_spec; do
9655 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9656 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9657 else
9658 test -d "$lt_sys_path" && \
9659 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9660 fi
9661 done
9662 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9663 BEGIN {RS=" "; FS="/|\n";} {
9664 lt_foo="";
9665 lt_count=0;
9666 for (lt_i = NF; lt_i > 0; lt_i--) {
9667 if ($lt_i != "" && $lt_i != ".") {
9668 if ($lt_i == "..") {
9669 lt_count++;
9670 } else {
9671 if (lt_count == 0) {
9672 lt_foo="/" $lt_i lt_foo;
9673 } else {
9674 lt_count--;
9675 }
9676 }
9677 }
9678 }
9679 if (lt_foo != "") { lt_freq[lt_foo]++; }
9680 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9681 }'`
9682 # AWK program above erroneously prepends '/' to C:/dos/paths
9683 # for these hosts.
9684 case $host_os in
9685 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9686 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9687 esac
9688 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9689 else
9690 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9691 fi
9692 library_names_spec=
9693 libname_spec='lib$name'
9694 soname_spec=
9695 shrext_cmds=".so"
9696 postinstall_cmds=
9697 postuninstall_cmds=
9698 finish_cmds=
9699 finish_eval=
9700 shlibpath_var=
9701 shlibpath_overrides_runpath=unknown
9702 version_type=none
9703 dynamic_linker="$host_os ld.so"
9704 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9705 need_lib_prefix=unknown
9706 hardcode_into_libs=no
9707
9708 # when you set need_version to no, make sure it does not cause -set_version
9709 # flags to be left without arguments
9710 need_version=unknown
9711
9712 case $host_os in
9713 aix3*)
9714 version_type=linux
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9716 shlibpath_var=LIBPATH
9717
9718 # AIX 3 has no versioning support, so we append a major version to the name.
9719 soname_spec='${libname}${release}${shared_ext}$major'
9720 ;;
9721
9722 aix[4-9]*)
9723 version_type=linux
9724 need_lib_prefix=no
9725 need_version=no
9726 hardcode_into_libs=yes
9727 if test "$host_cpu" = ia64; then
9728 # AIX 5 supports IA64
9729 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 else
9732 # With GCC up to 2.95.x, collect2 would create an import file
9733 # for dependence libraries. The import file would start with
9734 # the line `#! .'. This would cause the generated library to
9735 # depend on `.', always an invalid library. This was fixed in
9736 # development snapshots of GCC prior to 3.0.
9737 case $host_os in
9738 aix4 | aix4.[01] | aix4.[01].*)
9739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9740 echo ' yes '
9741 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9742 :
9743 else
9744 can_build_shared=no
9745 fi
9746 ;;
9747 esac
9748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9749 # soname into executable. Probably we can add versioning support to
9750 # collect2, so additional links can be useful in future.
9751 if test "$aix_use_runtimelinking" = yes; then
9752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9753 # instead of lib<name>.a to let people know that these are not
9754 # typical AIX shared libraries.
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756 else
9757 # We preserve .a as extension for shared libraries through AIX4.2
9758 # and later when we are not doing run time linking.
9759 library_names_spec='${libname}${release}.a $libname.a'
9760 soname_spec='${libname}${release}${shared_ext}$major'
9761 fi
9762 shlibpath_var=LIBPATH
9763 fi
9764 ;;
9765
9766 amigaos*)
9767 case $host_cpu in
9768 powerpc)
9769 # Since July 2007 AmigaOS4 officially supports .so libraries.
9770 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772 ;;
9773 m68k)
9774 library_names_spec='$libname.ixlibrary $libname.a'
9775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9776 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'
9777 ;;
9778 esac
9779 ;;
9780
9781 beos*)
9782 library_names_spec='${libname}${shared_ext}'
9783 dynamic_linker="$host_os ld.so"
9784 shlibpath_var=LIBRARY_PATH
9785 ;;
9786
9787 bsdi[45]*)
9788 version_type=linux
9789 need_version=no
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791 soname_spec='${libname}${release}${shared_ext}$major'
9792 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9793 shlibpath_var=LD_LIBRARY_PATH
9794 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9795 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9796 # the default ld.so.conf also contains /usr/contrib/lib and
9797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9798 # libtool to hard-code these into programs
9799 ;;
9800
9801 cygwin* | mingw* | pw32* | cegcc*)
9802 version_type=windows
9803 shrext_cmds=".dll"
9804 need_version=no
9805 need_lib_prefix=no
9806
9807 case $GCC,$host_os in
9808 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9809 library_names_spec='$libname.dll.a'
9810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9811 postinstall_cmds='base_file=`basename \${file}`~
9812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9813 dldir=$destdir/`dirname \$dlpath`~
9814 test -d \$dldir || mkdir -p \$dldir~
9815 $install_prog $dir/$dlname \$dldir/$dlname~
9816 chmod a+x \$dldir/$dlname~
9817 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9818 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9819 fi'
9820 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9821 dlpath=$dir/\$dldll~
9822 $RM \$dlpath'
9823 shlibpath_overrides_runpath=yes
9824
9825 case $host_os in
9826 cygwin*)
9827 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9828 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9829
9830 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9831 ;;
9832 mingw* | cegcc*)
9833 # MinGW DLLs use traditional 'lib' prefix
9834 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9835 ;;
9836 pw32*)
9837 # pw32 DLLs use 'pw' prefix rather than 'lib'
9838 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9839 ;;
9840 esac
9841 ;;
9842
9843 *)
9844 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9845 ;;
9846 esac
9847 dynamic_linker='Win32 ld.exe'
9848 # FIXME: first we should search . and the directory the executable is in
9849 shlibpath_var=PATH
9850 ;;
9851
9852 darwin* | rhapsody*)
9853 dynamic_linker="$host_os dyld"
9854 version_type=darwin
9855 need_lib_prefix=no
9856 need_version=no
9857 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9858 soname_spec='${libname}${release}${major}$shared_ext'
9859 shlibpath_overrides_runpath=yes
9860 shlibpath_var=DYLD_LIBRARY_PATH
9861 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9862
9863 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9864 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9865 ;;
9866
9867 dgux*)
9868 version_type=linux
9869 need_lib_prefix=no
9870 need_version=no
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9872 soname_spec='${libname}${release}${shared_ext}$major'
9873 shlibpath_var=LD_LIBRARY_PATH
9874 ;;
9875
9876 freebsd* | dragonfly*)
9877 # DragonFly does not have aout. When/if they implement a new
9878 # versioning mechanism, adjust this.
9879 if test -x /usr/bin/objformat; then
9880 objformat=`/usr/bin/objformat`
9881 else
9882 case $host_os in
9883 freebsd[23].*) objformat=aout ;;
9884 *) objformat=elf ;;
9885 esac
9886 fi
9887 version_type=freebsd-$objformat
9888 case $version_type in
9889 freebsd-elf*)
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9891 need_version=no
9892 need_lib_prefix=no
9893 ;;
9894 freebsd-*)
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9896 need_version=yes
9897 ;;
9898 esac
9899 shlibpath_var=LD_LIBRARY_PATH
9900 case $host_os in
9901 freebsd2.*)
9902 shlibpath_overrides_runpath=yes
9903 ;;
9904 freebsd3.[01]* | freebsdelf3.[01]*)
9905 shlibpath_overrides_runpath=yes
9906 hardcode_into_libs=yes
9907 ;;
9908 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9909 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9910 shlibpath_overrides_runpath=no
9911 hardcode_into_libs=yes
9912 ;;
9913 *) # from 4.6 on, and DragonFly
9914 shlibpath_overrides_runpath=yes
9915 hardcode_into_libs=yes
9916 ;;
9917 esac
9918 ;;
9919
9920 haiku*)
9921 version_type=linux
9922 need_lib_prefix=no
9923 need_version=no
9924 dynamic_linker="$host_os runtime_loader"
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 shlibpath_var=LIBRARY_PATH
9928 shlibpath_overrides_runpath=yes
9929 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9930 hardcode_into_libs=yes
9931 ;;
9932
9933 hpux9* | hpux10* | hpux11*)
9934 # Give a soname corresponding to the major version so that dld.sl refuses to
9935 # link against other versions.
9936 version_type=sunos
9937 need_lib_prefix=no
9938 need_version=no
9939 case $host_cpu in
9940 ia64*)
9941 shrext_cmds='.so'
9942 hardcode_into_libs=yes
9943 dynamic_linker="$host_os dld.so"
9944 shlibpath_var=LD_LIBRARY_PATH
9945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 if test "X$HPUX_IA64_MODE" = X32; then
9949 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9950 else
9951 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9952 fi
9953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9954 ;;
9955 hppa*64*)
9956 shrext_cmds='.sl'
9957 hardcode_into_libs=yes
9958 dynamic_linker="$host_os dld.sl"
9959 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962 soname_spec='${libname}${release}${shared_ext}$major'
9963 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9965 ;;
9966 *)
9967 shrext_cmds='.sl'
9968 dynamic_linker="$host_os dld.sl"
9969 shlibpath_var=SHLIB_PATH
9970 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9972 soname_spec='${libname}${release}${shared_ext}$major'
9973 ;;
9974 esac
9975 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9976 postinstall_cmds='chmod 555 $lib'
9977 # or fails outright, so override atomically:
9978 install_override_mode=555
9979 ;;
9980
9981 interix[3-9]*)
9982 version_type=linux
9983 need_lib_prefix=no
9984 need_version=no
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9986 soname_spec='${libname}${release}${shared_ext}$major'
9987 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9988 shlibpath_var=LD_LIBRARY_PATH
9989 shlibpath_overrides_runpath=no
9990 hardcode_into_libs=yes
9991 ;;
9992
9993 irix5* | irix6* | nonstopux*)
9994 case $host_os in
9995 nonstopux*) version_type=nonstopux ;;
9996 *)
9997 if test "$lt_cv_prog_gnu_ld" = yes; then
9998 version_type=linux
9999 else
10000 version_type=irix
10001 fi ;;
10002 esac
10003 need_lib_prefix=no
10004 need_version=no
10005 soname_spec='${libname}${release}${shared_ext}$major'
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10007 case $host_os in
10008 irix5* | nonstopux*)
10009 libsuff= shlibsuff=
10010 ;;
10011 *)
10012 case $LD in # libtool.m4 will add one of these switches to LD
10013 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10014 libsuff= shlibsuff= libmagic=32-bit;;
10015 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10016 libsuff=32 shlibsuff=N32 libmagic=N32;;
10017 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10018 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10019 *) libsuff= shlibsuff= libmagic=never-match;;
10020 esac
10021 ;;
10022 esac
10023 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10024 shlibpath_overrides_runpath=no
10025 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10026 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10027 hardcode_into_libs=yes
10028 ;;
10029
10030 # No shared lib support for Linux oldld, aout, or coff.
10031 linux*oldld* | linux*aout* | linux*coff*)
10032 dynamic_linker=no
10033 ;;
10034
10035 # This must be Linux ELF.
10036 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10037 version_type=linux
10038 need_lib_prefix=no
10039 need_version=no
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10043 shlibpath_var=LD_LIBRARY_PATH
10044 shlibpath_overrides_runpath=no
10045
10046 # Some binutils ld are patched to set DT_RUNPATH
10047 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 lt_cv_shlibpath_overrides_runpath=no
10051 save_LDFLAGS=$LDFLAGS
10052 save_libdir=$libdir
10053 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10054 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10056 /* end confdefs.h. */
10057
10058 int
10059 main ()
10060 {
10061
10062 ;
10063 return 0;
10064 }
10065 _ACEOF
10066 if ac_fn_c_try_link "$LINENO"; then :
10067 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10068 lt_cv_shlibpath_overrides_runpath=yes
10069 fi
10070 fi
10071 rm -f core conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10073 LDFLAGS=$save_LDFLAGS
10074 libdir=$save_libdir
10075
10076 fi
10077
10078 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10079
10080 # This implies no fast_install, which is unacceptable.
10081 # Some rework will be needed to allow for fast_install
10082 # before this can be enabled.
10083 hardcode_into_libs=yes
10084
10085 # Append ld.so.conf contents to the search path
10086 if test -f /etc/ld.so.conf; then
10087 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' ' '`
10088 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10089 fi
10090
10091 # We used to test for /lib/ld.so.1 and disable shared libraries on
10092 # powerpc, because MkLinux only supported shared libraries with the
10093 # GNU dynamic linker. Since this was broken with cross compilers,
10094 # most powerpc-linux boxes support dynamic linking these days and
10095 # people can always --disable-shared, the test was removed, and we
10096 # assume the GNU/Linux dynamic linker is in use.
10097 dynamic_linker='GNU/Linux ld.so'
10098 ;;
10099
10100 netbsd*)
10101 version_type=sunos
10102 need_lib_prefix=no
10103 need_version=no
10104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10107 dynamic_linker='NetBSD (a.out) ld.so'
10108 else
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 dynamic_linker='NetBSD ld.elf_so'
10112 fi
10113 shlibpath_var=LD_LIBRARY_PATH
10114 shlibpath_overrides_runpath=yes
10115 hardcode_into_libs=yes
10116 ;;
10117
10118 newsos6)
10119 version_type=linux
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121 shlibpath_var=LD_LIBRARY_PATH
10122 shlibpath_overrides_runpath=yes
10123 ;;
10124
10125 *nto* | *qnx*)
10126 version_type=qnx
10127 need_lib_prefix=no
10128 need_version=no
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 shlibpath_var=LD_LIBRARY_PATH
10132 shlibpath_overrides_runpath=no
10133 hardcode_into_libs=yes
10134 dynamic_linker='ldqnx.so'
10135 ;;
10136
10137 openbsd*)
10138 version_type=sunos
10139 sys_lib_dlsearch_path_spec="/usr/lib"
10140 need_lib_prefix=no
10141 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10142 case $host_os in
10143 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10144 *) need_version=no ;;
10145 esac
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10148 shlibpath_var=LD_LIBRARY_PATH
10149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10150 case $host_os in
10151 openbsd2.[89] | openbsd2.[89].*)
10152 shlibpath_overrides_runpath=no
10153 ;;
10154 *)
10155 shlibpath_overrides_runpath=yes
10156 ;;
10157 esac
10158 else
10159 shlibpath_overrides_runpath=yes
10160 fi
10161 ;;
10162
10163 os2*)
10164 libname_spec='$name'
10165 shrext_cmds=".dll"
10166 need_lib_prefix=no
10167 library_names_spec='$libname${shared_ext} $libname.a'
10168 dynamic_linker='OS/2 ld.exe'
10169 shlibpath_var=LIBPATH
10170 ;;
10171
10172 osf3* | osf4* | osf5*)
10173 version_type=osf
10174 need_lib_prefix=no
10175 need_version=no
10176 soname_spec='${libname}${release}${shared_ext}$major'
10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10178 shlibpath_var=LD_LIBRARY_PATH
10179 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10180 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10181 ;;
10182
10183 rdos*)
10184 dynamic_linker=no
10185 ;;
10186
10187 solaris*)
10188 version_type=linux
10189 need_lib_prefix=no
10190 need_version=no
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192 soname_spec='${libname}${release}${shared_ext}$major'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=yes
10195 hardcode_into_libs=yes
10196 # ldd complains unless libraries are executable
10197 postinstall_cmds='chmod +x $lib'
10198 ;;
10199
10200 sunos4*)
10201 version_type=sunos
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10203 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 shlibpath_overrides_runpath=yes
10206 if test "$with_gnu_ld" = yes; then
10207 need_lib_prefix=no
10208 fi
10209 need_version=yes
10210 ;;
10211
10212 sysv4 | sysv4.3*)
10213 version_type=linux
10214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215 soname_spec='${libname}${release}${shared_ext}$major'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 case $host_vendor in
10218 sni)
10219 shlibpath_overrides_runpath=no
10220 need_lib_prefix=no
10221 runpath_var=LD_RUN_PATH
10222 ;;
10223 siemens)
10224 need_lib_prefix=no
10225 ;;
10226 motorola)
10227 need_lib_prefix=no
10228 need_version=no
10229 shlibpath_overrides_runpath=no
10230 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10231 ;;
10232 esac
10233 ;;
10234
10235 sysv4*MP*)
10236 if test -d /usr/nec ;then
10237 version_type=linux
10238 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10239 soname_spec='$libname${shared_ext}.$major'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 fi
10242 ;;
10243
10244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10245 version_type=freebsd-elf
10246 need_lib_prefix=no
10247 need_version=no
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 shlibpath_var=LD_LIBRARY_PATH
10251 shlibpath_overrides_runpath=yes
10252 hardcode_into_libs=yes
10253 if test "$with_gnu_ld" = yes; then
10254 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10255 else
10256 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10257 case $host_os in
10258 sco3.2v5*)
10259 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10260 ;;
10261 esac
10262 fi
10263 sys_lib_dlsearch_path_spec='/usr/lib'
10264 ;;
10265
10266 tpf*)
10267 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10268 version_type=linux
10269 need_lib_prefix=no
10270 need_version=no
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272 shlibpath_var=LD_LIBRARY_PATH
10273 shlibpath_overrides_runpath=no
10274 hardcode_into_libs=yes
10275 ;;
10276
10277 uts4*)
10278 version_type=linux
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 shlibpath_var=LD_LIBRARY_PATH
10282 ;;
10283
10284 *)
10285 dynamic_linker=no
10286 ;;
10287 esac
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10289 $as_echo "$dynamic_linker" >&6; }
10290 test "$dynamic_linker" = no && can_build_shared=no
10291
10292 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10293 if test "$GCC" = yes; then
10294 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10295 fi
10296
10297 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10298 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10299 fi
10300 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10301 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10302 fi
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
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10396 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10397 hardcode_action=
10398 if test -n "$hardcode_libdir_flag_spec" ||
10399 test -n "$runpath_var" ||
10400 test "X$hardcode_automatic" = "Xyes" ; then
10401
10402 # We can hardcode non-existent directories.
10403 if test "$hardcode_direct" != no &&
10404 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10405 # have to relink, otherwise we might link with an installed library
10406 # when we should be linking with a yet-to-be-installed one
10407 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10408 test "$hardcode_minus_L" != no; then
10409 # Linking always hardcodes the temporary library directory.
10410 hardcode_action=relink
10411 else
10412 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10413 hardcode_action=immediate
10414 fi
10415 else
10416 # We cannot hardcode anything, or else we can only hardcode existing
10417 # directories.
10418 hardcode_action=unsupported
10419 fi
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10421 $as_echo "$hardcode_action" >&6; }
10422
10423 if test "$hardcode_action" = relink ||
10424 test "$inherit_rpath" = yes; then
10425 # Fast installation is not supported
10426 enable_fast_install=no
10427 elif test "$shlibpath_overrides_runpath" = yes ||
10428 test "$enable_shared" = no; then
10429 # Fast installation is not necessary
10430 enable_fast_install=needless
10431 fi
10432
10433
10434
10435
10436
10437
10438 if test "x$enable_dlopen" != xyes; then
10439 enable_dlopen=unknown
10440 enable_dlopen_self=unknown
10441 enable_dlopen_self_static=unknown
10442 else
10443 lt_cv_dlopen=no
10444 lt_cv_dlopen_libs=
10445
10446 case $host_os in
10447 beos*)
10448 lt_cv_dlopen="load_add_on"
10449 lt_cv_dlopen_libs=
10450 lt_cv_dlopen_self=yes
10451 ;;
10452
10453 mingw* | pw32* | cegcc*)
10454 lt_cv_dlopen="LoadLibrary"
10455 lt_cv_dlopen_libs=
10456 ;;
10457
10458 cygwin*)
10459 lt_cv_dlopen="dlopen"
10460 lt_cv_dlopen_libs=
10461 ;;
10462
10463 darwin*)
10464 # if libdl is installed we need to link against it
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10466 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10467 if ${ac_cv_lib_dl_dlopen+:} false; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 ac_check_lib_save_LIBS=$LIBS
10471 LIBS="-ldl $LIBS"
10472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473 /* end confdefs.h. */
10474
10475 /* Override any GCC internal prototype to avoid an error.
10476 Use char because int might match the return type of a GCC
10477 builtin and then its argument prototype would still apply. */
10478 #ifdef __cplusplus
10479 extern "C"
10480 #endif
10481 char dlopen ();
10482 int
10483 main ()
10484 {
10485 return dlopen ();
10486 ;
10487 return 0;
10488 }
10489 _ACEOF
10490 if ac_fn_c_try_link "$LINENO"; then :
10491 ac_cv_lib_dl_dlopen=yes
10492 else
10493 ac_cv_lib_dl_dlopen=no
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497 LIBS=$ac_check_lib_save_LIBS
10498 fi
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10500 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10501 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10502 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10503 else
10504
10505 lt_cv_dlopen="dyld"
10506 lt_cv_dlopen_libs=
10507 lt_cv_dlopen_self=yes
10508
10509 fi
10510
10511 ;;
10512
10513 *)
10514 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10515 if test "x$ac_cv_func_shl_load" = xyes; then :
10516 lt_cv_dlopen="shl_load"
10517 else
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10519 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10520 if ${ac_cv_lib_dld_shl_load+:} false; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 ac_check_lib_save_LIBS=$LIBS
10524 LIBS="-ldld $LIBS"
10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10527
10528 /* Override any GCC internal prototype to avoid an error.
10529 Use char because int might match the return type of a GCC
10530 builtin and then its argument prototype would still apply. */
10531 #ifdef __cplusplus
10532 extern "C"
10533 #endif
10534 char shl_load ();
10535 int
10536 main ()
10537 {
10538 return shl_load ();
10539 ;
10540 return 0;
10541 }
10542 _ACEOF
10543 if ac_fn_c_try_link "$LINENO"; then :
10544 ac_cv_lib_dld_shl_load=yes
10545 else
10546 ac_cv_lib_dld_shl_load=no
10547 fi
10548 rm -f core conftest.err conftest.$ac_objext \
10549 conftest$ac_exeext conftest.$ac_ext
10550 LIBS=$ac_check_lib_save_LIBS
10551 fi
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10553 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10554 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10555 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10556 else
10557 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10558 if test "x$ac_cv_func_dlopen" = xyes; then :
10559 lt_cv_dlopen="dlopen"
10560 else
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10562 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10563 if ${ac_cv_lib_dl_dlopen+:} false; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 ac_check_lib_save_LIBS=$LIBS
10567 LIBS="-ldl $LIBS"
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10570
10571 /* Override any GCC internal prototype to avoid an error.
10572 Use char because int might match the return type of a GCC
10573 builtin and then its argument prototype would still apply. */
10574 #ifdef __cplusplus
10575 extern "C"
10576 #endif
10577 char dlopen ();
10578 int
10579 main ()
10580 {
10581 return dlopen ();
10582 ;
10583 return 0;
10584 }
10585 _ACEOF
10586 if ac_fn_c_try_link "$LINENO"; then :
10587 ac_cv_lib_dl_dlopen=yes
10588 else
10589 ac_cv_lib_dl_dlopen=no
10590 fi
10591 rm -f core conftest.err conftest.$ac_objext \
10592 conftest$ac_exeext conftest.$ac_ext
10593 LIBS=$ac_check_lib_save_LIBS
10594 fi
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10596 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10597 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10598 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10599 else
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10601 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10602 if ${ac_cv_lib_svld_dlopen+:} false; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 ac_check_lib_save_LIBS=$LIBS
10606 LIBS="-lsvld $LIBS"
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10609
10610 /* Override any GCC internal prototype to avoid an error.
10611 Use char because int might match the return type of a GCC
10612 builtin and then its argument prototype would still apply. */
10613 #ifdef __cplusplus
10614 extern "C"
10615 #endif
10616 char dlopen ();
10617 int
10618 main ()
10619 {
10620 return dlopen ();
10621 ;
10622 return 0;
10623 }
10624 _ACEOF
10625 if ac_fn_c_try_link "$LINENO"; then :
10626 ac_cv_lib_svld_dlopen=yes
10627 else
10628 ac_cv_lib_svld_dlopen=no
10629 fi
10630 rm -f core conftest.err conftest.$ac_objext \
10631 conftest$ac_exeext conftest.$ac_ext
10632 LIBS=$ac_check_lib_save_LIBS
10633 fi
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10635 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10636 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10637 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10638 else
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10640 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10641 if ${ac_cv_lib_dld_dld_link+:} false; then :
10642 $as_echo_n "(cached) " >&6
10643 else
10644 ac_check_lib_save_LIBS=$LIBS
10645 LIBS="-ldld $LIBS"
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648
10649 /* Override any GCC internal prototype to avoid an error.
10650 Use char because int might match the return type of a GCC
10651 builtin and then its argument prototype would still apply. */
10652 #ifdef __cplusplus
10653 extern "C"
10654 #endif
10655 char dld_link ();
10656 int
10657 main ()
10658 {
10659 return dld_link ();
10660 ;
10661 return 0;
10662 }
10663 _ACEOF
10664 if ac_fn_c_try_link "$LINENO"; then :
10665 ac_cv_lib_dld_dld_link=yes
10666 else
10667 ac_cv_lib_dld_dld_link=no
10668 fi
10669 rm -f core conftest.err conftest.$ac_objext \
10670 conftest$ac_exeext conftest.$ac_ext
10671 LIBS=$ac_check_lib_save_LIBS
10672 fi
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10674 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10675 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10676 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10677 fi
10678
10679
10680 fi
10681
10682
10683 fi
10684
10685
10686 fi
10687
10688
10689 fi
10690
10691
10692 fi
10693
10694 ;;
10695 esac
10696
10697 if test "x$lt_cv_dlopen" != xno; then
10698 enable_dlopen=yes
10699 else
10700 enable_dlopen=no
10701 fi
10702
10703 case $lt_cv_dlopen in
10704 dlopen)
10705 save_CPPFLAGS="$CPPFLAGS"
10706 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10707
10708 save_LDFLAGS="$LDFLAGS"
10709 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10710
10711 save_LIBS="$LIBS"
10712 LIBS="$lt_cv_dlopen_libs $LIBS"
10713
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10715 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10716 if ${lt_cv_dlopen_self+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 if test "$cross_compiling" = yes; then :
10720 lt_cv_dlopen_self=cross
10721 else
10722 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10723 lt_status=$lt_dlunknown
10724 cat > conftest.$ac_ext <<_LT_EOF
10725 #line 10725 "configure"
10726 #include "confdefs.h"
10727
10728 #if HAVE_DLFCN_H
10729 #include <dlfcn.h>
10730 #endif
10731
10732 #include <stdio.h>
10733
10734 #ifdef RTLD_GLOBAL
10735 # define LT_DLGLOBAL RTLD_GLOBAL
10736 #else
10737 # ifdef DL_GLOBAL
10738 # define LT_DLGLOBAL DL_GLOBAL
10739 # else
10740 # define LT_DLGLOBAL 0
10741 # endif
10742 #endif
10743
10744 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10745 find out it does not work in some platform. */
10746 #ifndef LT_DLLAZY_OR_NOW
10747 # ifdef RTLD_LAZY
10748 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10749 # else
10750 # ifdef DL_LAZY
10751 # define LT_DLLAZY_OR_NOW DL_LAZY
10752 # else
10753 # ifdef RTLD_NOW
10754 # define LT_DLLAZY_OR_NOW RTLD_NOW
10755 # else
10756 # ifdef DL_NOW
10757 # define LT_DLLAZY_OR_NOW DL_NOW
10758 # else
10759 # define LT_DLLAZY_OR_NOW 0
10760 # endif
10761 # endif
10762 # endif
10763 # endif
10764 #endif
10765
10766 /* When -fvisbility=hidden is used, assume the code has been annotated
10767 correspondingly for the symbols needed. */
10768 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10769 void fnord () __attribute__((visibility("default")));
10770 #endif
10771
10772 void fnord () { int i=42; }
10773 int main ()
10774 {
10775 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10776 int status = $lt_dlunknown;
10777
10778 if (self)
10779 {
10780 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10781 else
10782 {
10783 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10784 else puts (dlerror ());
10785 }
10786 /* dlclose (self); */
10787 }
10788 else
10789 puts (dlerror ());
10790
10791 return status;
10792 }
10793 _LT_EOF
10794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10795 (eval $ac_link) 2>&5
10796 ac_status=$?
10797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10798 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10799 (./conftest; exit; ) >&5 2>/dev/null
10800 lt_status=$?
10801 case x$lt_status in
10802 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10803 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10804 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10805 esac
10806 else :
10807 # compilation failed
10808 lt_cv_dlopen_self=no
10809 fi
10810 fi
10811 rm -fr conftest*
10812
10813
10814 fi
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10816 $as_echo "$lt_cv_dlopen_self" >&6; }
10817
10818 if test "x$lt_cv_dlopen_self" = xyes; then
10819 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10821 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10822 if ${lt_cv_dlopen_self_static+:} false; then :
10823 $as_echo_n "(cached) " >&6
10824 else
10825 if test "$cross_compiling" = yes; then :
10826 lt_cv_dlopen_self_static=cross
10827 else
10828 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10829 lt_status=$lt_dlunknown
10830 cat > conftest.$ac_ext <<_LT_EOF
10831 #line 10831 "configure"
10832 #include "confdefs.h"
10833
10834 #if HAVE_DLFCN_H
10835 #include <dlfcn.h>
10836 #endif
10837
10838 #include <stdio.h>
10839
10840 #ifdef RTLD_GLOBAL
10841 # define LT_DLGLOBAL RTLD_GLOBAL
10842 #else
10843 # ifdef DL_GLOBAL
10844 # define LT_DLGLOBAL DL_GLOBAL
10845 # else
10846 # define LT_DLGLOBAL 0
10847 # endif
10848 #endif
10849
10850 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10851 find out it does not work in some platform. */
10852 #ifndef LT_DLLAZY_OR_NOW
10853 # ifdef RTLD_LAZY
10854 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10855 # else
10856 # ifdef DL_LAZY
10857 # define LT_DLLAZY_OR_NOW DL_LAZY
10858 # else
10859 # ifdef RTLD_NOW
10860 # define LT_DLLAZY_OR_NOW RTLD_NOW
10861 # else
10862 # ifdef DL_NOW
10863 # define LT_DLLAZY_OR_NOW DL_NOW
10864 # else
10865 # define LT_DLLAZY_OR_NOW 0
10866 # endif
10867 # endif
10868 # endif
10869 # endif
10870 #endif
10871
10872 /* When -fvisbility=hidden is used, assume the code has been annotated
10873 correspondingly for the symbols needed. */
10874 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10875 void fnord () __attribute__((visibility("default")));
10876 #endif
10877
10878 void fnord () { int i=42; }
10879 int main ()
10880 {
10881 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10882 int status = $lt_dlunknown;
10883
10884 if (self)
10885 {
10886 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10887 else
10888 {
10889 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10890 else puts (dlerror ());
10891 }
10892 /* dlclose (self); */
10893 }
10894 else
10895 puts (dlerror ());
10896
10897 return status;
10898 }
10899 _LT_EOF
10900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10901 (eval $ac_link) 2>&5
10902 ac_status=$?
10903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10904 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10905 (./conftest; exit; ) >&5 2>/dev/null
10906 lt_status=$?
10907 case x$lt_status in
10908 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10909 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10910 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10911 esac
10912 else :
10913 # compilation failed
10914 lt_cv_dlopen_self_static=no
10915 fi
10916 fi
10917 rm -fr conftest*
10918
10919
10920 fi
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10922 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10923 fi
10924
10925 CPPFLAGS="$save_CPPFLAGS"
10926 LDFLAGS="$save_LDFLAGS"
10927 LIBS="$save_LIBS"
10928 ;;
10929 esac
10930
10931 case $lt_cv_dlopen_self in
10932 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10933 *) enable_dlopen_self=unknown ;;
10934 esac
10935
10936 case $lt_cv_dlopen_self_static in
10937 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10938 *) enable_dlopen_self_static=unknown ;;
10939 esac
10940 fi
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958 striplib=
10959 old_striplib=
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10961 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10962 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10963 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10964 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10966 $as_echo "yes" >&6; }
10967 else
10968 # FIXME - insert some real tests, host_os isn't really good enough
10969 case $host_os in
10970 darwin*)
10971 if test -n "$STRIP" ; then
10972 striplib="$STRIP -x"
10973 old_striplib="$STRIP -S"
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10975 $as_echo "yes" >&6; }
10976 else
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10979 fi
10980 ;;
10981 *)
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983 $as_echo "no" >&6; }
10984 ;;
10985 esac
10986 fi
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999 # Report which library types will actually be built
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11001 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11003 $as_echo "$can_build_shared" >&6; }
11004
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11006 $as_echo_n "checking whether to build shared libraries... " >&6; }
11007 test "$can_build_shared" = "no" && enable_shared=no
11008
11009 # On AIX, shared libraries and static libraries use the same namespace, and
11010 # are all built from PIC.
11011 case $host_os in
11012 aix3*)
11013 test "$enable_shared" = yes && enable_static=no
11014 if test -n "$RANLIB"; then
11015 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11016 postinstall_cmds='$RANLIB $lib'
11017 fi
11018 ;;
11019
11020 aix[4-9]*)
11021 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11022 test "$enable_shared" = yes && enable_static=no
11023 fi
11024 ;;
11025 esac
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11027 $as_echo "$enable_shared" >&6; }
11028
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11030 $as_echo_n "checking whether to build static libraries... " >&6; }
11031 # Make sure either enable_shared or enable_static is yes.
11032 test "$enable_shared" = yes || enable_static=yes
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11034 $as_echo "$enable_static" >&6; }
11035
11036
11037
11038
11039 fi
11040 ac_ext=c
11041 ac_cpp='$CPP $CPPFLAGS'
11042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11045
11046 CC="$lt_save_CC"
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060 ac_config_commands="$ac_config_commands libtool"
11061
11062
11063
11064
11065 # Only expand once:
11066
11067
11068
11069 # The tests for host and target for $enable_largefile require
11070 # canonical names.
11071
11072
11073
11074 # As the $enable_largefile decision depends on --enable-plugins we must set it
11075 # even in directories otherwise not depending on the $plugins option.
11076
11077
11078 maybe_plugins=no
11079 for ac_header in dlfcn.h
11080 do :
11081 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11082 "
11083 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11084 cat >>confdefs.h <<_ACEOF
11085 #define HAVE_DLFCN_H 1
11086 _ACEOF
11087 maybe_plugins=yes
11088 fi
11089
11090 done
11091
11092 for ac_header in windows.h
11093 do :
11094 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11095 "
11096 if test "x$ac_cv_header_windows_h" = xyes; then :
11097 cat >>confdefs.h <<_ACEOF
11098 #define HAVE_WINDOWS_H 1
11099 _ACEOF
11100 maybe_plugins=yes
11101 fi
11102
11103 done
11104
11105
11106 # Check whether --enable-plugins was given.
11107 if test "${enable_plugins+set}" = set; then :
11108 enableval=$enable_plugins; case "${enableval}" in
11109 no) plugins=no ;;
11110 *) plugins=yes
11111 if test "$maybe_plugins" != "yes" ; then
11112 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11113 fi ;;
11114 esac
11115 else
11116 plugins=$maybe_plugins
11117
11118 fi
11119
11120 if test "$plugins" = "yes"; then
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11122 $as_echo_n "checking for library containing dlsym... " >&6; }
11123 if ${ac_cv_search_dlsym+:} false; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 ac_func_search_save_LIBS=$LIBS
11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h. */
11129
11130 /* Override any GCC internal prototype to avoid an error.
11131 Use char because int might match the return type of a GCC
11132 builtin and then its argument prototype would still apply. */
11133 #ifdef __cplusplus
11134 extern "C"
11135 #endif
11136 char dlsym ();
11137 int
11138 main ()
11139 {
11140 return dlsym ();
11141 ;
11142 return 0;
11143 }
11144 _ACEOF
11145 for ac_lib in '' dl; do
11146 if test -z "$ac_lib"; then
11147 ac_res="none required"
11148 else
11149 ac_res=-l$ac_lib
11150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11151 fi
11152 if ac_fn_c_try_link "$LINENO"; then :
11153 ac_cv_search_dlsym=$ac_res
11154 fi
11155 rm -f core conftest.err conftest.$ac_objext \
11156 conftest$ac_exeext
11157 if ${ac_cv_search_dlsym+:} false; then :
11158 break
11159 fi
11160 done
11161 if ${ac_cv_search_dlsym+:} false; then :
11162
11163 else
11164 ac_cv_search_dlsym=no
11165 fi
11166 rm conftest.$ac_ext
11167 LIBS=$ac_func_search_save_LIBS
11168 fi
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11170 $as_echo "$ac_cv_search_dlsym" >&6; }
11171 ac_res=$ac_cv_search_dlsym
11172 if test "$ac_res" != no; then :
11173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11174
11175 fi
11176
11177 fi
11178
11179
11180 case "${host}" in
11181 sparc-*-solaris*|i?86-*-solaris*)
11182 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11183 # were mutually exclusive until Solaris 11.3. Without procfs support,
11184 # the bfd/ elf module cannot provide certain routines such as
11185 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11186 # explicitly requested large-file support through the
11187 # --enable-largefile switch, disable large-file support in favor of
11188 # procfs support.
11189 #
11190 # Check if <sys/procfs.h> is incompatible with large-file support.
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11193 #define _FILE_OFFSET_BITS 64
11194 #define _STRUCTURED_PROC 1
11195 #include <sys/procfs.h>
11196 int
11197 main ()
11198 {
11199
11200 ;
11201 return 0;
11202 }
11203 _ACEOF
11204 if ac_fn_c_try_compile "$LINENO"; then :
11205 acx_cv_procfs_lfs=yes
11206 else
11207 acx_cv_procfs_lfs=no
11208 fi
11209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11210 #
11211 # Forcefully disable large-file support only if necessary, gdb is in
11212 # tree and enabled.
11213 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11214 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11215 : ${enable_largefile="no"}
11216 if test "$plugins" = yes; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11218 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11219 $as_echo "$as_me: WARNING:
11220 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11221 plugins=no
11222 fi
11223 fi
11224 #
11225 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11226 # benefit of g++ 9+ which predefines it on Solaris.
11227 if test "$enable_largefile" = no; then
11228 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11229
11230 fi
11231 ;;
11232 esac
11233
11234 # Check whether --enable-largefile was given.
11235 if test "${enable_largefile+set}" = set; then :
11236 enableval=$enable_largefile;
11237 fi
11238
11239 if test "$enable_largefile" != no; then
11240
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11242 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11243 if ${ac_cv_sys_largefile_CC+:} false; then :
11244 $as_echo_n "(cached) " >&6
11245 else
11246 ac_cv_sys_largefile_CC=no
11247 if test "$GCC" != yes; then
11248 ac_save_CC=$CC
11249 while :; do
11250 # IRIX 6.2 and later do not support large files by default,
11251 # so use the C compiler's -n32 option if that helps.
11252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11254 #include <sys/types.h>
11255 /* Check that off_t can represent 2**63 - 1 correctly.
11256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11257 since some C++ compilers masquerading as C compilers
11258 incorrectly reject 9223372036854775807. */
11259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11261 && LARGE_OFF_T % 2147483647 == 1)
11262 ? 1 : -1];
11263 int
11264 main ()
11265 {
11266
11267 ;
11268 return 0;
11269 }
11270 _ACEOF
11271 if ac_fn_c_try_compile "$LINENO"; then :
11272 break
11273 fi
11274 rm -f core conftest.err conftest.$ac_objext
11275 CC="$CC -n32"
11276 if ac_fn_c_try_compile "$LINENO"; then :
11277 ac_cv_sys_largefile_CC=' -n32'; break
11278 fi
11279 rm -f core conftest.err conftest.$ac_objext
11280 break
11281 done
11282 CC=$ac_save_CC
11283 rm -f conftest.$ac_ext
11284 fi
11285 fi
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11287 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11288 if test "$ac_cv_sys_largefile_CC" != no; then
11289 CC=$CC$ac_cv_sys_largefile_CC
11290 fi
11291
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11293 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11294 if ${ac_cv_sys_file_offset_bits+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 while :; do
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11300 #include <sys/types.h>
11301 /* Check that off_t can represent 2**63 - 1 correctly.
11302 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11303 since some C++ compilers masquerading as C compilers
11304 incorrectly reject 9223372036854775807. */
11305 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11307 && LARGE_OFF_T % 2147483647 == 1)
11308 ? 1 : -1];
11309 int
11310 main ()
11311 {
11312
11313 ;
11314 return 0;
11315 }
11316 _ACEOF
11317 if ac_fn_c_try_compile "$LINENO"; then :
11318 ac_cv_sys_file_offset_bits=no; break
11319 fi
11320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11323 #define _FILE_OFFSET_BITS 64
11324 #include <sys/types.h>
11325 /* Check that off_t can represent 2**63 - 1 correctly.
11326 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11327 since some C++ compilers masquerading as C compilers
11328 incorrectly reject 9223372036854775807. */
11329 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11330 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11331 && LARGE_OFF_T % 2147483647 == 1)
11332 ? 1 : -1];
11333 int
11334 main ()
11335 {
11336
11337 ;
11338 return 0;
11339 }
11340 _ACEOF
11341 if ac_fn_c_try_compile "$LINENO"; then :
11342 ac_cv_sys_file_offset_bits=64; break
11343 fi
11344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11345 ac_cv_sys_file_offset_bits=unknown
11346 break
11347 done
11348 fi
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11350 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11351 case $ac_cv_sys_file_offset_bits in #(
11352 no | unknown) ;;
11353 *)
11354 cat >>confdefs.h <<_ACEOF
11355 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11356 _ACEOF
11357 ;;
11358 esac
11359 rm -rf conftest*
11360 if test $ac_cv_sys_file_offset_bits = unknown; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11362 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11363 if ${ac_cv_sys_large_files+:} false; then :
11364 $as_echo_n "(cached) " >&6
11365 else
11366 while :; do
11367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11369 #include <sys/types.h>
11370 /* Check that off_t can represent 2**63 - 1 correctly.
11371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11372 since some C++ compilers masquerading as C compilers
11373 incorrectly reject 9223372036854775807. */
11374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11376 && LARGE_OFF_T % 2147483647 == 1)
11377 ? 1 : -1];
11378 int
11379 main ()
11380 {
11381
11382 ;
11383 return 0;
11384 }
11385 _ACEOF
11386 if ac_fn_c_try_compile "$LINENO"; then :
11387 ac_cv_sys_large_files=no; break
11388 fi
11389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11392 #define _LARGE_FILES 1
11393 #include <sys/types.h>
11394 /* Check that off_t can represent 2**63 - 1 correctly.
11395 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11396 since some C++ compilers masquerading as C compilers
11397 incorrectly reject 9223372036854775807. */
11398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11400 && LARGE_OFF_T % 2147483647 == 1)
11401 ? 1 : -1];
11402 int
11403 main ()
11404 {
11405
11406 ;
11407 return 0;
11408 }
11409 _ACEOF
11410 if ac_fn_c_try_compile "$LINENO"; then :
11411 ac_cv_sys_large_files=1; break
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11414 ac_cv_sys_large_files=unknown
11415 break
11416 done
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11419 $as_echo "$ac_cv_sys_large_files" >&6; }
11420 case $ac_cv_sys_large_files in #(
11421 no | unknown) ;;
11422 *)
11423 cat >>confdefs.h <<_ACEOF
11424 #define _LARGE_FILES $ac_cv_sys_large_files
11425 _ACEOF
11426 ;;
11427 esac
11428 rm -rf conftest*
11429 fi
11430
11431
11432 fi
11433
11434
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
11436 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
11437 if ${gcc_cv_prog_cmp_skip+:} false; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 echo abfoo >t1
11441 echo cdfoo >t2
11442 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
11443 if cmp t1 t2 2 2 > /dev/null 2>&1; then
11444 if cmp t1 t2 1 1 > /dev/null 2>&1; then
11445 :
11446 else
11447 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
11448 fi
11449 fi
11450 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
11451 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
11452 :
11453 else
11454 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
11455 fi
11456 fi
11457 rm t1 t2
11458
11459 fi
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
11461 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
11462 do_compare="$gcc_cv_prog_cmp_skip"
11463
11464
11465
11466 # Check whether --enable-targets was given.
11467 if test "${enable_targets+set}" = set; then :
11468 enableval=$enable_targets; case "${enableval}" in
11469 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11470 ;;
11471 no) enable_targets= ;;
11472 *) enable_targets=$enableval ;;
11473 esac
11474 fi
11475
11476 ac_checking=
11477 . ${srcdir}/../bfd/development.sh
11478 test "$development" = true && ac_checking=yes
11479 # Check whether --enable-checking was given.
11480 if test "${enable_checking+set}" = set; then :
11481 enableval=$enable_checking; case "${enableval}" in
11482 no|none) ac_checking= ;;
11483 *) ac_checking=yes ;;
11484 esac
11485 fi
11486 if test x$ac_checking != x ; then
11487
11488 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11489
11490 fi
11491
11492 # PR gas/19109
11493 # Decide the default method for compressing debug sections.
11494 ac_default_compressed_debug_sections=unset
11495 # Provide a configure time option to override our default.
11496 # Check whether --enable-compressed_debug_sections was given.
11497 if test "${enable_compressed_debug_sections+set}" = set; then :
11498 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
11499 ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
11500 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
11501 *) ac_default_compressed_debug_sections=unset ;;
11502 esac
11503 fi
11504
11505 # PR gas/19520
11506 # Decide if x86 assembler should generate relax relocations.
11507 ac_default_x86_relax_relocations=unset
11508 # Provide a configure time option to override our default.
11509 # Check whether --enable-x86_relax_relocations was given.
11510 if test "${enable_x86_relax_relocations+set}" = set; then :
11511 enableval=$enable_x86_relax_relocations; case "${enableval}" in
11512 no) ac_default_x86_relax_relocations=0 ;;
11513 esac
11514 fi
11515
11516 # Decide if ELF assembler should generate common symbols with the
11517 # STT_COMMON type.
11518 ac_default_elf_stt_common=unset
11519 # Provide a configure time option to override our default.
11520 # Check whether --enable-elf_stt_common was given.
11521 if test "${enable_elf_stt_common+set}" = set; then :
11522 enableval=$enable_elf_stt_common; case "${enableval}" in
11523 yes) ac_default_elf_stt_common=1 ;;
11524 esac
11525 fi
11526
11527
11528 # Decide if the ELF assembler should default to generating
11529 # GNU Build notes if none are provided by the input.
11530 ac_default_generate_build_notes=0
11531 # Provide a configuration option to override the default.
11532 # Check whether --enable-generate_build_notes was given.
11533 if test "${enable_generate_build_notes+set}" = set; then :
11534 enableval=$enable_generate_build_notes; case "${enableval}" in
11535 yes) ac_default_generate_build_notes=1 ;;
11536 no) ac_default_generate_build_notes=0 ;;
11537 esac
11538 fi
11539
11540 # Decide if the MIPS assembler should default to enable MIPS fix Loongson3
11541 # LLSC errata.
11542 ac_default_mips_fix_loongson3_llsc=unset
11543 # Provide a configuration option to override the default.
11544 # Check whether --enable-mips-fix-loongson3-llsc was given.
11545 if test "${enable_mips_fix_loongson3_llsc+set}" = set; then :
11546 enableval=$enable_mips_fix_loongson3_llsc; case "${enableval}" in
11547 yes) ac_default_mips_fix_loongson3_llsc=1 ;;
11548 no) ac_default_mips_fix_loongson3_llsc=0 ;;
11549 esac
11550 fi
11551
11552 # Decide if the x86 ELF assembler should default to generating GNU x86
11553 # used ISA and feature properties.
11554 ac_default_generate_x86_used_note=unset
11555 # Provide a configuration option to override the default.
11556 # Check whether --enable-x86-used-note was given.
11557 if test "${enable_x86_used_note+set}" = set; then :
11558 enableval=$enable_x86_used_note; case "${enableval}" in
11559 yes) ac_default_generate_x86_used_note=1 ;;
11560 no) ac_default_generate_x86_used_note=0 ;;
11561 esac
11562 fi
11563
11564 # Decide if the RISC-V ELF assembler should default to generating attribute.
11565 ac_default_generate_riscv_attr=unset
11566 # Provide a configuration option to override the default.
11567 # Check whether --enable-default-riscv-attribute was given.
11568 if test "${enable_default_riscv_attribute+set}" = set; then :
11569 enableval=$enable_default_riscv_attribute; case "${enableval}" in
11570 yes) ac_default_generate_riscv_attr=1 ;;
11571 no) ac_default_generate_riscv_attr=0 ;;
11572 esac
11573 fi
11574
11575 using_cgen=no
11576
11577
11578 # Set the 'development' global.
11579 . $srcdir/../bfd/development.sh
11580
11581 # Set acp_cpp_for_build variable
11582 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11583
11584 # Default set of GCC warnings to enable.
11585 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11586 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11587
11588 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590 /* end confdefs.h. */
11591 __GNUC__
11592 _ACEOF
11593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11594 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11595
11596 else
11597 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11598 fi
11599 rm -f conftest*
11600
11601
11602 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11604 /* end confdefs.h. */
11605 __GNUC__
11606 _ACEOF
11607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11608 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11609
11610 else
11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612 /* end confdefs.h. */
11613 __clang__
11614 _ACEOF
11615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11616 $EGREP "^__clang__$" >/dev/null 2>&1; then :
11617 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11618 fi
11619 rm -f conftest*
11620
11621 fi
11622 rm -f conftest*
11623
11624
11625 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11626 WARN_WRITE_STRINGS=""
11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628 /* end confdefs.h. */
11629 __GNUC__
11630 _ACEOF
11631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11632 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11633
11634 else
11635 WARN_WRITE_STRINGS="-Wwrite-strings"
11636 fi
11637 rm -f conftest*
11638
11639
11640 # Verify CC_FOR_BUILD to be compatible with warning flags
11641
11642 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11645 __GNUC__
11646 _ACEOF
11647 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11648 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11649
11650 else
11651 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
11652 fi
11653 rm -f conftest*
11654
11655
11656 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11659 __GNUC__
11660 _ACEOF
11661 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11662 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11663
11664 else
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11667 __clang__
11668 _ACEOF
11669 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11670 $EGREP "^__clang__$" >/dev/null 2>&1; then :
11671 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
11672 fi
11673 rm -f conftest*
11674
11675 fi
11676 rm -f conftest*
11677
11678
11679 # Check whether --enable-werror was given.
11680 if test "${enable_werror+set}" = set; then :
11681 enableval=$enable_werror; case "${enableval}" in
11682 yes | y) ERROR_ON_WARNING="yes" ;;
11683 no | n) ERROR_ON_WARNING="no" ;;
11684 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11685 esac
11686 fi
11687
11688
11689 # Disable -Wformat by default when using gcc on mingw
11690 case "${host}" in
11691 *-*-mingw32*)
11692 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11693 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11694 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
11695 fi
11696 ;;
11697 *) ;;
11698 esac
11699
11700 # Enable -Werror by default when using gcc. Turn it off for releases.
11701 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11702 ERROR_ON_WARNING=yes
11703 fi
11704
11705 NO_WERROR=
11706 if test "${ERROR_ON_WARNING}" = yes ; then
11707 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11708 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
11709 NO_WERROR="-Wno-error"
11710 fi
11711
11712 if test "${GCC}" = yes ; then
11713 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11714 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
11715 fi
11716
11717 # Check whether --enable-build-warnings was given.
11718 if test "${enable_build_warnings+set}" = set; then :
11719 enableval=$enable_build_warnings; case "${enableval}" in
11720 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11721 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
11722 no) if test "${GCC}" = yes ; then
11723 WARN_CFLAGS="-w"
11724 WARN_CFLAGS_FOR_BUILD="-w"
11725 fi;;
11726 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11727 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
11728 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
11729 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11730 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
11731 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
11732 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
11733 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11734 esac
11735 fi
11736
11737
11738 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11739 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11740 fi
11741
11742
11743
11744
11745
11746
11747
11748 # Generate a header file
11749 ac_config_headers="$ac_config_headers config.h:config.in"
11750
11751
11752
11753 # Check whether --with-cpu was given.
11754 if test "${with_cpu+set}" = set; then :
11755 withval=$with_cpu;
11756 cat >>confdefs.h <<_ACEOF
11757 #define TARGET_WITH_CPU "${with_cpu}"
11758 _ACEOF
11759
11760 fi
11761
11762
11763 # PR 14072
11764
11765
11766 # If we are on a DOS filesystem, we must use gdb.ini rather than
11767 # .gdbinit.
11768 case "${host}" in
11769 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11770 GDBINIT="gdb.ini"
11771 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11772
11773 ;;
11774 *)
11775 GDBINIT=".gdbinit"
11776 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11777
11778 ;;
11779 esac
11780
11781
11782 #We need this for the host.
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11784 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11785 if ${ac_cv_c_bigendian+:} false; then :
11786 $as_echo_n "(cached) " >&6
11787 else
11788 ac_cv_c_bigendian=unknown
11789 # See if we're dealing with a universal compiler.
11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791 /* end confdefs.h. */
11792 #ifndef __APPLE_CC__
11793 not a universal capable compiler
11794 #endif
11795 typedef int dummy;
11796
11797 _ACEOF
11798 if ac_fn_c_try_compile "$LINENO"; then :
11799
11800 # Check for potential -arch flags. It is not universal unless
11801 # there are at least two -arch flags with different values.
11802 ac_arch=
11803 ac_prev=
11804 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11805 if test -n "$ac_prev"; then
11806 case $ac_word in
11807 i?86 | x86_64 | ppc | ppc64)
11808 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11809 ac_arch=$ac_word
11810 else
11811 ac_cv_c_bigendian=universal
11812 break
11813 fi
11814 ;;
11815 esac
11816 ac_prev=
11817 elif test "x$ac_word" = "x-arch"; then
11818 ac_prev=arch
11819 fi
11820 done
11821 fi
11822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 if test $ac_cv_c_bigendian = unknown; then
11824 # See if sys/param.h defines the BYTE_ORDER macro.
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 ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11834 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11835 && LITTLE_ENDIAN)
11836 bogus endian macros
11837 #endif
11838
11839 ;
11840 return 0;
11841 }
11842 _ACEOF
11843 if ac_fn_c_try_compile "$LINENO"; then :
11844 # It does; now see whether it defined to BIG_ENDIAN or not.
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11847 #include <sys/types.h>
11848 #include <sys/param.h>
11849
11850 int
11851 main ()
11852 {
11853 #if BYTE_ORDER != BIG_ENDIAN
11854 not big endian
11855 #endif
11856
11857 ;
11858 return 0;
11859 }
11860 _ACEOF
11861 if ac_fn_c_try_compile "$LINENO"; then :
11862 ac_cv_c_bigendian=yes
11863 else
11864 ac_cv_c_bigendian=no
11865 fi
11866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867 fi
11868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869 fi
11870 if test $ac_cv_c_bigendian = unknown; then
11871 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11874 #include <limits.h>
11875
11876 int
11877 main ()
11878 {
11879 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11880 bogus endian macros
11881 #endif
11882
11883 ;
11884 return 0;
11885 }
11886 _ACEOF
11887 if ac_fn_c_try_compile "$LINENO"; then :
11888 # It does; now see whether it defined to _BIG_ENDIAN or not.
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11891 #include <limits.h>
11892
11893 int
11894 main ()
11895 {
11896 #ifndef _BIG_ENDIAN
11897 not big endian
11898 #endif
11899
11900 ;
11901 return 0;
11902 }
11903 _ACEOF
11904 if ac_fn_c_try_compile "$LINENO"; then :
11905 ac_cv_c_bigendian=yes
11906 else
11907 ac_cv_c_bigendian=no
11908 fi
11909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11910 fi
11911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11912 fi
11913 if test $ac_cv_c_bigendian = unknown; then
11914 # Compile a test program.
11915 if test "$cross_compiling" = yes; then :
11916 # Try to guess by grepping values from an object file.
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11919 short int ascii_mm[] =
11920 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11921 short int ascii_ii[] =
11922 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11923 int use_ascii (int i) {
11924 return ascii_mm[i] + ascii_ii[i];
11925 }
11926 short int ebcdic_ii[] =
11927 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11928 short int ebcdic_mm[] =
11929 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11930 int use_ebcdic (int i) {
11931 return ebcdic_mm[i] + ebcdic_ii[i];
11932 }
11933 extern int foo;
11934
11935 int
11936 main ()
11937 {
11938 return use_ascii (foo) == use_ebcdic (foo);
11939 ;
11940 return 0;
11941 }
11942 _ACEOF
11943 if ac_fn_c_try_compile "$LINENO"; then :
11944 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11945 ac_cv_c_bigendian=yes
11946 fi
11947 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11948 if test "$ac_cv_c_bigendian" = unknown; then
11949 ac_cv_c_bigendian=no
11950 else
11951 # finding both strings is unlikely to happen, but who knows?
11952 ac_cv_c_bigendian=unknown
11953 fi
11954 fi
11955 fi
11956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957 else
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11960 $ac_includes_default
11961 int
11962 main ()
11963 {
11964
11965 /* Are we little or big endian? From Harbison&Steele. */
11966 union
11967 {
11968 long int l;
11969 char c[sizeof (long int)];
11970 } u;
11971 u.l = 1;
11972 return u.c[sizeof (long int) - 1] == 1;
11973
11974 ;
11975 return 0;
11976 }
11977 _ACEOF
11978 if ac_fn_c_try_run "$LINENO"; then :
11979 ac_cv_c_bigendian=no
11980 else
11981 ac_cv_c_bigendian=yes
11982 fi
11983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11984 conftest.$ac_objext conftest.beam conftest.$ac_ext
11985 fi
11986
11987 fi
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11990 $as_echo "$ac_cv_c_bigendian" >&6; }
11991 case $ac_cv_c_bigendian in #(
11992 yes)
11993 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11994 ;; #(
11995 no)
11996 ;; #(
11997 universal)
11998
11999 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12000
12001 ;; #(
12002 *)
12003 as_fn_error $? "unknown endianness
12004 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12005 esac
12006
12007
12008 te_file=generic
12009
12010 # Makefile target for installing gas in $(tooldir)/bin.
12011 install_tooldir=install-exec-tooldir
12012
12013 canon_targets=""
12014 all_targets=no
12015 if test -n "$enable_targets" ; then
12016 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12017 if test $t = "all"; then
12018 all_targets=yes
12019 continue
12020 fi
12021 result=`$ac_config_sub $t 2>/dev/null`
12022 if test -n "$result" ; then
12023 canon_targets="$canon_targets $result"
12024 # else
12025 # # Permit "all", etc. We don't support it yet though.
12026 # canon_targets="$canon_targets $t"
12027 fi
12028 done
12029 _gas_uniq_list="$canon_targets"
12030 _gas_uniq_newlist=""
12031 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12032 case $_gas_uniq_i in
12033 _gas_uniq_dummy) ;;
12034 *) case " $_gas_uniq_newlist " in
12035 *" $_gas_uniq_i "*) ;;
12036 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12037 esac ;;
12038 esac
12039 done
12040 canon_targets=$_gas_uniq_newlist
12041
12042 fi
12043
12044 emulations=""
12045
12046 for this_target in $target $canon_targets ; do
12047
12048 targ=${this_target}
12049 . ${srcdir}/configure.tgt
12050
12051 case ${target_cpu} in
12052 crisv32)
12053
12054 cat >>confdefs.h <<_ACEOF
12055 #define DEFAULT_CRIS_ARCH $arch
12056 _ACEOF
12057
12058 ;;
12059 esac
12060
12061 if test ${this_target} = $target ; then
12062 target_cpu_type=${cpu_type}
12063 elif test ${target_cpu_type} != ${cpu_type} ; then
12064 continue
12065 fi
12066
12067 generic_target=${cpu_type}-${target_vendor}-${target_os}
12068 case ${generic_target} in
12069 i386-*-msdosdjgpp* \
12070 | i386-*-go32* \
12071 | i386-go32-rtems*)
12072
12073 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12074
12075 ;;
12076
12077 i386-*-linux-* | x86_64-*-linux-*)
12078 if test ${this_target} = $target \
12079 && test ${ac_default_generate_x86_used_note} = unset; then
12080 ac_default_generate_x86_used_note=1
12081 fi
12082 ;;
12083
12084 i386-*-solaris2 \
12085 | x86_64-*-solaris2 \
12086 | i386-*-solaris2.[0-9] \
12087 | i386-*-solaris2.1[01] \
12088 | x86_64-*-solaris2.1[01])
12089 if test ${this_target} = $target \
12090 && test ${ac_default_x86_relax_relocations} = unset; then
12091 ac_default_x86_relax_relocations=0
12092 fi
12093 ;;
12094
12095 microblaze*)
12096 ;;
12097
12098 ppc-*-aix[5-9].*)
12099
12100 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12101
12102 ;;
12103 ppc-*-solaris*)
12104 if test ${this_target} = $target; then
12105
12106 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12107
12108 fi
12109 if test x${endian} = xbig; then
12110 as_fn_error $? "Solaris must be configured little endian" "$LINENO" 5
12111 fi
12112 ;;
12113 esac
12114
12115 if test ${this_target} = $target ; then
12116 endian_def=
12117 if test x${endian} = xbig; then
12118 endian_def=1
12119 elif test x${endian} = xlittle; then
12120 endian_def=0
12121 fi
12122 if test x${endian_def} != x; then
12123
12124 cat >>confdefs.h <<_ACEOF
12125 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12126 _ACEOF
12127
12128 fi
12129 fi
12130
12131 # Other random stuff.
12132
12133 case ${cpu_type} in
12134 mips)
12135 # Set mips_cpu to the name of the default CPU.
12136 case ${target_cpu} in
12137 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12138 mips_cpu=from-abi
12139 ;;
12140 mipsisa32 | mipsisa32el)
12141 mips_cpu=mips32
12142 ;;
12143 mipsisa32r2 | mipsisa32r2el)
12144 mips_cpu=mips32r2
12145 ;;
12146 mipsisa32r3 | mipsisa32r3el)
12147 mips_cpu=mips32r3
12148 ;;
12149 mipsisa32r5 | mipsisa32r5el)
12150 mips_cpu=mips32r5
12151 ;;
12152 mipsisa32r6 | mipsisa32r6el)
12153 mips_cpu=mips32r6
12154 ;;
12155 mipsisa64 | mipsisa64el)
12156 mips_cpu=mips64
12157 ;;
12158 mipsisa64r2 | mipsisa64r2el)
12159 mips_cpu=mips64r2
12160 ;;
12161 mipsisa64r3 | mipsisa64r3el)
12162 mips_cpu=mips64r3
12163 ;;
12164 mipsisa64r5 | mipsisa64r5el)
12165 mips_cpu=mips64r5
12166 ;;
12167 mipsisa64r6 | mipsisa64r6el)
12168 mips_cpu=mips64r6
12169 ;;
12170 mipstx39 | mipstx39el)
12171 mips_cpu=r3900
12172 ;;
12173 mips64vr | mips64vrel)
12174 mips_cpu=vr4100
12175 ;;
12176 mipsisa32r2* | mipsisa64r2*)
12177 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12178 ;;
12179 mipsisa32r6* | mipsisa64r6*)
12180 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12181 ;;
12182 mips64* | mipsisa64* | mipsisa32*)
12183 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12184 ;;
12185 mips*)
12186 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12187 ;;
12188 *)
12189 as_fn_error $? "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12190 ;;
12191 esac
12192 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12193 # binaries. It's a GNU extension that some OSes don't understand.
12194 case ${target} in
12195 *-*-irix*)
12196 use_e_mips_abi_o32=0
12197 ;;
12198 *)
12199 use_e_mips_abi_o32=1
12200 ;;
12201 esac
12202 # Decide whether to generate 32-bit or 64-bit code by default.
12203 # Used to resolve -march=from-abi when an embedded ABI is selected.
12204 case ${target} in
12205 mips64*-*-* | mipsisa64*-*-*)
12206 mips_default_64bit=1
12207 ;;
12208 *)
12209 mips_default_64bit=0
12210 ;;
12211 esac
12212 # Decide which ABI to target by default.
12213 case ${target} in
12214 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \
12215 | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*)
12216 mips_default_abi=N32_ABI
12217 ;;
12218 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12219 mips_default_abi=O32_ABI
12220 ;;
12221 mips64*-openbsd*)
12222 mips_default_abi=N64_ABI
12223 ;;
12224 *)
12225 mips_default_abi=NO_ABI
12226 ;;
12227 esac
12228
12229 cat >>confdefs.h <<_ACEOF
12230 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12231 _ACEOF
12232
12233
12234 cat >>confdefs.h <<_ACEOF
12235 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12236 _ACEOF
12237
12238
12239 cat >>confdefs.h <<_ACEOF
12240 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12241 _ACEOF
12242
12243
12244 cat >>confdefs.h <<_ACEOF
12245 #define MIPS_DEFAULT_ABI $mips_default_abi
12246 _ACEOF
12247
12248 ;;
12249 esac
12250
12251 # Do we need the opcodes library?
12252 case ${cpu_type} in
12253 vax | tic30)
12254 ;;
12255
12256 *)
12257 need_opcodes=yes
12258
12259 case "${enable_shared}" in
12260 yes) shared_opcodes=true ;;
12261 *opcodes*) shared_opcodes=true ;;
12262 *) shared_opcodes=false ;;
12263 esac
12264 ;;
12265 esac
12266
12267 # Any other special object files needed ?
12268 case ${cpu_type} in
12269
12270 bfin)
12271 for f in config/bfin-parse.o config/bfin-lex-wrapper.o; do
12272 case " $extra_objects " in
12273 *" $f "*) ;;
12274 *) extra_objects="$extra_objects $f" ;;
12275 esac
12276 done
12277 ;;
12278
12279 bpf)
12280 if test $this_target = $target ; then
12281
12282 cat >>confdefs.h <<_ACEOF
12283 #define DEFAULT_ARCH "${arch}"
12284 _ACEOF
12285
12286 fi
12287 using_cgen=yes
12288 ;;
12289 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12290 using_cgen=yes
12291 ;;
12292
12293 loongarch)
12294 for f in config/loongarch-parse.o config/loongarch-lex-wrapper.o; do
12295 case " $extra_objects " in
12296 *" $f "*) ;;
12297 *) extra_objects="$extra_objects $f" ;;
12298 esac
12299 done
12300 # --target=loongarch[32|64]-*-*. */
12301 if test $this_target = $target ; then
12302
12303 cat >>confdefs.h <<_ACEOF
12304 #define DEFAULT_ARCH "${arch}"
12305 _ACEOF
12306
12307 fi
12308 ;;
12309
12310 m32c)
12311 using_cgen=yes
12312 ;;
12313 frv)
12314 using_cgen=yes
12315 ;;
12316 m68k)
12317 f=config/m68k-parse.o
12318 case " $extra_objects " in
12319 *" $f "*) ;;
12320 *) extra_objects="$extra_objects $f" ;;
12321 esac
12322 ;;
12323
12324 mep)
12325 using_cgen=yes
12326 ;;
12327
12328 mips)
12329 for f in itbl-parse.o itbl-lex-wrapper.o itbl-ops.o; do
12330 case " $extra_objects " in
12331 *" $f "*) ;;
12332 *) extra_objects="$extra_objects $f" ;;
12333 esac
12334 done
12335 ;;
12336
12337 mt)
12338 using_cgen=yes
12339 ;;
12340
12341 nds32)
12342 # setup NDS32_LINUX_TOOLCHAIN definition
12343 if test "linux" = $em; then
12344
12345 $as_echo "#define NDS32_LINUX_TOOLCHAIN 1" >>confdefs.h
12346
12347 else
12348
12349 $as_echo "#define NDS32_LINUX_TOOLCHAIN 0" >>confdefs.h
12350
12351 fi
12352
12353 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12354 # based on arch_name.
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12356 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12357 if test "x${with_arch}" != x; then
12358 case ${with_arch} in
12359 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12360
12361 cat >>confdefs.h <<_ACEOF
12362 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12363 _ACEOF
12364
12365 ;;
12366 *)
12367 as_fn_error $? "This kind of arch name does *NOT* exist!" "$LINENO" 5
12368 ;;
12369 esac
12370 fi
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12372 $as_echo "$with_arch" >&6; }
12373
12374 # Decide features one by one.
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12376 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12377 if test "x${enable_dx_regs}" = xyes; then
12378
12379 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12380
12381 else
12382
12383 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12384
12385 fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12387 $as_echo "$enable_dx_regs" >&6; }
12388
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12390 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12391 if test "x${enable_perf_ext}" = xno; then
12392
12393 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12394
12395 else
12396
12397 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12398
12399 fi
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12401 $as_echo "$enable_perf_ext" >&6; }
12402
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12404 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12405 if test "x${enable_perf_ext2}" = xno; then
12406
12407 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12408
12409 else
12410
12411 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12412
12413 fi
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12415 $as_echo "$enable_perf_ext2" >&6; }
12416
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12418 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12419 if test "x${enable_string_ext}" = xno; then
12420
12421 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12422
12423 else
12424
12425 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12426
12427 fi
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12429 $as_echo "$enable_string_ext" >&6; }
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12432 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12433 if test "x${enable_audio_ext}" = xno; then
12434
12435 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12436
12437 else
12438
12439 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12440
12441 fi
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12443 $as_echo "$enable_audio_ext" >&6; }
12444
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dsp-ext" >&5
12446 $as_echo_n "checking for default configuration of --enable-dsp-ext... " >&6; }
12447 if test "x${enable_dsp_ext}" = xno; then
12448
12449 $as_echo "#define NDS32_DEFAULT_DSP_EXT 0" >>confdefs.h
12450
12451 else
12452
12453 $as_echo "#define NDS32_DEFAULT_DSP_EXT 1" >>confdefs.h
12454
12455 fi
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dsp_ext" >&5
12457 $as_echo "$enable_dsp_ext" >&6; }
12458
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-zol-ext" >&5
12460 $as_echo_n "checking for default configuration of --enable-zol-ext... " >&6; }
12461 if test "x${enable_zol_ext}" = xno; then
12462
12463 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 0" >>confdefs.h
12464
12465 else
12466
12467 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 1" >>confdefs.h
12468
12469 fi
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zol_ext" >&5
12471 $as_echo "$enable_zol_ext" >&6; }
12472 ;;
12473
12474 aarch64 | i386 | s390 | sparc)
12475 if test $this_target = $target ; then
12476
12477 cat >>confdefs.h <<_ACEOF
12478 #define DEFAULT_ARCH "${arch}"
12479 _ACEOF
12480
12481 fi
12482 ;;
12483
12484 riscv)
12485 # --target=riscv[32|64]-*-*. */
12486 if test $this_target = $target ; then
12487
12488 cat >>confdefs.h <<_ACEOF
12489 #define DEFAULT_ARCH "${arch}"
12490 _ACEOF
12491
12492 fi
12493
12494 # --with-arch=<value>. The syntax of <value> is same as Gas option -march.
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12496 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12497 if test "x${with_arch}" != x; then
12498
12499 cat >>confdefs.h <<_ACEOF
12500 #define DEFAULT_RISCV_ARCH_WITH_EXT "$with_arch"
12501 _ACEOF
12502
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12505 $as_echo "$with_arch" >&6; }
12506
12507 # --with-isa-spec=[2.2|20190608|20191213].
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-isa-spec" >&5
12509 $as_echo_n "checking for default configuration of --with-isa-spec... " >&6; }
12510 if test "x${with_isa_spec}" != x; then
12511
12512 cat >>confdefs.h <<_ACEOF
12513 #define DEFAULT_RISCV_ISA_SPEC "$with_isa_spec"
12514 _ACEOF
12515
12516 fi
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_isa_spec" >&5
12518 $as_echo "$with_isa_spec" >&6; }
12519
12520 # --with-priv-spec=[1.9.1|1.10|1.11|1.12].
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-priv-spec" >&5
12522 $as_echo_n "checking for default configuration of --with-priv-spec... " >&6; }
12523 if test "x${with_priv_spec}" != x; then
12524
12525 cat >>confdefs.h <<_ACEOF
12526 #define DEFAULT_RISCV_PRIV_SPEC "$with_priv_spec"
12527 _ACEOF
12528
12529 fi
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_priv_spec" >&5
12531 $as_echo "$with_priv_spec" >&6; }
12532 ;;
12533
12534 rl78)
12535 f=config/rl78-parse.o
12536 case " $extra_objects " in
12537 *" $f "*) ;;
12538 *) extra_objects="$extra_objects $f" ;;
12539 esac
12540 ;;
12541
12542 rx)
12543 f=config/rx-parse.o
12544 case " $extra_objects " in
12545 *" $f "*) ;;
12546 *) extra_objects="$extra_objects $f" ;;
12547 esac
12548 ;;
12549
12550 xstormy16)
12551 using_cgen=yes
12552 ;;
12553
12554 xtensa)
12555 f=config/xtensa-relax.o
12556 case " $extra_objects " in
12557 *" $f "*) ;;
12558 *) extra_objects="$extra_objects $f" ;;
12559 esac
12560 ;;
12561
12562 *)
12563 ;;
12564 esac
12565
12566 if test $using_cgen = yes ; then
12567 f=cgen.o
12568 case " $extra_objects " in
12569 *" $f "*) ;;
12570 *) extra_objects="$extra_objects $f" ;;
12571 esac
12572 fi
12573
12574 # See if we really can support this configuration with the emulation code.
12575
12576 if test $this_target = $target ; then
12577 obj_format=$fmt
12578 te_file=$em
12579 fi
12580
12581 case ${te_file} in
12582 vms)
12583 f=config/te-vms.o
12584 case " $extra_objects " in
12585 *" $f "*) ;;
12586 *) extra_objects="$extra_objects $f" ;;
12587 esac ;;
12588 esac
12589
12590 # From target name and format, produce a list of supported emulations.
12591
12592 case ${generic_target}-${fmt} in
12593 mips-*-*-*) case "$endian" in
12594 big) emulation="mipsbelf mipslelf mipself" ;;
12595 *) emulation="mipslelf mipsbelf mipself" ;;
12596 esac ;;
12597 # i386-pc-pe-coff != i386-pc-coff.
12598 i386-*-pe-coff) ;;
12599 # Uncommenting the next line will turn on support for i386 AOUT
12600 # for the default linux configuration
12601 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12602 #
12603 i386-*-aout) emulation="i386aout" ;;
12604 i386-*-coff) emulation="i386coff" ;;
12605 i386-*-elf) emulation="i386elf" ;;
12606
12607 # Always all formats. The first stated emulation becomes the default.
12608 cris-*-*aout*) emulation="crisaout criself" ;;
12609 cris-*-*) emulation="criself crisaout" ;;
12610 esac
12611
12612 emulations="$emulations $emulation"
12613
12614 done
12615
12616 if test ${ac_default_x86_relax_relocations} = unset; then
12617 ac_default_x86_relax_relocations=1
12618 fi
12619
12620 cat >>confdefs.h <<_ACEOF
12621 #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
12622 _ACEOF
12623
12624
12625 if test ${ac_default_elf_stt_common} = unset; then
12626 ac_default_elf_stt_common=0
12627 fi
12628
12629 cat >>confdefs.h <<_ACEOF
12630 #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
12631 _ACEOF
12632
12633
12634
12635 cat >>confdefs.h <<_ACEOF
12636 #define DEFAULT_GENERATE_BUILD_NOTES $ac_default_generate_build_notes
12637 _ACEOF
12638
12639
12640 if test ${ac_default_generate_x86_used_note} = unset; then
12641 ac_default_generate_x86_used_note=0
12642 fi
12643
12644 cat >>confdefs.h <<_ACEOF
12645 #define DEFAULT_X86_USED_NOTE $ac_default_generate_x86_used_note
12646 _ACEOF
12647
12648
12649 if test ${ac_default_generate_riscv_attr} = unset; then
12650 ac_default_generate_riscv_attr=1
12651 fi
12652
12653
12654 cat >>confdefs.h <<_ACEOF
12655 #define DEFAULT_RISCV_ATTR $ac_default_generate_riscv_attr
12656 _ACEOF
12657
12658
12659 if test ${ac_default_mips_fix_loongson3_llsc} = unset; then
12660 ac_default_mips_fix_loongson3_llsc=0
12661 fi
12662
12663 cat >>confdefs.h <<_ACEOF
12664 #define DEFAULT_MIPS_FIX_LOONGSON3_LLSC $ac_default_mips_fix_loongson3_llsc
12665 _ACEOF
12666
12667
12668 if test x$ac_default_compressed_debug_sections = xyes ; then
12669
12670 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12671
12672 fi
12673
12674 # Turn on all targets if possible
12675 if test ${all_targets} = "yes"; then
12676 case ${target_cpu_type} in
12677 i386)
12678 case ${obj_format} in
12679 aout)
12680 emulations="$emulations i386coff i386elf"
12681 ;;
12682 coff)
12683 emulations="$emulations i386aout i386elf"
12684 ;;
12685 elf)
12686 emulations="$emulations i386aout i386coff"
12687 ;;
12688 esac
12689 ;;
12690 x86_64)
12691 case ${obj_format} in
12692 aout)
12693 emulations="$emulations i386coff i386elf"
12694 ;;
12695 coff)
12696 emulations="$emulations i386aout i386elf"
12697 ;;
12698 elf)
12699 emulations="$emulations i386aout i386coff"
12700 ;;
12701 esac
12702 ;;
12703 esac
12704 fi
12705
12706 # PE code has way too many macros tweaking behaviour
12707 case ${te_file} in
12708 pe*) emulations="" ;;
12709 esac
12710
12711 # Assign floating point type. Most processors with FP support
12712 # IEEE FP. On those that don't support FP at all, usually IEEE
12713 # is emulated.
12714 case ${target_cpu} in
12715 vax | pdp11 ) atof=vax ;;
12716 *) atof=ieee ;;
12717 esac
12718
12719 case "${obj_format}" in
12720 "") as_fn_error $? "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12721 esac
12722
12723 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12724 cgen_cpu_prefix=""
12725 if test $using_cgen = yes ; then
12726 case ${target_cpu} in
12727 or1knd)
12728 cgen_cpu_prefix=or1k ;;
12729 *) cgen_cpu_prefix=${target_cpu} ;;
12730 esac
12731
12732
12733 $as_echo "#define USING_CGEN 1" >>confdefs.h
12734
12735 fi
12736
12737
12738 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12739 as_fn_error $? "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12740 fi
12741
12742 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12743 as_fn_error $? "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12744 fi
12745
12746 # Some COFF configurations want these random other flags set.
12747 case ${obj_format} in
12748 coff)
12749 case ${target_cpu_type} in
12750 i386)
12751 $as_echo "#define I386COFF 1" >>confdefs.h
12752 ;;
12753 x86_64)
12754 $as_echo "#define I386COFF 1" >>confdefs.h
12755 ;;
12756 esac
12757 ;;
12758 esac
12759
12760 # Getting this done right is going to be a bitch. Each configuration specified
12761 # with --enable-targets=... should be checked for environment, format, cpu
12762 # setting.
12763 #
12764 # For each configuration, the necessary object file support code must be linked
12765 # in. This might be only one, it might be up to four. The necessary emulation
12766 # code needs to be provided, too.
12767 #
12768 # And then there's "--enable-targets=all"....
12769 #
12770 # For now, just always do it for MIPS ELF configurations. Sigh.
12771
12772 formats="${obj_format}"
12773 emfiles=""
12774 EMULATIONS=""
12775 _gas_uniq_list="$emulations"
12776 _gas_uniq_newlist=""
12777 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12778 case $_gas_uniq_i in
12779 _gas_uniq_dummy) ;;
12780 *) case " $_gas_uniq_newlist " in
12781 *" $_gas_uniq_i "*) ;;
12782 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12783 esac ;;
12784 esac
12785 done
12786 emulations=$_gas_uniq_newlist
12787
12788 for em in . $emulations ; do
12789 case $em in
12790 .) continue ;;
12791 mipsbelf | mipslelf | mipself)
12792 fmt=elf file=mipself ;;
12793 *coff)
12794 fmt=coff file=$em ;;
12795 *aout)
12796 fmt=aout file=$em ;;
12797 *elf)
12798 fmt=elf file=$em ;;
12799 esac
12800 formats="$formats $fmt"
12801 emfiles="$emfiles config/e-$file.o"
12802 EMULATIONS="$EMULATIONS &$em,"
12803 done
12804 _gas_uniq_list="$formats"
12805 _gas_uniq_newlist=""
12806 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12807 case $_gas_uniq_i in
12808 _gas_uniq_dummy) ;;
12809 *) case " $_gas_uniq_newlist " in
12810 *" $_gas_uniq_i "*) ;;
12811 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12812 esac ;;
12813 esac
12814 done
12815 formats=$_gas_uniq_newlist
12816
12817 _gas_uniq_list="$emfiles"
12818 _gas_uniq_newlist=""
12819 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12820 case $_gas_uniq_i in
12821 _gas_uniq_dummy) ;;
12822 *) case " $_gas_uniq_newlist " in
12823 *" $_gas_uniq_i "*) ;;
12824 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12825 esac ;;
12826 esac
12827 done
12828 emfiles=$_gas_uniq_newlist
12829
12830 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12831 for fmt in $formats ; do
12832 case $fmt in
12833 aout)
12834 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12835 ;;
12836 coff)
12837 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12838 ;;
12839 ecoff)
12840 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12841 ;;
12842 elf)
12843 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12844 ;;
12845 generic)
12846 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12847 ;;
12848 som)
12849 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12850 ;;
12851 esac
12852 extra_objects="$extra_objects config/obj-$fmt.o"
12853 done
12854 obj_format=multi
12855 fi
12856 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12857 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12858 # e-mipself has more than one emulation per file, e-i386* has just one at the
12859 # moment. If only one emulation is specified, then don't define
12860 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12861 case "${obj_format}${emfiles}" in
12862 multi* | *mipself*)
12863 extra_objects="$extra_objects $emfiles"
12864
12865 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12866 ;;
12867 esac
12868 fi
12869
12870
12871 cat >>confdefs.h <<_ACEOF
12872 #define EMULATIONS $EMULATIONS
12873 _ACEOF
12874
12875
12876 cat >>confdefs.h <<_ACEOF
12877 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12878 _ACEOF
12879
12880
12881 reject_dev_configs=yes
12882
12883 case ${reject_dev_configs}-${dev} in
12884 yes-yes) # Oops.
12885 as_fn_error $? "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12886 ;;
12887 esac
12888
12889
12890
12891
12892
12893
12894
12895 # do we need the opcodes library?
12896 case "${need_opcodes}" in
12897 yes)
12898 OPCODES_LIB=../opcodes/libopcodes.la
12899 ;;
12900 esac
12901
12902
12903
12904
12905 cat >>confdefs.h <<_ACEOF
12906 #define TARGET_ALIAS "${target_alias}"
12907 _ACEOF
12908
12909
12910 cat >>confdefs.h <<_ACEOF
12911 #define TARGET_CANONICAL "${target}"
12912 _ACEOF
12913
12914
12915 cat >>confdefs.h <<_ACEOF
12916 #define TARGET_CPU "${target_cpu}"
12917 _ACEOF
12918
12919
12920 cat >>confdefs.h <<_ACEOF
12921 #define TARGET_VENDOR "${target_vendor}"
12922 _ACEOF
12923
12924
12925 cat >>confdefs.h <<_ACEOF
12926 #define TARGET_OS "${target_os}"
12927 _ACEOF
12928
12929
12930 for ac_prog in 'bison -y' byacc
12931 do
12932 # Extract the first word of "$ac_prog", so it can be a program name with args.
12933 set dummy $ac_prog; ac_word=$2
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12935 $as_echo_n "checking for $ac_word... " >&6; }
12936 if ${ac_cv_prog_YACC+:} false; then :
12937 $as_echo_n "(cached) " >&6
12938 else
12939 if test -n "$YACC"; then
12940 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12941 else
12942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943 for as_dir in $PATH
12944 do
12945 IFS=$as_save_IFS
12946 test -z "$as_dir" && as_dir=.
12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12949 ac_cv_prog_YACC="$ac_prog"
12950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12951 break 2
12952 fi
12953 done
12954 done
12955 IFS=$as_save_IFS
12956
12957 fi
12958 fi
12959 YACC=$ac_cv_prog_YACC
12960 if test -n "$YACC"; then
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12962 $as_echo "$YACC" >&6; }
12963 else
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12966 fi
12967
12968
12969 test -n "$YACC" && break
12970 done
12971 test -n "$YACC" || YACC="yacc"
12972
12973 for ac_prog in flex lex
12974 do
12975 # Extract the first word of "$ac_prog", so it can be a program name with args.
12976 set dummy $ac_prog; ac_word=$2
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12978 $as_echo_n "checking for $ac_word... " >&6; }
12979 if ${ac_cv_prog_LEX+:} false; then :
12980 $as_echo_n "(cached) " >&6
12981 else
12982 if test -n "$LEX"; then
12983 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12984 else
12985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12986 for as_dir in $PATH
12987 do
12988 IFS=$as_save_IFS
12989 test -z "$as_dir" && as_dir=.
12990 for ac_exec_ext in '' $ac_executable_extensions; do
12991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12992 ac_cv_prog_LEX="$ac_prog"
12993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12994 break 2
12995 fi
12996 done
12997 done
12998 IFS=$as_save_IFS
12999
13000 fi
13001 fi
13002 LEX=$ac_cv_prog_LEX
13003 if test -n "$LEX"; then
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13005 $as_echo "$LEX" >&6; }
13006 else
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13008 $as_echo "no" >&6; }
13009 fi
13010
13011
13012 test -n "$LEX" && break
13013 done
13014 test -n "$LEX" || LEX=":"
13015
13016 case "$LEX" in
13017 :|*"missing "*) ;;
13018 *) cat >conftest.l <<_ACEOF
13019 %%
13020 a { ECHO; }
13021 b { REJECT; }
13022 c { yymore (); }
13023 d { yyless (1); }
13024 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
13025 yyless ((input () != 0)); }
13026 f { unput (yytext[0]); }
13027 . { BEGIN INITIAL; }
13028 %%
13029 #ifdef YYTEXT_POINTER
13030 extern char *yytext;
13031 #endif
13032 int
13033 main (void)
13034 {
13035 return ! yylex () + ! yywrap ();
13036 }
13037 _ACEOF
13038 { { ac_try="$LEX conftest.l"
13039 case "(($ac_try" in
13040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041 *) ac_try_echo=$ac_try;;
13042 esac
13043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13044 $as_echo "$ac_try_echo"; } >&5
13045 (eval "$LEX conftest.l") 2>&5
13046 ac_status=$?
13047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13048 test $ac_status = 0; }
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13050 $as_echo_n "checking lex output file root... " >&6; }
13051 if ${ac_cv_prog_lex_root+:} false; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054
13055 if test -f lex.yy.c; then
13056 ac_cv_prog_lex_root=lex.yy
13057 elif test -f lexyy.c; then
13058 ac_cv_prog_lex_root=lexyy
13059 else
13060 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13061 fi
13062 fi
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13064 $as_echo "$ac_cv_prog_lex_root" >&6; }
13065 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13066
13067 if test -z "${LEXLIB+set}"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13069 $as_echo_n "checking lex library... " >&6; }
13070 if ${ac_cv_lib_lex+:} false; then :
13071 $as_echo_n "(cached) " >&6
13072 else
13073
13074 ac_save_LIBS=$LIBS
13075 ac_cv_lib_lex='none needed'
13076 for ac_lib in '' -lfl -ll; do
13077 LIBS="$ac_lib $ac_save_LIBS"
13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13080 `cat $LEX_OUTPUT_ROOT.c`
13081 _ACEOF
13082 if ac_fn_c_try_link "$LINENO"; then :
13083 ac_cv_lib_lex=$ac_lib
13084 fi
13085 rm -f core conftest.err conftest.$ac_objext \
13086 conftest$ac_exeext conftest.$ac_ext
13087 test "$ac_cv_lib_lex" != 'none needed' && break
13088 done
13089 LIBS=$ac_save_LIBS
13090
13091 fi
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13093 $as_echo "$ac_cv_lib_lex" >&6; }
13094 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13095 fi
13096
13097
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13099 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13100 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13101 $as_echo_n "(cached) " >&6
13102 else
13103 # POSIX says lex can declare yytext either as a pointer or an array; the
13104 # default is implementation-dependent. Figure out which it is, since
13105 # not all implementations provide the %pointer and %array declarations.
13106 ac_cv_prog_lex_yytext_pointer=no
13107 ac_save_LIBS=$LIBS
13108 LIBS="$LEXLIB $ac_save_LIBS"
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111
13112 #define YYTEXT_POINTER 1
13113 `cat $LEX_OUTPUT_ROOT.c`
13114 _ACEOF
13115 if ac_fn_c_try_link "$LINENO"; then :
13116 ac_cv_prog_lex_yytext_pointer=yes
13117 fi
13118 rm -f core conftest.err conftest.$ac_objext \
13119 conftest$ac_exeext conftest.$ac_ext
13120 LIBS=$ac_save_LIBS
13121
13122 fi
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13124 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13125 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13126
13127 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13128
13129 fi
13130 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13131 ;;
13132 esac
13133 if test "$LEX" = :; then
13134 LEX=${am_missing_run}flex
13135 fi
13136
13137 ALL_LINGUAS="es fi fr id ja ru rw sv tr uk zh_CN"
13138 # If we haven't got the data from the intl directory,
13139 # assume NLS is disabled.
13140 USE_NLS=no
13141 LIBINTL=
13142 LIBINTL_DEP=
13143 INCINTL=
13144 XGETTEXT=
13145 GMSGFMT=
13146 POSUB=
13147
13148 if test -f ../intl/config.intl; then
13149 . ../intl/config.intl
13150 fi
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13152 $as_echo_n "checking whether NLS is requested... " >&6; }
13153 if test x"$USE_NLS" != xyes; then
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13156 else
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13158 $as_echo "yes" >&6; }
13159
13160 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13161
13162
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13164 $as_echo_n "checking for catalogs to be installed... " >&6; }
13165 # Look for .po and .gmo files in the source directory.
13166 CATALOGS=
13167 XLINGUAS=
13168 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13169 # If there aren't any .gmo files the shell will give us the
13170 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13171 # weeded out.
13172 case "$cat" in *\**)
13173 continue;;
13174 esac
13175 # The quadruple backslash is collapsed to a double backslash
13176 # by the backticks, then collapsed again by the double quotes,
13177 # leaving us with one backslash in the sed expression (right
13178 # before the dot that mustn't act as a wildcard).
13179 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13180 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13181 # The user is allowed to set LINGUAS to a list of languages to
13182 # install catalogs for. If it's empty that means "all of them."
13183 if test "x$LINGUAS" = x; then
13184 CATALOGS="$CATALOGS $cat"
13185 XLINGUAS="$XLINGUAS $lang"
13186 else
13187 case "$LINGUAS" in *$lang*)
13188 CATALOGS="$CATALOGS $cat"
13189 XLINGUAS="$XLINGUAS $lang"
13190 ;;
13191 esac
13192 fi
13193 done
13194 LINGUAS="$XLINGUAS"
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13196 $as_echo "$LINGUAS" >&6; }
13197
13198
13199 DATADIRNAME=share
13200
13201 INSTOBJEXT=.mo
13202
13203 GENCAT=gencat
13204
13205 CATOBJEXT=.gmo
13206
13207 fi
13208
13209 MKINSTALLDIRS=
13210 if test -n "$ac_aux_dir"; then
13211 case "$ac_aux_dir" in
13212 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13213 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13214 esac
13215 fi
13216 if test -z "$MKINSTALLDIRS"; then
13217 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13218 fi
13219
13220
13221
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13223 $as_echo_n "checking whether NLS is requested... " >&6; }
13224 # Check whether --enable-nls was given.
13225 if test "${enable_nls+set}" = set; then :
13226 enableval=$enable_nls; USE_NLS=$enableval
13227 else
13228 USE_NLS=yes
13229 fi
13230
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13232 $as_echo "$USE_NLS" >&6; }
13233
13234
13235
13236
13237
13238
13239 # Prepare PATH_SEPARATOR.
13240 # The user is always right.
13241 if test "${PATH_SEPARATOR+set}" != set; then
13242 echo "#! /bin/sh" >conf$$.sh
13243 echo "exit 0" >>conf$$.sh
13244 chmod +x conf$$.sh
13245 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13246 PATH_SEPARATOR=';'
13247 else
13248 PATH_SEPARATOR=:
13249 fi
13250 rm -f conf$$.sh
13251 fi
13252
13253 # Find out how to test for executable files. Don't use a zero-byte file,
13254 # as systems may use methods other than mode bits to determine executability.
13255 cat >conf$$.file <<_ASEOF
13256 #! /bin/sh
13257 exit 0
13258 _ASEOF
13259 chmod +x conf$$.file
13260 if test -x conf$$.file >/dev/null 2>&1; then
13261 ac_executable_p="test -x"
13262 else
13263 ac_executable_p="test -f"
13264 fi
13265 rm -f conf$$.file
13266
13267 # Extract the first word of "msgfmt", so it can be a program name with args.
13268 set dummy msgfmt; ac_word=$2
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13270 $as_echo_n "checking for $ac_word... " >&6; }
13271 if ${ac_cv_path_MSGFMT+:} false; then :
13272 $as_echo_n "(cached) " >&6
13273 else
13274 case "$MSGFMT" in
13275 [\\/]* | ?:[\\/]*)
13276 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13277 ;;
13278 *)
13279 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13280 for ac_dir in $PATH; do
13281 IFS="$ac_save_IFS"
13282 test -z "$ac_dir" && ac_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13285 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13286 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13287 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13288 break 2
13289 fi
13290 fi
13291 done
13292 done
13293 IFS="$ac_save_IFS"
13294 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13295 ;;
13296 esac
13297 fi
13298 MSGFMT="$ac_cv_path_MSGFMT"
13299 if test "$MSGFMT" != ":"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13301 $as_echo "$MSGFMT" >&6; }
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13305 fi
13306
13307 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13308 set dummy gmsgfmt; ac_word=$2
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13310 $as_echo_n "checking for $ac_word... " >&6; }
13311 if ${ac_cv_path_GMSGFMT+:} false; then :
13312 $as_echo_n "(cached) " >&6
13313 else
13314 case $GMSGFMT in
13315 [\\/]* | ?:[\\/]*)
13316 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13317 ;;
13318 *)
13319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320 for as_dir in $PATH
13321 do
13322 IFS=$as_save_IFS
13323 test -z "$as_dir" && as_dir=.
13324 for ac_exec_ext in '' $ac_executable_extensions; do
13325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13326 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13328 break 2
13329 fi
13330 done
13331 done
13332 IFS=$as_save_IFS
13333
13334 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13335 ;;
13336 esac
13337 fi
13338 GMSGFMT=$ac_cv_path_GMSGFMT
13339 if test -n "$GMSGFMT"; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13341 $as_echo "$GMSGFMT" >&6; }
13342 else
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344 $as_echo "no" >&6; }
13345 fi
13346
13347
13348
13349
13350 # Prepare PATH_SEPARATOR.
13351 # The user is always right.
13352 if test "${PATH_SEPARATOR+set}" != set; then
13353 echo "#! /bin/sh" >conf$$.sh
13354 echo "exit 0" >>conf$$.sh
13355 chmod +x conf$$.sh
13356 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13357 PATH_SEPARATOR=';'
13358 else
13359 PATH_SEPARATOR=:
13360 fi
13361 rm -f conf$$.sh
13362 fi
13363
13364 # Find out how to test for executable files. Don't use a zero-byte file,
13365 # as systems may use methods other than mode bits to determine executability.
13366 cat >conf$$.file <<_ASEOF
13367 #! /bin/sh
13368 exit 0
13369 _ASEOF
13370 chmod +x conf$$.file
13371 if test -x conf$$.file >/dev/null 2>&1; then
13372 ac_executable_p="test -x"
13373 else
13374 ac_executable_p="test -f"
13375 fi
13376 rm -f conf$$.file
13377
13378 # Extract the first word of "xgettext", so it can be a program name with args.
13379 set dummy xgettext; ac_word=$2
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13381 $as_echo_n "checking for $ac_word... " >&6; }
13382 if ${ac_cv_path_XGETTEXT+:} false; then :
13383 $as_echo_n "(cached) " >&6
13384 else
13385 case "$XGETTEXT" in
13386 [\\/]* | ?:[\\/]*)
13387 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13388 ;;
13389 *)
13390 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13391 for ac_dir in $PATH; do
13392 IFS="$ac_save_IFS"
13393 test -z "$ac_dir" && ac_dir=.
13394 for ac_exec_ext in '' $ac_executable_extensions; do
13395 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13396 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13397 (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
13398 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13399 break 2
13400 fi
13401 fi
13402 done
13403 done
13404 IFS="$ac_save_IFS"
13405 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13406 ;;
13407 esac
13408 fi
13409 XGETTEXT="$ac_cv_path_XGETTEXT"
13410 if test "$XGETTEXT" != ":"; then
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13412 $as_echo "$XGETTEXT" >&6; }
13413 else
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415 $as_echo "no" >&6; }
13416 fi
13417
13418 rm -f messages.po
13419
13420
13421 # Prepare PATH_SEPARATOR.
13422 # The user is always right.
13423 if test "${PATH_SEPARATOR+set}" != set; then
13424 echo "#! /bin/sh" >conf$$.sh
13425 echo "exit 0" >>conf$$.sh
13426 chmod +x conf$$.sh
13427 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13428 PATH_SEPARATOR=';'
13429 else
13430 PATH_SEPARATOR=:
13431 fi
13432 rm -f conf$$.sh
13433 fi
13434
13435 # Find out how to test for executable files. Don't use a zero-byte file,
13436 # as systems may use methods other than mode bits to determine executability.
13437 cat >conf$$.file <<_ASEOF
13438 #! /bin/sh
13439 exit 0
13440 _ASEOF
13441 chmod +x conf$$.file
13442 if test -x conf$$.file >/dev/null 2>&1; then
13443 ac_executable_p="test -x"
13444 else
13445 ac_executable_p="test -f"
13446 fi
13447 rm -f conf$$.file
13448
13449 # Extract the first word of "msgmerge", so it can be a program name with args.
13450 set dummy msgmerge; ac_word=$2
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13452 $as_echo_n "checking for $ac_word... " >&6; }
13453 if ${ac_cv_path_MSGMERGE+:} false; then :
13454 $as_echo_n "(cached) " >&6
13455 else
13456 case "$MSGMERGE" in
13457 [\\/]* | ?:[\\/]*)
13458 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13459 ;;
13460 *)
13461 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13462 for ac_dir in $PATH; do
13463 IFS="$ac_save_IFS"
13464 test -z "$ac_dir" && ac_dir=.
13465 for ac_exec_ext in '' $ac_executable_extensions; do
13466 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13467 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13468 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13469 break 2
13470 fi
13471 fi
13472 done
13473 done
13474 IFS="$ac_save_IFS"
13475 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13476 ;;
13477 esac
13478 fi
13479 MSGMERGE="$ac_cv_path_MSGMERGE"
13480 if test "$MSGMERGE" != ":"; then
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13482 $as_echo "$MSGMERGE" >&6; }
13483 else
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485 $as_echo "no" >&6; }
13486 fi
13487
13488
13489 if test "$GMSGFMT" != ":"; then
13490 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13491 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13492 : ;
13493 else
13494 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13496 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13497 GMSGFMT=":"
13498 fi
13499 fi
13500
13501 if test "$XGETTEXT" != ":"; then
13502 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13503 (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
13504 : ;
13505 else
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13507 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13508 XGETTEXT=":"
13509 fi
13510 rm -f messages.po
13511 fi
13512
13513 ac_config_commands="$ac_config_commands default-1"
13514
13515
13516
13517
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13519 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13520 # Check whether --enable-maintainer-mode was given.
13521 if test "${enable_maintainer_mode+set}" = set; then :
13522 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13523 else
13524 USE_MAINTAINER_MODE=no
13525 fi
13526
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13528 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13529 if test $USE_MAINTAINER_MODE = yes; then
13530 MAINTAINER_MODE_TRUE=
13531 MAINTAINER_MODE_FALSE='#'
13532 else
13533 MAINTAINER_MODE_TRUE='#'
13534 MAINTAINER_MODE_FALSE=
13535 fi
13536
13537 MAINT=$MAINTAINER_MODE_TRUE
13538
13539
13540 if false; then
13541 GENINSRC_NEVER_TRUE=
13542 GENINSRC_NEVER_FALSE='#'
13543 else
13544 GENINSRC_NEVER_TRUE='#'
13545 GENINSRC_NEVER_FALSE=
13546 fi
13547
13548
13549
13550 for ac_header in memory.h sys/stat.h sys/types.h unistd.h
13551 do :
13552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13553 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13554 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13555 cat >>confdefs.h <<_ACEOF
13556 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13557 _ACEOF
13558
13559 fi
13560
13561 done
13562
13563
13564 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13565 # people who are not cross-compiling but are compiling cross-assemblers.
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13567 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13568 if test "${host}" = "${target}"; then
13569 cross_gas=no
13570 else
13571 cross_gas=yes
13572
13573 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13574
13575 fi
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13577 $as_echo "$cross_gas" >&6; }
13578
13579 for ac_func in strsignal
13580 do :
13581 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
13582 if test "x$ac_cv_func_strsignal" = xyes; then :
13583 cat >>confdefs.h <<_ACEOF
13584 #define HAVE_STRSIGNAL 1
13585 _ACEOF
13586
13587 fi
13588 done
13589
13590
13591
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13593 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13594 if ${am_cv_val_LC_MESSAGES+:} false; then :
13595 $as_echo_n "(cached) " >&6
13596 else
13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h. */
13599 #include <locale.h>
13600 int
13601 main ()
13602 {
13603 return LC_MESSAGES
13604 ;
13605 return 0;
13606 }
13607 _ACEOF
13608 if ac_fn_c_try_link "$LINENO"; then :
13609 am_cv_val_LC_MESSAGES=yes
13610 else
13611 am_cv_val_LC_MESSAGES=no
13612 fi
13613 rm -f core conftest.err conftest.$ac_objext \
13614 conftest$ac_exeext conftest.$ac_ext
13615 fi
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13617 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13618 if test $am_cv_val_LC_MESSAGES = yes; then
13619
13620 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13621
13622 fi
13623
13624
13625 # do we need the math library?
13626 case "${need_libm}" in
13627 yes)
13628 LIBM=
13629 case $host in
13630 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13631 # These system don't have libm, or don't need it
13632 ;;
13633 *-ncr-sysv4.3*)
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13635 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13636 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
13637 $as_echo_n "(cached) " >&6
13638 else
13639 ac_check_lib_save_LIBS=$LIBS
13640 LIBS="-lmw $LIBS"
13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13643
13644 /* Override any GCC internal prototype to avoid an error.
13645 Use char because int might match the return type of a GCC
13646 builtin and then its argument prototype would still apply. */
13647 #ifdef __cplusplus
13648 extern "C"
13649 #endif
13650 char _mwvalidcheckl ();
13651 int
13652 main ()
13653 {
13654 return _mwvalidcheckl ();
13655 ;
13656 return 0;
13657 }
13658 _ACEOF
13659 if ac_fn_c_try_link "$LINENO"; then :
13660 ac_cv_lib_mw__mwvalidcheckl=yes
13661 else
13662 ac_cv_lib_mw__mwvalidcheckl=no
13663 fi
13664 rm -f core conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext conftest.$ac_ext
13666 LIBS=$ac_check_lib_save_LIBS
13667 fi
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13669 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13670 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
13671 LIBM="-lmw"
13672 fi
13673
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13675 $as_echo_n "checking for cos in -lm... " >&6; }
13676 if ${ac_cv_lib_m_cos+:} false; then :
13677 $as_echo_n "(cached) " >&6
13678 else
13679 ac_check_lib_save_LIBS=$LIBS
13680 LIBS="-lm $LIBS"
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683
13684 /* Override any GCC internal prototype to avoid an error.
13685 Use char because int might match the return type of a GCC
13686 builtin and then its argument prototype would still apply. */
13687 #ifdef __cplusplus
13688 extern "C"
13689 #endif
13690 char cos ();
13691 int
13692 main ()
13693 {
13694 return cos ();
13695 ;
13696 return 0;
13697 }
13698 _ACEOF
13699 if ac_fn_c_try_link "$LINENO"; then :
13700 ac_cv_lib_m_cos=yes
13701 else
13702 ac_cv_lib_m_cos=no
13703 fi
13704 rm -f core conftest.err conftest.$ac_objext \
13705 conftest$ac_exeext conftest.$ac_ext
13706 LIBS=$ac_check_lib_save_LIBS
13707 fi
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13709 $as_echo "$ac_cv_lib_m_cos" >&6; }
13710 if test "x$ac_cv_lib_m_cos" = xyes; then :
13711 LIBM="$LIBM -lm"
13712 fi
13713
13714 ;;
13715 *)
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13717 $as_echo_n "checking for cos in -lm... " >&6; }
13718 if ${ac_cv_lib_m_cos+:} false; then :
13719 $as_echo_n "(cached) " >&6
13720 else
13721 ac_check_lib_save_LIBS=$LIBS
13722 LIBS="-lm $LIBS"
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13725
13726 /* Override any GCC internal prototype to avoid an error.
13727 Use char because int might match the return type of a GCC
13728 builtin and then its argument prototype would still apply. */
13729 #ifdef __cplusplus
13730 extern "C"
13731 #endif
13732 char cos ();
13733 int
13734 main ()
13735 {
13736 return cos ();
13737 ;
13738 return 0;
13739 }
13740 _ACEOF
13741 if ac_fn_c_try_link "$LINENO"; then :
13742 ac_cv_lib_m_cos=yes
13743 else
13744 ac_cv_lib_m_cos=no
13745 fi
13746 rm -f core conftest.err conftest.$ac_objext \
13747 conftest$ac_exeext conftest.$ac_ext
13748 LIBS=$ac_check_lib_save_LIBS
13749 fi
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13751 $as_echo "$ac_cv_lib_m_cos" >&6; }
13752 if test "x$ac_cv_lib_m_cos" = xyes; then :
13753 LIBM="-lm"
13754 fi
13755
13756 ;;
13757 esac
13758
13759
13760
13761 ;;
13762 esac
13763
13764 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13765 # enough, but on some of those systems, the assert macro relies on requoting
13766 # working properly!
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13768 $as_echo_n "checking for working assert macro... " >&6; }
13769 if ${gas_cv_assert_ok+:} false; then :
13770 $as_echo_n "(cached) " >&6
13771 else
13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13774 #include <assert.h>
13775 #include <stdio.h>
13776 int
13777 main ()
13778 {
13779
13780 /* check for requoting problems */
13781 static int a, b, c, d;
13782 static char *s;
13783 assert (!strcmp(s, "foo bar baz quux"));
13784 /* check for newline handling */
13785 assert (a == b
13786 || c == d);
13787
13788 ;
13789 return 0;
13790 }
13791 _ACEOF
13792 if ac_fn_c_try_link "$LINENO"; then :
13793 gas_cv_assert_ok=yes
13794 else
13795 gas_cv_assert_ok=no
13796 fi
13797 rm -f core conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
13799 fi
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13801 $as_echo "$gas_cv_assert_ok" >&6; }
13802 test $gas_cv_assert_ok = yes ||
13803 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
13804
13805
13806
13807 # On some systems, the system header files may not declare malloc, realloc,
13808 # and free. There are places where gas needs these functions to have been
13809 # declared -- such as when taking their addresses.
13810 gas_test_headers="
13811 #ifdef HAVE_MEMORY_H
13812 #include <memory.h>
13813 #endif
13814 #include <string.h>
13815 #include <stdlib.h>
13816 #ifdef HAVE_UNISTD_H
13817 #include <unistd.h>
13818 #endif
13819 "
13820
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13822 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13823 if ${gas_cv_decl_getopt_unistd_h+:} false; then :
13824 $as_echo_n "(cached) " >&6
13825 else
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13828 #include <unistd.h>
13829 int
13830 main ()
13831 {
13832 extern int getopt (int, char *const*, const char *);
13833 ;
13834 return 0;
13835 }
13836 _ACEOF
13837 if ac_fn_c_try_compile "$LINENO"; then :
13838 gas_cv_decl_getopt_unistd_h=yes
13839 else
13840 gas_cv_decl_getopt_unistd_h=no
13841 fi
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 fi
13844
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
13846 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
13847 if test $gas_cv_decl_getopt_unistd_h = yes; then
13848
13849 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13850
13851 fi
13852
13853
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
13855 $as_echo_n "checking whether declaration is required for environ... " >&6; }
13856 if ${gas_cv_decl_needed_environ+:} false; then :
13857 $as_echo_n "(cached) " >&6
13858 else
13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860 /* end confdefs.h. */
13861 $gas_test_headers
13862 int
13863 main ()
13864 {
13865
13866 typedef char **f;
13867 f x;
13868 x = (f) environ;
13869
13870 ;
13871 return 0;
13872 }
13873 _ACEOF
13874 if ac_fn_c_try_link "$LINENO"; then :
13875 gas_cv_decl_needed_environ=no
13876 else
13877 gas_cv_decl_needed_environ=yes
13878 fi
13879 rm -f core conftest.err conftest.$ac_objext \
13880 conftest$ac_exeext conftest.$ac_ext
13881 fi
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
13883 $as_echo "$gas_cv_decl_needed_environ" >&6; }
13884 if test $gas_cv_decl_needed_environ = yes; then
13885
13886 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13887
13888 fi
13889
13890
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
13892 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
13893 if ${gas_cv_decl_needed_ffs+:} false; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897 /* end confdefs.h. */
13898 $gas_test_headers
13899 int
13900 main ()
13901 {
13902
13903 typedef int (*f)(int);
13904 f x;
13905 x = (f) ffs;
13906
13907 ;
13908 return 0;
13909 }
13910 _ACEOF
13911 if ac_fn_c_try_link "$LINENO"; then :
13912 gas_cv_decl_needed_ffs=no
13913 else
13914 gas_cv_decl_needed_ffs=yes
13915 fi
13916 rm -f core conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13918 fi
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
13920 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
13921 if test $gas_cv_decl_needed_ffs = yes; then
13922
13923 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13924
13925 fi
13926
13927
13928 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13929 if test "x$ac_cv_have_decl_asprintf" = 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_ASPRINTF $ac_have_decl
13937 _ACEOF
13938 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
13939 if test "x$ac_cv_have_decl_mempcpy" = xyes; then :
13940 ac_have_decl=1
13941 else
13942 ac_have_decl=0
13943 fi
13944
13945 cat >>confdefs.h <<_ACEOF
13946 #define HAVE_DECL_MEMPCPY $ac_have_decl
13947 _ACEOF
13948 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13949 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
13950 ac_have_decl=1
13951 else
13952 ac_have_decl=0
13953 fi
13954
13955 cat >>confdefs.h <<_ACEOF
13956 #define HAVE_DECL_STPCPY $ac_have_decl
13957 _ACEOF
13958
13959
13960
13961 case "${host}" in
13962 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13963
13964 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13965 ;;
13966 esac
13967
13968 # Link in zlib/zstd if we can. This allows us to write compressed debug sections.
13969
13970 # Use the system's zlib library.
13971 zlibdir="-L\$(top_builddir)/../zlib"
13972 zlibinc="-I\$(top_srcdir)/../zlib"
13973
13974 # Check whether --with-system-zlib was given.
13975 if test "${with_system_zlib+set}" = set; then :
13976 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13977 zlibdir=
13978 zlibinc=
13979 fi
13980
13981 fi
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13994 if test -n "$ac_tool_prefix"; then
13995 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13996 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13998 $as_echo_n "checking for $ac_word... " >&6; }
13999 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14000 $as_echo_n "(cached) " >&6
14001 else
14002 case $PKG_CONFIG in
14003 [\\/]* | ?:[\\/]*)
14004 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14005 ;;
14006 *)
14007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14008 for as_dir in $PATH
14009 do
14010 IFS=$as_save_IFS
14011 test -z "$as_dir" && as_dir=.
14012 for ac_exec_ext in '' $ac_executable_extensions; do
14013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14014 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14016 break 2
14017 fi
14018 done
14019 done
14020 IFS=$as_save_IFS
14021
14022 ;;
14023 esac
14024 fi
14025 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14026 if test -n "$PKG_CONFIG"; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14028 $as_echo "$PKG_CONFIG" >&6; }
14029 else
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031 $as_echo "no" >&6; }
14032 fi
14033
14034
14035 fi
14036 if test -z "$ac_cv_path_PKG_CONFIG"; then
14037 ac_pt_PKG_CONFIG=$PKG_CONFIG
14038 # Extract the first word of "pkg-config", so it can be a program name with args.
14039 set dummy pkg-config; ac_word=$2
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14041 $as_echo_n "checking for $ac_word... " >&6; }
14042 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14043 $as_echo_n "(cached) " >&6
14044 else
14045 case $ac_pt_PKG_CONFIG in
14046 [\\/]* | ?:[\\/]*)
14047 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14048 ;;
14049 *)
14050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14051 for as_dir in $PATH
14052 do
14053 IFS=$as_save_IFS
14054 test -z "$as_dir" && as_dir=.
14055 for ac_exec_ext in '' $ac_executable_extensions; do
14056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14057 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14059 break 2
14060 fi
14061 done
14062 done
14063 IFS=$as_save_IFS
14064
14065 ;;
14066 esac
14067 fi
14068 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14069 if test -n "$ac_pt_PKG_CONFIG"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14071 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14072 else
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14074 $as_echo "no" >&6; }
14075 fi
14076
14077 if test "x$ac_pt_PKG_CONFIG" = x; then
14078 PKG_CONFIG=""
14079 else
14080 case $cross_compiling:$ac_tool_warned in
14081 yes:)
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14084 ac_tool_warned=yes ;;
14085 esac
14086 PKG_CONFIG=$ac_pt_PKG_CONFIG
14087 fi
14088 else
14089 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14090 fi
14091
14092 fi
14093 if test -n "$PKG_CONFIG"; then
14094 _pkg_min_version=0.9.0
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14096 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14097 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14099 $as_echo "yes" >&6; }
14100 else
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14102 $as_echo "no" >&6; }
14103 PKG_CONFIG=""
14104 fi
14105 fi
14106
14107
14108 # Check whether --with-zstd was given.
14109 if test "${with_zstd+set}" = set; then :
14110 withval=$with_zstd;
14111 else
14112 with_zstd=auto
14113 fi
14114
14115
14116 if test "$with_zstd" != no; then :
14117
14118 pkg_failed=no
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5
14120 $as_echo_n "checking for libzstd... " >&6; }
14121
14122 if test -n "$ZSTD_CFLAGS"; then
14123 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
14124 elif test -n "$PKG_CONFIG"; then
14125 if test -n "$PKG_CONFIG" && \
14126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
14127 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
14128 ac_status=$?
14129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14130 test $ac_status = 0; }; then
14131 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd" 2>/dev/null`
14132 test "x$?" != "x0" && pkg_failed=yes
14133 else
14134 pkg_failed=yes
14135 fi
14136 else
14137 pkg_failed=untried
14138 fi
14139 if test -n "$ZSTD_LIBS"; then
14140 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
14141 elif test -n "$PKG_CONFIG"; then
14142 if test -n "$PKG_CONFIG" && \
14143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
14144 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
14145 ac_status=$?
14146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14147 test $ac_status = 0; }; then
14148 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd" 2>/dev/null`
14149 test "x$?" != "x0" && pkg_failed=yes
14150 else
14151 pkg_failed=yes
14152 fi
14153 else
14154 pkg_failed=untried
14155 fi
14156
14157 if test $pkg_failed = no; then
14158 pkg_save_LDFLAGS="$LDFLAGS"
14159 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h. */
14162
14163 int
14164 main ()
14165 {
14166
14167 ;
14168 return 0;
14169 }
14170 _ACEOF
14171 if ac_fn_c_try_link "$LINENO"; then :
14172
14173 else
14174 pkg_failed=yes
14175 fi
14176 rm -f core conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext conftest.$ac_ext
14178 LDFLAGS=$pkg_save_LDFLAGS
14179 fi
14180
14181
14182
14183 if test $pkg_failed = yes; then
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14185 $as_echo "no" >&6; }
14186
14187 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14188 _pkg_short_errors_supported=yes
14189 else
14190 _pkg_short_errors_supported=no
14191 fi
14192 if test $_pkg_short_errors_supported = yes; then
14193 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd" 2>&1`
14194 else
14195 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd" 2>&1`
14196 fi
14197 # Put the nasty error message in config.log where it belongs
14198 echo "$ZSTD_PKG_ERRORS" >&5
14199
14200
14201 if test "$with_zstd" = yes; then
14202 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
14203 fi
14204
14205 elif test $pkg_failed = untried; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14207 $as_echo "no" >&6; }
14208
14209 if test "$with_zstd" = yes; then
14210 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
14211 fi
14212
14213 else
14214 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
14215 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14217 $as_echo "yes" >&6; }
14218
14219
14220 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
14221
14222
14223 fi
14224
14225 fi
14226
14227
14228 # Support for VMS timestamps via cross compile
14229
14230 if test "$ac_cv_header_time_h" = yes; then
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14232 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14233 if ${gas_cv_have_time_type_member_tm_gmtoff+:} false; then :
14234 $as_echo_n "(cached) " >&6
14235 else
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14238
14239 #define _BSD_SOURCE 1
14240 #include <time.h>
14241 int
14242 main ()
14243 {
14244 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14245 ;
14246 return 0;
14247 }
14248 _ACEOF
14249 if ac_fn_c_try_compile "$LINENO"; then :
14250 gas_cv_have_time_type_member_tm_gmtoff=yes
14251 else
14252 gas_cv_have_time_type_member_tm_gmtoff=no
14253
14254 fi
14255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14256 fi
14257
14258 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14259
14260 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14261
14262 fi
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14264 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14265
14266 fi
14267
14268 if test "$ac_cv_header_sys_stat_h" = yes; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14270 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14271 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+:} false; then :
14272 $as_echo_n "(cached) " >&6
14273 else
14274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275 /* end confdefs.h. */
14276
14277 #define _BSD_SOURCE 1
14278 #include <sys/stat.h>
14279 int
14280 main ()
14281 {
14282 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14283 ;
14284 return 0;
14285 }
14286 _ACEOF
14287 if ac_fn_c_try_compile "$LINENO"; then :
14288 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14289 else
14290 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14291
14292 fi
14293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14294 fi
14295
14296 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14297
14298 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14299
14300 fi
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14302 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14303
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14305 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14306 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+:} false; then :
14307 $as_echo_n "(cached) " >&6
14308 else
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14311
14312 #define _BSD_SOURCE 1
14313 #include <sys/stat.h>
14314 int
14315 main ()
14316 {
14317 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14318 ;
14319 return 0;
14320 }
14321 _ACEOF
14322 if ac_fn_c_try_compile "$LINENO"; then :
14323 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14324 else
14325 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14326
14327 fi
14328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14329 fi
14330
14331 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14332
14333 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14334
14335 fi
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14337 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14338
14339 fi
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
14350
14351 ac_config_commands="$ac_config_commands default"
14352
14353
14354 cat >confcache <<\_ACEOF
14355 # This file is a shell script that caches the results of configure
14356 # tests run on this system so they can be shared between configure
14357 # scripts and configure runs, see configure's option --config-cache.
14358 # It is not useful on other systems. If it contains results you don't
14359 # want to keep, you may remove or edit it.
14360 #
14361 # config.status only pays attention to the cache file if you give it
14362 # the --recheck option to rerun configure.
14363 #
14364 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14365 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14366 # following values.
14367
14368 _ACEOF
14369
14370 # The following way of writing the cache mishandles newlines in values,
14371 # but we know of no workaround that is simple, portable, and efficient.
14372 # So, we kill variables containing newlines.
14373 # Ultrix sh set writes to stderr and can't be redirected directly,
14374 # and sets the high bit in the cache file unless we assign to the vars.
14375 (
14376 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14377 eval ac_val=\$$ac_var
14378 case $ac_val in #(
14379 *${as_nl}*)
14380 case $ac_var in #(
14381 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14382 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14383 esac
14384 case $ac_var in #(
14385 _ | IFS | as_nl) ;; #(
14386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14387 *) { eval $ac_var=; unset $ac_var;} ;;
14388 esac ;;
14389 esac
14390 done
14391
14392 (set) 2>&1 |
14393 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14394 *${as_nl}ac_space=\ *)
14395 # `set' does not quote correctly, so add quotes: double-quote
14396 # substitution turns \\\\ into \\, and sed turns \\ into \.
14397 sed -n \
14398 "s/'/'\\\\''/g;
14399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14400 ;; #(
14401 *)
14402 # `set' quotes correctly as required by POSIX, so do not add quotes.
14403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14404 ;;
14405 esac |
14406 sort
14407 ) |
14408 sed '
14409 /^ac_cv_env_/b end
14410 t clear
14411 :clear
14412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14413 t end
14414 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14415 :end' >>confcache
14416 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14417 if test -w "$cache_file"; then
14418 if test "x$cache_file" != "x/dev/null"; then
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14420 $as_echo "$as_me: updating cache $cache_file" >&6;}
14421 if test ! -f "$cache_file" || test -h "$cache_file"; then
14422 cat confcache >"$cache_file"
14423 else
14424 case $cache_file in #(
14425 */* | ?:*)
14426 mv -f confcache "$cache_file"$$ &&
14427 mv -f "$cache_file"$$ "$cache_file" ;; #(
14428 *)
14429 mv -f confcache "$cache_file" ;;
14430 esac
14431 fi
14432 fi
14433 else
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14435 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14436 fi
14437 fi
14438 rm -f confcache
14439
14440 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14441 # Let make expand exec_prefix.
14442 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14443
14444 DEFS=-DHAVE_CONFIG_H
14445
14446 ac_libobjs=
14447 ac_ltlibobjs=
14448 U=
14449 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14450 # 1. Remove the extension, and $U if already installed.
14451 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14452 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14453 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14454 # will be set to the directory where LIBOBJS objects are built.
14455 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14456 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14457 done
14458 LIBOBJS=$ac_libobjs
14459
14460 LTLIBOBJS=$ac_ltlibobjs
14461
14462
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14464 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14465 if test -n "$am_sleep_pid"; then
14466 # Hide warnings about reused PIDs.
14467 wait $am_sleep_pid 2>/dev/null
14468 fi
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14470 $as_echo "done" >&6; }
14471 if test -n "$EXEEXT"; then
14472 am__EXEEXT_TRUE=
14473 am__EXEEXT_FALSE='#'
14474 else
14475 am__EXEEXT_TRUE='#'
14476 am__EXEEXT_FALSE=
14477 fi
14478
14479 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14480 as_fn_error $? "conditional \"AMDEP\" was never defined.
14481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14482 fi
14483 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14484 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14486 fi
14487
14488 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14489 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14491 fi
14492 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14493 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
14494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14495 fi
14496
14497 : "${CONFIG_STATUS=./config.status}"
14498 ac_write_fail=0
14499 ac_clean_files_save=$ac_clean_files
14500 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14502 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14503 as_write_fail=0
14504 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14505 #! $SHELL
14506 # Generated by $as_me.
14507 # Run this file to recreate the current configuration.
14508 # Compiler output produced by configure, useful for debugging
14509 # configure, is in config.log if it exists.
14510
14511 debug=false
14512 ac_cs_recheck=false
14513 ac_cs_silent=false
14514
14515 SHELL=\${CONFIG_SHELL-$SHELL}
14516 export SHELL
14517 _ASEOF
14518 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14519 ## -------------------- ##
14520 ## M4sh Initialization. ##
14521 ## -------------------- ##
14522
14523 # Be more Bourne compatible
14524 DUALCASE=1; export DUALCASE # for MKS sh
14525 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14526 emulate sh
14527 NULLCMD=:
14528 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14529 # is contrary to our usage. Disable this feature.
14530 alias -g '${1+"$@"}'='"$@"'
14531 setopt NO_GLOB_SUBST
14532 else
14533 case `(set -o) 2>/dev/null` in #(
14534 *posix*) :
14535 set -o posix ;; #(
14536 *) :
14537 ;;
14538 esac
14539 fi
14540
14541
14542 as_nl='
14543 '
14544 export as_nl
14545 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14546 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14547 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14548 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14549 # Prefer a ksh shell builtin over an external printf program on Solaris,
14550 # but without wasting forks for bash or zsh.
14551 if test -z "$BASH_VERSION$ZSH_VERSION" \
14552 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14553 as_echo='print -r --'
14554 as_echo_n='print -rn --'
14555 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14556 as_echo='printf %s\n'
14557 as_echo_n='printf %s'
14558 else
14559 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14560 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14561 as_echo_n='/usr/ucb/echo -n'
14562 else
14563 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14564 as_echo_n_body='eval
14565 arg=$1;
14566 case $arg in #(
14567 *"$as_nl"*)
14568 expr "X$arg" : "X\\(.*\\)$as_nl";
14569 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14570 esac;
14571 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14572 '
14573 export as_echo_n_body
14574 as_echo_n='sh -c $as_echo_n_body as_echo'
14575 fi
14576 export as_echo_body
14577 as_echo='sh -c $as_echo_body as_echo'
14578 fi
14579
14580 # The user is always right.
14581 if test "${PATH_SEPARATOR+set}" != set; then
14582 PATH_SEPARATOR=:
14583 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14584 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14585 PATH_SEPARATOR=';'
14586 }
14587 fi
14588
14589
14590 # IFS
14591 # We need space, tab and new line, in precisely that order. Quoting is
14592 # there to prevent editors from complaining about space-tab.
14593 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14594 # splitting by setting IFS to empty value.)
14595 IFS=" "" $as_nl"
14596
14597 # Find who we are. Look in the path if we contain no directory separator.
14598 as_myself=
14599 case $0 in #((
14600 *[\\/]* ) as_myself=$0 ;;
14601 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14602 for as_dir in $PATH
14603 do
14604 IFS=$as_save_IFS
14605 test -z "$as_dir" && as_dir=.
14606 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14607 done
14608 IFS=$as_save_IFS
14609
14610 ;;
14611 esac
14612 # We did not find ourselves, most probably we were run as `sh COMMAND'
14613 # in which case we are not to be found in the path.
14614 if test "x$as_myself" = x; then
14615 as_myself=$0
14616 fi
14617 if test ! -f "$as_myself"; then
14618 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14619 exit 1
14620 fi
14621
14622 # Unset variables that we do not need and which cause bugs (e.g. in
14623 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14624 # suppresses any "Segmentation fault" message there. '((' could
14625 # trigger a bug in pdksh 5.2.14.
14626 for as_var in BASH_ENV ENV MAIL MAILPATH
14627 do eval test x\${$as_var+set} = xset \
14628 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14629 done
14630 PS1='$ '
14631 PS2='> '
14632 PS4='+ '
14633
14634 # NLS nuisances.
14635 LC_ALL=C
14636 export LC_ALL
14637 LANGUAGE=C
14638 export LANGUAGE
14639
14640 # CDPATH.
14641 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14642
14643
14644 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14645 # ----------------------------------------
14646 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14647 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14648 # script with STATUS, using 1 if that was 0.
14649 as_fn_error ()
14650 {
14651 as_status=$1; test $as_status -eq 0 && as_status=1
14652 if test "$4"; then
14653 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14654 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14655 fi
14656 $as_echo "$as_me: error: $2" >&2
14657 as_fn_exit $as_status
14658 } # as_fn_error
14659
14660
14661 # as_fn_set_status STATUS
14662 # -----------------------
14663 # Set $? to STATUS, without forking.
14664 as_fn_set_status ()
14665 {
14666 return $1
14667 } # as_fn_set_status
14668
14669 # as_fn_exit STATUS
14670 # -----------------
14671 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14672 as_fn_exit ()
14673 {
14674 set +e
14675 as_fn_set_status $1
14676 exit $1
14677 } # as_fn_exit
14678
14679 # as_fn_unset VAR
14680 # ---------------
14681 # Portably unset VAR.
14682 as_fn_unset ()
14683 {
14684 { eval $1=; unset $1;}
14685 }
14686 as_unset=as_fn_unset
14687 # as_fn_append VAR VALUE
14688 # ----------------------
14689 # Append the text in VALUE to the end of the definition contained in VAR. Take
14690 # advantage of any shell optimizations that allow amortized linear growth over
14691 # repeated appends, instead of the typical quadratic growth present in naive
14692 # implementations.
14693 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14694 eval 'as_fn_append ()
14695 {
14696 eval $1+=\$2
14697 }'
14698 else
14699 as_fn_append ()
14700 {
14701 eval $1=\$$1\$2
14702 }
14703 fi # as_fn_append
14704
14705 # as_fn_arith ARG...
14706 # ------------------
14707 # Perform arithmetic evaluation on the ARGs, and store the result in the
14708 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14709 # must be portable across $(()) and expr.
14710 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14711 eval 'as_fn_arith ()
14712 {
14713 as_val=$(( $* ))
14714 }'
14715 else
14716 as_fn_arith ()
14717 {
14718 as_val=`expr "$@" || test $? -eq 1`
14719 }
14720 fi # as_fn_arith
14721
14722
14723 if expr a : '\(a\)' >/dev/null 2>&1 &&
14724 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14725 as_expr=expr
14726 else
14727 as_expr=false
14728 fi
14729
14730 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14731 as_basename=basename
14732 else
14733 as_basename=false
14734 fi
14735
14736 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14737 as_dirname=dirname
14738 else
14739 as_dirname=false
14740 fi
14741
14742 as_me=`$as_basename -- "$0" ||
14743 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14744 X"$0" : 'X\(//\)$' \| \
14745 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14746 $as_echo X/"$0" |
14747 sed '/^.*\/\([^/][^/]*\)\/*$/{
14748 s//\1/
14749 q
14750 }
14751 /^X\/\(\/\/\)$/{
14752 s//\1/
14753 q
14754 }
14755 /^X\/\(\/\).*/{
14756 s//\1/
14757 q
14758 }
14759 s/.*/./; q'`
14760
14761 # Avoid depending upon Character Ranges.
14762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14765 as_cr_digits='0123456789'
14766 as_cr_alnum=$as_cr_Letters$as_cr_digits
14767
14768 ECHO_C= ECHO_N= ECHO_T=
14769 case `echo -n x` in #(((((
14770 -n*)
14771 case `echo 'xy\c'` in
14772 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14773 xy) ECHO_C='\c';;
14774 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14775 ECHO_T=' ';;
14776 esac;;
14777 *)
14778 ECHO_N='-n';;
14779 esac
14780
14781 rm -f conf$$ conf$$.exe conf$$.file
14782 if test -d conf$$.dir; then
14783 rm -f conf$$.dir/conf$$.file
14784 else
14785 rm -f conf$$.dir
14786 mkdir conf$$.dir 2>/dev/null
14787 fi
14788 if (echo >conf$$.file) 2>/dev/null; then
14789 if ln -s conf$$.file conf$$ 2>/dev/null; then
14790 as_ln_s='ln -s'
14791 # ... but there are two gotchas:
14792 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14793 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14794 # In both cases, we have to default to `cp -pR'.
14795 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14796 as_ln_s='cp -pR'
14797 elif ln conf$$.file conf$$ 2>/dev/null; then
14798 as_ln_s=ln
14799 else
14800 as_ln_s='cp -pR'
14801 fi
14802 else
14803 as_ln_s='cp -pR'
14804 fi
14805 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14806 rmdir conf$$.dir 2>/dev/null
14807
14808
14809 # as_fn_mkdir_p
14810 # -------------
14811 # Create "$as_dir" as a directory, including parents if necessary.
14812 as_fn_mkdir_p ()
14813 {
14814
14815 case $as_dir in #(
14816 -*) as_dir=./$as_dir;;
14817 esac
14818 test -d "$as_dir" || eval $as_mkdir_p || {
14819 as_dirs=
14820 while :; do
14821 case $as_dir in #(
14822 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14823 *) as_qdir=$as_dir;;
14824 esac
14825 as_dirs="'$as_qdir' $as_dirs"
14826 as_dir=`$as_dirname -- "$as_dir" ||
14827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14828 X"$as_dir" : 'X\(//\)[^/]' \| \
14829 X"$as_dir" : 'X\(//\)$' \| \
14830 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14831 $as_echo X"$as_dir" |
14832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14833 s//\1/
14834 q
14835 }
14836 /^X\(\/\/\)[^/].*/{
14837 s//\1/
14838 q
14839 }
14840 /^X\(\/\/\)$/{
14841 s//\1/
14842 q
14843 }
14844 /^X\(\/\).*/{
14845 s//\1/
14846 q
14847 }
14848 s/.*/./; q'`
14849 test -d "$as_dir" && break
14850 done
14851 test -z "$as_dirs" || eval "mkdir $as_dirs"
14852 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14853
14854
14855 } # as_fn_mkdir_p
14856 if mkdir -p . 2>/dev/null; then
14857 as_mkdir_p='mkdir -p "$as_dir"'
14858 else
14859 test -d ./-p && rmdir ./-p
14860 as_mkdir_p=false
14861 fi
14862
14863
14864 # as_fn_executable_p FILE
14865 # -----------------------
14866 # Test if FILE is an executable regular file.
14867 as_fn_executable_p ()
14868 {
14869 test -f "$1" && test -x "$1"
14870 } # as_fn_executable_p
14871 as_test_x='test -x'
14872 as_executable_p=as_fn_executable_p
14873
14874 # Sed expression to map a string onto a valid CPP name.
14875 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14876
14877 # Sed expression to map a string onto a valid variable name.
14878 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14879
14880
14881 exec 6>&1
14882 ## ----------------------------------- ##
14883 ## Main body of $CONFIG_STATUS script. ##
14884 ## ----------------------------------- ##
14885 _ASEOF
14886 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14887
14888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14889 # Save the log message, to keep $0 and so on meaningful, and to
14890 # report actual input values of CONFIG_FILES etc. instead of their
14891 # values after options handling.
14892 ac_log="
14893 This file was extended by gas $as_me 2.39.50, which was
14894 generated by GNU Autoconf 2.69. Invocation command line was
14895
14896 CONFIG_FILES = $CONFIG_FILES
14897 CONFIG_HEADERS = $CONFIG_HEADERS
14898 CONFIG_LINKS = $CONFIG_LINKS
14899 CONFIG_COMMANDS = $CONFIG_COMMANDS
14900 $ $0 $@
14901
14902 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14903 "
14904
14905 _ACEOF
14906
14907 case $ac_config_files in *"
14908 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14909 esac
14910
14911 case $ac_config_headers in *"
14912 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14913 esac
14914
14915
14916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14917 # Files that config.status was made for.
14918 config_files="$ac_config_files"
14919 config_headers="$ac_config_headers"
14920 config_commands="$ac_config_commands"
14921
14922 _ACEOF
14923
14924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14925 ac_cs_usage="\
14926 \`$as_me' instantiates files and other configuration actions
14927 from templates according to the current configuration. Unless the files
14928 and actions are specified as TAGs, all are instantiated by default.
14929
14930 Usage: $0 [OPTION]... [TAG]...
14931
14932 -h, --help print this help, then exit
14933 -V, --version print version number and configuration settings, then exit
14934 --config print configuration, then exit
14935 -q, --quiet, --silent
14936 do not print progress messages
14937 -d, --debug don't remove temporary files
14938 --recheck update $as_me by reconfiguring in the same conditions
14939 --file=FILE[:TEMPLATE]
14940 instantiate the configuration file FILE
14941 --header=FILE[:TEMPLATE]
14942 instantiate the configuration header FILE
14943
14944 Configuration files:
14945 $config_files
14946
14947 Configuration headers:
14948 $config_headers
14949
14950 Configuration commands:
14951 $config_commands
14952
14953 Report bugs to the package provider."
14954
14955 _ACEOF
14956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14957 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14958 ac_cs_version="\\
14959 gas config.status 2.39.50
14960 configured by $0, generated by GNU Autoconf 2.69,
14961 with options \\"\$ac_cs_config\\"
14962
14963 Copyright (C) 2012 Free Software Foundation, Inc.
14964 This config.status script is free software; the Free Software Foundation
14965 gives unlimited permission to copy, distribute and modify it."
14966
14967 ac_pwd='$ac_pwd'
14968 srcdir='$srcdir'
14969 INSTALL='$INSTALL'
14970 MKDIR_P='$MKDIR_P'
14971 AWK='$AWK'
14972 test -n "\$AWK" || AWK=awk
14973 _ACEOF
14974
14975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14976 # The default lists apply if the user does not specify any file.
14977 ac_need_defaults=:
14978 while test $# != 0
14979 do
14980 case $1 in
14981 --*=?*)
14982 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14983 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14984 ac_shift=:
14985 ;;
14986 --*=)
14987 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14988 ac_optarg=
14989 ac_shift=:
14990 ;;
14991 *)
14992 ac_option=$1
14993 ac_optarg=$2
14994 ac_shift=shift
14995 ;;
14996 esac
14997
14998 case $ac_option in
14999 # Handling of the options.
15000 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15001 ac_cs_recheck=: ;;
15002 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15003 $as_echo "$ac_cs_version"; exit ;;
15004 --config | --confi | --conf | --con | --co | --c )
15005 $as_echo "$ac_cs_config"; exit ;;
15006 --debug | --debu | --deb | --de | --d | -d )
15007 debug=: ;;
15008 --file | --fil | --fi | --f )
15009 $ac_shift
15010 case $ac_optarg in
15011 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15012 '') as_fn_error $? "missing file argument" ;;
15013 esac
15014 as_fn_append CONFIG_FILES " '$ac_optarg'"
15015 ac_need_defaults=false;;
15016 --header | --heade | --head | --hea )
15017 $ac_shift
15018 case $ac_optarg in
15019 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15020 esac
15021 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15022 ac_need_defaults=false;;
15023 --he | --h)
15024 # Conflict between --help and --header
15025 as_fn_error $? "ambiguous option: \`$1'
15026 Try \`$0 --help' for more information.";;
15027 --help | --hel | -h )
15028 $as_echo "$ac_cs_usage"; exit ;;
15029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15030 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15031 ac_cs_silent=: ;;
15032
15033 # This is an error.
15034 -*) as_fn_error $? "unrecognized option: \`$1'
15035 Try \`$0 --help' for more information." ;;
15036
15037 *) as_fn_append ac_config_targets " $1"
15038 ac_need_defaults=false ;;
15039
15040 esac
15041 shift
15042 done
15043
15044 ac_configure_extra_args=
15045
15046 if $ac_cs_silent; then
15047 exec 6>/dev/null
15048 ac_configure_extra_args="$ac_configure_extra_args --silent"
15049 fi
15050
15051 _ACEOF
15052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15053 if \$ac_cs_recheck; then
15054 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15055 shift
15056 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15057 CONFIG_SHELL='$SHELL'
15058 export CONFIG_SHELL
15059 exec "\$@"
15060 fi
15061
15062 _ACEOF
15063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15064 exec 5>>config.log
15065 {
15066 echo
15067 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15068 ## Running $as_me. ##
15069 _ASBOX
15070 $as_echo "$ac_log"
15071 } >&5
15072
15073 _ACEOF
15074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15075 #
15076 # INIT-COMMANDS
15077 #
15078 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15079
15080
15081 # The HP-UX ksh and POSIX shell print the target directory to stdout
15082 # if CDPATH is set.
15083 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15084
15085 sed_quote_subst='$sed_quote_subst'
15086 double_quote_subst='$double_quote_subst'
15087 delay_variable_subst='$delay_variable_subst'
15088 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15089 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15090 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15091 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15092 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15093 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15094 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15095 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15096 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15097 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15098 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15099 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15100 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15101 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15102 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15103 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15104 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15105 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15106 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15107 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15108 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15109 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15110 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15111 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15112 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15113 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15114 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15115 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15116 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15117 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15118 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15119 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15120 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15121 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15122 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15123 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15124 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15125 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15126 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15127 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15128 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15129 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15130 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15131 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15132 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15133 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15134 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15135 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15136 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"`'
15137 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15138 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15139 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15140 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15141 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15142 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15143 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15144 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15145 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15146 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15147 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15148 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15149 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15150 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15151 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15152 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15153 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15154 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15155 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15156 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15157 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15158 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15159 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15160 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15161 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15162 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15163 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15164 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15165 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15166 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15167 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15168 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15169 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15170 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15171 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15172 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15173 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15174 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15175 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15176 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15177 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15178 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15179 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15180 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15181 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15182 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15183 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15184 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15185 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15186 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15187 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15188 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15189 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15190 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15191 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15192 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15193 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15194 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15195 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15196 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15197 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15198 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15199 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15200 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15201 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15202 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15203 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15204 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15205 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15206 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15207 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15208
15209 LTCC='$LTCC'
15210 LTCFLAGS='$LTCFLAGS'
15211 compiler='$compiler_DEFAULT'
15212
15213 # A function that is used when there is no print builtin or printf.
15214 func_fallback_echo ()
15215 {
15216 eval 'cat <<_LTECHO_EOF
15217 \$1
15218 _LTECHO_EOF'
15219 }
15220
15221 # Quote evaled strings.
15222 for var in SHELL \
15223 ECHO \
15224 SED \
15225 GREP \
15226 EGREP \
15227 FGREP \
15228 LD \
15229 NM \
15230 LN_S \
15231 lt_SP2NL \
15232 lt_NL2SP \
15233 reload_flag \
15234 OBJDUMP \
15235 deplibs_check_method \
15236 file_magic_cmd \
15237 AR \
15238 AR_FLAGS \
15239 STRIP \
15240 RANLIB \
15241 CC \
15242 CFLAGS \
15243 compiler \
15244 lt_cv_sys_global_symbol_pipe \
15245 lt_cv_sys_global_symbol_to_cdecl \
15246 lt_cv_sys_global_symbol_to_c_name_address \
15247 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15248 lt_prog_compiler_no_builtin_flag \
15249 lt_prog_compiler_wl \
15250 lt_prog_compiler_pic \
15251 lt_prog_compiler_static \
15252 lt_cv_prog_compiler_c_o \
15253 need_locks \
15254 DSYMUTIL \
15255 NMEDIT \
15256 LIPO \
15257 OTOOL \
15258 OTOOL64 \
15259 shrext_cmds \
15260 export_dynamic_flag_spec \
15261 whole_archive_flag_spec \
15262 compiler_needs_object \
15263 with_gnu_ld \
15264 allow_undefined_flag \
15265 no_undefined_flag \
15266 hardcode_libdir_flag_spec \
15267 hardcode_libdir_flag_spec_ld \
15268 hardcode_libdir_separator \
15269 fix_srcfile_path \
15270 exclude_expsyms \
15271 include_expsyms \
15272 file_list_spec \
15273 variables_saved_for_relink \
15274 libname_spec \
15275 library_names_spec \
15276 soname_spec \
15277 install_override_mode \
15278 finish_eval \
15279 old_striplib \
15280 striplib; do
15281 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15282 *[\\\\\\\`\\"\\\$]*)
15283 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15284 ;;
15285 *)
15286 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15287 ;;
15288 esac
15289 done
15290
15291 # Double-quote double-evaled strings.
15292 for var in reload_cmds \
15293 old_postinstall_cmds \
15294 old_postuninstall_cmds \
15295 old_archive_cmds \
15296 extract_expsyms_cmds \
15297 old_archive_from_new_cmds \
15298 old_archive_from_expsyms_cmds \
15299 archive_cmds \
15300 archive_expsym_cmds \
15301 module_cmds \
15302 module_expsym_cmds \
15303 export_symbols_cmds \
15304 prelink_cmds \
15305 postinstall_cmds \
15306 postuninstall_cmds \
15307 finish_cmds \
15308 sys_lib_search_path_spec \
15309 sys_lib_dlsearch_path_spec; do
15310 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15311 *[\\\\\\\`\\"\\\$]*)
15312 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15313 ;;
15314 *)
15315 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15316 ;;
15317 esac
15318 done
15319
15320 ac_aux_dir='$ac_aux_dir'
15321 xsi_shell='$xsi_shell'
15322 lt_shell_append='$lt_shell_append'
15323
15324 # See if we are running on zsh, and set the options which allow our
15325 # commands through without removal of \ escapes INIT.
15326 if test -n "\${ZSH_VERSION+set}" ; then
15327 setopt NO_GLOB_SUBST
15328 fi
15329
15330
15331 PACKAGE='$PACKAGE'
15332 VERSION='$VERSION'
15333 TIMESTAMP='$TIMESTAMP'
15334 RM='$RM'
15335 ofile='$ofile'
15336
15337
15338
15339 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15340 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15341 # from automake.
15342 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15343 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15344 LINGUAS="${LINGUAS-%UNSET%}"
15345
15346 target_cpu_type=${target_cpu_type}
15347 cgen_cpu_prefix=${cgen_cpu_prefix}
15348 obj_format=${obj_format}
15349 te_file=${te_file}
15350
15351 _ACEOF
15352
15353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15354
15355 # Handling of arguments.
15356 for ac_config_target in $ac_config_targets
15357 do
15358 case $ac_config_target in
15359 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15360 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15361 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15362 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15363 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15364 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15365 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15366 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15367 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15368
15369 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15370 esac
15371 done
15372
15373
15374 # If the user did not use the arguments to specify the items to instantiate,
15375 # then the envvar interface is used. Set only those that are not.
15376 # We use the long form for the default assignment because of an extremely
15377 # bizarre bug on SunOS 4.1.3.
15378 if $ac_need_defaults; then
15379 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15380 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15381 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15382 fi
15383
15384 # Have a temporary directory for convenience. Make it in the build tree
15385 # simply because there is no reason against having it here, and in addition,
15386 # creating and moving files from /tmp can sometimes cause problems.
15387 # Hook for its removal unless debugging.
15388 # Note that there is a small window in which the directory will not be cleaned:
15389 # after its creation but before its name has been assigned to `$tmp'.
15390 $debug ||
15391 {
15392 tmp= ac_tmp=
15393 trap 'exit_status=$?
15394 : "${ac_tmp:=$tmp}"
15395 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15396 ' 0
15397 trap 'as_fn_exit 1' 1 2 13 15
15398 }
15399 # Create a (secure) tmp directory for tmp files.
15400
15401 {
15402 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15403 test -d "$tmp"
15404 } ||
15405 {
15406 tmp=./conf$$-$RANDOM
15407 (umask 077 && mkdir "$tmp")
15408 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15409 ac_tmp=$tmp
15410
15411 # Set up the scripts for CONFIG_FILES section.
15412 # No need to generate them if there are no CONFIG_FILES.
15413 # This happens for instance with `./config.status config.h'.
15414 if test -n "$CONFIG_FILES"; then
15415
15416
15417 ac_cr=`echo X | tr X '\015'`
15418 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15419 # But we know of no other shell where ac_cr would be empty at this
15420 # point, so we can use a bashism as a fallback.
15421 if test "x$ac_cr" = x; then
15422 eval ac_cr=\$\'\\r\'
15423 fi
15424 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15425 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15426 ac_cs_awk_cr='\\r'
15427 else
15428 ac_cs_awk_cr=$ac_cr
15429 fi
15430
15431 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15432 _ACEOF
15433
15434
15435 {
15436 echo "cat >conf$$subs.awk <<_ACEOF" &&
15437 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15438 echo "_ACEOF"
15439 } >conf$$subs.sh ||
15440 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15441 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15442 ac_delim='%!_!# '
15443 for ac_last_try in false false false false false :; do
15444 . ./conf$$subs.sh ||
15445 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15446
15447 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15448 if test $ac_delim_n = $ac_delim_num; then
15449 break
15450 elif $ac_last_try; then
15451 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15452 else
15453 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15454 fi
15455 done
15456 rm -f conf$$subs.sh
15457
15458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15459 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15460 _ACEOF
15461 sed -n '
15462 h
15463 s/^/S["/; s/!.*/"]=/
15464 p
15465 g
15466 s/^[^!]*!//
15467 :repl
15468 t repl
15469 s/'"$ac_delim"'$//
15470 t delim
15471 :nl
15472 h
15473 s/\(.\{148\}\)..*/\1/
15474 t more1
15475 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15476 p
15477 n
15478 b repl
15479 :more1
15480 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15481 p
15482 g
15483 s/.\{148\}//
15484 t nl
15485 :delim
15486 h
15487 s/\(.\{148\}\)..*/\1/
15488 t more2
15489 s/["\\]/\\&/g; s/^/"/; s/$/"/
15490 p
15491 b
15492 :more2
15493 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15494 p
15495 g
15496 s/.\{148\}//
15497 t delim
15498 ' <conf$$subs.awk | sed '
15499 /^[^""]/{
15500 N
15501 s/\n//
15502 }
15503 ' >>$CONFIG_STATUS || ac_write_fail=1
15504 rm -f conf$$subs.awk
15505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15506 _ACAWK
15507 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15508 for (key in S) S_is_set[key] = 1
15509 FS = "\a"
15510
15511 }
15512 {
15513 line = $ 0
15514 nfields = split(line, field, "@")
15515 substed = 0
15516 len = length(field[1])
15517 for (i = 2; i < nfields; i++) {
15518 key = field[i]
15519 keylen = length(key)
15520 if (S_is_set[key]) {
15521 value = S[key]
15522 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15523 len += length(value) + length(field[++i])
15524 substed = 1
15525 } else
15526 len += 1 + keylen
15527 }
15528
15529 print line
15530 }
15531
15532 _ACAWK
15533 _ACEOF
15534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15535 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15536 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15537 else
15538 cat
15539 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15540 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15541 _ACEOF
15542
15543 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15544 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15545 # trailing colons and then remove the whole line if VPATH becomes empty
15546 # (actually we leave an empty line to preserve line numbers).
15547 if test "x$srcdir" = x.; then
15548 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15549 h
15550 s///
15551 s/^/:/
15552 s/[ ]*$/:/
15553 s/:\$(srcdir):/:/g
15554 s/:\${srcdir}:/:/g
15555 s/:@srcdir@:/:/g
15556 s/^:*//
15557 s/:*$//
15558 x
15559 s/\(=[ ]*\).*/\1/
15560 G
15561 s/\n//
15562 s/^[^=]*=[ ]*$//
15563 }'
15564 fi
15565
15566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15567 fi # test -n "$CONFIG_FILES"
15568
15569 # Set up the scripts for CONFIG_HEADERS section.
15570 # No need to generate them if there are no CONFIG_HEADERS.
15571 # This happens for instance with `./config.status Makefile'.
15572 if test -n "$CONFIG_HEADERS"; then
15573 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15574 BEGIN {
15575 _ACEOF
15576
15577 # Transform confdefs.h into an awk script `defines.awk', embedded as
15578 # here-document in config.status, that substitutes the proper values into
15579 # config.h.in to produce config.h.
15580
15581 # Create a delimiter string that does not exist in confdefs.h, to ease
15582 # handling of long lines.
15583 ac_delim='%!_!# '
15584 for ac_last_try in false false :; do
15585 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15586 if test -z "$ac_tt"; then
15587 break
15588 elif $ac_last_try; then
15589 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15590 else
15591 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15592 fi
15593 done
15594
15595 # For the awk script, D is an array of macro values keyed by name,
15596 # likewise P contains macro parameters if any. Preserve backslash
15597 # newline sequences.
15598
15599 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15600 sed -n '
15601 s/.\{148\}/&'"$ac_delim"'/g
15602 t rset
15603 :rset
15604 s/^[ ]*#[ ]*define[ ][ ]*/ /
15605 t def
15606 d
15607 :def
15608 s/\\$//
15609 t bsnl
15610 s/["\\]/\\&/g
15611 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15612 D["\1"]=" \3"/p
15613 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15614 d
15615 :bsnl
15616 s/["\\]/\\&/g
15617 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15618 D["\1"]=" \3\\\\\\n"\\/p
15619 t cont
15620 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15621 t cont
15622 d
15623 :cont
15624 n
15625 s/.\{148\}/&'"$ac_delim"'/g
15626 t clear
15627 :clear
15628 s/\\$//
15629 t bsnlc
15630 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15631 d
15632 :bsnlc
15633 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15634 b cont
15635 ' <confdefs.h | sed '
15636 s/'"$ac_delim"'/"\\\
15637 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15638
15639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15640 for (key in D) D_is_set[key] = 1
15641 FS = "\a"
15642 }
15643 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15644 line = \$ 0
15645 split(line, arg, " ")
15646 if (arg[1] == "#") {
15647 defundef = arg[2]
15648 mac1 = arg[3]
15649 } else {
15650 defundef = substr(arg[1], 2)
15651 mac1 = arg[2]
15652 }
15653 split(mac1, mac2, "(") #)
15654 macro = mac2[1]
15655 prefix = substr(line, 1, index(line, defundef) - 1)
15656 if (D_is_set[macro]) {
15657 # Preserve the white space surrounding the "#".
15658 print prefix "define", macro P[macro] D[macro]
15659 next
15660 } else {
15661 # Replace #undef with comments. This is necessary, for example,
15662 # in the case of _POSIX_SOURCE, which is predefined and required
15663 # on some systems where configure will not decide to define it.
15664 if (defundef == "undef") {
15665 print "/*", prefix defundef, macro, "*/"
15666 next
15667 }
15668 }
15669 }
15670 { print }
15671 _ACAWK
15672 _ACEOF
15673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15674 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15675 fi # test -n "$CONFIG_HEADERS"
15676
15677
15678 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15679 shift
15680 for ac_tag
15681 do
15682 case $ac_tag in
15683 :[FHLC]) ac_mode=$ac_tag; continue;;
15684 esac
15685 case $ac_mode$ac_tag in
15686 :[FHL]*:*);;
15687 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15688 :[FH]-) ac_tag=-:-;;
15689 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15690 esac
15691 ac_save_IFS=$IFS
15692 IFS=:
15693 set x $ac_tag
15694 IFS=$ac_save_IFS
15695 shift
15696 ac_file=$1
15697 shift
15698
15699 case $ac_mode in
15700 :L) ac_source=$1;;
15701 :[FH])
15702 ac_file_inputs=
15703 for ac_f
15704 do
15705 case $ac_f in
15706 -) ac_f="$ac_tmp/stdin";;
15707 *) # Look for the file first in the build tree, then in the source tree
15708 # (if the path is not absolute). The absolute path cannot be DOS-style,
15709 # because $ac_f cannot contain `:'.
15710 test -f "$ac_f" ||
15711 case $ac_f in
15712 [\\/$]*) false;;
15713 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15714 esac ||
15715 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15716 esac
15717 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15718 as_fn_append ac_file_inputs " '$ac_f'"
15719 done
15720
15721 # Let's still pretend it is `configure' which instantiates (i.e., don't
15722 # use $as_me), people would be surprised to read:
15723 # /* config.h. Generated by config.status. */
15724 configure_input='Generated from '`
15725 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15726 `' by configure.'
15727 if test x"$ac_file" != x-; then
15728 configure_input="$ac_file. $configure_input"
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15730 $as_echo "$as_me: creating $ac_file" >&6;}
15731 fi
15732 # Neutralize special characters interpreted by sed in replacement strings.
15733 case $configure_input in #(
15734 *\&* | *\|* | *\\* )
15735 ac_sed_conf_input=`$as_echo "$configure_input" |
15736 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15737 *) ac_sed_conf_input=$configure_input;;
15738 esac
15739
15740 case $ac_tag in
15741 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15742 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15743 esac
15744 ;;
15745 esac
15746
15747 ac_dir=`$as_dirname -- "$ac_file" ||
15748 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15749 X"$ac_file" : 'X\(//\)[^/]' \| \
15750 X"$ac_file" : 'X\(//\)$' \| \
15751 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15752 $as_echo X"$ac_file" |
15753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15754 s//\1/
15755 q
15756 }
15757 /^X\(\/\/\)[^/].*/{
15758 s//\1/
15759 q
15760 }
15761 /^X\(\/\/\)$/{
15762 s//\1/
15763 q
15764 }
15765 /^X\(\/\).*/{
15766 s//\1/
15767 q
15768 }
15769 s/.*/./; q'`
15770 as_dir="$ac_dir"; as_fn_mkdir_p
15771 ac_builddir=.
15772
15773 case "$ac_dir" in
15774 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15775 *)
15776 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15777 # A ".." for each directory in $ac_dir_suffix.
15778 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15779 case $ac_top_builddir_sub in
15780 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15781 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15782 esac ;;
15783 esac
15784 ac_abs_top_builddir=$ac_pwd
15785 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15786 # for backward compatibility:
15787 ac_top_builddir=$ac_top_build_prefix
15788
15789 case $srcdir in
15790 .) # We are building in place.
15791 ac_srcdir=.
15792 ac_top_srcdir=$ac_top_builddir_sub
15793 ac_abs_top_srcdir=$ac_pwd ;;
15794 [\\/]* | ?:[\\/]* ) # Absolute name.
15795 ac_srcdir=$srcdir$ac_dir_suffix;
15796 ac_top_srcdir=$srcdir
15797 ac_abs_top_srcdir=$srcdir ;;
15798 *) # Relative name.
15799 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15800 ac_top_srcdir=$ac_top_build_prefix$srcdir
15801 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15802 esac
15803 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15804
15805
15806 case $ac_mode in
15807 :F)
15808 #
15809 # CONFIG_FILE
15810 #
15811
15812 case $INSTALL in
15813 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15814 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15815 esac
15816 ac_MKDIR_P=$MKDIR_P
15817 case $MKDIR_P in
15818 [\\/$]* | ?:[\\/]* ) ;;
15819 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15820 esac
15821 _ACEOF
15822
15823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15824 # If the template does not know about datarootdir, expand it.
15825 # FIXME: This hack should be removed a few years after 2.60.
15826 ac_datarootdir_hack=; ac_datarootdir_seen=
15827 ac_sed_dataroot='
15828 /datarootdir/ {
15829 p
15830 q
15831 }
15832 /@datadir@/p
15833 /@docdir@/p
15834 /@infodir@/p
15835 /@localedir@/p
15836 /@mandir@/p'
15837 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15838 *datarootdir*) ac_datarootdir_seen=yes;;
15839 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15841 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15842 _ACEOF
15843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15844 ac_datarootdir_hack='
15845 s&@datadir@&$datadir&g
15846 s&@docdir@&$docdir&g
15847 s&@infodir@&$infodir&g
15848 s&@localedir@&$localedir&g
15849 s&@mandir@&$mandir&g
15850 s&\\\${datarootdir}&$datarootdir&g' ;;
15851 esac
15852 _ACEOF
15853
15854 # Neutralize VPATH when `$srcdir' = `.'.
15855 # Shell code in configure.ac might set extrasub.
15856 # FIXME: do we really want to maintain this feature?
15857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15858 ac_sed_extra="$ac_vpsub
15859 $extrasub
15860 _ACEOF
15861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15862 :t
15863 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15864 s|@configure_input@|$ac_sed_conf_input|;t t
15865 s&@top_builddir@&$ac_top_builddir_sub&;t t
15866 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15867 s&@srcdir@&$ac_srcdir&;t t
15868 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15869 s&@top_srcdir@&$ac_top_srcdir&;t t
15870 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15871 s&@builddir@&$ac_builddir&;t t
15872 s&@abs_builddir@&$ac_abs_builddir&;t t
15873 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15874 s&@INSTALL@&$ac_INSTALL&;t t
15875 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15876 $ac_datarootdir_hack
15877 "
15878 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15879 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15880
15881 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15882 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15883 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15884 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15886 which seems to be undefined. Please make sure it is defined" >&5
15887 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15888 which seems to be undefined. Please make sure it is defined" >&2;}
15889
15890 rm -f "$ac_tmp/stdin"
15891 case $ac_file in
15892 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15893 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15894 esac \
15895 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15896 ;;
15897 :H)
15898 #
15899 # CONFIG_HEADER
15900 #
15901 if test x"$ac_file" != x-; then
15902 {
15903 $as_echo "/* $configure_input */" \
15904 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15905 } >"$ac_tmp/config.h" \
15906 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15907 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15909 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15910 else
15911 rm -f "$ac_file"
15912 mv "$ac_tmp/config.h" "$ac_file" \
15913 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15914 fi
15915 else
15916 $as_echo "/* $configure_input */" \
15917 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15918 || as_fn_error $? "could not create -" "$LINENO" 5
15919 fi
15920 # Compute "$ac_file"'s index in $config_headers.
15921 _am_arg="$ac_file"
15922 _am_stamp_count=1
15923 for _am_header in $config_headers :; do
15924 case $_am_header in
15925 $_am_arg | $_am_arg:* )
15926 break ;;
15927 * )
15928 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15929 esac
15930 done
15931 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15932 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15933 X"$_am_arg" : 'X\(//\)[^/]' \| \
15934 X"$_am_arg" : 'X\(//\)$' \| \
15935 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15936 $as_echo X"$_am_arg" |
15937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15938 s//\1/
15939 q
15940 }
15941 /^X\(\/\/\)[^/].*/{
15942 s//\1/
15943 q
15944 }
15945 /^X\(\/\/\)$/{
15946 s//\1/
15947 q
15948 }
15949 /^X\(\/\).*/{
15950 s//\1/
15951 q
15952 }
15953 s/.*/./; q'`/stamp-h$_am_stamp_count
15954 ;;
15955
15956 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15957 $as_echo "$as_me: executing $ac_file commands" >&6;}
15958 ;;
15959 esac
15960
15961
15962 case $ac_file$ac_mode in
15963 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15964 # Older Autoconf quotes --file arguments for eval, but not when files
15965 # are listed without --file. Let's play safe and only enable the eval
15966 # if we detect the quoting.
15967 case $CONFIG_FILES in
15968 *\'*) eval set x "$CONFIG_FILES" ;;
15969 *) set x $CONFIG_FILES ;;
15970 esac
15971 shift
15972 for mf
15973 do
15974 # Strip MF so we end up with the name of the file.
15975 mf=`echo "$mf" | sed -e 's/:.*$//'`
15976 # Check whether this is an Automake generated Makefile or not.
15977 # We used to match only the files named 'Makefile.in', but
15978 # some people rename them; so instead we look at the file content.
15979 # Grep'ing the first line is not enough: some people post-process
15980 # each Makefile.in and add a new line on top of each file to say so.
15981 # Grep'ing the whole file is not good either: AIX grep has a line
15982 # limit of 2048, but all sed's we know have understand at least 4000.
15983 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15984 dirpart=`$as_dirname -- "$mf" ||
15985 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15986 X"$mf" : 'X\(//\)[^/]' \| \
15987 X"$mf" : 'X\(//\)$' \| \
15988 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15989 $as_echo X"$mf" |
15990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15991 s//\1/
15992 q
15993 }
15994 /^X\(\/\/\)[^/].*/{
15995 s//\1/
15996 q
15997 }
15998 /^X\(\/\/\)$/{
15999 s//\1/
16000 q
16001 }
16002 /^X\(\/\).*/{
16003 s//\1/
16004 q
16005 }
16006 s/.*/./; q'`
16007 else
16008 continue
16009 fi
16010 # Extract the definition of DEPDIR, am__include, and am__quote
16011 # from the Makefile without running 'make'.
16012 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16013 test -z "$DEPDIR" && continue
16014 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16015 test -z "$am__include" && continue
16016 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16017 # Find all dependency output files, they are included files with
16018 # $(DEPDIR) in their names. We invoke sed twice because it is the
16019 # simplest approach to changing $(DEPDIR) to its actual value in the
16020 # expansion.
16021 for file in `sed -n "
16022 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16023 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16024 # Make sure the directory exists.
16025 test -f "$dirpart/$file" && continue
16026 fdir=`$as_dirname -- "$file" ||
16027 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16028 X"$file" : 'X\(//\)[^/]' \| \
16029 X"$file" : 'X\(//\)$' \| \
16030 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16031 $as_echo X"$file" |
16032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16033 s//\1/
16034 q
16035 }
16036 /^X\(\/\/\)[^/].*/{
16037 s//\1/
16038 q
16039 }
16040 /^X\(\/\/\)$/{
16041 s//\1/
16042 q
16043 }
16044 /^X\(\/\).*/{
16045 s//\1/
16046 q
16047 }
16048 s/.*/./; q'`
16049 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16050 # echo "creating $dirpart/$file"
16051 echo '# dummy' > "$dirpart/$file"
16052 done
16053 done
16054 }
16055 ;;
16056 "libtool":C)
16057
16058 # See if we are running on zsh, and set the options which allow our
16059 # commands through without removal of \ escapes.
16060 if test -n "${ZSH_VERSION+set}" ; then
16061 setopt NO_GLOB_SUBST
16062 fi
16063
16064 cfgfile="${ofile}T"
16065 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16066 $RM "$cfgfile"
16067
16068 cat <<_LT_EOF >> "$cfgfile"
16069 #! $SHELL
16070
16071 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16072 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16073 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16074 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16075 #
16076 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16077 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16078 # Written by Gordon Matzigkeit, 1996
16079 #
16080 # This file is part of GNU Libtool.
16081 #
16082 # GNU Libtool is free software; you can redistribute it and/or
16083 # modify it under the terms of the GNU General Public License as
16084 # published by the Free Software Foundation; either version 2 of
16085 # the License, or (at your option) any later version.
16086 #
16087 # As a special exception to the GNU General Public License,
16088 # if you distribute this file as part of a program or library that
16089 # is built using GNU Libtool, you may include this file under the
16090 # same distribution terms that you use for the rest of that program.
16091 #
16092 # GNU Libtool is distributed in the hope that it will be useful,
16093 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16094 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16095 # GNU General Public License for more details.
16096 #
16097 # You should have received a copy of the GNU General Public License
16098 # along with GNU Libtool; see the file COPYING. If not, a copy
16099 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16100 # obtained by writing to the Free Software Foundation, Inc.,
16101 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16102
16103
16104 # The names of the tagged configurations supported by this script.
16105 available_tags=""
16106
16107 # ### BEGIN LIBTOOL CONFIG
16108
16109 # Which release of libtool.m4 was used?
16110 macro_version=$macro_version
16111 macro_revision=$macro_revision
16112
16113 # Whether or not to build shared libraries.
16114 build_libtool_libs=$enable_shared
16115
16116 # Whether or not to build static libraries.
16117 build_old_libs=$enable_static
16118
16119 # What type of objects to build.
16120 pic_mode=$pic_mode
16121
16122 # Whether or not to optimize for fast installation.
16123 fast_install=$enable_fast_install
16124
16125 # Shell to use when invoking shell scripts.
16126 SHELL=$lt_SHELL
16127
16128 # An echo program that protects backslashes.
16129 ECHO=$lt_ECHO
16130
16131 # The host system.
16132 host_alias=$host_alias
16133 host=$host
16134 host_os=$host_os
16135
16136 # The build system.
16137 build_alias=$build_alias
16138 build=$build
16139 build_os=$build_os
16140
16141 # A sed program that does not truncate output.
16142 SED=$lt_SED
16143
16144 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16145 Xsed="\$SED -e 1s/^X//"
16146
16147 # A grep program that handles long lines.
16148 GREP=$lt_GREP
16149
16150 # An ERE matcher.
16151 EGREP=$lt_EGREP
16152
16153 # A literal string matcher.
16154 FGREP=$lt_FGREP
16155
16156 # A BSD- or MS-compatible name lister.
16157 NM=$lt_NM
16158
16159 # Whether we need soft or hard links.
16160 LN_S=$lt_LN_S
16161
16162 # What is the maximum length of a command?
16163 max_cmd_len=$max_cmd_len
16164
16165 # Object file suffix (normally "o").
16166 objext=$ac_objext
16167
16168 # Executable file suffix (normally "").
16169 exeext=$exeext
16170
16171 # whether the shell understands "unset".
16172 lt_unset=$lt_unset
16173
16174 # turn spaces into newlines.
16175 SP2NL=$lt_lt_SP2NL
16176
16177 # turn newlines into spaces.
16178 NL2SP=$lt_lt_NL2SP
16179
16180 # An object symbol dumper.
16181 OBJDUMP=$lt_OBJDUMP
16182
16183 # Method to check whether dependent libraries are shared objects.
16184 deplibs_check_method=$lt_deplibs_check_method
16185
16186 # Command to use when deplibs_check_method == "file_magic".
16187 file_magic_cmd=$lt_file_magic_cmd
16188
16189 # The archiver.
16190 AR=$lt_AR
16191 AR_FLAGS=$lt_AR_FLAGS
16192
16193 # A symbol stripping program.
16194 STRIP=$lt_STRIP
16195
16196 # Commands used to install an old-style archive.
16197 RANLIB=$lt_RANLIB
16198 old_postinstall_cmds=$lt_old_postinstall_cmds
16199 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16200
16201 # Whether to use a lock for old archive extraction.
16202 lock_old_archive_extraction=$lock_old_archive_extraction
16203
16204 # A C compiler.
16205 LTCC=$lt_CC
16206
16207 # LTCC compiler flags.
16208 LTCFLAGS=$lt_CFLAGS
16209
16210 # Take the output of nm and produce a listing of raw symbols and C names.
16211 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16212
16213 # Transform the output of nm in a proper C declaration.
16214 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16215
16216 # Transform the output of nm in a C name address pair.
16217 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16218
16219 # Transform the output of nm in a C name address pair when lib prefix is needed.
16220 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16221
16222 # The name of the directory that contains temporary libtool files.
16223 objdir=$objdir
16224
16225 # Used to examine libraries when file_magic_cmd begins with "file".
16226 MAGIC_CMD=$MAGIC_CMD
16227
16228 # Must we lock files when doing compilation?
16229 need_locks=$lt_need_locks
16230
16231 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16232 DSYMUTIL=$lt_DSYMUTIL
16233
16234 # Tool to change global to local symbols on Mac OS X.
16235 NMEDIT=$lt_NMEDIT
16236
16237 # Tool to manipulate fat objects and archives on Mac OS X.
16238 LIPO=$lt_LIPO
16239
16240 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16241 OTOOL=$lt_OTOOL
16242
16243 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16244 OTOOL64=$lt_OTOOL64
16245
16246 # Old archive suffix (normally "a").
16247 libext=$libext
16248
16249 # Shared library suffix (normally ".so").
16250 shrext_cmds=$lt_shrext_cmds
16251
16252 # The commands to extract the exported symbol list from a shared archive.
16253 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16254
16255 # Variables whose values should be saved in libtool wrapper scripts and
16256 # restored at link time.
16257 variables_saved_for_relink=$lt_variables_saved_for_relink
16258
16259 # Do we need the "lib" prefix for modules?
16260 need_lib_prefix=$need_lib_prefix
16261
16262 # Do we need a version for libraries?
16263 need_version=$need_version
16264
16265 # Library versioning type.
16266 version_type=$version_type
16267
16268 # Shared library runtime path variable.
16269 runpath_var=$runpath_var
16270
16271 # Shared library path variable.
16272 shlibpath_var=$shlibpath_var
16273
16274 # Is shlibpath searched before the hard-coded library search path?
16275 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16276
16277 # Format of library name prefix.
16278 libname_spec=$lt_libname_spec
16279
16280 # List of archive names. First name is the real one, the rest are links.
16281 # The last name is the one that the linker finds with -lNAME
16282 library_names_spec=$lt_library_names_spec
16283
16284 # The coded name of the library, if different from the real name.
16285 soname_spec=$lt_soname_spec
16286
16287 # Permission mode override for installation of shared libraries.
16288 install_override_mode=$lt_install_override_mode
16289
16290 # Command to use after installation of a shared archive.
16291 postinstall_cmds=$lt_postinstall_cmds
16292
16293 # Command to use after uninstallation of a shared archive.
16294 postuninstall_cmds=$lt_postuninstall_cmds
16295
16296 # Commands used to finish a libtool library installation in a directory.
16297 finish_cmds=$lt_finish_cmds
16298
16299 # As "finish_cmds", except a single script fragment to be evaled but
16300 # not shown.
16301 finish_eval=$lt_finish_eval
16302
16303 # Whether we should hardcode library paths into libraries.
16304 hardcode_into_libs=$hardcode_into_libs
16305
16306 # Compile-time system search path for libraries.
16307 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16308
16309 # Run-time system search path for libraries.
16310 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16311
16312 # Whether dlopen is supported.
16313 dlopen_support=$enable_dlopen
16314
16315 # Whether dlopen of programs is supported.
16316 dlopen_self=$enable_dlopen_self
16317
16318 # Whether dlopen of statically linked programs is supported.
16319 dlopen_self_static=$enable_dlopen_self_static
16320
16321 # Commands to strip libraries.
16322 old_striplib=$lt_old_striplib
16323 striplib=$lt_striplib
16324
16325
16326 # The linker used to build libraries.
16327 LD=$lt_LD
16328
16329 # How to create reloadable object files.
16330 reload_flag=$lt_reload_flag
16331 reload_cmds=$lt_reload_cmds
16332
16333 # Commands used to build an old-style archive.
16334 old_archive_cmds=$lt_old_archive_cmds
16335
16336 # A language specific compiler.
16337 CC=$lt_compiler
16338
16339 # Is the compiler the GNU compiler?
16340 with_gcc=$GCC
16341
16342 # Compiler flag to turn off builtin functions.
16343 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16344
16345 # How to pass a linker flag through the compiler.
16346 wl=$lt_lt_prog_compiler_wl
16347
16348 # Additional compiler flags for building library objects.
16349 pic_flag=$lt_lt_prog_compiler_pic
16350
16351 # Compiler flag to prevent dynamic linking.
16352 link_static_flag=$lt_lt_prog_compiler_static
16353
16354 # Does compiler simultaneously support -c and -o options?
16355 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16356
16357 # Whether or not to add -lc for building shared libraries.
16358 build_libtool_need_lc=$archive_cmds_need_lc
16359
16360 # Whether or not to disallow shared libs when runtime libs are static.
16361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16362
16363 # Compiler flag to allow reflexive dlopens.
16364 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16365
16366 # Compiler flag to generate shared objects directly from archives.
16367 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16368
16369 # Whether the compiler copes with passing no objects directly.
16370 compiler_needs_object=$lt_compiler_needs_object
16371
16372 # Create an old-style archive from a shared archive.
16373 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16374
16375 # Create a temporary old-style archive to link instead of a shared archive.
16376 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16377
16378 # Commands used to build a shared archive.
16379 archive_cmds=$lt_archive_cmds
16380 archive_expsym_cmds=$lt_archive_expsym_cmds
16381
16382 # Commands used to build a loadable module if different from building
16383 # a shared archive.
16384 module_cmds=$lt_module_cmds
16385 module_expsym_cmds=$lt_module_expsym_cmds
16386
16387 # Whether we are building with GNU ld or not.
16388 with_gnu_ld=$lt_with_gnu_ld
16389
16390 # Flag that allows shared libraries with undefined symbols to be built.
16391 allow_undefined_flag=$lt_allow_undefined_flag
16392
16393 # Flag that enforces no undefined symbols.
16394 no_undefined_flag=$lt_no_undefined_flag
16395
16396 # Flag to hardcode \$libdir into a binary during linking.
16397 # This must work even if \$libdir does not exist
16398 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16399
16400 # If ld is used when linking, flag to hardcode \$libdir into a binary
16401 # during linking. This must work even if \$libdir does not exist.
16402 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16403
16404 # Whether we need a single "-rpath" flag with a separated argument.
16405 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16406
16407 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16408 # DIR into the resulting binary.
16409 hardcode_direct=$hardcode_direct
16410
16411 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16412 # DIR into the resulting binary and the resulting library dependency is
16413 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16414 # library is relocated.
16415 hardcode_direct_absolute=$hardcode_direct_absolute
16416
16417 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16418 # into the resulting binary.
16419 hardcode_minus_L=$hardcode_minus_L
16420
16421 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16422 # into the resulting binary.
16423 hardcode_shlibpath_var=$hardcode_shlibpath_var
16424
16425 # Set to "yes" if building a shared library automatically hardcodes DIR
16426 # into the library and all subsequent libraries and executables linked
16427 # against it.
16428 hardcode_automatic=$hardcode_automatic
16429
16430 # Set to yes if linker adds runtime paths of dependent libraries
16431 # to runtime path list.
16432 inherit_rpath=$inherit_rpath
16433
16434 # Whether libtool must link a program against all its dependency libraries.
16435 link_all_deplibs=$link_all_deplibs
16436
16437 # Fix the shell variable \$srcfile for the compiler.
16438 fix_srcfile_path=$lt_fix_srcfile_path
16439
16440 # Set to "yes" if exported symbols are required.
16441 always_export_symbols=$always_export_symbols
16442
16443 # The commands to list exported symbols.
16444 export_symbols_cmds=$lt_export_symbols_cmds
16445
16446 # Symbols that should not be listed in the preloaded symbols.
16447 exclude_expsyms=$lt_exclude_expsyms
16448
16449 # Symbols that must always be exported.
16450 include_expsyms=$lt_include_expsyms
16451
16452 # Commands necessary for linking programs (against libraries) with templates.
16453 prelink_cmds=$lt_prelink_cmds
16454
16455 # Specify filename containing input files.
16456 file_list_spec=$lt_file_list_spec
16457
16458 # How to hardcode a shared library path into an executable.
16459 hardcode_action=$hardcode_action
16460
16461 # ### END LIBTOOL CONFIG
16462
16463 _LT_EOF
16464
16465 case $host_os in
16466 aix3*)
16467 cat <<\_LT_EOF >> "$cfgfile"
16468 # AIX sometimes has problems with the GCC collect2 program. For some
16469 # reason, if we set the COLLECT_NAMES environment variable, the problems
16470 # vanish in a puff of smoke.
16471 if test "X${COLLECT_NAMES+set}" != Xset; then
16472 COLLECT_NAMES=
16473 export COLLECT_NAMES
16474 fi
16475 _LT_EOF
16476 ;;
16477 esac
16478
16479
16480 ltmain="$ac_aux_dir/ltmain.sh"
16481
16482
16483 # We use sed instead of cat because bash on DJGPP gets confused if
16484 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16485 # text mode, it properly converts lines to CR/LF. This bash problem
16486 # is reportedly fixed, but why not run on old versions too?
16487 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16488 || (rm -f "$cfgfile"; exit 1)
16489
16490 case $xsi_shell in
16491 yes)
16492 cat << \_LT_EOF >> "$cfgfile"
16493
16494 # func_dirname file append nondir_replacement
16495 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16496 # otherwise set result to NONDIR_REPLACEMENT.
16497 func_dirname ()
16498 {
16499 case ${1} in
16500 */*) func_dirname_result="${1%/*}${2}" ;;
16501 * ) func_dirname_result="${3}" ;;
16502 esac
16503 }
16504
16505 # func_basename file
16506 func_basename ()
16507 {
16508 func_basename_result="${1##*/}"
16509 }
16510
16511 # func_dirname_and_basename file append nondir_replacement
16512 # perform func_basename and func_dirname in a single function
16513 # call:
16514 # dirname: Compute the dirname of FILE. If nonempty,
16515 # add APPEND to the result, otherwise set result
16516 # to NONDIR_REPLACEMENT.
16517 # value returned in "$func_dirname_result"
16518 # basename: Compute filename of FILE.
16519 # value retuned in "$func_basename_result"
16520 # Implementation must be kept synchronized with func_dirname
16521 # and func_basename. For efficiency, we do not delegate to
16522 # those functions but instead duplicate the functionality here.
16523 func_dirname_and_basename ()
16524 {
16525 case ${1} in
16526 */*) func_dirname_result="${1%/*}${2}" ;;
16527 * ) func_dirname_result="${3}" ;;
16528 esac
16529 func_basename_result="${1##*/}"
16530 }
16531
16532 # func_stripname prefix suffix name
16533 # strip PREFIX and SUFFIX off of NAME.
16534 # PREFIX and SUFFIX must not contain globbing or regex special
16535 # characters, hashes, percent signs, but SUFFIX may contain a leading
16536 # dot (in which case that matches only a dot).
16537 func_stripname ()
16538 {
16539 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16540 # positional parameters, so assign one to ordinary parameter first.
16541 func_stripname_result=${3}
16542 func_stripname_result=${func_stripname_result#"${1}"}
16543 func_stripname_result=${func_stripname_result%"${2}"}
16544 }
16545
16546 # func_opt_split
16547 func_opt_split ()
16548 {
16549 func_opt_split_opt=${1%%=*}
16550 func_opt_split_arg=${1#*=}
16551 }
16552
16553 # func_lo2o object
16554 func_lo2o ()
16555 {
16556 case ${1} in
16557 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16558 *) func_lo2o_result=${1} ;;
16559 esac
16560 }
16561
16562 # func_xform libobj-or-source
16563 func_xform ()
16564 {
16565 func_xform_result=${1%.*}.lo
16566 }
16567
16568 # func_arith arithmetic-term...
16569 func_arith ()
16570 {
16571 func_arith_result=$(( $* ))
16572 }
16573
16574 # func_len string
16575 # STRING may not start with a hyphen.
16576 func_len ()
16577 {
16578 func_len_result=${#1}
16579 }
16580
16581 _LT_EOF
16582 ;;
16583 *) # Bourne compatible functions.
16584 cat << \_LT_EOF >> "$cfgfile"
16585
16586 # func_dirname file append nondir_replacement
16587 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16588 # otherwise set result to NONDIR_REPLACEMENT.
16589 func_dirname ()
16590 {
16591 # Extract subdirectory from the argument.
16592 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16593 if test "X$func_dirname_result" = "X${1}"; then
16594 func_dirname_result="${3}"
16595 else
16596 func_dirname_result="$func_dirname_result${2}"
16597 fi
16598 }
16599
16600 # func_basename file
16601 func_basename ()
16602 {
16603 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16604 }
16605
16606
16607 # func_stripname prefix suffix name
16608 # strip PREFIX and SUFFIX off of NAME.
16609 # PREFIX and SUFFIX must not contain globbing or regex special
16610 # characters, hashes, percent signs, but SUFFIX may contain a leading
16611 # dot (in which case that matches only a dot).
16612 # func_strip_suffix prefix name
16613 func_stripname ()
16614 {
16615 case ${2} in
16616 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16617 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16618 esac
16619 }
16620
16621 # sed scripts:
16622 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16623 my_sed_long_arg='1s/^-[^=]*=//'
16624
16625 # func_opt_split
16626 func_opt_split ()
16627 {
16628 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16629 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16630 }
16631
16632 # func_lo2o object
16633 func_lo2o ()
16634 {
16635 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16636 }
16637
16638 # func_xform libobj-or-source
16639 func_xform ()
16640 {
16641 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16642 }
16643
16644 # func_arith arithmetic-term...
16645 func_arith ()
16646 {
16647 func_arith_result=`expr "$@"`
16648 }
16649
16650 # func_len string
16651 # STRING may not start with a hyphen.
16652 func_len ()
16653 {
16654 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16655 }
16656
16657 _LT_EOF
16658 esac
16659
16660 case $lt_shell_append in
16661 yes)
16662 cat << \_LT_EOF >> "$cfgfile"
16663
16664 # func_append var value
16665 # Append VALUE to the end of shell variable VAR.
16666 func_append ()
16667 {
16668 eval "$1+=\$2"
16669 }
16670 _LT_EOF
16671 ;;
16672 *)
16673 cat << \_LT_EOF >> "$cfgfile"
16674
16675 # func_append var value
16676 # Append VALUE to the end of shell variable VAR.
16677 func_append ()
16678 {
16679 eval "$1=\$$1\$2"
16680 }
16681
16682 _LT_EOF
16683 ;;
16684 esac
16685
16686
16687 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16688 || (rm -f "$cfgfile"; exit 1)
16689
16690 mv -f "$cfgfile" "$ofile" ||
16691 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16692 chmod +x "$ofile"
16693
16694 ;;
16695 "default-1":C)
16696 for ac_file in $CONFIG_FILES; do
16697 # Support "outfile[:infile[:infile...]]"
16698 case "$ac_file" in
16699 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16700 esac
16701 # PO directories have a Makefile.in generated from Makefile.in.in.
16702 case "$ac_file" in */Makefile.in)
16703 # Adjust a relative srcdir.
16704 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16705 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16706 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16707 # In autoconf-2.13 it is called $ac_given_srcdir.
16708 # In autoconf-2.50 it is called $srcdir.
16709 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16710 case "$ac_given_srcdir" in
16711 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16712 /*) top_srcdir="$ac_given_srcdir" ;;
16713 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16714 esac
16715 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16716 rm -f "$ac_dir/POTFILES"
16717 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16718 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16719 POMAKEFILEDEPS="POTFILES.in"
16720 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16721 # on $ac_dir but don't depend on user-specified configuration
16722 # parameters.
16723 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16724 # The LINGUAS file contains the set of available languages.
16725 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16726 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16727 fi
16728 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16729 # Hide the ALL_LINGUAS assigment from automake.
16730 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16731 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16732 else
16733 # The set of available languages was given in configure.ac.
16734 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16735 fi
16736 case "$ac_given_srcdir" in
16737 .) srcdirpre= ;;
16738 *) srcdirpre='$(srcdir)/' ;;
16739 esac
16740 POFILES=
16741 GMOFILES=
16742 UPDATEPOFILES=
16743 DUMMYPOFILES=
16744 for lang in $ALL_LINGUAS; do
16745 POFILES="$POFILES $srcdirpre$lang.po"
16746 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16747 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16748 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16749 done
16750 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16751 # environment variable.
16752 INST_LINGUAS=
16753 if test -n "$ALL_LINGUAS"; then
16754 for presentlang in $ALL_LINGUAS; do
16755 useit=no
16756 if test "%UNSET%" != "$LINGUAS"; then
16757 desiredlanguages="$LINGUAS"
16758 else
16759 desiredlanguages="$ALL_LINGUAS"
16760 fi
16761 for desiredlang in $desiredlanguages; do
16762 # Use the presentlang catalog if desiredlang is
16763 # a. equal to presentlang, or
16764 # b. a variant of presentlang (because in this case,
16765 # presentlang can be used as a fallback for messages
16766 # which are not translated in the desiredlang catalog).
16767 case "$desiredlang" in
16768 "$presentlang"*) useit=yes;;
16769 esac
16770 done
16771 if test $useit = yes; then
16772 INST_LINGUAS="$INST_LINGUAS $presentlang"
16773 fi
16774 done
16775 fi
16776 CATALOGS=
16777 if test -n "$INST_LINGUAS"; then
16778 for lang in $INST_LINGUAS; do
16779 CATALOGS="$CATALOGS $lang.gmo"
16780 done
16781 fi
16782 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16783 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"
16784 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16785 if test -f "$f"; then
16786 case "$f" in
16787 *.orig | *.bak | *~) ;;
16788 *) cat "$f" >> "$ac_dir/Makefile" ;;
16789 esac
16790 fi
16791 done
16792 fi
16793 ;;
16794 esac
16795 done ;;
16796 "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
16797 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16798 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16799 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16800 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16801 if test "x$cgen_cpu_prefix" != x ; then
16802 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16803 fi ;;
16804
16805 esac
16806 done # for ac_tag
16807
16808
16809 as_fn_exit 0
16810 _ACEOF
16811 ac_clean_files=$ac_clean_files_save
16812
16813 test $ac_write_fail = 0 ||
16814 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16815
16816
16817 # configure is writing to config.log, and then calls config.status.
16818 # config.status does its own redirection, appending to config.log.
16819 # Unfortunately, on DOS this fails, as config.log is still kept open
16820 # by configure, so config.status won't be able to write to it; its
16821 # output is simply discarded. So we exec the FD to /dev/null,
16822 # effectively closing config.log, so it can be properly (re)opened and
16823 # appended to by config.status. When coming back to configure, we
16824 # need to make the FD available again.
16825 if test "$no_create" != yes; then
16826 ac_cs_success=:
16827 ac_config_status_args=
16828 test "$silent" = yes &&
16829 ac_config_status_args="$ac_config_status_args --quiet"
16830 exec 5>/dev/null
16831 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16832 exec 5>>config.log
16833 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16834 # would make configure fail if this is the last instruction.
16835 $ac_cs_success || as_fn_exit 1
16836 fi
16837 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16839 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16840 fi
16841
16842
16843
16844 touch config.status.tmp
16845 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
16846 sed '/as_fn_exit 0/i \
16847 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
16848 touch --reference=Makefile Makefile.tmp \
16849 mv Makefile.tmp Makefile \
16850 ' config.status > config.status.tmp
16851 touch --reference=config.status config.status.tmp
16852 mv config.status.tmp config.status
16853 chmod +x config.status
16854 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
16855 touch --reference=Makefile Makefile.tmp
16856 mv Makefile.tmp Makefile
16857 else
16858 rm -f config.status.tmp
16859 fi