RISC-V: Fallback for instructions longer than 64b
[binutils-gdb.git] / binutils / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for binutils 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='binutils'
589 PACKAGE_TARNAME='binutils'
590 PACKAGE_VERSION='2.39.50'
591 PACKAGE_STRING='binutils 2.39.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="ar.c"
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_header_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 EMULATION_VECTOR
638 EMULATION
639 OBJDUMP_PRIVATE_OFILES
640 OBJDUMP_DEFS
641 BUILD_INSTALL_MISC
642 BUILD_MISC
643 BUILD_DLLWRAP
644 BUILD_WINDMC
645 BUILD_WINDRES
646 DLLTOOL_DEFS
647 BUILD_DLLTOOL
648 BUILD_SRCONV
649 LTLIBICONV
650 LIBICONV
651 MSGPACK_LIBS
652 MSGPACK_CFLAGS
653 ZSTD_LIBS
654 ZSTD_CFLAGS
655 zlibinc
656 zlibdir
657 DEMANGLER_NAME
658 EXEEXT_FOR_BUILD
659 CC_FOR_BUILD
660 HDEFINES
661 GENINSRC_NEVER_FALSE
662 GENINSRC_NEVER_TRUE
663 MAINT
664 MAINTAINER_MODE_FALSE
665 MAINTAINER_MODE_TRUE
666 MSGMERGE
667 MSGFMT
668 MKINSTALLDIRS
669 CATOBJEXT
670 GENCAT
671 INSTOBJEXT
672 DATADIRNAME
673 CATALOGS
674 POSUB
675 GMSGFMT
676 XGETTEXT
677 INCINTL
678 LIBINTL_DEP
679 LIBINTL
680 USE_NLS
681 LEXLIB
682 LEX_OUTPUT_ROOT
683 LEX
684 YFLAGS
685 YACC
686 WARN_WRITE_STRINGS
687 NO_WERROR
688 WARN_CFLAGS_FOR_BUILD
689 WARN_CFLAGS
690 ENABLE_LIBCTF_FALSE
691 ENABLE_LIBCTF_TRUE
692 DEBUGINFOD_LIBS
693 DEBUGINFOD_CFLAGS
694 PKG_CONFIG_LIBDIR
695 PKG_CONFIG_PATH
696 PKG_CONFIG
697 LARGEFILE_CPPFLAGS
698 OTOOL64
699 OTOOL
700 LIPO
701 NMEDIT
702 DSYMUTIL
703 RANLIB
704 AR
705 OBJDUMP
706 LN_S
707 NM
708 ac_ct_DUMPBIN
709 DUMPBIN
710 LD
711 FGREP
712 SED
713 LIBTOOL
714 EGREP
715 GREP
716 CPP
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 am__nodep
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__quote
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
743 AWK
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 target_os
762 target_vendor
763 target_cpu
764 target
765 host_os
766 host_vendor
767 host_cpu
768 host
769 build_os
770 build_vendor
771 build_cpu
772 build
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_URL
804 PACKAGE_BUGREPORT
805 PACKAGE_STRING
806 PACKAGE_VERSION
807 PACKAGE_TARNAME
808 PACKAGE_NAME
809 PATH_SEPARATOR
810 SHELL'
811 ac_subst_files=''
812 ac_user_opts='
813 enable_option_checking
814 enable_silent_rules
815 enable_dependency_tracking
816 enable_shared
817 enable_static
818 with_pic
819 enable_fast_install
820 with_gnu_ld
821 enable_libtool_lock
822 enable_plugins
823 enable_largefile
824 enable_checking
825 enable_targets
826 enable_deterministic_archives
827 enable_default_strings_all
828 enable_f_for_ifunc_symbols
829 enable_follow_debug_links
830 with_debuginfod
831 enable_libctf
832 enable_werror
833 enable_build_warnings
834 enable_nls
835 enable_maintainer_mode
836 with_system_zlib
837 with_zstd
838 with_msgpack
839 enable_rpath
840 with_libiconv_prefix
841 with_libiconv_type
842 '
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
851 CPP
852 PKG_CONFIG
853 PKG_CONFIG_PATH
854 PKG_CONFIG_LIBDIR
855 DEBUGINFOD_CFLAGS
856 DEBUGINFOD_LIBS
857 YACC
858 YFLAGS
859 ZSTD_CFLAGS
860 ZSTD_LIBS
861 MSGPACK_CFLAGS
862 MSGPACK_LIBS'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
905 htmldir='${docdir}'
906 dvidir='${docdir}'
907 pdfdir='${docdir}'
908 psdir='${docdir}'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
912
913 ac_prev=
914 ac_dashdash=
915 for ac_option
916 do
917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
919 eval $ac_prev=\$ac_option
920 ac_prev=
921 continue
922 fi
923
924 case $ac_option in
925 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926 *=) ac_optarg= ;;
927 *) ac_optarg=yes ;;
928 esac
929
930 # Accept the important Cygnus configure options, so we can diagnose typos.
931
932 case $ac_dashdash$ac_option in
933 --)
934 ac_dashdash=yes ;;
935
936 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 ac_prev=bindir ;;
938 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 bindir=$ac_optarg ;;
940
941 -build | --build | --buil | --bui | --bu)
942 ac_prev=build_alias ;;
943 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944 build_alias=$ac_optarg ;;
945
946 -cache-file | --cache-file | --cache-fil | --cache-fi \
947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948 ac_prev=cache_file ;;
949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951 cache_file=$ac_optarg ;;
952
953 --config-cache | -C)
954 cache_file=config.cache ;;
955
956 -datadir | --datadir | --datadi | --datad)
957 ac_prev=datadir ;;
958 -datadir=* | --datadir=* | --datadi=* | --datad=*)
959 datadir=$ac_optarg ;;
960
961 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962 | --dataroo | --dataro | --datar)
963 ac_prev=datarootdir ;;
964 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966 datarootdir=$ac_optarg ;;
967
968 -disable-* | --disable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=no ;;
983
984 -docdir | --docdir | --docdi | --doc | --do)
985 ac_prev=docdir ;;
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 docdir=$ac_optarg ;;
988
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 ac_prev=dvidir ;;
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 dvidir=$ac_optarg ;;
993
994 -enable-* | --enable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: $ac_useropt"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=\$ac_optarg ;;
1009
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
1017 exec_prefix=$ac_optarg ;;
1018
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1021 with_gas=yes ;;
1022
1023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
1029
1030 -host | --host | --hos | --ho)
1031 ac_prev=host_alias ;;
1032 -host=* | --host=* | --hos=* | --ho=*)
1033 host_alias=$ac_optarg ;;
1034
1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 ac_prev=htmldir ;;
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 | --ht=*)
1039 htmldir=$ac_optarg ;;
1040
1041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
1046 includedir=$ac_optarg ;;
1047
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 ac_prev=infodir ;;
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051 infodir=$ac_optarg ;;
1052
1053 -libdir | --libdir | --libdi | --libd)
1054 ac_prev=libdir ;;
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056 libdir=$ac_optarg ;;
1057
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
1063 libexecdir=$ac_optarg ;;
1064
1065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1069
1070 -localstatedir | --localstatedir | --localstatedi | --localstated \
1071 | --localstate | --localstat | --localsta | --localst | --locals)
1072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075 localstatedir=$ac_optarg ;;
1076
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 ac_prev=mandir ;;
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080 mandir=$ac_optarg ;;
1081
1082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1084 with_fp=no ;;
1085
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087 | --no-cr | --no-c | -n)
1088 no_create=yes ;;
1089
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 no_recursion=yes ;;
1093
1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101 oldincludedir=$ac_optarg ;;
1102
1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 ac_prev=prefix ;;
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106 prefix=$ac_optarg ;;
1107
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113 program_prefix=$ac_optarg ;;
1114
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120 program_suffix=$ac_optarg ;;
1121
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1129 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
1137 program_transform_name=$ac_optarg ;;
1138
1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 ac_prev=pdfdir ;;
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1143
1144 -psdir | --psdir | --psdi | --psd | --ps)
1145 ac_prev=psdir ;;
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 psdir=$ac_optarg ;;
1148
1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1151 silent=yes ;;
1152
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 ac_prev=sbindir ;;
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 | --sbi=* | --sb=*)
1157 sbindir=$ac_optarg ;;
1158
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1162 | --sha | --sh)
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 | --sha=* | --sh=*)
1168 sharedstatedir=$ac_optarg ;;
1169
1170 -site | --site | --sit)
1171 ac_prev=site ;;
1172 -site=* | --site=* | --sit=*)
1173 site=$ac_optarg ;;
1174
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 ac_prev=srcdir ;;
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1179
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1186
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1191
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 verbose=yes ;;
1194
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1197
1198 -with-* | --with-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=\$ac_optarg ;;
1213
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=no ;;
1229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249 Try \`$0 --help' for more information"
1250 ;;
1251
1252 *=*)
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 case $ac_envvar in #(
1256 '' | [0-9]* | *[!_$as_cr_alnum]* )
1257 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258 esac
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 ;;
1269
1270 esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 as_fn_error $? "missing argument to $ac_option"
1276 fi
1277
1278 if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1280 no) ;;
1281 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 esac
1284 fi
1285
1286 # Check all directory arguments for consistency.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir
1291 do
1292 eval ac_val=\$$ac_var
1293 # Remove trailing slashes.
1294 case $ac_val in
1295 */ )
1296 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297 eval $ac_var=\$ac_val;;
1298 esac
1299 # Be sure to have absolute directory names.
1300 case $ac_val in
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303 esac
1304 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 done
1306
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1310 build=$build_alias
1311 host=$host_alias
1312 target=$target_alias
1313
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 elif test "x$build_alias" != "x$host_alias"; then
1319 cross_compiling=yes
1320 fi
1321 fi
1322
1323 ac_tool_prefix=
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326 test "$silent" = yes && exec 6>/dev/null
1327
1328
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 as_fn_error $? "pwd does not report name of working directory"
1335
1336
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$as_myself" : 'X\(//\)[^/]' \| \
1344 X"$as_myself" : 'X\(//\)$' \| \
1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 $as_echo X"$as_myself" |
1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)[^/].*/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\).*/{
1360 s//\1/
1361 q
1362 }
1363 s/.*/./; q'`
1364 srcdir=$ac_confdir
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 srcdir=..
1367 fi
1368 else
1369 ac_srcdir_defaulted=no
1370 fi
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378 pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1402 cat <<_ACEOF
1403 \`configure' configures binutils 2.39.50 to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking ...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1456 _ACEOF
1457
1458 cat <<\_ACEOF
1459
1460 Program names:
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464
1465 System types:
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 --target=TARGET configure for building compilers for TARGET [HOST]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of binutils 2.39.50:";;
1475 esac
1476 cat <<\_ACEOF
1477
1478 Optional Features:
1479 --disable-option-checking ignore unrecognized --enable/--with options
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --enable-silent-rules less verbose build output (undo: "make V=1")
1483 --disable-silent-rules verbose build output (undo: "make V=0")
1484 --enable-dependency-tracking
1485 do not reject slow dependency extractors
1486 --disable-dependency-tracking
1487 speeds up one-time build
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-static[=PKGS] build static libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493 --enable-plugins Enable support for plugins
1494 --disable-largefile omit support for large files
1495 --enable-checking enable run-time checks
1496 --enable-targets alternative target configurations
1497 --enable-deterministic-archives
1498 ar and ranlib default to -D behavior
1499 --disable-default-strings-all
1500 strings defaults to --data behavior
1501 --enable-f-for-ifunc-symbols
1502 Have nm use F and f for global and local ifunc
1503 symbols
1504 --enable-follow-debug-links
1505 Have readelf and objdump follow debug links by
1506 default
1507 --enable-libctf Handle .ctf type-info sections [default=yes]
1508 --enable-werror treat compile warnings as errors
1509 --enable-build-warnings enable build-time compiler warnings
1510 --disable-nls do not use Native Language Support
1511 --enable-maintainer-mode
1512 enable make rules and dependencies not useful (and
1513 sometimes confusing) to the casual installer
1514 --disable-rpath do not hardcode runtime library paths
1515
1516 Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-pic try to use only PIC/non-PIC objects [default=use
1520 both]
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1522 --with-debuginfod Enable debuginfo lookups with debuginfod
1523 (auto/yes/no)
1524 --with-system-zlib use installed libz
1525 --with-zstd support zstd compressed debug sections
1526 (default=auto)
1527 --with-msgpack Enable msgpack support (auto/yes/no)
1528 --with-gnu-ld assume the C compiler uses GNU ld default=no
1529 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1530 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1531 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1532
1533 Some influential environment variables:
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537 nonstandard directory <lib dir>
1538 LIBS libraries to pass to the linker, e.g. -l<library>
1539 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540 you have headers in a nonstandard directory <include dir>
1541 CPP C preprocessor
1542 PKG_CONFIG path to pkg-config utility
1543 PKG_CONFIG_PATH
1544 directories to add to pkg-config's search path
1545 PKG_CONFIG_LIBDIR
1546 path overriding pkg-config's built-in search path
1547 DEBUGINFOD_CFLAGS
1548 C compiler flags for DEBUGINFOD, overriding pkg-config
1549 DEBUGINFOD_LIBS
1550 linker flags for DEBUGINFOD, overriding pkg-config
1551 YACC The `Yet Another Compiler Compiler' implementation to use.
1552 Defaults to the first program found out of: `bison -y', `byacc',
1553 `yacc'.
1554 YFLAGS The list of arguments that will be passed by default to $YACC.
1555 This script will default YFLAGS to the empty string to avoid a
1556 default value of `-d' given by some make applications.
1557 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1558 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1559 MSGPACK_CFLAGS
1560 C compiler flags for MSGPACK, overriding pkg-config
1561 MSGPACK_LIBS
1562 linker flags for MSGPACK, overriding pkg-config
1563
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1566
1567 Report bugs to the package provider.
1568 _ACEOF
1569 ac_status=$?
1570 fi
1571
1572 if test "$ac_init_help" = "recursive"; then
1573 # If there are subdirs, report their specific --help.
1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575 test -d "$ac_dir" ||
1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577 continue
1578 ac_builddir=.
1579
1580 case "$ac_dir" in
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *)
1583 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589 esac ;;
1590 esac
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1595
1596 case $srcdir in
1597 .) # We are building in place.
1598 ac_srcdir=.
1599 ac_top_srcdir=$ac_top_builddir_sub
1600 ac_abs_top_srcdir=$ac_pwd ;;
1601 [\\/]* | ?:[\\/]* ) # Absolute name.
1602 ac_srcdir=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir=$srcdir
1604 ac_abs_top_srcdir=$srcdir ;;
1605 *) # Relative name.
1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 esac
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612 cd "$ac_dir" || { ac_status=$?; continue; }
1613 # Check for guested configure.
1614 if test -f "$ac_srcdir/configure.gnu"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617 elif test -f "$ac_srcdir/configure"; then
1618 echo &&
1619 $SHELL "$ac_srcdir/configure" --help=recursive
1620 else
1621 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622 fi || ac_status=$?
1623 cd "$ac_pwd" || { ac_status=$?; break; }
1624 done
1625 fi
1626
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1629 cat <<\_ACEOF
1630 binutils configure 2.39.50
1631 generated by GNU Autoconf 2.69
1632
1633 Copyright (C) 2012 Free Software Foundation, Inc.
1634 This configure script is free software; the Free Software Foundation
1635 gives unlimited permission to copy, distribute and modify it.
1636 _ACEOF
1637 exit
1638 fi
1639
1640 ## ------------------------ ##
1641 ## Autoconf initialization. ##
1642 ## ------------------------ ##
1643
1644 # ac_fn_c_try_compile LINENO
1645 # --------------------------
1646 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_compile ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext
1651 if { { ac_try="$ac_compile"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_compile") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1664 fi
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest.$ac_objext; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=1
1676 fi
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1679
1680 } # ac_fn_c_try_compile
1681
1682 # ac_fn_c_try_cpp LINENO
1683 # ----------------------
1684 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_cpp ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 if { { ac_try="$ac_cpp conftest.$ac_ext"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } > conftest.i && {
1704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713 fi
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_cpp
1718
1719 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1720 # -------------------------------------------------------
1721 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1722 # the include files in INCLUDES and setting the cache variable VAR
1723 # accordingly.
1724 ac_fn_c_check_header_mongrel ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if eval \${$3+:} false; then :
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1732 fi
1733 eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 else
1737 # Is the header compilable?
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1739 $as_echo_n "checking $2 usability... " >&6; }
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1742 $4
1743 #include <$2>
1744 _ACEOF
1745 if ac_fn_c_try_compile "$LINENO"; then :
1746 ac_header_compiler=yes
1747 else
1748 ac_header_compiler=no
1749 fi
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1752 $as_echo "$ac_header_compiler" >&6; }
1753
1754 # Is the header present?
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1756 $as_echo_n "checking $2 presence... " >&6; }
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 #include <$2>
1760 _ACEOF
1761 if ac_fn_c_try_cpp "$LINENO"; then :
1762 ac_header_preproc=yes
1763 else
1764 ac_header_preproc=no
1765 fi
1766 rm -f conftest.err conftest.i conftest.$ac_ext
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1768 $as_echo "$ac_header_preproc" >&6; }
1769
1770 # So? What about this header?
1771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1772 yes:no: )
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1774 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1776 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777 ;;
1778 no:yes:* )
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1780 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1782 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1784 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1786 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1788 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1789 ;;
1790 esac
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 eval "$3=\$ac_header_compiler"
1797 fi
1798 eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 fi
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803
1804 } # ac_fn_c_check_header_mongrel
1805
1806 # ac_fn_c_try_run LINENO
1807 # ----------------------
1808 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1809 # that executables *can* be run.
1810 ac_fn_c_try_run ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_link"
1814 case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_link") 2>&5
1821 ac_status=$?
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1824 { { case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_try") 2>&5
1831 ac_status=$?
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; }; }; then :
1834 ac_retval=0
1835 else
1836 $as_echo "$as_me: program exited with status $ac_status" >&5
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_retval=$ac_status
1841 fi
1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status $ac_retval
1845
1846 } # ac_fn_c_try_run
1847
1848 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1849 # -------------------------------------------------------
1850 # Tests whether HEADER exists and can be compiled using the include files in
1851 # INCLUDES, setting the cache variable VAR accordingly.
1852 ac_fn_c_check_header_compile ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859 else
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 $4
1863 #include <$2>
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 fi
1872 eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877 } # ac_fn_c_check_header_compile
1878
1879 # ac_fn_c_try_link LINENO
1880 # -----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_c_try_link ()
1883 {
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 test -x conftest$ac_exeext
1907 }; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914 fi
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1922
1923 } # ac_fn_c_try_link
1924
1925 # ac_fn_c_check_func LINENO FUNC VAR
1926 # ----------------------------------
1927 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1928 ac_fn_c_check_func ()
1929 {
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1935 else
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1940 #define $2 innocuous_$2
1941
1942 /* System header to define __stub macros and hopefully few prototypes,
1943 which can conflict with char $2 (); below.
1944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1945 <limits.h> exists even on freestanding compilers. */
1946
1947 #ifdef __STDC__
1948 # include <limits.h>
1949 #else
1950 # include <assert.h>
1951 #endif
1952
1953 #undef $2
1954
1955 /* Override any GCC internal prototype to avoid an error.
1956 Use char because int might match the return type of a GCC
1957 builtin and then its argument prototype would still apply. */
1958 #ifdef __cplusplus
1959 extern "C"
1960 #endif
1961 char $2 ();
1962 /* The GNU C library defines this for functions which it implements
1963 to always fail with ENOSYS. Some functions are actually named
1964 something starting with __ and the normal name is an alias. */
1965 #if defined __stub_$2 || defined __stub___$2
1966 choke me
1967 #endif
1968
1969 int
1970 main ()
1971 {
1972 return $2 ();
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_link "$LINENO"; then :
1978 eval "$3=yes"
1979 else
1980 eval "$3=no"
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext \
1983 conftest$ac_exeext conftest.$ac_ext
1984 fi
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_func
1991
1992 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1993 # ----------------------------------------------------
1994 # Tries to find if the field MEMBER exists in type AGGR, after including
1995 # INCLUDES, setting cache variable VAR accordingly.
1996 ac_fn_c_check_member ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2000 $as_echo_n "checking for $2.$3... " >&6; }
2001 if eval \${$4+:} false; then :
2002 $as_echo_n "(cached) " >&6
2003 else
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 $5
2007 int
2008 main ()
2009 {
2010 static $2 ac_aggr;
2011 if (ac_aggr.$3)
2012 return 0;
2013 ;
2014 return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 eval "$4=yes"
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $5
2023 int
2024 main ()
2025 {
2026 static $2 ac_aggr;
2027 if (sizeof ac_aggr.$3)
2028 return 0;
2029 ;
2030 return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 eval "$4=yes"
2035 else
2036 eval "$4=no"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 eval ac_res=\$$4
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046
2047 } # ac_fn_c_check_member
2048
2049 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2050 # ---------------------------------------------
2051 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2052 # accordingly.
2053 ac_fn_c_check_decl ()
2054 {
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 as_decl_name=`echo $2|sed 's/ *(.*//'`
2057 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2059 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2060 if eval \${$3+:} false; then :
2061 $as_echo_n "(cached) " >&6
2062 else
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2065 $4
2066 int
2067 main ()
2068 {
2069 #ifndef $as_decl_name
2070 #ifdef __cplusplus
2071 (void) $as_decl_use;
2072 #else
2073 (void) $as_decl_name;
2074 #endif
2075 #endif
2076
2077 ;
2078 return 0;
2079 }
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 eval "$3=yes"
2083 else
2084 eval "$3=no"
2085 fi
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 fi
2088 eval ac_res=\$$3
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092
2093 } # ac_fn_c_check_decl
2094 cat >config.log <<_ACEOF
2095 This file contains any messages produced by compilers while
2096 running configure, to aid debugging if configure makes a mistake.
2097
2098 It was created by binutils $as_me 2.39.50, which was
2099 generated by GNU Autoconf 2.69. Invocation command line was
2100
2101 $ $0 $@
2102
2103 _ACEOF
2104 exec 5>>config.log
2105 {
2106 cat <<_ASUNAME
2107 ## --------- ##
2108 ## Platform. ##
2109 ## --------- ##
2110
2111 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2112 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2113 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2114 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2115 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2116
2117 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2118 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2119
2120 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2121 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2122 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2123 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2124 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2125 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2126 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2127
2128 _ASUNAME
2129
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2132 do
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 $as_echo "PATH: $as_dir"
2136 done
2137 IFS=$as_save_IFS
2138
2139 } >&5
2140
2141 cat >&5 <<_ACEOF
2142
2143
2144 ## ----------- ##
2145 ## Core tests. ##
2146 ## ----------- ##
2147
2148 _ACEOF
2149
2150
2151 # Keep a trace of the command line.
2152 # Strip out --no-create and --no-recursion so they do not pile up.
2153 # Strip out --silent because we don't want to record it for future runs.
2154 # Also quote any args containing shell meta-characters.
2155 # Make two passes to allow for proper duplicate-argument suppression.
2156 ac_configure_args=
2157 ac_configure_args0=
2158 ac_configure_args1=
2159 ac_must_keep_next=false
2160 for ac_pass in 1 2
2161 do
2162 for ac_arg
2163 do
2164 case $ac_arg in
2165 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2167 | -silent | --silent | --silen | --sile | --sil)
2168 continue ;;
2169 *\'*)
2170 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2171 esac
2172 case $ac_pass in
2173 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2174 2)
2175 as_fn_append ac_configure_args1 " '$ac_arg'"
2176 if test $ac_must_keep_next = true; then
2177 ac_must_keep_next=false # Got value, back to normal.
2178 else
2179 case $ac_arg in
2180 *=* | --config-cache | -C | -disable-* | --disable-* \
2181 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2182 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2183 | -with-* | --with-* | -without-* | --without-* | --x)
2184 case "$ac_configure_args0 " in
2185 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2186 esac
2187 ;;
2188 -* ) ac_must_keep_next=true ;;
2189 esac
2190 fi
2191 as_fn_append ac_configure_args " '$ac_arg'"
2192 ;;
2193 esac
2194 done
2195 done
2196 { ac_configure_args0=; unset ac_configure_args0;}
2197 { ac_configure_args1=; unset ac_configure_args1;}
2198
2199 # When interrupted or exit'd, cleanup temporary files, and complete
2200 # config.log. We remove comments because anyway the quotes in there
2201 # would cause problems or look ugly.
2202 # WARNING: Use '\'' to represent an apostrophe within the trap.
2203 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2204 trap 'exit_status=$?
2205 # Save into config.log some information that might help in debugging.
2206 {
2207 echo
2208
2209 $as_echo "## ---------------- ##
2210 ## Cache variables. ##
2211 ## ---------------- ##"
2212 echo
2213 # The following way of writing the cache mishandles newlines in values,
2214 (
2215 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2216 eval ac_val=\$$ac_var
2217 case $ac_val in #(
2218 *${as_nl}*)
2219 case $ac_var in #(
2220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2222 esac
2223 case $ac_var in #(
2224 _ | IFS | as_nl) ;; #(
2225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2226 *) { eval $ac_var=; unset $ac_var;} ;;
2227 esac ;;
2228 esac
2229 done
2230 (set) 2>&1 |
2231 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2232 *${as_nl}ac_space=\ *)
2233 sed -n \
2234 "s/'\''/'\''\\\\'\'''\''/g;
2235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2236 ;; #(
2237 *)
2238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2239 ;;
2240 esac |
2241 sort
2242 )
2243 echo
2244
2245 $as_echo "## ----------------- ##
2246 ## Output variables. ##
2247 ## ----------------- ##"
2248 echo
2249 for ac_var in $ac_subst_vars
2250 do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in
2253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254 esac
2255 $as_echo "$ac_var='\''$ac_val'\''"
2256 done | sort
2257 echo
2258
2259 if test -n "$ac_subst_files"; then
2260 $as_echo "## ------------------- ##
2261 ## File substitutions. ##
2262 ## ------------------- ##"
2263 echo
2264 for ac_var in $ac_subst_files
2265 do
2266 eval ac_val=\$$ac_var
2267 case $ac_val in
2268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269 esac
2270 $as_echo "$ac_var='\''$ac_val'\''"
2271 done | sort
2272 echo
2273 fi
2274
2275 if test -s confdefs.h; then
2276 $as_echo "## ----------- ##
2277 ## confdefs.h. ##
2278 ## ----------- ##"
2279 echo
2280 cat confdefs.h
2281 echo
2282 fi
2283 test "$ac_signal" != 0 &&
2284 $as_echo "$as_me: caught signal $ac_signal"
2285 $as_echo "$as_me: exit $exit_status"
2286 } >&5
2287 rm -f core *.core core.conftest.* &&
2288 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2289 exit $exit_status
2290 ' 0
2291 for ac_signal in 1 2 13 15; do
2292 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2293 done
2294 ac_signal=0
2295
2296 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2297 rm -f -r conftest* confdefs.h
2298
2299 $as_echo "/* confdefs.h */" > confdefs.h
2300
2301 # Predefined preprocessor variables.
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_NAME "$PACKAGE_NAME"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_STRING "$PACKAGE_STRING"
2317 _ACEOF
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2321 _ACEOF
2322
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_URL "$PACKAGE_URL"
2325 _ACEOF
2326
2327
2328 # Let the site file select an alternate cache file if it wants to.
2329 # Prefer an explicitly selected file to automatically selected ones.
2330 ac_site_file1=NONE
2331 ac_site_file2=NONE
2332 if test -n "$CONFIG_SITE"; then
2333 # We do not want a PATH search for config.site.
2334 case $CONFIG_SITE in #((
2335 -*) ac_site_file1=./$CONFIG_SITE;;
2336 */*) ac_site_file1=$CONFIG_SITE;;
2337 *) ac_site_file1=./$CONFIG_SITE;;
2338 esac
2339 elif test "x$prefix" != xNONE; then
2340 ac_site_file1=$prefix/share/config.site
2341 ac_site_file2=$prefix/etc/config.site
2342 else
2343 ac_site_file1=$ac_default_prefix/share/config.site
2344 ac_site_file2=$ac_default_prefix/etc/config.site
2345 fi
2346 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2347 do
2348 test "x$ac_site_file" = xNONE && continue
2349 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2351 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2352 sed 's/^/| /' "$ac_site_file" >&5
2353 . "$ac_site_file" \
2354 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2356 as_fn_error $? "failed to load site script $ac_site_file
2357 See \`config.log' for more details" "$LINENO" 5; }
2358 fi
2359 done
2360
2361 if test -r "$cache_file"; then
2362 # Some versions of bash will fail to source /dev/null (special files
2363 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2364 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2366 $as_echo "$as_me: loading cache $cache_file" >&6;}
2367 case $cache_file in
2368 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369 *) . "./$cache_file";;
2370 esac
2371 fi
2372 else
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2374 $as_echo "$as_me: creating cache $cache_file" >&6;}
2375 >$cache_file
2376 fi
2377
2378 as_fn_append ac_header_list " stdlib.h"
2379 as_fn_append ac_header_list " unistd.h"
2380 as_fn_append ac_header_list " sys/param.h"
2381 # Check that the precious variables saved in the cache have kept the same
2382 # value.
2383 ac_cache_corrupted=false
2384 for ac_var in $ac_precious_vars; do
2385 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2386 eval ac_new_set=\$ac_env_${ac_var}_set
2387 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2388 eval ac_new_val=\$ac_env_${ac_var}_value
2389 case $ac_old_set,$ac_new_set in
2390 set,)
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2392 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2393 ac_cache_corrupted=: ;;
2394 ,set)
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2396 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2397 ac_cache_corrupted=: ;;
2398 ,);;
2399 *)
2400 if test "x$ac_old_val" != "x$ac_new_val"; then
2401 # differences in whitespace do not lead to failure.
2402 ac_old_val_w=`echo x $ac_old_val`
2403 ac_new_val_w=`echo x $ac_new_val`
2404 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2406 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2407 ac_cache_corrupted=:
2408 else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2410 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2411 eval $ac_var=\$ac_old_val
2412 fi
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2414 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2416 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2417 fi;;
2418 esac
2419 # Pass precious variables to config.status.
2420 if test "$ac_new_set" = set; then
2421 case $ac_new_val in
2422 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2423 *) ac_arg=$ac_var=$ac_new_val ;;
2424 esac
2425 case " $ac_configure_args " in
2426 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2427 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2428 esac
2429 fi
2430 done
2431 if $ac_cache_corrupted; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2435 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2436 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2437 fi
2438 ## -------------------- ##
2439 ## Main body of script. ##
2440 ## -------------------- ##
2441
2442 ac_ext=c
2443 ac_cpp='$CPP $CPPFLAGS'
2444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447
2448
2449
2450
2451
2452
2453
2454 ac_aux_dir=
2455 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2456 if test -f "$ac_dir/install-sh"; then
2457 ac_aux_dir=$ac_dir
2458 ac_install_sh="$ac_aux_dir/install-sh -c"
2459 break
2460 elif test -f "$ac_dir/install.sh"; then
2461 ac_aux_dir=$ac_dir
2462 ac_install_sh="$ac_aux_dir/install.sh -c"
2463 break
2464 elif test -f "$ac_dir/shtool"; then
2465 ac_aux_dir=$ac_dir
2466 ac_install_sh="$ac_aux_dir/shtool install -c"
2467 break
2468 fi
2469 done
2470 if test -z "$ac_aux_dir"; then
2471 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2472 fi
2473
2474 # These three variables are undocumented and unsupported,
2475 # and are intended to be withdrawn in a future Autoconf release.
2476 # They can cause serious problems if a builder's source tree is in a directory
2477 # whose full name contains unusual characters.
2478 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2479 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2480 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2481
2482
2483 # Make sure we can run config.sub.
2484 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2485 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2486
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2488 $as_echo_n "checking build system type... " >&6; }
2489 if ${ac_cv_build+:} false; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 ac_build_alias=$build_alias
2493 test "x$ac_build_alias" = x &&
2494 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2495 test "x$ac_build_alias" = x &&
2496 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2497 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2498 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2499
2500 fi
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2502 $as_echo "$ac_cv_build" >&6; }
2503 case $ac_cv_build in
2504 *-*-*) ;;
2505 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2506 esac
2507 build=$ac_cv_build
2508 ac_save_IFS=$IFS; IFS='-'
2509 set x $ac_cv_build
2510 shift
2511 build_cpu=$1
2512 build_vendor=$2
2513 shift; shift
2514 # Remember, the first character of IFS is used to create $*,
2515 # except with old shells:
2516 build_os=$*
2517 IFS=$ac_save_IFS
2518 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2519
2520
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2522 $as_echo_n "checking host system type... " >&6; }
2523 if ${ac_cv_host+:} false; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 if test "x$host_alias" = x; then
2527 ac_cv_host=$ac_cv_build
2528 else
2529 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2530 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2531 fi
2532
2533 fi
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2535 $as_echo "$ac_cv_host" >&6; }
2536 case $ac_cv_host in
2537 *-*-*) ;;
2538 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2539 esac
2540 host=$ac_cv_host
2541 ac_save_IFS=$IFS; IFS='-'
2542 set x $ac_cv_host
2543 shift
2544 host_cpu=$1
2545 host_vendor=$2
2546 shift; shift
2547 # Remember, the first character of IFS is used to create $*,
2548 # except with old shells:
2549 host_os=$*
2550 IFS=$ac_save_IFS
2551 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2552
2553
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2555 $as_echo_n "checking target system type... " >&6; }
2556 if ${ac_cv_target+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test "x$target_alias" = x; then
2560 ac_cv_target=$ac_cv_host
2561 else
2562 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2563 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2564 fi
2565
2566 fi
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2568 $as_echo "$ac_cv_target" >&6; }
2569 case $ac_cv_target in
2570 *-*-*) ;;
2571 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2572 esac
2573 target=$ac_cv_target
2574 ac_save_IFS=$IFS; IFS='-'
2575 set x $ac_cv_target
2576 shift
2577 target_cpu=$1
2578 target_vendor=$2
2579 shift; shift
2580 # Remember, the first character of IFS is used to create $*,
2581 # except with old shells:
2582 target_os=$*
2583 IFS=$ac_save_IFS
2584 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2585
2586
2587 # The aliases save the names the user supplied, while $host etc.
2588 # will get canonicalized.
2589 test -n "$target_alias" &&
2590 test "$program_prefix$program_suffix$program_transform_name" = \
2591 NONENONEs,x,x, &&
2592 program_prefix=${target_alias}-
2593
2594 am__api_version='1.15'
2595
2596 # Find a good install program. We prefer a C program (faster),
2597 # so one script is as good as another. But avoid the broken or
2598 # incompatible versions:
2599 # SysV /etc/install, /usr/sbin/install
2600 # SunOS /usr/etc/install
2601 # IRIX /sbin/install
2602 # AIX /bin/install
2603 # AmigaOS /C/install, which installs bootblocks on floppy discs
2604 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2605 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2606 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2607 # OS/2's system install, which has a completely different semantic
2608 # ./install, which can be erroneously created by make from ./install.sh.
2609 # Reject install programs that cannot install multiple files.
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2611 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2612 if test -z "$INSTALL"; then
2613 if ${ac_cv_path_install+:} false; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 # Account for people who put trailing slashes in PATH elements.
2622 case $as_dir/ in #((
2623 ./ | .// | /[cC]/* | \
2624 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2625 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2626 /usr/ucb/* ) ;;
2627 *)
2628 # OSF1 and SCO ODT 3.0 have their own names for install.
2629 # Don't use installbsd from OSF since it installs stuff as root
2630 # by default.
2631 for ac_prog in ginstall scoinst install; do
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2634 if test $ac_prog = install &&
2635 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2636 # AIX install. It has an incompatible calling convention.
2637 :
2638 elif test $ac_prog = install &&
2639 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2640 # program-specific install script used by HP pwplus--don't use.
2641 :
2642 else
2643 rm -rf conftest.one conftest.two conftest.dir
2644 echo one > conftest.one
2645 echo two > conftest.two
2646 mkdir conftest.dir
2647 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2648 test -s conftest.one && test -s conftest.two &&
2649 test -s conftest.dir/conftest.one &&
2650 test -s conftest.dir/conftest.two
2651 then
2652 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2653 break 3
2654 fi
2655 fi
2656 fi
2657 done
2658 done
2659 ;;
2660 esac
2661
2662 done
2663 IFS=$as_save_IFS
2664
2665 rm -rf conftest.one conftest.two conftest.dir
2666
2667 fi
2668 if test "${ac_cv_path_install+set}" = set; then
2669 INSTALL=$ac_cv_path_install
2670 else
2671 # As a last resort, use the slow shell script. Don't cache a
2672 # value for INSTALL within a source directory, because that will
2673 # break other packages using the cache if that directory is
2674 # removed, or if the value is a relative name.
2675 INSTALL=$ac_install_sh
2676 fi
2677 fi
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2679 $as_echo "$INSTALL" >&6; }
2680
2681 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2682 # It thinks the first close brace ends the variable substitution.
2683 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2684
2685 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2686
2687 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2688
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2690 $as_echo_n "checking whether build environment is sane... " >&6; }
2691 # Reject unsafe characters in $srcdir or the absolute working directory
2692 # name. Accept space and tab only in the latter.
2693 am_lf='
2694 '
2695 case `pwd` in
2696 *[\\\"\#\$\&\'\`$am_lf]*)
2697 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2698 esac
2699 case $srcdir in
2700 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2701 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2702 esac
2703
2704 # Do 'set' in a subshell so we don't clobber the current shell's
2705 # arguments. Must try -L first in case configure is actually a
2706 # symlink; some systems play weird games with the mod time of symlinks
2707 # (eg FreeBSD returns the mod time of the symlink's containing
2708 # directory).
2709 if (
2710 am_has_slept=no
2711 for am_try in 1 2; do
2712 echo "timestamp, slept: $am_has_slept" > conftest.file
2713 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2714 if test "$*" = "X"; then
2715 # -L didn't work.
2716 set X `ls -t "$srcdir/configure" conftest.file`
2717 fi
2718 if test "$*" != "X $srcdir/configure conftest.file" \
2719 && test "$*" != "X conftest.file $srcdir/configure"; then
2720
2721 # If neither matched, then we have a broken ls. This can happen
2722 # if, for instance, CONFIG_SHELL is bash and it inherits a
2723 # broken ls alias from the environment. This has actually
2724 # happened. Such a system could not be considered "sane".
2725 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2726 alias in your environment" "$LINENO" 5
2727 fi
2728 if test "$2" = conftest.file || test $am_try -eq 2; then
2729 break
2730 fi
2731 # Just in case.
2732 sleep 1
2733 am_has_slept=yes
2734 done
2735 test "$2" = conftest.file
2736 )
2737 then
2738 # Ok.
2739 :
2740 else
2741 as_fn_error $? "newly created file is older than distributed files!
2742 Check your system clock" "$LINENO" 5
2743 fi
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2745 $as_echo "yes" >&6; }
2746 # If we didn't sleep, we still need to ensure time stamps of config.status and
2747 # generated files are strictly newer.
2748 am_sleep_pid=
2749 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2750 ( sleep 1 ) &
2751 am_sleep_pid=$!
2752 fi
2753
2754 rm -f conftest.file
2755
2756 test "$program_prefix" != NONE &&
2757 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2758 # Use a double $ so make ignores it.
2759 test "$program_suffix" != NONE &&
2760 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2761 # Double any \ or $.
2762 # By default was `s,x,x', remove it if useless.
2763 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2764 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2765
2766 # Expand $ac_aux_dir to an absolute path.
2767 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2768
2769 if test x"${MISSING+set}" != xset; then
2770 case $am_aux_dir in
2771 *\ * | *\ *)
2772 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2773 *)
2774 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2775 esac
2776 fi
2777 # Use eval to expand $SHELL
2778 if eval "$MISSING --is-lightweight"; then
2779 am_missing_run="$MISSING "
2780 else
2781 am_missing_run=
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2783 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2784 fi
2785
2786 if test x"${install_sh+set}" != xset; then
2787 case $am_aux_dir in
2788 *\ * | *\ *)
2789 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2790 *)
2791 install_sh="\${SHELL} $am_aux_dir/install-sh"
2792 esac
2793 fi
2794
2795 # Installed binaries are usually stripped using 'strip' when the user
2796 # run "make install-strip". However 'strip' might not be the right
2797 # tool to use in cross-compilation environments, therefore Automake
2798 # will honor the 'STRIP' environment variable to overrule this program.
2799 if test "$cross_compiling" != no; then
2800 if test -n "$ac_tool_prefix"; then
2801 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}strip; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_STRIP+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test -n "$STRIP"; then
2809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2821 fi
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 STRIP=$ac_cv_prog_STRIP
2829 if test -n "$STRIP"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2831 $as_echo "$STRIP" >&6; }
2832 else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838 fi
2839 if test -z "$ac_cv_prog_STRIP"; then
2840 ac_ct_STRIP=$STRIP
2841 # Extract the first word of "strip", so it can be a program name with args.
2842 set dummy strip; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test -n "$ac_ct_STRIP"; then
2849 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_ac_ct_STRIP="strip"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2861 fi
2862 done
2863 done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2869 if test -n "$ac_ct_STRIP"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2871 $as_echo "$ac_ct_STRIP" >&6; }
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877 if test "x$ac_ct_STRIP" = x; then
2878 STRIP=":"
2879 else
2880 case $cross_compiling:$ac_tool_warned in
2881 yes:)
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884 ac_tool_warned=yes ;;
2885 esac
2886 STRIP=$ac_ct_STRIP
2887 fi
2888 else
2889 STRIP="$ac_cv_prog_STRIP"
2890 fi
2891
2892 fi
2893 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2894
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2896 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2897 if test -z "$MKDIR_P"; then
2898 if ${ac_cv_path_mkdir+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2903 do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 for ac_prog in mkdir gmkdir; do
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2909 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2910 'mkdir (GNU coreutils) '* | \
2911 'mkdir (coreutils) '* | \
2912 'mkdir (fileutils) '4.1*)
2913 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2914 break 3;;
2915 esac
2916 done
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 fi
2922
2923 test -d ./--version && rmdir ./--version
2924 if test "${ac_cv_path_mkdir+set}" = set; then
2925 MKDIR_P="$ac_cv_path_mkdir -p"
2926 else
2927 # As a last resort, use the slow shell script. Don't cache a
2928 # value for MKDIR_P within a source directory, because that will
2929 # break other packages using the cache if that directory is
2930 # removed, or if the value is a relative name.
2931 MKDIR_P="$ac_install_sh -d"
2932 fi
2933 fi
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2935 $as_echo "$MKDIR_P" >&6; }
2936
2937 for ac_prog in gawk mawk nawk awk
2938 do
2939 # Extract the first word of "$ac_prog", so it can be a program name with args.
2940 set dummy $ac_prog; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_AWK+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 if test -n "$AWK"; then
2947 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_AWK="$ac_prog"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 AWK=$ac_cv_prog_AWK
2967 if test -n "$AWK"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2969 $as_echo "$AWK" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 fi
2974
2975
2976 test -n "$AWK" && break
2977 done
2978
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2980 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2981 set x ${MAKE-make}
2982 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2983 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 cat >conftest.make <<\_ACEOF
2987 SHELL = /bin/sh
2988 all:
2989 @echo '@@@%%%=$(MAKE)=@@@%%%'
2990 _ACEOF
2991 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2992 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2993 *@@@%%%=?*=@@@%%%*)
2994 eval ac_cv_prog_make_${ac_make}_set=yes;;
2995 *)
2996 eval ac_cv_prog_make_${ac_make}_set=no;;
2997 esac
2998 rm -f conftest.make
2999 fi
3000 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3002 $as_echo "yes" >&6; }
3003 SET_MAKE=
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 SET_MAKE="MAKE=${MAKE-make}"
3008 fi
3009
3010 rm -rf .tst 2>/dev/null
3011 mkdir .tst 2>/dev/null
3012 if test -d .tst; then
3013 am__leading_dot=.
3014 else
3015 am__leading_dot=_
3016 fi
3017 rmdir .tst 2>/dev/null
3018
3019 # Check whether --enable-silent-rules was given.
3020 if test "${enable_silent_rules+set}" = set; then :
3021 enableval=$enable_silent_rules;
3022 fi
3023
3024 case $enable_silent_rules in # (((
3025 yes) AM_DEFAULT_VERBOSITY=0;;
3026 no) AM_DEFAULT_VERBOSITY=1;;
3027 *) AM_DEFAULT_VERBOSITY=1;;
3028 esac
3029 am_make=${MAKE-make}
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3031 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3032 if ${am_cv_make_support_nested_variables+:} false; then :
3033 $as_echo_n "(cached) " >&6
3034 else
3035 if $as_echo 'TRUE=$(BAR$(V))
3036 BAR0=false
3037 BAR1=true
3038 V=1
3039 am__doit:
3040 @$(TRUE)
3041 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3042 am_cv_make_support_nested_variables=yes
3043 else
3044 am_cv_make_support_nested_variables=no
3045 fi
3046 fi
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3048 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3049 if test $am_cv_make_support_nested_variables = yes; then
3050 AM_V='$(V)'
3051 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3052 else
3053 AM_V=$AM_DEFAULT_VERBOSITY
3054 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3055 fi
3056 AM_BACKSLASH='\'
3057
3058 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3059 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3060 # is not polluted with repeated "-I."
3061 am__isrc=' -I$(srcdir)'
3062 # test to see if srcdir already configured
3063 if test -f $srcdir/config.status; then
3064 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3065 fi
3066 fi
3067
3068 # test whether we have cygpath
3069 if test -z "$CYGPATH_W"; then
3070 if (cygpath --version) >/dev/null 2>/dev/null; then
3071 CYGPATH_W='cygpath -w'
3072 else
3073 CYGPATH_W=echo
3074 fi
3075 fi
3076
3077
3078 # Define the identity of the package.
3079 PACKAGE='binutils'
3080 VERSION='2.39.50'
3081
3082
3083 cat >>confdefs.h <<_ACEOF
3084 #define PACKAGE "$PACKAGE"
3085 _ACEOF
3086
3087
3088 cat >>confdefs.h <<_ACEOF
3089 #define VERSION "$VERSION"
3090 _ACEOF
3091
3092 # Some tools Automake needs.
3093
3094 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3095
3096
3097 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3098
3099
3100 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3101
3102
3103 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3104
3105
3106 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3107
3108 # For better backward compatibility. To be removed once Automake 1.9.x
3109 # dies out for good. For more background, see:
3110 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3111 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3112 mkdir_p='$(MKDIR_P)'
3113
3114 # We need awk for the "check" target (and possibly the TAP driver). The
3115 # system "awk" is bad on some platforms.
3116 # Always define AMTAR for backward compatibility. Yes, it's still used
3117 # in the wild :-( We should find a proper way to deprecate it ...
3118 AMTAR='$${TAR-tar}'
3119
3120
3121 # We'll loop over all known methods to create a tar archive until one works.
3122 _am_tools='gnutar pax cpio none'
3123
3124 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3125
3126
3127
3128
3129
3130
3131 # POSIX will say in a future version that running "rm -f" with no argument
3132 # is OK; and we want to be able to make that assumption in our Makefile
3133 # recipes. So use an aggressive probe to check that the usage we want is
3134 # actually supported "in the wild" to an acceptable degree.
3135 # See automake bug#10828.
3136 # To make any issue more visible, cause the running configure to be aborted
3137 # by default if the 'rm' program in use doesn't match our expectations; the
3138 # user can still override this though.
3139 if rm -f && rm -fr && rm -rf; then : OK; else
3140 cat >&2 <<'END'
3141 Oops!
3142
3143 Your 'rm' program seems unable to run without file operands specified
3144 on the command line, even when the '-f' option is present. This is contrary
3145 to the behaviour of most rm programs out there, and not conforming with
3146 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3147
3148 Please tell bug-automake@gnu.org about your system, including the value
3149 of your $PATH and any error possibly output before this message. This
3150 can help us improve future automake versions.
3151
3152 END
3153 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3154 echo 'Configuration will proceed anyway, since you have set the' >&2
3155 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3156 echo >&2
3157 else
3158 cat >&2 <<'END'
3159 Aborting the configuration process, to ensure you take notice of the issue.
3160
3161 You can download and install GNU coreutils to get an 'rm' implementation
3162 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3163
3164 If you want to complete the configuration process using your problematic
3165 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3166 to "yes", and re-run configure.
3167
3168 END
3169 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3170 fi
3171 fi
3172
3173 # Check whether --enable-silent-rules was given.
3174 if test "${enable_silent_rules+set}" = set; then :
3175 enableval=$enable_silent_rules;
3176 fi
3177
3178 case $enable_silent_rules in # (((
3179 yes) AM_DEFAULT_VERBOSITY=0;;
3180 no) AM_DEFAULT_VERBOSITY=1;;
3181 *) AM_DEFAULT_VERBOSITY=0;;
3182 esac
3183 am_make=${MAKE-make}
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3185 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3186 if ${am_cv_make_support_nested_variables+:} false; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 if $as_echo 'TRUE=$(BAR$(V))
3190 BAR0=false
3191 BAR1=true
3192 V=1
3193 am__doit:
3194 @$(TRUE)
3195 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3196 am_cv_make_support_nested_variables=yes
3197 else
3198 am_cv_make_support_nested_variables=no
3199 fi
3200 fi
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3202 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3203 if test $am_cv_make_support_nested_variables = yes; then
3204 AM_V='$(V)'
3205 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3206 else
3207 AM_V=$AM_DEFAULT_VERBOSITY
3208 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3209 fi
3210 AM_BACKSLASH='\'
3211
3212
3213 ac_ext=c
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 if test -n "$ac_tool_prefix"; then
3219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if ${ac_cv_prog_CC+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240 done
3241 done
3242 IFS=$as_save_IFS
3243
3244 fi
3245 fi
3246 CC=$ac_cv_prog_CC
3247 if test -n "$CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 fi
3254
3255
3256 fi
3257 if test -z "$ac_cv_prog_CC"; then
3258 ac_ct_CC=$CC
3259 # Extract the first word of "gcc", so it can be a program name with args.
3260 set dummy gcc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3264 $as_echo_n "(cached) " >&6
3265 else
3266 if test -n "$ac_ct_CC"; then
3267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276 ac_cv_prog_ac_ct_CC="gcc"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280 done
3281 done
3282 IFS=$as_save_IFS
3283
3284 fi
3285 fi
3286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3287 if test -n "$ac_ct_CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3289 $as_echo "$ac_ct_CC" >&6; }
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295 if test "x$ac_ct_CC" = x; then
3296 CC=""
3297 else
3298 case $cross_compiling:$ac_tool_warned in
3299 yes:)
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302 ac_tool_warned=yes ;;
3303 esac
3304 CC=$ac_ct_CC
3305 fi
3306 else
3307 CC="$ac_cv_prog_CC"
3308 fi
3309
3310 if test -z "$CC"; then
3311 if test -n "$ac_tool_prefix"; then
3312 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3313 set dummy ${ac_tool_prefix}cc; ac_word=$2
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if ${ac_cv_prog_CC+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 if test -n "$CC"; then
3320 ac_cv_prog_CC="$CC" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_CC="${ac_tool_prefix}cc"
3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3332 fi
3333 done
3334 done
3335 IFS=$as_save_IFS
3336
3337 fi
3338 fi
3339 CC=$ac_cv_prog_CC
3340 if test -n "$CC"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3342 $as_echo "$CC" >&6; }
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 fi
3347
3348
3349 fi
3350 fi
3351 if test -z "$CC"; then
3352 # Extract the first word of "cc", so it can be a program name with args.
3353 set dummy cc; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_CC+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 ac_prog_rejected=no
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3371 ac_prog_rejected=yes
3372 continue
3373 fi
3374 ac_cv_prog_CC="cc"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 if test $ac_prog_rejected = yes; then
3383 # We found a bogon in the path, so make sure we never use it.
3384 set dummy $ac_cv_prog_CC
3385 shift
3386 if test $# != 0; then
3387 # We chose a different compiler from the bogus one.
3388 # However, it has the same basename, so the bogon will be chosen
3389 # first if we set CC to just the basename; use the full file name.
3390 shift
3391 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3392 fi
3393 fi
3394 fi
3395 fi
3396 CC=$ac_cv_prog_CC
3397 if test -n "$CC"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399 $as_echo "$CC" >&6; }
3400 else
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3403 fi
3404
3405
3406 fi
3407 if test -z "$CC"; then
3408 if test -n "$ac_tool_prefix"; then
3409 for ac_prog in cl.exe
3410 do
3411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_CC+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC="$CC" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432 done
3433 done
3434 IFS=$as_save_IFS
3435
3436 fi
3437 fi
3438 CC=$ac_cv_prog_CC
3439 if test -n "$CC"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441 $as_echo "$CC" >&6; }
3442 else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 fi
3446
3447
3448 test -n "$CC" && break
3449 done
3450 fi
3451 if test -z "$CC"; then
3452 ac_ct_CC=$CC
3453 for ac_prog in cl.exe
3454 do
3455 # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy $ac_prog; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 if test -n "$ac_ct_CC"; then
3463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_ac_ct_CC="$ac_prog"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3475 fi
3476 done
3477 done
3478 IFS=$as_save_IFS
3479
3480 fi
3481 fi
3482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3483 if test -n "$ac_ct_CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3485 $as_echo "$ac_ct_CC" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3489 fi
3490
3491
3492 test -n "$ac_ct_CC" && break
3493 done
3494
3495 if test "x$ac_ct_CC" = x; then
3496 CC=""
3497 else
3498 case $cross_compiling:$ac_tool_warned in
3499 yes:)
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502 ac_tool_warned=yes ;;
3503 esac
3504 CC=$ac_ct_CC
3505 fi
3506 fi
3507
3508 fi
3509
3510
3511 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 as_fn_error $? "no acceptable C compiler found in \$PATH
3514 See \`config.log' for more details" "$LINENO" 5; }
3515
3516 # Provide some information about the compiler.
3517 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3518 set X $ac_compile
3519 ac_compiler=$2
3520 for ac_option in --version -v -V -qversion; do
3521 { { ac_try="$ac_compiler $ac_option >&5"
3522 case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 $as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3529 ac_status=$?
3530 if test -s conftest.err; then
3531 sed '10a\
3532 ... rest of stderr output deleted ...
3533 10q' conftest.err >conftest.er1
3534 cat conftest.er1 >&5
3535 fi
3536 rm -f conftest.er1 conftest.err
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }
3539 done
3540
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543
3544 int
3545 main ()
3546 {
3547
3548 ;
3549 return 0;
3550 }
3551 _ACEOF
3552 ac_clean_files_save=$ac_clean_files
3553 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3554 # Try to create an executable without -o first, disregard a.out.
3555 # It will help us diagnose broken compilers, and finding out an intuition
3556 # of exeext.
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3558 $as_echo_n "checking whether the C compiler works... " >&6; }
3559 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3560
3561 # The possible output files:
3562 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3563
3564 ac_rmfiles=
3565 for ac_file in $ac_files
3566 do
3567 case $ac_file in
3568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3569 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3570 esac
3571 done
3572 rm -f $ac_rmfiles
3573
3574 if { { ac_try="$ac_link_default"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link_default") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; then :
3585 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3586 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3587 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3588 # so that the user can short-circuit this test for compilers unknown to
3589 # Autoconf.
3590 for ac_file in $ac_files ''
3591 do
3592 test -f "$ac_file" || continue
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3595 ;;
3596 [ab].out )
3597 # We found the default executable, but exeext='' is most
3598 # certainly right.
3599 break;;
3600 *.* )
3601 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3602 then :; else
3603 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3604 fi
3605 # We set ac_cv_exeext here because the later test for it is not
3606 # safe: cross compilers may not add the suffix if given an `-o'
3607 # argument, so we may need to know it at that point already.
3608 # Even if this section looks crufty: it has the advantage of
3609 # actually working.
3610 break;;
3611 * )
3612 break;;
3613 esac
3614 done
3615 test "$ac_cv_exeext" = no && ac_cv_exeext=
3616
3617 else
3618 ac_file=''
3619 fi
3620 if test -z "$ac_file"; then :
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3623 $as_echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 as_fn_error 77 "C compiler cannot create executables
3629 See \`config.log' for more details" "$LINENO" 5; }
3630 else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3632 $as_echo "yes" >&6; }
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3635 $as_echo_n "checking for C compiler default output file name... " >&6; }
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3637 $as_echo "$ac_file" >&6; }
3638 ac_exeext=$ac_cv_exeext
3639
3640 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3641 ac_clean_files=$ac_clean_files_save
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3643 $as_echo_n "checking for suffix of executables... " >&6; }
3644 if { { ac_try="$ac_link"
3645 case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_link") 2>&5
3652 ac_status=$?
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; then :
3655 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3656 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3657 # work properly (i.e., refer to `conftest.exe'), while it won't with
3658 # `rm'.
3659 for ac_file in conftest.exe conftest conftest.*; do
3660 test -f "$ac_file" || continue
3661 case $ac_file in
3662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3663 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3664 break;;
3665 * ) break;;
3666 esac
3667 done
3668 else
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3672 See \`config.log' for more details" "$LINENO" 5; }
3673 fi
3674 rm -f conftest conftest$ac_cv_exeext
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3676 $as_echo "$ac_cv_exeext" >&6; }
3677
3678 rm -f conftest.$ac_ext
3679 EXEEXT=$ac_cv_exeext
3680 ac_exeext=$EXEEXT
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683 #include <stdio.h>
3684 int
3685 main ()
3686 {
3687 FILE *f = fopen ("conftest.out", "w");
3688 return ferror (f) || fclose (f) != 0;
3689
3690 ;
3691 return 0;
3692 }
3693 _ACEOF
3694 ac_clean_files="$ac_clean_files conftest.out"
3695 # Check that the compiler produces executables we can run. If not, either
3696 # the compiler is broken, or we cross compile.
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3698 $as_echo_n "checking whether we are cross compiling... " >&6; }
3699 if test "$cross_compiling" != yes; then
3700 { { ac_try="$ac_link"
3701 case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707 (eval "$ac_link") 2>&5
3708 ac_status=$?
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }
3711 if { ac_try='./conftest$ac_cv_exeext'
3712 { { case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715 esac
3716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717 $as_echo "$ac_try_echo"; } >&5
3718 (eval "$ac_try") 2>&5
3719 ac_status=$?
3720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721 test $ac_status = 0; }; }; then
3722 cross_compiling=no
3723 else
3724 if test "$cross_compiling" = maybe; then
3725 cross_compiling=yes
3726 else
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error $? "cannot run C compiled programs.
3730 If you meant to cross compile, use \`--host'.
3731 See \`config.log' for more details" "$LINENO" 5; }
3732 fi
3733 fi
3734 fi
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3736 $as_echo "$cross_compiling" >&6; }
3737
3738 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3739 ac_clean_files=$ac_clean_files_save
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3741 $as_echo_n "checking for suffix of object files... " >&6; }
3742 if ${ac_cv_objext+:} false; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747
3748 int
3749 main ()
3750 {
3751
3752 ;
3753 return 0;
3754 }
3755 _ACEOF
3756 rm -f conftest.o conftest.obj
3757 if { { ac_try="$ac_compile"
3758 case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763 $as_echo "$ac_try_echo"; } >&5
3764 (eval "$ac_compile") 2>&5
3765 ac_status=$?
3766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3767 test $ac_status = 0; }; then :
3768 for ac_file in conftest.o conftest.obj conftest.*; do
3769 test -f "$ac_file" || continue;
3770 case $ac_file in
3771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3772 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3773 break;;
3774 esac
3775 done
3776 else
3777 $as_echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3779
3780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error $? "cannot compute suffix of object files: cannot compile
3783 See \`config.log' for more details" "$LINENO" 5; }
3784 fi
3785 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3788 $as_echo "$ac_cv_objext" >&6; }
3789 OBJEXT=$ac_cv_objext
3790 ac_objext=$OBJEXT
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3792 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3793 if ${ac_cv_c_compiler_gnu+:} false; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798
3799 int
3800 main ()
3801 {
3802 #ifndef __GNUC__
3803 choke me
3804 #endif
3805
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811 ac_compiler_gnu=yes
3812 else
3813 ac_compiler_gnu=no
3814 fi
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3817
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3820 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3821 if test $ac_compiler_gnu = yes; then
3822 GCC=yes
3823 else
3824 GCC=
3825 fi
3826 ac_test_CFLAGS=${CFLAGS+set}
3827 ac_save_CFLAGS=$CFLAGS
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3829 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3830 if ${ac_cv_prog_cc_g+:} false; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 ac_save_c_werror_flag=$ac_c_werror_flag
3834 ac_c_werror_flag=yes
3835 ac_cv_prog_cc_g=no
3836 CFLAGS="-g"
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839
3840 int
3841 main ()
3842 {
3843
3844 ;
3845 return 0;
3846 }
3847 _ACEOF
3848 if ac_fn_c_try_compile "$LINENO"; then :
3849 ac_cv_prog_cc_g=yes
3850 else
3851 CFLAGS=""
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854
3855 int
3856 main ()
3857 {
3858
3859 ;
3860 return 0;
3861 }
3862 _ACEOF
3863 if ac_fn_c_try_compile "$LINENO"; then :
3864
3865 else
3866 ac_c_werror_flag=$ac_save_c_werror_flag
3867 CFLAGS="-g"
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3870
3871 int
3872 main ()
3873 {
3874
3875 ;
3876 return 0;
3877 }
3878 _ACEOF
3879 if ac_fn_c_try_compile "$LINENO"; then :
3880 ac_cv_prog_cc_g=yes
3881 fi
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 fi
3884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885 fi
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 ac_c_werror_flag=$ac_save_c_werror_flag
3888 fi
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3890 $as_echo "$ac_cv_prog_cc_g" >&6; }
3891 if test "$ac_test_CFLAGS" = set; then
3892 CFLAGS=$ac_save_CFLAGS
3893 elif test $ac_cv_prog_cc_g = yes; then
3894 if test "$GCC" = yes; then
3895 CFLAGS="-g -O2"
3896 else
3897 CFLAGS="-g"
3898 fi
3899 else
3900 if test "$GCC" = yes; then
3901 CFLAGS="-O2"
3902 else
3903 CFLAGS=
3904 fi
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3907 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3908 if ${ac_cv_prog_cc_c89+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 ac_cv_prog_cc_c89=no
3912 ac_save_CC=$CC
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #include <stdarg.h>
3916 #include <stdio.h>
3917 struct stat;
3918 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3919 struct buf { int x; };
3920 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3921 static char *e (p, i)
3922 char **p;
3923 int i;
3924 {
3925 return p[i];
3926 }
3927 static char *f (char * (*g) (char **, int), char **p, ...)
3928 {
3929 char *s;
3930 va_list v;
3931 va_start (v,p);
3932 s = g (p, va_arg (v,int));
3933 va_end (v);
3934 return s;
3935 }
3936
3937 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3938 function prototypes and stuff, but not '\xHH' hex character constants.
3939 These don't provoke an error unfortunately, instead are silently treated
3940 as 'x'. The following induces an error, until -std is added to get
3941 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3942 array size at least. It's necessary to write '\x00'==0 to get something
3943 that's true only with -std. */
3944 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3945
3946 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3947 inside strings and character constants. */
3948 #define FOO(x) 'x'
3949 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3950
3951 int test (int i, double x);
3952 struct s1 {int (*f) (int a);};
3953 struct s2 {int (*f) (double a);};
3954 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3955 int argc;
3956 char **argv;
3957 int
3958 main ()
3959 {
3960 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3961 ;
3962 return 0;
3963 }
3964 _ACEOF
3965 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3966 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3967 do
3968 CC="$ac_save_CC $ac_arg"
3969 if ac_fn_c_try_compile "$LINENO"; then :
3970 ac_cv_prog_cc_c89=$ac_arg
3971 fi
3972 rm -f core conftest.err conftest.$ac_objext
3973 test "x$ac_cv_prog_cc_c89" != "xno" && break
3974 done
3975 rm -f conftest.$ac_ext
3976 CC=$ac_save_CC
3977
3978 fi
3979 # AC_CACHE_VAL
3980 case "x$ac_cv_prog_cc_c89" in
3981 x)
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3983 $as_echo "none needed" >&6; } ;;
3984 xno)
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3986 $as_echo "unsupported" >&6; } ;;
3987 *)
3988 CC="$CC $ac_cv_prog_cc_c89"
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3990 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3991 esac
3992 if test "x$ac_cv_prog_cc_c89" != xno; then :
3993
3994 fi
3995
3996 ac_ext=c
3997 ac_cpp='$CPP $CPPFLAGS'
3998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001
4002 ac_ext=c
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4008 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4009 if ${am_cv_prog_cc_c_o+:} false; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4014
4015 int
4016 main ()
4017 {
4018
4019 ;
4020 return 0;
4021 }
4022 _ACEOF
4023 # Make sure it works both with $CC and with simple cc.
4024 # Following AC_PROG_CC_C_O, we do the test twice because some
4025 # compilers refuse to overwrite an existing .o file with -o,
4026 # though they will create one.
4027 am_cv_prog_cc_c_o=yes
4028 for am_i in 1 2; do
4029 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4030 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } \
4034 && test -f conftest2.$ac_objext; then
4035 : OK
4036 else
4037 am_cv_prog_cc_c_o=no
4038 break
4039 fi
4040 done
4041 rm -f core conftest*
4042 unset am_i
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4045 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4046 if test "$am_cv_prog_cc_c_o" != yes; then
4047 # Losing compiler, so override with the script.
4048 # FIXME: It is wrong to rewrite CC.
4049 # But if we don't then we get into trouble of one sort or another.
4050 # A longer-term fix would be to have automake use am__CC in this case,
4051 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4052 CC="$am_aux_dir/compile $CC"
4053 fi
4054 ac_ext=c
4055 ac_cpp='$CPP $CPPFLAGS'
4056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059
4060 DEPDIR="${am__leading_dot}deps"
4061
4062 ac_config_commands="$ac_config_commands depfiles"
4063
4064
4065 am_make=${MAKE-make}
4066 cat > confinc << 'END'
4067 am__doit:
4068 @echo this is the am__doit target
4069 .PHONY: am__doit
4070 END
4071 # If we don't find an include directive, just comment out the code.
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4073 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4074 am__include="#"
4075 am__quote=
4076 _am_result=none
4077 # First try GNU make style include.
4078 echo "include confinc" > confmf
4079 # Ignore all kinds of additional output from 'make'.
4080 case `$am_make -s -f confmf 2> /dev/null` in #(
4081 *the\ am__doit\ target*)
4082 am__include=include
4083 am__quote=
4084 _am_result=GNU
4085 ;;
4086 esac
4087 # Now try BSD make style include.
4088 if test "$am__include" = "#"; then
4089 echo '.include "confinc"' > confmf
4090 case `$am_make -s -f confmf 2> /dev/null` in #(
4091 *the\ am__doit\ target*)
4092 am__include=.include
4093 am__quote="\""
4094 _am_result=BSD
4095 ;;
4096 esac
4097 fi
4098
4099
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4101 $as_echo "$_am_result" >&6; }
4102 rm -f confinc confmf
4103
4104 # Check whether --enable-dependency-tracking was given.
4105 if test "${enable_dependency_tracking+set}" = set; then :
4106 enableval=$enable_dependency_tracking;
4107 fi
4108
4109 if test "x$enable_dependency_tracking" != xno; then
4110 am_depcomp="$ac_aux_dir/depcomp"
4111 AMDEPBACKSLASH='\'
4112 am__nodep='_no'
4113 fi
4114 if test "x$enable_dependency_tracking" != xno; then
4115 AMDEP_TRUE=
4116 AMDEP_FALSE='#'
4117 else
4118 AMDEP_TRUE='#'
4119 AMDEP_FALSE=
4120 fi
4121
4122
4123
4124 depcc="$CC" am_compiler_list=
4125
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4127 $as_echo_n "checking dependency style of $depcc... " >&6; }
4128 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4132 # We make a subdir and do the tests there. Otherwise we can end up
4133 # making bogus files that we don't know about and never remove. For
4134 # instance it was reported that on HP-UX the gcc test will end up
4135 # making a dummy file named 'D' -- because '-MD' means "put the output
4136 # in D".
4137 rm -rf conftest.dir
4138 mkdir conftest.dir
4139 # Copy depcomp to subdir because otherwise we won't find it if we're
4140 # using a relative directory.
4141 cp "$am_depcomp" conftest.dir
4142 cd conftest.dir
4143 # We will build objects and dependencies in a subdirectory because
4144 # it helps to detect inapplicable dependency modes. For instance
4145 # both Tru64's cc and ICC support -MD to output dependencies as a
4146 # side effect of compilation, but ICC will put the dependencies in
4147 # the current directory while Tru64 will put them in the object
4148 # directory.
4149 mkdir sub
4150
4151 am_cv_CC_dependencies_compiler_type=none
4152 if test "$am_compiler_list" = ""; then
4153 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4154 fi
4155 am__universal=false
4156 case " $depcc " in #(
4157 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4158 esac
4159
4160 for depmode in $am_compiler_list; do
4161 # Setup a source with many dependencies, because some compilers
4162 # like to wrap large dependency lists on column 80 (with \), and
4163 # we should not choose a depcomp mode which is confused by this.
4164 #
4165 # We need to recreate these files for each test, as the compiler may
4166 # overwrite some of them when testing with obscure command lines.
4167 # This happens at least with the AIX C compiler.
4168 : > sub/conftest.c
4169 for i in 1 2 3 4 5 6; do
4170 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4171 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4172 # Solaris 10 /bin/sh.
4173 echo '/* dummy */' > sub/conftst$i.h
4174 done
4175 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4176
4177 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4178 # mode. It turns out that the SunPro C++ compiler does not properly
4179 # handle '-M -o', and we need to detect this. Also, some Intel
4180 # versions had trouble with output in subdirs.
4181 am__obj=sub/conftest.${OBJEXT-o}
4182 am__minus_obj="-o $am__obj"
4183 case $depmode in
4184 gcc)
4185 # This depmode causes a compiler race in universal mode.
4186 test "$am__universal" = false || continue
4187 ;;
4188 nosideeffect)
4189 # After this tag, mechanisms are not by side-effect, so they'll
4190 # only be used when explicitly requested.
4191 if test "x$enable_dependency_tracking" = xyes; then
4192 continue
4193 else
4194 break
4195 fi
4196 ;;
4197 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4198 # This compiler won't grok '-c -o', but also, the minuso test has
4199 # not run yet. These depmodes are late enough in the game, and
4200 # so weak that their functioning should not be impacted.
4201 am__obj=conftest.${OBJEXT-o}
4202 am__minus_obj=
4203 ;;
4204 none) break ;;
4205 esac
4206 if depmode=$depmode \
4207 source=sub/conftest.c object=$am__obj \
4208 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4209 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4210 >/dev/null 2>conftest.err &&
4211 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4213 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4215 # icc doesn't choke on unknown options, it will just issue warnings
4216 # or remarks (even with -Werror). So we grep stderr for any message
4217 # that says an option was ignored or not supported.
4218 # When given -MP, icc 7.0 and 7.1 complain thusly:
4219 # icc: Command line warning: ignoring option '-M'; no argument required
4220 # The diagnosis changed in icc 8.0:
4221 # icc: Command line remark: option '-MP' not supported
4222 if (grep 'ignoring option' conftest.err ||
4223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4224 am_cv_CC_dependencies_compiler_type=$depmode
4225 break
4226 fi
4227 fi
4228 done
4229
4230 cd ..
4231 rm -rf conftest.dir
4232 else
4233 am_cv_CC_dependencies_compiler_type=none
4234 fi
4235
4236 fi
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4238 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4239 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4240
4241 if
4242 test "x$enable_dependency_tracking" != xno \
4243 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4244 am__fastdepCC_TRUE=
4245 am__fastdepCC_FALSE='#'
4246 else
4247 am__fastdepCC_TRUE='#'
4248 am__fastdepCC_FALSE=
4249 fi
4250
4251
4252
4253 ac_ext=c
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4259 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4260 # On Suns, sometimes $CPP names a directory.
4261 if test -n "$CPP" && test -d "$CPP"; then
4262 CPP=
4263 fi
4264 if test -z "$CPP"; then
4265 if ${ac_cv_prog_CPP+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 # Double quotes because CPP needs to be expanded
4269 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4270 do
4271 ac_preproc_ok=false
4272 for ac_c_preproc_warn_flag in '' yes
4273 do
4274 # Use a header file that comes with gcc, so configuring glibc
4275 # with a fresh cross-compiler works.
4276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4277 # <limits.h> exists even on freestanding compilers.
4278 # On the NeXT, cc -E runs the code through the compiler's parser,
4279 # not just through cpp. "Syntax error" is here to catch this case.
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 #ifdef __STDC__
4283 # include <limits.h>
4284 #else
4285 # include <assert.h>
4286 #endif
4287 Syntax error
4288 _ACEOF
4289 if ac_fn_c_try_cpp "$LINENO"; then :
4290
4291 else
4292 # Broken: fails on valid input.
4293 continue
4294 fi
4295 rm -f conftest.err conftest.i conftest.$ac_ext
4296
4297 # OK, works on sane cases. Now check whether nonexistent headers
4298 # can be detected and how.
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301 #include <ac_nonexistent.h>
4302 _ACEOF
4303 if ac_fn_c_try_cpp "$LINENO"; then :
4304 # Broken: success on invalid input.
4305 continue
4306 else
4307 # Passes both tests.
4308 ac_preproc_ok=:
4309 break
4310 fi
4311 rm -f conftest.err conftest.i conftest.$ac_ext
4312
4313 done
4314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315 rm -f conftest.i conftest.err conftest.$ac_ext
4316 if $ac_preproc_ok; then :
4317 break
4318 fi
4319
4320 done
4321 ac_cv_prog_CPP=$CPP
4322
4323 fi
4324 CPP=$ac_cv_prog_CPP
4325 else
4326 ac_cv_prog_CPP=$CPP
4327 fi
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4329 $as_echo "$CPP" >&6; }
4330 ac_preproc_ok=false
4331 for ac_c_preproc_warn_flag in '' yes
4332 do
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 #ifdef __STDC__
4342 # include <limits.h>
4343 #else
4344 # include <assert.h>
4345 #endif
4346 Syntax error
4347 _ACEOF
4348 if ac_fn_c_try_cpp "$LINENO"; then :
4349
4350 else
4351 # Broken: fails on valid input.
4352 continue
4353 fi
4354 rm -f conftest.err conftest.i conftest.$ac_ext
4355
4356 # OK, works on sane cases. Now check whether nonexistent headers
4357 # can be detected and how.
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360 #include <ac_nonexistent.h>
4361 _ACEOF
4362 if ac_fn_c_try_cpp "$LINENO"; then :
4363 # Broken: success on invalid input.
4364 continue
4365 else
4366 # Passes both tests.
4367 ac_preproc_ok=:
4368 break
4369 fi
4370 rm -f conftest.err conftest.i conftest.$ac_ext
4371
4372 done
4373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4374 rm -f conftest.i conftest.err conftest.$ac_ext
4375 if $ac_preproc_ok; then :
4376
4377 else
4378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4380 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4381 See \`config.log' for more details" "$LINENO" 5; }
4382 fi
4383
4384 ac_ext=c
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389
4390
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4392 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4393 if ${ac_cv_path_GREP+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 if test -z "$GREP"; then
4397 ac_path_GREP_found=false
4398 # Loop through the user's path and test for each of PROGNAME-LIST
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4401 do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_prog in grep ggrep; do
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4407 as_fn_executable_p "$ac_path_GREP" || continue
4408 # Check for GNU ac_path_GREP and select it if it is found.
4409 # Check for GNU $ac_path_GREP
4410 case `"$ac_path_GREP" --version 2>&1` in
4411 *GNU*)
4412 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4413 *)
4414 ac_count=0
4415 $as_echo_n 0123456789 >"conftest.in"
4416 while :
4417 do
4418 cat "conftest.in" "conftest.in" >"conftest.tmp"
4419 mv "conftest.tmp" "conftest.in"
4420 cp "conftest.in" "conftest.nl"
4421 $as_echo 'GREP' >> "conftest.nl"
4422 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4424 as_fn_arith $ac_count + 1 && ac_count=$as_val
4425 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4426 # Best one so far, save it but keep looking for a better one
4427 ac_cv_path_GREP="$ac_path_GREP"
4428 ac_path_GREP_max=$ac_count
4429 fi
4430 # 10*(2^10) chars as input seems more than enough
4431 test $ac_count -gt 10 && break
4432 done
4433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4434 esac
4435
4436 $ac_path_GREP_found && break 3
4437 done
4438 done
4439 done
4440 IFS=$as_save_IFS
4441 if test -z "$ac_cv_path_GREP"; then
4442 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4443 fi
4444 else
4445 ac_cv_path_GREP=$GREP
4446 fi
4447
4448 fi
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4450 $as_echo "$ac_cv_path_GREP" >&6; }
4451 GREP="$ac_cv_path_GREP"
4452
4453
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4455 $as_echo_n "checking for egrep... " >&6; }
4456 if ${ac_cv_path_EGREP+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4460 then ac_cv_path_EGREP="$GREP -E"
4461 else
4462 if test -z "$EGREP"; then
4463 ac_path_EGREP_found=false
4464 # Loop through the user's path and test for each of PROGNAME-LIST
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4467 do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_prog in egrep; do
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4473 as_fn_executable_p "$ac_path_EGREP" || continue
4474 # Check for GNU ac_path_EGREP and select it if it is found.
4475 # Check for GNU $ac_path_EGREP
4476 case `"$ac_path_EGREP" --version 2>&1` in
4477 *GNU*)
4478 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4479 *)
4480 ac_count=0
4481 $as_echo_n 0123456789 >"conftest.in"
4482 while :
4483 do
4484 cat "conftest.in" "conftest.in" >"conftest.tmp"
4485 mv "conftest.tmp" "conftest.in"
4486 cp "conftest.in" "conftest.nl"
4487 $as_echo 'EGREP' >> "conftest.nl"
4488 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4490 as_fn_arith $ac_count + 1 && ac_count=$as_val
4491 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4492 # Best one so far, save it but keep looking for a better one
4493 ac_cv_path_EGREP="$ac_path_EGREP"
4494 ac_path_EGREP_max=$ac_count
4495 fi
4496 # 10*(2^10) chars as input seems more than enough
4497 test $ac_count -gt 10 && break
4498 done
4499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4500 esac
4501
4502 $ac_path_EGREP_found && break 3
4503 done
4504 done
4505 done
4506 IFS=$as_save_IFS
4507 if test -z "$ac_cv_path_EGREP"; then
4508 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4509 fi
4510 else
4511 ac_cv_path_EGREP=$EGREP
4512 fi
4513
4514 fi
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4517 $as_echo "$ac_cv_path_EGREP" >&6; }
4518 EGREP="$ac_cv_path_EGREP"
4519
4520
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4522 $as_echo_n "checking for ANSI C header files... " >&6; }
4523 if ${ac_cv_header_stdc+:} false; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528 #include <stdlib.h>
4529 #include <stdarg.h>
4530 #include <string.h>
4531 #include <float.h>
4532
4533 int
4534 main ()
4535 {
4536
4537 ;
4538 return 0;
4539 }
4540 _ACEOF
4541 if ac_fn_c_try_compile "$LINENO"; then :
4542 ac_cv_header_stdc=yes
4543 else
4544 ac_cv_header_stdc=no
4545 fi
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547
4548 if test $ac_cv_header_stdc = yes; then
4549 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4552 #include <string.h>
4553
4554 _ACEOF
4555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4556 $EGREP "memchr" >/dev/null 2>&1; then :
4557
4558 else
4559 ac_cv_header_stdc=no
4560 fi
4561 rm -f conftest*
4562
4563 fi
4564
4565 if test $ac_cv_header_stdc = yes; then
4566 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569 #include <stdlib.h>
4570
4571 _ACEOF
4572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4573 $EGREP "free" >/dev/null 2>&1; then :
4574
4575 else
4576 ac_cv_header_stdc=no
4577 fi
4578 rm -f conftest*
4579
4580 fi
4581
4582 if test $ac_cv_header_stdc = yes; then
4583 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4584 if test "$cross_compiling" = yes; then :
4585 :
4586 else
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589 #include <ctype.h>
4590 #include <stdlib.h>
4591 #if ((' ' & 0x0FF) == 0x020)
4592 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4593 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4594 #else
4595 # define ISLOWER(c) \
4596 (('a' <= (c) && (c) <= 'i') \
4597 || ('j' <= (c) && (c) <= 'r') \
4598 || ('s' <= (c) && (c) <= 'z'))
4599 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4600 #endif
4601
4602 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4603 int
4604 main ()
4605 {
4606 int i;
4607 for (i = 0; i < 256; i++)
4608 if (XOR (islower (i), ISLOWER (i))
4609 || toupper (i) != TOUPPER (i))
4610 return 2;
4611 return 0;
4612 }
4613 _ACEOF
4614 if ac_fn_c_try_run "$LINENO"; then :
4615
4616 else
4617 ac_cv_header_stdc=no
4618 fi
4619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4620 conftest.$ac_objext conftest.beam conftest.$ac_ext
4621 fi
4622
4623 fi
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4626 $as_echo "$ac_cv_header_stdc" >&6; }
4627 if test $ac_cv_header_stdc = yes; then
4628
4629 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4630
4631 fi
4632
4633 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4634 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4635 inttypes.h stdint.h unistd.h
4636 do :
4637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4638 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4639 "
4640 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4641 cat >>confdefs.h <<_ACEOF
4642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4643 _ACEOF
4644
4645 fi
4646
4647 done
4648
4649
4650
4651 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4652 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4653 MINIX=yes
4654 else
4655 MINIX=
4656 fi
4657
4658
4659 if test "$MINIX" = yes; then
4660
4661 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4662
4663
4664 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4665
4666
4667 $as_echo "#define _MINIX 1" >>confdefs.h
4668
4669 fi
4670
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4673 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4674 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679
4680 # define __EXTENSIONS__ 1
4681 $ac_includes_default
4682 int
4683 main ()
4684 {
4685
4686 ;
4687 return 0;
4688 }
4689 _ACEOF
4690 if ac_fn_c_try_compile "$LINENO"; then :
4691 ac_cv_safe_to_define___extensions__=yes
4692 else
4693 ac_cv_safe_to_define___extensions__=no
4694 fi
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4698 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4699 test $ac_cv_safe_to_define___extensions__ = yes &&
4700 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4701
4702 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4703
4704 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4705
4706 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4707
4708 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4709
4710
4711
4712
4713
4714 case `pwd` in
4715 *\ * | *\ *)
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4717 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4718 esac
4719
4720
4721
4722 macro_version='2.2.7a'
4723 macro_revision='1.3134'
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737 ltmain="$ac_aux_dir/ltmain.sh"
4738
4739 # Backslashify metacharacters that are still active within
4740 # double-quoted strings.
4741 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4742
4743 # Same as above, but do not quote variable references.
4744 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4745
4746 # Sed substitution to delay expansion of an escaped shell variable in a
4747 # double_quote_subst'ed string.
4748 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4749
4750 # Sed substitution to delay expansion of an escaped single quote.
4751 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4752
4753 # Sed substitution to avoid accidental globbing in evaled expressions
4754 no_glob_subst='s/\*/\\\*/g'
4755
4756 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4757 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4758 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4759
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4761 $as_echo_n "checking how to print strings... " >&6; }
4762 # Test print first, because it will be a builtin if present.
4763 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4764 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4765 ECHO='print -r --'
4766 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4767 ECHO='printf %s\n'
4768 else
4769 # Use this function as a fallback that always works.
4770 func_fallback_echo ()
4771 {
4772 eval 'cat <<_LTECHO_EOF
4773 $1
4774 _LTECHO_EOF'
4775 }
4776 ECHO='func_fallback_echo'
4777 fi
4778
4779 # func_echo_all arg...
4780 # Invoke $ECHO with all args, space-separated.
4781 func_echo_all ()
4782 {
4783 $ECHO ""
4784 }
4785
4786 case "$ECHO" in
4787 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4788 $as_echo "printf" >&6; } ;;
4789 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4790 $as_echo "print -r" >&6; } ;;
4791 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4792 $as_echo "cat" >&6; } ;;
4793 esac
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4809 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4810 if ${ac_cv_path_SED+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4814 for ac_i in 1 2 3 4 5 6 7; do
4815 ac_script="$ac_script$as_nl$ac_script"
4816 done
4817 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4818 { ac_script=; unset ac_script;}
4819 if test -z "$SED"; then
4820 ac_path_SED_found=false
4821 # Loop through the user's path and test for each of PROGNAME-LIST
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_prog in sed gsed; do
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4830 as_fn_executable_p "$ac_path_SED" || continue
4831 # Check for GNU ac_path_SED and select it if it is found.
4832 # Check for GNU $ac_path_SED
4833 case `"$ac_path_SED" --version 2>&1` in
4834 *GNU*)
4835 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4836 *)
4837 ac_count=0
4838 $as_echo_n 0123456789 >"conftest.in"
4839 while :
4840 do
4841 cat "conftest.in" "conftest.in" >"conftest.tmp"
4842 mv "conftest.tmp" "conftest.in"
4843 cp "conftest.in" "conftest.nl"
4844 $as_echo '' >> "conftest.nl"
4845 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4847 as_fn_arith $ac_count + 1 && ac_count=$as_val
4848 if test $ac_count -gt ${ac_path_SED_max-0}; then
4849 # Best one so far, save it but keep looking for a better one
4850 ac_cv_path_SED="$ac_path_SED"
4851 ac_path_SED_max=$ac_count
4852 fi
4853 # 10*(2^10) chars as input seems more than enough
4854 test $ac_count -gt 10 && break
4855 done
4856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4857 esac
4858
4859 $ac_path_SED_found && break 3
4860 done
4861 done
4862 done
4863 IFS=$as_save_IFS
4864 if test -z "$ac_cv_path_SED"; then
4865 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4866 fi
4867 else
4868 ac_cv_path_SED=$SED
4869 fi
4870
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4873 $as_echo "$ac_cv_path_SED" >&6; }
4874 SED="$ac_cv_path_SED"
4875 rm -f conftest.sed
4876
4877 test -z "$SED" && SED=sed
4878 Xsed="$SED -e 1s/^X//"
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4891 $as_echo_n "checking for fgrep... " >&6; }
4892 if ${ac_cv_path_FGREP+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4896 then ac_cv_path_FGREP="$GREP -F"
4897 else
4898 if test -z "$FGREP"; then
4899 ac_path_FGREP_found=false
4900 # Loop through the user's path and test for each of PROGNAME-LIST
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4903 do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_prog in fgrep; do
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4909 as_fn_executable_p "$ac_path_FGREP" || continue
4910 # Check for GNU ac_path_FGREP and select it if it is found.
4911 # Check for GNU $ac_path_FGREP
4912 case `"$ac_path_FGREP" --version 2>&1` in
4913 *GNU*)
4914 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4915 *)
4916 ac_count=0
4917 $as_echo_n 0123456789 >"conftest.in"
4918 while :
4919 do
4920 cat "conftest.in" "conftest.in" >"conftest.tmp"
4921 mv "conftest.tmp" "conftest.in"
4922 cp "conftest.in" "conftest.nl"
4923 $as_echo 'FGREP' >> "conftest.nl"
4924 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926 as_fn_arith $ac_count + 1 && ac_count=$as_val
4927 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4928 # Best one so far, save it but keep looking for a better one
4929 ac_cv_path_FGREP="$ac_path_FGREP"
4930 ac_path_FGREP_max=$ac_count
4931 fi
4932 # 10*(2^10) chars as input seems more than enough
4933 test $ac_count -gt 10 && break
4934 done
4935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936 esac
4937
4938 $ac_path_FGREP_found && break 3
4939 done
4940 done
4941 done
4942 IFS=$as_save_IFS
4943 if test -z "$ac_cv_path_FGREP"; then
4944 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4945 fi
4946 else
4947 ac_cv_path_FGREP=$FGREP
4948 fi
4949
4950 fi
4951 fi
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4953 $as_echo "$ac_cv_path_FGREP" >&6; }
4954 FGREP="$ac_cv_path_FGREP"
4955
4956
4957 test -z "$GREP" && GREP=grep
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977 # Check whether --with-gnu-ld was given.
4978 if test "${with_gnu_ld+set}" = set; then :
4979 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4980 else
4981 with_gnu_ld=no
4982 fi
4983
4984 ac_prog=ld
4985 if test "$GCC" = yes; then
4986 # Check if gcc -print-prog-name=ld gives a path.
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4988 $as_echo_n "checking for ld used by $CC... " >&6; }
4989 case $host in
4990 *-*-mingw*)
4991 # gcc leaves a trailing carriage return which upsets mingw
4992 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4993 *)
4994 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4995 esac
4996 case $ac_prog in
4997 # Accept absolute paths.
4998 [\\/]* | ?:[\\/]*)
4999 re_direlt='/[^/][^/]*/\.\./'
5000 # Canonicalize the pathname of ld
5001 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5002 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5003 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5004 done
5005 test -z "$LD" && LD="$ac_prog"
5006 ;;
5007 "")
5008 # If it fails, then pretend we aren't using GCC.
5009 ac_prog=ld
5010 ;;
5011 *)
5012 # If it is relative, then search for the first ld in PATH.
5013 with_gnu_ld=unknown
5014 ;;
5015 esac
5016 elif test "$with_gnu_ld" = yes; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5018 $as_echo_n "checking for GNU ld... " >&6; }
5019 else
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5021 $as_echo_n "checking for non-GNU ld... " >&6; }
5022 fi
5023 if ${lt_cv_path_LD+:} false; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 if test -z "$LD"; then
5027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5028 for ac_dir in $PATH; do
5029 IFS="$lt_save_ifs"
5030 test -z "$ac_dir" && ac_dir=.
5031 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5032 lt_cv_path_LD="$ac_dir/$ac_prog"
5033 # Check to see if the program is GNU ld. I'd rather use --version,
5034 # but apparently some variants of GNU ld only accept -v.
5035 # Break only if it was the GNU/non-GNU ld that we prefer.
5036 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5037 *GNU* | *'with BFD'*)
5038 test "$with_gnu_ld" != no && break
5039 ;;
5040 *)
5041 test "$with_gnu_ld" != yes && break
5042 ;;
5043 esac
5044 fi
5045 done
5046 IFS="$lt_save_ifs"
5047 else
5048 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5049 fi
5050 fi
5051
5052 LD="$lt_cv_path_LD"
5053 if test -n "$LD"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5055 $as_echo "$LD" >&6; }
5056 else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5059 fi
5060 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5062 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5063 if ${lt_cv_prog_gnu_ld+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5067 case `$LD -v 2>&1 </dev/null` in
5068 *GNU* | *'with BFD'*)
5069 lt_cv_prog_gnu_ld=yes
5070 ;;
5071 *)
5072 lt_cv_prog_gnu_ld=no
5073 ;;
5074 esac
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5077 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5078 with_gnu_ld=$lt_cv_prog_gnu_ld
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5089 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5090 if ${lt_cv_path_NM+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$NM"; then
5094 # Let the user override the nm to test.
5095 lt_nm_to_check="$NM"
5096 else
5097 lt_nm_to_check="${ac_tool_prefix}nm"
5098 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5099 lt_nm_to_check="$lt_nm_to_check nm"
5100 fi
5101 fi
5102 for lt_tmp_nm in "$lt_nm_to_check"; do
5103 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5104 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5105 IFS="$lt_save_ifs"
5106 test -z "$ac_dir" && ac_dir=.
5107 # Strip out any user-provided options from the nm to test twice,
5108 # the first time to test to see if nm (rather than its options) has
5109 # an explicit path, the second time to yield a file which can be
5110 # nm'ed itself.
5111 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5112 case "$tmp_nm_path" in
5113 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5114 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5115 esac
5116 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5117 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5118 # Check to see if the nm accepts a BSD-compat flag.
5119 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5120 # nm: unknown option "B" ignored
5121 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5122 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5123 break
5124 ;;
5125 *)
5126 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5127 *$tmp_nm*)
5128 lt_cv_path_NM="$tmp_nm -p"
5129 break
5130 ;;
5131 *)
5132 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5133 continue # so that we can try to find one that supports BSD flags
5134 ;;
5135 esac
5136 ;;
5137 esac
5138 fi
5139 done
5140 IFS="$lt_save_ifs"
5141 done
5142 : ${lt_cv_path_NM=no}
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5145 $as_echo "$lt_cv_path_NM" >&6; }
5146 if test "$lt_cv_path_NM" != "no"; then
5147 NM="$lt_cv_path_NM"
5148 else
5149 # Didn't find any BSD compatible name lister, look for dumpbin.
5150 if test -n "$DUMPBIN"; then :
5151 # Let the user override the test.
5152 else
5153 if test -n "$ac_tool_prefix"; then
5154 for ac_prog in dumpbin "link -dump"
5155 do
5156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_DUMPBIN+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -n "$DUMPBIN"; then
5164 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5176 fi
5177 done
5178 done
5179 IFS=$as_save_IFS
5180
5181 fi
5182 fi
5183 DUMPBIN=$ac_cv_prog_DUMPBIN
5184 if test -n "$DUMPBIN"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5186 $as_echo "$DUMPBIN" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191
5192
5193 test -n "$DUMPBIN" && break
5194 done
5195 fi
5196 if test -z "$DUMPBIN"; then
5197 ac_ct_DUMPBIN=$DUMPBIN
5198 for ac_prog in dumpbin "link -dump"
5199 do
5200 # Extract the first word of "$ac_prog", so it can be a program name with args.
5201 set dummy $ac_prog; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 if test -n "$ac_ct_DUMPBIN"; then
5208 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221 done
5222 done
5223 IFS=$as_save_IFS
5224
5225 fi
5226 fi
5227 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5228 if test -n "$ac_ct_DUMPBIN"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5230 $as_echo "$ac_ct_DUMPBIN" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236
5237 test -n "$ac_ct_DUMPBIN" && break
5238 done
5239
5240 if test "x$ac_ct_DUMPBIN" = x; then
5241 DUMPBIN=":"
5242 else
5243 case $cross_compiling:$ac_tool_warned in
5244 yes:)
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5247 ac_tool_warned=yes ;;
5248 esac
5249 DUMPBIN=$ac_ct_DUMPBIN
5250 fi
5251 fi
5252
5253 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5254 *COFF*)
5255 DUMPBIN="$DUMPBIN -symbols"
5256 ;;
5257 *)
5258 DUMPBIN=:
5259 ;;
5260 esac
5261 fi
5262
5263 if test "$DUMPBIN" != ":"; then
5264 NM="$DUMPBIN"
5265 fi
5266 fi
5267 test -z "$NM" && NM=nm
5268
5269
5270
5271
5272
5273
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5275 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5276 if ${lt_cv_nm_interface+:} false; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 lt_cv_nm_interface="BSD nm"
5280 echo "int some_variable = 0;" > conftest.$ac_ext
5281 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5282 (eval "$ac_compile" 2>conftest.err)
5283 cat conftest.err >&5
5284 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5285 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5286 cat conftest.err >&5
5287 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5288 cat conftest.out >&5
5289 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5290 lt_cv_nm_interface="MS dumpbin"
5291 fi
5292 rm -f conftest*
5293 fi
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5295 $as_echo "$lt_cv_nm_interface" >&6; }
5296
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5298 $as_echo_n "checking whether ln -s works... " >&6; }
5299 LN_S=$as_ln_s
5300 if test "$LN_S" = "ln -s"; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5302 $as_echo "yes" >&6; }
5303 else
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5305 $as_echo "no, using $LN_S" >&6; }
5306 fi
5307
5308 # find the maximum length of command line arguments
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5310 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5311 if ${lt_cv_sys_max_cmd_len+:} false; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 i=0
5315 teststring="ABCD"
5316
5317 case $build_os in
5318 msdosdjgpp*)
5319 # On DJGPP, this test can blow up pretty badly due to problems in libc
5320 # (any single argument exceeding 2000 bytes causes a buffer overrun
5321 # during glob expansion). Even if it were fixed, the result of this
5322 # check would be larger than it should be.
5323 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5324 ;;
5325
5326 gnu*)
5327 # Under GNU Hurd, this test is not required because there is
5328 # no limit to the length of command line arguments.
5329 # Libtool will interpret -1 as no limit whatsoever
5330 lt_cv_sys_max_cmd_len=-1;
5331 ;;
5332
5333 cygwin* | mingw* | cegcc*)
5334 # On Win9x/ME, this test blows up -- it succeeds, but takes
5335 # about 5 minutes as the teststring grows exponentially.
5336 # Worse, since 9x/ME are not pre-emptively multitasking,
5337 # you end up with a "frozen" computer, even though with patience
5338 # the test eventually succeeds (with a max line length of 256k).
5339 # Instead, let's just punt: use the minimum linelength reported by
5340 # all of the supported platforms: 8192 (on NT/2K/XP).
5341 lt_cv_sys_max_cmd_len=8192;
5342 ;;
5343
5344 mint*)
5345 # On MiNT this can take a long time and run out of memory.
5346 lt_cv_sys_max_cmd_len=8192;
5347 ;;
5348
5349 amigaos*)
5350 # On AmigaOS with pdksh, this test takes hours, literally.
5351 # So we just punt and use a minimum line length of 8192.
5352 lt_cv_sys_max_cmd_len=8192;
5353 ;;
5354
5355 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5356 # This has been around since 386BSD, at least. Likely further.
5357 if test -x /sbin/sysctl; then
5358 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5359 elif test -x /usr/sbin/sysctl; then
5360 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5361 else
5362 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5363 fi
5364 # And add a safety zone
5365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5367 ;;
5368
5369 interix*)
5370 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5371 lt_cv_sys_max_cmd_len=196608
5372 ;;
5373
5374 osf*)
5375 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5376 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5377 # nice to cause kernel panics so lets avoid the loop below.
5378 # First set a reasonable default.
5379 lt_cv_sys_max_cmd_len=16384
5380 #
5381 if test -x /sbin/sysconfig; then
5382 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5383 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5384 esac
5385 fi
5386 ;;
5387 sco3.2v5*)
5388 lt_cv_sys_max_cmd_len=102400
5389 ;;
5390 sysv5* | sco5v6* | sysv4.2uw2*)
5391 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5392 if test -n "$kargmax"; then
5393 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5394 else
5395 lt_cv_sys_max_cmd_len=32768
5396 fi
5397 ;;
5398 *)
5399 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5400 if test -n "$lt_cv_sys_max_cmd_len"; then
5401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5403 else
5404 # Make teststring a little bigger before we do anything with it.
5405 # a 1K string should be a reasonable start.
5406 for i in 1 2 3 4 5 6 7 8 ; do
5407 teststring=$teststring$teststring
5408 done
5409 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5410 # If test is not a shell built-in, we'll probably end up computing a
5411 # maximum length that is only half of the actual maximum length, but
5412 # we can't tell.
5413 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5414 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5415 test $i != 17 # 1/2 MB should be enough
5416 do
5417 i=`expr $i + 1`
5418 teststring=$teststring$teststring
5419 done
5420 # Only check the string length outside the loop.
5421 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5422 teststring=
5423 # Add a significant safety factor because C++ compilers can tack on
5424 # massive amounts of additional arguments before passing them to the
5425 # linker. It appears as though 1/2 is a usable value.
5426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5427 fi
5428 ;;
5429 esac
5430
5431 fi
5432
5433 if test -n $lt_cv_sys_max_cmd_len ; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5435 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5438 $as_echo "none" >&6; }
5439 fi
5440 max_cmd_len=$lt_cv_sys_max_cmd_len
5441
5442
5443
5444
5445
5446
5447 : ${CP="cp -f"}
5448 : ${MV="mv -f"}
5449 : ${RM="rm -f"}
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5452 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5453 # Try some XSI features
5454 xsi_shell=no
5455 ( _lt_dummy="a/b/c"
5456 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5457 = c,a/b,, \
5458 && eval 'test $(( 1 + 1 )) -eq 2 \
5459 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5460 && xsi_shell=yes
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5462 $as_echo "$xsi_shell" >&6; }
5463
5464
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5466 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5467 lt_shell_append=no
5468 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5469 >/dev/null 2>&1 \
5470 && lt_shell_append=yes
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5472 $as_echo "$lt_shell_append" >&6; }
5473
5474
5475 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5476 lt_unset=unset
5477 else
5478 lt_unset=false
5479 fi
5480
5481
5482
5483
5484
5485 # test EBCDIC or ASCII
5486 case `echo X|tr X '\101'` in
5487 A) # ASCII based system
5488 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5489 lt_SP2NL='tr \040 \012'
5490 lt_NL2SP='tr \015\012 \040\040'
5491 ;;
5492 *) # EBCDIC based system
5493 lt_SP2NL='tr \100 \n'
5494 lt_NL2SP='tr \r\n \100\100'
5495 ;;
5496 esac
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5507 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5508 if ${lt_cv_ld_reload_flag+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 lt_cv_ld_reload_flag='-r'
5512 fi
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5514 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5515 reload_flag=$lt_cv_ld_reload_flag
5516 case $reload_flag in
5517 "" | " "*) ;;
5518 *) reload_flag=" $reload_flag" ;;
5519 esac
5520 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5521 case $host_os in
5522 darwin*)
5523 if test "$GCC" = yes; then
5524 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5525 else
5526 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5527 fi
5528 ;;
5529 esac
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539 if test -n "$ac_tool_prefix"; then
5540 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5541 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if ${ac_cv_prog_OBJDUMP+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 if test -n "$OBJDUMP"; then
5548 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 break 2
5560 fi
5561 done
5562 done
5563 IFS=$as_save_IFS
5564
5565 fi
5566 fi
5567 OBJDUMP=$ac_cv_prog_OBJDUMP
5568 if test -n "$OBJDUMP"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5570 $as_echo "$OBJDUMP" >&6; }
5571 else
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5574 fi
5575
5576
5577 fi
5578 if test -z "$ac_cv_prog_OBJDUMP"; then
5579 ac_ct_OBJDUMP=$OBJDUMP
5580 # Extract the first word of "objdump", so it can be a program name with args.
5581 set dummy objdump; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 if test -n "$ac_ct_OBJDUMP"; then
5588 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5589 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5600 fi
5601 done
5602 done
5603 IFS=$as_save_IFS
5604
5605 fi
5606 fi
5607 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5608 if test -n "$ac_ct_OBJDUMP"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5610 $as_echo "$ac_ct_OBJDUMP" >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615
5616 if test "x$ac_ct_OBJDUMP" = x; then
5617 OBJDUMP="false"
5618 else
5619 case $cross_compiling:$ac_tool_warned in
5620 yes:)
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5623 ac_tool_warned=yes ;;
5624 esac
5625 OBJDUMP=$ac_ct_OBJDUMP
5626 fi
5627 else
5628 OBJDUMP="$ac_cv_prog_OBJDUMP"
5629 fi
5630
5631 test -z "$OBJDUMP" && OBJDUMP=objdump
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5642 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5643 if ${lt_cv_deplibs_check_method+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 lt_cv_file_magic_cmd='$MAGIC_CMD'
5647 lt_cv_file_magic_test_file=
5648 lt_cv_deplibs_check_method='unknown'
5649 # Need to set the preceding variable on all platforms that support
5650 # interlibrary dependencies.
5651 # 'none' -- dependencies not supported.
5652 # `unknown' -- same as none, but documents that we really don't know.
5653 # 'pass_all' -- all dependencies passed with no checks.
5654 # 'test_compile' -- check by making test program.
5655 # 'file_magic [[regex]]' -- check by looking for files in library path
5656 # which responds to the $file_magic_cmd with a given extended regex.
5657 # If you have `file' or equivalent on your system and you're not sure
5658 # whether `pass_all' will *always* work, you probably want this one.
5659
5660 case $host_os in
5661 aix[4-9]*)
5662 lt_cv_deplibs_check_method=pass_all
5663 ;;
5664
5665 beos*)
5666 lt_cv_deplibs_check_method=pass_all
5667 ;;
5668
5669 bsdi[45]*)
5670 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5671 lt_cv_file_magic_cmd='/usr/bin/file -L'
5672 lt_cv_file_magic_test_file=/shlib/libc.so
5673 ;;
5674
5675 cygwin*)
5676 # func_win32_libid is a shell function defined in ltmain.sh
5677 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5678 lt_cv_file_magic_cmd='func_win32_libid'
5679 ;;
5680
5681 mingw* | pw32*)
5682 # Base MSYS/MinGW do not provide the 'file' command needed by
5683 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5684 # unless we find 'file', for example because we are cross-compiling.
5685 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5686 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5687 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5688 lt_cv_file_magic_cmd='func_win32_libid'
5689 else
5690 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5691 lt_cv_file_magic_cmd='$OBJDUMP -f'
5692 fi
5693 ;;
5694
5695 cegcc*)
5696 # use the weaker test based on 'objdump'. See mingw*.
5697 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5698 lt_cv_file_magic_cmd='$OBJDUMP -f'
5699 ;;
5700
5701 darwin* | rhapsody*)
5702 lt_cv_deplibs_check_method=pass_all
5703 ;;
5704
5705 freebsd* | dragonfly*)
5706 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5707 case $host_cpu in
5708 i*86 )
5709 # Not sure whether the presence of OpenBSD here was a mistake.
5710 # Let's accept both of them until this is cleared up.
5711 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5712 lt_cv_file_magic_cmd=/usr/bin/file
5713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5714 ;;
5715 esac
5716 else
5717 lt_cv_deplibs_check_method=pass_all
5718 fi
5719 ;;
5720
5721 gnu*)
5722 lt_cv_deplibs_check_method=pass_all
5723 ;;
5724
5725 haiku*)
5726 lt_cv_deplibs_check_method=pass_all
5727 ;;
5728
5729 hpux10.20* | hpux11*)
5730 lt_cv_file_magic_cmd=/usr/bin/file
5731 case $host_cpu in
5732 ia64*)
5733 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5734 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5735 ;;
5736 hppa*64*)
5737 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]'
5738 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5739 ;;
5740 *)
5741 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5742 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5743 ;;
5744 esac
5745 ;;
5746
5747 interix[3-9]*)
5748 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5750 ;;
5751
5752 irix5* | irix6* | nonstopux*)
5753 case $LD in
5754 *-32|*"-32 ") libmagic=32-bit;;
5755 *-n32|*"-n32 ") libmagic=N32;;
5756 *-64|*"-64 ") libmagic=64-bit;;
5757 *) libmagic=never-match;;
5758 esac
5759 lt_cv_deplibs_check_method=pass_all
5760 ;;
5761
5762 # This must be Linux ELF.
5763 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5764 lt_cv_deplibs_check_method=pass_all
5765 ;;
5766
5767 netbsd*)
5768 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5770 else
5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5772 fi
5773 ;;
5774
5775 newos6*)
5776 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5777 lt_cv_file_magic_cmd=/usr/bin/file
5778 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5779 ;;
5780
5781 *nto* | *qnx*)
5782 lt_cv_deplibs_check_method=pass_all
5783 ;;
5784
5785 openbsd*)
5786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5788 else
5789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5790 fi
5791 ;;
5792
5793 osf3* | osf4* | osf5*)
5794 lt_cv_deplibs_check_method=pass_all
5795 ;;
5796
5797 rdos*)
5798 lt_cv_deplibs_check_method=pass_all
5799 ;;
5800
5801 solaris*)
5802 lt_cv_deplibs_check_method=pass_all
5803 ;;
5804
5805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5806 lt_cv_deplibs_check_method=pass_all
5807 ;;
5808
5809 sysv4 | sysv4.3*)
5810 case $host_vendor in
5811 motorola)
5812 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]'
5813 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5814 ;;
5815 ncr)
5816 lt_cv_deplibs_check_method=pass_all
5817 ;;
5818 sequent)
5819 lt_cv_file_magic_cmd='/bin/file'
5820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5821 ;;
5822 sni)
5823 lt_cv_file_magic_cmd='/bin/file'
5824 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5825 lt_cv_file_magic_test_file=/lib/libc.so
5826 ;;
5827 siemens)
5828 lt_cv_deplibs_check_method=pass_all
5829 ;;
5830 pc)
5831 lt_cv_deplibs_check_method=pass_all
5832 ;;
5833 esac
5834 ;;
5835
5836 tpf*)
5837 lt_cv_deplibs_check_method=pass_all
5838 ;;
5839 esac
5840
5841 fi
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5843 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5844 file_magic_cmd=$lt_cv_file_magic_cmd
5845 deplibs_check_method=$lt_cv_deplibs_check_method
5846 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 plugin_option=
5860 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5861 for plugin in $plugin_names; do
5862 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5863 if test x$plugin_so = x$plugin; then
5864 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5865 fi
5866 if test x$plugin_so != x$plugin; then
5867 plugin_option="--plugin $plugin_so"
5868 break
5869 fi
5870 done
5871
5872 if test -n "$ac_tool_prefix"; then
5873 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5874 set dummy ${ac_tool_prefix}ar; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_AR+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if test -n "$AR"; then
5881 ac_cv_prog_AR="$AR" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_AR="${ac_tool_prefix}ar"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894 done
5895 done
5896 IFS=$as_save_IFS
5897
5898 fi
5899 fi
5900 AR=$ac_cv_prog_AR
5901 if test -n "$AR"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5903 $as_echo "$AR" >&6; }
5904 else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908
5909
5910 fi
5911 if test -z "$ac_cv_prog_AR"; then
5912 ac_ct_AR=$AR
5913 # Extract the first word of "ar", so it can be a program name with args.
5914 set dummy ar; ac_word=$2
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916 $as_echo_n "checking for $ac_word... " >&6; }
5917 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 if test -n "$ac_ct_AR"; then
5921 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_ac_ct_AR="ar"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934 done
5935 done
5936 IFS=$as_save_IFS
5937
5938 fi
5939 fi
5940 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5941 if test -n "$ac_ct_AR"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5943 $as_echo "$ac_ct_AR" >&6; }
5944 else
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5947 fi
5948
5949 if test "x$ac_ct_AR" = x; then
5950 AR="false"
5951 else
5952 case $cross_compiling:$ac_tool_warned in
5953 yes:)
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956 ac_tool_warned=yes ;;
5957 esac
5958 AR=$ac_ct_AR
5959 fi
5960 else
5961 AR="$ac_cv_prog_AR"
5962 fi
5963
5964 test -z "$AR" && AR=ar
5965 if test -n "$plugin_option"; then
5966 if $AR --help 2>&1 | grep -q "\--plugin"; then
5967 touch conftest.c
5968 $AR $plugin_option rc conftest.a conftest.c
5969 if test "$?" != 0; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5971 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5972 else
5973 AR="$AR $plugin_option"
5974 fi
5975 rm -f conftest.*
5976 fi
5977 fi
5978 test -z "$AR_FLAGS" && AR_FLAGS=cru
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990 if test -n "$ac_tool_prefix"; then
5991 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5992 set dummy ${ac_tool_prefix}strip; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_prog_STRIP+:} false; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 if test -n "$STRIP"; then
5999 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6011 fi
6012 done
6013 done
6014 IFS=$as_save_IFS
6015
6016 fi
6017 fi
6018 STRIP=$ac_cv_prog_STRIP
6019 if test -n "$STRIP"; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6021 $as_echo "$STRIP" >&6; }
6022 else
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6025 fi
6026
6027
6028 fi
6029 if test -z "$ac_cv_prog_STRIP"; then
6030 ac_ct_STRIP=$STRIP
6031 # Extract the first word of "strip", so it can be a program name with args.
6032 set dummy strip; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038 if test -n "$ac_ct_STRIP"; then
6039 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 ac_cv_prog_ac_ct_STRIP="strip"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052 done
6053 done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6059 if test -n "$ac_ct_STRIP"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6061 $as_echo "$ac_ct_STRIP" >&6; }
6062 else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067 if test "x$ac_ct_STRIP" = x; then
6068 STRIP=":"
6069 else
6070 case $cross_compiling:$ac_tool_warned in
6071 yes:)
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074 ac_tool_warned=yes ;;
6075 esac
6076 STRIP=$ac_ct_STRIP
6077 fi
6078 else
6079 STRIP="$ac_cv_prog_STRIP"
6080 fi
6081
6082 test -z "$STRIP" && STRIP=:
6083
6084
6085
6086
6087
6088
6089 if test -n "$ac_tool_prefix"; then
6090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if ${ac_cv_prog_RANLIB+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if test -n "$RANLIB"; then
6098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111 done
6112 done
6113 IFS=$as_save_IFS
6114
6115 fi
6116 fi
6117 RANLIB=$ac_cv_prog_RANLIB
6118 if test -n "$RANLIB"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6120 $as_echo "$RANLIB" >&6; }
6121 else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6124 fi
6125
6126
6127 fi
6128 if test -z "$ac_cv_prog_RANLIB"; then
6129 ac_ct_RANLIB=$RANLIB
6130 # Extract the first word of "ranlib", so it can be a program name with args.
6131 set dummy ranlib; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 if test -n "$ac_ct_RANLIB"; then
6138 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147 ac_cv_prog_ac_ct_RANLIB="ranlib"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151 done
6152 done
6153 IFS=$as_save_IFS
6154
6155 fi
6156 fi
6157 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6158 if test -n "$ac_ct_RANLIB"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6160 $as_echo "$ac_ct_RANLIB" >&6; }
6161 else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6164 fi
6165
6166 if test "x$ac_ct_RANLIB" = x; then
6167 RANLIB=":"
6168 else
6169 case $cross_compiling:$ac_tool_warned in
6170 yes:)
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6173 ac_tool_warned=yes ;;
6174 esac
6175 RANLIB=$ac_ct_RANLIB
6176 fi
6177 else
6178 RANLIB="$ac_cv_prog_RANLIB"
6179 fi
6180
6181 test -z "$RANLIB" && RANLIB=:
6182 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6183 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6184 RANLIB="$RANLIB $plugin_option"
6185 fi
6186 fi
6187
6188
6189
6190
6191
6192
6193 # Determine commands to create old-style static archives.
6194 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6195 old_postinstall_cmds='chmod 644 $oldlib'
6196 old_postuninstall_cmds=
6197
6198 if test -n "$RANLIB"; then
6199 case $host_os in
6200 openbsd*)
6201 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6202 ;;
6203 *)
6204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6205 ;;
6206 esac
6207 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6208 fi
6209
6210 case $host_os in
6211 darwin*)
6212 lock_old_archive_extraction=yes ;;
6213 *)
6214 lock_old_archive_extraction=no ;;
6215 esac
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255 # If no C compiler was specified, use CC.
6256 LTCC=${LTCC-"$CC"}
6257
6258 # If no C compiler flags were specified, use CFLAGS.
6259 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6260
6261 # Allow CC to be a program name with arguments.
6262 compiler=$CC
6263
6264
6265 # Check for command to grab the raw symbol name followed by C symbol from nm.
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6267 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6268 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271
6272 # These are sane defaults that work on at least a few old systems.
6273 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6274
6275 # Character class describing NM global symbol codes.
6276 symcode='[BCDEGRST]'
6277
6278 # Regexp to match symbols that can be accessed directly from C.
6279 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6280
6281 # Define system-specific variables.
6282 case $host_os in
6283 aix*)
6284 symcode='[BCDT]'
6285 ;;
6286 cygwin* | mingw* | pw32* | cegcc*)
6287 symcode='[ABCDGISTW]'
6288 ;;
6289 hpux*)
6290 if test "$host_cpu" = ia64; then
6291 symcode='[ABCDEGRST]'
6292 fi
6293 ;;
6294 irix* | nonstopux*)
6295 symcode='[BCDEGRST]'
6296 ;;
6297 osf*)
6298 symcode='[BCDEGQRST]'
6299 ;;
6300 solaris*)
6301 symcode='[BCDRT]'
6302 ;;
6303 sco3.2v5*)
6304 symcode='[DT]'
6305 ;;
6306 sysv4.2uw2*)
6307 symcode='[DT]'
6308 ;;
6309 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6310 symcode='[ABDT]'
6311 ;;
6312 sysv4)
6313 symcode='[DFNSTU]'
6314 ;;
6315 esac
6316
6317 # If we're using GNU nm, then use its standard symbol codes.
6318 case `$NM -V 2>&1` in
6319 *GNU* | *'with BFD'*)
6320 symcode='[ABCDGIRSTW]' ;;
6321 esac
6322
6323 # Transform an extracted symbol line into a proper C declaration.
6324 # Some systems (esp. on ia64) link data and code symbols differently,
6325 # so use this general approach.
6326 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6327
6328 # Transform an extracted symbol line into symbol name and symbol address
6329 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6330 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'"
6331
6332 # Handle CRLF in mingw tool chain
6333 opt_cr=
6334 case $build_os in
6335 mingw*)
6336 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6337 ;;
6338 esac
6339
6340 # Try without a prefix underscore, then with it.
6341 for ac_symprfx in "" "_"; do
6342
6343 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6344 symxfrm="\\1 $ac_symprfx\\2 \\2"
6345
6346 # Write the raw and C identifiers.
6347 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6348 # Fake it for dumpbin and say T for any non-static function
6349 # and D for any global variable.
6350 # Also find C++ and __fastcall symbols from MSVC++,
6351 # which start with @ or ?.
6352 lt_cv_sys_global_symbol_pipe="$AWK '"\
6353 " {last_section=section; section=\$ 3};"\
6354 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6355 " \$ 0!~/External *\|/{next};"\
6356 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6357 " {if(hide[section]) next};"\
6358 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6359 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6360 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6361 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6362 " ' prfx=^$ac_symprfx"
6363 else
6364 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6365 fi
6366
6367 # Check to see that the pipe works correctly.
6368 pipe_works=no
6369
6370 rm -f conftest*
6371 cat > conftest.$ac_ext <<_LT_EOF
6372 #ifdef __cplusplus
6373 extern "C" {
6374 #endif
6375 char nm_test_var;
6376 void nm_test_func(void);
6377 void nm_test_func(void){}
6378 #ifdef __cplusplus
6379 }
6380 #endif
6381 int main(){nm_test_var='a';nm_test_func();return(0);}
6382 _LT_EOF
6383
6384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6385 (eval $ac_compile) 2>&5
6386 ac_status=$?
6387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6388 test $ac_status = 0; }; then
6389 # Now try to grab the symbols.
6390 nlist=conftest.nm
6391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6392 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6393 ac_status=$?
6394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6395 test $ac_status = 0; } && test -s "$nlist"; then
6396 # Try sorting and uniquifying the output.
6397 if sort "$nlist" | uniq > "$nlist"T; then
6398 mv -f "$nlist"T "$nlist"
6399 else
6400 rm -f "$nlist"T
6401 fi
6402
6403 # Make sure that we snagged all the symbols we need.
6404 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6405 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6406 cat <<_LT_EOF > conftest.$ac_ext
6407 #ifdef __cplusplus
6408 extern "C" {
6409 #endif
6410
6411 _LT_EOF
6412 # Now generate the symbol file.
6413 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6414
6415 cat <<_LT_EOF >> conftest.$ac_ext
6416
6417 /* The mapping between symbol names and symbols. */
6418 const struct {
6419 const char *name;
6420 void *address;
6421 }
6422 lt__PROGRAM__LTX_preloaded_symbols[] =
6423 {
6424 { "@PROGRAM@", (void *) 0 },
6425 _LT_EOF
6426 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6427 cat <<\_LT_EOF >> conftest.$ac_ext
6428 {0, (void *) 0}
6429 };
6430
6431 /* This works around a problem in FreeBSD linker */
6432 #ifdef FREEBSD_WORKAROUND
6433 static const void *lt_preloaded_setup() {
6434 return lt__PROGRAM__LTX_preloaded_symbols;
6435 }
6436 #endif
6437
6438 #ifdef __cplusplus
6439 }
6440 #endif
6441 _LT_EOF
6442 # Now try linking the two files.
6443 mv conftest.$ac_objext conftstm.$ac_objext
6444 lt_save_LIBS="$LIBS"
6445 lt_save_CFLAGS="$CFLAGS"
6446 LIBS="conftstm.$ac_objext"
6447 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6449 (eval $ac_link) 2>&5
6450 ac_status=$?
6451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6452 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6453 pipe_works=yes
6454 fi
6455 LIBS="$lt_save_LIBS"
6456 CFLAGS="$lt_save_CFLAGS"
6457 else
6458 echo "cannot find nm_test_func in $nlist" >&5
6459 fi
6460 else
6461 echo "cannot find nm_test_var in $nlist" >&5
6462 fi
6463 else
6464 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6465 fi
6466 else
6467 echo "$progname: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6469 fi
6470 rm -rf conftest* conftst*
6471
6472 # Do not use the global_symbol_pipe unless it works.
6473 if test "$pipe_works" = yes; then
6474 break
6475 else
6476 lt_cv_sys_global_symbol_pipe=
6477 fi
6478 done
6479
6480 fi
6481
6482 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6483 lt_cv_sys_global_symbol_to_cdecl=
6484 fi
6485 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6487 $as_echo "failed" >&6; }
6488 else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6490 $as_echo "ok" >&6; }
6491 fi
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514 # Check whether --enable-libtool-lock was given.
6515 if test "${enable_libtool_lock+set}" = set; then :
6516 enableval=$enable_libtool_lock;
6517 fi
6518
6519 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6520
6521 # Some flags need to be propagated to the compiler or linker for good
6522 # libtool support.
6523 case $host in
6524 ia64-*-hpux*)
6525 # Find out which ABI we are using.
6526 echo 'int i;' > conftest.$ac_ext
6527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6528 (eval $ac_compile) 2>&5
6529 ac_status=$?
6530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6531 test $ac_status = 0; }; then
6532 case `/usr/bin/file conftest.$ac_objext` in
6533 *ELF-32*)
6534 HPUX_IA64_MODE="32"
6535 ;;
6536 *ELF-64*)
6537 HPUX_IA64_MODE="64"
6538 ;;
6539 esac
6540 fi
6541 rm -rf conftest*
6542 ;;
6543 *-*-irix6*)
6544 # Find out which ABI we are using.
6545 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6547 (eval $ac_compile) 2>&5
6548 ac_status=$?
6549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550 test $ac_status = 0; }; then
6551 if test "$lt_cv_prog_gnu_ld" = yes; then
6552 case `/usr/bin/file conftest.$ac_objext` in
6553 *32-bit*)
6554 LD="${LD-ld} -melf32bsmip"
6555 ;;
6556 *N32*)
6557 LD="${LD-ld} -melf32bmipn32"
6558 ;;
6559 *64-bit*)
6560 LD="${LD-ld} -melf64bmip"
6561 ;;
6562 esac
6563 else
6564 case `/usr/bin/file conftest.$ac_objext` in
6565 *32-bit*)
6566 LD="${LD-ld} -32"
6567 ;;
6568 *N32*)
6569 LD="${LD-ld} -n32"
6570 ;;
6571 *64-bit*)
6572 LD="${LD-ld} -64"
6573 ;;
6574 esac
6575 fi
6576 fi
6577 rm -rf conftest*
6578 ;;
6579
6580 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6581 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6582 # Find out which ABI we are using.
6583 echo 'int i;' > conftest.$ac_ext
6584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6585 (eval $ac_compile) 2>&5
6586 ac_status=$?
6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588 test $ac_status = 0; }; then
6589 case `/usr/bin/file conftest.o` in
6590 *32-bit*)
6591 case $host in
6592 x86_64-*kfreebsd*-gnu)
6593 LD="${LD-ld} -m elf_i386_fbsd"
6594 ;;
6595 x86_64-*linux*)
6596 case `/usr/bin/file conftest.o` in
6597 *x86-64*)
6598 LD="${LD-ld} -m elf32_x86_64"
6599 ;;
6600 *)
6601 LD="${LD-ld} -m elf_i386"
6602 ;;
6603 esac
6604 ;;
6605 powerpc64le-*linux*)
6606 LD="${LD-ld} -m elf32lppclinux"
6607 ;;
6608 powerpc64-*linux*)
6609 LD="${LD-ld} -m elf32ppclinux"
6610 ;;
6611 s390x-*linux*)
6612 LD="${LD-ld} -m elf_s390"
6613 ;;
6614 sparc64-*linux*)
6615 LD="${LD-ld} -m elf32_sparc"
6616 ;;
6617 esac
6618 ;;
6619 *64-bit*)
6620 case $host in
6621 x86_64-*kfreebsd*-gnu)
6622 LD="${LD-ld} -m elf_x86_64_fbsd"
6623 ;;
6624 x86_64-*linux*)
6625 LD="${LD-ld} -m elf_x86_64"
6626 ;;
6627 powerpcle-*linux*)
6628 LD="${LD-ld} -m elf64lppc"
6629 ;;
6630 powerpc-*linux*)
6631 LD="${LD-ld} -m elf64ppc"
6632 ;;
6633 s390*-*linux*|s390*-*tpf*)
6634 LD="${LD-ld} -m elf64_s390"
6635 ;;
6636 sparc*-*linux*)
6637 LD="${LD-ld} -m elf64_sparc"
6638 ;;
6639 esac
6640 ;;
6641 esac
6642 fi
6643 rm -rf conftest*
6644 ;;
6645
6646 *-*-sco3.2v5*)
6647 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6648 SAVE_CFLAGS="$CFLAGS"
6649 CFLAGS="$CFLAGS -belf"
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6651 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6652 if ${lt_cv_cc_needs_belf+:} false; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 ac_ext=c
6656 ac_cpp='$CPP $CPPFLAGS'
6657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6660
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663
6664 int
6665 main ()
6666 {
6667
6668 ;
6669 return 0;
6670 }
6671 _ACEOF
6672 if ac_fn_c_try_link "$LINENO"; then :
6673 lt_cv_cc_needs_belf=yes
6674 else
6675 lt_cv_cc_needs_belf=no
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext \
6678 conftest$ac_exeext conftest.$ac_ext
6679 ac_ext=c
6680 ac_cpp='$CPP $CPPFLAGS'
6681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6684
6685 fi
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6687 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6688 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6689 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6690 CFLAGS="$SAVE_CFLAGS"
6691 fi
6692 ;;
6693 sparc*-*solaris*)
6694 # Find out which ABI we are using.
6695 echo 'int i;' > conftest.$ac_ext
6696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6697 (eval $ac_compile) 2>&5
6698 ac_status=$?
6699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6700 test $ac_status = 0; }; then
6701 case `/usr/bin/file conftest.o` in
6702 *64-bit*)
6703 case $lt_cv_prog_gnu_ld in
6704 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6705 *)
6706 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6707 LD="${LD-ld} -64"
6708 fi
6709 ;;
6710 esac
6711 ;;
6712 esac
6713 fi
6714 rm -rf conftest*
6715 ;;
6716 esac
6717
6718 need_locks="$enable_libtool_lock"
6719
6720
6721 case $host_os in
6722 rhapsody* | darwin*)
6723 if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6725 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 if test -n "$DSYMUTIL"; then
6732 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6733 else
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6736 do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745 done
6746 done
6747 IFS=$as_save_IFS
6748
6749 fi
6750 fi
6751 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6752 if test -n "$DSYMUTIL"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6754 $as_echo "$DSYMUTIL" >&6; }
6755 else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6758 fi
6759
6760
6761 fi
6762 if test -z "$ac_cv_prog_DSYMUTIL"; then
6763 ac_ct_DSYMUTIL=$DSYMUTIL
6764 # Extract the first word of "dsymutil", so it can be a program name with args.
6765 set dummy dsymutil; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 if test -n "$ac_ct_DSYMUTIL"; then
6772 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6781 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6784 fi
6785 done
6786 done
6787 IFS=$as_save_IFS
6788
6789 fi
6790 fi
6791 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6792 if test -n "$ac_ct_DSYMUTIL"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6794 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6798 fi
6799
6800 if test "x$ac_ct_DSYMUTIL" = x; then
6801 DSYMUTIL=":"
6802 else
6803 case $cross_compiling:$ac_tool_warned in
6804 yes:)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned=yes ;;
6808 esac
6809 DSYMUTIL=$ac_ct_DSYMUTIL
6810 fi
6811 else
6812 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6813 fi
6814
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if ${ac_cv_prog_NMEDIT+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 if test -n "$NMEDIT"; then
6824 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837 done
6838 done
6839 IFS=$as_save_IFS
6840
6841 fi
6842 fi
6843 NMEDIT=$ac_cv_prog_NMEDIT
6844 if test -n "$NMEDIT"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6846 $as_echo "$NMEDIT" >&6; }
6847 else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6850 fi
6851
6852
6853 fi
6854 if test -z "$ac_cv_prog_NMEDIT"; then
6855 ac_ct_NMEDIT=$NMEDIT
6856 # Extract the first word of "nmedit", so it can be a program name with args.
6857 set dummy nmedit; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 if test -n "$ac_ct_NMEDIT"; then
6864 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877 done
6878 done
6879 IFS=$as_save_IFS
6880
6881 fi
6882 fi
6883 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6884 if test -n "$ac_ct_NMEDIT"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6886 $as_echo "$ac_ct_NMEDIT" >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6890 fi
6891
6892 if test "x$ac_ct_NMEDIT" = x; then
6893 NMEDIT=":"
6894 else
6895 case $cross_compiling:$ac_tool_warned in
6896 yes:)
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899 ac_tool_warned=yes ;;
6900 esac
6901 NMEDIT=$ac_ct_NMEDIT
6902 fi
6903 else
6904 NMEDIT="$ac_cv_prog_NMEDIT"
6905 fi
6906
6907 if test -n "$ac_tool_prefix"; then
6908 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6909 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if ${ac_cv_prog_LIPO+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 if test -n "$LIPO"; then
6916 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6925 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6928 fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933 fi
6934 fi
6935 LIPO=$ac_cv_prog_LIPO
6936 if test -n "$LIPO"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6938 $as_echo "$LIPO" >&6; }
6939 else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6942 fi
6943
6944
6945 fi
6946 if test -z "$ac_cv_prog_LIPO"; then
6947 ac_ct_LIPO=$LIPO
6948 # Extract the first word of "lipo", so it can be a program name with args.
6949 set dummy lipo; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 if test -n "$ac_ct_LIPO"; then
6956 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6957 else
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6965 ac_cv_prog_ac_ct_LIPO="lipo"
6966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6968 fi
6969 done
6970 done
6971 IFS=$as_save_IFS
6972
6973 fi
6974 fi
6975 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6976 if test -n "$ac_ct_LIPO"; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6978 $as_echo "$ac_ct_LIPO" >&6; }
6979 else
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 $as_echo "no" >&6; }
6982 fi
6983
6984 if test "x$ac_ct_LIPO" = x; then
6985 LIPO=":"
6986 else
6987 case $cross_compiling:$ac_tool_warned in
6988 yes:)
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991 ac_tool_warned=yes ;;
6992 esac
6993 LIPO=$ac_ct_LIPO
6994 fi
6995 else
6996 LIPO="$ac_cv_prog_LIPO"
6997 fi
6998
6999 if test -n "$ac_tool_prefix"; then
7000 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7001 set dummy ${ac_tool_prefix}otool; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_prog_OTOOL+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 if test -n "$OTOOL"; then
7008 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7012 do
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7020 fi
7021 done
7022 done
7023 IFS=$as_save_IFS
7024
7025 fi
7026 fi
7027 OTOOL=$ac_cv_prog_OTOOL
7028 if test -n "$OTOOL"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7030 $as_echo "$OTOOL" >&6; }
7031 else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7034 fi
7035
7036
7037 fi
7038 if test -z "$ac_cv_prog_OTOOL"; then
7039 ac_ct_OTOOL=$OTOOL
7040 # Extract the first word of "otool", so it can be a program name with args.
7041 set dummy otool; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043 $as_echo_n "checking for $ac_word... " >&6; }
7044 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 if test -n "$ac_ct_OTOOL"; then
7048 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7049 else
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7052 do
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057 ac_cv_prog_ac_ct_OTOOL="otool"
7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7060 fi
7061 done
7062 done
7063 IFS=$as_save_IFS
7064
7065 fi
7066 fi
7067 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7068 if test -n "$ac_ct_OTOOL"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7070 $as_echo "$ac_ct_OTOOL" >&6; }
7071 else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7074 fi
7075
7076 if test "x$ac_ct_OTOOL" = x; then
7077 OTOOL=":"
7078 else
7079 case $cross_compiling:$ac_tool_warned in
7080 yes:)
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083 ac_tool_warned=yes ;;
7084 esac
7085 OTOOL=$ac_ct_OTOOL
7086 fi
7087 else
7088 OTOOL="$ac_cv_prog_OTOOL"
7089 fi
7090
7091 if test -n "$ac_tool_prefix"; then
7092 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7093 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if ${ac_cv_prog_OTOOL64+:} false; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 if test -n "$OTOOL64"; then
7100 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 break 2
7112 fi
7113 done
7114 done
7115 IFS=$as_save_IFS
7116
7117 fi
7118 fi
7119 OTOOL64=$ac_cv_prog_OTOOL64
7120 if test -n "$OTOOL64"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7122 $as_echo "$OTOOL64" >&6; }
7123 else
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7126 fi
7127
7128
7129 fi
7130 if test -z "$ac_cv_prog_OTOOL64"; then
7131 ac_ct_OTOOL64=$OTOOL64
7132 # Extract the first word of "otool64", so it can be a program name with args.
7133 set dummy otool64; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 if test -n "$ac_ct_OTOOL64"; then
7140 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149 ac_cv_prog_ac_ct_OTOOL64="otool64"
7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 break 2
7152 fi
7153 done
7154 done
7155 IFS=$as_save_IFS
7156
7157 fi
7158 fi
7159 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7160 if test -n "$ac_ct_OTOOL64"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7162 $as_echo "$ac_ct_OTOOL64" >&6; }
7163 else
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7166 fi
7167
7168 if test "x$ac_ct_OTOOL64" = x; then
7169 OTOOL64=":"
7170 else
7171 case $cross_compiling:$ac_tool_warned in
7172 yes:)
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7175 ac_tool_warned=yes ;;
7176 esac
7177 OTOOL64=$ac_ct_OTOOL64
7178 fi
7179 else
7180 OTOOL64="$ac_cv_prog_OTOOL64"
7181 fi
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7210 $as_echo_n "checking for -single_module linker flag... " >&6; }
7211 if ${lt_cv_apple_cc_single_mod+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 lt_cv_apple_cc_single_mod=no
7215 if test -z "${LT_MULTI_MODULE}"; then
7216 # By default we will add the -single_module flag. You can override
7217 # by either setting the environment variable LT_MULTI_MODULE
7218 # non-empty at configure time, or by adding -multi_module to the
7219 # link flags.
7220 rm -rf libconftest.dylib*
7221 echo "int foo(void){return 1;}" > conftest.c
7222 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7223 -dynamiclib -Wl,-single_module conftest.c" >&5
7224 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7225 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7226 _lt_result=$?
7227 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7228 lt_cv_apple_cc_single_mod=yes
7229 else
7230 cat conftest.err >&5
7231 fi
7232 rm -rf libconftest.dylib*
7233 rm -f conftest.*
7234 fi
7235 fi
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7237 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7239 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7240 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 lt_cv_ld_exported_symbols_list=no
7244 save_LDFLAGS=$LDFLAGS
7245 echo "_main" > conftest.sym
7246 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249
7250 int
7251 main ()
7252 {
7253
7254 ;
7255 return 0;
7256 }
7257 _ACEOF
7258 if ac_fn_c_try_link "$LINENO"; then :
7259 lt_cv_ld_exported_symbols_list=yes
7260 else
7261 lt_cv_ld_exported_symbols_list=no
7262 fi
7263 rm -f core conftest.err conftest.$ac_objext \
7264 conftest$ac_exeext conftest.$ac_ext
7265 LDFLAGS="$save_LDFLAGS"
7266
7267 fi
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7269 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7271 $as_echo_n "checking for -force_load linker flag... " >&6; }
7272 if ${lt_cv_ld_force_load+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 lt_cv_ld_force_load=no
7276 cat > conftest.c << _LT_EOF
7277 int forced_loaded() { return 2;}
7278 _LT_EOF
7279 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7280 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7281 echo "$AR cru libconftest.a conftest.o" >&5
7282 $AR cru libconftest.a conftest.o 2>&5
7283 cat > conftest.c << _LT_EOF
7284 int main() { return 0;}
7285 _LT_EOF
7286 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7287 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7288 _lt_result=$?
7289 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7290 lt_cv_ld_force_load=yes
7291 else
7292 cat conftest.err >&5
7293 fi
7294 rm -f conftest.err libconftest.a conftest conftest.c
7295 rm -rf conftest.dSYM
7296
7297 fi
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7299 $as_echo "$lt_cv_ld_force_load" >&6; }
7300 case $host_os in
7301 rhapsody* | darwin1.[012])
7302 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7303 darwin1.*)
7304 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7305 darwin*) # darwin 5.x on
7306 # if running on 10.5 or later, the deployment target defaults
7307 # to the OS version, if on x86, and 10.4, the deployment
7308 # target defaults to 10.4. Don't you love it?
7309 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7310 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7311 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7312 10.[012][,.]*)
7313 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7314 10.*)
7315 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7316 esac
7317 ;;
7318 esac
7319 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7320 _lt_dar_single_mod='$single_module'
7321 fi
7322 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7323 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7324 else
7325 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7326 fi
7327 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7328 _lt_dsymutil='~$DSYMUTIL $lib || :'
7329 else
7330 _lt_dsymutil=
7331 fi
7332 ;;
7333 esac
7334
7335 for ac_header in dlfcn.h
7336 do :
7337 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7338 "
7339 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7340 cat >>confdefs.h <<_ACEOF
7341 #define HAVE_DLFCN_H 1
7342 _ACEOF
7343
7344 fi
7345
7346 done
7347
7348
7349
7350
7351
7352 # Set options
7353
7354
7355
7356 enable_dlopen=no
7357
7358
7359 enable_win32_dll=no
7360
7361
7362 # Check whether --enable-shared was given.
7363 if test "${enable_shared+set}" = set; then :
7364 enableval=$enable_shared; p=${PACKAGE-default}
7365 case $enableval in
7366 yes) enable_shared=yes ;;
7367 no) enable_shared=no ;;
7368 *)
7369 enable_shared=no
7370 # Look at the argument we got. We use all the common list separators.
7371 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7372 for pkg in $enableval; do
7373 IFS="$lt_save_ifs"
7374 if test "X$pkg" = "X$p"; then
7375 enable_shared=yes
7376 fi
7377 done
7378 IFS="$lt_save_ifs"
7379 ;;
7380 esac
7381 else
7382 enable_shared=yes
7383 fi
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393 # Check whether --enable-static was given.
7394 if test "${enable_static+set}" = set; then :
7395 enableval=$enable_static; p=${PACKAGE-default}
7396 case $enableval in
7397 yes) enable_static=yes ;;
7398 no) enable_static=no ;;
7399 *)
7400 enable_static=no
7401 # Look at the argument we got. We use all the common list separators.
7402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7403 for pkg in $enableval; do
7404 IFS="$lt_save_ifs"
7405 if test "X$pkg" = "X$p"; then
7406 enable_static=yes
7407 fi
7408 done
7409 IFS="$lt_save_ifs"
7410 ;;
7411 esac
7412 else
7413 enable_static=yes
7414 fi
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425 # Check whether --with-pic was given.
7426 if test "${with_pic+set}" = set; then :
7427 withval=$with_pic; pic_mode="$withval"
7428 else
7429 pic_mode=default
7430 fi
7431
7432
7433 test -z "$pic_mode" && pic_mode=default
7434
7435
7436
7437
7438
7439
7440
7441 # Check whether --enable-fast-install was given.
7442 if test "${enable_fast_install+set}" = set; then :
7443 enableval=$enable_fast_install; p=${PACKAGE-default}
7444 case $enableval in
7445 yes) enable_fast_install=yes ;;
7446 no) enable_fast_install=no ;;
7447 *)
7448 enable_fast_install=no
7449 # Look at the argument we got. We use all the common list separators.
7450 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7451 for pkg in $enableval; do
7452 IFS="$lt_save_ifs"
7453 if test "X$pkg" = "X$p"; then
7454 enable_fast_install=yes
7455 fi
7456 done
7457 IFS="$lt_save_ifs"
7458 ;;
7459 esac
7460 else
7461 enable_fast_install=yes
7462 fi
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474 # This can be used to rebuild libtool when needed
7475 LIBTOOL_DEPS="$ltmain"
7476
7477 # Always use our own libtool.
7478 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505 test -z "$LN_S" && LN_S="ln -s"
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520 if test -n "${ZSH_VERSION+set}" ; then
7521 setopt NO_GLOB_SUBST
7522 fi
7523
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7525 $as_echo_n "checking for objdir... " >&6; }
7526 if ${lt_cv_objdir+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 rm -f .libs 2>/dev/null
7530 mkdir .libs 2>/dev/null
7531 if test -d .libs; then
7532 lt_cv_objdir=.libs
7533 else
7534 # MS-DOS does not allow filenames that begin with a dot.
7535 lt_cv_objdir=_libs
7536 fi
7537 rmdir .libs 2>/dev/null
7538 fi
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7540 $as_echo "$lt_cv_objdir" >&6; }
7541 objdir=$lt_cv_objdir
7542
7543
7544
7545
7546
7547 cat >>confdefs.h <<_ACEOF
7548 #define LT_OBJDIR "$lt_cv_objdir/"
7549 _ACEOF
7550
7551
7552
7553
7554 case $host_os in
7555 aix3*)
7556 # AIX sometimes has problems with the GCC collect2 program. For some
7557 # reason, if we set the COLLECT_NAMES environment variable, the problems
7558 # vanish in a puff of smoke.
7559 if test "X${COLLECT_NAMES+set}" != Xset; then
7560 COLLECT_NAMES=
7561 export COLLECT_NAMES
7562 fi
7563 ;;
7564 esac
7565
7566 # Global variables:
7567 ofile=libtool
7568 can_build_shared=yes
7569
7570 # All known linkers require a `.a' archive for static linking (except MSVC,
7571 # which needs '.lib').
7572 libext=a
7573
7574 with_gnu_ld="$lt_cv_prog_gnu_ld"
7575
7576 old_CC="$CC"
7577 old_CFLAGS="$CFLAGS"
7578
7579 # Set sane defaults for various variables
7580 test -z "$CC" && CC=cc
7581 test -z "$LTCC" && LTCC=$CC
7582 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7583 test -z "$LD" && LD=ld
7584 test -z "$ac_objext" && ac_objext=o
7585
7586 for cc_temp in $compiler""; do
7587 case $cc_temp in
7588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7590 \-*) ;;
7591 *) break;;
7592 esac
7593 done
7594 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7595
7596
7597 # Only perform the check for file, if the check method requires it
7598 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7599 case $deplibs_check_method in
7600 file_magic*)
7601 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7603 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7604 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607 case $MAGIC_CMD in
7608 [\\/*] | ?:[\\/]*)
7609 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7610 ;;
7611 *)
7612 lt_save_MAGIC_CMD="$MAGIC_CMD"
7613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7614 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7615 for ac_dir in $ac_dummy; do
7616 IFS="$lt_save_ifs"
7617 test -z "$ac_dir" && ac_dir=.
7618 if test -f $ac_dir/${ac_tool_prefix}file; then
7619 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7620 if test -n "$file_magic_test_file"; then
7621 case $deplibs_check_method in
7622 "file_magic "*)
7623 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7625 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7626 $EGREP "$file_magic_regex" > /dev/null; then
7627 :
7628 else
7629 cat <<_LT_EOF 1>&2
7630
7631 *** Warning: the command libtool uses to detect shared libraries,
7632 *** $file_magic_cmd, produces output that libtool cannot recognize.
7633 *** The result is that libtool may fail to recognize shared libraries
7634 *** as such. This will affect the creation of libtool libraries that
7635 *** depend on shared libraries, but programs linked with such libtool
7636 *** libraries will work regardless of this problem. Nevertheless, you
7637 *** may want to report the problem to your system manager and/or to
7638 *** bug-libtool@gnu.org
7639
7640 _LT_EOF
7641 fi ;;
7642 esac
7643 fi
7644 break
7645 fi
7646 done
7647 IFS="$lt_save_ifs"
7648 MAGIC_CMD="$lt_save_MAGIC_CMD"
7649 ;;
7650 esac
7651 fi
7652
7653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7654 if test -n "$MAGIC_CMD"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7656 $as_echo "$MAGIC_CMD" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7660 fi
7661
7662
7663
7664
7665
7666 if test -z "$lt_cv_path_MAGIC_CMD"; then
7667 if test -n "$ac_tool_prefix"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7669 $as_echo_n "checking for file... " >&6; }
7670 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673 case $MAGIC_CMD in
7674 [\\/*] | ?:[\\/]*)
7675 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7676 ;;
7677 *)
7678 lt_save_MAGIC_CMD="$MAGIC_CMD"
7679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7680 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7681 for ac_dir in $ac_dummy; do
7682 IFS="$lt_save_ifs"
7683 test -z "$ac_dir" && ac_dir=.
7684 if test -f $ac_dir/file; then
7685 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7686 if test -n "$file_magic_test_file"; then
7687 case $deplibs_check_method in
7688 "file_magic "*)
7689 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7690 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7691 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7692 $EGREP "$file_magic_regex" > /dev/null; then
7693 :
7694 else
7695 cat <<_LT_EOF 1>&2
7696
7697 *** Warning: the command libtool uses to detect shared libraries,
7698 *** $file_magic_cmd, produces output that libtool cannot recognize.
7699 *** The result is that libtool may fail to recognize shared libraries
7700 *** as such. This will affect the creation of libtool libraries that
7701 *** depend on shared libraries, but programs linked with such libtool
7702 *** libraries will work regardless of this problem. Nevertheless, you
7703 *** may want to report the problem to your system manager and/or to
7704 *** bug-libtool@gnu.org
7705
7706 _LT_EOF
7707 fi ;;
7708 esac
7709 fi
7710 break
7711 fi
7712 done
7713 IFS="$lt_save_ifs"
7714 MAGIC_CMD="$lt_save_MAGIC_CMD"
7715 ;;
7716 esac
7717 fi
7718
7719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720 if test -n "$MAGIC_CMD"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7722 $as_echo "$MAGIC_CMD" >&6; }
7723 else
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728
7729 else
7730 MAGIC_CMD=:
7731 fi
7732 fi
7733
7734 fi
7735 ;;
7736 esac
7737
7738 # Use C for the default configuration in the libtool script
7739
7740 lt_save_CC="$CC"
7741 ac_ext=c
7742 ac_cpp='$CPP $CPPFLAGS'
7743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7746
7747
7748 # Source file extension for C test sources.
7749 ac_ext=c
7750
7751 # Object file extension for compiled C test sources.
7752 objext=o
7753 objext=$objext
7754
7755 # Code to be used in simple compile tests
7756 lt_simple_compile_test_code="int some_variable = 0;"
7757
7758 # Code to be used in simple link tests
7759 lt_simple_link_test_code='int main(){return(0);}'
7760
7761
7762
7763
7764
7765
7766
7767 # If no C compiler was specified, use CC.
7768 LTCC=${LTCC-"$CC"}
7769
7770 # If no C compiler flags were specified, use CFLAGS.
7771 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7772
7773 # Allow CC to be a program name with arguments.
7774 compiler=$CC
7775
7776 # Save the default compiler, since it gets overwritten when the other
7777 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7778 compiler_DEFAULT=$CC
7779
7780 # save warnings/boilerplate of simple test code
7781 ac_outfile=conftest.$ac_objext
7782 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7783 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7784 _lt_compiler_boilerplate=`cat conftest.err`
7785 $RM conftest*
7786
7787 ac_outfile=conftest.$ac_objext
7788 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7789 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7790 _lt_linker_boilerplate=`cat conftest.err`
7791 $RM -r conftest*
7792
7793
7794 ## CAVEAT EMPTOR:
7795 ## There is no encapsulation within the following macros, do not change
7796 ## the running order or otherwise move them around unless you know exactly
7797 ## what you are doing...
7798 if test -n "$compiler"; then
7799
7800 lt_prog_compiler_no_builtin_flag=
7801
7802 if test "$GCC" = yes; then
7803 case $cc_basename in
7804 nvcc*)
7805 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7806 *)
7807 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7808 esac
7809
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7811 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7812 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 lt_cv_prog_compiler_rtti_exceptions=no
7816 ac_outfile=conftest.$ac_objext
7817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7818 lt_compiler_flag="-fno-rtti -fno-exceptions"
7819 # Insert the option either (1) after the last *FLAGS variable, or
7820 # (2) before a word containing "conftest.", or (3) at the end.
7821 # Note that $ac_compile itself does not contain backslashes and begins
7822 # with a dollar sign (not a hyphen), so the echo should work correctly.
7823 # The option is referenced via a variable to avoid confusing sed.
7824 lt_compile=`echo "$ac_compile" | $SED \
7825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7827 -e 's:$: $lt_compiler_flag:'`
7828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7829 (eval "$lt_compile" 2>conftest.err)
7830 ac_status=$?
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 if (exit $ac_status) && test -s "$ac_outfile"; then
7834 # The compiler can only warn and ignore the option if not recognized
7835 # So say no if there are warnings other than the usual output.
7836 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7839 lt_cv_prog_compiler_rtti_exceptions=yes
7840 fi
7841 fi
7842 $RM conftest*
7843
7844 fi
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7846 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7847
7848 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7849 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7850 else
7851 :
7852 fi
7853
7854 fi
7855
7856
7857
7858
7859
7860
7861 lt_prog_compiler_wl=
7862 lt_prog_compiler_pic=
7863 lt_prog_compiler_static=
7864
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7866 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7867
7868 if test "$GCC" = yes; then
7869 lt_prog_compiler_wl='-Wl,'
7870 lt_prog_compiler_static='-static'
7871
7872 case $host_os in
7873 aix*)
7874 # All AIX code is PIC.
7875 if test "$host_cpu" = ia64; then
7876 # AIX 5 now supports IA64 processor
7877 lt_prog_compiler_static='-Bstatic'
7878 fi
7879 lt_prog_compiler_pic='-fPIC'
7880 ;;
7881
7882 amigaos*)
7883 case $host_cpu in
7884 powerpc)
7885 # see comment about AmigaOS4 .so support
7886 lt_prog_compiler_pic='-fPIC'
7887 ;;
7888 m68k)
7889 # FIXME: we need at least 68020 code to build shared libraries, but
7890 # adding the `-m68020' flag to GCC prevents building anything better,
7891 # like `-m68040'.
7892 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7893 ;;
7894 esac
7895 ;;
7896
7897 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7898 # PIC is the default for these OSes.
7899 ;;
7900
7901 mingw* | cygwin* | pw32* | os2* | cegcc*)
7902 # This hack is so that the source file can tell whether it is being
7903 # built for inclusion in a dll (and should export symbols for example).
7904 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7905 # (--disable-auto-import) libraries
7906 lt_prog_compiler_pic='-DDLL_EXPORT'
7907 ;;
7908
7909 darwin* | rhapsody*)
7910 # PIC is the default on this platform
7911 # Common symbols not allowed in MH_DYLIB files
7912 lt_prog_compiler_pic='-fno-common'
7913 ;;
7914
7915 haiku*)
7916 # PIC is the default for Haiku.
7917 # The "-static" flag exists, but is broken.
7918 lt_prog_compiler_static=
7919 ;;
7920
7921 hpux*)
7922 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7923 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7924 # sets the default TLS model and affects inlining.
7925 case $host_cpu in
7926 hppa*64*)
7927 # +Z the default
7928 ;;
7929 *)
7930 lt_prog_compiler_pic='-fPIC'
7931 ;;
7932 esac
7933 ;;
7934
7935 interix[3-9]*)
7936 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7937 # Instead, we relocate shared libraries at runtime.
7938 ;;
7939
7940 msdosdjgpp*)
7941 # Just because we use GCC doesn't mean we suddenly get shared libraries
7942 # on systems that don't support them.
7943 lt_prog_compiler_can_build_shared=no
7944 enable_shared=no
7945 ;;
7946
7947 *nto* | *qnx*)
7948 # QNX uses GNU C++, but need to define -shared option too, otherwise
7949 # it will coredump.
7950 lt_prog_compiler_pic='-fPIC -shared'
7951 ;;
7952
7953 sysv4*MP*)
7954 if test -d /usr/nec; then
7955 lt_prog_compiler_pic=-Kconform_pic
7956 fi
7957 ;;
7958
7959 *)
7960 lt_prog_compiler_pic='-fPIC'
7961 ;;
7962 esac
7963
7964 case $cc_basename in
7965 nvcc*) # Cuda Compiler Driver 2.2
7966 lt_prog_compiler_wl='-Xlinker '
7967 lt_prog_compiler_pic='-Xcompiler -fPIC'
7968 ;;
7969 esac
7970 else
7971 # PORTME Check for flag to pass linker flags through the system compiler.
7972 case $host_os in
7973 aix*)
7974 lt_prog_compiler_wl='-Wl,'
7975 if test "$host_cpu" = ia64; then
7976 # AIX 5 now supports IA64 processor
7977 lt_prog_compiler_static='-Bstatic'
7978 else
7979 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7980 fi
7981 ;;
7982
7983 mingw* | cygwin* | pw32* | os2* | cegcc*)
7984 # This hack is so that the source file can tell whether it is being
7985 # built for inclusion in a dll (and should export symbols for example).
7986 lt_prog_compiler_pic='-DDLL_EXPORT'
7987 ;;
7988
7989 hpux9* | hpux10* | hpux11*)
7990 lt_prog_compiler_wl='-Wl,'
7991 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7992 # not for PA HP-UX.
7993 case $host_cpu in
7994 hppa*64*|ia64*)
7995 # +Z the default
7996 ;;
7997 *)
7998 lt_prog_compiler_pic='+Z'
7999 ;;
8000 esac
8001 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8002 lt_prog_compiler_static='${wl}-a ${wl}archive'
8003 ;;
8004
8005 irix5* | irix6* | nonstopux*)
8006 lt_prog_compiler_wl='-Wl,'
8007 # PIC (with -KPIC) is the default.
8008 lt_prog_compiler_static='-non_shared'
8009 ;;
8010
8011 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8012 case $cc_basename in
8013 # old Intel for x86_64 which still supported -KPIC.
8014 ecc*)
8015 lt_prog_compiler_wl='-Wl,'
8016 lt_prog_compiler_pic='-KPIC'
8017 lt_prog_compiler_static='-static'
8018 ;;
8019 # icc used to be incompatible with GCC.
8020 # ICC 10 doesn't accept -KPIC any more.
8021 icc* | ifort*)
8022 lt_prog_compiler_wl='-Wl,'
8023 lt_prog_compiler_pic='-fPIC'
8024 lt_prog_compiler_static='-static'
8025 ;;
8026 # Lahey Fortran 8.1.
8027 lf95*)
8028 lt_prog_compiler_wl='-Wl,'
8029 lt_prog_compiler_pic='--shared'
8030 lt_prog_compiler_static='--static'
8031 ;;
8032 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8033 # Portland Group compilers (*not* the Pentium gcc compiler,
8034 # which looks to be a dead project)
8035 lt_prog_compiler_wl='-Wl,'
8036 lt_prog_compiler_pic='-fpic'
8037 lt_prog_compiler_static='-Bstatic'
8038 ;;
8039 ccc*)
8040 lt_prog_compiler_wl='-Wl,'
8041 # All Alpha code is PIC.
8042 lt_prog_compiler_static='-non_shared'
8043 ;;
8044 xl* | bgxl* | bgf* | mpixl*)
8045 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8046 lt_prog_compiler_wl='-Wl,'
8047 lt_prog_compiler_pic='-qpic'
8048 lt_prog_compiler_static='-qstaticlink'
8049 ;;
8050 *)
8051 case `$CC -V 2>&1 | sed 5q` in
8052 *Sun\ F* | *Sun*Fortran*)
8053 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8054 lt_prog_compiler_pic='-KPIC'
8055 lt_prog_compiler_static='-Bstatic'
8056 lt_prog_compiler_wl=''
8057 ;;
8058 *Sun\ C*)
8059 # Sun C 5.9
8060 lt_prog_compiler_pic='-KPIC'
8061 lt_prog_compiler_static='-Bstatic'
8062 lt_prog_compiler_wl='-Wl,'
8063 ;;
8064 esac
8065 ;;
8066 esac
8067 ;;
8068
8069 newsos6)
8070 lt_prog_compiler_pic='-KPIC'
8071 lt_prog_compiler_static='-Bstatic'
8072 ;;
8073
8074 *nto* | *qnx*)
8075 # QNX uses GNU C++, but need to define -shared option too, otherwise
8076 # it will coredump.
8077 lt_prog_compiler_pic='-fPIC -shared'
8078 ;;
8079
8080 osf3* | osf4* | osf5*)
8081 lt_prog_compiler_wl='-Wl,'
8082 # All OSF/1 code is PIC.
8083 lt_prog_compiler_static='-non_shared'
8084 ;;
8085
8086 rdos*)
8087 lt_prog_compiler_static='-non_shared'
8088 ;;
8089
8090 solaris*)
8091 lt_prog_compiler_pic='-KPIC'
8092 lt_prog_compiler_static='-Bstatic'
8093 case $cc_basename in
8094 f77* | f90* | f95*)
8095 lt_prog_compiler_wl='-Qoption ld ';;
8096 *)
8097 lt_prog_compiler_wl='-Wl,';;
8098 esac
8099 ;;
8100
8101 sunos4*)
8102 lt_prog_compiler_wl='-Qoption ld '
8103 lt_prog_compiler_pic='-PIC'
8104 lt_prog_compiler_static='-Bstatic'
8105 ;;
8106
8107 sysv4 | sysv4.2uw2* | sysv4.3*)
8108 lt_prog_compiler_wl='-Wl,'
8109 lt_prog_compiler_pic='-KPIC'
8110 lt_prog_compiler_static='-Bstatic'
8111 ;;
8112
8113 sysv4*MP*)
8114 if test -d /usr/nec ;then
8115 lt_prog_compiler_pic='-Kconform_pic'
8116 lt_prog_compiler_static='-Bstatic'
8117 fi
8118 ;;
8119
8120 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8121 lt_prog_compiler_wl='-Wl,'
8122 lt_prog_compiler_pic='-KPIC'
8123 lt_prog_compiler_static='-Bstatic'
8124 ;;
8125
8126 unicos*)
8127 lt_prog_compiler_wl='-Wl,'
8128 lt_prog_compiler_can_build_shared=no
8129 ;;
8130
8131 uts4*)
8132 lt_prog_compiler_pic='-pic'
8133 lt_prog_compiler_static='-Bstatic'
8134 ;;
8135
8136 *)
8137 lt_prog_compiler_can_build_shared=no
8138 ;;
8139 esac
8140 fi
8141
8142 case $host_os in
8143 # For platforms which do not support PIC, -DPIC is meaningless:
8144 *djgpp*)
8145 lt_prog_compiler_pic=
8146 ;;
8147 *)
8148 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8149 ;;
8150 esac
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8152 $as_echo "$lt_prog_compiler_pic" >&6; }
8153
8154
8155
8156
8157
8158
8159 #
8160 # Check to make sure the PIC flag actually works.
8161 #
8162 if test -n "$lt_prog_compiler_pic"; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8164 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8165 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 lt_cv_prog_compiler_pic_works=no
8169 ac_outfile=conftest.$ac_objext
8170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8171 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8172 # Insert the option either (1) after the last *FLAGS variable, or
8173 # (2) before a word containing "conftest.", or (3) at the end.
8174 # Note that $ac_compile itself does not contain backslashes and begins
8175 # with a dollar sign (not a hyphen), so the echo should work correctly.
8176 # The option is referenced via a variable to avoid confusing sed.
8177 lt_compile=`echo "$ac_compile" | $SED \
8178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8180 -e 's:$: $lt_compiler_flag:'`
8181 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8182 (eval "$lt_compile" 2>conftest.err)
8183 ac_status=$?
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 if (exit $ac_status) && test -s "$ac_outfile"; then
8187 # The compiler can only warn and ignore the option if not recognized
8188 # So say no if there are warnings other than the usual output.
8189 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8191 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8192 lt_cv_prog_compiler_pic_works=yes
8193 fi
8194 fi
8195 $RM conftest*
8196
8197 fi
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8199 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8200
8201 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8202 case $lt_prog_compiler_pic in
8203 "" | " "*) ;;
8204 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8205 esac
8206 else
8207 lt_prog_compiler_pic=
8208 lt_prog_compiler_can_build_shared=no
8209 fi
8210
8211 fi
8212
8213
8214
8215
8216
8217
8218 #
8219 # Check to make sure the static flag actually works.
8220 #
8221 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8223 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8224 if ${lt_cv_prog_compiler_static_works+:} false; then :
8225 $as_echo_n "(cached) " >&6
8226 else
8227 lt_cv_prog_compiler_static_works=no
8228 save_LDFLAGS="$LDFLAGS"
8229 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8230 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8231 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8232 # The linker can only warn and ignore the option if not recognized
8233 # So say no if there are warnings
8234 if test -s conftest.err; then
8235 # Append any errors to the config.log.
8236 cat conftest.err 1>&5
8237 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8239 if diff conftest.exp conftest.er2 >/dev/null; then
8240 lt_cv_prog_compiler_static_works=yes
8241 fi
8242 else
8243 lt_cv_prog_compiler_static_works=yes
8244 fi
8245 fi
8246 $RM -r conftest*
8247 LDFLAGS="$save_LDFLAGS"
8248
8249 fi
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8251 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8252
8253 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8254 :
8255 else
8256 lt_prog_compiler_static=
8257 fi
8258
8259
8260
8261
8262
8263
8264
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8266 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8267 if ${lt_cv_prog_compiler_c_o+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 lt_cv_prog_compiler_c_o=no
8271 $RM -r conftest 2>/dev/null
8272 mkdir conftest
8273 cd conftest
8274 mkdir out
8275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8276
8277 lt_compiler_flag="-o out/conftest2.$ac_objext"
8278 # Insert the option either (1) after the last *FLAGS variable, or
8279 # (2) before a word containing "conftest.", or (3) at the end.
8280 # Note that $ac_compile itself does not contain backslashes and begins
8281 # with a dollar sign (not a hyphen), so the echo should work correctly.
8282 lt_compile=`echo "$ac_compile" | $SED \
8283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8285 -e 's:$: $lt_compiler_flag:'`
8286 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8287 (eval "$lt_compile" 2>out/conftest.err)
8288 ac_status=$?
8289 cat out/conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8292 then
8293 # The compiler can only warn and ignore the option if not recognized
8294 # So say no if there are warnings
8295 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8296 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8297 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8298 lt_cv_prog_compiler_c_o=yes
8299 fi
8300 fi
8301 chmod u+w . 2>&5
8302 $RM conftest*
8303 # SGI C++ compiler will create directory out/ii_files/ for
8304 # template instantiation
8305 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8306 $RM out/* && rmdir out
8307 cd ..
8308 $RM -r conftest
8309 $RM conftest*
8310
8311 fi
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8313 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8314
8315
8316
8317
8318
8319
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8321 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8322 if ${lt_cv_prog_compiler_c_o+:} false; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 lt_cv_prog_compiler_c_o=no
8326 $RM -r conftest 2>/dev/null
8327 mkdir conftest
8328 cd conftest
8329 mkdir out
8330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8331
8332 lt_compiler_flag="-o out/conftest2.$ac_objext"
8333 # Insert the option either (1) after the last *FLAGS variable, or
8334 # (2) before a word containing "conftest.", or (3) at the end.
8335 # Note that $ac_compile itself does not contain backslashes and begins
8336 # with a dollar sign (not a hyphen), so the echo should work correctly.
8337 lt_compile=`echo "$ac_compile" | $SED \
8338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340 -e 's:$: $lt_compiler_flag:'`
8341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8342 (eval "$lt_compile" 2>out/conftest.err)
8343 ac_status=$?
8344 cat out/conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8347 then
8348 # The compiler can only warn and ignore the option if not recognized
8349 # So say no if there are warnings
8350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8351 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8352 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8353 lt_cv_prog_compiler_c_o=yes
8354 fi
8355 fi
8356 chmod u+w . 2>&5
8357 $RM conftest*
8358 # SGI C++ compiler will create directory out/ii_files/ for
8359 # template instantiation
8360 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8361 $RM out/* && rmdir out
8362 cd ..
8363 $RM -r conftest
8364 $RM conftest*
8365
8366 fi
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8368 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8369
8370
8371
8372
8373 hard_links="nottested"
8374 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8375 # do not overwrite the value of need_locks provided by the user
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8377 $as_echo_n "checking if we can lock with hard links... " >&6; }
8378 hard_links=yes
8379 $RM conftest*
8380 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8381 touch conftest.a
8382 ln conftest.a conftest.b 2>&5 || hard_links=no
8383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8385 $as_echo "$hard_links" >&6; }
8386 if test "$hard_links" = no; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8388 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8389 need_locks=warn
8390 fi
8391 else
8392 need_locks=no
8393 fi
8394
8395
8396
8397
8398
8399
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8401 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8402
8403 runpath_var=
8404 allow_undefined_flag=
8405 always_export_symbols=no
8406 archive_cmds=
8407 archive_expsym_cmds=
8408 compiler_needs_object=no
8409 enable_shared_with_static_runtimes=no
8410 export_dynamic_flag_spec=
8411 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8412 hardcode_automatic=no
8413 hardcode_direct=no
8414 hardcode_direct_absolute=no
8415 hardcode_libdir_flag_spec=
8416 hardcode_libdir_flag_spec_ld=
8417 hardcode_libdir_separator=
8418 hardcode_minus_L=no
8419 hardcode_shlibpath_var=unsupported
8420 inherit_rpath=no
8421 link_all_deplibs=unknown
8422 module_cmds=
8423 module_expsym_cmds=
8424 old_archive_from_new_cmds=
8425 old_archive_from_expsyms_cmds=
8426 thread_safe_flag_spec=
8427 whole_archive_flag_spec=
8428 # include_expsyms should be a list of space-separated symbols to be *always*
8429 # included in the symbol list
8430 include_expsyms=
8431 # exclude_expsyms can be an extended regexp of symbols to exclude
8432 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8433 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8434 # as well as any symbol that contains `d'.
8435 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8436 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8437 # platforms (ab)use it in PIC code, but their linkers get confused if
8438 # the symbol is explicitly referenced. Since portable code cannot
8439 # rely on this symbol name, it's probably fine to never include it in
8440 # preloaded symbol tables.
8441 # Exclude shared library initialization/finalization symbols.
8442 extract_expsyms_cmds=
8443
8444 case $host_os in
8445 cygwin* | mingw* | pw32* | cegcc*)
8446 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8447 # When not using gcc, we currently assume that we are using
8448 # Microsoft Visual C++.
8449 if test "$GCC" != yes; then
8450 with_gnu_ld=no
8451 fi
8452 ;;
8453 interix*)
8454 # we just hope/assume this is gcc and not c89 (= MSVC++)
8455 with_gnu_ld=yes
8456 ;;
8457 openbsd*)
8458 with_gnu_ld=no
8459 ;;
8460 esac
8461
8462 ld_shlibs=yes
8463
8464 # On some targets, GNU ld is compatible enough with the native linker
8465 # that we're better off using the native interface for both.
8466 lt_use_gnu_ld_interface=no
8467 if test "$with_gnu_ld" = yes; then
8468 case $host_os in
8469 aix*)
8470 # The AIX port of GNU ld has always aspired to compatibility
8471 # with the native linker. However, as the warning in the GNU ld
8472 # block says, versions before 2.19.5* couldn't really create working
8473 # shared libraries, regardless of the interface used.
8474 case `$LD -v 2>&1` in
8475 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8476 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8477 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8478 *)
8479 lt_use_gnu_ld_interface=yes
8480 ;;
8481 esac
8482 ;;
8483 *)
8484 lt_use_gnu_ld_interface=yes
8485 ;;
8486 esac
8487 fi
8488
8489 if test "$lt_use_gnu_ld_interface" = yes; then
8490 # If archive_cmds runs LD, not CC, wlarc should be empty
8491 wlarc='${wl}'
8492
8493 # Set some defaults for GNU ld with shared library support. These
8494 # are reset later if shared libraries are not supported. Putting them
8495 # here allows them to be overridden if necessary.
8496 runpath_var=LD_RUN_PATH
8497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8498 export_dynamic_flag_spec='${wl}--export-dynamic'
8499 # ancient GNU ld didn't support --whole-archive et. al.
8500 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8501 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8502 else
8503 whole_archive_flag_spec=
8504 fi
8505 supports_anon_versioning=no
8506 case `$LD -v 2>&1` in
8507 *GNU\ gold*) supports_anon_versioning=yes ;;
8508 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8509 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8510 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8511 *\ 2.11.*) ;; # other 2.11 versions
8512 *) supports_anon_versioning=yes ;;
8513 esac
8514
8515 # See if GNU ld supports shared libraries.
8516 case $host_os in
8517 aix[3-9]*)
8518 # On AIX/PPC, the GNU linker is very broken
8519 if test "$host_cpu" != ia64; then
8520 ld_shlibs=no
8521 cat <<_LT_EOF 1>&2
8522
8523 *** Warning: the GNU linker, at least up to release 2.19, is reported
8524 *** to be unable to reliably create shared libraries on AIX.
8525 *** Therefore, libtool is disabling shared libraries support. If you
8526 *** really care for shared libraries, you may want to install binutils
8527 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8528 *** You will then need to restart the configuration process.
8529
8530 _LT_EOF
8531 fi
8532 ;;
8533
8534 amigaos*)
8535 case $host_cpu in
8536 powerpc)
8537 # see comment about AmigaOS4 .so support
8538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8539 archive_expsym_cmds=''
8540 ;;
8541 m68k)
8542 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)'
8543 hardcode_libdir_flag_spec='-L$libdir'
8544 hardcode_minus_L=yes
8545 ;;
8546 esac
8547 ;;
8548
8549 beos*)
8550 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8551 allow_undefined_flag=unsupported
8552 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8553 # support --undefined. This deserves some investigation. FIXME
8554 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8555 else
8556 ld_shlibs=no
8557 fi
8558 ;;
8559
8560 cygwin* | mingw* | pw32* | cegcc*)
8561 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8562 # as there is no search path for DLLs.
8563 hardcode_libdir_flag_spec='-L$libdir'
8564 export_dynamic_flag_spec='${wl}--export-all-symbols'
8565 allow_undefined_flag=unsupported
8566 always_export_symbols=no
8567 enable_shared_with_static_runtimes=yes
8568 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8569
8570 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8572 # If the export-symbols file already is a .def file (1st line
8573 # is EXPORTS), use it as is; otherwise, prepend...
8574 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8575 cp $export_symbols $output_objdir/$soname.def;
8576 else
8577 echo EXPORTS > $output_objdir/$soname.def;
8578 cat $export_symbols >> $output_objdir/$soname.def;
8579 fi~
8580 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8581 else
8582 ld_shlibs=no
8583 fi
8584 ;;
8585
8586 haiku*)
8587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8588 link_all_deplibs=yes
8589 ;;
8590
8591 interix[3-9]*)
8592 hardcode_direct=no
8593 hardcode_shlibpath_var=no
8594 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8595 export_dynamic_flag_spec='${wl}-E'
8596 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8597 # Instead, shared libraries are loaded at an image base (0x10000000 by
8598 # default) and relocated if they conflict, which is a slow very memory
8599 # consuming and fragmenting process. To avoid this, we pick a random,
8600 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8601 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8602 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8603 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'
8604 ;;
8605
8606 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8607 tmp_diet=no
8608 if test "$host_os" = linux-dietlibc; then
8609 case $cc_basename in
8610 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8611 esac
8612 fi
8613 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8614 && test "$tmp_diet" = no
8615 then
8616 tmp_addflag=' $pic_flag'
8617 tmp_sharedflag='-shared'
8618 case $cc_basename,$host_cpu in
8619 pgcc*) # Portland Group C compiler
8620 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'
8621 tmp_addflag=' $pic_flag'
8622 ;;
8623 pgf77* | pgf90* | pgf95* | pgfortran*)
8624 # Portland Group f77 and f90 compilers
8625 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'
8626 tmp_addflag=' $pic_flag -Mnomain' ;;
8627 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8628 tmp_addflag=' -i_dynamic' ;;
8629 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8630 tmp_addflag=' -i_dynamic -nofor_main' ;;
8631 ifc* | ifort*) # Intel Fortran compiler
8632 tmp_addflag=' -nofor_main' ;;
8633 lf95*) # Lahey Fortran 8.1
8634 whole_archive_flag_spec=
8635 tmp_sharedflag='--shared' ;;
8636 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8637 tmp_sharedflag='-qmkshrobj'
8638 tmp_addflag= ;;
8639 nvcc*) # Cuda Compiler Driver 2.2
8640 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'
8641 compiler_needs_object=yes
8642 ;;
8643 esac
8644 case `$CC -V 2>&1 | sed 5q` in
8645 *Sun\ C*) # Sun C 5.9
8646 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'
8647 compiler_needs_object=yes
8648 tmp_sharedflag='-G' ;;
8649 *Sun\ F*) # Sun Fortran 8.3
8650 tmp_sharedflag='-G' ;;
8651 esac
8652 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8653
8654 if test "x$supports_anon_versioning" = xyes; then
8655 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8656 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8657 echo "local: *; };" >> $output_objdir/$libname.ver~
8658 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8659 fi
8660
8661 case $cc_basename in
8662 xlf* | bgf* | bgxlf* | mpixlf*)
8663 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8664 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8665 hardcode_libdir_flag_spec=
8666 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8667 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8668 if test "x$supports_anon_versioning" = xyes; then
8669 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8670 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8671 echo "local: *; };" >> $output_objdir/$libname.ver~
8672 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8673 fi
8674 ;;
8675 esac
8676 else
8677 ld_shlibs=no
8678 fi
8679 ;;
8680
8681 netbsd*)
8682 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8683 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8684 wlarc=
8685 else
8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8688 fi
8689 ;;
8690
8691 solaris*)
8692 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8693 ld_shlibs=no
8694 cat <<_LT_EOF 1>&2
8695
8696 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8697 *** create shared libraries on Solaris systems. Therefore, libtool
8698 *** is disabling shared libraries support. We urge you to upgrade GNU
8699 *** binutils to release 2.9.1 or newer. Another option is to modify
8700 *** your PATH or compiler configuration so that the native linker is
8701 *** used, and then restart.
8702
8703 _LT_EOF
8704 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8707 else
8708 ld_shlibs=no
8709 fi
8710 ;;
8711
8712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8713 case `$LD -v 2>&1` in
8714 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8715 ld_shlibs=no
8716 cat <<_LT_EOF 1>&2
8717
8718 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8719 *** reliably create shared libraries on SCO systems. Therefore, libtool
8720 *** is disabling shared libraries support. We urge you to upgrade GNU
8721 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8722 *** your PATH or compiler configuration so that the native linker is
8723 *** used, and then restart.
8724
8725 _LT_EOF
8726 ;;
8727 *)
8728 # For security reasons, it is highly recommended that you always
8729 # use absolute paths for naming shared libraries, and exclude the
8730 # DT_RUNPATH tag from executables and libraries. But doing so
8731 # requires that you compile everything twice, which is a pain.
8732 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8735 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8736 else
8737 ld_shlibs=no
8738 fi
8739 ;;
8740 esac
8741 ;;
8742
8743 sunos4*)
8744 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8745 wlarc=
8746 hardcode_direct=yes
8747 hardcode_shlibpath_var=no
8748 ;;
8749
8750 *)
8751 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8753 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8754 else
8755 ld_shlibs=no
8756 fi
8757 ;;
8758 esac
8759
8760 if test "$ld_shlibs" = no; then
8761 runpath_var=
8762 hardcode_libdir_flag_spec=
8763 export_dynamic_flag_spec=
8764 whole_archive_flag_spec=
8765 fi
8766 else
8767 # PORTME fill in a description of your system's linker (not GNU ld)
8768 case $host_os in
8769 aix3*)
8770 allow_undefined_flag=unsupported
8771 always_export_symbols=yes
8772 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'
8773 # Note: this linker hardcodes the directories in LIBPATH if there
8774 # are no directories specified by -L.
8775 hardcode_minus_L=yes
8776 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8777 # Neither direct hardcoding nor static linking is supported with a
8778 # broken collect2.
8779 hardcode_direct=unsupported
8780 fi
8781 ;;
8782
8783 aix[4-9]*)
8784 if test "$host_cpu" = ia64; then
8785 # On IA64, the linker does run time linking by default, so we don't
8786 # have to do anything special.
8787 aix_use_runtimelinking=no
8788 exp_sym_flag='-Bexport'
8789 no_entry_flag=""
8790 else
8791 # If we're using GNU nm, then we don't want the "-C" option.
8792 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8793 # Also, AIX nm treats weak defined symbols like other global
8794 # defined symbols, whereas GNU nm marks them as "W".
8795 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8796 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'
8797 else
8798 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'
8799 fi
8800 aix_use_runtimelinking=no
8801
8802 # Test if we are trying to use run time linking or normal
8803 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8804 # need to do runtime linking.
8805 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8806 for ld_flag in $LDFLAGS; do
8807 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8808 aix_use_runtimelinking=yes
8809 break
8810 fi
8811 done
8812 ;;
8813 esac
8814
8815 exp_sym_flag='-bexport'
8816 no_entry_flag='-bnoentry'
8817 fi
8818
8819 # When large executables or shared objects are built, AIX ld can
8820 # have problems creating the table of contents. If linking a library
8821 # or program results in "error TOC overflow" add -mminimal-toc to
8822 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8823 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8824
8825 archive_cmds=''
8826 hardcode_direct=yes
8827 hardcode_direct_absolute=yes
8828 hardcode_libdir_separator=':'
8829 link_all_deplibs=yes
8830 file_list_spec='${wl}-f,'
8831
8832 if test "$GCC" = yes; then
8833 case $host_os in aix4.[012]|aix4.[012].*)
8834 # We only want to do this on AIX 4.2 and lower, the check
8835 # below for broken collect2 doesn't work under 4.3+
8836 collect2name=`${CC} -print-prog-name=collect2`
8837 if test -f "$collect2name" &&
8838 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8839 then
8840 # We have reworked collect2
8841 :
8842 else
8843 # We have old collect2
8844 hardcode_direct=unsupported
8845 # It fails to find uninstalled libraries when the uninstalled
8846 # path is not listed in the libpath. Setting hardcode_minus_L
8847 # to unsupported forces relinking
8848 hardcode_minus_L=yes
8849 hardcode_libdir_flag_spec='-L$libdir'
8850 hardcode_libdir_separator=
8851 fi
8852 ;;
8853 esac
8854 shared_flag='-shared'
8855 if test "$aix_use_runtimelinking" = yes; then
8856 shared_flag="$shared_flag "'${wl}-G'
8857 fi
8858 else
8859 # not using gcc
8860 if test "$host_cpu" = ia64; then
8861 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8862 # chokes on -Wl,-G. The following line is correct:
8863 shared_flag='-G'
8864 else
8865 if test "$aix_use_runtimelinking" = yes; then
8866 shared_flag='${wl}-G'
8867 else
8868 shared_flag='${wl}-bM:SRE'
8869 fi
8870 fi
8871 fi
8872
8873 export_dynamic_flag_spec='${wl}-bexpall'
8874 # It seems that -bexpall does not export symbols beginning with
8875 # underscore (_), so it is better to generate a list of symbols to export.
8876 always_export_symbols=yes
8877 if test "$aix_use_runtimelinking" = yes; then
8878 # Warning - without using the other runtime loading flags (-brtl),
8879 # -berok will link without error, but may produce a broken library.
8880 allow_undefined_flag='-berok'
8881 # Determine the default libpath from the value encoded in an
8882 # empty executable.
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885
8886 int
8887 main ()
8888 {
8889
8890 ;
8891 return 0;
8892 }
8893 _ACEOF
8894 if ac_fn_c_try_link "$LINENO"; then :
8895
8896 lt_aix_libpath_sed='
8897 /Import File Strings/,/^$/ {
8898 /^0/ {
8899 s/^0 *\(.*\)$/\1/
8900 p
8901 }
8902 }'
8903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8904 # Check for a 64-bit object if we didn't find anything.
8905 if test -z "$aix_libpath"; then
8906 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8907 fi
8908 fi
8909 rm -f core conftest.err conftest.$ac_objext \
8910 conftest$ac_exeext conftest.$ac_ext
8911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8912
8913 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8914 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"
8915 else
8916 if test "$host_cpu" = ia64; then
8917 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8918 allow_undefined_flag="-z nodefs"
8919 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"
8920 else
8921 # Determine the default libpath from the value encoded in an
8922 # empty executable.
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925
8926 int
8927 main ()
8928 {
8929
8930 ;
8931 return 0;
8932 }
8933 _ACEOF
8934 if ac_fn_c_try_link "$LINENO"; then :
8935
8936 lt_aix_libpath_sed='
8937 /Import File Strings/,/^$/ {
8938 /^0/ {
8939 s/^0 *\(.*\)$/\1/
8940 p
8941 }
8942 }'
8943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8944 # Check for a 64-bit object if we didn't find anything.
8945 if test -z "$aix_libpath"; then
8946 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8947 fi
8948 fi
8949 rm -f core conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8952
8953 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8954 # Warning - without using the other run time loading flags,
8955 # -berok will link without error, but may produce a broken library.
8956 no_undefined_flag=' ${wl}-bernotok'
8957 allow_undefined_flag=' ${wl}-berok'
8958 if test "$with_gnu_ld" = yes; then
8959 # We only use this code for GNU lds that support --whole-archive.
8960 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8961 else
8962 # Exported symbols can be pulled into shared objects from archives
8963 whole_archive_flag_spec='$convenience'
8964 fi
8965 archive_cmds_need_lc=yes
8966 # This is similar to how AIX traditionally builds its shared libraries.
8967 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'
8968 fi
8969 fi
8970 ;;
8971
8972 amigaos*)
8973 case $host_cpu in
8974 powerpc)
8975 # see comment about AmigaOS4 .so support
8976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8977 archive_expsym_cmds=''
8978 ;;
8979 m68k)
8980 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)'
8981 hardcode_libdir_flag_spec='-L$libdir'
8982 hardcode_minus_L=yes
8983 ;;
8984 esac
8985 ;;
8986
8987 bsdi[45]*)
8988 export_dynamic_flag_spec=-rdynamic
8989 ;;
8990
8991 cygwin* | mingw* | pw32* | cegcc*)
8992 # When not using gcc, we currently assume that we are using
8993 # Microsoft Visual C++.
8994 # hardcode_libdir_flag_spec is actually meaningless, as there is
8995 # no search path for DLLs.
8996 hardcode_libdir_flag_spec=' '
8997 allow_undefined_flag=unsupported
8998 # Tell ltmain to make .lib files, not .a files.
8999 libext=lib
9000 # Tell ltmain to make .dll files, not .so files.
9001 shrext_cmds=".dll"
9002 # FIXME: Setting linknames here is a bad hack.
9003 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9004 # The linker will automatically build a .lib file if we build a DLL.
9005 old_archive_from_new_cmds='true'
9006 # FIXME: Should let the user specify the lib program.
9007 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9008 fix_srcfile_path='`cygpath -w "$srcfile"`'
9009 enable_shared_with_static_runtimes=yes
9010 ;;
9011
9012 darwin* | rhapsody*)
9013
9014
9015 archive_cmds_need_lc=no
9016 hardcode_direct=no
9017 hardcode_automatic=yes
9018 hardcode_shlibpath_var=unsupported
9019 if test "$lt_cv_ld_force_load" = "yes"; then
9020 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\"`'
9021 else
9022 whole_archive_flag_spec=''
9023 fi
9024 link_all_deplibs=yes
9025 allow_undefined_flag="$_lt_dar_allow_undefined"
9026 case $cc_basename in
9027 ifort*) _lt_dar_can_shared=yes ;;
9028 *) _lt_dar_can_shared=$GCC ;;
9029 esac
9030 if test "$_lt_dar_can_shared" = "yes"; then
9031 output_verbose_link_cmd=func_echo_all
9032 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9033 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9034 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}"
9035 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}"
9036
9037 else
9038 ld_shlibs=no
9039 fi
9040
9041 ;;
9042
9043 dgux*)
9044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9045 hardcode_libdir_flag_spec='-L$libdir'
9046 hardcode_shlibpath_var=no
9047 ;;
9048
9049 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9050 # support. Future versions do this automatically, but an explicit c++rt0.o
9051 # does not break anything, and helps significantly (at the cost of a little
9052 # extra space).
9053 freebsd2.2*)
9054 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9055 hardcode_libdir_flag_spec='-R$libdir'
9056 hardcode_direct=yes
9057 hardcode_shlibpath_var=no
9058 ;;
9059
9060 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9061 freebsd2.*)
9062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9063 hardcode_direct=yes
9064 hardcode_minus_L=yes
9065 hardcode_shlibpath_var=no
9066 ;;
9067
9068 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9069 freebsd* | dragonfly*)
9070 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9071 hardcode_libdir_flag_spec='-R$libdir'
9072 hardcode_direct=yes
9073 hardcode_shlibpath_var=no
9074 ;;
9075
9076 hpux9*)
9077 if test "$GCC" = yes; then
9078 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'
9079 else
9080 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'
9081 fi
9082 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9083 hardcode_libdir_separator=:
9084 hardcode_direct=yes
9085
9086 # hardcode_minus_L: Not really in the search PATH,
9087 # but as the default location of the library.
9088 hardcode_minus_L=yes
9089 export_dynamic_flag_spec='${wl}-E'
9090 ;;
9091
9092 hpux10*)
9093 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9094 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9095 else
9096 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9097 fi
9098 if test "$with_gnu_ld" = no; then
9099 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9100 hardcode_libdir_flag_spec_ld='+b $libdir'
9101 hardcode_libdir_separator=:
9102 hardcode_direct=yes
9103 hardcode_direct_absolute=yes
9104 export_dynamic_flag_spec='${wl}-E'
9105 # hardcode_minus_L: Not really in the search PATH,
9106 # but as the default location of the library.
9107 hardcode_minus_L=yes
9108 fi
9109 ;;
9110
9111 hpux11*)
9112 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9113 case $host_cpu in
9114 hppa*64*)
9115 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9116 ;;
9117 ia64*)
9118 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9119 ;;
9120 *)
9121 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9122 ;;
9123 esac
9124 else
9125 case $host_cpu in
9126 hppa*64*)
9127 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9128 ;;
9129 ia64*)
9130 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9131 ;;
9132 *)
9133
9134 # Older versions of the 11.00 compiler do not understand -b yet
9135 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9137 $as_echo_n "checking if $CC understands -b... " >&6; }
9138 if ${lt_cv_prog_compiler__b+:} false; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 lt_cv_prog_compiler__b=no
9142 save_LDFLAGS="$LDFLAGS"
9143 LDFLAGS="$LDFLAGS -b"
9144 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9145 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9146 # The linker can only warn and ignore the option if not recognized
9147 # So say no if there are warnings
9148 if test -s conftest.err; then
9149 # Append any errors to the config.log.
9150 cat conftest.err 1>&5
9151 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9153 if diff conftest.exp conftest.er2 >/dev/null; then
9154 lt_cv_prog_compiler__b=yes
9155 fi
9156 else
9157 lt_cv_prog_compiler__b=yes
9158 fi
9159 fi
9160 $RM -r conftest*
9161 LDFLAGS="$save_LDFLAGS"
9162
9163 fi
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9165 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9166
9167 if test x"$lt_cv_prog_compiler__b" = xyes; then
9168 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9169 else
9170 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9171 fi
9172
9173 ;;
9174 esac
9175 fi
9176 if test "$with_gnu_ld" = no; then
9177 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9178 hardcode_libdir_separator=:
9179
9180 case $host_cpu in
9181 hppa*64*|ia64*)
9182 hardcode_direct=no
9183 hardcode_shlibpath_var=no
9184 ;;
9185 *)
9186 hardcode_direct=yes
9187 hardcode_direct_absolute=yes
9188 export_dynamic_flag_spec='${wl}-E'
9189
9190 # hardcode_minus_L: Not really in the search PATH,
9191 # but as the default location of the library.
9192 hardcode_minus_L=yes
9193 ;;
9194 esac
9195 fi
9196 ;;
9197
9198 irix5* | irix6* | nonstopux*)
9199 if test "$GCC" = yes; then
9200 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'
9201 # Try to use the -exported_symbol ld option, if it does not
9202 # work, assume that -exports_file does not work either and
9203 # implicitly export all symbols.
9204 save_LDFLAGS="$LDFLAGS"
9205 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 int foo(void) {}
9209 _ACEOF
9210 if ac_fn_c_try_link "$LINENO"; then :
9211 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'
9212
9213 fi
9214 rm -f core conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9216 LDFLAGS="$save_LDFLAGS"
9217 else
9218 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'
9219 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'
9220 fi
9221 archive_cmds_need_lc='no'
9222 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9223 hardcode_libdir_separator=:
9224 inherit_rpath=yes
9225 link_all_deplibs=yes
9226 ;;
9227
9228 netbsd*)
9229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9231 else
9232 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9233 fi
9234 hardcode_libdir_flag_spec='-R$libdir'
9235 hardcode_direct=yes
9236 hardcode_shlibpath_var=no
9237 ;;
9238
9239 newsos6)
9240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9241 hardcode_direct=yes
9242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243 hardcode_libdir_separator=:
9244 hardcode_shlibpath_var=no
9245 ;;
9246
9247 *nto* | *qnx*)
9248 ;;
9249
9250 openbsd*)
9251 if test -f /usr/libexec/ld.so; then
9252 hardcode_direct=yes
9253 hardcode_shlibpath_var=no
9254 hardcode_direct_absolute=yes
9255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9256 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9257 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9259 export_dynamic_flag_spec='${wl}-E'
9260 else
9261 case $host_os in
9262 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9264 hardcode_libdir_flag_spec='-R$libdir'
9265 ;;
9266 *)
9267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9269 ;;
9270 esac
9271 fi
9272 else
9273 ld_shlibs=no
9274 fi
9275 ;;
9276
9277 os2*)
9278 hardcode_libdir_flag_spec='-L$libdir'
9279 hardcode_minus_L=yes
9280 allow_undefined_flag=unsupported
9281 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'
9282 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9283 ;;
9284
9285 osf3*)
9286 if test "$GCC" = yes; then
9287 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9288 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'
9289 else
9290 allow_undefined_flag=' -expect_unresolved \*'
9291 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'
9292 fi
9293 archive_cmds_need_lc='no'
9294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295 hardcode_libdir_separator=:
9296 ;;
9297
9298 osf4* | osf5*) # as osf3* with the addition of -msym flag
9299 if test "$GCC" = yes; then
9300 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9301 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'
9302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9303 else
9304 allow_undefined_flag=' -expect_unresolved \*'
9305 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'
9306 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~
9307 $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'
9308
9309 # Both c and cxx compiler support -rpath directly
9310 hardcode_libdir_flag_spec='-rpath $libdir'
9311 fi
9312 archive_cmds_need_lc='no'
9313 hardcode_libdir_separator=:
9314 ;;
9315
9316 solaris*)
9317 no_undefined_flag=' -z defs'
9318 if test "$GCC" = yes; then
9319 wlarc='${wl}'
9320 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9322 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9323 else
9324 case `$CC -V 2>&1` in
9325 *"Compilers 5.0"*)
9326 wlarc=''
9327 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9329 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9330 ;;
9331 *)
9332 wlarc='${wl}'
9333 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9334 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9335 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9336 ;;
9337 esac
9338 fi
9339 hardcode_libdir_flag_spec='-R$libdir'
9340 hardcode_shlibpath_var=no
9341 case $host_os in
9342 solaris2.[0-5] | solaris2.[0-5].*) ;;
9343 *)
9344 # The compiler driver will combine and reorder linker options,
9345 # but understands `-z linker_flag'. GCC discards it without `$wl',
9346 # but is careful enough not to reorder.
9347 # Supported since Solaris 2.6 (maybe 2.5.1?)
9348 if test "$GCC" = yes; then
9349 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9350 else
9351 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9352 fi
9353 ;;
9354 esac
9355 link_all_deplibs=yes
9356 ;;
9357
9358 sunos4*)
9359 if test "x$host_vendor" = xsequent; then
9360 # Use $CC to link under sequent, because it throws in some extra .o
9361 # files that make .init and .fini sections work.
9362 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9363 else
9364 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9365 fi
9366 hardcode_libdir_flag_spec='-L$libdir'
9367 hardcode_direct=yes
9368 hardcode_minus_L=yes
9369 hardcode_shlibpath_var=no
9370 ;;
9371
9372 sysv4)
9373 case $host_vendor in
9374 sni)
9375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9376 hardcode_direct=yes # is this really true???
9377 ;;
9378 siemens)
9379 ## LD is ld it makes a PLAMLIB
9380 ## CC just makes a GrossModule.
9381 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9382 reload_cmds='$CC -r -o $output$reload_objs'
9383 hardcode_direct=no
9384 ;;
9385 motorola)
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9388 ;;
9389 esac
9390 runpath_var='LD_RUN_PATH'
9391 hardcode_shlibpath_var=no
9392 ;;
9393
9394 sysv4.3*)
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_shlibpath_var=no
9397 export_dynamic_flag_spec='-Bexport'
9398 ;;
9399
9400 sysv4*MP*)
9401 if test -d /usr/nec; then
9402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9403 hardcode_shlibpath_var=no
9404 runpath_var=LD_RUN_PATH
9405 hardcode_runpath_var=yes
9406 ld_shlibs=yes
9407 fi
9408 ;;
9409
9410 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9411 no_undefined_flag='${wl}-z,text'
9412 archive_cmds_need_lc=no
9413 hardcode_shlibpath_var=no
9414 runpath_var='LD_RUN_PATH'
9415
9416 if test "$GCC" = yes; then
9417 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9418 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 else
9420 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9421 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9422 fi
9423 ;;
9424
9425 sysv5* | sco3.2v5* | sco5v6*)
9426 # Note: We can NOT use -z defs as we might desire, because we do not
9427 # link with -lc, and that would cause any symbols used from libc to
9428 # always be unresolved, which means just about no library would
9429 # ever link correctly. If we're not using GNU ld we use -z text
9430 # though, which does catch some bad symbols but isn't as heavy-handed
9431 # as -z defs.
9432 no_undefined_flag='${wl}-z,text'
9433 allow_undefined_flag='${wl}-z,nodefs'
9434 archive_cmds_need_lc=no
9435 hardcode_shlibpath_var=no
9436 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9437 hardcode_libdir_separator=':'
9438 link_all_deplibs=yes
9439 export_dynamic_flag_spec='${wl}-Bexport'
9440 runpath_var='LD_RUN_PATH'
9441
9442 if test "$GCC" = yes; then
9443 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9444 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 else
9446 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9447 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9448 fi
9449 ;;
9450
9451 uts4*)
9452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9453 hardcode_libdir_flag_spec='-L$libdir'
9454 hardcode_shlibpath_var=no
9455 ;;
9456
9457 *)
9458 ld_shlibs=no
9459 ;;
9460 esac
9461
9462 if test x$host_vendor = xsni; then
9463 case $host in
9464 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9465 export_dynamic_flag_spec='${wl}-Blargedynsym'
9466 ;;
9467 esac
9468 fi
9469 fi
9470
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9472 $as_echo "$ld_shlibs" >&6; }
9473 test "$ld_shlibs" = no && can_build_shared=no
9474
9475 with_gnu_ld=$with_gnu_ld
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491 #
9492 # Do we need to explicitly link libc?
9493 #
9494 case "x$archive_cmds_need_lc" in
9495 x|xyes)
9496 # Assume -lc should be added
9497 archive_cmds_need_lc=yes
9498
9499 if test "$enable_shared" = yes && test "$GCC" = yes; then
9500 case $archive_cmds in
9501 *'~'*)
9502 # FIXME: we may have to deal with multi-command sequences.
9503 ;;
9504 '$CC '*)
9505 # Test whether the compiler implicitly links with -lc since on some
9506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9507 # to ld, don't add -lc before -lgcc.
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9509 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9510 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 $RM conftest*
9514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9515
9516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9517 (eval $ac_compile) 2>&5
9518 ac_status=$?
9519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9520 test $ac_status = 0; } 2>conftest.err; then
9521 soname=conftest
9522 lib=conftest
9523 libobjs=conftest.$ac_objext
9524 deplibs=
9525 wl=$lt_prog_compiler_wl
9526 pic_flag=$lt_prog_compiler_pic
9527 compiler_flags=-v
9528 linker_flags=-v
9529 verstring=
9530 output_objdir=.
9531 libname=conftest
9532 lt_save_allow_undefined_flag=$allow_undefined_flag
9533 allow_undefined_flag=
9534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9535 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9536 ac_status=$?
9537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9538 test $ac_status = 0; }
9539 then
9540 lt_cv_archive_cmds_need_lc=no
9541 else
9542 lt_cv_archive_cmds_need_lc=yes
9543 fi
9544 allow_undefined_flag=$lt_save_allow_undefined_flag
9545 else
9546 cat conftest.err 1>&5
9547 fi
9548 $RM conftest*
9549
9550 fi
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9552 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9553 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9554 ;;
9555 esac
9556 fi
9557 ;;
9558 esac
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
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9717 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9718
9719 if test "$GCC" = yes; then
9720 case $host_os in
9721 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9722 *) lt_awk_arg="/^libraries:/" ;;
9723 esac
9724 case $host_os in
9725 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9726 *) lt_sed_strip_eq="s,=/,/,g" ;;
9727 esac
9728 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9729 case $lt_search_path_spec in
9730 *\;*)
9731 # if the path contains ";" then we assume it to be the separator
9732 # otherwise default to the standard path separator (i.e. ":") - it is
9733 # assumed that no part of a normal pathname contains ";" but that should
9734 # okay in the real world where ";" in dirpaths is itself problematic.
9735 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9736 ;;
9737 *)
9738 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9739 ;;
9740 esac
9741 # Ok, now we have the path, separated by spaces, we can step through it
9742 # and add multilib dir if necessary.
9743 lt_tmp_lt_search_path_spec=
9744 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9745 for lt_sys_path in $lt_search_path_spec; do
9746 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9747 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9748 else
9749 test -d "$lt_sys_path" && \
9750 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9751 fi
9752 done
9753 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9754 BEGIN {RS=" "; FS="/|\n";} {
9755 lt_foo="";
9756 lt_count=0;
9757 for (lt_i = NF; lt_i > 0; lt_i--) {
9758 if ($lt_i != "" && $lt_i != ".") {
9759 if ($lt_i == "..") {
9760 lt_count++;
9761 } else {
9762 if (lt_count == 0) {
9763 lt_foo="/" $lt_i lt_foo;
9764 } else {
9765 lt_count--;
9766 }
9767 }
9768 }
9769 }
9770 if (lt_foo != "") { lt_freq[lt_foo]++; }
9771 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9772 }'`
9773 # AWK program above erroneously prepends '/' to C:/dos/paths
9774 # for these hosts.
9775 case $host_os in
9776 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9777 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9778 esac
9779 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9780 else
9781 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9782 fi
9783 library_names_spec=
9784 libname_spec='lib$name'
9785 soname_spec=
9786 shrext_cmds=".so"
9787 postinstall_cmds=
9788 postuninstall_cmds=
9789 finish_cmds=
9790 finish_eval=
9791 shlibpath_var=
9792 shlibpath_overrides_runpath=unknown
9793 version_type=none
9794 dynamic_linker="$host_os ld.so"
9795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9796 need_lib_prefix=unknown
9797 hardcode_into_libs=no
9798
9799 # when you set need_version to no, make sure it does not cause -set_version
9800 # flags to be left without arguments
9801 need_version=unknown
9802
9803 case $host_os in
9804 aix3*)
9805 version_type=linux
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9807 shlibpath_var=LIBPATH
9808
9809 # AIX 3 has no versioning support, so we append a major version to the name.
9810 soname_spec='${libname}${release}${shared_ext}$major'
9811 ;;
9812
9813 aix[4-9]*)
9814 version_type=linux
9815 need_lib_prefix=no
9816 need_version=no
9817 hardcode_into_libs=yes
9818 if test "$host_cpu" = ia64; then
9819 # AIX 5 supports IA64
9820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9821 shlibpath_var=LD_LIBRARY_PATH
9822 else
9823 # With GCC up to 2.95.x, collect2 would create an import file
9824 # for dependence libraries. The import file would start with
9825 # the line `#! .'. This would cause the generated library to
9826 # depend on `.', always an invalid library. This was fixed in
9827 # development snapshots of GCC prior to 3.0.
9828 case $host_os in
9829 aix4 | aix4.[01] | aix4.[01].*)
9830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9831 echo ' yes '
9832 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9833 :
9834 else
9835 can_build_shared=no
9836 fi
9837 ;;
9838 esac
9839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9840 # soname into executable. Probably we can add versioning support to
9841 # collect2, so additional links can be useful in future.
9842 if test "$aix_use_runtimelinking" = yes; then
9843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9844 # instead of lib<name>.a to let people know that these are not
9845 # typical AIX shared libraries.
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847 else
9848 # We preserve .a as extension for shared libraries through AIX4.2
9849 # and later when we are not doing run time linking.
9850 library_names_spec='${libname}${release}.a $libname.a'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 fi
9853 shlibpath_var=LIBPATH
9854 fi
9855 ;;
9856
9857 amigaos*)
9858 case $host_cpu in
9859 powerpc)
9860 # Since July 2007 AmigaOS4 officially supports .so libraries.
9861 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863 ;;
9864 m68k)
9865 library_names_spec='$libname.ixlibrary $libname.a'
9866 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9867 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'
9868 ;;
9869 esac
9870 ;;
9871
9872 beos*)
9873 library_names_spec='${libname}${shared_ext}'
9874 dynamic_linker="$host_os ld.so"
9875 shlibpath_var=LIBRARY_PATH
9876 ;;
9877
9878 bsdi[45]*)
9879 version_type=linux
9880 need_version=no
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882 soname_spec='${libname}${release}${shared_ext}$major'
9883 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9884 shlibpath_var=LD_LIBRARY_PATH
9885 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9886 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9887 # the default ld.so.conf also contains /usr/contrib/lib and
9888 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9889 # libtool to hard-code these into programs
9890 ;;
9891
9892 cygwin* | mingw* | pw32* | cegcc*)
9893 version_type=windows
9894 shrext_cmds=".dll"
9895 need_version=no
9896 need_lib_prefix=no
9897
9898 case $GCC,$host_os in
9899 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9900 library_names_spec='$libname.dll.a'
9901 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9902 postinstall_cmds='base_file=`basename \${file}`~
9903 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9904 dldir=$destdir/`dirname \$dlpath`~
9905 test -d \$dldir || mkdir -p \$dldir~
9906 $install_prog $dir/$dlname \$dldir/$dlname~
9907 chmod a+x \$dldir/$dlname~
9908 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9909 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9910 fi'
9911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9912 dlpath=$dir/\$dldll~
9913 $RM \$dlpath'
9914 shlibpath_overrides_runpath=yes
9915
9916 case $host_os in
9917 cygwin*)
9918 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9919 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9920
9921 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9922 ;;
9923 mingw* | cegcc*)
9924 # MinGW DLLs use traditional 'lib' prefix
9925 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9926 ;;
9927 pw32*)
9928 # pw32 DLLs use 'pw' prefix rather than 'lib'
9929 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9930 ;;
9931 esac
9932 ;;
9933
9934 *)
9935 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9936 ;;
9937 esac
9938 dynamic_linker='Win32 ld.exe'
9939 # FIXME: first we should search . and the directory the executable is in
9940 shlibpath_var=PATH
9941 ;;
9942
9943 darwin* | rhapsody*)
9944 dynamic_linker="$host_os dyld"
9945 version_type=darwin
9946 need_lib_prefix=no
9947 need_version=no
9948 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9949 soname_spec='${libname}${release}${major}$shared_ext'
9950 shlibpath_overrides_runpath=yes
9951 shlibpath_var=DYLD_LIBRARY_PATH
9952 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9953
9954 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9955 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9956 ;;
9957
9958 dgux*)
9959 version_type=linux
9960 need_lib_prefix=no
9961 need_version=no
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 shlibpath_var=LD_LIBRARY_PATH
9965 ;;
9966
9967 freebsd* | dragonfly*)
9968 # DragonFly does not have aout. When/if they implement a new
9969 # versioning mechanism, adjust this.
9970 if test -x /usr/bin/objformat; then
9971 objformat=`/usr/bin/objformat`
9972 else
9973 case $host_os in
9974 freebsd[23].*) objformat=aout ;;
9975 *) objformat=elf ;;
9976 esac
9977 fi
9978 version_type=freebsd-$objformat
9979 case $version_type in
9980 freebsd-elf*)
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9982 need_version=no
9983 need_lib_prefix=no
9984 ;;
9985 freebsd-*)
9986 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9987 need_version=yes
9988 ;;
9989 esac
9990 shlibpath_var=LD_LIBRARY_PATH
9991 case $host_os in
9992 freebsd2.*)
9993 shlibpath_overrides_runpath=yes
9994 ;;
9995 freebsd3.[01]* | freebsdelf3.[01]*)
9996 shlibpath_overrides_runpath=yes
9997 hardcode_into_libs=yes
9998 ;;
9999 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10000 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10001 shlibpath_overrides_runpath=no
10002 hardcode_into_libs=yes
10003 ;;
10004 *) # from 4.6 on, and DragonFly
10005 shlibpath_overrides_runpath=yes
10006 hardcode_into_libs=yes
10007 ;;
10008 esac
10009 ;;
10010
10011 haiku*)
10012 version_type=linux
10013 need_lib_prefix=no
10014 need_version=no
10015 dynamic_linker="$host_os runtime_loader"
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10017 soname_spec='${libname}${release}${shared_ext}$major'
10018 shlibpath_var=LIBRARY_PATH
10019 shlibpath_overrides_runpath=yes
10020 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10021 hardcode_into_libs=yes
10022 ;;
10023
10024 hpux9* | hpux10* | hpux11*)
10025 # Give a soname corresponding to the major version so that dld.sl refuses to
10026 # link against other versions.
10027 version_type=sunos
10028 need_lib_prefix=no
10029 need_version=no
10030 case $host_cpu in
10031 ia64*)
10032 shrext_cmds='.so'
10033 hardcode_into_libs=yes
10034 dynamic_linker="$host_os dld.so"
10035 shlibpath_var=LD_LIBRARY_PATH
10036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 if test "X$HPUX_IA64_MODE" = X32; then
10040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10041 else
10042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10043 fi
10044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10045 ;;
10046 hppa*64*)
10047 shrext_cmds='.sl'
10048 hardcode_into_libs=yes
10049 dynamic_linker="$host_os dld.sl"
10050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053 soname_spec='${libname}${release}${shared_ext}$major'
10054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10056 ;;
10057 *)
10058 shrext_cmds='.sl'
10059 dynamic_linker="$host_os dld.sl"
10060 shlibpath_var=SHLIB_PATH
10061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 ;;
10065 esac
10066 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10067 postinstall_cmds='chmod 555 $lib'
10068 # or fails outright, so override atomically:
10069 install_override_mode=555
10070 ;;
10071
10072 interix[3-9]*)
10073 version_type=linux
10074 need_lib_prefix=no
10075 need_version=no
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10077 soname_spec='${libname}${release}${shared_ext}$major'
10078 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10079 shlibpath_var=LD_LIBRARY_PATH
10080 shlibpath_overrides_runpath=no
10081 hardcode_into_libs=yes
10082 ;;
10083
10084 irix5* | irix6* | nonstopux*)
10085 case $host_os in
10086 nonstopux*) version_type=nonstopux ;;
10087 *)
10088 if test "$lt_cv_prog_gnu_ld" = yes; then
10089 version_type=linux
10090 else
10091 version_type=irix
10092 fi ;;
10093 esac
10094 need_lib_prefix=no
10095 need_version=no
10096 soname_spec='${libname}${release}${shared_ext}$major'
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10098 case $host_os in
10099 irix5* | nonstopux*)
10100 libsuff= shlibsuff=
10101 ;;
10102 *)
10103 case $LD in # libtool.m4 will add one of these switches to LD
10104 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10105 libsuff= shlibsuff= libmagic=32-bit;;
10106 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10107 libsuff=32 shlibsuff=N32 libmagic=N32;;
10108 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10109 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10110 *) libsuff= shlibsuff= libmagic=never-match;;
10111 esac
10112 ;;
10113 esac
10114 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10115 shlibpath_overrides_runpath=no
10116 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10117 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10118 hardcode_into_libs=yes
10119 ;;
10120
10121 # No shared lib support for Linux oldld, aout, or coff.
10122 linux*oldld* | linux*aout* | linux*coff*)
10123 dynamic_linker=no
10124 ;;
10125
10126 # This must be Linux ELF.
10127 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10128 version_type=linux
10129 need_lib_prefix=no
10130 need_version=no
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 shlibpath_overrides_runpath=no
10136
10137 # Some binutils ld are patched to set DT_RUNPATH
10138 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10139 $as_echo_n "(cached) " >&6
10140 else
10141 lt_cv_shlibpath_overrides_runpath=no
10142 save_LDFLAGS=$LDFLAGS
10143 save_libdir=$libdir
10144 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10145 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148
10149 int
10150 main ()
10151 {
10152
10153 ;
10154 return 0;
10155 }
10156 _ACEOF
10157 if ac_fn_c_try_link "$LINENO"; then :
10158 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10159 lt_cv_shlibpath_overrides_runpath=yes
10160 fi
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10164 LDFLAGS=$save_LDFLAGS
10165 libdir=$save_libdir
10166
10167 fi
10168
10169 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10170
10171 # This implies no fast_install, which is unacceptable.
10172 # Some rework will be needed to allow for fast_install
10173 # before this can be enabled.
10174 hardcode_into_libs=yes
10175
10176 # Append ld.so.conf contents to the search path
10177 if test -f /etc/ld.so.conf; then
10178 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' ' '`
10179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10180 fi
10181
10182 # We used to test for /lib/ld.so.1 and disable shared libraries on
10183 # powerpc, because MkLinux only supported shared libraries with the
10184 # GNU dynamic linker. Since this was broken with cross compilers,
10185 # most powerpc-linux boxes support dynamic linking these days and
10186 # people can always --disable-shared, the test was removed, and we
10187 # assume the GNU/Linux dynamic linker is in use.
10188 dynamic_linker='GNU/Linux ld.so'
10189 ;;
10190
10191 netbsd*)
10192 version_type=sunos
10193 need_lib_prefix=no
10194 need_version=no
10195 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10198 dynamic_linker='NetBSD (a.out) ld.so'
10199 else
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 dynamic_linker='NetBSD ld.elf_so'
10203 fi
10204 shlibpath_var=LD_LIBRARY_PATH
10205 shlibpath_overrides_runpath=yes
10206 hardcode_into_libs=yes
10207 ;;
10208
10209 newsos6)
10210 version_type=linux
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 shlibpath_var=LD_LIBRARY_PATH
10213 shlibpath_overrides_runpath=yes
10214 ;;
10215
10216 *nto* | *qnx*)
10217 version_type=qnx
10218 need_lib_prefix=no
10219 need_version=no
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 shlibpath_var=LD_LIBRARY_PATH
10223 shlibpath_overrides_runpath=no
10224 hardcode_into_libs=yes
10225 dynamic_linker='ldqnx.so'
10226 ;;
10227
10228 openbsd*)
10229 version_type=sunos
10230 sys_lib_dlsearch_path_spec="/usr/lib"
10231 need_lib_prefix=no
10232 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10233 case $host_os in
10234 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10235 *) need_version=no ;;
10236 esac
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10241 case $host_os in
10242 openbsd2.[89] | openbsd2.[89].*)
10243 shlibpath_overrides_runpath=no
10244 ;;
10245 *)
10246 shlibpath_overrides_runpath=yes
10247 ;;
10248 esac
10249 else
10250 shlibpath_overrides_runpath=yes
10251 fi
10252 ;;
10253
10254 os2*)
10255 libname_spec='$name'
10256 shrext_cmds=".dll"
10257 need_lib_prefix=no
10258 library_names_spec='$libname${shared_ext} $libname.a'
10259 dynamic_linker='OS/2 ld.exe'
10260 shlibpath_var=LIBPATH
10261 ;;
10262
10263 osf3* | osf4* | osf5*)
10264 version_type=osf
10265 need_lib_prefix=no
10266 need_version=no
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10271 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10272 ;;
10273
10274 rdos*)
10275 dynamic_linker=no
10276 ;;
10277
10278 solaris*)
10279 version_type=linux
10280 need_lib_prefix=no
10281 need_version=no
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283 soname_spec='${libname}${release}${shared_ext}$major'
10284 shlibpath_var=LD_LIBRARY_PATH
10285 shlibpath_overrides_runpath=yes
10286 hardcode_into_libs=yes
10287 # ldd complains unless libraries are executable
10288 postinstall_cmds='chmod +x $lib'
10289 ;;
10290
10291 sunos4*)
10292 version_type=sunos
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10294 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 shlibpath_overrides_runpath=yes
10297 if test "$with_gnu_ld" = yes; then
10298 need_lib_prefix=no
10299 fi
10300 need_version=yes
10301 ;;
10302
10303 sysv4 | sysv4.3*)
10304 version_type=linux
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 case $host_vendor in
10309 sni)
10310 shlibpath_overrides_runpath=no
10311 need_lib_prefix=no
10312 runpath_var=LD_RUN_PATH
10313 ;;
10314 siemens)
10315 need_lib_prefix=no
10316 ;;
10317 motorola)
10318 need_lib_prefix=no
10319 need_version=no
10320 shlibpath_overrides_runpath=no
10321 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10322 ;;
10323 esac
10324 ;;
10325
10326 sysv4*MP*)
10327 if test -d /usr/nec ;then
10328 version_type=linux
10329 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10330 soname_spec='$libname${shared_ext}.$major'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 fi
10333 ;;
10334
10335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10336 version_type=freebsd-elf
10337 need_lib_prefix=no
10338 need_version=no
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 shlibpath_overrides_runpath=yes
10343 hardcode_into_libs=yes
10344 if test "$with_gnu_ld" = yes; then
10345 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10346 else
10347 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10348 case $host_os in
10349 sco3.2v5*)
10350 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10351 ;;
10352 esac
10353 fi
10354 sys_lib_dlsearch_path_spec='/usr/lib'
10355 ;;
10356
10357 tpf*)
10358 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10359 version_type=linux
10360 need_lib_prefix=no
10361 need_version=no
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 shlibpath_overrides_runpath=no
10365 hardcode_into_libs=yes
10366 ;;
10367
10368 uts4*)
10369 version_type=linux
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 ;;
10374
10375 *)
10376 dynamic_linker=no
10377 ;;
10378 esac
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10380 $as_echo "$dynamic_linker" >&6; }
10381 test "$dynamic_linker" = no && can_build_shared=no
10382
10383 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10384 if test "$GCC" = yes; then
10385 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10386 fi
10387
10388 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10389 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10390 fi
10391 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10392 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10393 fi
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10487 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10488 hardcode_action=
10489 if test -n "$hardcode_libdir_flag_spec" ||
10490 test -n "$runpath_var" ||
10491 test "X$hardcode_automatic" = "Xyes" ; then
10492
10493 # We can hardcode non-existent directories.
10494 if test "$hardcode_direct" != no &&
10495 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10496 # have to relink, otherwise we might link with an installed library
10497 # when we should be linking with a yet-to-be-installed one
10498 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10499 test "$hardcode_minus_L" != no; then
10500 # Linking always hardcodes the temporary library directory.
10501 hardcode_action=relink
10502 else
10503 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10504 hardcode_action=immediate
10505 fi
10506 else
10507 # We cannot hardcode anything, or else we can only hardcode existing
10508 # directories.
10509 hardcode_action=unsupported
10510 fi
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10512 $as_echo "$hardcode_action" >&6; }
10513
10514 if test "$hardcode_action" = relink ||
10515 test "$inherit_rpath" = yes; then
10516 # Fast installation is not supported
10517 enable_fast_install=no
10518 elif test "$shlibpath_overrides_runpath" = yes ||
10519 test "$enable_shared" = no; then
10520 # Fast installation is not necessary
10521 enable_fast_install=needless
10522 fi
10523
10524
10525
10526
10527
10528
10529 if test "x$enable_dlopen" != xyes; then
10530 enable_dlopen=unknown
10531 enable_dlopen_self=unknown
10532 enable_dlopen_self_static=unknown
10533 else
10534 lt_cv_dlopen=no
10535 lt_cv_dlopen_libs=
10536
10537 case $host_os in
10538 beos*)
10539 lt_cv_dlopen="load_add_on"
10540 lt_cv_dlopen_libs=
10541 lt_cv_dlopen_self=yes
10542 ;;
10543
10544 mingw* | pw32* | cegcc*)
10545 lt_cv_dlopen="LoadLibrary"
10546 lt_cv_dlopen_libs=
10547 ;;
10548
10549 cygwin*)
10550 lt_cv_dlopen="dlopen"
10551 lt_cv_dlopen_libs=
10552 ;;
10553
10554 darwin*)
10555 # if libdl is installed we need to link against it
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10557 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10558 if ${ac_cv_lib_dl_dlopen+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 ac_check_lib_save_LIBS=$LIBS
10562 LIBS="-ldl $LIBS"
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565
10566 /* Override any GCC internal prototype to avoid an error.
10567 Use char because int might match the return type of a GCC
10568 builtin and then its argument prototype would still apply. */
10569 #ifdef __cplusplus
10570 extern "C"
10571 #endif
10572 char dlopen ();
10573 int
10574 main ()
10575 {
10576 return dlopen ();
10577 ;
10578 return 0;
10579 }
10580 _ACEOF
10581 if ac_fn_c_try_link "$LINENO"; then :
10582 ac_cv_lib_dl_dlopen=yes
10583 else
10584 ac_cv_lib_dl_dlopen=no
10585 fi
10586 rm -f core conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_lib_save_LIBS
10589 fi
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10591 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10592 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10593 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10594 else
10595
10596 lt_cv_dlopen="dyld"
10597 lt_cv_dlopen_libs=
10598 lt_cv_dlopen_self=yes
10599
10600 fi
10601
10602 ;;
10603
10604 *)
10605 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10606 if test "x$ac_cv_func_shl_load" = xyes; then :
10607 lt_cv_dlopen="shl_load"
10608 else
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10610 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10611 if ${ac_cv_lib_dld_shl_load+:} false; then :
10612 $as_echo_n "(cached) " >&6
10613 else
10614 ac_check_lib_save_LIBS=$LIBS
10615 LIBS="-ldld $LIBS"
10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10618
10619 /* Override any GCC internal prototype to avoid an error.
10620 Use char because int might match the return type of a GCC
10621 builtin and then its argument prototype would still apply. */
10622 #ifdef __cplusplus
10623 extern "C"
10624 #endif
10625 char shl_load ();
10626 int
10627 main ()
10628 {
10629 return shl_load ();
10630 ;
10631 return 0;
10632 }
10633 _ACEOF
10634 if ac_fn_c_try_link "$LINENO"; then :
10635 ac_cv_lib_dld_shl_load=yes
10636 else
10637 ac_cv_lib_dld_shl_load=no
10638 fi
10639 rm -f core conftest.err conftest.$ac_objext \
10640 conftest$ac_exeext conftest.$ac_ext
10641 LIBS=$ac_check_lib_save_LIBS
10642 fi
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10644 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10645 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10646 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10647 else
10648 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10649 if test "x$ac_cv_func_dlopen" = xyes; then :
10650 lt_cv_dlopen="dlopen"
10651 else
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10653 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10654 if ${ac_cv_lib_dl_dlopen+:} false; then :
10655 $as_echo_n "(cached) " >&6
10656 else
10657 ac_check_lib_save_LIBS=$LIBS
10658 LIBS="-ldl $LIBS"
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661
10662 /* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
10665 #ifdef __cplusplus
10666 extern "C"
10667 #endif
10668 char dlopen ();
10669 int
10670 main ()
10671 {
10672 return dlopen ();
10673 ;
10674 return 0;
10675 }
10676 _ACEOF
10677 if ac_fn_c_try_link "$LINENO"; then :
10678 ac_cv_lib_dl_dlopen=yes
10679 else
10680 ac_cv_lib_dl_dlopen=no
10681 fi
10682 rm -f core conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10684 LIBS=$ac_check_lib_save_LIBS
10685 fi
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10687 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10688 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10689 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10690 else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10692 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10693 if ${ac_cv_lib_svld_dlopen+:} false; then :
10694 $as_echo_n "(cached) " >&6
10695 else
10696 ac_check_lib_save_LIBS=$LIBS
10697 LIBS="-lsvld $LIBS"
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10700
10701 /* Override any GCC internal prototype to avoid an error.
10702 Use char because int might match the return type of a GCC
10703 builtin and then its argument prototype would still apply. */
10704 #ifdef __cplusplus
10705 extern "C"
10706 #endif
10707 char dlopen ();
10708 int
10709 main ()
10710 {
10711 return dlopen ();
10712 ;
10713 return 0;
10714 }
10715 _ACEOF
10716 if ac_fn_c_try_link "$LINENO"; then :
10717 ac_cv_lib_svld_dlopen=yes
10718 else
10719 ac_cv_lib_svld_dlopen=no
10720 fi
10721 rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723 LIBS=$ac_check_lib_save_LIBS
10724 fi
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10726 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10727 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10729 else
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10731 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10732 if ${ac_cv_lib_dld_dld_link+:} false; then :
10733 $as_echo_n "(cached) " >&6
10734 else
10735 ac_check_lib_save_LIBS=$LIBS
10736 LIBS="-ldld $LIBS"
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739
10740 /* Override any GCC internal prototype to avoid an error.
10741 Use char because int might match the return type of a GCC
10742 builtin and then its argument prototype would still apply. */
10743 #ifdef __cplusplus
10744 extern "C"
10745 #endif
10746 char dld_link ();
10747 int
10748 main ()
10749 {
10750 return dld_link ();
10751 ;
10752 return 0;
10753 }
10754 _ACEOF
10755 if ac_fn_c_try_link "$LINENO"; then :
10756 ac_cv_lib_dld_dld_link=yes
10757 else
10758 ac_cv_lib_dld_dld_link=no
10759 fi
10760 rm -f core conftest.err conftest.$ac_objext \
10761 conftest$ac_exeext conftest.$ac_ext
10762 LIBS=$ac_check_lib_save_LIBS
10763 fi
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10765 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10766 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10767 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10768 fi
10769
10770
10771 fi
10772
10773
10774 fi
10775
10776
10777 fi
10778
10779
10780 fi
10781
10782
10783 fi
10784
10785 ;;
10786 esac
10787
10788 if test "x$lt_cv_dlopen" != xno; then
10789 enable_dlopen=yes
10790 else
10791 enable_dlopen=no
10792 fi
10793
10794 case $lt_cv_dlopen in
10795 dlopen)
10796 save_CPPFLAGS="$CPPFLAGS"
10797 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10798
10799 save_LDFLAGS="$LDFLAGS"
10800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10801
10802 save_LIBS="$LIBS"
10803 LIBS="$lt_cv_dlopen_libs $LIBS"
10804
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10806 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10807 if ${lt_cv_dlopen_self+:} false; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 if test "$cross_compiling" = yes; then :
10811 lt_cv_dlopen_self=cross
10812 else
10813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10814 lt_status=$lt_dlunknown
10815 cat > conftest.$ac_ext <<_LT_EOF
10816 #line 10816 "configure"
10817 #include "confdefs.h"
10818
10819 #if HAVE_DLFCN_H
10820 #include <dlfcn.h>
10821 #endif
10822
10823 #include <stdio.h>
10824
10825 #ifdef RTLD_GLOBAL
10826 # define LT_DLGLOBAL RTLD_GLOBAL
10827 #else
10828 # ifdef DL_GLOBAL
10829 # define LT_DLGLOBAL DL_GLOBAL
10830 # else
10831 # define LT_DLGLOBAL 0
10832 # endif
10833 #endif
10834
10835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10836 find out it does not work in some platform. */
10837 #ifndef LT_DLLAZY_OR_NOW
10838 # ifdef RTLD_LAZY
10839 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10840 # else
10841 # ifdef DL_LAZY
10842 # define LT_DLLAZY_OR_NOW DL_LAZY
10843 # else
10844 # ifdef RTLD_NOW
10845 # define LT_DLLAZY_OR_NOW RTLD_NOW
10846 # else
10847 # ifdef DL_NOW
10848 # define LT_DLLAZY_OR_NOW DL_NOW
10849 # else
10850 # define LT_DLLAZY_OR_NOW 0
10851 # endif
10852 # endif
10853 # endif
10854 # endif
10855 #endif
10856
10857 /* When -fvisbility=hidden is used, assume the code has been annotated
10858 correspondingly for the symbols needed. */
10859 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10860 void fnord () __attribute__((visibility("default")));
10861 #endif
10862
10863 void fnord () { int i=42; }
10864 int main ()
10865 {
10866 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10867 int status = $lt_dlunknown;
10868
10869 if (self)
10870 {
10871 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10872 else
10873 {
10874 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10875 else puts (dlerror ());
10876 }
10877 /* dlclose (self); */
10878 }
10879 else
10880 puts (dlerror ());
10881
10882 return status;
10883 }
10884 _LT_EOF
10885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10886 (eval $ac_link) 2>&5
10887 ac_status=$?
10888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10889 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10890 (./conftest; exit; ) >&5 2>/dev/null
10891 lt_status=$?
10892 case x$lt_status in
10893 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10894 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10895 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10896 esac
10897 else :
10898 # compilation failed
10899 lt_cv_dlopen_self=no
10900 fi
10901 fi
10902 rm -fr conftest*
10903
10904
10905 fi
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10907 $as_echo "$lt_cv_dlopen_self" >&6; }
10908
10909 if test "x$lt_cv_dlopen_self" = xyes; then
10910 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10912 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10913 if ${lt_cv_dlopen_self_static+:} false; then :
10914 $as_echo_n "(cached) " >&6
10915 else
10916 if test "$cross_compiling" = yes; then :
10917 lt_cv_dlopen_self_static=cross
10918 else
10919 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10920 lt_status=$lt_dlunknown
10921 cat > conftest.$ac_ext <<_LT_EOF
10922 #line 10922 "configure"
10923 #include "confdefs.h"
10924
10925 #if HAVE_DLFCN_H
10926 #include <dlfcn.h>
10927 #endif
10928
10929 #include <stdio.h>
10930
10931 #ifdef RTLD_GLOBAL
10932 # define LT_DLGLOBAL RTLD_GLOBAL
10933 #else
10934 # ifdef DL_GLOBAL
10935 # define LT_DLGLOBAL DL_GLOBAL
10936 # else
10937 # define LT_DLGLOBAL 0
10938 # endif
10939 #endif
10940
10941 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10942 find out it does not work in some platform. */
10943 #ifndef LT_DLLAZY_OR_NOW
10944 # ifdef RTLD_LAZY
10945 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10946 # else
10947 # ifdef DL_LAZY
10948 # define LT_DLLAZY_OR_NOW DL_LAZY
10949 # else
10950 # ifdef RTLD_NOW
10951 # define LT_DLLAZY_OR_NOW RTLD_NOW
10952 # else
10953 # ifdef DL_NOW
10954 # define LT_DLLAZY_OR_NOW DL_NOW
10955 # else
10956 # define LT_DLLAZY_OR_NOW 0
10957 # endif
10958 # endif
10959 # endif
10960 # endif
10961 #endif
10962
10963 /* When -fvisbility=hidden is used, assume the code has been annotated
10964 correspondingly for the symbols needed. */
10965 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10966 void fnord () __attribute__((visibility("default")));
10967 #endif
10968
10969 void fnord () { int i=42; }
10970 int main ()
10971 {
10972 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10973 int status = $lt_dlunknown;
10974
10975 if (self)
10976 {
10977 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10978 else
10979 {
10980 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10981 else puts (dlerror ());
10982 }
10983 /* dlclose (self); */
10984 }
10985 else
10986 puts (dlerror ());
10987
10988 return status;
10989 }
10990 _LT_EOF
10991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10992 (eval $ac_link) 2>&5
10993 ac_status=$?
10994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10995 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10996 (./conftest; exit; ) >&5 2>/dev/null
10997 lt_status=$?
10998 case x$lt_status in
10999 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11000 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11001 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11002 esac
11003 else :
11004 # compilation failed
11005 lt_cv_dlopen_self_static=no
11006 fi
11007 fi
11008 rm -fr conftest*
11009
11010
11011 fi
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11013 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11014 fi
11015
11016 CPPFLAGS="$save_CPPFLAGS"
11017 LDFLAGS="$save_LDFLAGS"
11018 LIBS="$save_LIBS"
11019 ;;
11020 esac
11021
11022 case $lt_cv_dlopen_self in
11023 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11024 *) enable_dlopen_self=unknown ;;
11025 esac
11026
11027 case $lt_cv_dlopen_self_static in
11028 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11029 *) enable_dlopen_self_static=unknown ;;
11030 esac
11031 fi
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049 striplib=
11050 old_striplib=
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11052 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11053 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11054 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11055 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11057 $as_echo "yes" >&6; }
11058 else
11059 # FIXME - insert some real tests, host_os isn't really good enough
11060 case $host_os in
11061 darwin*)
11062 if test -n "$STRIP" ; then
11063 striplib="$STRIP -x"
11064 old_striplib="$STRIP -S"
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11066 $as_echo "yes" >&6; }
11067 else
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11069 $as_echo "no" >&6; }
11070 fi
11071 ;;
11072 *)
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11074 $as_echo "no" >&6; }
11075 ;;
11076 esac
11077 fi
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090 # Report which library types will actually be built
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11092 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11094 $as_echo "$can_build_shared" >&6; }
11095
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11097 $as_echo_n "checking whether to build shared libraries... " >&6; }
11098 test "$can_build_shared" = "no" && enable_shared=no
11099
11100 # On AIX, shared libraries and static libraries use the same namespace, and
11101 # are all built from PIC.
11102 case $host_os in
11103 aix3*)
11104 test "$enable_shared" = yes && enable_static=no
11105 if test -n "$RANLIB"; then
11106 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11107 postinstall_cmds='$RANLIB $lib'
11108 fi
11109 ;;
11110
11111 aix[4-9]*)
11112 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11113 test "$enable_shared" = yes && enable_static=no
11114 fi
11115 ;;
11116 esac
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11118 $as_echo "$enable_shared" >&6; }
11119
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11121 $as_echo_n "checking whether to build static libraries... " >&6; }
11122 # Make sure either enable_shared or enable_static is yes.
11123 test "$enable_shared" = yes || enable_static=yes
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11125 $as_echo "$enable_static" >&6; }
11126
11127
11128
11129
11130 fi
11131 ac_ext=c
11132 ac_cpp='$CPP $CPPFLAGS'
11133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11136
11137 CC="$lt_save_CC"
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151 ac_config_commands="$ac_config_commands libtool"
11152
11153
11154
11155
11156 # Only expand once:
11157
11158
11159
11160 # The tests for host and target for $enable_largefile require
11161 # canonical names.
11162
11163
11164
11165 # As the $enable_largefile decision depends on --enable-plugins we must set it
11166 # even in directories otherwise not depending on the $plugins option.
11167
11168
11169 maybe_plugins=no
11170 for ac_header in dlfcn.h
11171 do :
11172 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11173 "
11174 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11175 cat >>confdefs.h <<_ACEOF
11176 #define HAVE_DLFCN_H 1
11177 _ACEOF
11178 maybe_plugins=yes
11179 fi
11180
11181 done
11182
11183 for ac_header in windows.h
11184 do :
11185 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11186 "
11187 if test "x$ac_cv_header_windows_h" = xyes; then :
11188 cat >>confdefs.h <<_ACEOF
11189 #define HAVE_WINDOWS_H 1
11190 _ACEOF
11191 maybe_plugins=yes
11192 fi
11193
11194 done
11195
11196
11197 # Check whether --enable-plugins was given.
11198 if test "${enable_plugins+set}" = set; then :
11199 enableval=$enable_plugins; case "${enableval}" in
11200 no) plugins=no ;;
11201 *) plugins=yes
11202 if test "$maybe_plugins" != "yes" ; then
11203 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11204 fi ;;
11205 esac
11206 else
11207 plugins=$maybe_plugins
11208
11209 fi
11210
11211 if test "$plugins" = "yes"; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11213 $as_echo_n "checking for library containing dlsym... " >&6; }
11214 if ${ac_cv_search_dlsym+:} false; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 ac_func_search_save_LIBS=$LIBS
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11220
11221 /* Override any GCC internal prototype to avoid an error.
11222 Use char because int might match the return type of a GCC
11223 builtin and then its argument prototype would still apply. */
11224 #ifdef __cplusplus
11225 extern "C"
11226 #endif
11227 char dlsym ();
11228 int
11229 main ()
11230 {
11231 return dlsym ();
11232 ;
11233 return 0;
11234 }
11235 _ACEOF
11236 for ac_lib in '' dl; do
11237 if test -z "$ac_lib"; then
11238 ac_res="none required"
11239 else
11240 ac_res=-l$ac_lib
11241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11242 fi
11243 if ac_fn_c_try_link "$LINENO"; then :
11244 ac_cv_search_dlsym=$ac_res
11245 fi
11246 rm -f core conftest.err conftest.$ac_objext \
11247 conftest$ac_exeext
11248 if ${ac_cv_search_dlsym+:} false; then :
11249 break
11250 fi
11251 done
11252 if ${ac_cv_search_dlsym+:} false; then :
11253
11254 else
11255 ac_cv_search_dlsym=no
11256 fi
11257 rm conftest.$ac_ext
11258 LIBS=$ac_func_search_save_LIBS
11259 fi
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11261 $as_echo "$ac_cv_search_dlsym" >&6; }
11262 ac_res=$ac_cv_search_dlsym
11263 if test "$ac_res" != no; then :
11264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11265
11266 fi
11267
11268 fi
11269
11270
11271 case "${host}" in
11272 sparc-*-solaris*|i?86-*-solaris*)
11273 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11274 # were mutually exclusive until Solaris 11.3. Without procfs support,
11275 # the bfd/ elf module cannot provide certain routines such as
11276 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11277 # explicitly requested large-file support through the
11278 # --enable-largefile switch, disable large-file support in favor of
11279 # procfs support.
11280 #
11281 # Check if <sys/procfs.h> is incompatible with large-file support.
11282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11284 #define _FILE_OFFSET_BITS 64
11285 #define _STRUCTURED_PROC 1
11286 #include <sys/procfs.h>
11287 int
11288 main ()
11289 {
11290
11291 ;
11292 return 0;
11293 }
11294 _ACEOF
11295 if ac_fn_c_try_compile "$LINENO"; then :
11296 acx_cv_procfs_lfs=yes
11297 else
11298 acx_cv_procfs_lfs=no
11299 fi
11300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11301 #
11302 # Forcefully disable large-file support only if necessary, gdb is in
11303 # tree and enabled.
11304 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11305 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11306 : ${enable_largefile="no"}
11307 if test "$plugins" = yes; then
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11309 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11310 $as_echo "$as_me: WARNING:
11311 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11312 plugins=no
11313 fi
11314 fi
11315 #
11316 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11317 # benefit of g++ 9+ which predefines it on Solaris.
11318 if test "$enable_largefile" = no; then
11319 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11320
11321 fi
11322 ;;
11323 esac
11324
11325 # Check whether --enable-largefile was given.
11326 if test "${enable_largefile+set}" = set; then :
11327 enableval=$enable_largefile;
11328 fi
11329
11330 if test "$enable_largefile" != no; then
11331
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11333 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11334 if ${ac_cv_sys_largefile_CC+:} false; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 ac_cv_sys_largefile_CC=no
11338 if test "$GCC" != yes; then
11339 ac_save_CC=$CC
11340 while :; do
11341 # IRIX 6.2 and later do not support large files by default,
11342 # so use the C compiler's -n32 option if that helps.
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345 #include <sys/types.h>
11346 /* Check that off_t can represent 2**63 - 1 correctly.
11347 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11348 since some C++ compilers masquerading as C compilers
11349 incorrectly reject 9223372036854775807. */
11350 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11352 && LARGE_OFF_T % 2147483647 == 1)
11353 ? 1 : -1];
11354 int
11355 main ()
11356 {
11357
11358 ;
11359 return 0;
11360 }
11361 _ACEOF
11362 if ac_fn_c_try_compile "$LINENO"; then :
11363 break
11364 fi
11365 rm -f core conftest.err conftest.$ac_objext
11366 CC="$CC -n32"
11367 if ac_fn_c_try_compile "$LINENO"; then :
11368 ac_cv_sys_largefile_CC=' -n32'; break
11369 fi
11370 rm -f core conftest.err conftest.$ac_objext
11371 break
11372 done
11373 CC=$ac_save_CC
11374 rm -f conftest.$ac_ext
11375 fi
11376 fi
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11378 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11379 if test "$ac_cv_sys_largefile_CC" != no; then
11380 CC=$CC$ac_cv_sys_largefile_CC
11381 fi
11382
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11384 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11385 if ${ac_cv_sys_file_offset_bits+:} false; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 while :; do
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11391 #include <sys/types.h>
11392 /* Check that off_t can represent 2**63 - 1 correctly.
11393 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11394 since some C++ compilers masquerading as C compilers
11395 incorrectly reject 9223372036854775807. */
11396 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11397 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11398 && LARGE_OFF_T % 2147483647 == 1)
11399 ? 1 : -1];
11400 int
11401 main ()
11402 {
11403
11404 ;
11405 return 0;
11406 }
11407 _ACEOF
11408 if ac_fn_c_try_compile "$LINENO"; then :
11409 ac_cv_sys_file_offset_bits=no; break
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11414 #define _FILE_OFFSET_BITS 64
11415 #include <sys/types.h>
11416 /* Check that off_t can represent 2**63 - 1 correctly.
11417 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11418 since some C++ compilers masquerading as C compilers
11419 incorrectly reject 9223372036854775807. */
11420 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11421 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11422 && LARGE_OFF_T % 2147483647 == 1)
11423 ? 1 : -1];
11424 int
11425 main ()
11426 {
11427
11428 ;
11429 return 0;
11430 }
11431 _ACEOF
11432 if ac_fn_c_try_compile "$LINENO"; then :
11433 ac_cv_sys_file_offset_bits=64; break
11434 fi
11435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11436 ac_cv_sys_file_offset_bits=unknown
11437 break
11438 done
11439 fi
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11441 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11442 case $ac_cv_sys_file_offset_bits in #(
11443 no | unknown) ;;
11444 *)
11445 cat >>confdefs.h <<_ACEOF
11446 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11447 _ACEOF
11448 ;;
11449 esac
11450 rm -rf conftest*
11451 if test $ac_cv_sys_file_offset_bits = unknown; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11453 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11454 if ${ac_cv_sys_large_files+:} false; then :
11455 $as_echo_n "(cached) " >&6
11456 else
11457 while :; do
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460 #include <sys/types.h>
11461 /* Check that off_t can represent 2**63 - 1 correctly.
11462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11463 since some C++ compilers masquerading as C compilers
11464 incorrectly reject 9223372036854775807. */
11465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11467 && LARGE_OFF_T % 2147483647 == 1)
11468 ? 1 : -1];
11469 int
11470 main ()
11471 {
11472
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_compile "$LINENO"; then :
11478 ac_cv_sys_large_files=no; break
11479 fi
11480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11483 #define _LARGE_FILES 1
11484 #include <sys/types.h>
11485 /* Check that off_t can represent 2**63 - 1 correctly.
11486 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11487 since some C++ compilers masquerading as C compilers
11488 incorrectly reject 9223372036854775807. */
11489 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11490 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11491 && LARGE_OFF_T % 2147483647 == 1)
11492 ? 1 : -1];
11493 int
11494 main ()
11495 {
11496
11497 ;
11498 return 0;
11499 }
11500 _ACEOF
11501 if ac_fn_c_try_compile "$LINENO"; then :
11502 ac_cv_sys_large_files=1; break
11503 fi
11504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11505 ac_cv_sys_large_files=unknown
11506 break
11507 done
11508 fi
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11510 $as_echo "$ac_cv_sys_large_files" >&6; }
11511 case $ac_cv_sys_large_files in #(
11512 no | unknown) ;;
11513 *)
11514 cat >>confdefs.h <<_ACEOF
11515 #define _LARGE_FILES $ac_cv_sys_large_files
11516 _ACEOF
11517 ;;
11518 esac
11519 rm -rf conftest*
11520 fi
11521
11522
11523 fi
11524
11525
11526
11527 ac_checking=
11528 . ${srcdir}/../bfd/development.sh
11529 test "$development" = true && ac_checking=yes
11530 # Check whether --enable-checking was given.
11531 if test "${enable_checking+set}" = set; then :
11532 enableval=$enable_checking; case "${enableval}" in
11533 no|none) ac_checking= ;;
11534 *) ac_checking=yes ;;
11535 esac
11536 fi
11537 if test x$ac_checking != x ; then
11538
11539 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11540
11541 fi
11542
11543 # Check whether --enable-targets was given.
11544 if test "${enable_targets+set}" = set; then :
11545 enableval=$enable_targets; case "${enableval}" in
11546 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11547 ;;
11548 no) enable_targets= ;;
11549 *) enable_targets=$enableval ;;
11550 esac
11551 fi
11552
11553
11554 # Check whether --enable-deterministic-archives was given.
11555 if test "${enable_deterministic_archives+set}" = set; then :
11556 enableval=$enable_deterministic_archives;
11557 if test "${enableval}" = no; then
11558 default_ar_deterministic=0
11559 else
11560 default_ar_deterministic=1
11561 fi
11562 else
11563 default_ar_deterministic=0
11564 fi
11565
11566
11567
11568 cat >>confdefs.h <<_ACEOF
11569 #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11570 _ACEOF
11571
11572
11573
11574 # Check whether --enable-default-strings-all was given.
11575 if test "${enable_default_strings_all+set}" = set; then :
11576 enableval=$enable_default_strings_all;
11577 if test "${enableval}" = no; then
11578 default_strings_all=0
11579 else
11580 default_strings_all=1
11581 fi
11582 else
11583 default_strings_all=1
11584 fi
11585
11586
11587
11588 cat >>confdefs.h <<_ACEOF
11589 #define DEFAULT_STRINGS_ALL $default_strings_all
11590 _ACEOF
11591
11592
11593
11594 # Check whether --enable-f-for-ifunc-symbols was given.
11595 if test "${enable_f_for_ifunc_symbols+set}" = set; then :
11596 enableval=$enable_f_for_ifunc_symbols;
11597 if test "${enableval}" = no; then
11598 default_f_for_ifunc=0
11599 else
11600 default_f_for_ifunc=1
11601 fi
11602 else
11603 default_f_for_ifunc=0
11604 fi
11605
11606
11607
11608 cat >>confdefs.h <<_ACEOF
11609 #define DEFAULT_F_FOR_IFUNC_SYMBOLS $default_f_for_ifunc
11610 _ACEOF
11611
11612
11613
11614 # Check whether --enable-follow-debug-links was given.
11615 if test "${enable_follow_debug_links+set}" = set; then :
11616 enableval=$enable_follow_debug_links;
11617 if test "${enableval}" = no; then
11618 default_for_follow_links=0
11619 else
11620 default_for_follow_links=1
11621 fi
11622 else
11623 default_for_follow_links=1
11624 fi
11625
11626
11627
11628 cat >>confdefs.h <<_ACEOF
11629 #define DEFAULT_FOR_FOLLOW_LINKS $default_for_follow_links
11630 _ACEOF
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11642 if test -n "$ac_tool_prefix"; then
11643 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11644 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11646 $as_echo_n "checking for $ac_word... " >&6; }
11647 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11648 $as_echo_n "(cached) " >&6
11649 else
11650 case $PKG_CONFIG in
11651 [\\/]* | ?:[\\/]*)
11652 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11653 ;;
11654 *)
11655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656 for as_dir in $PATH
11657 do
11658 IFS=$as_save_IFS
11659 test -z "$as_dir" && as_dir=.
11660 for ac_exec_ext in '' $ac_executable_extensions; do
11661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11662 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11664 break 2
11665 fi
11666 done
11667 done
11668 IFS=$as_save_IFS
11669
11670 ;;
11671 esac
11672 fi
11673 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11674 if test -n "$PKG_CONFIG"; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11676 $as_echo "$PKG_CONFIG" >&6; }
11677 else
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679 $as_echo "no" >&6; }
11680 fi
11681
11682
11683 fi
11684 if test -z "$ac_cv_path_PKG_CONFIG"; then
11685 ac_pt_PKG_CONFIG=$PKG_CONFIG
11686 # Extract the first word of "pkg-config", so it can be a program name with args.
11687 set dummy pkg-config; ac_word=$2
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11689 $as_echo_n "checking for $ac_word... " >&6; }
11690 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11691 $as_echo_n "(cached) " >&6
11692 else
11693 case $ac_pt_PKG_CONFIG in
11694 [\\/]* | ?:[\\/]*)
11695 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11696 ;;
11697 *)
11698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in $PATH
11700 do
11701 IFS=$as_save_IFS
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
11704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11705 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 break 2
11708 fi
11709 done
11710 done
11711 IFS=$as_save_IFS
11712
11713 ;;
11714 esac
11715 fi
11716 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11717 if test -n "$ac_pt_PKG_CONFIG"; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11719 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11720 else
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722 $as_echo "no" >&6; }
11723 fi
11724
11725 if test "x$ac_pt_PKG_CONFIG" = x; then
11726 PKG_CONFIG=""
11727 else
11728 case $cross_compiling:$ac_tool_warned in
11729 yes:)
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11732 ac_tool_warned=yes ;;
11733 esac
11734 PKG_CONFIG=$ac_pt_PKG_CONFIG
11735 fi
11736 else
11737 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11738 fi
11739
11740 fi
11741 if test -n "$PKG_CONFIG"; then
11742 _pkg_min_version=0.9.0
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11744 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11745 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11747 $as_echo "yes" >&6; }
11748 else
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750 $as_echo "no" >&6; }
11751 PKG_CONFIG=""
11752 fi
11753 fi
11754
11755 # Handle optional debuginfod support
11756
11757 # Check whether --with-debuginfod was given.
11758 if test "${with_debuginfod+set}" = set; then :
11759 withval=$with_debuginfod;
11760 else
11761 with_debuginfod=auto
11762 fi
11763
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
11765 $as_echo_n "checking whether to use debuginfod... " >&6; }
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
11767 $as_echo "$with_debuginfod" >&6; }
11768
11769 if test "x$with_debuginfod" != xno; then
11770
11771 pkg_failed=no
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
11773 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
11774
11775 if test -n "$DEBUGINFOD_CFLAGS"; then
11776 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
11777 elif test -n "$PKG_CONFIG"; then
11778 if test -n "$PKG_CONFIG" && \
11779 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11780 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11781 ac_status=$?
11782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11783 test $ac_status = 0; }; then
11784 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
11785 test "x$?" != "x0" && pkg_failed=yes
11786 else
11787 pkg_failed=yes
11788 fi
11789 else
11790 pkg_failed=untried
11791 fi
11792 if test -n "$DEBUGINFOD_LIBS"; then
11793 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
11794 elif test -n "$PKG_CONFIG"; then
11795 if test -n "$PKG_CONFIG" && \
11796 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11797 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11798 ac_status=$?
11799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11800 test $ac_status = 0; }; then
11801 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
11802 test "x$?" != "x0" && pkg_failed=yes
11803 else
11804 pkg_failed=yes
11805 fi
11806 else
11807 pkg_failed=untried
11808 fi
11809
11810 if test $pkg_failed = no; then
11811 pkg_save_LDFLAGS="$LDFLAGS"
11812 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814 /* end confdefs.h. */
11815
11816 int
11817 main ()
11818 {
11819
11820 ;
11821 return 0;
11822 }
11823 _ACEOF
11824 if ac_fn_c_try_link "$LINENO"; then :
11825
11826 else
11827 pkg_failed=yes
11828 fi
11829 rm -f core conftest.err conftest.$ac_objext \
11830 conftest$ac_exeext conftest.$ac_ext
11831 LDFLAGS=$pkg_save_LDFLAGS
11832 fi
11833
11834
11835
11836 if test $pkg_failed = yes; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11839
11840 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11841 _pkg_short_errors_supported=yes
11842 else
11843 _pkg_short_errors_supported=no
11844 fi
11845 if test $_pkg_short_errors_supported = yes; then
11846 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
11847 else
11848 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
11849 fi
11850 # Put the nasty error message in config.log where it belongs
11851 echo "$DEBUGINFOD_PKG_ERRORS" >&5
11852
11853 if test "x$with_debuginfod" = xyes; then
11854 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
11855 else
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
11857 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
11858 fi
11859 elif test $pkg_failed = untried; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11862 if test "x$with_debuginfod" = xyes; then
11863 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
11866 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
11867 fi
11868 else
11869 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
11870 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11872 $as_echo "yes" >&6; }
11873
11874 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
11875
11876 fi
11877 else
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
11879 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
11880 fi
11881
11882
11883 # Check whether --enable-libctf was given.
11884 if test "${enable_libctf+set}" = set; then :
11885 enableval=$enable_libctf;
11886 case "$enableval" in
11887 yes|no) ;;
11888 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
11889 esac
11890
11891 else
11892 enable_libctf=yes
11893 fi
11894
11895
11896 if test "${enable_libctf}" = yes; then
11897
11898 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
11899
11900 fi
11901 if test "${enable_libctf}" = yes; then
11902 ENABLE_LIBCTF_TRUE=
11903 ENABLE_LIBCTF_FALSE='#'
11904 else
11905 ENABLE_LIBCTF_TRUE='#'
11906 ENABLE_LIBCTF_FALSE=
11907 fi
11908
11909
11910
11911 # Set the 'development' global.
11912 . $srcdir/../bfd/development.sh
11913
11914 # Set acp_cpp_for_build variable
11915 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11916
11917 # Default set of GCC warnings to enable.
11918 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11919 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11920
11921 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11924 __GNUC__
11925 _ACEOF
11926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11927 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11928
11929 else
11930 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11931 fi
11932 rm -f conftest*
11933
11934
11935 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11938 __GNUC__
11939 _ACEOF
11940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11941 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11942
11943 else
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11946 __clang__
11947 _ACEOF
11948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11949 $EGREP "^__clang__$" >/dev/null 2>&1; then :
11950 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11951 fi
11952 rm -f conftest*
11953
11954 fi
11955 rm -f conftest*
11956
11957
11958 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11959 WARN_WRITE_STRINGS=""
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962 __GNUC__
11963 _ACEOF
11964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11965 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11966
11967 else
11968 WARN_WRITE_STRINGS="-Wwrite-strings"
11969 fi
11970 rm -f conftest*
11971
11972
11973 # Verify CC_FOR_BUILD to be compatible with warning flags
11974
11975 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11978 __GNUC__
11979 _ACEOF
11980 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11981 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11982
11983 else
11984 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
11985 fi
11986 rm -f conftest*
11987
11988
11989 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11992 __GNUC__
11993 _ACEOF
11994 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11995 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11996
11997 else
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12000 __clang__
12001 _ACEOF
12002 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12003 $EGREP "^__clang__$" >/dev/null 2>&1; then :
12004 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12005 fi
12006 rm -f conftest*
12007
12008 fi
12009 rm -f conftest*
12010
12011
12012 # Check whether --enable-werror was given.
12013 if test "${enable_werror+set}" = set; then :
12014 enableval=$enable_werror; case "${enableval}" in
12015 yes | y) ERROR_ON_WARNING="yes" ;;
12016 no | n) ERROR_ON_WARNING="no" ;;
12017 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12018 esac
12019 fi
12020
12021
12022 # Disable -Wformat by default when using gcc on mingw
12023 case "${host}" in
12024 *-*-mingw32*)
12025 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12026 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12027 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12028 fi
12029 ;;
12030 *) ;;
12031 esac
12032
12033 # Enable -Werror by default when using gcc. Turn it off for releases.
12034 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12035 ERROR_ON_WARNING=yes
12036 fi
12037
12038 NO_WERROR=
12039 if test "${ERROR_ON_WARNING}" = yes ; then
12040 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12041 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12042 NO_WERROR="-Wno-error"
12043 fi
12044
12045 if test "${GCC}" = yes ; then
12046 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12047 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12048 fi
12049
12050 # Check whether --enable-build-warnings was given.
12051 if test "${enable_build_warnings+set}" = set; then :
12052 enableval=$enable_build_warnings; case "${enableval}" in
12053 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12054 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12055 no) if test "${GCC}" = yes ; then
12056 WARN_CFLAGS="-w"
12057 WARN_CFLAGS_FOR_BUILD="-w"
12058 fi;;
12059 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12060 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12061 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12062 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12063 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12064 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12065 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12066 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12067 esac
12068 fi
12069
12070
12071 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12072 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12073 fi
12074
12075
12076
12077
12078
12079
12080
12081 ac_config_headers="$ac_config_headers config.h:config.in"
12082
12083
12084
12085
12086 if test -z "$target" ; then
12087 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12088 fi
12089 if test -z "$host" ; then
12090 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
12091 fi
12092
12093 for ac_prog in 'bison -y' byacc
12094 do
12095 # Extract the first word of "$ac_prog", so it can be a program name with args.
12096 set dummy $ac_prog; ac_word=$2
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12098 $as_echo_n "checking for $ac_word... " >&6; }
12099 if ${ac_cv_prog_YACC+:} false; then :
12100 $as_echo_n "(cached) " >&6
12101 else
12102 if test -n "$YACC"; then
12103 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12104 else
12105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106 for as_dir in $PATH
12107 do
12108 IFS=$as_save_IFS
12109 test -z "$as_dir" && as_dir=.
12110 for ac_exec_ext in '' $ac_executable_extensions; do
12111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12112 ac_cv_prog_YACC="$ac_prog"
12113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114 break 2
12115 fi
12116 done
12117 done
12118 IFS=$as_save_IFS
12119
12120 fi
12121 fi
12122 YACC=$ac_cv_prog_YACC
12123 if test -n "$YACC"; then
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12125 $as_echo "$YACC" >&6; }
12126 else
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12129 fi
12130
12131
12132 test -n "$YACC" && break
12133 done
12134 test -n "$YACC" || YACC="yacc"
12135
12136 for ac_prog in flex lex
12137 do
12138 # Extract the first word of "$ac_prog", so it can be a program name with args.
12139 set dummy $ac_prog; ac_word=$2
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141 $as_echo_n "checking for $ac_word... " >&6; }
12142 if ${ac_cv_prog_LEX+:} false; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 if test -n "$LEX"; then
12146 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12147 else
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12150 do
12151 IFS=$as_save_IFS
12152 test -z "$as_dir" && as_dir=.
12153 for ac_exec_ext in '' $ac_executable_extensions; do
12154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12155 ac_cv_prog_LEX="$ac_prog"
12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 break 2
12158 fi
12159 done
12160 done
12161 IFS=$as_save_IFS
12162
12163 fi
12164 fi
12165 LEX=$ac_cv_prog_LEX
12166 if test -n "$LEX"; then
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12168 $as_echo "$LEX" >&6; }
12169 else
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171 $as_echo "no" >&6; }
12172 fi
12173
12174
12175 test -n "$LEX" && break
12176 done
12177 test -n "$LEX" || LEX=":"
12178
12179 case "$LEX" in
12180 :|*"missing "*) ;;
12181 *) cat >conftest.l <<_ACEOF
12182 %%
12183 a { ECHO; }
12184 b { REJECT; }
12185 c { yymore (); }
12186 d { yyless (1); }
12187 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12188 yyless ((input () != 0)); }
12189 f { unput (yytext[0]); }
12190 . { BEGIN INITIAL; }
12191 %%
12192 #ifdef YYTEXT_POINTER
12193 extern char *yytext;
12194 #endif
12195 int
12196 main (void)
12197 {
12198 return ! yylex () + ! yywrap ();
12199 }
12200 _ACEOF
12201 { { ac_try="$LEX conftest.l"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12205 esac
12206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12207 $as_echo "$ac_try_echo"; } >&5
12208 (eval "$LEX conftest.l") 2>&5
12209 ac_status=$?
12210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12211 test $ac_status = 0; }
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12213 $as_echo_n "checking lex output file root... " >&6; }
12214 if ${ac_cv_prog_lex_root+:} false; then :
12215 $as_echo_n "(cached) " >&6
12216 else
12217
12218 if test -f lex.yy.c; then
12219 ac_cv_prog_lex_root=lex.yy
12220 elif test -f lexyy.c; then
12221 ac_cv_prog_lex_root=lexyy
12222 else
12223 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12224 fi
12225 fi
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12227 $as_echo "$ac_cv_prog_lex_root" >&6; }
12228 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12229
12230 if test -z "${LEXLIB+set}"; then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12232 $as_echo_n "checking lex library... " >&6; }
12233 if ${ac_cv_lib_lex+:} false; then :
12234 $as_echo_n "(cached) " >&6
12235 else
12236
12237 ac_save_LIBS=$LIBS
12238 ac_cv_lib_lex='none needed'
12239 for ac_lib in '' -lfl -ll; do
12240 LIBS="$ac_lib $ac_save_LIBS"
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12243 `cat $LEX_OUTPUT_ROOT.c`
12244 _ACEOF
12245 if ac_fn_c_try_link "$LINENO"; then :
12246 ac_cv_lib_lex=$ac_lib
12247 fi
12248 rm -f core conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250 test "$ac_cv_lib_lex" != 'none needed' && break
12251 done
12252 LIBS=$ac_save_LIBS
12253
12254 fi
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12256 $as_echo "$ac_cv_lib_lex" >&6; }
12257 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12258 fi
12259
12260
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12262 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12263 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 # POSIX says lex can declare yytext either as a pointer or an array; the
12267 # default is implementation-dependent. Figure out which it is, since
12268 # not all implementations provide the %pointer and %array declarations.
12269 ac_cv_prog_lex_yytext_pointer=no
12270 ac_save_LIBS=$LIBS
12271 LIBS="$LEXLIB $ac_save_LIBS"
12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12274
12275 #define YYTEXT_POINTER 1
12276 `cat $LEX_OUTPUT_ROOT.c`
12277 _ACEOF
12278 if ac_fn_c_try_link "$LINENO"; then :
12279 ac_cv_prog_lex_yytext_pointer=yes
12280 fi
12281 rm -f core conftest.err conftest.$ac_objext \
12282 conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_save_LIBS
12284
12285 fi
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12287 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12288 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12289
12290 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12291
12292 fi
12293 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12294 ;;
12295 esac
12296 if test "$LEX" = :; then
12297 LEX=${am_missing_run}flex
12298 fi
12299
12300 ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW"
12301 # If we haven't got the data from the intl directory,
12302 # assume NLS is disabled.
12303 USE_NLS=no
12304 LIBINTL=
12305 LIBINTL_DEP=
12306 INCINTL=
12307 XGETTEXT=
12308 GMSGFMT=
12309 POSUB=
12310
12311 if test -f ../intl/config.intl; then
12312 . ../intl/config.intl
12313 fi
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12315 $as_echo_n "checking whether NLS is requested... " >&6; }
12316 if test x"$USE_NLS" != xyes; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12321 $as_echo "yes" >&6; }
12322
12323 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12324
12325
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12327 $as_echo_n "checking for catalogs to be installed... " >&6; }
12328 # Look for .po and .gmo files in the source directory.
12329 CATALOGS=
12330 XLINGUAS=
12331 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12332 # If there aren't any .gmo files the shell will give us the
12333 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12334 # weeded out.
12335 case "$cat" in *\**)
12336 continue;;
12337 esac
12338 # The quadruple backslash is collapsed to a double backslash
12339 # by the backticks, then collapsed again by the double quotes,
12340 # leaving us with one backslash in the sed expression (right
12341 # before the dot that mustn't act as a wildcard).
12342 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12343 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12344 # The user is allowed to set LINGUAS to a list of languages to
12345 # install catalogs for. If it's empty that means "all of them."
12346 if test "x$LINGUAS" = x; then
12347 CATALOGS="$CATALOGS $cat"
12348 XLINGUAS="$XLINGUAS $lang"
12349 else
12350 case "$LINGUAS" in *$lang*)
12351 CATALOGS="$CATALOGS $cat"
12352 XLINGUAS="$XLINGUAS $lang"
12353 ;;
12354 esac
12355 fi
12356 done
12357 LINGUAS="$XLINGUAS"
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12359 $as_echo "$LINGUAS" >&6; }
12360
12361
12362 DATADIRNAME=share
12363
12364 INSTOBJEXT=.mo
12365
12366 GENCAT=gencat
12367
12368 CATOBJEXT=.gmo
12369
12370 fi
12371
12372 MKINSTALLDIRS=
12373 if test -n "$ac_aux_dir"; then
12374 case "$ac_aux_dir" in
12375 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12376 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12377 esac
12378 fi
12379 if test -z "$MKINSTALLDIRS"; then
12380 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12381 fi
12382
12383
12384
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12386 $as_echo_n "checking whether NLS is requested... " >&6; }
12387 # Check whether --enable-nls was given.
12388 if test "${enable_nls+set}" = set; then :
12389 enableval=$enable_nls; USE_NLS=$enableval
12390 else
12391 USE_NLS=yes
12392 fi
12393
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12395 $as_echo "$USE_NLS" >&6; }
12396
12397
12398
12399
12400
12401
12402 # Prepare PATH_SEPARATOR.
12403 # The user is always right.
12404 if test "${PATH_SEPARATOR+set}" != set; then
12405 echo "#! /bin/sh" >conf$$.sh
12406 echo "exit 0" >>conf$$.sh
12407 chmod +x conf$$.sh
12408 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12409 PATH_SEPARATOR=';'
12410 else
12411 PATH_SEPARATOR=:
12412 fi
12413 rm -f conf$$.sh
12414 fi
12415
12416 # Find out how to test for executable files. Don't use a zero-byte file,
12417 # as systems may use methods other than mode bits to determine executability.
12418 cat >conf$$.file <<_ASEOF
12419 #! /bin/sh
12420 exit 0
12421 _ASEOF
12422 chmod +x conf$$.file
12423 if test -x conf$$.file >/dev/null 2>&1; then
12424 ac_executable_p="test -x"
12425 else
12426 ac_executable_p="test -f"
12427 fi
12428 rm -f conf$$.file
12429
12430 # Extract the first word of "msgfmt", so it can be a program name with args.
12431 set dummy msgfmt; ac_word=$2
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12433 $as_echo_n "checking for $ac_word... " >&6; }
12434 if ${ac_cv_path_MSGFMT+:} false; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 case "$MSGFMT" in
12438 [\\/]* | ?:[\\/]*)
12439 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12440 ;;
12441 *)
12442 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12443 for ac_dir in $PATH; do
12444 IFS="$ac_save_IFS"
12445 test -z "$ac_dir" && ac_dir=.
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12448 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12449 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12450 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12451 break 2
12452 fi
12453 fi
12454 done
12455 done
12456 IFS="$ac_save_IFS"
12457 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12458 ;;
12459 esac
12460 fi
12461 MSGFMT="$ac_cv_path_MSGFMT"
12462 if test "$MSGFMT" != ":"; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12464 $as_echo "$MSGFMT" >&6; }
12465 else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12468 fi
12469
12470 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12471 set dummy gmsgfmt; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if ${ac_cv_path_GMSGFMT+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 case $GMSGFMT in
12478 [\\/]* | ?:[\\/]*)
12479 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12480 ;;
12481 *)
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12484 do
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12489 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 break 2
12492 fi
12493 done
12494 done
12495 IFS=$as_save_IFS
12496
12497 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12498 ;;
12499 esac
12500 fi
12501 GMSGFMT=$ac_cv_path_GMSGFMT
12502 if test -n "$GMSGFMT"; then
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12504 $as_echo "$GMSGFMT" >&6; }
12505 else
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507 $as_echo "no" >&6; }
12508 fi
12509
12510
12511
12512
12513 # Prepare PATH_SEPARATOR.
12514 # The user is always right.
12515 if test "${PATH_SEPARATOR+set}" != set; then
12516 echo "#! /bin/sh" >conf$$.sh
12517 echo "exit 0" >>conf$$.sh
12518 chmod +x conf$$.sh
12519 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12520 PATH_SEPARATOR=';'
12521 else
12522 PATH_SEPARATOR=:
12523 fi
12524 rm -f conf$$.sh
12525 fi
12526
12527 # Find out how to test for executable files. Don't use a zero-byte file,
12528 # as systems may use methods other than mode bits to determine executability.
12529 cat >conf$$.file <<_ASEOF
12530 #! /bin/sh
12531 exit 0
12532 _ASEOF
12533 chmod +x conf$$.file
12534 if test -x conf$$.file >/dev/null 2>&1; then
12535 ac_executable_p="test -x"
12536 else
12537 ac_executable_p="test -f"
12538 fi
12539 rm -f conf$$.file
12540
12541 # Extract the first word of "xgettext", so it can be a program name with args.
12542 set dummy xgettext; ac_word=$2
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544 $as_echo_n "checking for $ac_word... " >&6; }
12545 if ${ac_cv_path_XGETTEXT+:} false; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 case "$XGETTEXT" in
12549 [\\/]* | ?:[\\/]*)
12550 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12551 ;;
12552 *)
12553 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12554 for ac_dir in $PATH; do
12555 IFS="$ac_save_IFS"
12556 test -z "$ac_dir" && ac_dir=.
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12559 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12560 (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
12561 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12562 break 2
12563 fi
12564 fi
12565 done
12566 done
12567 IFS="$ac_save_IFS"
12568 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12569 ;;
12570 esac
12571 fi
12572 XGETTEXT="$ac_cv_path_XGETTEXT"
12573 if test "$XGETTEXT" != ":"; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12575 $as_echo "$XGETTEXT" >&6; }
12576 else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12579 fi
12580
12581 rm -f messages.po
12582
12583
12584 # Prepare PATH_SEPARATOR.
12585 # The user is always right.
12586 if test "${PATH_SEPARATOR+set}" != set; then
12587 echo "#! /bin/sh" >conf$$.sh
12588 echo "exit 0" >>conf$$.sh
12589 chmod +x conf$$.sh
12590 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12591 PATH_SEPARATOR=';'
12592 else
12593 PATH_SEPARATOR=:
12594 fi
12595 rm -f conf$$.sh
12596 fi
12597
12598 # Find out how to test for executable files. Don't use a zero-byte file,
12599 # as systems may use methods other than mode bits to determine executability.
12600 cat >conf$$.file <<_ASEOF
12601 #! /bin/sh
12602 exit 0
12603 _ASEOF
12604 chmod +x conf$$.file
12605 if test -x conf$$.file >/dev/null 2>&1; then
12606 ac_executable_p="test -x"
12607 else
12608 ac_executable_p="test -f"
12609 fi
12610 rm -f conf$$.file
12611
12612 # Extract the first word of "msgmerge", so it can be a program name with args.
12613 set dummy msgmerge; ac_word=$2
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12615 $as_echo_n "checking for $ac_word... " >&6; }
12616 if ${ac_cv_path_MSGMERGE+:} false; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 case "$MSGMERGE" in
12620 [\\/]* | ?:[\\/]*)
12621 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12622 ;;
12623 *)
12624 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12625 for ac_dir in $PATH; do
12626 IFS="$ac_save_IFS"
12627 test -z "$ac_dir" && ac_dir=.
12628 for ac_exec_ext in '' $ac_executable_extensions; do
12629 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12630 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12631 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12632 break 2
12633 fi
12634 fi
12635 done
12636 done
12637 IFS="$ac_save_IFS"
12638 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12639 ;;
12640 esac
12641 fi
12642 MSGMERGE="$ac_cv_path_MSGMERGE"
12643 if test "$MSGMERGE" != ":"; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12645 $as_echo "$MSGMERGE" >&6; }
12646 else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648 $as_echo "no" >&6; }
12649 fi
12650
12651
12652 if test "$GMSGFMT" != ":"; then
12653 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12654 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12655 : ;
12656 else
12657 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12659 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12660 GMSGFMT=":"
12661 fi
12662 fi
12663
12664 if test "$XGETTEXT" != ":"; then
12665 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12666 (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
12667 : ;
12668 else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12670 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12671 XGETTEXT=":"
12672 fi
12673 rm -f messages.po
12674 fi
12675
12676 ac_config_commands="$ac_config_commands default-1"
12677
12678
12679
12680
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12682 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12683 # Check whether --enable-maintainer-mode was given.
12684 if test "${enable_maintainer_mode+set}" = set; then :
12685 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12686 else
12687 USE_MAINTAINER_MODE=no
12688 fi
12689
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12691 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12692 if test $USE_MAINTAINER_MODE = yes; then
12693 MAINTAINER_MODE_TRUE=
12694 MAINTAINER_MODE_FALSE='#'
12695 else
12696 MAINTAINER_MODE_TRUE='#'
12697 MAINTAINER_MODE_FALSE=
12698 fi
12699
12700 MAINT=$MAINTAINER_MODE_TRUE
12701
12702
12703 if false; then
12704 GENINSRC_NEVER_TRUE=
12705 GENINSRC_NEVER_FALSE='#'
12706 else
12707 GENINSRC_NEVER_TRUE='#'
12708 GENINSRC_NEVER_FALSE=
12709 fi
12710
12711
12712 if test -n "$EXEEXT"; then
12713
12714 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
12715
12716 fi
12717
12718 cat >>confdefs.h <<_ACEOF
12719 #define EXECUTABLE_SUFFIX "${EXEEXT}"
12720 _ACEOF
12721
12722
12723 # host-specific stuff:
12724
12725 HDEFINES=
12726
12727 . ${srcdir}/../bfd/configure.host
12728
12729
12730 AR=${AR-ar}
12731
12732 if test -n "$ac_tool_prefix"; then
12733 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12734 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736 $as_echo_n "checking for $ac_word... " >&6; }
12737 if ${ac_cv_prog_RANLIB+:} false; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 if test -n "$RANLIB"; then
12741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12742 else
12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744 for as_dir in $PATH
12745 do
12746 IFS=$as_save_IFS
12747 test -z "$as_dir" && as_dir=.
12748 for ac_exec_ext in '' $ac_executable_extensions; do
12749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12750 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12752 break 2
12753 fi
12754 done
12755 done
12756 IFS=$as_save_IFS
12757
12758 fi
12759 fi
12760 RANLIB=$ac_cv_prog_RANLIB
12761 if test -n "$RANLIB"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12763 $as_echo "$RANLIB" >&6; }
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12767 fi
12768
12769
12770 fi
12771 if test -z "$ac_cv_prog_RANLIB"; then
12772 ac_ct_RANLIB=$RANLIB
12773 # Extract the first word of "ranlib", so it can be a program name with args.
12774 set dummy ranlib; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 if test -n "$ac_ct_RANLIB"; then
12781 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12782 else
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12785 do
12786 IFS=$as_save_IFS
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12790 ac_cv_prog_ac_ct_RANLIB="ranlib"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792 break 2
12793 fi
12794 done
12795 done
12796 IFS=$as_save_IFS
12797
12798 fi
12799 fi
12800 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12801 if test -n "$ac_ct_RANLIB"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12803 $as_echo "$ac_ct_RANLIB" >&6; }
12804 else
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 $as_echo "no" >&6; }
12807 fi
12808
12809 if test "x$ac_ct_RANLIB" = x; then
12810 RANLIB=":"
12811 else
12812 case $cross_compiling:$ac_tool_warned in
12813 yes:)
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12816 ac_tool_warned=yes ;;
12817 esac
12818 RANLIB=$ac_ct_RANLIB
12819 fi
12820 else
12821 RANLIB="$ac_cv_prog_RANLIB"
12822 fi
12823
12824
12825
12826 # Put a plausible default for CC_FOR_BUILD in Makefile.
12827 if test -z "$CC_FOR_BUILD"; then
12828 if test "x$cross_compiling" = "xno"; then
12829 CC_FOR_BUILD='$(CC)'
12830 else
12831 CC_FOR_BUILD=gcc
12832 fi
12833 fi
12834
12835 # Also set EXEEXT_FOR_BUILD.
12836 if test "x$cross_compiling" = "xno"; then
12837 EXEEXT_FOR_BUILD='$(EXEEXT)'
12838 else
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12840 $as_echo_n "checking for build system executable suffix... " >&6; }
12841 if ${bfd_cv_build_exeext+:} false; then :
12842 $as_echo_n "(cached) " >&6
12843 else
12844 rm -f conftest*
12845 echo 'int main () { return 0; }' > conftest.c
12846 bfd_cv_build_exeext=
12847 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12848 for file in conftest.*; do
12849 case $file in
12850 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12851 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12852 esac
12853 done
12854 rm -f conftest*
12855 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12856 fi
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12858 $as_echo "$bfd_cv_build_exeext" >&6; }
12859 EXEEXT_FOR_BUILD=""
12860 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12861 fi
12862
12863
12864 DEMANGLER_NAME=c++filt
12865 case "${host}" in
12866 *-*-go32* | *-*-msdos*)
12867 DEMANGLER_NAME=cxxfilt
12868 esac
12869
12870
12871 # We use headers from include/ that check various HAVE_*_H macros, thus
12872 # should ensure they are set by configure. This is true even when C99
12873 # guarantees they are available.
12874 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
12875 # Besides those, we need to check anything used in binutils/ not in C99.
12876 for ac_header in fcntl.h inttypes.h stdint.h sys/file.h \
12877 sys/stat.h sys/time.h sys/types.h unistd.h
12878 do :
12879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12880 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12881 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12882 cat >>confdefs.h <<_ACEOF
12883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12884 _ACEOF
12885
12886 fi
12887
12888 done
12889
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12891 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12892 if ${ac_cv_header_sys_wait_h+:} false; then :
12893 $as_echo_n "(cached) " >&6
12894 else
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12897 #include <sys/types.h>
12898 #include <sys/wait.h>
12899 #ifndef WEXITSTATUS
12900 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12901 #endif
12902 #ifndef WIFEXITED
12903 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12904 #endif
12905
12906 int
12907 main ()
12908 {
12909 int s;
12910 wait (&s);
12911 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12912 ;
12913 return 0;
12914 }
12915 _ACEOF
12916 if ac_fn_c_try_compile "$LINENO"; then :
12917 ac_cv_header_sys_wait_h=yes
12918 else
12919 ac_cv_header_sys_wait_h=no
12920 fi
12921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12922 fi
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12924 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12925 if test $ac_cv_header_sys_wait_h = yes; then
12926
12927 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12928
12929 fi
12930
12931
12932
12933
12934 for ac_header in $ac_header_list
12935 do :
12936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12937 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12938 "
12939 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12940 cat >>confdefs.h <<_ACEOF
12941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12942 _ACEOF
12943
12944 fi
12945
12946 done
12947
12948
12949
12950
12951
12952
12953
12954
12955 for ac_func in getpagesize
12956 do :
12957 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12958 if test "x$ac_cv_func_getpagesize" = xyes; then :
12959 cat >>confdefs.h <<_ACEOF
12960 #define HAVE_GETPAGESIZE 1
12961 _ACEOF
12962
12963 fi
12964 done
12965
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12967 $as_echo_n "checking for working mmap... " >&6; }
12968 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 if test "$cross_compiling" = yes; then :
12972 ac_cv_func_mmap_fixed_mapped=no
12973 else
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12976 $ac_includes_default
12977 /* malloc might have been renamed as rpl_malloc. */
12978 #undef malloc
12979
12980 /* Thanks to Mike Haertel and Jim Avera for this test.
12981 Here is a matrix of mmap possibilities:
12982 mmap private not fixed
12983 mmap private fixed at somewhere currently unmapped
12984 mmap private fixed at somewhere already mapped
12985 mmap shared not fixed
12986 mmap shared fixed at somewhere currently unmapped
12987 mmap shared fixed at somewhere already mapped
12988 For private mappings, we should verify that changes cannot be read()
12989 back from the file, nor mmap's back from the file at a different
12990 address. (There have been systems where private was not correctly
12991 implemented like the infamous i386 svr4.0, and systems where the
12992 VM page cache was not coherent with the file system buffer cache
12993 like early versions of FreeBSD and possibly contemporary NetBSD.)
12994 For shared mappings, we should conversely verify that changes get
12995 propagated back to all the places they're supposed to be.
12996
12997 Grep wants private fixed already mapped.
12998 The main things grep needs to know about mmap are:
12999 * does it exist and is it safe to write into the mmap'd area
13000 * how to use it (BSD variants) */
13001
13002 #include <fcntl.h>
13003 #include <sys/mman.h>
13004
13005 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13006 char *malloc ();
13007 #endif
13008
13009 /* This mess was copied from the GNU getpagesize.h. */
13010 #ifndef HAVE_GETPAGESIZE
13011 # ifdef _SC_PAGESIZE
13012 # define getpagesize() sysconf(_SC_PAGESIZE)
13013 # else /* no _SC_PAGESIZE */
13014 # ifdef HAVE_SYS_PARAM_H
13015 # include <sys/param.h>
13016 # ifdef EXEC_PAGESIZE
13017 # define getpagesize() EXEC_PAGESIZE
13018 # else /* no EXEC_PAGESIZE */
13019 # ifdef NBPG
13020 # define getpagesize() NBPG * CLSIZE
13021 # ifndef CLSIZE
13022 # define CLSIZE 1
13023 # endif /* no CLSIZE */
13024 # else /* no NBPG */
13025 # ifdef NBPC
13026 # define getpagesize() NBPC
13027 # else /* no NBPC */
13028 # ifdef PAGESIZE
13029 # define getpagesize() PAGESIZE
13030 # endif /* PAGESIZE */
13031 # endif /* no NBPC */
13032 # endif /* no NBPG */
13033 # endif /* no EXEC_PAGESIZE */
13034 # else /* no HAVE_SYS_PARAM_H */
13035 # define getpagesize() 8192 /* punt totally */
13036 # endif /* no HAVE_SYS_PARAM_H */
13037 # endif /* no _SC_PAGESIZE */
13038
13039 #endif /* no HAVE_GETPAGESIZE */
13040
13041 int
13042 main ()
13043 {
13044 char *data, *data2, *data3;
13045 const char *cdata2;
13046 int i, pagesize;
13047 int fd, fd2;
13048
13049 pagesize = getpagesize ();
13050
13051 /* First, make a file with some known garbage in it. */
13052 data = (char *) malloc (pagesize);
13053 if (!data)
13054 return 1;
13055 for (i = 0; i < pagesize; ++i)
13056 *(data + i) = rand ();
13057 umask (0);
13058 fd = creat ("conftest.mmap", 0600);
13059 if (fd < 0)
13060 return 2;
13061 if (write (fd, data, pagesize) != pagesize)
13062 return 3;
13063 close (fd);
13064
13065 /* Next, check that the tail of a page is zero-filled. File must have
13066 non-zero length, otherwise we risk SIGBUS for entire page. */
13067 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13068 if (fd2 < 0)
13069 return 4;
13070 cdata2 = "";
13071 if (write (fd2, cdata2, 1) != 1)
13072 return 5;
13073 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13074 if (data2 == MAP_FAILED)
13075 return 6;
13076 for (i = 0; i < pagesize; ++i)
13077 if (*(data2 + i))
13078 return 7;
13079 close (fd2);
13080 if (munmap (data2, pagesize))
13081 return 8;
13082
13083 /* Next, try to mmap the file at a fixed address which already has
13084 something else allocated at it. If we can, also make sure that
13085 we see the same garbage. */
13086 fd = open ("conftest.mmap", O_RDWR);
13087 if (fd < 0)
13088 return 9;
13089 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13090 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13091 return 10;
13092 for (i = 0; i < pagesize; ++i)
13093 if (*(data + i) != *(data2 + i))
13094 return 11;
13095
13096 /* Finally, make sure that changes to the mapped area do not
13097 percolate back to the file as seen by read(). (This is a bug on
13098 some variants of i386 svr4.0.) */
13099 for (i = 0; i < pagesize; ++i)
13100 *(data2 + i) = *(data2 + i) + 1;
13101 data3 = (char *) malloc (pagesize);
13102 if (!data3)
13103 return 12;
13104 if (read (fd, data3, pagesize) != pagesize)
13105 return 13;
13106 for (i = 0; i < pagesize; ++i)
13107 if (*(data + i) != *(data3 + i))
13108 return 14;
13109 close (fd);
13110 return 0;
13111 }
13112 _ACEOF
13113 if ac_fn_c_try_run "$LINENO"; then :
13114 ac_cv_func_mmap_fixed_mapped=yes
13115 else
13116 ac_cv_func_mmap_fixed_mapped=no
13117 fi
13118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13119 conftest.$ac_objext conftest.beam conftest.$ac_ext
13120 fi
13121
13122 fi
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13124 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13125 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13126
13127 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13128
13129 fi
13130 rm -f conftest.mmap conftest.txt
13131
13132 for ac_func in getc_unlocked mkdtemp mkstemp utimensat utimes
13133 do :
13134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13135 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13136 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13137 cat >>confdefs.h <<_ACEOF
13138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13139 _ACEOF
13140
13141 fi
13142 done
13143
13144
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13146 $as_echo_n "checking for mbstate_t... " >&6; }
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13149 #include <wchar.h>
13150 int
13151 main ()
13152 {
13153 mbstate_t teststate;
13154 ;
13155 return 0;
13156 }
13157 _ACEOF
13158 if ac_fn_c_try_compile "$LINENO"; then :
13159 have_mbstate_t=yes
13160 else
13161 have_mbstate_t=no
13162 fi
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13165 $as_echo "$have_mbstate_t" >&6; }
13166 if test x"$have_mbstate_t" = xyes; then
13167
13168 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13169
13170 fi
13171
13172 # Copied from gnulib stat-time.m4.
13173 # We should just switch over to using gnulib.
13174 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
13175 #include <sys/stat.h>
13176 "
13177 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
13178
13179 cat >>confdefs.h <<_ACEOF
13180 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
13181 _ACEOF
13182
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
13184 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
13185 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
13186 $as_echo_n "(cached) " >&6
13187 else
13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 /* end confdefs.h. */
13190
13191 #include <sys/types.h>
13192 #include <sys/stat.h>
13193 #if HAVE_SYS_TIME_H
13194 # include <sys/time.h>
13195 #endif
13196 #include <time.h>
13197 struct timespec ts;
13198 struct stat st;
13199
13200 int
13201 main ()
13202 {
13203
13204 st.st_atim = ts;
13205
13206 ;
13207 return 0;
13208 }
13209 _ACEOF
13210 if ac_fn_c_try_compile "$LINENO"; then :
13211 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
13212 else
13213 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
13214 fi
13215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13216 fi
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
13218 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
13219 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
13220
13221 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
13222
13223 fi
13224 else
13225 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
13226 #include <sys/stat.h>
13227 "
13228 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
13229
13230 cat >>confdefs.h <<_ACEOF
13231 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
13232 _ACEOF
13233
13234
13235 else
13236 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
13237 #include <sys/stat.h>
13238 "
13239 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
13240
13241 cat >>confdefs.h <<_ACEOF
13242 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
13243 _ACEOF
13244
13245
13246 else
13247 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
13248 #include <sys/stat.h>
13249 "
13250 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
13251
13252 cat >>confdefs.h <<_ACEOF
13253 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
13254 _ACEOF
13255
13256
13257 fi
13258
13259 fi
13260
13261 fi
13262
13263 fi
13264
13265
13266 # Some systems have frexp only in -lm, not in -lc.
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13268 $as_echo_n "checking for library containing frexp... " >&6; }
13269 if ${ac_cv_search_frexp+:} false; then :
13270 $as_echo_n "(cached) " >&6
13271 else
13272 ac_func_search_save_LIBS=$LIBS
13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h. */
13275
13276 /* Override any GCC internal prototype to avoid an error.
13277 Use char because int might match the return type of a GCC
13278 builtin and then its argument prototype would still apply. */
13279 #ifdef __cplusplus
13280 extern "C"
13281 #endif
13282 char frexp ();
13283 int
13284 main ()
13285 {
13286 return frexp ();
13287 ;
13288 return 0;
13289 }
13290 _ACEOF
13291 for ac_lib in '' m; do
13292 if test -z "$ac_lib"; then
13293 ac_res="none required"
13294 else
13295 ac_res=-l$ac_lib
13296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13297 fi
13298 if ac_fn_c_try_link "$LINENO"; then :
13299 ac_cv_search_frexp=$ac_res
13300 fi
13301 rm -f core conftest.err conftest.$ac_objext \
13302 conftest$ac_exeext
13303 if ${ac_cv_search_frexp+:} false; then :
13304 break
13305 fi
13306 done
13307 if ${ac_cv_search_frexp+:} false; then :
13308
13309 else
13310 ac_cv_search_frexp=no
13311 fi
13312 rm conftest.$ac_ext
13313 LIBS=$ac_func_search_save_LIBS
13314 fi
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13316 $as_echo "$ac_cv_search_frexp" >&6; }
13317 ac_res=$ac_cv_search_frexp
13318 if test "$ac_res" != no; then :
13319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13320
13321 fi
13322
13323
13324
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13326 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13327 if ${am_cv_val_LC_MESSAGES+:} false; then :
13328 $as_echo_n "(cached) " >&6
13329 else
13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h. */
13332 #include <locale.h>
13333 int
13334 main ()
13335 {
13336 return LC_MESSAGES
13337 ;
13338 return 0;
13339 }
13340 _ACEOF
13341 if ac_fn_c_try_link "$LINENO"; then :
13342 am_cv_val_LC_MESSAGES=yes
13343 else
13344 am_cv_val_LC_MESSAGES=no
13345 fi
13346 rm -f core conftest.err conftest.$ac_objext \
13347 conftest$ac_exeext conftest.$ac_ext
13348 fi
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13350 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13351 if test $am_cv_val_LC_MESSAGES = yes; then
13352
13353 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13354
13355 fi
13356
13357
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13359 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13360 if ${bu_cv_decl_getopt_unistd_h+:} false; then :
13361 $as_echo_n "(cached) " >&6
13362 else
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13365 #include <unistd.h>
13366 int
13367 main ()
13368 {
13369 extern int getopt (int, char *const*, const char *);
13370 ;
13371 return 0;
13372 }
13373 _ACEOF
13374 if ac_fn_c_try_compile "$LINENO"; then :
13375 bu_cv_decl_getopt_unistd_h=yes
13376 else
13377 bu_cv_decl_getopt_unistd_h=no
13378 fi
13379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13380 fi
13381
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13383 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
13384 if test $bu_cv_decl_getopt_unistd_h = yes; then
13385
13386 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13387
13388 fi
13389
13390 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13391 # by default.
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
13393 $as_echo_n "checking for utime.h... " >&6; }
13394 if ${bu_cv_header_utime_h+:} false; then :
13395 $as_echo_n "(cached) " >&6
13396 else
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13399 #include <sys/types.h>
13400 #ifdef HAVE_TIME_H
13401 #include <time.h>
13402 #endif
13403 #include <utime.h>
13404 int
13405 main ()
13406 {
13407 struct utimbuf s;
13408 ;
13409 return 0;
13410 }
13411 _ACEOF
13412 if ac_fn_c_try_compile "$LINENO"; then :
13413 bu_cv_header_utime_h=yes
13414 else
13415 bu_cv_header_utime_h=no
13416 fi
13417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13418 fi
13419
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
13421 $as_echo "$bu_cv_header_utime_h" >&6; }
13422 if test $bu_cv_header_utime_h = yes; then
13423
13424 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
13425
13426 fi
13427
13428 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13429 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
13430 ac_have_decl=1
13431 else
13432 ac_have_decl=0
13433 fi
13434
13435 cat >>confdefs.h <<_ACEOF
13436 #define HAVE_DECL_ASPRINTF $ac_have_decl
13437 _ACEOF
13438 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
13439 if test "x$ac_cv_have_decl_environ" = xyes; then :
13440 ac_have_decl=1
13441 else
13442 ac_have_decl=0
13443 fi
13444
13445 cat >>confdefs.h <<_ACEOF
13446 #define HAVE_DECL_ENVIRON $ac_have_decl
13447 _ACEOF
13448 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
13449 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
13450 ac_have_decl=1
13451 else
13452 ac_have_decl=0
13453 fi
13454
13455 cat >>confdefs.h <<_ACEOF
13456 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
13457 _ACEOF
13458 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13459 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
13460 ac_have_decl=1
13461 else
13462 ac_have_decl=0
13463 fi
13464
13465 cat >>confdefs.h <<_ACEOF
13466 #define HAVE_DECL_STPCPY $ac_have_decl
13467 _ACEOF
13468 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13469 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13470 ac_have_decl=1
13471 else
13472 ac_have_decl=0
13473 fi
13474
13475 cat >>confdefs.h <<_ACEOF
13476 #define HAVE_DECL_STRNLEN $ac_have_decl
13477 _ACEOF
13478
13479
13480 # Link in zlib/zstd if we can. This allows us to read compressed debug
13481 # sections. This is used only by readelf.c (objdump uses bfd for
13482 # reading compressed sections).
13483
13484 # Use the system's zlib library.
13485 zlibdir="-L\$(top_builddir)/../zlib"
13486 zlibinc="-I\$(top_srcdir)/../zlib"
13487
13488 # Check whether --with-system-zlib was given.
13489 if test "${with_system_zlib+set}" = set; then :
13490 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13491 zlibdir=
13492 zlibinc=
13493 fi
13494
13495 fi
13496
13497
13498
13499
13500
13501
13502 # Check whether --with-zstd was given.
13503 if test "${with_zstd+set}" = set; then :
13504 withval=$with_zstd;
13505 else
13506 with_zstd=auto
13507 fi
13508
13509
13510 if test "$with_zstd" != no; then :
13511
13512 pkg_failed=no
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5
13514 $as_echo_n "checking for libzstd... " >&6; }
13515
13516 if test -n "$ZSTD_CFLAGS"; then
13517 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
13518 elif test -n "$PKG_CONFIG"; then
13519 if test -n "$PKG_CONFIG" && \
13520 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
13521 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
13522 ac_status=$?
13523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13524 test $ac_status = 0; }; then
13525 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd" 2>/dev/null`
13526 test "x$?" != "x0" && pkg_failed=yes
13527 else
13528 pkg_failed=yes
13529 fi
13530 else
13531 pkg_failed=untried
13532 fi
13533 if test -n "$ZSTD_LIBS"; then
13534 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
13535 elif test -n "$PKG_CONFIG"; then
13536 if test -n "$PKG_CONFIG" && \
13537 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
13538 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
13539 ac_status=$?
13540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13541 test $ac_status = 0; }; then
13542 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd" 2>/dev/null`
13543 test "x$?" != "x0" && pkg_failed=yes
13544 else
13545 pkg_failed=yes
13546 fi
13547 else
13548 pkg_failed=untried
13549 fi
13550
13551 if test $pkg_failed = no; then
13552 pkg_save_LDFLAGS="$LDFLAGS"
13553 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556
13557 int
13558 main ()
13559 {
13560
13561 ;
13562 return 0;
13563 }
13564 _ACEOF
13565 if ac_fn_c_try_link "$LINENO"; then :
13566
13567 else
13568 pkg_failed=yes
13569 fi
13570 rm -f core conftest.err conftest.$ac_objext \
13571 conftest$ac_exeext conftest.$ac_ext
13572 LDFLAGS=$pkg_save_LDFLAGS
13573 fi
13574
13575
13576
13577 if test $pkg_failed = yes; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579 $as_echo "no" >&6; }
13580
13581 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13582 _pkg_short_errors_supported=yes
13583 else
13584 _pkg_short_errors_supported=no
13585 fi
13586 if test $_pkg_short_errors_supported = yes; then
13587 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd" 2>&1`
13588 else
13589 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd" 2>&1`
13590 fi
13591 # Put the nasty error message in config.log where it belongs
13592 echo "$ZSTD_PKG_ERRORS" >&5
13593
13594
13595 if test "$with_zstd" = yes; then
13596 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
13597 fi
13598
13599 elif test $pkg_failed = untried; then
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601 $as_echo "no" >&6; }
13602
13603 if test "$with_zstd" = yes; then
13604 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
13605 fi
13606
13607 else
13608 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
13609 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13611 $as_echo "yes" >&6; }
13612
13613
13614 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
13615
13616
13617 fi
13618
13619 fi
13620
13621
13622
13623 case "${host}" in
13624 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13625
13626 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13627 ;;
13628 esac
13629
13630 # Support for the msgpack C library.
13631
13632 # Check whether --with-msgpack was given.
13633 if test "${with_msgpack+set}" = set; then :
13634 withval=$with_msgpack;
13635 else
13636 with_msgpack=auto
13637 fi
13638
13639
13640 if test "$with_msgpack" != no; then :
13641
13642 pkg_failed=no
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgpack" >&5
13644 $as_echo_n "checking for msgpack... " >&6; }
13645
13646 if test -n "$MSGPACK_CFLAGS"; then
13647 pkg_cv_MSGPACK_CFLAGS="$MSGPACK_CFLAGS"
13648 elif test -n "$PKG_CONFIG"; then
13649 if test -n "$PKG_CONFIG" && \
13650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
13651 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
13652 ac_status=$?
13653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13654 test $ac_status = 0; }; then
13655 pkg_cv_MSGPACK_CFLAGS=`$PKG_CONFIG --cflags "msgpack" 2>/dev/null`
13656 test "x$?" != "x0" && pkg_failed=yes
13657 else
13658 pkg_failed=yes
13659 fi
13660 else
13661 pkg_failed=untried
13662 fi
13663 if test -n "$MSGPACK_LIBS"; then
13664 pkg_cv_MSGPACK_LIBS="$MSGPACK_LIBS"
13665 elif test -n "$PKG_CONFIG"; then
13666 if test -n "$PKG_CONFIG" && \
13667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
13668 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
13669 ac_status=$?
13670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13671 test $ac_status = 0; }; then
13672 pkg_cv_MSGPACK_LIBS=`$PKG_CONFIG --libs "msgpack" 2>/dev/null`
13673 test "x$?" != "x0" && pkg_failed=yes
13674 else
13675 pkg_failed=yes
13676 fi
13677 else
13678 pkg_failed=untried
13679 fi
13680
13681 if test $pkg_failed = no; then
13682 pkg_save_LDFLAGS="$LDFLAGS"
13683 LDFLAGS="$LDFLAGS $pkg_cv_MSGPACK_LIBS"
13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h. */
13686
13687 int
13688 main ()
13689 {
13690
13691 ;
13692 return 0;
13693 }
13694 _ACEOF
13695 if ac_fn_c_try_link "$LINENO"; then :
13696
13697 else
13698 pkg_failed=yes
13699 fi
13700 rm -f core conftest.err conftest.$ac_objext \
13701 conftest$ac_exeext conftest.$ac_ext
13702 LDFLAGS=$pkg_save_LDFLAGS
13703 fi
13704
13705
13706
13707 if test $pkg_failed = yes; then
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13709 $as_echo "no" >&6; }
13710
13711 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13712 _pkg_short_errors_supported=yes
13713 else
13714 _pkg_short_errors_supported=no
13715 fi
13716 if test $_pkg_short_errors_supported = yes; then
13717 MSGPACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "msgpack" 2>&1`
13718 else
13719 MSGPACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "msgpack" 2>&1`
13720 fi
13721 # Put the nasty error message in config.log where it belongs
13722 echo "$MSGPACK_PKG_ERRORS" >&5
13723
13724 if test "$with_msgpack" = yes; then :
13725 as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5
13726 fi
13727 elif test $pkg_failed = untried; then
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729 $as_echo "no" >&6; }
13730 if test "$with_msgpack" = yes; then :
13731 as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5
13732 fi
13733 else
13734 MSGPACK_CFLAGS=$pkg_cv_MSGPACK_CFLAGS
13735 MSGPACK_LIBS=$pkg_cv_MSGPACK_LIBS
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13737 $as_echo "yes" >&6; }
13738
13739 $as_echo "#define HAVE_MSGPACK 1" >>confdefs.h
13740
13741 fi
13742 fi
13743
13744 # target-specific stuff:
13745
13746 # Canonicalize the secondary target names.
13747 if test -n "$enable_targets"; then
13748 for targ in `echo $enable_targets | sed 's/,/ /g'`
13749 do
13750 result=`$ac_config_sub $targ 2>/dev/null`
13751 if test -n "$result"; then
13752 canon_targets="$canon_targets $result"
13753 else
13754 # Allow targets that config.sub doesn't recognize, like "all".
13755 canon_targets="$canon_targets $targ"
13756 fi
13757 done
13758 fi
13759
13760 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13761 if test "x$ac_cv_header_iconv_h" = xyes; then :
13762
13763 fi
13764
13765
13766
13767 if test "X$prefix" = "XNONE"; then
13768 acl_final_prefix="$ac_default_prefix"
13769 else
13770 acl_final_prefix="$prefix"
13771 fi
13772 if test "X$exec_prefix" = "XNONE"; then
13773 acl_final_exec_prefix='${prefix}'
13774 else
13775 acl_final_exec_prefix="$exec_prefix"
13776 fi
13777 acl_save_prefix="$prefix"
13778 prefix="$acl_final_prefix"
13779 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13780 prefix="$acl_save_prefix"
13781
13782
13783 # Check whether --with-gnu-ld was given.
13784 if test "${with_gnu_ld+set}" = set; then :
13785 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13786 else
13787 with_gnu_ld=no
13788 fi
13789
13790 # Prepare PATH_SEPARATOR.
13791 # The user is always right.
13792 if test "${PATH_SEPARATOR+set}" != set; then
13793 echo "#! /bin/sh" >conf$$.sh
13794 echo "exit 0" >>conf$$.sh
13795 chmod +x conf$$.sh
13796 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13797 PATH_SEPARATOR=';'
13798 else
13799 PATH_SEPARATOR=:
13800 fi
13801 rm -f conf$$.sh
13802 fi
13803 ac_prog=ld
13804 if test "$GCC" = yes; then
13805 # Check if gcc -print-prog-name=ld gives a path.
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13807 $as_echo_n "checking for ld used by GCC... " >&6; }
13808 case $host in
13809 *-*-mingw*)
13810 # gcc leaves a trailing carriage return which upsets mingw
13811 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13812 *)
13813 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13814 esac
13815 case $ac_prog in
13816 # Accept absolute paths.
13817 [\\/]* | [A-Za-z]:[\\/]*)
13818 re_direlt='/[^/][^/]*/\.\./'
13819 # Canonicalize the path of ld
13820 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13821 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13822 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13823 done
13824 test -z "$LD" && LD="$ac_prog"
13825 ;;
13826 "")
13827 # If it fails, then pretend we aren't using GCC.
13828 ac_prog=ld
13829 ;;
13830 *)
13831 # If it is relative, then search for the first ld in PATH.
13832 with_gnu_ld=unknown
13833 ;;
13834 esac
13835 elif test "$with_gnu_ld" = yes; then
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13837 $as_echo_n "checking for GNU ld... " >&6; }
13838 else
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13840 $as_echo_n "checking for non-GNU ld... " >&6; }
13841 fi
13842 if ${acl_cv_path_LD+:} false; then :
13843 $as_echo_n "(cached) " >&6
13844 else
13845 if test -z "$LD"; then
13846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13847 for ac_dir in $PATH; do
13848 test -z "$ac_dir" && ac_dir=.
13849 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13850 acl_cv_path_LD="$ac_dir/$ac_prog"
13851 # Check to see if the program is GNU ld. I'd rather use --version,
13852 # but apparently some GNU ld's only accept -v.
13853 # Break only if it was the GNU/non-GNU ld that we prefer.
13854 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
13855 test "$with_gnu_ld" != no && break
13856 else
13857 test "$with_gnu_ld" != yes && break
13858 fi
13859 fi
13860 done
13861 IFS="$ac_save_ifs"
13862 else
13863 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13864 fi
13865 fi
13866
13867 LD="$acl_cv_path_LD"
13868 if test -n "$LD"; then
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13870 $as_echo "$LD" >&6; }
13871 else
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13873 $as_echo "no" >&6; }
13874 fi
13875 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13877 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13878 if ${acl_cv_prog_gnu_ld+:} false; then :
13879 $as_echo_n "(cached) " >&6
13880 else
13881 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13882 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
13883 acl_cv_prog_gnu_ld=yes
13884 else
13885 acl_cv_prog_gnu_ld=no
13886 fi
13887 fi
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13889 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13890 with_gnu_ld=$acl_cv_prog_gnu_ld
13891
13892
13893
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13895 $as_echo_n "checking for shared library run path origin... " >&6; }
13896 if ${acl_cv_rpath+:} false; then :
13897 $as_echo_n "(cached) " >&6
13898 else
13899
13900 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13901 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13902 . ./conftest.sh
13903 rm -f ./conftest.sh
13904 acl_cv_rpath=done
13905
13906 fi
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13908 $as_echo "$acl_cv_rpath" >&6; }
13909 wl="$acl_cv_wl"
13910 libext="$acl_cv_libext"
13911 shlibext="$acl_cv_shlibext"
13912 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13913 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13914 hardcode_direct="$acl_cv_hardcode_direct"
13915 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13916 # Check whether --enable-rpath was given.
13917 if test "${enable_rpath+set}" = set; then :
13918 enableval=$enable_rpath; :
13919 else
13920 enable_rpath=yes
13921 fi
13922
13923
13924
13925
13926
13927
13928
13929
13930 use_additional=yes
13931
13932 acl_save_prefix="$prefix"
13933 prefix="$acl_final_prefix"
13934 acl_save_exec_prefix="$exec_prefix"
13935 exec_prefix="$acl_final_exec_prefix"
13936
13937 eval additional_includedir=\"$includedir\"
13938 eval additional_libdir=\"$libdir\"
13939
13940 exec_prefix="$acl_save_exec_prefix"
13941 prefix="$acl_save_prefix"
13942
13943
13944 # Check whether --with-libiconv-prefix was given.
13945 if test "${with_libiconv_prefix+set}" = set; then :
13946 withval=$with_libiconv_prefix;
13947 if test "X$withval" = "Xno"; then
13948 use_additional=no
13949 else
13950 if test "X$withval" = "X"; then
13951
13952 acl_save_prefix="$prefix"
13953 prefix="$acl_final_prefix"
13954 acl_save_exec_prefix="$exec_prefix"
13955 exec_prefix="$acl_final_exec_prefix"
13956
13957 eval additional_includedir=\"$includedir\"
13958 eval additional_libdir=\"$libdir\"
13959
13960 exec_prefix="$acl_save_exec_prefix"
13961 prefix="$acl_save_prefix"
13962
13963 else
13964 additional_includedir="$withval/include"
13965 additional_libdir="$withval/lib"
13966 fi
13967 fi
13968
13969 fi
13970
13971
13972 # Check whether --with-libiconv-type was given.
13973 if test "${with_libiconv_type+set}" = set; then :
13974 withval=$with_libiconv_type; with_libiconv_type=$withval
13975 else
13976 with_libiconv_type=auto
13977 fi
13978
13979 lib_type=`eval echo \$with_libiconv_type`
13980
13981 LIBICONV=
13982 LTLIBICONV=
13983 INCICONV=
13984 rpathdirs=
13985 ltrpathdirs=
13986 names_already_handled=
13987 names_next_round='iconv '
13988 while test -n "$names_next_round"; do
13989 names_this_round="$names_next_round"
13990 names_next_round=
13991 for name in $names_this_round; do
13992 already_handled=
13993 for n in $names_already_handled; do
13994 if test "$n" = "$name"; then
13995 already_handled=yes
13996 break
13997 fi
13998 done
13999 if test -z "$already_handled"; then
14000 names_already_handled="$names_already_handled $name"
14001 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14002 eval value=\"\$HAVE_LIB$uppername\"
14003 if test -n "$value"; then
14004 if test "$value" = yes; then
14005 eval value=\"\$LIB$uppername\"
14006 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14007 eval value=\"\$LTLIB$uppername\"
14008 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14009 else
14010 :
14011 fi
14012 else
14013 found_dir=
14014 found_la=
14015 found_so=
14016 found_a=
14017 if test $use_additional = yes; then
14018 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14019 found_dir="$additional_libdir"
14020 found_so="$additional_libdir/lib$name.$shlibext"
14021 if test -f "$additional_libdir/lib$name.la"; then
14022 found_la="$additional_libdir/lib$name.la"
14023 fi
14024 elif test x$lib_type != xshared; then
14025 if test -f "$additional_libdir/lib$name.$libext"; then
14026 found_dir="$additional_libdir"
14027 found_a="$additional_libdir/lib$name.$libext"
14028 if test -f "$additional_libdir/lib$name.la"; then
14029 found_la="$additional_libdir/lib$name.la"
14030 fi
14031 fi
14032 fi
14033 fi
14034 if test "X$found_dir" = "X"; then
14035 for x in $LDFLAGS $LTLIBICONV; do
14036
14037 acl_save_prefix="$prefix"
14038 prefix="$acl_final_prefix"
14039 acl_save_exec_prefix="$exec_prefix"
14040 exec_prefix="$acl_final_exec_prefix"
14041 eval x=\"$x\"
14042 exec_prefix="$acl_save_exec_prefix"
14043 prefix="$acl_save_prefix"
14044
14045 case "$x" in
14046 -L*)
14047 dir=`echo "X$x" | sed -e 's/^X-L//'`
14048 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14049 found_dir="$dir"
14050 found_so="$dir/lib$name.$shlibext"
14051 if test -f "$dir/lib$name.la"; then
14052 found_la="$dir/lib$name.la"
14053 fi
14054 elif test x$lib_type != xshared; then
14055 if test -f "$dir/lib$name.$libext"; then
14056 found_dir="$dir"
14057 found_a="$dir/lib$name.$libext"
14058 if test -f "$dir/lib$name.la"; then
14059 found_la="$dir/lib$name.la"
14060 fi
14061 fi
14062 fi
14063 ;;
14064 esac
14065 if test "X$found_dir" != "X"; then
14066 break
14067 fi
14068 done
14069 fi
14070 if test "X$found_dir" != "X"; then
14071 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14072 if test "X$found_so" != "X"; then
14073 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14074 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14075 else
14076 haveit=
14077 for x in $ltrpathdirs; do
14078 if test "X$x" = "X$found_dir"; then
14079 haveit=yes
14080 break
14081 fi
14082 done
14083 if test -z "$haveit"; then
14084 ltrpathdirs="$ltrpathdirs $found_dir"
14085 fi
14086 if test "$hardcode_direct" = yes; then
14087 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14088 else
14089 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14090 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14091 haveit=
14092 for x in $rpathdirs; do
14093 if test "X$x" = "X$found_dir"; then
14094 haveit=yes
14095 break
14096 fi
14097 done
14098 if test -z "$haveit"; then
14099 rpathdirs="$rpathdirs $found_dir"
14100 fi
14101 else
14102 haveit=
14103 for x in $LDFLAGS $LIBICONV; do
14104
14105 acl_save_prefix="$prefix"
14106 prefix="$acl_final_prefix"
14107 acl_save_exec_prefix="$exec_prefix"
14108 exec_prefix="$acl_final_exec_prefix"
14109 eval x=\"$x\"
14110 exec_prefix="$acl_save_exec_prefix"
14111 prefix="$acl_save_prefix"
14112
14113 if test "X$x" = "X-L$found_dir"; then
14114 haveit=yes
14115 break
14116 fi
14117 done
14118 if test -z "$haveit"; then
14119 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14120 fi
14121 if test "$hardcode_minus_L" != no; then
14122 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14123 else
14124 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14125 fi
14126 fi
14127 fi
14128 fi
14129 else
14130 if test "X$found_a" != "X"; then
14131 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14132 else
14133 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14134 fi
14135 fi
14136 additional_includedir=
14137 case "$found_dir" in
14138 */lib | */lib/)
14139 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14140 additional_includedir="$basedir/include"
14141 ;;
14142 esac
14143 if test "X$additional_includedir" != "X"; then
14144 if test "X$additional_includedir" != "X/usr/include"; then
14145 haveit=
14146 if test "X$additional_includedir" = "X/usr/local/include"; then
14147 if test -n "$GCC"; then
14148 case $host_os in
14149 linux*) haveit=yes;;
14150 esac
14151 fi
14152 fi
14153 if test -z "$haveit"; then
14154 for x in $CPPFLAGS $INCICONV; do
14155
14156 acl_save_prefix="$prefix"
14157 prefix="$acl_final_prefix"
14158 acl_save_exec_prefix="$exec_prefix"
14159 exec_prefix="$acl_final_exec_prefix"
14160 eval x=\"$x\"
14161 exec_prefix="$acl_save_exec_prefix"
14162 prefix="$acl_save_prefix"
14163
14164 if test "X$x" = "X-I$additional_includedir"; then
14165 haveit=yes
14166 break
14167 fi
14168 done
14169 if test -z "$haveit"; then
14170 if test -d "$additional_includedir"; then
14171 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14172 fi
14173 fi
14174 fi
14175 fi
14176 fi
14177 if test -n "$found_la"; then
14178 save_libdir="$libdir"
14179 case "$found_la" in
14180 */* | *\\*) . "$found_la" ;;
14181 *) . "./$found_la" ;;
14182 esac
14183 libdir="$save_libdir"
14184 for dep in $dependency_libs; do
14185 case "$dep" in
14186 -L*)
14187 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14188 if test "X$additional_libdir" != "X/usr/lib"; then
14189 haveit=
14190 if test "X$additional_libdir" = "X/usr/local/lib"; then
14191 if test -n "$GCC"; then
14192 case $host_os in
14193 linux*) haveit=yes;;
14194 esac
14195 fi
14196 fi
14197 if test -z "$haveit"; then
14198 haveit=
14199 for x in $LDFLAGS $LIBICONV; do
14200
14201 acl_save_prefix="$prefix"
14202 prefix="$acl_final_prefix"
14203 acl_save_exec_prefix="$exec_prefix"
14204 exec_prefix="$acl_final_exec_prefix"
14205 eval x=\"$x\"
14206 exec_prefix="$acl_save_exec_prefix"
14207 prefix="$acl_save_prefix"
14208
14209 if test "X$x" = "X-L$additional_libdir"; then
14210 haveit=yes
14211 break
14212 fi
14213 done
14214 if test -z "$haveit"; then
14215 if test -d "$additional_libdir"; then
14216 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14217 fi
14218 fi
14219 haveit=
14220 for x in $LDFLAGS $LTLIBICONV; do
14221
14222 acl_save_prefix="$prefix"
14223 prefix="$acl_final_prefix"
14224 acl_save_exec_prefix="$exec_prefix"
14225 exec_prefix="$acl_final_exec_prefix"
14226 eval x=\"$x\"
14227 exec_prefix="$acl_save_exec_prefix"
14228 prefix="$acl_save_prefix"
14229
14230 if test "X$x" = "X-L$additional_libdir"; then
14231 haveit=yes
14232 break
14233 fi
14234 done
14235 if test -z "$haveit"; then
14236 if test -d "$additional_libdir"; then
14237 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14238 fi
14239 fi
14240 fi
14241 fi
14242 ;;
14243 -R*)
14244 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14245 if test "$enable_rpath" != no; then
14246 haveit=
14247 for x in $rpathdirs; do
14248 if test "X$x" = "X$dir"; then
14249 haveit=yes
14250 break
14251 fi
14252 done
14253 if test -z "$haveit"; then
14254 rpathdirs="$rpathdirs $dir"
14255 fi
14256 haveit=
14257 for x in $ltrpathdirs; do
14258 if test "X$x" = "X$dir"; then
14259 haveit=yes
14260 break
14261 fi
14262 done
14263 if test -z "$haveit"; then
14264 ltrpathdirs="$ltrpathdirs $dir"
14265 fi
14266 fi
14267 ;;
14268 -l*)
14269 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14270 ;;
14271 *.la)
14272 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14273 ;;
14274 *)
14275 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14276 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14277 ;;
14278 esac
14279 done
14280 fi
14281 else
14282 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14283 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14284 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14285 else
14286 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
14287 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
14288 fi
14289 fi
14290 fi
14291 fi
14292 done
14293 done
14294 if test "X$rpathdirs" != "X"; then
14295 if test -n "$hardcode_libdir_separator"; then
14296 alldirs=
14297 for found_dir in $rpathdirs; do
14298 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14299 done
14300 acl_save_libdir="$libdir"
14301 libdir="$alldirs"
14302 eval flag=\"$hardcode_libdir_flag_spec\"
14303 libdir="$acl_save_libdir"
14304 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14305 else
14306 for found_dir in $rpathdirs; do
14307 acl_save_libdir="$libdir"
14308 libdir="$found_dir"
14309 eval flag=\"$hardcode_libdir_flag_spec\"
14310 libdir="$acl_save_libdir"
14311 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14312 done
14313 fi
14314 fi
14315 if test "X$ltrpathdirs" != "X"; then
14316 for found_dir in $ltrpathdirs; do
14317 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14318 done
14319 fi
14320
14321
14322
14323
14324
14325
14326
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14328 $as_echo_n "checking for iconv... " >&6; }
14329 if ${am_cv_func_iconv+:} false; then :
14330 $as_echo_n "(cached) " >&6
14331 else
14332
14333 am_cv_func_iconv="no, consider installing GNU libiconv"
14334 am_cv_lib_iconv=no
14335 am_save_CPPFLAGS="$CPPFLAGS"
14336 CPPFLAGS="$CPPFLAGS $INCICONV"
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14339 #include <stdlib.h>
14340 #include <iconv.h>
14341 int
14342 main ()
14343 {
14344 iconv_t cd = iconv_open("","");
14345 iconv(cd,NULL,NULL,NULL,NULL);
14346 iconv_close(cd);
14347 ;
14348 return 0;
14349 }
14350 _ACEOF
14351 if ac_fn_c_try_link "$LINENO"; then :
14352 am_cv_func_iconv=yes
14353 fi
14354 rm -f core conftest.err conftest.$ac_objext \
14355 conftest$ac_exeext conftest.$ac_ext
14356 CPPFLAGS="$am_save_CPPFLAGS"
14357
14358 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14359 for _libs in .libs _libs; do
14360 am_save_CPPFLAGS="$CPPFLAGS"
14361 am_save_LIBS="$LIBS"
14362 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14363 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 #include <stdlib.h>
14367 #include <iconv.h>
14368 int
14369 main ()
14370 {
14371 iconv_t cd = iconv_open("","");
14372 iconv(cd,NULL,NULL,NULL,NULL);
14373 iconv_close(cd);
14374 ;
14375 return 0;
14376 }
14377 _ACEOF
14378 if ac_fn_c_try_link "$LINENO"; then :
14379 INCICONV="-I../libiconv/include"
14380 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14381 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14382 am_cv_lib_iconv=yes
14383 am_cv_func_iconv=yes
14384 fi
14385 rm -f core conftest.err conftest.$ac_objext \
14386 conftest$ac_exeext conftest.$ac_ext
14387 CPPFLAGS="$am_save_CPPFLAGS"
14388 LIBS="$am_save_LIBS"
14389 if test "$am_cv_func_iconv" = "yes"; then
14390 break
14391 fi
14392 done
14393 fi
14394
14395 if test "$am_cv_func_iconv" != yes; then
14396 am_save_CPPFLAGS="$CPPFLAGS"
14397 am_save_LIBS="$LIBS"
14398 CPPFLAGS="$CPPFLAGS $INCICONV"
14399 LIBS="$LIBS $LIBICONV"
14400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14401 /* end confdefs.h. */
14402 #include <stdlib.h>
14403 #include <iconv.h>
14404 int
14405 main ()
14406 {
14407 iconv_t cd = iconv_open("","");
14408 iconv(cd,NULL,NULL,NULL,NULL);
14409 iconv_close(cd);
14410 ;
14411 return 0;
14412 }
14413 _ACEOF
14414 if ac_fn_c_try_link "$LINENO"; then :
14415 am_cv_lib_iconv=yes
14416 am_cv_func_iconv=yes
14417 fi
14418 rm -f core conftest.err conftest.$ac_objext \
14419 conftest$ac_exeext conftest.$ac_ext
14420 CPPFLAGS="$am_save_CPPFLAGS"
14421 LIBS="$am_save_LIBS"
14422 fi
14423
14424 fi
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14426 $as_echo "$am_cv_func_iconv" >&6; }
14427 if test "$am_cv_func_iconv" = yes; then
14428
14429 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14430
14431 fi
14432 if test "$am_cv_lib_iconv" = yes; then
14433
14434 for element in $INCICONV; do
14435 haveit=
14436 for x in $CPPFLAGS; do
14437
14438 acl_save_prefix="$prefix"
14439 prefix="$acl_final_prefix"
14440 acl_save_exec_prefix="$exec_prefix"
14441 exec_prefix="$acl_final_exec_prefix"
14442 eval x=\"$x\"
14443 exec_prefix="$acl_save_exec_prefix"
14444 prefix="$acl_save_prefix"
14445
14446 if test "X$x" = "X$element"; then
14447 haveit=yes
14448 break
14449 fi
14450 done
14451 if test -z "$haveit"; then
14452 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14453 fi
14454 done
14455
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14457 $as_echo_n "checking how to link with libiconv... " >&6; }
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14459 $as_echo "$LIBICONV" >&6; }
14460 else
14461 LIBICONV=
14462 LTLIBICONV=
14463 fi
14464
14465
14466
14467 if test "$am_cv_func_iconv" = yes; then
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14469 $as_echo_n "checking for iconv declaration... " >&6; }
14470 if ${am_cv_proto_iconv+:} false; then :
14471 $as_echo_n "(cached) " >&6
14472 else
14473
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14476
14477 #include <stdlib.h>
14478 #include <iconv.h>
14479 extern
14480 #ifdef __cplusplus
14481 "C"
14482 #endif
14483 #if defined(__STDC__) || defined(__cplusplus)
14484 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14485 #else
14486 size_t iconv();
14487 #endif
14488
14489 int
14490 main ()
14491 {
14492
14493 ;
14494 return 0;
14495 }
14496 _ACEOF
14497 if ac_fn_c_try_compile "$LINENO"; then :
14498 am_cv_proto_iconv_arg1=""
14499 else
14500 am_cv_proto_iconv_arg1="const"
14501 fi
14502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14503 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14504 fi
14505
14506 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14508 }$am_cv_proto_iconv" >&5
14509 $as_echo "${ac_t:-
14510 }$am_cv_proto_iconv" >&6; }
14511
14512 cat >>confdefs.h <<_ACEOF
14513 #define ICONV_CONST $am_cv_proto_iconv_arg1
14514 _ACEOF
14515
14516 fi
14517
14518
14519 all_targets=false
14520 BUILD_SRCONV=
14521 BUILD_DLLTOOL=
14522 DLLTOOL_DEFS=
14523 DLLTOOL_DEFAULT=
14524 BUILD_WINDRES=
14525 BUILD_WINDMC=
14526 BUILD_DLLWRAP=
14527 BUILD_MISC=
14528 BUILD_INSTALL_MISC=
14529 OBJDUMP_DEFS=
14530 OBJDUMP_PRIVATE_VECTORS=
14531 OBJDUMP_PRIVATE_OFILES=
14532 od_vectors=
14533
14534 for targ in $target $canon_targets
14535 do
14536 if test "x$targ" = "xall"; then
14537 all_targets=true
14538 BUILD_SRCONV='$(SRCONV_PROG)'
14539 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14540 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14541 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14542 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14543 if test -z "$DLLTOOL_DEFAULT"; then
14544 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14545 fi
14546 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14547 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14548 od_vectors="$od_vectors objdump_private_desc_xcoff"
14549 else
14550 case $targ in
14551 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14552 esac
14553
14554 case $targ in
14555 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
14556 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14557 if test -z "$DLLTOOL_DEFAULT"; then
14558 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14559 fi
14560 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14561 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14562 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14563 ;;
14564 arm-*-pe*)
14565 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14566 if test -z "$DLLTOOL_DEFAULT"; then
14567 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14568 fi
14569 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14570 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14571 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14572 ;;
14573 x86_64-*-mingw* | x86_64-*-cygwin*)
14574 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14575 if test -z "$DLLTOOL_DEFAULT"; then
14576 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14577 fi
14578 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14579 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14580 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14581 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14582 ;;
14583 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32**)
14584 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14585 if test -z "$DLLTOOL_DEFAULT"; then
14586 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14587 fi
14588 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14589 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14590 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14591 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14592 ;;
14593 i[3-7]86-*-interix)
14594 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
14595 if test -z "$DLLTOOL_DEFAULT"; then
14596 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14597 fi
14598 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14599 ;;
14600 powerpc*-aix5.[01])
14601 ;;
14602 powerpc*-aix[5-9].*)
14603 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14604 ;;
14605 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
14606 case "$BUILD_INSTALL_MISC" in
14607 *embedspu*) ;;
14608 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14609 esac
14610 ;;
14611 sh*-*-pe)
14612 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14613 if test -z "$DLLTOOL_DEFAULT"; then
14614 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14615 fi
14616 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14617 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14618 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14619 ;;
14620 spu-*-*)
14621 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14622 ;;
14623 mips*-*-pe)
14624 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14625 if test -z "$DLLTOOL_DEFAULT"; then
14626 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14627 fi
14628 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14629 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14630 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14631 ;;
14632 mcore-*-pe)
14633 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14634 if test -z "$DLLTOOL_DEFAULT"; then
14635 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14636 fi
14637 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14638 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14639 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14640 ;;
14641 mcore-*-elf)
14642 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14643 if test -z "$DLLTOOL_DEFAULT"; then
14644 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14645 fi
14646 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
14647 ;;
14648 mep-*)
14649 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14650 ;;
14651 esac
14652
14653 # Add objdump private vectors.
14654 case $targ in
14655 avr-*-*)
14656 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
14657 ;;
14658 powerpc*-*-aix* | rs6000-*-aix*)
14659 od_vectors="$od_vectors objdump_private_desc_xcoff"
14660 ;;
14661 *-*-darwin*)
14662 od_vectors="$od_vectors objdump_private_desc_mach_o"
14663 ;;
14664 esac
14665 fi
14666 done
14667
14668 # Uniq objdump private vector, build objdump target ofiles.
14669 od_files=
14670 f=""
14671 for i in $od_vectors ; do
14672 case " $f " in
14673 *" $i "*) ;;
14674 *)
14675 f="$f $i"
14676 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
14677 case $i in
14678 objdump_private_desc_elf32_avr)
14679 od_files="$od_files od-elf32_avr" ;;
14680 objdump_private_desc_xcoff)
14681 od_files="$od_files od-xcoff" ;;
14682 objdump_private_desc_mach_o)
14683 od_files="$od_files od-macho" ;;
14684 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
14685 esac
14686 ;;
14687 esac
14688 done
14689
14690 # Uniq objdump target ofiles
14691 f=""
14692 for i in $od_files ; do
14693 case " $f " in
14694 *" $i "*) ;;
14695 *)
14696 f="$f $i"
14697 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
14698 ;;
14699 esac
14700 done
14701
14702 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14703
14704 if test "${with_windres+set}" = set; then
14705 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14706 fi
14707
14708 if test "${with_windmc+set}" = set; then
14709 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14710 fi
14711
14712 OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726 cat >>confdefs.h <<_ACEOF
14727 #define TARGET "${target}"
14728 _ACEOF
14729
14730
14731 targ=$target
14732 . $srcdir/../bfd/config.bfd
14733 if test "x$targ_underscore" = "xyes"; then
14734 UNDERSCORE=1
14735 else
14736 UNDERSCORE=0
14737 fi
14738
14739 cat >>confdefs.h <<_ACEOF
14740 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14741 _ACEOF
14742
14743
14744 # Emulation
14745 targ=$target
14746 . ${srcdir}/configure.tgt
14747 EMULATION=$targ_emul
14748 EMULATION_VECTOR=$targ_emul_vector
14749
14750
14751
14752
14753 # Required for html and install-html
14754
14755
14756
14757
14758
14759 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
14760
14761 cat >confcache <<\_ACEOF
14762 # This file is a shell script that caches the results of configure
14763 # tests run on this system so they can be shared between configure
14764 # scripts and configure runs, see configure's option --config-cache.
14765 # It is not useful on other systems. If it contains results you don't
14766 # want to keep, you may remove or edit it.
14767 #
14768 # config.status only pays attention to the cache file if you give it
14769 # the --recheck option to rerun configure.
14770 #
14771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14773 # following values.
14774
14775 _ACEOF
14776
14777 # The following way of writing the cache mishandles newlines in values,
14778 # but we know of no workaround that is simple, portable, and efficient.
14779 # So, we kill variables containing newlines.
14780 # Ultrix sh set writes to stderr and can't be redirected directly,
14781 # and sets the high bit in the cache file unless we assign to the vars.
14782 (
14783 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14784 eval ac_val=\$$ac_var
14785 case $ac_val in #(
14786 *${as_nl}*)
14787 case $ac_var in #(
14788 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14789 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14790 esac
14791 case $ac_var in #(
14792 _ | IFS | as_nl) ;; #(
14793 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14794 *) { eval $ac_var=; unset $ac_var;} ;;
14795 esac ;;
14796 esac
14797 done
14798
14799 (set) 2>&1 |
14800 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14801 *${as_nl}ac_space=\ *)
14802 # `set' does not quote correctly, so add quotes: double-quote
14803 # substitution turns \\\\ into \\, and sed turns \\ into \.
14804 sed -n \
14805 "s/'/'\\\\''/g;
14806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14807 ;; #(
14808 *)
14809 # `set' quotes correctly as required by POSIX, so do not add quotes.
14810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14811 ;;
14812 esac |
14813 sort
14814 ) |
14815 sed '
14816 /^ac_cv_env_/b end
14817 t clear
14818 :clear
14819 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14820 t end
14821 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14822 :end' >>confcache
14823 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14824 if test -w "$cache_file"; then
14825 if test "x$cache_file" != "x/dev/null"; then
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14827 $as_echo "$as_me: updating cache $cache_file" >&6;}
14828 if test ! -f "$cache_file" || test -h "$cache_file"; then
14829 cat confcache >"$cache_file"
14830 else
14831 case $cache_file in #(
14832 */* | ?:*)
14833 mv -f confcache "$cache_file"$$ &&
14834 mv -f "$cache_file"$$ "$cache_file" ;; #(
14835 *)
14836 mv -f confcache "$cache_file" ;;
14837 esac
14838 fi
14839 fi
14840 else
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14842 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14843 fi
14844 fi
14845 rm -f confcache
14846
14847 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14848 # Let make expand exec_prefix.
14849 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14850
14851 DEFS=-DHAVE_CONFIG_H
14852
14853 ac_libobjs=
14854 ac_ltlibobjs=
14855 U=
14856 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14857 # 1. Remove the extension, and $U if already installed.
14858 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14859 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14860 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14861 # will be set to the directory where LIBOBJS objects are built.
14862 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14863 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14864 done
14865 LIBOBJS=$ac_libobjs
14866
14867 LTLIBOBJS=$ac_ltlibobjs
14868
14869
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14871 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14872 if test -n "$am_sleep_pid"; then
14873 # Hide warnings about reused PIDs.
14874 wait $am_sleep_pid 2>/dev/null
14875 fi
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14877 $as_echo "done" >&6; }
14878 if test -n "$EXEEXT"; then
14879 am__EXEEXT_TRUE=
14880 am__EXEEXT_FALSE='#'
14881 else
14882 am__EXEEXT_TRUE='#'
14883 am__EXEEXT_FALSE=
14884 fi
14885
14886 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14887 as_fn_error $? "conditional \"AMDEP\" was never defined.
14888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14889 fi
14890 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14891 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14893 fi
14894 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
14895 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
14896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14897 fi
14898 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14899 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14901 fi
14902 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14903 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
14904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14905 fi
14906
14907 : "${CONFIG_STATUS=./config.status}"
14908 ac_write_fail=0
14909 ac_clean_files_save=$ac_clean_files
14910 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14912 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14913 as_write_fail=0
14914 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14915 #! $SHELL
14916 # Generated by $as_me.
14917 # Run this file to recreate the current configuration.
14918 # Compiler output produced by configure, useful for debugging
14919 # configure, is in config.log if it exists.
14920
14921 debug=false
14922 ac_cs_recheck=false
14923 ac_cs_silent=false
14924
14925 SHELL=\${CONFIG_SHELL-$SHELL}
14926 export SHELL
14927 _ASEOF
14928 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14929 ## -------------------- ##
14930 ## M4sh Initialization. ##
14931 ## -------------------- ##
14932
14933 # Be more Bourne compatible
14934 DUALCASE=1; export DUALCASE # for MKS sh
14935 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14936 emulate sh
14937 NULLCMD=:
14938 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14939 # is contrary to our usage. Disable this feature.
14940 alias -g '${1+"$@"}'='"$@"'
14941 setopt NO_GLOB_SUBST
14942 else
14943 case `(set -o) 2>/dev/null` in #(
14944 *posix*) :
14945 set -o posix ;; #(
14946 *) :
14947 ;;
14948 esac
14949 fi
14950
14951
14952 as_nl='
14953 '
14954 export as_nl
14955 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14956 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14957 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14958 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14959 # Prefer a ksh shell builtin over an external printf program on Solaris,
14960 # but without wasting forks for bash or zsh.
14961 if test -z "$BASH_VERSION$ZSH_VERSION" \
14962 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14963 as_echo='print -r --'
14964 as_echo_n='print -rn --'
14965 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14966 as_echo='printf %s\n'
14967 as_echo_n='printf %s'
14968 else
14969 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14970 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14971 as_echo_n='/usr/ucb/echo -n'
14972 else
14973 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14974 as_echo_n_body='eval
14975 arg=$1;
14976 case $arg in #(
14977 *"$as_nl"*)
14978 expr "X$arg" : "X\\(.*\\)$as_nl";
14979 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14980 esac;
14981 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14982 '
14983 export as_echo_n_body
14984 as_echo_n='sh -c $as_echo_n_body as_echo'
14985 fi
14986 export as_echo_body
14987 as_echo='sh -c $as_echo_body as_echo'
14988 fi
14989
14990 # The user is always right.
14991 if test "${PATH_SEPARATOR+set}" != set; then
14992 PATH_SEPARATOR=:
14993 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14994 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14995 PATH_SEPARATOR=';'
14996 }
14997 fi
14998
14999
15000 # IFS
15001 # We need space, tab and new line, in precisely that order. Quoting is
15002 # there to prevent editors from complaining about space-tab.
15003 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15004 # splitting by setting IFS to empty value.)
15005 IFS=" "" $as_nl"
15006
15007 # Find who we are. Look in the path if we contain no directory separator.
15008 as_myself=
15009 case $0 in #((
15010 *[\\/]* ) as_myself=$0 ;;
15011 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15012 for as_dir in $PATH
15013 do
15014 IFS=$as_save_IFS
15015 test -z "$as_dir" && as_dir=.
15016 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15017 done
15018 IFS=$as_save_IFS
15019
15020 ;;
15021 esac
15022 # We did not find ourselves, most probably we were run as `sh COMMAND'
15023 # in which case we are not to be found in the path.
15024 if test "x$as_myself" = x; then
15025 as_myself=$0
15026 fi
15027 if test ! -f "$as_myself"; then
15028 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15029 exit 1
15030 fi
15031
15032 # Unset variables that we do not need and which cause bugs (e.g. in
15033 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15034 # suppresses any "Segmentation fault" message there. '((' could
15035 # trigger a bug in pdksh 5.2.14.
15036 for as_var in BASH_ENV ENV MAIL MAILPATH
15037 do eval test x\${$as_var+set} = xset \
15038 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15039 done
15040 PS1='$ '
15041 PS2='> '
15042 PS4='+ '
15043
15044 # NLS nuisances.
15045 LC_ALL=C
15046 export LC_ALL
15047 LANGUAGE=C
15048 export LANGUAGE
15049
15050 # CDPATH.
15051 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15052
15053
15054 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15055 # ----------------------------------------
15056 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15057 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15058 # script with STATUS, using 1 if that was 0.
15059 as_fn_error ()
15060 {
15061 as_status=$1; test $as_status -eq 0 && as_status=1
15062 if test "$4"; then
15063 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15064 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15065 fi
15066 $as_echo "$as_me: error: $2" >&2
15067 as_fn_exit $as_status
15068 } # as_fn_error
15069
15070
15071 # as_fn_set_status STATUS
15072 # -----------------------
15073 # Set $? to STATUS, without forking.
15074 as_fn_set_status ()
15075 {
15076 return $1
15077 } # as_fn_set_status
15078
15079 # as_fn_exit STATUS
15080 # -----------------
15081 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15082 as_fn_exit ()
15083 {
15084 set +e
15085 as_fn_set_status $1
15086 exit $1
15087 } # as_fn_exit
15088
15089 # as_fn_unset VAR
15090 # ---------------
15091 # Portably unset VAR.
15092 as_fn_unset ()
15093 {
15094 { eval $1=; unset $1;}
15095 }
15096 as_unset=as_fn_unset
15097 # as_fn_append VAR VALUE
15098 # ----------------------
15099 # Append the text in VALUE to the end of the definition contained in VAR. Take
15100 # advantage of any shell optimizations that allow amortized linear growth over
15101 # repeated appends, instead of the typical quadratic growth present in naive
15102 # implementations.
15103 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15104 eval 'as_fn_append ()
15105 {
15106 eval $1+=\$2
15107 }'
15108 else
15109 as_fn_append ()
15110 {
15111 eval $1=\$$1\$2
15112 }
15113 fi # as_fn_append
15114
15115 # as_fn_arith ARG...
15116 # ------------------
15117 # Perform arithmetic evaluation on the ARGs, and store the result in the
15118 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15119 # must be portable across $(()) and expr.
15120 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15121 eval 'as_fn_arith ()
15122 {
15123 as_val=$(( $* ))
15124 }'
15125 else
15126 as_fn_arith ()
15127 {
15128 as_val=`expr "$@" || test $? -eq 1`
15129 }
15130 fi # as_fn_arith
15131
15132
15133 if expr a : '\(a\)' >/dev/null 2>&1 &&
15134 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15135 as_expr=expr
15136 else
15137 as_expr=false
15138 fi
15139
15140 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15141 as_basename=basename
15142 else
15143 as_basename=false
15144 fi
15145
15146 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15147 as_dirname=dirname
15148 else
15149 as_dirname=false
15150 fi
15151
15152 as_me=`$as_basename -- "$0" ||
15153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15154 X"$0" : 'X\(//\)$' \| \
15155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15156 $as_echo X/"$0" |
15157 sed '/^.*\/\([^/][^/]*\)\/*$/{
15158 s//\1/
15159 q
15160 }
15161 /^X\/\(\/\/\)$/{
15162 s//\1/
15163 q
15164 }
15165 /^X\/\(\/\).*/{
15166 s//\1/
15167 q
15168 }
15169 s/.*/./; q'`
15170
15171 # Avoid depending upon Character Ranges.
15172 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15173 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15174 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15175 as_cr_digits='0123456789'
15176 as_cr_alnum=$as_cr_Letters$as_cr_digits
15177
15178 ECHO_C= ECHO_N= ECHO_T=
15179 case `echo -n x` in #(((((
15180 -n*)
15181 case `echo 'xy\c'` in
15182 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15183 xy) ECHO_C='\c';;
15184 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15185 ECHO_T=' ';;
15186 esac;;
15187 *)
15188 ECHO_N='-n';;
15189 esac
15190
15191 rm -f conf$$ conf$$.exe conf$$.file
15192 if test -d conf$$.dir; then
15193 rm -f conf$$.dir/conf$$.file
15194 else
15195 rm -f conf$$.dir
15196 mkdir conf$$.dir 2>/dev/null
15197 fi
15198 if (echo >conf$$.file) 2>/dev/null; then
15199 if ln -s conf$$.file conf$$ 2>/dev/null; then
15200 as_ln_s='ln -s'
15201 # ... but there are two gotchas:
15202 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15203 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15204 # In both cases, we have to default to `cp -pR'.
15205 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15206 as_ln_s='cp -pR'
15207 elif ln conf$$.file conf$$ 2>/dev/null; then
15208 as_ln_s=ln
15209 else
15210 as_ln_s='cp -pR'
15211 fi
15212 else
15213 as_ln_s='cp -pR'
15214 fi
15215 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15216 rmdir conf$$.dir 2>/dev/null
15217
15218
15219 # as_fn_mkdir_p
15220 # -------------
15221 # Create "$as_dir" as a directory, including parents if necessary.
15222 as_fn_mkdir_p ()
15223 {
15224
15225 case $as_dir in #(
15226 -*) as_dir=./$as_dir;;
15227 esac
15228 test -d "$as_dir" || eval $as_mkdir_p || {
15229 as_dirs=
15230 while :; do
15231 case $as_dir in #(
15232 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15233 *) as_qdir=$as_dir;;
15234 esac
15235 as_dirs="'$as_qdir' $as_dirs"
15236 as_dir=`$as_dirname -- "$as_dir" ||
15237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15238 X"$as_dir" : 'X\(//\)[^/]' \| \
15239 X"$as_dir" : 'X\(//\)$' \| \
15240 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15241 $as_echo X"$as_dir" |
15242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15243 s//\1/
15244 q
15245 }
15246 /^X\(\/\/\)[^/].*/{
15247 s//\1/
15248 q
15249 }
15250 /^X\(\/\/\)$/{
15251 s//\1/
15252 q
15253 }
15254 /^X\(\/\).*/{
15255 s//\1/
15256 q
15257 }
15258 s/.*/./; q'`
15259 test -d "$as_dir" && break
15260 done
15261 test -z "$as_dirs" || eval "mkdir $as_dirs"
15262 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15263
15264
15265 } # as_fn_mkdir_p
15266 if mkdir -p . 2>/dev/null; then
15267 as_mkdir_p='mkdir -p "$as_dir"'
15268 else
15269 test -d ./-p && rmdir ./-p
15270 as_mkdir_p=false
15271 fi
15272
15273
15274 # as_fn_executable_p FILE
15275 # -----------------------
15276 # Test if FILE is an executable regular file.
15277 as_fn_executable_p ()
15278 {
15279 test -f "$1" && test -x "$1"
15280 } # as_fn_executable_p
15281 as_test_x='test -x'
15282 as_executable_p=as_fn_executable_p
15283
15284 # Sed expression to map a string onto a valid CPP name.
15285 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15286
15287 # Sed expression to map a string onto a valid variable name.
15288 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15289
15290
15291 exec 6>&1
15292 ## ----------------------------------- ##
15293 ## Main body of $CONFIG_STATUS script. ##
15294 ## ----------------------------------- ##
15295 _ASEOF
15296 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15297
15298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15299 # Save the log message, to keep $0 and so on meaningful, and to
15300 # report actual input values of CONFIG_FILES etc. instead of their
15301 # values after options handling.
15302 ac_log="
15303 This file was extended by binutils $as_me 2.39.50, which was
15304 generated by GNU Autoconf 2.69. Invocation command line was
15305
15306 CONFIG_FILES = $CONFIG_FILES
15307 CONFIG_HEADERS = $CONFIG_HEADERS
15308 CONFIG_LINKS = $CONFIG_LINKS
15309 CONFIG_COMMANDS = $CONFIG_COMMANDS
15310 $ $0 $@
15311
15312 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15313 "
15314
15315 _ACEOF
15316
15317 case $ac_config_files in *"
15318 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15319 esac
15320
15321 case $ac_config_headers in *"
15322 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15323 esac
15324
15325
15326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15327 # Files that config.status was made for.
15328 config_files="$ac_config_files"
15329 config_headers="$ac_config_headers"
15330 config_commands="$ac_config_commands"
15331
15332 _ACEOF
15333
15334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15335 ac_cs_usage="\
15336 \`$as_me' instantiates files and other configuration actions
15337 from templates according to the current configuration. Unless the files
15338 and actions are specified as TAGs, all are instantiated by default.
15339
15340 Usage: $0 [OPTION]... [TAG]...
15341
15342 -h, --help print this help, then exit
15343 -V, --version print version number and configuration settings, then exit
15344 --config print configuration, then exit
15345 -q, --quiet, --silent
15346 do not print progress messages
15347 -d, --debug don't remove temporary files
15348 --recheck update $as_me by reconfiguring in the same conditions
15349 --file=FILE[:TEMPLATE]
15350 instantiate the configuration file FILE
15351 --header=FILE[:TEMPLATE]
15352 instantiate the configuration header FILE
15353
15354 Configuration files:
15355 $config_files
15356
15357 Configuration headers:
15358 $config_headers
15359
15360 Configuration commands:
15361 $config_commands
15362
15363 Report bugs to the package provider."
15364
15365 _ACEOF
15366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15367 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15368 ac_cs_version="\\
15369 binutils config.status 2.39.50
15370 configured by $0, generated by GNU Autoconf 2.69,
15371 with options \\"\$ac_cs_config\\"
15372
15373 Copyright (C) 2012 Free Software Foundation, Inc.
15374 This config.status script is free software; the Free Software Foundation
15375 gives unlimited permission to copy, distribute and modify it."
15376
15377 ac_pwd='$ac_pwd'
15378 srcdir='$srcdir'
15379 INSTALL='$INSTALL'
15380 MKDIR_P='$MKDIR_P'
15381 AWK='$AWK'
15382 test -n "\$AWK" || AWK=awk
15383 _ACEOF
15384
15385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15386 # The default lists apply if the user does not specify any file.
15387 ac_need_defaults=:
15388 while test $# != 0
15389 do
15390 case $1 in
15391 --*=?*)
15392 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15393 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15394 ac_shift=:
15395 ;;
15396 --*=)
15397 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15398 ac_optarg=
15399 ac_shift=:
15400 ;;
15401 *)
15402 ac_option=$1
15403 ac_optarg=$2
15404 ac_shift=shift
15405 ;;
15406 esac
15407
15408 case $ac_option in
15409 # Handling of the options.
15410 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15411 ac_cs_recheck=: ;;
15412 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15413 $as_echo "$ac_cs_version"; exit ;;
15414 --config | --confi | --conf | --con | --co | --c )
15415 $as_echo "$ac_cs_config"; exit ;;
15416 --debug | --debu | --deb | --de | --d | -d )
15417 debug=: ;;
15418 --file | --fil | --fi | --f )
15419 $ac_shift
15420 case $ac_optarg in
15421 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15422 '') as_fn_error $? "missing file argument" ;;
15423 esac
15424 as_fn_append CONFIG_FILES " '$ac_optarg'"
15425 ac_need_defaults=false;;
15426 --header | --heade | --head | --hea )
15427 $ac_shift
15428 case $ac_optarg in
15429 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15430 esac
15431 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15432 ac_need_defaults=false;;
15433 --he | --h)
15434 # Conflict between --help and --header
15435 as_fn_error $? "ambiguous option: \`$1'
15436 Try \`$0 --help' for more information.";;
15437 --help | --hel | -h )
15438 $as_echo "$ac_cs_usage"; exit ;;
15439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15440 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15441 ac_cs_silent=: ;;
15442
15443 # This is an error.
15444 -*) as_fn_error $? "unrecognized option: \`$1'
15445 Try \`$0 --help' for more information." ;;
15446
15447 *) as_fn_append ac_config_targets " $1"
15448 ac_need_defaults=false ;;
15449
15450 esac
15451 shift
15452 done
15453
15454 ac_configure_extra_args=
15455
15456 if $ac_cs_silent; then
15457 exec 6>/dev/null
15458 ac_configure_extra_args="$ac_configure_extra_args --silent"
15459 fi
15460
15461 _ACEOF
15462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15463 if \$ac_cs_recheck; then
15464 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15465 shift
15466 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15467 CONFIG_SHELL='$SHELL'
15468 export CONFIG_SHELL
15469 exec "\$@"
15470 fi
15471
15472 _ACEOF
15473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15474 exec 5>>config.log
15475 {
15476 echo
15477 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15478 ## Running $as_me. ##
15479 _ASBOX
15480 $as_echo "$ac_log"
15481 } >&5
15482
15483 _ACEOF
15484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15485 #
15486 # INIT-COMMANDS
15487 #
15488 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15489
15490
15491 # The HP-UX ksh and POSIX shell print the target directory to stdout
15492 # if CDPATH is set.
15493 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15494
15495 sed_quote_subst='$sed_quote_subst'
15496 double_quote_subst='$double_quote_subst'
15497 delay_variable_subst='$delay_variable_subst'
15498 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15499 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15500 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15501 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15502 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15503 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15504 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15505 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15506 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15507 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15508 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15509 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15510 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15511 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15512 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15513 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15514 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15515 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15516 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15517 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15518 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15519 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15520 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15521 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15522 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15523 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15524 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15525 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15526 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15527 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15528 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15529 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15530 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15531 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15532 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15533 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15534 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15535 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15536 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15537 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15538 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15539 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15540 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15541 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15542 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15543 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15544 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15545 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15546 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"`'
15547 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15548 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15549 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15550 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15551 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15552 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15553 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15554 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15555 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15556 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15557 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15558 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15559 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15560 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15561 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15562 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15563 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15564 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15565 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15566 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15567 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15568 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15569 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15570 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15571 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15572 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15573 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15574 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15575 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15576 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15577 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15578 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15579 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15580 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15581 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15582 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15583 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15584 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15585 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15586 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15587 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15588 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15589 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15590 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15591 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15592 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15593 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15594 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15595 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15596 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15597 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15598 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15599 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15600 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15601 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15602 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15603 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15604 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15605 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15606 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15607 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15608 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15609 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15610 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15611 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15612 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15613 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15614 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15615 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15616 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15617 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15618
15619 LTCC='$LTCC'
15620 LTCFLAGS='$LTCFLAGS'
15621 compiler='$compiler_DEFAULT'
15622
15623 # A function that is used when there is no print builtin or printf.
15624 func_fallback_echo ()
15625 {
15626 eval 'cat <<_LTECHO_EOF
15627 \$1
15628 _LTECHO_EOF'
15629 }
15630
15631 # Quote evaled strings.
15632 for var in SHELL \
15633 ECHO \
15634 SED \
15635 GREP \
15636 EGREP \
15637 FGREP \
15638 LD \
15639 NM \
15640 LN_S \
15641 lt_SP2NL \
15642 lt_NL2SP \
15643 reload_flag \
15644 OBJDUMP \
15645 deplibs_check_method \
15646 file_magic_cmd \
15647 AR \
15648 AR_FLAGS \
15649 STRIP \
15650 RANLIB \
15651 CC \
15652 CFLAGS \
15653 compiler \
15654 lt_cv_sys_global_symbol_pipe \
15655 lt_cv_sys_global_symbol_to_cdecl \
15656 lt_cv_sys_global_symbol_to_c_name_address \
15657 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15658 lt_prog_compiler_no_builtin_flag \
15659 lt_prog_compiler_wl \
15660 lt_prog_compiler_pic \
15661 lt_prog_compiler_static \
15662 lt_cv_prog_compiler_c_o \
15663 need_locks \
15664 DSYMUTIL \
15665 NMEDIT \
15666 LIPO \
15667 OTOOL \
15668 OTOOL64 \
15669 shrext_cmds \
15670 export_dynamic_flag_spec \
15671 whole_archive_flag_spec \
15672 compiler_needs_object \
15673 with_gnu_ld \
15674 allow_undefined_flag \
15675 no_undefined_flag \
15676 hardcode_libdir_flag_spec \
15677 hardcode_libdir_flag_spec_ld \
15678 hardcode_libdir_separator \
15679 fix_srcfile_path \
15680 exclude_expsyms \
15681 include_expsyms \
15682 file_list_spec \
15683 variables_saved_for_relink \
15684 libname_spec \
15685 library_names_spec \
15686 soname_spec \
15687 install_override_mode \
15688 finish_eval \
15689 old_striplib \
15690 striplib; do
15691 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15692 *[\\\\\\\`\\"\\\$]*)
15693 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15694 ;;
15695 *)
15696 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15697 ;;
15698 esac
15699 done
15700
15701 # Double-quote double-evaled strings.
15702 for var in reload_cmds \
15703 old_postinstall_cmds \
15704 old_postuninstall_cmds \
15705 old_archive_cmds \
15706 extract_expsyms_cmds \
15707 old_archive_from_new_cmds \
15708 old_archive_from_expsyms_cmds \
15709 archive_cmds \
15710 archive_expsym_cmds \
15711 module_cmds \
15712 module_expsym_cmds \
15713 export_symbols_cmds \
15714 prelink_cmds \
15715 postinstall_cmds \
15716 postuninstall_cmds \
15717 finish_cmds \
15718 sys_lib_search_path_spec \
15719 sys_lib_dlsearch_path_spec; do
15720 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15721 *[\\\\\\\`\\"\\\$]*)
15722 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15723 ;;
15724 *)
15725 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15726 ;;
15727 esac
15728 done
15729
15730 ac_aux_dir='$ac_aux_dir'
15731 xsi_shell='$xsi_shell'
15732 lt_shell_append='$lt_shell_append'
15733
15734 # See if we are running on zsh, and set the options which allow our
15735 # commands through without removal of \ escapes INIT.
15736 if test -n "\${ZSH_VERSION+set}" ; then
15737 setopt NO_GLOB_SUBST
15738 fi
15739
15740
15741 PACKAGE='$PACKAGE'
15742 VERSION='$VERSION'
15743 TIMESTAMP='$TIMESTAMP'
15744 RM='$RM'
15745 ofile='$ofile'
15746
15747
15748
15749 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15750 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15751 # from automake.
15752 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15753 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15754 LINGUAS="${LINGUAS-%UNSET%}"
15755
15756
15757 _ACEOF
15758
15759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15760
15761 # Handling of arguments.
15762 for ac_config_target in $ac_config_targets
15763 do
15764 case $ac_config_target in
15765 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15766 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15767 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15768 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15769 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15770 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15771
15772 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15773 esac
15774 done
15775
15776
15777 # If the user did not use the arguments to specify the items to instantiate,
15778 # then the envvar interface is used. Set only those that are not.
15779 # We use the long form for the default assignment because of an extremely
15780 # bizarre bug on SunOS 4.1.3.
15781 if $ac_need_defaults; then
15782 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15783 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15784 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15785 fi
15786
15787 # Have a temporary directory for convenience. Make it in the build tree
15788 # simply because there is no reason against having it here, and in addition,
15789 # creating and moving files from /tmp can sometimes cause problems.
15790 # Hook for its removal unless debugging.
15791 # Note that there is a small window in which the directory will not be cleaned:
15792 # after its creation but before its name has been assigned to `$tmp'.
15793 $debug ||
15794 {
15795 tmp= ac_tmp=
15796 trap 'exit_status=$?
15797 : "${ac_tmp:=$tmp}"
15798 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15799 ' 0
15800 trap 'as_fn_exit 1' 1 2 13 15
15801 }
15802 # Create a (secure) tmp directory for tmp files.
15803
15804 {
15805 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15806 test -d "$tmp"
15807 } ||
15808 {
15809 tmp=./conf$$-$RANDOM
15810 (umask 077 && mkdir "$tmp")
15811 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15812 ac_tmp=$tmp
15813
15814 # Set up the scripts for CONFIG_FILES section.
15815 # No need to generate them if there are no CONFIG_FILES.
15816 # This happens for instance with `./config.status config.h'.
15817 if test -n "$CONFIG_FILES"; then
15818
15819
15820 ac_cr=`echo X | tr X '\015'`
15821 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15822 # But we know of no other shell where ac_cr would be empty at this
15823 # point, so we can use a bashism as a fallback.
15824 if test "x$ac_cr" = x; then
15825 eval ac_cr=\$\'\\r\'
15826 fi
15827 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15828 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15829 ac_cs_awk_cr='\\r'
15830 else
15831 ac_cs_awk_cr=$ac_cr
15832 fi
15833
15834 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15835 _ACEOF
15836
15837
15838 {
15839 echo "cat >conf$$subs.awk <<_ACEOF" &&
15840 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15841 echo "_ACEOF"
15842 } >conf$$subs.sh ||
15843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15844 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15845 ac_delim='%!_!# '
15846 for ac_last_try in false false false false false :; do
15847 . ./conf$$subs.sh ||
15848 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15849
15850 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15851 if test $ac_delim_n = $ac_delim_num; then
15852 break
15853 elif $ac_last_try; then
15854 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15855 else
15856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15857 fi
15858 done
15859 rm -f conf$$subs.sh
15860
15861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15862 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15863 _ACEOF
15864 sed -n '
15865 h
15866 s/^/S["/; s/!.*/"]=/
15867 p
15868 g
15869 s/^[^!]*!//
15870 :repl
15871 t repl
15872 s/'"$ac_delim"'$//
15873 t delim
15874 :nl
15875 h
15876 s/\(.\{148\}\)..*/\1/
15877 t more1
15878 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15879 p
15880 n
15881 b repl
15882 :more1
15883 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15884 p
15885 g
15886 s/.\{148\}//
15887 t nl
15888 :delim
15889 h
15890 s/\(.\{148\}\)..*/\1/
15891 t more2
15892 s/["\\]/\\&/g; s/^/"/; s/$/"/
15893 p
15894 b
15895 :more2
15896 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15897 p
15898 g
15899 s/.\{148\}//
15900 t delim
15901 ' <conf$$subs.awk | sed '
15902 /^[^""]/{
15903 N
15904 s/\n//
15905 }
15906 ' >>$CONFIG_STATUS || ac_write_fail=1
15907 rm -f conf$$subs.awk
15908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15909 _ACAWK
15910 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15911 for (key in S) S_is_set[key] = 1
15912 FS = "\a"
15913
15914 }
15915 {
15916 line = $ 0
15917 nfields = split(line, field, "@")
15918 substed = 0
15919 len = length(field[1])
15920 for (i = 2; i < nfields; i++) {
15921 key = field[i]
15922 keylen = length(key)
15923 if (S_is_set[key]) {
15924 value = S[key]
15925 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15926 len += length(value) + length(field[++i])
15927 substed = 1
15928 } else
15929 len += 1 + keylen
15930 }
15931
15932 print line
15933 }
15934
15935 _ACAWK
15936 _ACEOF
15937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15938 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15939 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15940 else
15941 cat
15942 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15943 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15944 _ACEOF
15945
15946 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15947 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15948 # trailing colons and then remove the whole line if VPATH becomes empty
15949 # (actually we leave an empty line to preserve line numbers).
15950 if test "x$srcdir" = x.; then
15951 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15952 h
15953 s///
15954 s/^/:/
15955 s/[ ]*$/:/
15956 s/:\$(srcdir):/:/g
15957 s/:\${srcdir}:/:/g
15958 s/:@srcdir@:/:/g
15959 s/^:*//
15960 s/:*$//
15961 x
15962 s/\(=[ ]*\).*/\1/
15963 G
15964 s/\n//
15965 s/^[^=]*=[ ]*$//
15966 }'
15967 fi
15968
15969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15970 fi # test -n "$CONFIG_FILES"
15971
15972 # Set up the scripts for CONFIG_HEADERS section.
15973 # No need to generate them if there are no CONFIG_HEADERS.
15974 # This happens for instance with `./config.status Makefile'.
15975 if test -n "$CONFIG_HEADERS"; then
15976 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15977 BEGIN {
15978 _ACEOF
15979
15980 # Transform confdefs.h into an awk script `defines.awk', embedded as
15981 # here-document in config.status, that substitutes the proper values into
15982 # config.h.in to produce config.h.
15983
15984 # Create a delimiter string that does not exist in confdefs.h, to ease
15985 # handling of long lines.
15986 ac_delim='%!_!# '
15987 for ac_last_try in false false :; do
15988 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15989 if test -z "$ac_tt"; then
15990 break
15991 elif $ac_last_try; then
15992 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15993 else
15994 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15995 fi
15996 done
15997
15998 # For the awk script, D is an array of macro values keyed by name,
15999 # likewise P contains macro parameters if any. Preserve backslash
16000 # newline sequences.
16001
16002 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16003 sed -n '
16004 s/.\{148\}/&'"$ac_delim"'/g
16005 t rset
16006 :rset
16007 s/^[ ]*#[ ]*define[ ][ ]*/ /
16008 t def
16009 d
16010 :def
16011 s/\\$//
16012 t bsnl
16013 s/["\\]/\\&/g
16014 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16015 D["\1"]=" \3"/p
16016 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16017 d
16018 :bsnl
16019 s/["\\]/\\&/g
16020 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16021 D["\1"]=" \3\\\\\\n"\\/p
16022 t cont
16023 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16024 t cont
16025 d
16026 :cont
16027 n
16028 s/.\{148\}/&'"$ac_delim"'/g
16029 t clear
16030 :clear
16031 s/\\$//
16032 t bsnlc
16033 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16034 d
16035 :bsnlc
16036 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16037 b cont
16038 ' <confdefs.h | sed '
16039 s/'"$ac_delim"'/"\\\
16040 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16041
16042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16043 for (key in D) D_is_set[key] = 1
16044 FS = "\a"
16045 }
16046 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16047 line = \$ 0
16048 split(line, arg, " ")
16049 if (arg[1] == "#") {
16050 defundef = arg[2]
16051 mac1 = arg[3]
16052 } else {
16053 defundef = substr(arg[1], 2)
16054 mac1 = arg[2]
16055 }
16056 split(mac1, mac2, "(") #)
16057 macro = mac2[1]
16058 prefix = substr(line, 1, index(line, defundef) - 1)
16059 if (D_is_set[macro]) {
16060 # Preserve the white space surrounding the "#".
16061 print prefix "define", macro P[macro] D[macro]
16062 next
16063 } else {
16064 # Replace #undef with comments. This is necessary, for example,
16065 # in the case of _POSIX_SOURCE, which is predefined and required
16066 # on some systems where configure will not decide to define it.
16067 if (defundef == "undef") {
16068 print "/*", prefix defundef, macro, "*/"
16069 next
16070 }
16071 }
16072 }
16073 { print }
16074 _ACAWK
16075 _ACEOF
16076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16077 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16078 fi # test -n "$CONFIG_HEADERS"
16079
16080
16081 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16082 shift
16083 for ac_tag
16084 do
16085 case $ac_tag in
16086 :[FHLC]) ac_mode=$ac_tag; continue;;
16087 esac
16088 case $ac_mode$ac_tag in
16089 :[FHL]*:*);;
16090 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16091 :[FH]-) ac_tag=-:-;;
16092 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16093 esac
16094 ac_save_IFS=$IFS
16095 IFS=:
16096 set x $ac_tag
16097 IFS=$ac_save_IFS
16098 shift
16099 ac_file=$1
16100 shift
16101
16102 case $ac_mode in
16103 :L) ac_source=$1;;
16104 :[FH])
16105 ac_file_inputs=
16106 for ac_f
16107 do
16108 case $ac_f in
16109 -) ac_f="$ac_tmp/stdin";;
16110 *) # Look for the file first in the build tree, then in the source tree
16111 # (if the path is not absolute). The absolute path cannot be DOS-style,
16112 # because $ac_f cannot contain `:'.
16113 test -f "$ac_f" ||
16114 case $ac_f in
16115 [\\/$]*) false;;
16116 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16117 esac ||
16118 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16119 esac
16120 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16121 as_fn_append ac_file_inputs " '$ac_f'"
16122 done
16123
16124 # Let's still pretend it is `configure' which instantiates (i.e., don't
16125 # use $as_me), people would be surprised to read:
16126 # /* config.h. Generated by config.status. */
16127 configure_input='Generated from '`
16128 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16129 `' by configure.'
16130 if test x"$ac_file" != x-; then
16131 configure_input="$ac_file. $configure_input"
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16133 $as_echo "$as_me: creating $ac_file" >&6;}
16134 fi
16135 # Neutralize special characters interpreted by sed in replacement strings.
16136 case $configure_input in #(
16137 *\&* | *\|* | *\\* )
16138 ac_sed_conf_input=`$as_echo "$configure_input" |
16139 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16140 *) ac_sed_conf_input=$configure_input;;
16141 esac
16142
16143 case $ac_tag in
16144 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16146 esac
16147 ;;
16148 esac
16149
16150 ac_dir=`$as_dirname -- "$ac_file" ||
16151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16152 X"$ac_file" : 'X\(//\)[^/]' \| \
16153 X"$ac_file" : 'X\(//\)$' \| \
16154 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16155 $as_echo X"$ac_file" |
16156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16157 s//\1/
16158 q
16159 }
16160 /^X\(\/\/\)[^/].*/{
16161 s//\1/
16162 q
16163 }
16164 /^X\(\/\/\)$/{
16165 s//\1/
16166 q
16167 }
16168 /^X\(\/\).*/{
16169 s//\1/
16170 q
16171 }
16172 s/.*/./; q'`
16173 as_dir="$ac_dir"; as_fn_mkdir_p
16174 ac_builddir=.
16175
16176 case "$ac_dir" in
16177 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16178 *)
16179 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16180 # A ".." for each directory in $ac_dir_suffix.
16181 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16182 case $ac_top_builddir_sub in
16183 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16184 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16185 esac ;;
16186 esac
16187 ac_abs_top_builddir=$ac_pwd
16188 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16189 # for backward compatibility:
16190 ac_top_builddir=$ac_top_build_prefix
16191
16192 case $srcdir in
16193 .) # We are building in place.
16194 ac_srcdir=.
16195 ac_top_srcdir=$ac_top_builddir_sub
16196 ac_abs_top_srcdir=$ac_pwd ;;
16197 [\\/]* | ?:[\\/]* ) # Absolute name.
16198 ac_srcdir=$srcdir$ac_dir_suffix;
16199 ac_top_srcdir=$srcdir
16200 ac_abs_top_srcdir=$srcdir ;;
16201 *) # Relative name.
16202 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16203 ac_top_srcdir=$ac_top_build_prefix$srcdir
16204 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16205 esac
16206 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16207
16208
16209 case $ac_mode in
16210 :F)
16211 #
16212 # CONFIG_FILE
16213 #
16214
16215 case $INSTALL in
16216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16217 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16218 esac
16219 ac_MKDIR_P=$MKDIR_P
16220 case $MKDIR_P in
16221 [\\/$]* | ?:[\\/]* ) ;;
16222 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16223 esac
16224 _ACEOF
16225
16226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16227 # If the template does not know about datarootdir, expand it.
16228 # FIXME: This hack should be removed a few years after 2.60.
16229 ac_datarootdir_hack=; ac_datarootdir_seen=
16230 ac_sed_dataroot='
16231 /datarootdir/ {
16232 p
16233 q
16234 }
16235 /@datadir@/p
16236 /@docdir@/p
16237 /@infodir@/p
16238 /@localedir@/p
16239 /@mandir@/p'
16240 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16241 *datarootdir*) ac_datarootdir_seen=yes;;
16242 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16244 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16245 _ACEOF
16246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16247 ac_datarootdir_hack='
16248 s&@datadir@&$datadir&g
16249 s&@docdir@&$docdir&g
16250 s&@infodir@&$infodir&g
16251 s&@localedir@&$localedir&g
16252 s&@mandir@&$mandir&g
16253 s&\\\${datarootdir}&$datarootdir&g' ;;
16254 esac
16255 _ACEOF
16256
16257 # Neutralize VPATH when `$srcdir' = `.'.
16258 # Shell code in configure.ac might set extrasub.
16259 # FIXME: do we really want to maintain this feature?
16260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16261 ac_sed_extra="$ac_vpsub
16262 $extrasub
16263 _ACEOF
16264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16265 :t
16266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16267 s|@configure_input@|$ac_sed_conf_input|;t t
16268 s&@top_builddir@&$ac_top_builddir_sub&;t t
16269 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16270 s&@srcdir@&$ac_srcdir&;t t
16271 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16272 s&@top_srcdir@&$ac_top_srcdir&;t t
16273 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16274 s&@builddir@&$ac_builddir&;t t
16275 s&@abs_builddir@&$ac_abs_builddir&;t t
16276 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16277 s&@INSTALL@&$ac_INSTALL&;t t
16278 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16279 $ac_datarootdir_hack
16280 "
16281 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16282 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16283
16284 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16285 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16286 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16287 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16289 which seems to be undefined. Please make sure it is defined" >&5
16290 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16291 which seems to be undefined. Please make sure it is defined" >&2;}
16292
16293 rm -f "$ac_tmp/stdin"
16294 case $ac_file in
16295 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16296 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16297 esac \
16298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16299 ;;
16300 :H)
16301 #
16302 # CONFIG_HEADER
16303 #
16304 if test x"$ac_file" != x-; then
16305 {
16306 $as_echo "/* $configure_input */" \
16307 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16308 } >"$ac_tmp/config.h" \
16309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16310 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16312 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16313 else
16314 rm -f "$ac_file"
16315 mv "$ac_tmp/config.h" "$ac_file" \
16316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16317 fi
16318 else
16319 $as_echo "/* $configure_input */" \
16320 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16321 || as_fn_error $? "could not create -" "$LINENO" 5
16322 fi
16323 # Compute "$ac_file"'s index in $config_headers.
16324 _am_arg="$ac_file"
16325 _am_stamp_count=1
16326 for _am_header in $config_headers :; do
16327 case $_am_header in
16328 $_am_arg | $_am_arg:* )
16329 break ;;
16330 * )
16331 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16332 esac
16333 done
16334 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16335 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16336 X"$_am_arg" : 'X\(//\)[^/]' \| \
16337 X"$_am_arg" : 'X\(//\)$' \| \
16338 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16339 $as_echo X"$_am_arg" |
16340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16341 s//\1/
16342 q
16343 }
16344 /^X\(\/\/\)[^/].*/{
16345 s//\1/
16346 q
16347 }
16348 /^X\(\/\/\)$/{
16349 s//\1/
16350 q
16351 }
16352 /^X\(\/\).*/{
16353 s//\1/
16354 q
16355 }
16356 s/.*/./; q'`/stamp-h$_am_stamp_count
16357 ;;
16358
16359 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16360 $as_echo "$as_me: executing $ac_file commands" >&6;}
16361 ;;
16362 esac
16363
16364
16365 case $ac_file$ac_mode in
16366 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16367 # Older Autoconf quotes --file arguments for eval, but not when files
16368 # are listed without --file. Let's play safe and only enable the eval
16369 # if we detect the quoting.
16370 case $CONFIG_FILES in
16371 *\'*) eval set x "$CONFIG_FILES" ;;
16372 *) set x $CONFIG_FILES ;;
16373 esac
16374 shift
16375 for mf
16376 do
16377 # Strip MF so we end up with the name of the file.
16378 mf=`echo "$mf" | sed -e 's/:.*$//'`
16379 # Check whether this is an Automake generated Makefile or not.
16380 # We used to match only the files named 'Makefile.in', but
16381 # some people rename them; so instead we look at the file content.
16382 # Grep'ing the first line is not enough: some people post-process
16383 # each Makefile.in and add a new line on top of each file to say so.
16384 # Grep'ing the whole file is not good either: AIX grep has a line
16385 # limit of 2048, but all sed's we know have understand at least 4000.
16386 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16387 dirpart=`$as_dirname -- "$mf" ||
16388 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16389 X"$mf" : 'X\(//\)[^/]' \| \
16390 X"$mf" : 'X\(//\)$' \| \
16391 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16392 $as_echo X"$mf" |
16393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16394 s//\1/
16395 q
16396 }
16397 /^X\(\/\/\)[^/].*/{
16398 s//\1/
16399 q
16400 }
16401 /^X\(\/\/\)$/{
16402 s//\1/
16403 q
16404 }
16405 /^X\(\/\).*/{
16406 s//\1/
16407 q
16408 }
16409 s/.*/./; q'`
16410 else
16411 continue
16412 fi
16413 # Extract the definition of DEPDIR, am__include, and am__quote
16414 # from the Makefile without running 'make'.
16415 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16416 test -z "$DEPDIR" && continue
16417 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16418 test -z "$am__include" && continue
16419 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16420 # Find all dependency output files, they are included files with
16421 # $(DEPDIR) in their names. We invoke sed twice because it is the
16422 # simplest approach to changing $(DEPDIR) to its actual value in the
16423 # expansion.
16424 for file in `sed -n "
16425 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16426 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16427 # Make sure the directory exists.
16428 test -f "$dirpart/$file" && continue
16429 fdir=`$as_dirname -- "$file" ||
16430 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16431 X"$file" : 'X\(//\)[^/]' \| \
16432 X"$file" : 'X\(//\)$' \| \
16433 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16434 $as_echo X"$file" |
16435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16436 s//\1/
16437 q
16438 }
16439 /^X\(\/\/\)[^/].*/{
16440 s//\1/
16441 q
16442 }
16443 /^X\(\/\/\)$/{
16444 s//\1/
16445 q
16446 }
16447 /^X\(\/\).*/{
16448 s//\1/
16449 q
16450 }
16451 s/.*/./; q'`
16452 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16453 # echo "creating $dirpart/$file"
16454 echo '# dummy' > "$dirpart/$file"
16455 done
16456 done
16457 }
16458 ;;
16459 "libtool":C)
16460
16461 # See if we are running on zsh, and set the options which allow our
16462 # commands through without removal of \ escapes.
16463 if test -n "${ZSH_VERSION+set}" ; then
16464 setopt NO_GLOB_SUBST
16465 fi
16466
16467 cfgfile="${ofile}T"
16468 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16469 $RM "$cfgfile"
16470
16471 cat <<_LT_EOF >> "$cfgfile"
16472 #! $SHELL
16473
16474 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16475 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16476 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16477 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16478 #
16479 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16480 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16481 # Written by Gordon Matzigkeit, 1996
16482 #
16483 # This file is part of GNU Libtool.
16484 #
16485 # GNU Libtool is free software; you can redistribute it and/or
16486 # modify it under the terms of the GNU General Public License as
16487 # published by the Free Software Foundation; either version 2 of
16488 # the License, or (at your option) any later version.
16489 #
16490 # As a special exception to the GNU General Public License,
16491 # if you distribute this file as part of a program or library that
16492 # is built using GNU Libtool, you may include this file under the
16493 # same distribution terms that you use for the rest of that program.
16494 #
16495 # GNU Libtool is distributed in the hope that it will be useful,
16496 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16497 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16498 # GNU General Public License for more details.
16499 #
16500 # You should have received a copy of the GNU General Public License
16501 # along with GNU Libtool; see the file COPYING. If not, a copy
16502 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16503 # obtained by writing to the Free Software Foundation, Inc.,
16504 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16505
16506
16507 # The names of the tagged configurations supported by this script.
16508 available_tags=""
16509
16510 # ### BEGIN LIBTOOL CONFIG
16511
16512 # Which release of libtool.m4 was used?
16513 macro_version=$macro_version
16514 macro_revision=$macro_revision
16515
16516 # Whether or not to build shared libraries.
16517 build_libtool_libs=$enable_shared
16518
16519 # Whether or not to build static libraries.
16520 build_old_libs=$enable_static
16521
16522 # What type of objects to build.
16523 pic_mode=$pic_mode
16524
16525 # Whether or not to optimize for fast installation.
16526 fast_install=$enable_fast_install
16527
16528 # Shell to use when invoking shell scripts.
16529 SHELL=$lt_SHELL
16530
16531 # An echo program that protects backslashes.
16532 ECHO=$lt_ECHO
16533
16534 # The host system.
16535 host_alias=$host_alias
16536 host=$host
16537 host_os=$host_os
16538
16539 # The build system.
16540 build_alias=$build_alias
16541 build=$build
16542 build_os=$build_os
16543
16544 # A sed program that does not truncate output.
16545 SED=$lt_SED
16546
16547 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16548 Xsed="\$SED -e 1s/^X//"
16549
16550 # A grep program that handles long lines.
16551 GREP=$lt_GREP
16552
16553 # An ERE matcher.
16554 EGREP=$lt_EGREP
16555
16556 # A literal string matcher.
16557 FGREP=$lt_FGREP
16558
16559 # A BSD- or MS-compatible name lister.
16560 NM=$lt_NM
16561
16562 # Whether we need soft or hard links.
16563 LN_S=$lt_LN_S
16564
16565 # What is the maximum length of a command?
16566 max_cmd_len=$max_cmd_len
16567
16568 # Object file suffix (normally "o").
16569 objext=$ac_objext
16570
16571 # Executable file suffix (normally "").
16572 exeext=$exeext
16573
16574 # whether the shell understands "unset".
16575 lt_unset=$lt_unset
16576
16577 # turn spaces into newlines.
16578 SP2NL=$lt_lt_SP2NL
16579
16580 # turn newlines into spaces.
16581 NL2SP=$lt_lt_NL2SP
16582
16583 # An object symbol dumper.
16584 OBJDUMP=$lt_OBJDUMP
16585
16586 # Method to check whether dependent libraries are shared objects.
16587 deplibs_check_method=$lt_deplibs_check_method
16588
16589 # Command to use when deplibs_check_method == "file_magic".
16590 file_magic_cmd=$lt_file_magic_cmd
16591
16592 # The archiver.
16593 AR=$lt_AR
16594 AR_FLAGS=$lt_AR_FLAGS
16595
16596 # A symbol stripping program.
16597 STRIP=$lt_STRIP
16598
16599 # Commands used to install an old-style archive.
16600 RANLIB=$lt_RANLIB
16601 old_postinstall_cmds=$lt_old_postinstall_cmds
16602 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16603
16604 # Whether to use a lock for old archive extraction.
16605 lock_old_archive_extraction=$lock_old_archive_extraction
16606
16607 # A C compiler.
16608 LTCC=$lt_CC
16609
16610 # LTCC compiler flags.
16611 LTCFLAGS=$lt_CFLAGS
16612
16613 # Take the output of nm and produce a listing of raw symbols and C names.
16614 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16615
16616 # Transform the output of nm in a proper C declaration.
16617 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16618
16619 # Transform the output of nm in a C name address pair.
16620 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16621
16622 # Transform the output of nm in a C name address pair when lib prefix is needed.
16623 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16624
16625 # The name of the directory that contains temporary libtool files.
16626 objdir=$objdir
16627
16628 # Used to examine libraries when file_magic_cmd begins with "file".
16629 MAGIC_CMD=$MAGIC_CMD
16630
16631 # Must we lock files when doing compilation?
16632 need_locks=$lt_need_locks
16633
16634 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16635 DSYMUTIL=$lt_DSYMUTIL
16636
16637 # Tool to change global to local symbols on Mac OS X.
16638 NMEDIT=$lt_NMEDIT
16639
16640 # Tool to manipulate fat objects and archives on Mac OS X.
16641 LIPO=$lt_LIPO
16642
16643 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16644 OTOOL=$lt_OTOOL
16645
16646 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16647 OTOOL64=$lt_OTOOL64
16648
16649 # Old archive suffix (normally "a").
16650 libext=$libext
16651
16652 # Shared library suffix (normally ".so").
16653 shrext_cmds=$lt_shrext_cmds
16654
16655 # The commands to extract the exported symbol list from a shared archive.
16656 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16657
16658 # Variables whose values should be saved in libtool wrapper scripts and
16659 # restored at link time.
16660 variables_saved_for_relink=$lt_variables_saved_for_relink
16661
16662 # Do we need the "lib" prefix for modules?
16663 need_lib_prefix=$need_lib_prefix
16664
16665 # Do we need a version for libraries?
16666 need_version=$need_version
16667
16668 # Library versioning type.
16669 version_type=$version_type
16670
16671 # Shared library runtime path variable.
16672 runpath_var=$runpath_var
16673
16674 # Shared library path variable.
16675 shlibpath_var=$shlibpath_var
16676
16677 # Is shlibpath searched before the hard-coded library search path?
16678 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16679
16680 # Format of library name prefix.
16681 libname_spec=$lt_libname_spec
16682
16683 # List of archive names. First name is the real one, the rest are links.
16684 # The last name is the one that the linker finds with -lNAME
16685 library_names_spec=$lt_library_names_spec
16686
16687 # The coded name of the library, if different from the real name.
16688 soname_spec=$lt_soname_spec
16689
16690 # Permission mode override for installation of shared libraries.
16691 install_override_mode=$lt_install_override_mode
16692
16693 # Command to use after installation of a shared archive.
16694 postinstall_cmds=$lt_postinstall_cmds
16695
16696 # Command to use after uninstallation of a shared archive.
16697 postuninstall_cmds=$lt_postuninstall_cmds
16698
16699 # Commands used to finish a libtool library installation in a directory.
16700 finish_cmds=$lt_finish_cmds
16701
16702 # As "finish_cmds", except a single script fragment to be evaled but
16703 # not shown.
16704 finish_eval=$lt_finish_eval
16705
16706 # Whether we should hardcode library paths into libraries.
16707 hardcode_into_libs=$hardcode_into_libs
16708
16709 # Compile-time system search path for libraries.
16710 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16711
16712 # Run-time system search path for libraries.
16713 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16714
16715 # Whether dlopen is supported.
16716 dlopen_support=$enable_dlopen
16717
16718 # Whether dlopen of programs is supported.
16719 dlopen_self=$enable_dlopen_self
16720
16721 # Whether dlopen of statically linked programs is supported.
16722 dlopen_self_static=$enable_dlopen_self_static
16723
16724 # Commands to strip libraries.
16725 old_striplib=$lt_old_striplib
16726 striplib=$lt_striplib
16727
16728
16729 # The linker used to build libraries.
16730 LD=$lt_LD
16731
16732 # How to create reloadable object files.
16733 reload_flag=$lt_reload_flag
16734 reload_cmds=$lt_reload_cmds
16735
16736 # Commands used to build an old-style archive.
16737 old_archive_cmds=$lt_old_archive_cmds
16738
16739 # A language specific compiler.
16740 CC=$lt_compiler
16741
16742 # Is the compiler the GNU compiler?
16743 with_gcc=$GCC
16744
16745 # Compiler flag to turn off builtin functions.
16746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16747
16748 # How to pass a linker flag through the compiler.
16749 wl=$lt_lt_prog_compiler_wl
16750
16751 # Additional compiler flags for building library objects.
16752 pic_flag=$lt_lt_prog_compiler_pic
16753
16754 # Compiler flag to prevent dynamic linking.
16755 link_static_flag=$lt_lt_prog_compiler_static
16756
16757 # Does compiler simultaneously support -c and -o options?
16758 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16759
16760 # Whether or not to add -lc for building shared libraries.
16761 build_libtool_need_lc=$archive_cmds_need_lc
16762
16763 # Whether or not to disallow shared libs when runtime libs are static.
16764 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16765
16766 # Compiler flag to allow reflexive dlopens.
16767 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16768
16769 # Compiler flag to generate shared objects directly from archives.
16770 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16771
16772 # Whether the compiler copes with passing no objects directly.
16773 compiler_needs_object=$lt_compiler_needs_object
16774
16775 # Create an old-style archive from a shared archive.
16776 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16777
16778 # Create a temporary old-style archive to link instead of a shared archive.
16779 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16780
16781 # Commands used to build a shared archive.
16782 archive_cmds=$lt_archive_cmds
16783 archive_expsym_cmds=$lt_archive_expsym_cmds
16784
16785 # Commands used to build a loadable module if different from building
16786 # a shared archive.
16787 module_cmds=$lt_module_cmds
16788 module_expsym_cmds=$lt_module_expsym_cmds
16789
16790 # Whether we are building with GNU ld or not.
16791 with_gnu_ld=$lt_with_gnu_ld
16792
16793 # Flag that allows shared libraries with undefined symbols to be built.
16794 allow_undefined_flag=$lt_allow_undefined_flag
16795
16796 # Flag that enforces no undefined symbols.
16797 no_undefined_flag=$lt_no_undefined_flag
16798
16799 # Flag to hardcode \$libdir into a binary during linking.
16800 # This must work even if \$libdir does not exist
16801 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16802
16803 # If ld is used when linking, flag to hardcode \$libdir into a binary
16804 # during linking. This must work even if \$libdir does not exist.
16805 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16806
16807 # Whether we need a single "-rpath" flag with a separated argument.
16808 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16809
16810 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16811 # DIR into the resulting binary.
16812 hardcode_direct=$hardcode_direct
16813
16814 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16815 # DIR into the resulting binary and the resulting library dependency is
16816 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16817 # library is relocated.
16818 hardcode_direct_absolute=$hardcode_direct_absolute
16819
16820 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16821 # into the resulting binary.
16822 hardcode_minus_L=$hardcode_minus_L
16823
16824 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16825 # into the resulting binary.
16826 hardcode_shlibpath_var=$hardcode_shlibpath_var
16827
16828 # Set to "yes" if building a shared library automatically hardcodes DIR
16829 # into the library and all subsequent libraries and executables linked
16830 # against it.
16831 hardcode_automatic=$hardcode_automatic
16832
16833 # Set to yes if linker adds runtime paths of dependent libraries
16834 # to runtime path list.
16835 inherit_rpath=$inherit_rpath
16836
16837 # Whether libtool must link a program against all its dependency libraries.
16838 link_all_deplibs=$link_all_deplibs
16839
16840 # Fix the shell variable \$srcfile for the compiler.
16841 fix_srcfile_path=$lt_fix_srcfile_path
16842
16843 # Set to "yes" if exported symbols are required.
16844 always_export_symbols=$always_export_symbols
16845
16846 # The commands to list exported symbols.
16847 export_symbols_cmds=$lt_export_symbols_cmds
16848
16849 # Symbols that should not be listed in the preloaded symbols.
16850 exclude_expsyms=$lt_exclude_expsyms
16851
16852 # Symbols that must always be exported.
16853 include_expsyms=$lt_include_expsyms
16854
16855 # Commands necessary for linking programs (against libraries) with templates.
16856 prelink_cmds=$lt_prelink_cmds
16857
16858 # Specify filename containing input files.
16859 file_list_spec=$lt_file_list_spec
16860
16861 # How to hardcode a shared library path into an executable.
16862 hardcode_action=$hardcode_action
16863
16864 # ### END LIBTOOL CONFIG
16865
16866 _LT_EOF
16867
16868 case $host_os in
16869 aix3*)
16870 cat <<\_LT_EOF >> "$cfgfile"
16871 # AIX sometimes has problems with the GCC collect2 program. For some
16872 # reason, if we set the COLLECT_NAMES environment variable, the problems
16873 # vanish in a puff of smoke.
16874 if test "X${COLLECT_NAMES+set}" != Xset; then
16875 COLLECT_NAMES=
16876 export COLLECT_NAMES
16877 fi
16878 _LT_EOF
16879 ;;
16880 esac
16881
16882
16883 ltmain="$ac_aux_dir/ltmain.sh"
16884
16885
16886 # We use sed instead of cat because bash on DJGPP gets confused if
16887 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16888 # text mode, it properly converts lines to CR/LF. This bash problem
16889 # is reportedly fixed, but why not run on old versions too?
16890 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16891 || (rm -f "$cfgfile"; exit 1)
16892
16893 case $xsi_shell in
16894 yes)
16895 cat << \_LT_EOF >> "$cfgfile"
16896
16897 # func_dirname file append nondir_replacement
16898 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16899 # otherwise set result to NONDIR_REPLACEMENT.
16900 func_dirname ()
16901 {
16902 case ${1} in
16903 */*) func_dirname_result="${1%/*}${2}" ;;
16904 * ) func_dirname_result="${3}" ;;
16905 esac
16906 }
16907
16908 # func_basename file
16909 func_basename ()
16910 {
16911 func_basename_result="${1##*/}"
16912 }
16913
16914 # func_dirname_and_basename file append nondir_replacement
16915 # perform func_basename and func_dirname in a single function
16916 # call:
16917 # dirname: Compute the dirname of FILE. If nonempty,
16918 # add APPEND to the result, otherwise set result
16919 # to NONDIR_REPLACEMENT.
16920 # value returned in "$func_dirname_result"
16921 # basename: Compute filename of FILE.
16922 # value retuned in "$func_basename_result"
16923 # Implementation must be kept synchronized with func_dirname
16924 # and func_basename. For efficiency, we do not delegate to
16925 # those functions but instead duplicate the functionality here.
16926 func_dirname_and_basename ()
16927 {
16928 case ${1} in
16929 */*) func_dirname_result="${1%/*}${2}" ;;
16930 * ) func_dirname_result="${3}" ;;
16931 esac
16932 func_basename_result="${1##*/}"
16933 }
16934
16935 # func_stripname prefix suffix name
16936 # strip PREFIX and SUFFIX off of NAME.
16937 # PREFIX and SUFFIX must not contain globbing or regex special
16938 # characters, hashes, percent signs, but SUFFIX may contain a leading
16939 # dot (in which case that matches only a dot).
16940 func_stripname ()
16941 {
16942 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16943 # positional parameters, so assign one to ordinary parameter first.
16944 func_stripname_result=${3}
16945 func_stripname_result=${func_stripname_result#"${1}"}
16946 func_stripname_result=${func_stripname_result%"${2}"}
16947 }
16948
16949 # func_opt_split
16950 func_opt_split ()
16951 {
16952 func_opt_split_opt=${1%%=*}
16953 func_opt_split_arg=${1#*=}
16954 }
16955
16956 # func_lo2o object
16957 func_lo2o ()
16958 {
16959 case ${1} in
16960 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16961 *) func_lo2o_result=${1} ;;
16962 esac
16963 }
16964
16965 # func_xform libobj-or-source
16966 func_xform ()
16967 {
16968 func_xform_result=${1%.*}.lo
16969 }
16970
16971 # func_arith arithmetic-term...
16972 func_arith ()
16973 {
16974 func_arith_result=$(( $* ))
16975 }
16976
16977 # func_len string
16978 # STRING may not start with a hyphen.
16979 func_len ()
16980 {
16981 func_len_result=${#1}
16982 }
16983
16984 _LT_EOF
16985 ;;
16986 *) # Bourne compatible functions.
16987 cat << \_LT_EOF >> "$cfgfile"
16988
16989 # func_dirname file append nondir_replacement
16990 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16991 # otherwise set result to NONDIR_REPLACEMENT.
16992 func_dirname ()
16993 {
16994 # Extract subdirectory from the argument.
16995 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16996 if test "X$func_dirname_result" = "X${1}"; then
16997 func_dirname_result="${3}"
16998 else
16999 func_dirname_result="$func_dirname_result${2}"
17000 fi
17001 }
17002
17003 # func_basename file
17004 func_basename ()
17005 {
17006 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17007 }
17008
17009
17010 # func_stripname prefix suffix name
17011 # strip PREFIX and SUFFIX off of NAME.
17012 # PREFIX and SUFFIX must not contain globbing or regex special
17013 # characters, hashes, percent signs, but SUFFIX may contain a leading
17014 # dot (in which case that matches only a dot).
17015 # func_strip_suffix prefix name
17016 func_stripname ()
17017 {
17018 case ${2} in
17019 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17020 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17021 esac
17022 }
17023
17024 # sed scripts:
17025 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17026 my_sed_long_arg='1s/^-[^=]*=//'
17027
17028 # func_opt_split
17029 func_opt_split ()
17030 {
17031 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17032 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17033 }
17034
17035 # func_lo2o object
17036 func_lo2o ()
17037 {
17038 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17039 }
17040
17041 # func_xform libobj-or-source
17042 func_xform ()
17043 {
17044 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17045 }
17046
17047 # func_arith arithmetic-term...
17048 func_arith ()
17049 {
17050 func_arith_result=`expr "$@"`
17051 }
17052
17053 # func_len string
17054 # STRING may not start with a hyphen.
17055 func_len ()
17056 {
17057 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17058 }
17059
17060 _LT_EOF
17061 esac
17062
17063 case $lt_shell_append in
17064 yes)
17065 cat << \_LT_EOF >> "$cfgfile"
17066
17067 # func_append var value
17068 # Append VALUE to the end of shell variable VAR.
17069 func_append ()
17070 {
17071 eval "$1+=\$2"
17072 }
17073 _LT_EOF
17074 ;;
17075 *)
17076 cat << \_LT_EOF >> "$cfgfile"
17077
17078 # func_append var value
17079 # Append VALUE to the end of shell variable VAR.
17080 func_append ()
17081 {
17082 eval "$1=\$$1\$2"
17083 }
17084
17085 _LT_EOF
17086 ;;
17087 esac
17088
17089
17090 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17091 || (rm -f "$cfgfile"; exit 1)
17092
17093 mv -f "$cfgfile" "$ofile" ||
17094 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17095 chmod +x "$ofile"
17096
17097 ;;
17098 "default-1":C)
17099 for ac_file in $CONFIG_FILES; do
17100 # Support "outfile[:infile[:infile...]]"
17101 case "$ac_file" in
17102 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17103 esac
17104 # PO directories have a Makefile.in generated from Makefile.in.in.
17105 case "$ac_file" in */Makefile.in)
17106 # Adjust a relative srcdir.
17107 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17108 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17109 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17110 # In autoconf-2.13 it is called $ac_given_srcdir.
17111 # In autoconf-2.50 it is called $srcdir.
17112 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17113 case "$ac_given_srcdir" in
17114 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17115 /*) top_srcdir="$ac_given_srcdir" ;;
17116 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17117 esac
17118 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17119 rm -f "$ac_dir/POTFILES"
17120 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17121 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17122 POMAKEFILEDEPS="POTFILES.in"
17123 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17124 # on $ac_dir but don't depend on user-specified configuration
17125 # parameters.
17126 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17127 # The LINGUAS file contains the set of available languages.
17128 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17129 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
17130 fi
17131 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17132 # Hide the ALL_LINGUAS assigment from automake.
17133 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17134 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17135 else
17136 # The set of available languages was given in configure.ac.
17137 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17138 fi
17139 case "$ac_given_srcdir" in
17140 .) srcdirpre= ;;
17141 *) srcdirpre='$(srcdir)/' ;;
17142 esac
17143 POFILES=
17144 GMOFILES=
17145 UPDATEPOFILES=
17146 DUMMYPOFILES=
17147 for lang in $ALL_LINGUAS; do
17148 POFILES="$POFILES $srcdirpre$lang.po"
17149 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17150 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17151 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17152 done
17153 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17154 # environment variable.
17155 INST_LINGUAS=
17156 if test -n "$ALL_LINGUAS"; then
17157 for presentlang in $ALL_LINGUAS; do
17158 useit=no
17159 if test "%UNSET%" != "$LINGUAS"; then
17160 desiredlanguages="$LINGUAS"
17161 else
17162 desiredlanguages="$ALL_LINGUAS"
17163 fi
17164 for desiredlang in $desiredlanguages; do
17165 # Use the presentlang catalog if desiredlang is
17166 # a. equal to presentlang, or
17167 # b. a variant of presentlang (because in this case,
17168 # presentlang can be used as a fallback for messages
17169 # which are not translated in the desiredlang catalog).
17170 case "$desiredlang" in
17171 "$presentlang"*) useit=yes;;
17172 esac
17173 done
17174 if test $useit = yes; then
17175 INST_LINGUAS="$INST_LINGUAS $presentlang"
17176 fi
17177 done
17178 fi
17179 CATALOGS=
17180 if test -n "$INST_LINGUAS"; then
17181 for lang in $INST_LINGUAS; do
17182 CATALOGS="$CATALOGS $lang.gmo"
17183 done
17184 fi
17185 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17186 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"
17187 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17188 if test -f "$f"; then
17189 case "$f" in
17190 *.orig | *.bak | *~) ;;
17191 *) cat "$f" >> "$ac_dir/Makefile" ;;
17192 esac
17193 fi
17194 done
17195 fi
17196 ;;
17197 esac
17198 done ;;
17199
17200 esac
17201 done # for ac_tag
17202
17203
17204 as_fn_exit 0
17205 _ACEOF
17206 ac_clean_files=$ac_clean_files_save
17207
17208 test $ac_write_fail = 0 ||
17209 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17210
17211
17212 # configure is writing to config.log, and then calls config.status.
17213 # config.status does its own redirection, appending to config.log.
17214 # Unfortunately, on DOS this fails, as config.log is still kept open
17215 # by configure, so config.status won't be able to write to it; its
17216 # output is simply discarded. So we exec the FD to /dev/null,
17217 # effectively closing config.log, so it can be properly (re)opened and
17218 # appended to by config.status. When coming back to configure, we
17219 # need to make the FD available again.
17220 if test "$no_create" != yes; then
17221 ac_cs_success=:
17222 ac_config_status_args=
17223 test "$silent" = yes &&
17224 ac_config_status_args="$ac_config_status_args --quiet"
17225 exec 5>/dev/null
17226 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17227 exec 5>>config.log
17228 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17229 # would make configure fail if this is the last instruction.
17230 $ac_cs_success || as_fn_exit 1
17231 fi
17232 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17234 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17235 fi
17236
17237
17238
17239 touch config.status.tmp
17240 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
17241 sed '/as_fn_exit 0/i \
17242 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
17243 touch --reference=Makefile Makefile.tmp \
17244 mv Makefile.tmp Makefile \
17245 ' config.status > config.status.tmp
17246 touch --reference=config.status config.status.tmp
17247 mv config.status.tmp config.status
17248 chmod +x config.status
17249 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
17250 touch --reference=Makefile Makefile.tmp
17251 mv Makefile.tmp Makefile
17252 else
17253 rm -f config.status.tmp
17254 fi