configure revision 1.10 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for binutils 2.45.
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 (at] 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.45'
591 PACKAGE_STRING='binutils 2.45'
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 gt_needs=
633 ac_header_list=
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 EMULATION_VECTOR
639 EMULATION
640 OBJDUMP_PRIVATE_OFILES
641 OBJDUMP_DEFS
642 BUILD_INSTALL_MISC
643 BUILD_MISC
644 BUILD_DLLWRAP
645 BUILD_WINDMC
646 BUILD_WINDRES
647 DLLTOOL_DEFS
648 BUILD_DLLTOOL
649 BUILD_SRCONV
650 MSGPACK_LIBS
651 MSGPACK_CFLAGS
652 ZSTD_LIBS
653 ZSTD_CFLAGS
654 zlibinc
655 zlibdir
656 DEMANGLER_NAME
657 EXEEXT_FOR_BUILD
658 CC_FOR_BUILD
659 HDEFINES
660 GENINSRC_NEVER_FALSE
661 GENINSRC_NEVER_TRUE
662 MAINT
663 MAINTAINER_MODE_FALSE
664 MAINTAINER_MODE_TRUE
665 CATOBJEXT
666 GENCAT
667 INSTOBJEXT
668 DATADIRNAME
669 CATALOGS
670 INCINTL
671 LIBINTL_DEP
672 POSUB
673 LTLIBINTL
674 LIBINTL
675 INTLLIBS
676 LTLIBICONV
677 LIBICONV
678 INTL_MACOSX_LIBS
679 MSGMERGE
680 XGETTEXT
681 GMSGFMT
682 MSGFMT
683 USE_NLS
684 MKINSTALLDIRS
685 LEXLIB
686 LEX_OUTPUT_ROOT
687 LEX
688 YFLAGS
689 YACC
690 WARN_WRITE_STRINGS
691 NO_WERROR
692 WARN_CFLAGS_FOR_BUILD
693 WARN_CFLAGS
694 ENABLE_LIBCTF_FALSE
695 ENABLE_LIBCTF_TRUE
696 DEBUGINFOD_LIBS
697 DEBUGINFOD_CFLAGS
698 PKG_CONFIG_LIBDIR
699 PKG_CONFIG_PATH
700 PKG_CONFIG
701 LARGEFILE_CPPFLAGS
702 OTOOL64
703 OTOOL
704 LIPO
705 NMEDIT
706 DSYMUTIL
707 RANLIB
708 AR
709 OBJDUMP
710 LN_S
711 NM
712 ac_ct_DUMPBIN
713 DUMPBIN
714 LD
715 FGREP
716 SED
717 LIBTOOL
718 EGREP
719 GREP
720 CPP
721 am__fastdepCC_FALSE
722 am__fastdepCC_TRUE
723 CCDEPMODE
724 am__nodep
725 AMDEPBACKSLASH
726 AMDEP_FALSE
727 AMDEP_TRUE
728 am__quote
729 am__include
730 DEPDIR
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
737 CC
738 AM_BACKSLASH
739 AM_DEFAULT_VERBOSITY
740 AM_DEFAULT_V
741 AM_V
742 am__untar
743 am__tar
744 AMTAR
745 am__leading_dot
746 SET_MAKE
747 AWK
748 mkdir_p
749 MKDIR_P
750 INSTALL_STRIP_PROGRAM
751 STRIP
752 install_sh
753 MAKEINFO
754 AUTOHEADER
755 AUTOMAKE
756 AUTOCONF
757 ACLOCAL
758 VERSION
759 PACKAGE
760 CYGPATH_W
761 am__isrc
762 INSTALL_DATA
763 INSTALL_SCRIPT
764 INSTALL_PROGRAM
765 target_os
766 target_vendor
767 target_cpu
768 target
769 host_os
770 host_vendor
771 host_cpu
772 host
773 build_os
774 build_vendor
775 build_cpu
776 build
777 target_alias
778 host_alias
779 build_alias
780 LIBS
781 ECHO_T
782 ECHO_N
783 ECHO_C
784 DEFS
785 mandir
786 localedir
787 libdir
788 psdir
789 pdfdir
790 dvidir
791 htmldir
792 infodir
793 docdir
794 oldincludedir
795 includedir
796 localstatedir
797 sharedstatedir
798 sysconfdir
799 datadir
800 datarootdir
801 libexecdir
802 sbindir
803 bindir
804 program_transform_name
805 prefix
806 exec_prefix
807 PACKAGE_URL
808 PACKAGE_BUGREPORT
809 PACKAGE_STRING
810 PACKAGE_VERSION
811 PACKAGE_TARNAME
812 PACKAGE_NAME
813 PATH_SEPARATOR
814 SHELL'
815 ac_subst_files=''
816 ac_user_opts='
817 enable_option_checking
818 enable_silent_rules
819 enable_dependency_tracking
820 enable_shared
821 enable_static
822 with_pic
823 enable_fast_install
824 with_gnu_ld
825 enable_libtool_lock
826 enable_plugins
827 enable_largefile
828 enable_checking
829 enable_targets
830 enable_deterministic_archives
831 enable_default_strings_all
832 enable_f_for_ifunc_symbols
833 enable_follow_debug_links
834 enable_colored_disassembly
835 with_debuginfod
836 enable_libctf
837 enable_werror
838 enable_build_warnings
839 enable_nls
840 enable_rpath
841 with_libiconv_prefix
842 with_libiconv_type
843 with_libintl_prefix
844 with_libintl_type
845 enable_maintainer_mode
846 with_system_zlib
847 with_zstd
848 with_msgpack
849 '
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 CPP
859 PKG_CONFIG
860 PKG_CONFIG_PATH
861 PKG_CONFIG_LIBDIR
862 DEBUGINFOD_CFLAGS
863 DEBUGINFOD_LIBS
864 YACC
865 YFLAGS
866 ZSTD_CFLAGS
867 ZSTD_LIBS
868 MSGPACK_CFLAGS
869 MSGPACK_LIBS'
870
871
872 # Initialize some variables set by options.
873 ac_init_help=
874 ac_init_version=false
875 ac_unrecognized_opts=
876 ac_unrecognized_sep=
877 # The variables have the same names as the options, with
878 # dashes changed to underlines.
879 cache_file=/dev/null
880 exec_prefix=NONE
881 no_create=
882 no_recursion=
883 prefix=NONE
884 program_prefix=NONE
885 program_suffix=NONE
886 program_transform_name=s,x,x,
887 silent=
888 site=
889 srcdir=
890 verbose=
891 x_includes=NONE
892 x_libraries=NONE
893
894 # Installation directory options.
895 # These are left unexpanded so users can "make install exec_prefix=/foo"
896 # and all the variables that are supposed to be based on exec_prefix
897 # by default will actually change.
898 # Use braces instead of parens because sh, perl, etc. also accept them.
899 # (The list follows the same order as the GNU Coding Standards.)
900 bindir='${exec_prefix}/bin'
901 sbindir='${exec_prefix}/sbin'
902 libexecdir='${exec_prefix}/libexec'
903 datarootdir='${prefix}/share'
904 datadir='${datarootdir}'
905 sysconfdir='${prefix}/etc'
906 sharedstatedir='${prefix}/com'
907 localstatedir='${prefix}/var'
908 includedir='${prefix}/include'
909 oldincludedir='/usr/include'
910 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
911 infodir='${datarootdir}/info'
912 htmldir='${docdir}'
913 dvidir='${docdir}'
914 pdfdir='${docdir}'
915 psdir='${docdir}'
916 libdir='${exec_prefix}/lib'
917 localedir='${datarootdir}/locale'
918 mandir='${datarootdir}/man'
919
920 ac_prev=
921 ac_dashdash=
922 for ac_option
923 do
924 # If the previous option needs an argument, assign it.
925 if test -n "$ac_prev"; then
926 eval $ac_prev=\$ac_option
927 ac_prev=
928 continue
929 fi
930
931 case $ac_option in
932 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 *=) ac_optarg= ;;
934 *) ac_optarg=yes ;;
935 esac
936
937 # Accept the important Cygnus configure options, so we can diagnose typos.
938
939 case $ac_dashdash$ac_option in
940 --)
941 ac_dashdash=yes ;;
942
943 -bindir | --bindir | --bindi | --bind | --bin | --bi)
944 ac_prev=bindir ;;
945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946 bindir=$ac_optarg ;;
947
948 -build | --build | --buil | --bui | --bu)
949 ac_prev=build_alias ;;
950 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
951 build_alias=$ac_optarg ;;
952
953 -cache-file | --cache-file | --cache-fil | --cache-fi \
954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955 ac_prev=cache_file ;;
956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
958 cache_file=$ac_optarg ;;
959
960 --config-cache | -C)
961 cache_file=config.cache ;;
962
963 -datadir | --datadir | --datadi | --datad)
964 ac_prev=datadir ;;
965 -datadir=* | --datadir=* | --datadi=* | --datad=*)
966 datadir=$ac_optarg ;;
967
968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969 | --dataroo | --dataro | --datar)
970 ac_prev=datarootdir ;;
971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973 datarootdir=$ac_optarg ;;
974
975 -disable-* | --disable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=no ;;
990
991 -docdir | --docdir | --docdi | --doc | --do)
992 ac_prev=docdir ;;
993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 docdir=$ac_optarg ;;
995
996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997 ac_prev=dvidir ;;
998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 dvidir=$ac_optarg ;;
1000
1001 -enable-* | --enable-*)
1002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 as_fn_error $? "invalid feature name: $ac_useropt"
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1009 *"
1010 "enable_$ac_useropt"
1011 "*) ;;
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
1014 esac
1015 eval enable_$ac_useropt=\$ac_optarg ;;
1016
1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019 | --exec | --exe | --ex)
1020 ac_prev=exec_prefix ;;
1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023 | --exec=* | --exe=* | --ex=*)
1024 exec_prefix=$ac_optarg ;;
1025
1026 -gas | --gas | --ga | --g)
1027 # Obsolete; use --with-gas.
1028 with_gas=yes ;;
1029
1030 -help | --help | --hel | --he | -h)
1031 ac_init_help=long ;;
1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033 ac_init_help=recursive ;;
1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035 ac_init_help=short ;;
1036
1037 -host | --host | --hos | --ho)
1038 ac_prev=host_alias ;;
1039 -host=* | --host=* | --hos=* | --ho=*)
1040 host_alias=$ac_optarg ;;
1041
1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043 ac_prev=htmldir ;;
1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045 | --ht=*)
1046 htmldir=$ac_optarg ;;
1047
1048 -includedir | --includedir | --includedi | --included | --include \
1049 | --includ | --inclu | --incl | --inc)
1050 ac_prev=includedir ;;
1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052 | --includ=* | --inclu=* | --incl=* | --inc=*)
1053 includedir=$ac_optarg ;;
1054
1055 -infodir | --infodir | --infodi | --infod | --info | --inf)
1056 ac_prev=infodir ;;
1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058 infodir=$ac_optarg ;;
1059
1060 -libdir | --libdir | --libdi | --libd)
1061 ac_prev=libdir ;;
1062 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063 libdir=$ac_optarg ;;
1064
1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066 | --libexe | --libex | --libe)
1067 ac_prev=libexecdir ;;
1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069 | --libexe=* | --libex=* | --libe=*)
1070 libexecdir=$ac_optarg ;;
1071
1072 -localedir | --localedir | --localedi | --localed | --locale)
1073 ac_prev=localedir ;;
1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075 localedir=$ac_optarg ;;
1076
1077 -localstatedir | --localstatedir | --localstatedi | --localstated \
1078 | --localstate | --localstat | --localsta | --localst | --locals)
1079 ac_prev=localstatedir ;;
1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082 localstatedir=$ac_optarg ;;
1083
1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085 ac_prev=mandir ;;
1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087 mandir=$ac_optarg ;;
1088
1089 -nfp | --nfp | --nf)
1090 # Obsolete; use --without-fp.
1091 with_fp=no ;;
1092
1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094 | --no-cr | --no-c | -n)
1095 no_create=yes ;;
1096
1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 no_recursion=yes ;;
1100
1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103 | --oldin | --oldi | --old | --ol | --o)
1104 ac_prev=oldincludedir ;;
1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108 oldincludedir=$ac_optarg ;;
1109
1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111 ac_prev=prefix ;;
1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113 prefix=$ac_optarg ;;
1114
1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116 | --program-pre | --program-pr | --program-p)
1117 ac_prev=program_prefix ;;
1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120 program_prefix=$ac_optarg ;;
1121
1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123 | --program-suf | --program-su | --program-s)
1124 ac_prev=program_suffix ;;
1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127 program_suffix=$ac_optarg ;;
1128
1129 -program-transform-name | --program-transform-name \
1130 | --program-transform-nam | --program-transform-na \
1131 | --program-transform-n | --program-transform- \
1132 | --program-transform | --program-transfor \
1133 | --program-transfo | --program-transf \
1134 | --program-trans | --program-tran \
1135 | --progr-tra | --program-tr | --program-t)
1136 ac_prev=program_transform_name ;;
1137 -program-transform-name=* | --program-transform-name=* \
1138 | --program-transform-nam=* | --program-transform-na=* \
1139 | --program-transform-n=* | --program-transform-=* \
1140 | --program-transform=* | --program-transfor=* \
1141 | --program-transfo=* | --program-transf=* \
1142 | --program-trans=* | --program-tran=* \
1143 | --progr-tra=* | --program-tr=* | --program-t=*)
1144 program_transform_name=$ac_optarg ;;
1145
1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147 ac_prev=pdfdir ;;
1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149 pdfdir=$ac_optarg ;;
1150
1151 -psdir | --psdir | --psdi | --psd | --ps)
1152 ac_prev=psdir ;;
1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 psdir=$ac_optarg ;;
1155
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1158 silent=yes ;;
1159
1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161 ac_prev=sbindir ;;
1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163 | --sbi=* | --sb=*)
1164 sbindir=$ac_optarg ;;
1165
1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168 | --sharedst | --shareds | --shared | --share | --shar \
1169 | --sha | --sh)
1170 ac_prev=sharedstatedir ;;
1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174 | --sha=* | --sh=*)
1175 sharedstatedir=$ac_optarg ;;
1176
1177 -site | --site | --sit)
1178 ac_prev=site ;;
1179 -site=* | --site=* | --sit=*)
1180 site=$ac_optarg ;;
1181
1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183 ac_prev=srcdir ;;
1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185 srcdir=$ac_optarg ;;
1186
1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188 | --syscon | --sysco | --sysc | --sys | --sy)
1189 ac_prev=sysconfdir ;;
1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192 sysconfdir=$ac_optarg ;;
1193
1194 -target | --target | --targe | --targ | --tar | --ta | --t)
1195 ac_prev=target_alias ;;
1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197 target_alias=$ac_optarg ;;
1198
1199 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 verbose=yes ;;
1201
1202 -version | --version | --versio | --versi | --vers | -V)
1203 ac_init_version=: ;;
1204
1205 -with-* | --with-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval with_$ac_useropt=\$ac_optarg ;;
1220
1221 -without-* | --without-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 as_fn_error $? "invalid package name: $ac_useropt"
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1229 *"
1230 "with_$ac_useropt"
1231 "*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=no ;;
1236
1237 --x)
1238 # Obsolete; use --with-x.
1239 with_x=yes ;;
1240
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1247
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1254
1255 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1256 Try \`$0 --help' for more information"
1257 ;;
1258
1259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 case $ac_envvar in #(
1263 '' | [0-9]* | *[!_$as_cr_alnum]* )
1264 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1265 esac
1266 eval $ac_envvar=\$ac_optarg
1267 export $ac_envvar ;;
1268
1269 *)
1270 # FIXME: should be removed in autoconf 3.0.
1271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1275 ;;
1276
1277 esac
1278 done
1279
1280 if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 as_fn_error $? "missing argument to $ac_option"
1283 fi
1284
1285 if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1287 no) ;;
1288 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 esac
1291 fi
1292
1293 # Check all directory arguments for consistency.
1294 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
1298 do
1299 eval ac_val=\$$ac_var
1300 # Remove trailing slashes.
1301 case $ac_val in
1302 */ )
1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304 eval $ac_var=\$ac_val;;
1305 esac
1306 # Be sure to have absolute directory names.
1307 case $ac_val in
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310 esac
1311 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1312 done
1313
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1320
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1327 fi
1328 fi
1329
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333 test "$silent" = yes && exec 6>/dev/null
1334
1335
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 as_fn_error $? "working directory cannot be determined"
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 as_fn_error $? "pwd does not report name of working directory"
1342
1343
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)[^/].*/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\).*/{
1367 s//\1/
1368 q
1369 }
1370 s/.*/./; q'`
1371 srcdir=$ac_confdir
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 srcdir=..
1374 fi
1375 else
1376 ac_srcdir_defaulted=no
1377 fi
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1381 fi
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1385 pwd)`
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 srcdir=.
1389 fi
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1393 case $srcdir in
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 esac
1396 for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 done
1402
1403 #
1404 # Report the --help message.
1405 #
1406 if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1409 cat <<_ACEOF
1410 \`configure' configures binutils 2.45 to adapt to many kinds of systems.
1411
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE. See below for descriptions of some of the useful variables.
1416
1417 Defaults for the options are specified in brackets.
1418
1419 Configuration:
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
1424 -q, --quiet, --silent do not print \`checking ...' messages
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429
1430 Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
1432 [$ac_default_prefix]
1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1434 [PREFIX]
1435
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1440
1441 For better control, use the options below.
1442
1443 Fine tuning of the installation directories:
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1463 _ACEOF
1464
1465 cat <<\_ACEOF
1466
1467 Program names:
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471
1472 System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 --target=TARGET configure for building compilers for TARGET [HOST]
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of binutils 2.45:";;
1482 esac
1483 cat <<\_ACEOF
1484
1485 Optional Features:
1486 --disable-option-checking ignore unrecognized --enable/--with options
1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1489 --enable-silent-rules less verbose build output (undo: "make V=1")
1490 --disable-silent-rules verbose build output (undo: "make V=0")
1491 --enable-dependency-tracking
1492 do not reject slow dependency extractors
1493 --disable-dependency-tracking
1494 speeds up one-time build
1495 --enable-shared[=PKGS] build shared libraries [default=yes]
1496 --enable-static[=PKGS] build static libraries [default=yes]
1497 --enable-fast-install[=PKGS]
1498 optimize for fast installation [default=yes]
1499 --disable-libtool-lock avoid locking (might break parallel builds)
1500 --enable-plugins Enable support for plugins
1501 --disable-largefile omit support for large files
1502 --enable-checking enable run-time checks
1503 --enable-targets alternative target configurations
1504 --enable-deterministic-archives
1505 ar and ranlib default to -D behavior
1506 --disable-default-strings-all
1507 strings defaults to --data behavior
1508 --enable-f-for-ifunc-symbols
1509 Have nm use F and f for global and local ifunc
1510 symbols
1511 --enable-follow-debug-links
1512 Have readelf and objdump follow debug links by
1513 default
1514 --enable-colored-disassembly
1515 Have objdump use colors in its disassembly by
1516 default
1517 --enable-libctf Handle .ctf type-info sections [default=yes]
1518 --enable-werror treat compile warnings as errors
1519 --enable-build-warnings enable build-time compiler warnings
1520 --disable-nls do not use Native Language Support
1521 --disable-rpath do not hardcode runtime library paths
1522 --enable-maintainer-mode
1523 enable make rules and dependencies not useful (and
1524 sometimes confusing) to the casual installer
1525
1526 Optional Packages:
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1529 --with-pic try to use only PIC/non-PIC objects [default=use
1530 both]
1531 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1532 --with-debuginfod Enable debuginfo lookups with debuginfod
1533 (auto/yes/no)
1534 --with-gnu-ld assume the C compiler uses GNU ld default=no
1535 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1536 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1537 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1538 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1539 --without-libintl-prefix don't search for libintl in includedir and libdir
1540 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1541 --with-system-zlib use installed libz
1542 --with-zstd support zstd compressed debug sections
1543 (default=auto)
1544 --with-msgpack Enable msgpack support (auto/yes/no)
1545
1546 Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
1551 LIBS libraries to pass to the linker, e.g. -l<library>
1552 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1553 you have headers in a nonstandard directory <include dir>
1554 CPP C preprocessor
1555 PKG_CONFIG path to pkg-config utility
1556 PKG_CONFIG_PATH
1557 directories to add to pkg-config's search path
1558 PKG_CONFIG_LIBDIR
1559 path overriding pkg-config's built-in search path
1560 DEBUGINFOD_CFLAGS
1561 C compiler flags for DEBUGINFOD, overriding pkg-config
1562 DEBUGINFOD_LIBS
1563 linker flags for DEBUGINFOD, overriding pkg-config
1564 YACC The `Yet Another Compiler Compiler' implementation to use.
1565 Defaults to the first program found out of: `bison -y', `byacc',
1566 `yacc'.
1567 YFLAGS The list of arguments that will be passed by default to $YACC.
1568 This script will default YFLAGS to the empty string to avoid a
1569 default value of `-d' given by some make applications.
1570 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1571 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1572 MSGPACK_CFLAGS
1573 C compiler flags for MSGPACK, overriding pkg-config
1574 MSGPACK_LIBS
1575 linker flags for MSGPACK, overriding pkg-config
1576
1577 Use these variables to override the choices made by `configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1579
1580 Report bugs to the package provider.
1581 _ACEOF
1582 ac_status=$?
1583 fi
1584
1585 if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588 test -d "$ac_dir" ||
1589 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1590 continue
1591 ac_builddir=.
1592
1593 case "$ac_dir" in
1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *)
1596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 esac ;;
1603 esac
1604 ac_abs_top_builddir=$ac_pwd
1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606 # for backward compatibility:
1607 ac_top_builddir=$ac_top_build_prefix
1608
1609 case $srcdir in
1610 .) # We are building in place.
1611 ac_srcdir=.
1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
1615 ac_srcdir=$srcdir$ac_dir_suffix;
1616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1618 *) # Relative name.
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1622 esac
1623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624
1625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure" --help=recursive
1633 else
1634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635 fi || ac_status=$?
1636 cd "$ac_pwd" || { ac_status=$?; break; }
1637 done
1638 fi
1639
1640 test -n "$ac_init_help" && exit $ac_status
1641 if $ac_init_version; then
1642 cat <<\_ACEOF
1643 binutils configure 2.45
1644 generated by GNU Autoconf 2.69
1645
1646 Copyright (C) 2012 Free Software Foundation, Inc.
1647 This configure script is free software; the Free Software Foundation
1648 gives unlimited permission to copy, distribute and modify it.
1649 _ACEOF
1650 exit
1651 fi
1652
1653 ## ------------------------ ##
1654 ## Autoconf initialization. ##
1655 ## ------------------------ ##
1656
1657 # ac_fn_c_try_compile LINENO
1658 # --------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_compile ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_compile
1694
1695 # ac_fn_c_try_cpp LINENO
1696 # ----------------------
1697 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_cpp ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } > conftest.i && {
1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 }; then :
1720 ac_retval=0
1721 else
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726 fi
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_cpp
1731
1732 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1735 # the include files in INCLUDES and setting the cache variable VAR
1736 # accordingly.
1737 ac_fn_c_check_header_mongrel ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if eval \${$3+:} false; then :
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1745 fi
1746 eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 else
1750 # Is the header compilable?
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1752 $as_echo_n "checking $2 usability... " >&6; }
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 $4
1756 #include <$2>
1757 _ACEOF
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759 ac_header_compiler=yes
1760 else
1761 ac_header_compiler=no
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1765 $as_echo "$ac_header_compiler" >&6; }
1766
1767 # Is the header present?
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1769 $as_echo_n "checking $2 presence... " >&6; }
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1772 #include <$2>
1773 _ACEOF
1774 if ac_fn_c_try_cpp "$LINENO"; then :
1775 ac_header_preproc=yes
1776 else
1777 ac_header_preproc=no
1778 fi
1779 rm -f conftest.err conftest.i conftest.$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1781 $as_echo "$ac_header_preproc" >&6; }
1782
1783 # So? What about this header?
1784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1785 yes:no: )
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1787 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 ;;
1791 no:yes:* )
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1793 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1795 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1797 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1799 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802 ;;
1803 esac
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1808 else
1809 eval "$3=\$ac_header_compiler"
1810 fi
1811 eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 fi
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817 } # ac_fn_c_check_header_mongrel
1818
1819 # ac_fn_c_try_run LINENO
1820 # ----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822 # that executables *can* be run.
1823 ac_fn_c_try_run ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_link"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1837 { { case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_try") 2>&5
1844 ac_status=$?
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; }; }; then :
1847 ac_retval=0
1848 else
1849 $as_echo "$as_me: program exited with status $ac_status" >&5
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=$ac_status
1854 fi
1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1858
1859 } # ac_fn_c_try_run
1860
1861 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1862 # -------------------------------------------------------
1863 # Tests whether HEADER exists and can be compiled using the include files in
1864 # INCLUDES, setting the cache variable VAR accordingly.
1865 ac_fn_c_check_header_compile ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 $4
1876 #include <$2>
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_header_compile
1891
1892 # ac_fn_c_try_link LINENO
1893 # -----------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_c_try_link ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 test -x conftest$ac_exeext
1920 }; then :
1921 ac_retval=0
1922 else
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=1
1927 fi
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1935
1936 } # ac_fn_c_try_link
1937
1938 # ac_fn_c_check_func LINENO FUNC VAR
1939 # ----------------------------------
1940 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1941 ac_fn_c_check_func ()
1942 {
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1948 else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1953 #define $2 innocuous_$2
1954
1955 /* System header to define __stub macros and hopefully few prototypes,
1956 which can conflict with char $2 (); below.
1957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1958 <limits.h> exists even on freestanding compilers. */
1959
1960 #ifdef __STDC__
1961 # include <limits.h>
1962 #else
1963 # include <assert.h>
1964 #endif
1965
1966 #undef $2
1967
1968 /* Override any GCC internal prototype to avoid an error.
1969 Use char because int might match the return type of a GCC
1970 builtin and then its argument prototype would still apply. */
1971 #ifdef __cplusplus
1972 extern "C"
1973 #endif
1974 char $2 ();
1975 /* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978 #if defined __stub_$2 || defined __stub___$2
1979 choke me
1980 #endif
1981
1982 int
1983 main ()
1984 {
1985 return $2 ();
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 if ac_fn_c_try_link "$LINENO"; then :
1991 eval "$3=yes"
1992 else
1993 eval "$3=no"
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext \
1996 conftest$ac_exeext conftest.$ac_ext
1997 fi
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003 } # ac_fn_c_check_func
2004
2005 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2006 # ----------------------------------------------------
2007 # Tries to find if the field MEMBER exists in type AGGR, after including
2008 # INCLUDES, setting cache variable VAR accordingly.
2009 ac_fn_c_check_member ()
2010 {
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2013 $as_echo_n "checking for $2.$3... " >&6; }
2014 if eval \${$4+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $5
2020 int
2021 main ()
2022 {
2023 static $2 ac_aggr;
2024 if (ac_aggr.$3)
2025 return 0;
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$4=yes"
2032 else
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $5
2036 int
2037 main ()
2038 {
2039 static $2 ac_aggr;
2040 if (sizeof ac_aggr.$3)
2041 return 0;
2042 ;
2043 return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047 eval "$4=yes"
2048 else
2049 eval "$4=no"
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 fi
2055 eval ac_res=\$$4
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060 } # ac_fn_c_check_member
2061
2062 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2063 # ---------------------------------------------
2064 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2065 # accordingly.
2066 ac_fn_c_check_decl ()
2067 {
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 as_decl_name=`echo $2|sed 's/ *(.*//'`
2070 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2072 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 $4
2079 int
2080 main ()
2081 {
2082 #ifndef $as_decl_name
2083 #ifdef __cplusplus
2084 (void) $as_decl_use;
2085 #else
2086 (void) $as_decl_name;
2087 #endif
2088 #endif
2089
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 eval "$3=yes"
2096 else
2097 eval "$3=no"
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105
2106 } # ac_fn_c_check_decl
2107 cat >config.log <<_ACEOF
2108 This file contains any messages produced by compilers while
2109 running configure, to aid debugging if configure makes a mistake.
2110
2111 It was created by binutils $as_me 2.45, which was
2112 generated by GNU Autoconf 2.69. Invocation command line was
2113
2114 $ $0 $@
2115
2116 _ACEOF
2117 exec 5>>config.log
2118 {
2119 cat <<_ASUNAME
2120 ## --------- ##
2121 ## Platform. ##
2122 ## --------- ##
2123
2124 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2125 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2126 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2127 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2128 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2129
2130 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2131 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2132
2133 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2134 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2135 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2136 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2137 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2138 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2139 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2140
2141 _ASUNAME
2142
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 $as_echo "PATH: $as_dir"
2149 done
2150 IFS=$as_save_IFS
2151
2152 } >&5
2153
2154 cat >&5 <<_ACEOF
2155
2156
2157 ## ----------- ##
2158 ## Core tests. ##
2159 ## ----------- ##
2160
2161 _ACEOF
2162
2163
2164 # Keep a trace of the command line.
2165 # Strip out --no-create and --no-recursion so they do not pile up.
2166 # Strip out --silent because we don't want to record it for future runs.
2167 # Also quote any args containing shell meta-characters.
2168 # Make two passes to allow for proper duplicate-argument suppression.
2169 ac_configure_args=
2170 ac_configure_args0=
2171 ac_configure_args1=
2172 ac_must_keep_next=false
2173 for ac_pass in 1 2
2174 do
2175 for ac_arg
2176 do
2177 case $ac_arg in
2178 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2180 | -silent | --silent | --silen | --sile | --sil)
2181 continue ;;
2182 *\'*)
2183 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2184 esac
2185 case $ac_pass in
2186 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2187 2)
2188 as_fn_append ac_configure_args1 " '$ac_arg'"
2189 if test $ac_must_keep_next = true; then
2190 ac_must_keep_next=false # Got value, back to normal.
2191 else
2192 case $ac_arg in
2193 *=* | --config-cache | -C | -disable-* | --disable-* \
2194 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2195 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2196 | -with-* | --with-* | -without-* | --without-* | --x)
2197 case "$ac_configure_args0 " in
2198 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2199 esac
2200 ;;
2201 -* ) ac_must_keep_next=true ;;
2202 esac
2203 fi
2204 as_fn_append ac_configure_args " '$ac_arg'"
2205 ;;
2206 esac
2207 done
2208 done
2209 { ac_configure_args0=; unset ac_configure_args0;}
2210 { ac_configure_args1=; unset ac_configure_args1;}
2211
2212 # When interrupted or exit'd, cleanup temporary files, and complete
2213 # config.log. We remove comments because anyway the quotes in there
2214 # would cause problems or look ugly.
2215 # WARNING: Use '\'' to represent an apostrophe within the trap.
2216 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2217 trap 'exit_status=$?
2218 # Save into config.log some information that might help in debugging.
2219 {
2220 echo
2221
2222 $as_echo "## ---------------- ##
2223 ## Cache variables. ##
2224 ## ---------------- ##"
2225 echo
2226 # The following way of writing the cache mishandles newlines in values,
2227 (
2228 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2229 eval ac_val=\$$ac_var
2230 case $ac_val in #(
2231 *${as_nl}*)
2232 case $ac_var in #(
2233 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2234 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2235 esac
2236 case $ac_var in #(
2237 _ | IFS | as_nl) ;; #(
2238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2239 *) { eval $ac_var=; unset $ac_var;} ;;
2240 esac ;;
2241 esac
2242 done
2243 (set) 2>&1 |
2244 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2245 *${as_nl}ac_space=\ *)
2246 sed -n \
2247 "s/'\''/'\''\\\\'\'''\''/g;
2248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249 ;; #(
2250 *)
2251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252 ;;
2253 esac |
2254 sort
2255 )
2256 echo
2257
2258 $as_echo "## ----------------- ##
2259 ## Output variables. ##
2260 ## ----------------- ##"
2261 echo
2262 for ac_var in $ac_subst_vars
2263 do
2264 eval ac_val=\$$ac_var
2265 case $ac_val in
2266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267 esac
2268 $as_echo "$ac_var='\''$ac_val'\''"
2269 done | sort
2270 echo
2271
2272 if test -n "$ac_subst_files"; then
2273 $as_echo "## ------------------- ##
2274 ## File substitutions. ##
2275 ## ------------------- ##"
2276 echo
2277 for ac_var in $ac_subst_files
2278 do
2279 eval ac_val=\$$ac_var
2280 case $ac_val in
2281 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282 esac
2283 $as_echo "$ac_var='\''$ac_val'\''"
2284 done | sort
2285 echo
2286 fi
2287
2288 if test -s confdefs.h; then
2289 $as_echo "## ----------- ##
2290 ## confdefs.h. ##
2291 ## ----------- ##"
2292 echo
2293 cat confdefs.h
2294 echo
2295 fi
2296 test "$ac_signal" != 0 &&
2297 $as_echo "$as_me: caught signal $ac_signal"
2298 $as_echo "$as_me: exit $exit_status"
2299 } >&5
2300 rm -f core *.core core.conftest.* &&
2301 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2302 exit $exit_status
2303 ' 0
2304 for ac_signal in 1 2 13 15; do
2305 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2306 done
2307 ac_signal=0
2308
2309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2310 rm -f -r conftest* confdefs.h
2311
2312 $as_echo "/* confdefs.h */" > confdefs.h
2313
2314 # Predefined preprocessor variables.
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_NAME "$PACKAGE_NAME"
2318 _ACEOF
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2322 _ACEOF
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_STRING "$PACKAGE_STRING"
2330 _ACEOF
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2334 _ACEOF
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_URL "$PACKAGE_URL"
2338 _ACEOF
2339
2340
2341 # Let the site file select an alternate cache file if it wants to.
2342 # Prefer an explicitly selected file to automatically selected ones.
2343 ac_site_file1=NONE
2344 ac_site_file2=NONE
2345 if test -n "$CONFIG_SITE"; then
2346 # We do not want a PATH search for config.site.
2347 case $CONFIG_SITE in #((
2348 -*) ac_site_file1=./$CONFIG_SITE;;
2349 */*) ac_site_file1=$CONFIG_SITE;;
2350 *) ac_site_file1=./$CONFIG_SITE;;
2351 esac
2352 elif test "x$prefix" != xNONE; then
2353 ac_site_file1=$prefix/share/config.site
2354 ac_site_file2=$prefix/etc/config.site
2355 else
2356 ac_site_file1=$ac_default_prefix/share/config.site
2357 ac_site_file2=$ac_default_prefix/etc/config.site
2358 fi
2359 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2360 do
2361 test "x$ac_site_file" = xNONE && continue
2362 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2364 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2365 sed 's/^/| /' "$ac_site_file" >&5
2366 . "$ac_site_file" \
2367 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369 as_fn_error $? "failed to load site script $ac_site_file
2370 See \`config.log' for more details" "$LINENO" 5; }
2371 fi
2372 done
2373
2374 if test -r "$cache_file"; then
2375 # Some versions of bash will fail to source /dev/null (special files
2376 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2377 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2379 $as_echo "$as_me: loading cache $cache_file" >&6;}
2380 case $cache_file in
2381 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2382 *) . "./$cache_file";;
2383 esac
2384 fi
2385 else
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2387 $as_echo "$as_me: creating cache $cache_file" >&6;}
2388 >$cache_file
2389 fi
2390
2391 gt_needs="$gt_needs "
2392 as_fn_append ac_header_list " stdlib.h"
2393 as_fn_append ac_header_list " unistd.h"
2394 as_fn_append ac_header_list " sys/param.h"
2395 # Check that the precious variables saved in the cache have kept the same
2396 # value.
2397 ac_cache_corrupted=false
2398 for ac_var in $ac_precious_vars; do
2399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400 eval ac_new_set=\$ac_env_${ac_var}_set
2401 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402 eval ac_new_val=\$ac_env_${ac_var}_value
2403 case $ac_old_set,$ac_new_set in
2404 set,)
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2406 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2407 ac_cache_corrupted=: ;;
2408 ,set)
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2410 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2411 ac_cache_corrupted=: ;;
2412 ,);;
2413 *)
2414 if test "x$ac_old_val" != "x$ac_new_val"; then
2415 # differences in whitespace do not lead to failure.
2416 ac_old_val_w=`echo x $ac_old_val`
2417 ac_new_val_w=`echo x $ac_new_val`
2418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2420 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2421 ac_cache_corrupted=:
2422 else
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2424 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2425 eval $ac_var=\$ac_old_val
2426 fi
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2428 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2430 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2431 fi;;
2432 esac
2433 # Pass precious variables to config.status.
2434 if test "$ac_new_set" = set; then
2435 case $ac_new_val in
2436 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2437 *) ac_arg=$ac_var=$ac_new_val ;;
2438 esac
2439 case " $ac_configure_args " in
2440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2441 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2442 esac
2443 fi
2444 done
2445 if $ac_cache_corrupted; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2449 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2450 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2451 fi
2452 ## -------------------- ##
2453 ## Main body of script. ##
2454 ## -------------------- ##
2455
2456 ac_ext=c
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461
2462
2463
2464
2465
2466
2467
2468 ac_aux_dir=
2469 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2470 if test -f "$ac_dir/install-sh"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/install-sh -c"
2473 break
2474 elif test -f "$ac_dir/install.sh"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/install.sh -c"
2477 break
2478 elif test -f "$ac_dir/shtool"; then
2479 ac_aux_dir=$ac_dir
2480 ac_install_sh="$ac_aux_dir/shtool install -c"
2481 break
2482 fi
2483 done
2484 if test -z "$ac_aux_dir"; then
2485 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2486 fi
2487
2488 # These three variables are undocumented and unsupported,
2489 # and are intended to be withdrawn in a future Autoconf release.
2490 # They can cause serious problems if a builder's source tree is in a directory
2491 # whose full name contains unusual characters.
2492 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2493 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2494 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2495
2496
2497 # Make sure we can run config.sub.
2498 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2499 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2500
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2502 $as_echo_n "checking build system type... " >&6; }
2503 if ${ac_cv_build+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 ac_build_alias=$build_alias
2507 test "x$ac_build_alias" = x &&
2508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2509 test "x$ac_build_alias" = x &&
2510 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2511 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2512 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2513
2514 fi
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2516 $as_echo "$ac_cv_build" >&6; }
2517 case $ac_cv_build in
2518 *-*-*) ;;
2519 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2520 esac
2521 build=$ac_cv_build
2522 ac_save_IFS=$IFS; IFS='-'
2523 set x $ac_cv_build
2524 shift
2525 build_cpu=$1
2526 build_vendor=$2
2527 shift; shift
2528 # Remember, the first character of IFS is used to create $*,
2529 # except with old shells:
2530 build_os=$*
2531 IFS=$ac_save_IFS
2532 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2533
2534
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2536 $as_echo_n "checking host system type... " >&6; }
2537 if ${ac_cv_host+:} false; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 if test "x$host_alias" = x; then
2541 ac_cv_host=$ac_cv_build
2542 else
2543 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2545 fi
2546
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2549 $as_echo "$ac_cv_host" >&6; }
2550 case $ac_cv_host in
2551 *-*-*) ;;
2552 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2553 esac
2554 host=$ac_cv_host
2555 ac_save_IFS=$IFS; IFS='-'
2556 set x $ac_cv_host
2557 shift
2558 host_cpu=$1
2559 host_vendor=$2
2560 shift; shift
2561 # Remember, the first character of IFS is used to create $*,
2562 # except with old shells:
2563 host_os=$*
2564 IFS=$ac_save_IFS
2565 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2566
2567
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2569 $as_echo_n "checking target system type... " >&6; }
2570 if ${ac_cv_target+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 if test "x$target_alias" = x; then
2574 ac_cv_target=$ac_cv_host
2575 else
2576 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2577 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2578 fi
2579
2580 fi
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2582 $as_echo "$ac_cv_target" >&6; }
2583 case $ac_cv_target in
2584 *-*-*) ;;
2585 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2586 esac
2587 target=$ac_cv_target
2588 ac_save_IFS=$IFS; IFS='-'
2589 set x $ac_cv_target
2590 shift
2591 target_cpu=$1
2592 target_vendor=$2
2593 shift; shift
2594 # Remember, the first character of IFS is used to create $*,
2595 # except with old shells:
2596 target_os=$*
2597 IFS=$ac_save_IFS
2598 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2599
2600
2601 # The aliases save the names the user supplied, while $host etc.
2602 # will get canonicalized.
2603 test -n "$target_alias" &&
2604 test "$program_prefix$program_suffix$program_transform_name" = \
2605 NONENONEs,x,x, &&
2606 program_prefix=${target_alias}-
2607
2608 am__api_version='1.15'
2609
2610 # Find a good install program. We prefer a C program (faster),
2611 # so one script is as good as another. But avoid the broken or
2612 # incompatible versions:
2613 # SysV /etc/install, /usr/sbin/install
2614 # SunOS /usr/etc/install
2615 # IRIX /sbin/install
2616 # AIX /bin/install
2617 # AmigaOS /C/install, which installs bootblocks on floppy discs
2618 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2619 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2620 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2621 # OS/2's system install, which has a completely different semantic
2622 # ./install, which can be erroneously created by make from ./install.sh.
2623 # Reject install programs that cannot install multiple files.
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2625 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2626 if test -z "$INSTALL"; then
2627 if ${ac_cv_path_install+:} false; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 # Account for people who put trailing slashes in PATH elements.
2636 case $as_dir/ in #((
2637 ./ | .// | /[cC]/* | \
2638 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2639 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2640 /usr/ucb/* ) ;;
2641 *)
2642 # OSF1 and SCO ODT 3.0 have their own names for install.
2643 # Don't use installbsd from OSF since it installs stuff as root
2644 # by default.
2645 for ac_prog in ginstall scoinst install; do
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2648 if test $ac_prog = install &&
2649 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2650 # AIX install. It has an incompatible calling convention.
2651 :
2652 elif test $ac_prog = install &&
2653 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2654 # program-specific install script used by HP pwplus--don't use.
2655 :
2656 else
2657 rm -rf conftest.one conftest.two conftest.dir
2658 echo one > conftest.one
2659 echo two > conftest.two
2660 mkdir conftest.dir
2661 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2662 test -s conftest.one && test -s conftest.two &&
2663 test -s conftest.dir/conftest.one &&
2664 test -s conftest.dir/conftest.two
2665 then
2666 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2667 break 3
2668 fi
2669 fi
2670 fi
2671 done
2672 done
2673 ;;
2674 esac
2675
2676 done
2677 IFS=$as_save_IFS
2678
2679 rm -rf conftest.one conftest.two conftest.dir
2680
2681 fi
2682 if test "${ac_cv_path_install+set}" = set; then
2683 INSTALL=$ac_cv_path_install
2684 else
2685 # As a last resort, use the slow shell script. Don't cache a
2686 # value for INSTALL within a source directory, because that will
2687 # break other packages using the cache if that directory is
2688 # removed, or if the value is a relative name.
2689 INSTALL=$ac_install_sh
2690 fi
2691 fi
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2693 $as_echo "$INSTALL" >&6; }
2694
2695 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2696 # It thinks the first close brace ends the variable substitution.
2697 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2698
2699 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2700
2701 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2702
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2704 $as_echo_n "checking whether build environment is sane... " >&6; }
2705 # Reject unsafe characters in $srcdir or the absolute working directory
2706 # name. Accept space and tab only in the latter.
2707 am_lf='
2708 '
2709 case `pwd` in
2710 *[\\\"\#\$\&\'\`$am_lf]*)
2711 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2712 esac
2713 case $srcdir in
2714 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2715 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2716 esac
2717
2718 # Do 'set' in a subshell so we don't clobber the current shell's
2719 # arguments. Must try -L first in case configure is actually a
2720 # symlink; some systems play weird games with the mod time of symlinks
2721 # (eg FreeBSD returns the mod time of the symlink's containing
2722 # directory).
2723 if (
2724 am_has_slept=no
2725 for am_try in 1 2; do
2726 echo "timestamp, slept: $am_has_slept" > conftest.file
2727 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2728 if test "$*" = "X"; then
2729 # -L didn't work.
2730 set X `ls -t "$srcdir/configure" conftest.file`
2731 fi
2732 if test "$*" != "X $srcdir/configure conftest.file" \
2733 && test "$*" != "X conftest.file $srcdir/configure"; then
2734
2735 # If neither matched, then we have a broken ls. This can happen
2736 # if, for instance, CONFIG_SHELL is bash and it inherits a
2737 # broken ls alias from the environment. This has actually
2738 # happened. Such a system could not be considered "sane".
2739 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2740 alias in your environment" "$LINENO" 5
2741 fi
2742 if test "$2" = conftest.file || test $am_try -eq 2; then
2743 break
2744 fi
2745 # Just in case.
2746 sleep 1
2747 am_has_slept=yes
2748 done
2749 test "$2" = conftest.file
2750 )
2751 then
2752 # Ok.
2753 :
2754 else
2755 as_fn_error $? "newly created file is older than distributed files!
2756 Check your system clock" "$LINENO" 5
2757 fi
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2759 $as_echo "yes" >&6; }
2760 # If we didn't sleep, we still need to ensure time stamps of config.status and
2761 # generated files are strictly newer.
2762 am_sleep_pid=
2763 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2764 ( sleep 1 ) &
2765 am_sleep_pid=$!
2766 fi
2767
2768 rm -f conftest.file
2769
2770 test "$program_prefix" != NONE &&
2771 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2772 # Use a double $ so make ignores it.
2773 test "$program_suffix" != NONE &&
2774 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2775 # Double any \ or $.
2776 # By default was `s,x,x', remove it if useless.
2777 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2778 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2779
2780 # Expand $ac_aux_dir to an absolute path.
2781 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2782
2783 if test x"${MISSING+set}" != xset; then
2784 case $am_aux_dir in
2785 *\ * | *\ *)
2786 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2787 *)
2788 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2789 esac
2790 fi
2791 # Use eval to expand $SHELL
2792 if eval "$MISSING --is-lightweight"; then
2793 am_missing_run="$MISSING "
2794 else
2795 am_missing_run=
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2797 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2798 fi
2799
2800 if test x"${install_sh+set}" != xset; then
2801 case $am_aux_dir in
2802 *\ * | *\ *)
2803 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2804 *)
2805 install_sh="\${SHELL} $am_aux_dir/install-sh"
2806 esac
2807 fi
2808
2809 # Installed binaries are usually stripped using 'strip' when the user
2810 # run "make install-strip". However 'strip' might not be the right
2811 # tool to use in cross-compilation environments, therefore Automake
2812 # will honor the 'STRIP' environment variable to overrule this program.
2813 if test "$cross_compiling" != no; then
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2816 set dummy ${ac_tool_prefix}strip; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_STRIP+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 if test -n "$STRIP"; then
2823 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 STRIP=$ac_cv_prog_STRIP
2843 if test -n "$STRIP"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2845 $as_echo "$STRIP" >&6; }
2846 else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2849 fi
2850
2851
2852 fi
2853 if test -z "$ac_cv_prog_STRIP"; then
2854 ac_ct_STRIP=$STRIP
2855 # Extract the first word of "strip", so it can be a program name with args.
2856 set dummy strip; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$ac_ct_STRIP"; then
2863 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_ac_ct_STRIP="strip"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2883 if test -n "$ac_ct_STRIP"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2885 $as_echo "$ac_ct_STRIP" >&6; }
2886 else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891 if test "x$ac_ct_STRIP" = x; then
2892 STRIP=":"
2893 else
2894 case $cross_compiling:$ac_tool_warned in
2895 yes:)
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2898 ac_tool_warned=yes ;;
2899 esac
2900 STRIP=$ac_ct_STRIP
2901 fi
2902 else
2903 STRIP="$ac_cv_prog_STRIP"
2904 fi
2905
2906 fi
2907 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2908
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2910 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2911 if test -z "$MKDIR_P"; then
2912 if ${ac_cv_path_mkdir+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2917 do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_prog in mkdir gmkdir; do
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2923 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2924 'mkdir (GNU coreutils) '* | \
2925 'mkdir (coreutils) '* | \
2926 'mkdir (fileutils) '4.1*)
2927 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2928 break 3;;
2929 esac
2930 done
2931 done
2932 done
2933 IFS=$as_save_IFS
2934
2935 fi
2936
2937 test -d ./--version && rmdir ./--version
2938 if test "${ac_cv_path_mkdir+set}" = set; then
2939 MKDIR_P="$ac_cv_path_mkdir -p"
2940 else
2941 # As a last resort, use the slow shell script. Don't cache a
2942 # value for MKDIR_P within a source directory, because that will
2943 # break other packages using the cache if that directory is
2944 # removed, or if the value is a relative name.
2945 MKDIR_P="$ac_install_sh -d"
2946 fi
2947 fi
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2949 $as_echo "$MKDIR_P" >&6; }
2950
2951 for ac_prog in gawk mawk nawk awk
2952 do
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954 set dummy $ac_prog; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if ${ac_cv_prog_AWK+:} false; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 if test -n "$AWK"; then
2961 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_AWK="$ac_prog"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976 IFS=$as_save_IFS
2977
2978 fi
2979 fi
2980 AWK=$ac_cv_prog_AWK
2981 if test -n "$AWK"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2983 $as_echo "$AWK" >&6; }
2984 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2987 fi
2988
2989
2990 test -n "$AWK" && break
2991 done
2992
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2994 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2995 set x ${MAKE-make}
2996 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2997 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 cat >conftest.make <<\_ACEOF
3001 SHELL = /bin/sh
3002 all:
3003 @echo '@@@%%%=$(MAKE)=@@@%%%'
3004 _ACEOF
3005 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3006 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3007 *@@@%%%=?*=@@@%%%*)
3008 eval ac_cv_prog_make_${ac_make}_set=yes;;
3009 *)
3010 eval ac_cv_prog_make_${ac_make}_set=no;;
3011 esac
3012 rm -f conftest.make
3013 fi
3014 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3016 $as_echo "yes" >&6; }
3017 SET_MAKE=
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 SET_MAKE="MAKE=${MAKE-make}"
3022 fi
3023
3024 rm -rf .tst 2>/dev/null
3025 mkdir .tst 2>/dev/null
3026 if test -d .tst; then
3027 am__leading_dot=.
3028 else
3029 am__leading_dot=_
3030 fi
3031 rmdir .tst 2>/dev/null
3032
3033 # Check whether --enable-silent-rules was given.
3034 if test "${enable_silent_rules+set}" = set; then :
3035 enableval=$enable_silent_rules;
3036 fi
3037
3038 case $enable_silent_rules in # (((
3039 yes) AM_DEFAULT_VERBOSITY=0;;
3040 no) AM_DEFAULT_VERBOSITY=1;;
3041 *) AM_DEFAULT_VERBOSITY=1;;
3042 esac
3043 am_make=${MAKE-make}
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3045 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3046 if ${am_cv_make_support_nested_variables+:} false; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 if $as_echo 'TRUE=$(BAR$(V))
3050 BAR0=false
3051 BAR1=true
3052 V=1
3053 am__doit:
3054 @$(TRUE)
3055 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3056 am_cv_make_support_nested_variables=yes
3057 else
3058 am_cv_make_support_nested_variables=no
3059 fi
3060 fi
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3062 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3063 if test $am_cv_make_support_nested_variables = yes; then
3064 AM_V='$(V)'
3065 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3066 else
3067 AM_V=$AM_DEFAULT_VERBOSITY
3068 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3069 fi
3070 AM_BACKSLASH='\'
3071
3072 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3073 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3074 # is not polluted with repeated "-I."
3075 am__isrc=' -I$(srcdir)'
3076 # test to see if srcdir already configured
3077 if test -f $srcdir/config.status; then
3078 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3079 fi
3080 fi
3081
3082 # test whether we have cygpath
3083 if test -z "$CYGPATH_W"; then
3084 if (cygpath --version) >/dev/null 2>/dev/null; then
3085 CYGPATH_W='cygpath -w'
3086 else
3087 CYGPATH_W=echo
3088 fi
3089 fi
3090
3091
3092 # Define the identity of the package.
3093 PACKAGE='binutils'
3094 VERSION='2.45'
3095
3096
3097 cat >>confdefs.h <<_ACEOF
3098 #define PACKAGE "$PACKAGE"
3099 _ACEOF
3100
3101
3102 cat >>confdefs.h <<_ACEOF
3103 #define VERSION "$VERSION"
3104 _ACEOF
3105
3106 # Some tools Automake needs.
3107
3108 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3109
3110
3111 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3112
3113
3114 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3115
3116
3117 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3118
3119
3120 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3121
3122 # For better backward compatibility. To be removed once Automake 1.9.x
3123 # dies out for good. For more background, see:
3124 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3125 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3126 mkdir_p='$(MKDIR_P)'
3127
3128 # We need awk for the "check" target (and possibly the TAP driver). The
3129 # system "awk" is bad on some platforms.
3130 # Always define AMTAR for backward compatibility. Yes, it's still used
3131 # in the wild :-( We should find a proper way to deprecate it ...
3132 AMTAR='$${TAR-tar}'
3133
3134
3135 # We'll loop over all known methods to create a tar archive until one works.
3136 _am_tools='gnutar pax cpio none'
3137
3138 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3139
3140
3141
3142
3143
3144
3145 # POSIX will say in a future version that running "rm -f" with no argument
3146 # is OK; and we want to be able to make that assumption in our Makefile
3147 # recipes. So use an aggressive probe to check that the usage we want is
3148 # actually supported "in the wild" to an acceptable degree.
3149 # See automake bug#10828.
3150 # To make any issue more visible, cause the running configure to be aborted
3151 # by default if the 'rm' program in use doesn't match our expectations; the
3152 # user can still override this though.
3153 if rm -f && rm -fr && rm -rf; then : OK; else
3154 cat >&2 <<'END'
3155 Oops!
3156
3157 Your 'rm' program seems unable to run without file operands specified
3158 on the command line, even when the '-f' option is present. This is contrary
3159 to the behaviour of most rm programs out there, and not conforming with
3160 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3161
3162 Please tell bug-automake@gnu.org about your system, including the value
3163 of your $PATH and any error possibly output before this message. This
3164 can help us improve future automake versions.
3165
3166 END
3167 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3168 echo 'Configuration will proceed anyway, since you have set the' >&2
3169 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3170 echo >&2
3171 else
3172 cat >&2 <<'END'
3173 Aborting the configuration process, to ensure you take notice of the issue.
3174
3175 You can download and install GNU coreutils to get an 'rm' implementation
3176 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3177
3178 If you want to complete the configuration process using your problematic
3179 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3180 to "yes", and re-run configure.
3181
3182 END
3183 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3184 fi
3185 fi
3186
3187 # Check whether --enable-silent-rules was given.
3188 if test "${enable_silent_rules+set}" = set; then :
3189 enableval=$enable_silent_rules;
3190 fi
3191
3192 case $enable_silent_rules in # (((
3193 yes) AM_DEFAULT_VERBOSITY=0;;
3194 no) AM_DEFAULT_VERBOSITY=1;;
3195 *) AM_DEFAULT_VERBOSITY=0;;
3196 esac
3197 am_make=${MAKE-make}
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3199 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3200 if ${am_cv_make_support_nested_variables+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if $as_echo 'TRUE=$(BAR$(V))
3204 BAR0=false
3205 BAR1=true
3206 V=1
3207 am__doit:
3208 @$(TRUE)
3209 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3210 am_cv_make_support_nested_variables=yes
3211 else
3212 am_cv_make_support_nested_variables=no
3213 fi
3214 fi
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3216 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3217 if test $am_cv_make_support_nested_variables = yes; then
3218 AM_V='$(V)'
3219 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3220 else
3221 AM_V=$AM_DEFAULT_VERBOSITY
3222 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3223 fi
3224 AM_BACKSLASH='\'
3225
3226
3227 ac_ext=c
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3253 fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 CC=$ac_cv_prog_CC
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269
3270 fi
3271 if test -z "$ac_cv_prog_CC"; then
3272 ac_ct_CC=$CC
3273 # Extract the first word of "gcc", so it can be a program name with args.
3274 set dummy gcc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$ac_ct_CC"; then
3281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_ac_ct_CC="gcc"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301 if test -n "$ac_ct_CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303 $as_echo "$ac_ct_CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309 if test "x$ac_ct_CC" = x; then
3310 CC=""
3311 else
3312 case $cross_compiling:$ac_tool_warned in
3313 yes:)
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned=yes ;;
3317 esac
3318 CC=$ac_ct_CC
3319 fi
3320 else
3321 CC="$ac_cv_prog_CC"
3322 fi
3323
3324 if test -z "$CC"; then
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}cc; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_prog_CC+:} false; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_CC="${ac_tool_prefix}cc"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3346 fi
3347 done
3348 done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 CC=$ac_cv_prog_CC
3354 if test -n "$CC"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356 $as_echo "$CC" >&6; }
3357 else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362
3363 fi
3364 fi
3365 if test -z "$CC"; then
3366 # Extract the first word of "cc", so it can be a program name with args.
3367 set dummy cc; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if ${ac_cv_prog_CC+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 if test -n "$CC"; then
3374 ac_cv_prog_CC="$CC" # Let the user override the test.
3375 else
3376 ac_prog_rejected=no
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3385 ac_prog_rejected=yes
3386 continue
3387 fi
3388 ac_cv_prog_CC="cc"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392 done
3393 done
3394 IFS=$as_save_IFS
3395
3396 if test $ac_prog_rejected = yes; then
3397 # We found a bogon in the path, so make sure we never use it.
3398 set dummy $ac_cv_prog_CC
3399 shift
3400 if test $# != 0; then
3401 # We chose a different compiler from the bogus one.
3402 # However, it has the same basename, so the bogon will be chosen
3403 # first if we set CC to just the basename; use the full file name.
3404 shift
3405 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3406 fi
3407 fi
3408 fi
3409 fi
3410 CC=$ac_cv_prog_CC
3411 if test -n "$CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413 $as_echo "$CC" >&6; }
3414 else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 fi
3418
3419
3420 fi
3421 if test -z "$CC"; then
3422 if test -n "$ac_tool_prefix"; then
3423 for ac_prog in cl.exe
3424 do
3425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if ${ac_cv_prog_CC+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446 done
3447 done
3448 IFS=$as_save_IFS
3449
3450 fi
3451 fi
3452 CC=$ac_cv_prog_CC
3453 if test -n "$CC"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455 $as_echo "$CC" >&6; }
3456 else
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3459 fi
3460
3461
3462 test -n "$CC" && break
3463 done
3464 fi
3465 if test -z "$CC"; then
3466 ac_ct_CC=$CC
3467 for ac_prog in cl.exe
3468 do
3469 # Extract the first word of "$ac_prog", so it can be a program name with args.
3470 set dummy $ac_prog; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test -n "$ac_ct_CC"; then
3477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_ac_ct_CC="$ac_prog"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490 done
3491 done
3492 IFS=$as_save_IFS
3493
3494 fi
3495 fi
3496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3497 if test -n "$ac_ct_CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3499 $as_echo "$ac_ct_CC" >&6; }
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3503 fi
3504
3505
3506 test -n "$ac_ct_CC" && break
3507 done
3508
3509 if test "x$ac_ct_CC" = x; then
3510 CC=""
3511 else
3512 case $cross_compiling:$ac_tool_warned in
3513 yes:)
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516 ac_tool_warned=yes ;;
3517 esac
3518 CC=$ac_ct_CC
3519 fi
3520 fi
3521
3522 fi
3523
3524
3525 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "no acceptable C compiler found in \$PATH
3528 See \`config.log' for more details" "$LINENO" 5; }
3529
3530 # Provide some information about the compiler.
3531 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3532 set X $ac_compile
3533 ac_compiler=$2
3534 for ac_option in --version -v -V -qversion; do
3535 { { ac_try="$ac_compiler $ac_option >&5"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3543 ac_status=$?
3544 if test -s conftest.err; then
3545 sed '10a\
3546 ... rest of stderr output deleted ...
3547 10q' conftest.err >conftest.er1
3548 cat conftest.er1 >&5
3549 fi
3550 rm -f conftest.er1 conftest.err
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }
3553 done
3554
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557
3558 int
3559 main ()
3560 {
3561
3562 ;
3563 return 0;
3564 }
3565 _ACEOF
3566 ac_clean_files_save=$ac_clean_files
3567 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3568 # Try to create an executable without -o first, disregard a.out.
3569 # It will help us diagnose broken compilers, and finding out an intuition
3570 # of exeext.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3572 $as_echo_n "checking whether the C compiler works... " >&6; }
3573 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3574
3575 # The possible output files:
3576 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3577
3578 ac_rmfiles=
3579 for ac_file in $ac_files
3580 do
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3583 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3584 esac
3585 done
3586 rm -f $ac_rmfiles
3587
3588 if { { ac_try="$ac_link_default"
3589 case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_link_default") 2>&5
3596 ac_status=$?
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }; then :
3599 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3600 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3601 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3602 # so that the user can short-circuit this test for compilers unknown to
3603 # Autoconf.
3604 for ac_file in $ac_files ''
3605 do
3606 test -f "$ac_file" || continue
3607 case $ac_file in
3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3609 ;;
3610 [ab].out )
3611 # We found the default executable, but exeext='' is most
3612 # certainly right.
3613 break;;
3614 *.* )
3615 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3616 then :; else
3617 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3618 fi
3619 # We set ac_cv_exeext here because the later test for it is not
3620 # safe: cross compilers may not add the suffix if given an `-o'
3621 # argument, so we may need to know it at that point already.
3622 # Even if this section looks crufty: it has the advantage of
3623 # actually working.
3624 break;;
3625 * )
3626 break;;
3627 esac
3628 done
3629 test "$ac_cv_exeext" = no && ac_cv_exeext=
3630
3631 else
3632 ac_file=''
3633 fi
3634 if test -z "$ac_file"; then :
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3637 $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error 77 "C compiler cannot create executables
3643 See \`config.log' for more details" "$LINENO" 5; }
3644 else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3646 $as_echo "yes" >&6; }
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3649 $as_echo_n "checking for C compiler default output file name... " >&6; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3651 $as_echo "$ac_file" >&6; }
3652 ac_exeext=$ac_cv_exeext
3653
3654 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3655 ac_clean_files=$ac_clean_files_save
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3657 $as_echo_n "checking for suffix of executables... " >&6; }
3658 if { { ac_try="$ac_link"
3659 case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_link") 2>&5
3666 ac_status=$?
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; then :
3669 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3670 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3671 # work properly (i.e., refer to `conftest.exe'), while it won't with
3672 # `rm'.
3673 for ac_file in conftest.exe conftest conftest.*; do
3674 test -f "$ac_file" || continue
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3678 break;;
3679 * ) break;;
3680 esac
3681 done
3682 else
3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3686 See \`config.log' for more details" "$LINENO" 5; }
3687 fi
3688 rm -f conftest conftest$ac_cv_exeext
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3690 $as_echo "$ac_cv_exeext" >&6; }
3691
3692 rm -f conftest.$ac_ext
3693 EXEEXT=$ac_cv_exeext
3694 ac_exeext=$EXEEXT
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697 #include <stdio.h>
3698 int
3699 main ()
3700 {
3701 FILE *f = fopen ("conftest.out", "w");
3702 return ferror (f) || fclose (f) != 0;
3703
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 ac_clean_files="$ac_clean_files conftest.out"
3709 # Check that the compiler produces executables we can run. If not, either
3710 # the compiler is broken, or we cross compile.
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3712 $as_echo_n "checking whether we are cross compiling... " >&6; }
3713 if test "$cross_compiling" != yes; then
3714 { { ac_try="$ac_link"
3715 case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720 $as_echo "$ac_try_echo"; } >&5
3721 (eval "$ac_link") 2>&5
3722 ac_status=$?
3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724 test $ac_status = 0; }
3725 if { ac_try='./conftest$ac_cv_exeext'
3726 { { case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729 esac
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 $as_echo "$ac_try_echo"; } >&5
3732 (eval "$ac_try") 2>&5
3733 ac_status=$?
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }; }; then
3736 cross_compiling=no
3737 else
3738 if test "$cross_compiling" = maybe; then
3739 cross_compiling=yes
3740 else
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error $? "cannot run C compiled programs.
3744 If you meant to cross compile, use \`--host'.
3745 See \`config.log' for more details" "$LINENO" 5; }
3746 fi
3747 fi
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3750 $as_echo "$cross_compiling" >&6; }
3751
3752 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3753 ac_clean_files=$ac_clean_files_save
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3755 $as_echo_n "checking for suffix of object files... " >&6; }
3756 if ${ac_cv_objext+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761
3762 int
3763 main ()
3764 {
3765
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 rm -f conftest.o conftest.obj
3771 if { { ac_try="$ac_compile"
3772 case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778 (eval "$ac_compile") 2>&5
3779 ac_status=$?
3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }; then :
3782 for ac_file in conftest.o conftest.obj conftest.*; do
3783 test -f "$ac_file" || continue;
3784 case $ac_file in
3785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3786 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3787 break;;
3788 esac
3789 done
3790 else
3791 $as_echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error $? "cannot compute suffix of object files: cannot compile
3797 See \`config.log' for more details" "$LINENO" 5; }
3798 fi
3799 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3802 $as_echo "$ac_cv_objext" >&6; }
3803 OBJEXT=$ac_cv_objext
3804 ac_objext=$OBJEXT
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3806 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3807 if ${ac_cv_c_compiler_gnu+:} false; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812
3813 int
3814 main ()
3815 {
3816 #ifndef __GNUC__
3817 choke me
3818 #endif
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_compiler_gnu=yes
3826 else
3827 ac_compiler_gnu=no
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3831
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3834 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3835 if test $ac_compiler_gnu = yes; then
3836 GCC=yes
3837 else
3838 GCC=
3839 fi
3840 ac_test_CFLAGS=${CFLAGS+set}
3841 ac_save_CFLAGS=$CFLAGS
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3843 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3844 if ${ac_cv_prog_cc_g+:} false; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 ac_save_c_werror_flag=$ac_c_werror_flag
3848 ac_c_werror_flag=yes
3849 ac_cv_prog_cc_g=no
3850 CFLAGS="-g"
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853
3854 int
3855 main ()
3856 {
3857
3858 ;
3859 return 0;
3860 }
3861 _ACEOF
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_cv_prog_cc_g=yes
3864 else
3865 CFLAGS=""
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868
3869 int
3870 main ()
3871 {
3872
3873 ;
3874 return 0;
3875 }
3876 _ACEOF
3877 if ac_fn_c_try_compile "$LINENO"; then :
3878
3879 else
3880 ac_c_werror_flag=$ac_save_c_werror_flag
3881 CFLAGS="-g"
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884
3885 int
3886 main ()
3887 {
3888
3889 ;
3890 return 0;
3891 }
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_cv_prog_cc_g=yes
3895 fi
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 fi
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3904 $as_echo "$ac_cv_prog_cc_g" >&6; }
3905 if test "$ac_test_CFLAGS" = set; then
3906 CFLAGS=$ac_save_CFLAGS
3907 elif test $ac_cv_prog_cc_g = yes; then
3908 if test "$GCC" = yes; then
3909 CFLAGS="-g -O2"
3910 else
3911 CFLAGS="-g"
3912 fi
3913 else
3914 if test "$GCC" = yes; then
3915 CFLAGS="-O2"
3916 else
3917 CFLAGS=
3918 fi
3919 fi
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3921 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3922 if ${ac_cv_prog_cc_c89+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 ac_cv_prog_cc_c89=no
3926 ac_save_CC=$CC
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929 #include <stdarg.h>
3930 #include <stdio.h>
3931 struct stat;
3932 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3933 struct buf { int x; };
3934 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3935 static char *e (p, i)
3936 char **p;
3937 int i;
3938 {
3939 return p[i];
3940 }
3941 static char *f (char * (*g) (char **, int), char **p, ...)
3942 {
3943 char *s;
3944 va_list v;
3945 va_start (v,p);
3946 s = g (p, va_arg (v,int));
3947 va_end (v);
3948 return s;
3949 }
3950
3951 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3952 function prototypes and stuff, but not '\xHH' hex character constants.
3953 These don't provoke an error unfortunately, instead are silently treated
3954 as 'x'. The following induces an error, until -std is added to get
3955 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3956 array size at least. It's necessary to write '\x00'==0 to get something
3957 that's true only with -std. */
3958 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3959
3960 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3961 inside strings and character constants. */
3962 #define FOO(x) 'x'
3963 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3964
3965 int test (int i, double x);
3966 struct s1 {int (*f) (int a);};
3967 struct s2 {int (*f) (double a);};
3968 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3969 int argc;
3970 char **argv;
3971 int
3972 main ()
3973 {
3974 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3975 ;
3976 return 0;
3977 }
3978 _ACEOF
3979 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3980 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3981 do
3982 CC="$ac_save_CC $ac_arg"
3983 if ac_fn_c_try_compile "$LINENO"; then :
3984 ac_cv_prog_cc_c89=$ac_arg
3985 fi
3986 rm -f core conftest.err conftest.$ac_objext
3987 test "x$ac_cv_prog_cc_c89" != "xno" && break
3988 done
3989 rm -f conftest.$ac_ext
3990 CC=$ac_save_CC
3991
3992 fi
3993 # AC_CACHE_VAL
3994 case "x$ac_cv_prog_cc_c89" in
3995 x)
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997 $as_echo "none needed" >&6; } ;;
3998 xno)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4000 $as_echo "unsupported" >&6; } ;;
4001 *)
4002 CC="$CC $ac_cv_prog_cc_c89"
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4004 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4005 esac
4006 if test "x$ac_cv_prog_cc_c89" != xno; then :
4007
4008 fi
4009
4010 ac_ext=c
4011 ac_cpp='$CPP $CPPFLAGS'
4012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015
4016 ac_ext=c
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4022 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4023 if ${am_cv_prog_cc_c_o+:} false; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028
4029 int
4030 main ()
4031 {
4032
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 # Make sure it works both with $CC and with simple cc.
4038 # Following AC_PROG_CC_C_O, we do the test twice because some
4039 # compilers refuse to overwrite an existing .o file with -o,
4040 # though they will create one.
4041 am_cv_prog_cc_c_o=yes
4042 for am_i in 1 2; do
4043 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4044 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } \
4048 && test -f conftest2.$ac_objext; then
4049 : OK
4050 else
4051 am_cv_prog_cc_c_o=no
4052 break
4053 fi
4054 done
4055 rm -f core conftest*
4056 unset am_i
4057 fi
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4059 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4060 if test "$am_cv_prog_cc_c_o" != yes; then
4061 # Losing compiler, so override with the script.
4062 # FIXME: It is wrong to rewrite CC.
4063 # But if we don't then we get into trouble of one sort or another.
4064 # A longer-term fix would be to have automake use am__CC in this case,
4065 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4066 CC="$am_aux_dir/compile $CC"
4067 fi
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073
4074 DEPDIR="${am__leading_dot}deps"
4075
4076 ac_config_commands="$ac_config_commands depfiles"
4077
4078
4079 am_make=${MAKE-make}
4080 cat > confinc << 'END'
4081 am__doit:
4082 @echo this is the am__doit target
4083 .PHONY: am__doit
4084 END
4085 # If we don't find an include directive, just comment out the code.
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4087 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4088 am__include="#"
4089 am__quote=
4090 _am_result=none
4091 # First try GNU make style include.
4092 echo "include confinc" > confmf
4093 # Ignore all kinds of additional output from 'make'.
4094 case `$am_make -s -f confmf 2> /dev/null` in #(
4095 *the\ am__doit\ target*)
4096 am__include=include
4097 am__quote=
4098 _am_result=GNU
4099 ;;
4100 esac
4101 # Now try BSD make style include.
4102 if test "$am__include" = "#"; then
4103 echo '.include "confinc"' > confmf
4104 case `$am_make -s -f confmf 2> /dev/null` in #(
4105 *the\ am__doit\ target*)
4106 am__include=.include
4107 am__quote="\""
4108 _am_result=BSD
4109 ;;
4110 esac
4111 fi
4112
4113
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4115 $as_echo "$_am_result" >&6; }
4116 rm -f confinc confmf
4117
4118 # Check whether --enable-dependency-tracking was given.
4119 if test "${enable_dependency_tracking+set}" = set; then :
4120 enableval=$enable_dependency_tracking;
4121 fi
4122
4123 if test "x$enable_dependency_tracking" != xno; then
4124 am_depcomp="$ac_aux_dir/depcomp"
4125 AMDEPBACKSLASH='\'
4126 am__nodep='_no'
4127 fi
4128 if test "x$enable_dependency_tracking" != xno; then
4129 AMDEP_TRUE=
4130 AMDEP_FALSE='#'
4131 else
4132 AMDEP_TRUE='#'
4133 AMDEP_FALSE=
4134 fi
4135
4136
4137
4138 depcc="$CC" am_compiler_list=
4139
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4141 $as_echo_n "checking dependency style of $depcc... " >&6; }
4142 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4146 # We make a subdir and do the tests there. Otherwise we can end up
4147 # making bogus files that we don't know about and never remove. For
4148 # instance it was reported that on HP-UX the gcc test will end up
4149 # making a dummy file named 'D' -- because '-MD' means "put the output
4150 # in D".
4151 rm -rf conftest.dir
4152 mkdir conftest.dir
4153 # Copy depcomp to subdir because otherwise we won't find it if we're
4154 # using a relative directory.
4155 cp "$am_depcomp" conftest.dir
4156 cd conftest.dir
4157 # We will build objects and dependencies in a subdirectory because
4158 # it helps to detect inapplicable dependency modes. For instance
4159 # both Tru64's cc and ICC support -MD to output dependencies as a
4160 # side effect of compilation, but ICC will put the dependencies in
4161 # the current directory while Tru64 will put them in the object
4162 # directory.
4163 mkdir sub
4164
4165 am_cv_CC_dependencies_compiler_type=none
4166 if test "$am_compiler_list" = ""; then
4167 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4168 fi
4169 am__universal=false
4170 case " $depcc " in #(
4171 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4172 esac
4173
4174 for depmode in $am_compiler_list; do
4175 # Setup a source with many dependencies, because some compilers
4176 # like to wrap large dependency lists on column 80 (with \), and
4177 # we should not choose a depcomp mode which is confused by this.
4178 #
4179 # We need to recreate these files for each test, as the compiler may
4180 # overwrite some of them when testing with obscure command lines.
4181 # This happens at least with the AIX C compiler.
4182 : > sub/conftest.c
4183 for i in 1 2 3 4 5 6; do
4184 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4185 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4186 # Solaris 10 /bin/sh.
4187 echo '/* dummy */' > sub/conftst$i.h
4188 done
4189 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4190
4191 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4192 # mode. It turns out that the SunPro C++ compiler does not properly
4193 # handle '-M -o', and we need to detect this. Also, some Intel
4194 # versions had trouble with output in subdirs.
4195 am__obj=sub/conftest.${OBJEXT-o}
4196 am__minus_obj="-o $am__obj"
4197 case $depmode in
4198 gcc)
4199 # This depmode causes a compiler race in universal mode.
4200 test "$am__universal" = false || continue
4201 ;;
4202 nosideeffect)
4203 # After this tag, mechanisms are not by side-effect, so they'll
4204 # only be used when explicitly requested.
4205 if test "x$enable_dependency_tracking" = xyes; then
4206 continue
4207 else
4208 break
4209 fi
4210 ;;
4211 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4212 # This compiler won't grok '-c -o', but also, the minuso test has
4213 # not run yet. These depmodes are late enough in the game, and
4214 # so weak that their functioning should not be impacted.
4215 am__obj=conftest.${OBJEXT-o}
4216 am__minus_obj=
4217 ;;
4218 none) break ;;
4219 esac
4220 if depmode=$depmode \
4221 source=sub/conftest.c object=$am__obj \
4222 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4223 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4224 >/dev/null 2>conftest.err &&
4225 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4227 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4229 # icc doesn't choke on unknown options, it will just issue warnings
4230 # or remarks (even with -Werror). So we grep stderr for any message
4231 # that says an option was ignored or not supported.
4232 # When given -MP, icc 7.0 and 7.1 complain thusly:
4233 # icc: Command line warning: ignoring option '-M'; no argument required
4234 # The diagnosis changed in icc 8.0:
4235 # icc: Command line remark: option '-MP' not supported
4236 if (grep 'ignoring option' conftest.err ||
4237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4238 am_cv_CC_dependencies_compiler_type=$depmode
4239 break
4240 fi
4241 fi
4242 done
4243
4244 cd ..
4245 rm -rf conftest.dir
4246 else
4247 am_cv_CC_dependencies_compiler_type=none
4248 fi
4249
4250 fi
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4252 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4253 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4254
4255 if
4256 test "x$enable_dependency_tracking" != xno \
4257 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4258 am__fastdepCC_TRUE=
4259 am__fastdepCC_FALSE='#'
4260 else
4261 am__fastdepCC_TRUE='#'
4262 am__fastdepCC_FALSE=
4263 fi
4264
4265
4266
4267 ac_ext=c
4268 ac_cpp='$CPP $CPPFLAGS'
4269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4273 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4274 # On Suns, sometimes $CPP names a directory.
4275 if test -n "$CPP" && test -d "$CPP"; then
4276 CPP=
4277 fi
4278 if test -z "$CPP"; then
4279 if ${ac_cv_prog_CPP+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 # Double quotes because CPP needs to be expanded
4283 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4284 do
4285 ac_preproc_ok=false
4286 for ac_c_preproc_warn_flag in '' yes
4287 do
4288 # Use a header file that comes with gcc, so configuring glibc
4289 # with a fresh cross-compiler works.
4290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4291 # <limits.h> exists even on freestanding compilers.
4292 # On the NeXT, cc -E runs the code through the compiler's parser,
4293 # not just through cpp. "Syntax error" is here to catch this case.
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 #ifdef __STDC__
4297 # include <limits.h>
4298 #else
4299 # include <assert.h>
4300 #endif
4301 Syntax error
4302 _ACEOF
4303 if ac_fn_c_try_cpp "$LINENO"; then :
4304
4305 else
4306 # Broken: fails on valid input.
4307 continue
4308 fi
4309 rm -f conftest.err conftest.i conftest.$ac_ext
4310
4311 # OK, works on sane cases. Now check whether nonexistent headers
4312 # can be detected and how.
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315 #include <ac_nonexistent.h>
4316 _ACEOF
4317 if ac_fn_c_try_cpp "$LINENO"; then :
4318 # Broken: success on invalid input.
4319 continue
4320 else
4321 # Passes both tests.
4322 ac_preproc_ok=:
4323 break
4324 fi
4325 rm -f conftest.err conftest.i conftest.$ac_ext
4326
4327 done
4328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4329 rm -f conftest.i conftest.err conftest.$ac_ext
4330 if $ac_preproc_ok; then :
4331 break
4332 fi
4333
4334 done
4335 ac_cv_prog_CPP=$CPP
4336
4337 fi
4338 CPP=$ac_cv_prog_CPP
4339 else
4340 ac_cv_prog_CPP=$CPP
4341 fi
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4343 $as_echo "$CPP" >&6; }
4344 ac_preproc_ok=false
4345 for ac_c_preproc_warn_flag in '' yes
4346 do
4347 # Use a header file that comes with gcc, so configuring glibc
4348 # with a fresh cross-compiler works.
4349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4350 # <limits.h> exists even on freestanding compilers.
4351 # On the NeXT, cc -E runs the code through the compiler's parser,
4352 # not just through cpp. "Syntax error" is here to catch this case.
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355 #ifdef __STDC__
4356 # include <limits.h>
4357 #else
4358 # include <assert.h>
4359 #endif
4360 Syntax error
4361 _ACEOF
4362 if ac_fn_c_try_cpp "$LINENO"; then :
4363
4364 else
4365 # Broken: fails on valid input.
4366 continue
4367 fi
4368 rm -f conftest.err conftest.i conftest.$ac_ext
4369
4370 # OK, works on sane cases. Now check whether nonexistent headers
4371 # can be detected and how.
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 #include <ac_nonexistent.h>
4375 _ACEOF
4376 if ac_fn_c_try_cpp "$LINENO"; then :
4377 # Broken: success on invalid input.
4378 continue
4379 else
4380 # Passes both tests.
4381 ac_preproc_ok=:
4382 break
4383 fi
4384 rm -f conftest.err conftest.i conftest.$ac_ext
4385
4386 done
4387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388 rm -f conftest.i conftest.err conftest.$ac_ext
4389 if $ac_preproc_ok; then :
4390
4391 else
4392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4394 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4395 See \`config.log' for more details" "$LINENO" 5; }
4396 fi
4397
4398 ac_ext=c
4399 ac_cpp='$CPP $CPPFLAGS'
4400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403
4404
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4406 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4407 if ${ac_cv_path_GREP+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -z "$GREP"; then
4411 ac_path_GREP_found=false
4412 # Loop through the user's path and test for each of PROGNAME-LIST
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4415 do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_prog in grep ggrep; do
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4421 as_fn_executable_p "$ac_path_GREP" || continue
4422 # Check for GNU ac_path_GREP and select it if it is found.
4423 # Check for GNU $ac_path_GREP
4424 case `"$ac_path_GREP" --version 2>&1` in
4425 *GNU*)
4426 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4427 *)
4428 ac_count=0
4429 $as_echo_n 0123456789 >"conftest.in"
4430 while :
4431 do
4432 cat "conftest.in" "conftest.in" >"conftest.tmp"
4433 mv "conftest.tmp" "conftest.in"
4434 cp "conftest.in" "conftest.nl"
4435 $as_echo 'GREP' >> "conftest.nl"
4436 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4438 as_fn_arith $ac_count + 1 && ac_count=$as_val
4439 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4440 # Best one so far, save it but keep looking for a better one
4441 ac_cv_path_GREP="$ac_path_GREP"
4442 ac_path_GREP_max=$ac_count
4443 fi
4444 # 10*(2^10) chars as input seems more than enough
4445 test $ac_count -gt 10 && break
4446 done
4447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4448 esac
4449
4450 $ac_path_GREP_found && break 3
4451 done
4452 done
4453 done
4454 IFS=$as_save_IFS
4455 if test -z "$ac_cv_path_GREP"; then
4456 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4457 fi
4458 else
4459 ac_cv_path_GREP=$GREP
4460 fi
4461
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4464 $as_echo "$ac_cv_path_GREP" >&6; }
4465 GREP="$ac_cv_path_GREP"
4466
4467
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4469 $as_echo_n "checking for egrep... " >&6; }
4470 if ${ac_cv_path_EGREP+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4474 then ac_cv_path_EGREP="$GREP -E"
4475 else
4476 if test -z "$EGREP"; then
4477 ac_path_EGREP_found=false
4478 # Loop through the user's path and test for each of PROGNAME-LIST
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4481 do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_prog in egrep; do
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4487 as_fn_executable_p "$ac_path_EGREP" || continue
4488 # Check for GNU ac_path_EGREP and select it if it is found.
4489 # Check for GNU $ac_path_EGREP
4490 case `"$ac_path_EGREP" --version 2>&1` in
4491 *GNU*)
4492 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4493 *)
4494 ac_count=0
4495 $as_echo_n 0123456789 >"conftest.in"
4496 while :
4497 do
4498 cat "conftest.in" "conftest.in" >"conftest.tmp"
4499 mv "conftest.tmp" "conftest.in"
4500 cp "conftest.in" "conftest.nl"
4501 $as_echo 'EGREP' >> "conftest.nl"
4502 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504 as_fn_arith $ac_count + 1 && ac_count=$as_val
4505 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4506 # Best one so far, save it but keep looking for a better one
4507 ac_cv_path_EGREP="$ac_path_EGREP"
4508 ac_path_EGREP_max=$ac_count
4509 fi
4510 # 10*(2^10) chars as input seems more than enough
4511 test $ac_count -gt 10 && break
4512 done
4513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514 esac
4515
4516 $ac_path_EGREP_found && break 3
4517 done
4518 done
4519 done
4520 IFS=$as_save_IFS
4521 if test -z "$ac_cv_path_EGREP"; then
4522 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4523 fi
4524 else
4525 ac_cv_path_EGREP=$EGREP
4526 fi
4527
4528 fi
4529 fi
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4531 $as_echo "$ac_cv_path_EGREP" >&6; }
4532 EGREP="$ac_cv_path_EGREP"
4533
4534
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4536 $as_echo_n "checking for ANSI C header files... " >&6; }
4537 if ${ac_cv_header_stdc+:} false; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542 #include <stdlib.h>
4543 #include <stdarg.h>
4544 #include <string.h>
4545 #include <float.h>
4546
4547 int
4548 main ()
4549 {
4550
4551 ;
4552 return 0;
4553 }
4554 _ACEOF
4555 if ac_fn_c_try_compile "$LINENO"; then :
4556 ac_cv_header_stdc=yes
4557 else
4558 ac_cv_header_stdc=no
4559 fi
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561
4562 if test $ac_cv_header_stdc = yes; then
4563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 #include <string.h>
4567
4568 _ACEOF
4569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4570 $EGREP "memchr" >/dev/null 2>&1; then :
4571
4572 else
4573 ac_cv_header_stdc=no
4574 fi
4575 rm -f conftest*
4576
4577 fi
4578
4579 if test $ac_cv_header_stdc = yes; then
4580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583 #include <stdlib.h>
4584
4585 _ACEOF
4586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4587 $EGREP "free" >/dev/null 2>&1; then :
4588
4589 else
4590 ac_cv_header_stdc=no
4591 fi
4592 rm -f conftest*
4593
4594 fi
4595
4596 if test $ac_cv_header_stdc = yes; then
4597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4598 if test "$cross_compiling" = yes; then :
4599 :
4600 else
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603 #include <ctype.h>
4604 #include <stdlib.h>
4605 #if ((' ' & 0x0FF) == 0x020)
4606 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4607 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4608 #else
4609 # define ISLOWER(c) \
4610 (('a' <= (c) && (c) <= 'i') \
4611 || ('j' <= (c) && (c) <= 'r') \
4612 || ('s' <= (c) && (c) <= 'z'))
4613 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4614 #endif
4615
4616 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4617 int
4618 main ()
4619 {
4620 int i;
4621 for (i = 0; i < 256; i++)
4622 if (XOR (islower (i), ISLOWER (i))
4623 || toupper (i) != TOUPPER (i))
4624 return 2;
4625 return 0;
4626 }
4627 _ACEOF
4628 if ac_fn_c_try_run "$LINENO"; then :
4629
4630 else
4631 ac_cv_header_stdc=no
4632 fi
4633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4634 conftest.$ac_objext conftest.beam conftest.$ac_ext
4635 fi
4636
4637 fi
4638 fi
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4640 $as_echo "$ac_cv_header_stdc" >&6; }
4641 if test $ac_cv_header_stdc = yes; then
4642
4643 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4644
4645 fi
4646
4647 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4648 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4649 inttypes.h stdint.h unistd.h
4650 do :
4651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4652 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4653 "
4654 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4655 cat >>confdefs.h <<_ACEOF
4656 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4657 _ACEOF
4658
4659 fi
4660
4661 done
4662
4663
4664
4665 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4666 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4667 MINIX=yes
4668 else
4669 MINIX=
4670 fi
4671
4672
4673 if test "$MINIX" = yes; then
4674
4675 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4676
4677
4678 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4679
4680
4681 $as_echo "#define _MINIX 1" >>confdefs.h
4682
4683 fi
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4687 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4688 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4693
4694 # define __EXTENSIONS__ 1
4695 $ac_includes_default
4696 int
4697 main ()
4698 {
4699
4700 ;
4701 return 0;
4702 }
4703 _ACEOF
4704 if ac_fn_c_try_compile "$LINENO"; then :
4705 ac_cv_safe_to_define___extensions__=yes
4706 else
4707 ac_cv_safe_to_define___extensions__=no
4708 fi
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 fi
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4712 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4713 test $ac_cv_safe_to_define___extensions__ = yes &&
4714 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4715
4716 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4717
4718 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4719
4720 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4721
4722 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4723
4724
4725
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4727 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4728 if ${ac_cv_c_bigendian+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 ac_cv_c_bigendian=unknown
4732 # See if we're dealing with a universal compiler.
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735 #ifndef __APPLE_CC__
4736 not a universal capable compiler
4737 #endif
4738 typedef int dummy;
4739
4740 _ACEOF
4741 if ac_fn_c_try_compile "$LINENO"; then :
4742
4743 # Check for potential -arch flags. It is not universal unless
4744 # there are at least two -arch flags with different values.
4745 ac_arch=
4746 ac_prev=
4747 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4748 if test -n "$ac_prev"; then
4749 case $ac_word in
4750 i?86 | x86_64 | ppc | ppc64)
4751 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4752 ac_arch=$ac_word
4753 else
4754 ac_cv_c_bigendian=universal
4755 break
4756 fi
4757 ;;
4758 esac
4759 ac_prev=
4760 elif test "x$ac_word" = "x-arch"; then
4761 ac_prev=arch
4762 fi
4763 done
4764 fi
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 if test $ac_cv_c_bigendian = unknown; then
4767 # See if sys/param.h defines the BYTE_ORDER macro.
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 #include <sys/types.h>
4771 #include <sys/param.h>
4772
4773 int
4774 main ()
4775 {
4776 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4777 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4778 && LITTLE_ENDIAN)
4779 bogus endian macros
4780 #endif
4781
4782 ;
4783 return 0;
4784 }
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787 # It does; now see whether it defined to BIG_ENDIAN or not.
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 #include <sys/types.h>
4791 #include <sys/param.h>
4792
4793 int
4794 main ()
4795 {
4796 #if BYTE_ORDER != BIG_ENDIAN
4797 not big endian
4798 #endif
4799
4800 ;
4801 return 0;
4802 }
4803 _ACEOF
4804 if ac_fn_c_try_compile "$LINENO"; then :
4805 ac_cv_c_bigendian=yes
4806 else
4807 ac_cv_c_bigendian=no
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 fi
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 fi
4813 if test $ac_cv_c_bigendian = unknown; then
4814 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4817 #include <limits.h>
4818
4819 int
4820 main ()
4821 {
4822 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4823 bogus endian macros
4824 #endif
4825
4826 ;
4827 return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831 # It does; now see whether it defined to _BIG_ENDIAN or not.
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 #include <limits.h>
4835
4836 int
4837 main ()
4838 {
4839 #ifndef _BIG_ENDIAN
4840 not big endian
4841 #endif
4842
4843 ;
4844 return 0;
4845 }
4846 _ACEOF
4847 if ac_fn_c_try_compile "$LINENO"; then :
4848 ac_cv_c_bigendian=yes
4849 else
4850 ac_cv_c_bigendian=no
4851 fi
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 fi
4856 if test $ac_cv_c_bigendian = unknown; then
4857 # Compile a test program.
4858 if test "$cross_compiling" = yes; then :
4859 # Try to guess by grepping values from an object file.
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862 short int ascii_mm[] =
4863 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4864 short int ascii_ii[] =
4865 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4866 int use_ascii (int i) {
4867 return ascii_mm[i] + ascii_ii[i];
4868 }
4869 short int ebcdic_ii[] =
4870 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4871 short int ebcdic_mm[] =
4872 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4873 int use_ebcdic (int i) {
4874 return ebcdic_mm[i] + ebcdic_ii[i];
4875 }
4876 extern int foo;
4877
4878 int
4879 main ()
4880 {
4881 return use_ascii (foo) == use_ebcdic (foo);
4882 ;
4883 return 0;
4884 }
4885 _ACEOF
4886 if ac_fn_c_try_compile "$LINENO"; then :
4887 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4888 ac_cv_c_bigendian=yes
4889 fi
4890 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4891 if test "$ac_cv_c_bigendian" = unknown; then
4892 ac_cv_c_bigendian=no
4893 else
4894 # finding both strings is unlikely to happen, but who knows?
4895 ac_cv_c_bigendian=unknown
4896 fi
4897 fi
4898 fi
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 else
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903 $ac_includes_default
4904 int
4905 main ()
4906 {
4907
4908 /* Are we little or big endian? From Harbison&Steele. */
4909 union
4910 {
4911 long int l;
4912 char c[sizeof (long int)];
4913 } u;
4914 u.l = 1;
4915 return u.c[sizeof (long int) - 1] == 1;
4916
4917 ;
4918 return 0;
4919 }
4920 _ACEOF
4921 if ac_fn_c_try_run "$LINENO"; then :
4922 ac_cv_c_bigendian=no
4923 else
4924 ac_cv_c_bigendian=yes
4925 fi
4926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4927 conftest.$ac_objext conftest.beam conftest.$ac_ext
4928 fi
4929
4930 fi
4931 fi
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4933 $as_echo "$ac_cv_c_bigendian" >&6; }
4934 case $ac_cv_c_bigendian in #(
4935 yes)
4936 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4937 ;; #(
4938 no)
4939 ;; #(
4940 universal)
4941
4942 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4943
4944 ;; #(
4945 *)
4946 as_fn_error $? "unknown endianness
4947 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4948 esac
4949
4950
4951 case `pwd` in
4952 *\ * | *\ *)
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4954 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4955 esac
4956
4957
4958
4959 macro_version='2.2.7a'
4960 macro_revision='1.3134'
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974 ltmain="$ac_aux_dir/ltmain.sh"
4975
4976 # Backslashify metacharacters that are still active within
4977 # double-quoted strings.
4978 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4979
4980 # Same as above, but do not quote variable references.
4981 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4982
4983 # Sed substitution to delay expansion of an escaped shell variable in a
4984 # double_quote_subst'ed string.
4985 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4986
4987 # Sed substitution to delay expansion of an escaped single quote.
4988 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4989
4990 # Sed substitution to avoid accidental globbing in evaled expressions
4991 no_glob_subst='s/\*/\\\*/g'
4992
4993 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4994 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4995 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4996
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4998 $as_echo_n "checking how to print strings... " >&6; }
4999 # Test print first, because it will be a builtin if present.
5000 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5001 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5002 ECHO='print -r --'
5003 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5004 ECHO='printf %s\n'
5005 else
5006 # Use this function as a fallback that always works.
5007 func_fallback_echo ()
5008 {
5009 eval 'cat <<_LTECHO_EOF
5010 $1
5011 _LTECHO_EOF'
5012 }
5013 ECHO='func_fallback_echo'
5014 fi
5015
5016 # func_echo_all arg...
5017 # Invoke $ECHO with all args, space-separated.
5018 func_echo_all ()
5019 {
5020 $ECHO ""
5021 }
5022
5023 case "$ECHO" in
5024 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5025 $as_echo "printf" >&6; } ;;
5026 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5027 $as_echo "print -r" >&6; } ;;
5028 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5029 $as_echo "cat" >&6; } ;;
5030 esac
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5046 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5047 if ${ac_cv_path_SED+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5051 for ac_i in 1 2 3 4 5 6 7; do
5052 ac_script="$ac_script$as_nl$ac_script"
5053 done
5054 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5055 { ac_script=; unset ac_script;}
5056 if test -z "$SED"; then
5057 ac_path_SED_found=false
5058 # Loop through the user's path and test for each of PROGNAME-LIST
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_prog in sed gsed; do
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5067 as_fn_executable_p "$ac_path_SED" || continue
5068 # Check for GNU ac_path_SED and select it if it is found.
5069 # Check for GNU $ac_path_SED
5070 case `"$ac_path_SED" --version 2>&1` in
5071 *GNU*)
5072 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5073 *)
5074 ac_count=0
5075 $as_echo_n 0123456789 >"conftest.in"
5076 while :
5077 do
5078 cat "conftest.in" "conftest.in" >"conftest.tmp"
5079 mv "conftest.tmp" "conftest.in"
5080 cp "conftest.in" "conftest.nl"
5081 $as_echo '' >> "conftest.nl"
5082 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5084 as_fn_arith $ac_count + 1 && ac_count=$as_val
5085 if test $ac_count -gt ${ac_path_SED_max-0}; then
5086 # Best one so far, save it but keep looking for a better one
5087 ac_cv_path_SED="$ac_path_SED"
5088 ac_path_SED_max=$ac_count
5089 fi
5090 # 10*(2^10) chars as input seems more than enough
5091 test $ac_count -gt 10 && break
5092 done
5093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5094 esac
5095
5096 $ac_path_SED_found && break 3
5097 done
5098 done
5099 done
5100 IFS=$as_save_IFS
5101 if test -z "$ac_cv_path_SED"; then
5102 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5103 fi
5104 else
5105 ac_cv_path_SED=$SED
5106 fi
5107
5108 fi
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5110 $as_echo "$ac_cv_path_SED" >&6; }
5111 SED="$ac_cv_path_SED"
5112 rm -f conftest.sed
5113
5114 test -z "$SED" && SED=sed
5115 Xsed="$SED -e 1s/^X//"
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5128 $as_echo_n "checking for fgrep... " >&6; }
5129 if ${ac_cv_path_FGREP+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5133 then ac_cv_path_FGREP="$GREP -F"
5134 else
5135 if test -z "$FGREP"; then
5136 ac_path_FGREP_found=false
5137 # Loop through the user's path and test for each of PROGNAME-LIST
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5140 do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_prog in fgrep; do
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5146 as_fn_executable_p "$ac_path_FGREP" || continue
5147 # Check for GNU ac_path_FGREP and select it if it is found.
5148 # Check for GNU $ac_path_FGREP
5149 case `"$ac_path_FGREP" --version 2>&1` in
5150 *GNU*)
5151 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5152 *)
5153 ac_count=0
5154 $as_echo_n 0123456789 >"conftest.in"
5155 while :
5156 do
5157 cat "conftest.in" "conftest.in" >"conftest.tmp"
5158 mv "conftest.tmp" "conftest.in"
5159 cp "conftest.in" "conftest.nl"
5160 $as_echo 'FGREP' >> "conftest.nl"
5161 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5163 as_fn_arith $ac_count + 1 && ac_count=$as_val
5164 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5165 # Best one so far, save it but keep looking for a better one
5166 ac_cv_path_FGREP="$ac_path_FGREP"
5167 ac_path_FGREP_max=$ac_count
5168 fi
5169 # 10*(2^10) chars as input seems more than enough
5170 test $ac_count -gt 10 && break
5171 done
5172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5173 esac
5174
5175 $ac_path_FGREP_found && break 3
5176 done
5177 done
5178 done
5179 IFS=$as_save_IFS
5180 if test -z "$ac_cv_path_FGREP"; then
5181 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5182 fi
5183 else
5184 ac_cv_path_FGREP=$FGREP
5185 fi
5186
5187 fi
5188 fi
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5190 $as_echo "$ac_cv_path_FGREP" >&6; }
5191 FGREP="$ac_cv_path_FGREP"
5192
5193
5194 test -z "$GREP" && GREP=grep
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214 # Check whether --with-gnu-ld was given.
5215 if test "${with_gnu_ld+set}" = set; then :
5216 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5217 else
5218 with_gnu_ld=no
5219 fi
5220
5221 ac_prog=ld
5222 if test "$GCC" = yes; then
5223 # Check if gcc -print-prog-name=ld gives a path.
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5225 $as_echo_n "checking for ld used by $CC... " >&6; }
5226 case $host in
5227 *-*-mingw*)
5228 # gcc leaves a trailing carriage return which upsets mingw
5229 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5230 *)
5231 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5232 esac
5233 case $ac_prog in
5234 # Accept absolute paths.
5235 [\\/]* | ?:[\\/]*)
5236 re_direlt='/[^/][^/]*/\.\./'
5237 # Canonicalize the pathname of ld
5238 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5239 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5240 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5241 done
5242 test -z "$LD" && LD="$ac_prog"
5243 ;;
5244 "")
5245 # If it fails, then pretend we aren't using GCC.
5246 ac_prog=ld
5247 ;;
5248 *)
5249 # If it is relative, then search for the first ld in PATH.
5250 with_gnu_ld=unknown
5251 ;;
5252 esac
5253 elif test "$with_gnu_ld" = yes; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5255 $as_echo_n "checking for GNU ld... " >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5258 $as_echo_n "checking for non-GNU ld... " >&6; }
5259 fi
5260 if ${lt_cv_path_LD+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -z "$LD"; then
5264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5265 for ac_dir in $PATH; do
5266 IFS="$lt_save_ifs"
5267 test -z "$ac_dir" && ac_dir=.
5268 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5269 lt_cv_path_LD="$ac_dir/$ac_prog"
5270 # Check to see if the program is GNU ld. I'd rather use --version,
5271 # but apparently some variants of GNU ld only accept -v.
5272 # Break only if it was the GNU/non-GNU ld that we prefer.
5273 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5274 *GNU* | *'with BFD'*)
5275 test "$with_gnu_ld" != no && break
5276 ;;
5277 *)
5278 test "$with_gnu_ld" != yes && break
5279 ;;
5280 esac
5281 fi
5282 done
5283 IFS="$lt_save_ifs"
5284 else
5285 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5286 fi
5287 fi
5288
5289 LD="$lt_cv_path_LD"
5290 if test -n "$LD"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5292 $as_echo "$LD" >&6; }
5293 else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5296 fi
5297 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5299 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5300 if ${lt_cv_prog_gnu_ld+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5304 case `$LD -v 2>&1 </dev/null` in
5305 *GNU* | *'with BFD'*)
5306 lt_cv_prog_gnu_ld=yes
5307 ;;
5308 *)
5309 lt_cv_prog_gnu_ld=no
5310 ;;
5311 esac
5312 fi
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5314 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5315 with_gnu_ld=$lt_cv_prog_gnu_ld
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5326 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5327 if ${lt_cv_path_NM+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -n "$NM"; then
5331 # Let the user override the nm to test.
5332 lt_nm_to_check="$NM"
5333 else
5334 lt_nm_to_check="${ac_tool_prefix}nm"
5335 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5336 lt_nm_to_check="$lt_nm_to_check nm"
5337 fi
5338 fi
5339 for lt_tmp_nm in "$lt_nm_to_check"; do
5340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5341 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5342 IFS="$lt_save_ifs"
5343 test -z "$ac_dir" && ac_dir=.
5344 # Strip out any user-provided options from the nm to test twice,
5345 # the first time to test to see if nm (rather than its options) has
5346 # an explicit path, the second time to yield a file which can be
5347 # nm'ed itself.
5348 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5349 case "$tmp_nm_path" in
5350 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5351 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5352 esac
5353 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5354 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5355 # Check to see if the nm accepts a BSD-compat flag.
5356 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5357 # nm: unknown option "B" ignored
5358 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5359 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5360 break
5361 ;;
5362 *)
5363 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5364 *$tmp_nm*)
5365 lt_cv_path_NM="$tmp_nm -p"
5366 break
5367 ;;
5368 *)
5369 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5370 continue # so that we can try to find one that supports BSD flags
5371 ;;
5372 esac
5373 ;;
5374 esac
5375 fi
5376 done
5377 IFS="$lt_save_ifs"
5378 done
5379 : ${lt_cv_path_NM=no}
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5382 $as_echo "$lt_cv_path_NM" >&6; }
5383 if test "$lt_cv_path_NM" != "no"; then
5384 NM="$lt_cv_path_NM"
5385 else
5386 # Didn't find any BSD compatible name lister, look for dumpbin.
5387 if test -n "$DUMPBIN"; then :
5388 # Let the user override the test.
5389 else
5390 if test -n "$ac_tool_prefix"; then
5391 for ac_prog in dumpbin "link -dump"
5392 do
5393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_DUMPBIN+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 if test -n "$DUMPBIN"; then
5401 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5413 fi
5414 done
5415 done
5416 IFS=$as_save_IFS
5417
5418 fi
5419 fi
5420 DUMPBIN=$ac_cv_prog_DUMPBIN
5421 if test -n "$DUMPBIN"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5423 $as_echo "$DUMPBIN" >&6; }
5424 else
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429
5430 test -n "$DUMPBIN" && break
5431 done
5432 fi
5433 if test -z "$DUMPBIN"; then
5434 ac_ct_DUMPBIN=$DUMPBIN
5435 for ac_prog in dumpbin "link -dump"
5436 do
5437 # Extract the first word of "$ac_prog", so it can be a program name with args.
5438 set dummy $ac_prog; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 if test -n "$ac_ct_DUMPBIN"; then
5445 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5457 fi
5458 done
5459 done
5460 IFS=$as_save_IFS
5461
5462 fi
5463 fi
5464 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5465 if test -n "$ac_ct_DUMPBIN"; then
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5467 $as_echo "$ac_ct_DUMPBIN" >&6; }
5468 else
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5471 fi
5472
5473
5474 test -n "$ac_ct_DUMPBIN" && break
5475 done
5476
5477 if test "x$ac_ct_DUMPBIN" = x; then
5478 DUMPBIN=":"
5479 else
5480 case $cross_compiling:$ac_tool_warned in
5481 yes:)
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484 ac_tool_warned=yes ;;
5485 esac
5486 DUMPBIN=$ac_ct_DUMPBIN
5487 fi
5488 fi
5489
5490 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5491 *COFF*)
5492 DUMPBIN="$DUMPBIN -symbols"
5493 ;;
5494 *)
5495 DUMPBIN=:
5496 ;;
5497 esac
5498 fi
5499
5500 if test "$DUMPBIN" != ":"; then
5501 NM="$DUMPBIN"
5502 fi
5503 fi
5504 test -z "$NM" && NM=nm
5505
5506
5507
5508
5509
5510
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5512 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5513 if ${lt_cv_nm_interface+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 lt_cv_nm_interface="BSD nm"
5517 echo "int some_variable = 0;" > conftest.$ac_ext
5518 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5519 (eval "$ac_compile" 2>conftest.err)
5520 cat conftest.err >&5
5521 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5522 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5523 cat conftest.err >&5
5524 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5525 cat conftest.out >&5
5526 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5527 lt_cv_nm_interface="MS dumpbin"
5528 fi
5529 rm -f conftest*
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5532 $as_echo "$lt_cv_nm_interface" >&6; }
5533
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5535 $as_echo_n "checking whether ln -s works... " >&6; }
5536 LN_S=$as_ln_s
5537 if test "$LN_S" = "ln -s"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5542 $as_echo "no, using $LN_S" >&6; }
5543 fi
5544
5545 # find the maximum length of command line arguments
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5547 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5548 if ${lt_cv_sys_max_cmd_len+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 i=0
5552 teststring="ABCD"
5553
5554 case $build_os in
5555 msdosdjgpp*)
5556 # On DJGPP, this test can blow up pretty badly due to problems in libc
5557 # (any single argument exceeding 2000 bytes causes a buffer overrun
5558 # during glob expansion). Even if it were fixed, the result of this
5559 # check would be larger than it should be.
5560 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5561 ;;
5562
5563 gnu*)
5564 # Under GNU Hurd, this test is not required because there is
5565 # no limit to the length of command line arguments.
5566 # Libtool will interpret -1 as no limit whatsoever
5567 lt_cv_sys_max_cmd_len=-1;
5568 ;;
5569
5570 cygwin* | mingw* | cegcc*)
5571 # On Win9x/ME, this test blows up -- it succeeds, but takes
5572 # about 5 minutes as the teststring grows exponentially.
5573 # Worse, since 9x/ME are not pre-emptively multitasking,
5574 # you end up with a "frozen" computer, even though with patience
5575 # the test eventually succeeds (with a max line length of 256k).
5576 # Instead, let's just punt: use the minimum linelength reported by
5577 # all of the supported platforms: 8192 (on NT/2K/XP).
5578 lt_cv_sys_max_cmd_len=8192;
5579 ;;
5580
5581 mint*)
5582 # On MiNT this can take a long time and run out of memory.
5583 lt_cv_sys_max_cmd_len=8192;
5584 ;;
5585
5586 amigaos*)
5587 # On AmigaOS with pdksh, this test takes hours, literally.
5588 # So we just punt and use a minimum line length of 8192.
5589 lt_cv_sys_max_cmd_len=8192;
5590 ;;
5591
5592 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5593 # This has been around since 386BSD, at least. Likely further.
5594 if test -x /sbin/sysctl; then
5595 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5596 elif test -x /usr/sbin/sysctl; then
5597 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5598 else
5599 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5600 fi
5601 # And add a safety zone
5602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5604 ;;
5605
5606 interix*)
5607 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5608 lt_cv_sys_max_cmd_len=196608
5609 ;;
5610
5611 osf*)
5612 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5613 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5614 # nice to cause kernel panics so lets avoid the loop below.
5615 # First set a reasonable default.
5616 lt_cv_sys_max_cmd_len=16384
5617 #
5618 if test -x /sbin/sysconfig; then
5619 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5620 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5621 esac
5622 fi
5623 ;;
5624 sco3.2v5*)
5625 lt_cv_sys_max_cmd_len=102400
5626 ;;
5627 sysv5* | sco5v6* | sysv4.2uw2*)
5628 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5629 if test -n "$kargmax"; then
5630 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5631 else
5632 lt_cv_sys_max_cmd_len=32768
5633 fi
5634 ;;
5635 *)
5636 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5637 if test -n "$lt_cv_sys_max_cmd_len"; then
5638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5640 else
5641 # Make teststring a little bigger before we do anything with it.
5642 # a 1K string should be a reasonable start.
5643 for i in 1 2 3 4 5 6 7 8 ; do
5644 teststring=$teststring$teststring
5645 done
5646 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5647 # If test is not a shell built-in, we'll probably end up computing a
5648 # maximum length that is only half of the actual maximum length, but
5649 # we can't tell.
5650 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5651 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5652 test $i != 17 # 1/2 MB should be enough
5653 do
5654 i=`expr $i + 1`
5655 teststring=$teststring$teststring
5656 done
5657 # Only check the string length outside the loop.
5658 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5659 teststring=
5660 # Add a significant safety factor because C++ compilers can tack on
5661 # massive amounts of additional arguments before passing them to the
5662 # linker. It appears as though 1/2 is a usable value.
5663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5664 fi
5665 ;;
5666 esac
5667
5668 fi
5669
5670 if test -n $lt_cv_sys_max_cmd_len ; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5672 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5673 else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5675 $as_echo "none" >&6; }
5676 fi
5677 max_cmd_len=$lt_cv_sys_max_cmd_len
5678
5679
5680
5681
5682
5683
5684 : ${CP="cp -f"}
5685 : ${MV="mv -f"}
5686 : ${RM="rm -f"}
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5689 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5690 # Try some XSI features
5691 xsi_shell=no
5692 ( _lt_dummy="a/b/c"
5693 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5694 = c,a/b,, \
5695 && eval 'test $(( 1 + 1 )) -eq 2 \
5696 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5697 && xsi_shell=yes
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5699 $as_echo "$xsi_shell" >&6; }
5700
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5703 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5704 lt_shell_append=no
5705 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5706 >/dev/null 2>&1 \
5707 && lt_shell_append=yes
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5709 $as_echo "$lt_shell_append" >&6; }
5710
5711
5712 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5713 lt_unset=unset
5714 else
5715 lt_unset=false
5716 fi
5717
5718
5719
5720
5721
5722 # test EBCDIC or ASCII
5723 case `echo X|tr X '\101'` in
5724 A) # ASCII based system
5725 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5726 lt_SP2NL='tr \040 \012'
5727 lt_NL2SP='tr \015\012 \040\040'
5728 ;;
5729 *) # EBCDIC based system
5730 lt_SP2NL='tr \100 \n'
5731 lt_NL2SP='tr \r\n \100\100'
5732 ;;
5733 esac
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5744 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5745 if ${lt_cv_ld_reload_flag+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 lt_cv_ld_reload_flag='-r'
5749 fi
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5751 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5752 reload_flag=$lt_cv_ld_reload_flag
5753 case $reload_flag in
5754 "" | " "*) ;;
5755 *) reload_flag=" $reload_flag" ;;
5756 esac
5757 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5758 case $host_os in
5759 darwin*)
5760 if test "$GCC" = yes; then
5761 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5762 else
5763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5764 fi
5765 ;;
5766 esac
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776 if test -n "$ac_tool_prefix"; then
5777 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5778 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if ${ac_cv_prog_OBJDUMP+:} false; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 if test -n "$OBJDUMP"; then
5785 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5786 else
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 for as_dir in $PATH
5789 do
5790 IFS=$as_save_IFS
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 break 2
5797 fi
5798 done
5799 done
5800 IFS=$as_save_IFS
5801
5802 fi
5803 fi
5804 OBJDUMP=$ac_cv_prog_OBJDUMP
5805 if test -n "$OBJDUMP"; then
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5807 $as_echo "$OBJDUMP" >&6; }
5808 else
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810 $as_echo "no" >&6; }
5811 fi
5812
5813
5814 fi
5815 if test -z "$ac_cv_prog_OBJDUMP"; then
5816 ac_ct_OBJDUMP=$OBJDUMP
5817 # Extract the first word of "objdump", so it can be a program name with args.
5818 set dummy objdump; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 if test -n "$ac_ct_OBJDUMP"; then
5825 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5826 else
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5829 do
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 break 2
5837 fi
5838 done
5839 done
5840 IFS=$as_save_IFS
5841
5842 fi
5843 fi
5844 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5845 if test -n "$ac_ct_OBJDUMP"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5847 $as_echo "$ac_ct_OBJDUMP" >&6; }
5848 else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5851 fi
5852
5853 if test "x$ac_ct_OBJDUMP" = x; then
5854 OBJDUMP="false"
5855 else
5856 case $cross_compiling:$ac_tool_warned in
5857 yes:)
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5860 ac_tool_warned=yes ;;
5861 esac
5862 OBJDUMP=$ac_ct_OBJDUMP
5863 fi
5864 else
5865 OBJDUMP="$ac_cv_prog_OBJDUMP"
5866 fi
5867
5868 test -z "$OBJDUMP" && OBJDUMP=objdump
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5879 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5880 if ${lt_cv_deplibs_check_method+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 lt_cv_file_magic_cmd='$MAGIC_CMD'
5884 lt_cv_file_magic_test_file=
5885 lt_cv_deplibs_check_method='unknown'
5886 # Need to set the preceding variable on all platforms that support
5887 # interlibrary dependencies.
5888 # 'none' -- dependencies not supported.
5889 # `unknown' -- same as none, but documents that we really don't know.
5890 # 'pass_all' -- all dependencies passed with no checks.
5891 # 'test_compile' -- check by making test program.
5892 # 'file_magic [[regex]]' -- check by looking for files in library path
5893 # which responds to the $file_magic_cmd with a given extended regex.
5894 # If you have `file' or equivalent on your system and you're not sure
5895 # whether `pass_all' will *always* work, you probably want this one.
5896
5897 case $host_os in
5898 aix[4-9]*)
5899 lt_cv_deplibs_check_method=pass_all
5900 ;;
5901
5902 beos*)
5903 lt_cv_deplibs_check_method=pass_all
5904 ;;
5905
5906 bsdi[45]*)
5907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5908 lt_cv_file_magic_cmd='/usr/bin/file -L'
5909 lt_cv_file_magic_test_file=/shlib/libc.so
5910 ;;
5911
5912 cygwin*)
5913 # func_win32_libid is a shell function defined in ltmain.sh
5914 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5915 lt_cv_file_magic_cmd='func_win32_libid'
5916 ;;
5917
5918 mingw* | pw32*)
5919 # Base MSYS/MinGW do not provide the 'file' command needed by
5920 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5921 # unless we find 'file', for example because we are cross-compiling.
5922 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5923 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5925 lt_cv_file_magic_cmd='func_win32_libid'
5926 else
5927 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5928 lt_cv_file_magic_cmd='$OBJDUMP -f'
5929 fi
5930 ;;
5931
5932 cegcc*)
5933 # use the weaker test based on 'objdump'. See mingw*.
5934 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5935 lt_cv_file_magic_cmd='$OBJDUMP -f'
5936 ;;
5937
5938 darwin* | rhapsody*)
5939 lt_cv_deplibs_check_method=pass_all
5940 ;;
5941
5942 freebsd* | dragonfly*)
5943 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5944 case $host_cpu in
5945 i*86 )
5946 # Not sure whether the presence of OpenBSD here was a mistake.
5947 # Let's accept both of them until this is cleared up.
5948 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5949 lt_cv_file_magic_cmd=/usr/bin/file
5950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5951 ;;
5952 esac
5953 else
5954 lt_cv_deplibs_check_method=pass_all
5955 fi
5956 ;;
5957
5958 gnu*)
5959 lt_cv_deplibs_check_method=pass_all
5960 ;;
5961
5962 haiku*)
5963 lt_cv_deplibs_check_method=pass_all
5964 ;;
5965
5966 hpux10.20* | hpux11*)
5967 lt_cv_file_magic_cmd=/usr/bin/file
5968 case $host_cpu in
5969 ia64*)
5970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5971 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5972 ;;
5973 hppa*64*)
5974 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]'
5975 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5976 ;;
5977 *)
5978 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5979 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5980 ;;
5981 esac
5982 ;;
5983
5984 interix[3-9]*)
5985 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5986 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5987 ;;
5988
5989 irix5* | irix6* | nonstopux*)
5990 case $LD in
5991 *-32|*"-32 ") libmagic=32-bit;;
5992 *-n32|*"-n32 ") libmagic=N32;;
5993 *-64|*"-64 ") libmagic=64-bit;;
5994 *) libmagic=never-match;;
5995 esac
5996 lt_cv_deplibs_check_method=pass_all
5997 ;;
5998
5999 # This must be Linux ELF.
6000 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6001 lt_cv_deplibs_check_method=pass_all
6002 ;;
6003
6004 netbsd*)
6005 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6007 else
6008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6009 fi
6010 ;;
6011
6012 newos6*)
6013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6014 lt_cv_file_magic_cmd=/usr/bin/file
6015 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6016 ;;
6017
6018 *nto* | *qnx*)
6019 lt_cv_deplibs_check_method=pass_all
6020 ;;
6021
6022 openbsd*)
6023 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6025 else
6026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6027 fi
6028 ;;
6029
6030 osf3* | osf4* | osf5*)
6031 lt_cv_deplibs_check_method=pass_all
6032 ;;
6033
6034 rdos*)
6035 lt_cv_deplibs_check_method=pass_all
6036 ;;
6037
6038 solaris*)
6039 lt_cv_deplibs_check_method=pass_all
6040 ;;
6041
6042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6043 lt_cv_deplibs_check_method=pass_all
6044 ;;
6045
6046 sysv4 | sysv4.3*)
6047 case $host_vendor in
6048 motorola)
6049 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]'
6050 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6051 ;;
6052 ncr)
6053 lt_cv_deplibs_check_method=pass_all
6054 ;;
6055 sequent)
6056 lt_cv_file_magic_cmd='/bin/file'
6057 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6058 ;;
6059 sni)
6060 lt_cv_file_magic_cmd='/bin/file'
6061 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6062 lt_cv_file_magic_test_file=/lib/libc.so
6063 ;;
6064 siemens)
6065 lt_cv_deplibs_check_method=pass_all
6066 ;;
6067 pc)
6068 lt_cv_deplibs_check_method=pass_all
6069 ;;
6070 esac
6071 ;;
6072
6073 tpf*)
6074 lt_cv_deplibs_check_method=pass_all
6075 ;;
6076 vxworks*)
6077 # Assume VxWorks cross toolchains are built on Linux, possibly
6078 # as canadian for Windows hosts.
6079 lt_cv_deplibs_check_method=pass_all
6080 ;;
6081 esac
6082
6083 fi
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6085 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6086 file_magic_cmd=$lt_cv_file_magic_cmd
6087 deplibs_check_method=$lt_cv_deplibs_check_method
6088 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101 plugin_option=
6102 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6103 for plugin in $plugin_names; do
6104 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6105 if test x$plugin_so = x$plugin; then
6106 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6107 fi
6108 if test x$plugin_so != x$plugin; then
6109 plugin_option="--plugin $plugin_so"
6110 break
6111 fi
6112 done
6113
6114 if test -n "$ac_tool_prefix"; then
6115 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6116 set dummy ${ac_tool_prefix}ar; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if ${ac_cv_prog_AR+:} false; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 if test -n "$AR"; then
6123 ac_cv_prog_AR="$AR" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6132 ac_cv_prog_AR="${ac_tool_prefix}ar"
6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 break 2
6135 fi
6136 done
6137 done
6138 IFS=$as_save_IFS
6139
6140 fi
6141 fi
6142 AR=$ac_cv_prog_AR
6143 if test -n "$AR"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6145 $as_echo "$AR" >&6; }
6146 else
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6149 fi
6150
6151
6152 fi
6153 if test -z "$ac_cv_prog_AR"; then
6154 ac_ct_AR=$AR
6155 # Extract the first word of "ar", so it can be a program name with args.
6156 set dummy ar; ac_word=$2
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158 $as_echo_n "checking for $ac_word... " >&6; }
6159 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 if test -n "$ac_ct_AR"; then
6163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6164 else
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6167 do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_ac_ct_AR="ar"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176 done
6177 done
6178 IFS=$as_save_IFS
6179
6180 fi
6181 fi
6182 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6183 if test -n "$ac_ct_AR"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6185 $as_echo "$ac_ct_AR" >&6; }
6186 else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6189 fi
6190
6191 if test "x$ac_ct_AR" = x; then
6192 AR="false"
6193 else
6194 case $cross_compiling:$ac_tool_warned in
6195 yes:)
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6198 ac_tool_warned=yes ;;
6199 esac
6200 AR=$ac_ct_AR
6201 fi
6202 else
6203 AR="$ac_cv_prog_AR"
6204 fi
6205
6206 test -z "$AR" && AR=ar
6207 if test -n "$plugin_option"; then
6208 if $AR --help 2>&1 | grep -q "\--plugin"; then
6209 touch conftest.c
6210 $AR $plugin_option rc conftest.a conftest.c
6211 if test "$?" != 0; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6213 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6214 else
6215 AR="$AR $plugin_option"
6216 fi
6217 rm -f conftest.*
6218 fi
6219 fi
6220 test -z "$AR_FLAGS" && AR_FLAGS=cru
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232 if test -n "$ac_tool_prefix"; then
6233 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6234 set dummy ${ac_tool_prefix}strip; ac_word=$2
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if ${ac_cv_prog_STRIP+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 if test -n "$STRIP"; then
6241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6250 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 break 2
6253 fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6257
6258 fi
6259 fi
6260 STRIP=$ac_cv_prog_STRIP
6261 if test -n "$STRIP"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6263 $as_echo "$STRIP" >&6; }
6264 else
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 $as_echo "no" >&6; }
6267 fi
6268
6269
6270 fi
6271 if test -z "$ac_cv_prog_STRIP"; then
6272 ac_ct_STRIP=$STRIP
6273 # Extract the first word of "strip", so it can be a program name with args.
6274 set dummy strip; ac_word=$2
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276 $as_echo_n "checking for $ac_word... " >&6; }
6277 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 if test -n "$ac_ct_STRIP"; then
6281 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290 ac_cv_prog_ac_ct_STRIP="strip"
6291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 break 2
6293 fi
6294 done
6295 done
6296 IFS=$as_save_IFS
6297
6298 fi
6299 fi
6300 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6301 if test -n "$ac_ct_STRIP"; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6303 $as_echo "$ac_ct_STRIP" >&6; }
6304 else
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6307 fi
6308
6309 if test "x$ac_ct_STRIP" = x; then
6310 STRIP=":"
6311 else
6312 case $cross_compiling:$ac_tool_warned in
6313 yes:)
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6316 ac_tool_warned=yes ;;
6317 esac
6318 STRIP=$ac_ct_STRIP
6319 fi
6320 else
6321 STRIP="$ac_cv_prog_STRIP"
6322 fi
6323
6324 test -z "$STRIP" && STRIP=:
6325
6326
6327
6328
6329
6330
6331 if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_RANLIB+:} false; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 if test -n "$RANLIB"; then
6340 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 RANLIB=$ac_cv_prog_RANLIB
6360 if test -n "$RANLIB"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6362 $as_echo "$RANLIB" >&6; }
6363 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367
6368
6369 fi
6370 if test -z "$ac_cv_prog_RANLIB"; then
6371 ac_ct_RANLIB=$RANLIB
6372 # Extract the first word of "ranlib", so it can be a program name with args.
6373 set dummy ranlib; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6377 $as_echo_n "(cached) " >&6
6378 else
6379 if test -n "$ac_ct_RANLIB"; then
6380 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389 ac_cv_prog_ac_ct_RANLIB="ranlib"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6400 if test -n "$ac_ct_RANLIB"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6402 $as_echo "$ac_ct_RANLIB" >&6; }
6403 else
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407
6408 if test "x$ac_ct_RANLIB" = x; then
6409 RANLIB=":"
6410 else
6411 case $cross_compiling:$ac_tool_warned in
6412 yes:)
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415 ac_tool_warned=yes ;;
6416 esac
6417 RANLIB=$ac_ct_RANLIB
6418 fi
6419 else
6420 RANLIB="$ac_cv_prog_RANLIB"
6421 fi
6422
6423 test -z "$RANLIB" && RANLIB=:
6424 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6425 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6426 RANLIB="$RANLIB $plugin_option"
6427 fi
6428 fi
6429
6430
6431
6432
6433
6434
6435 # Determine commands to create old-style static archives.
6436 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6437 old_postinstall_cmds='chmod 644 $oldlib'
6438 old_postuninstall_cmds=
6439
6440 if test -n "$RANLIB"; then
6441 case $host_os in
6442 openbsd*)
6443 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6444 ;;
6445 *)
6446 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6447 ;;
6448 esac
6449 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6450 fi
6451
6452 case $host_os in
6453 darwin*)
6454 lock_old_archive_extraction=yes ;;
6455 *)
6456 lock_old_archive_extraction=no ;;
6457 esac
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497 # If no C compiler was specified, use CC.
6498 LTCC=${LTCC-"$CC"}
6499
6500 # If no C compiler flags were specified, use CFLAGS.
6501 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6502
6503 # Allow CC to be a program name with arguments.
6504 compiler=$CC
6505
6506
6507 # Check for command to grab the raw symbol name followed by C symbol from nm.
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6509 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6510 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513
6514 # These are sane defaults that work on at least a few old systems.
6515 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6516
6517 # Character class describing NM global symbol codes.
6518 symcode='[BCDEGRST]'
6519
6520 # Regexp to match symbols that can be accessed directly from C.
6521 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6522
6523 # Define system-specific variables.
6524 case $host_os in
6525 aix*)
6526 symcode='[BCDT]'
6527 ;;
6528 cygwin* | mingw* | pw32* | cegcc*)
6529 symcode='[ABCDGISTW]'
6530 ;;
6531 hpux*)
6532 if test "$host_cpu" = ia64; then
6533 symcode='[ABCDEGRST]'
6534 fi
6535 ;;
6536 irix* | nonstopux*)
6537 symcode='[BCDEGRST]'
6538 ;;
6539 osf*)
6540 symcode='[BCDEGQRST]'
6541 ;;
6542 solaris*)
6543 symcode='[BCDRT]'
6544 ;;
6545 sco3.2v5*)
6546 symcode='[DT]'
6547 ;;
6548 sysv4.2uw2*)
6549 symcode='[DT]'
6550 ;;
6551 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6552 symcode='[ABDT]'
6553 ;;
6554 sysv4)
6555 symcode='[DFNSTU]'
6556 ;;
6557 esac
6558
6559 # If we're using GNU nm, then use its standard symbol codes.
6560 case `$NM -V 2>&1` in
6561 *GNU* | *'with BFD'*)
6562 symcode='[ABCDGIRSTW]' ;;
6563 esac
6564
6565 # Transform an extracted symbol line into a proper C declaration.
6566 # Some systems (esp. on ia64) link data and code symbols differently,
6567 # so use this general approach.
6568 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6569
6570 # Transform an extracted symbol line into symbol name and symbol address
6571 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6572 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'"
6573
6574 # Handle CRLF in mingw tool chain
6575 opt_cr=
6576 case $build_os in
6577 mingw*)
6578 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6579 ;;
6580 esac
6581
6582 # Try without a prefix underscore, then with it.
6583 for ac_symprfx in "" "_"; do
6584
6585 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6586 symxfrm="\\1 $ac_symprfx\\2 \\2"
6587
6588 # Write the raw and C identifiers.
6589 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6590 # Fake it for dumpbin and say T for any non-static function
6591 # and D for any global variable.
6592 # Also find C++ and __fastcall symbols from MSVC++,
6593 # which start with @ or ?.
6594 lt_cv_sys_global_symbol_pipe="$AWK '"\
6595 " {last_section=section; section=\$ 3};"\
6596 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6597 " \$ 0!~/External *\|/{next};"\
6598 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6599 " {if(hide[section]) next};"\
6600 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6601 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6602 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6603 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6604 " ' prfx=^$ac_symprfx"
6605 else
6606 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6607 fi
6608
6609 # Check to see that the pipe works correctly.
6610 pipe_works=no
6611
6612 rm -f conftest*
6613 cat > conftest.$ac_ext <<_LT_EOF
6614 #ifdef __cplusplus
6615 extern "C" {
6616 #endif
6617 char nm_test_var;
6618 void nm_test_func(void);
6619 void nm_test_func(void){}
6620 #ifdef __cplusplus
6621 }
6622 #endif
6623 int main(){nm_test_var='a';nm_test_func();return(0);}
6624 _LT_EOF
6625
6626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6627 (eval $ac_compile) 2>&5
6628 ac_status=$?
6629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6630 test $ac_status = 0; }; then
6631 # Now try to grab the symbols.
6632 nlist=conftest.nm
6633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6634 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6635 ac_status=$?
6636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6637 test $ac_status = 0; } && test -s "$nlist"; then
6638 # Try sorting and uniquifying the output.
6639 if sort "$nlist" | uniq > "$nlist"T; then
6640 mv -f "$nlist"T "$nlist"
6641 else
6642 rm -f "$nlist"T
6643 fi
6644
6645 # Make sure that we snagged all the symbols we need.
6646 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6647 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6648 cat <<_LT_EOF > conftest.$ac_ext
6649 #ifdef __cplusplus
6650 extern "C" {
6651 #endif
6652
6653 _LT_EOF
6654 # Now generate the symbol file.
6655 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6656
6657 cat <<_LT_EOF >> conftest.$ac_ext
6658
6659 /* The mapping between symbol names and symbols. */
6660 const struct {
6661 const char *name;
6662 void *address;
6663 }
6664 lt__PROGRAM__LTX_preloaded_symbols[] =
6665 {
6666 { "@PROGRAM@", (void *) 0 },
6667 _LT_EOF
6668 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6669 cat <<\_LT_EOF >> conftest.$ac_ext
6670 {0, (void *) 0}
6671 };
6672
6673 /* This works around a problem in FreeBSD linker */
6674 #ifdef FREEBSD_WORKAROUND
6675 static const void *lt_preloaded_setup() {
6676 return lt__PROGRAM__LTX_preloaded_symbols;
6677 }
6678 #endif
6679
6680 #ifdef __cplusplus
6681 }
6682 #endif
6683 _LT_EOF
6684 # Now try linking the two files.
6685 mv conftest.$ac_objext conftstm.$ac_objext
6686 lt_save_LIBS="$LIBS"
6687 lt_save_CFLAGS="$CFLAGS"
6688 LIBS="conftstm.$ac_objext"
6689 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6691 (eval $ac_link) 2>&5
6692 ac_status=$?
6693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6695 pipe_works=yes
6696 fi
6697 LIBS="$lt_save_LIBS"
6698 CFLAGS="$lt_save_CFLAGS"
6699 else
6700 echo "cannot find nm_test_func in $nlist" >&5
6701 fi
6702 else
6703 echo "cannot find nm_test_var in $nlist" >&5
6704 fi
6705 else
6706 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6707 fi
6708 else
6709 echo "$progname: failed program was:" >&5
6710 cat conftest.$ac_ext >&5
6711 fi
6712 rm -rf conftest* conftst*
6713
6714 # Do not use the global_symbol_pipe unless it works.
6715 if test "$pipe_works" = yes; then
6716 break
6717 else
6718 lt_cv_sys_global_symbol_pipe=
6719 fi
6720 done
6721
6722 fi
6723
6724 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6725 lt_cv_sys_global_symbol_to_cdecl=
6726 fi
6727 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6729 $as_echo "failed" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6732 $as_echo "ok" >&6; }
6733 fi
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756 # Check whether --enable-libtool-lock was given.
6757 if test "${enable_libtool_lock+set}" = set; then :
6758 enableval=$enable_libtool_lock;
6759 fi
6760
6761 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6762
6763 # Some flags need to be propagated to the compiler or linker for good
6764 # libtool support.
6765 case $host in
6766 ia64-*-hpux*)
6767 # Find out which ABI we are using.
6768 echo 'int i;' > conftest.$ac_ext
6769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6770 (eval $ac_compile) 2>&5
6771 ac_status=$?
6772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773 test $ac_status = 0; }; then
6774 case `/usr/bin/file conftest.$ac_objext` in
6775 *ELF-32*)
6776 HPUX_IA64_MODE="32"
6777 ;;
6778 *ELF-64*)
6779 HPUX_IA64_MODE="64"
6780 ;;
6781 esac
6782 fi
6783 rm -rf conftest*
6784 ;;
6785 *-*-irix6*)
6786 # Find out which ABI we are using.
6787 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6789 (eval $ac_compile) 2>&5
6790 ac_status=$?
6791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792 test $ac_status = 0; }; then
6793 if test "$lt_cv_prog_gnu_ld" = yes; then
6794 case `/usr/bin/file conftest.$ac_objext` in
6795 *32-bit*)
6796 LD="${LD-ld} -melf32bsmip"
6797 ;;
6798 *N32*)
6799 LD="${LD-ld} -melf32bmipn32"
6800 ;;
6801 *64-bit*)
6802 LD="${LD-ld} -melf64bmip"
6803 ;;
6804 esac
6805 else
6806 case `/usr/bin/file conftest.$ac_objext` in
6807 *32-bit*)
6808 LD="${LD-ld} -32"
6809 ;;
6810 *N32*)
6811 LD="${LD-ld} -n32"
6812 ;;
6813 *64-bit*)
6814 LD="${LD-ld} -64"
6815 ;;
6816 esac
6817 fi
6818 fi
6819 rm -rf conftest*
6820 ;;
6821
6822 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6823 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6824 # Find out which ABI we are using.
6825 echo 'int i;' > conftest.$ac_ext
6826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6827 (eval $ac_compile) 2>&5
6828 ac_status=$?
6829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6830 test $ac_status = 0; }; then
6831 case `/usr/bin/file conftest.o` in
6832 *32-bit*)
6833 case $host in
6834 x86_64-*kfreebsd*-gnu)
6835 LD="${LD-ld} -m elf_i386_fbsd"
6836 ;;
6837 x86_64-*linux*)
6838 case `/usr/bin/file conftest.o` in
6839 *x86-64*)
6840 LD="${LD-ld} -m elf32_x86_64"
6841 ;;
6842 *)
6843 LD="${LD-ld} -m elf_i386"
6844 ;;
6845 esac
6846 ;;
6847 powerpc64le-*linux*)
6848 LD="${LD-ld} -m elf32lppclinux"
6849 ;;
6850 powerpc64-*linux*)
6851 LD="${LD-ld} -m elf32ppclinux"
6852 ;;
6853 s390x-*linux*)
6854 LD="${LD-ld} -m elf_s390"
6855 ;;
6856 sparc64-*linux*)
6857 LD="${LD-ld} -m elf32_sparc"
6858 ;;
6859 esac
6860 ;;
6861 *64-bit*)
6862 case $host in
6863 x86_64-*kfreebsd*-gnu)
6864 LD="${LD-ld} -m elf_x86_64_fbsd"
6865 ;;
6866 x86_64-*linux*)
6867 LD="${LD-ld} -m elf_x86_64"
6868 ;;
6869 powerpcle-*linux*)
6870 LD="${LD-ld} -m elf64lppc"
6871 ;;
6872 powerpc-*linux*)
6873 LD="${LD-ld} -m elf64ppc"
6874 ;;
6875 s390*-*linux*|s390*-*tpf*)
6876 LD="${LD-ld} -m elf64_s390"
6877 ;;
6878 sparc*-*linux*)
6879 LD="${LD-ld} -m elf64_sparc"
6880 ;;
6881 esac
6882 ;;
6883 esac
6884 fi
6885 rm -rf conftest*
6886 ;;
6887
6888 *-*-sco3.2v5*)
6889 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6890 SAVE_CFLAGS="$CFLAGS"
6891 CFLAGS="$CFLAGS -belf"
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6893 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6894 if ${lt_cv_cc_needs_belf+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 ac_ext=c
6898 ac_cpp='$CPP $CPPFLAGS'
6899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6902
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905
6906 int
6907 main ()
6908 {
6909
6910 ;
6911 return 0;
6912 }
6913 _ACEOF
6914 if ac_fn_c_try_link "$LINENO"; then :
6915 lt_cv_cc_needs_belf=yes
6916 else
6917 lt_cv_cc_needs_belf=no
6918 fi
6919 rm -f core conftest.err conftest.$ac_objext \
6920 conftest$ac_exeext conftest.$ac_ext
6921 ac_ext=c
6922 ac_cpp='$CPP $CPPFLAGS'
6923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6926
6927 fi
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6929 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6930 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6931 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6932 CFLAGS="$SAVE_CFLAGS"
6933 fi
6934 ;;
6935 sparc*-*solaris*)
6936 # Find out which ABI we are using.
6937 echo 'int i;' > conftest.$ac_ext
6938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6939 (eval $ac_compile) 2>&5
6940 ac_status=$?
6941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942 test $ac_status = 0; }; then
6943 case `/usr/bin/file conftest.o` in
6944 *64-bit*)
6945 case $lt_cv_prog_gnu_ld in
6946 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6947 *)
6948 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6949 LD="${LD-ld} -64"
6950 fi
6951 ;;
6952 esac
6953 ;;
6954 esac
6955 fi
6956 rm -rf conftest*
6957 ;;
6958 esac
6959
6960 need_locks="$enable_libtool_lock"
6961
6962
6963 case $host_os in
6964 rhapsody* | darwin*)
6965 if test -n "$ac_tool_prefix"; then
6966 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6967 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969 $as_echo_n "checking for $ac_word... " >&6; }
6970 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 if test -n "$DSYMUTIL"; then
6974 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6975 else
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991 fi
6992 fi
6993 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6994 if test -n "$DSYMUTIL"; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6996 $as_echo "$DSYMUTIL" >&6; }
6997 else
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7000 fi
7001
7002
7003 fi
7004 if test -z "$ac_cv_prog_DSYMUTIL"; then
7005 ac_ct_DSYMUTIL=$DSYMUTIL
7006 # Extract the first word of "dsymutil", so it can be a program name with args.
7007 set dummy dsymutil; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 if test -n "$ac_ct_DSYMUTIL"; then
7014 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027 done
7028 done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7034 if test -n "$ac_ct_DSYMUTIL"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7036 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041
7042 if test "x$ac_ct_DSYMUTIL" = x; then
7043 DSYMUTIL=":"
7044 else
7045 case $cross_compiling:$ac_tool_warned in
7046 yes:)
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7049 ac_tool_warned=yes ;;
7050 esac
7051 DSYMUTIL=$ac_ct_DSYMUTIL
7052 fi
7053 else
7054 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7055 fi
7056
7057 if test -n "$ac_tool_prefix"; then
7058 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7059 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if ${ac_cv_prog_NMEDIT+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 if test -n "$NMEDIT"; then
7066 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 NMEDIT=$ac_cv_prog_NMEDIT
7086 if test -n "$NMEDIT"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7088 $as_echo "$NMEDIT" >&6; }
7089 else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 fi
7093
7094
7095 fi
7096 if test -z "$ac_cv_prog_NMEDIT"; then
7097 ac_ct_NMEDIT=$NMEDIT
7098 # Extract the first word of "nmedit", so it can be a program name with args.
7099 set dummy nmedit; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 if test -n "$ac_ct_NMEDIT"; then
7106 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119 done
7120 done
7121 IFS=$as_save_IFS
7122
7123 fi
7124 fi
7125 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7126 if test -n "$ac_ct_NMEDIT"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7128 $as_echo "$ac_ct_NMEDIT" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133
7134 if test "x$ac_ct_NMEDIT" = x; then
7135 NMEDIT=":"
7136 else
7137 case $cross_compiling:$ac_tool_warned in
7138 yes:)
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141 ac_tool_warned=yes ;;
7142 esac
7143 NMEDIT=$ac_ct_NMEDIT
7144 fi
7145 else
7146 NMEDIT="$ac_cv_prog_NMEDIT"
7147 fi
7148
7149 if test -n "$ac_tool_prefix"; then
7150 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7151 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_LIPO+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 if test -n "$LIPO"; then
7158 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 LIPO=$ac_cv_prog_LIPO
7178 if test -n "$LIPO"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7180 $as_echo "$LIPO" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186
7187 fi
7188 if test -z "$ac_cv_prog_LIPO"; then
7189 ac_ct_LIPO=$LIPO
7190 # Extract the first word of "lipo", so it can be a program name with args.
7191 set dummy lipo; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 if test -n "$ac_ct_LIPO"; then
7198 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_ac_ct_LIPO="lipo"
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215 fi
7216 fi
7217 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7218 if test -n "$ac_ct_LIPO"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7220 $as_echo "$ac_ct_LIPO" >&6; }
7221 else
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7224 fi
7225
7226 if test "x$ac_ct_LIPO" = x; then
7227 LIPO=":"
7228 else
7229 case $cross_compiling:$ac_tool_warned in
7230 yes:)
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7233 ac_tool_warned=yes ;;
7234 esac
7235 LIPO=$ac_ct_LIPO
7236 fi
7237 else
7238 LIPO="$ac_cv_prog_LIPO"
7239 fi
7240
7241 if test -n "$ac_tool_prefix"; then
7242 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7243 set dummy ${ac_tool_prefix}otool; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_OTOOL+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 if test -n "$OTOOL"; then
7250 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263 done
7264 done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 OTOOL=$ac_cv_prog_OTOOL
7270 if test -n "$OTOOL"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7272 $as_echo "$OTOOL" >&6; }
7273 else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278
7279 fi
7280 if test -z "$ac_cv_prog_OTOOL"; then
7281 ac_ct_OTOOL=$OTOOL
7282 # Extract the first word of "otool", so it can be a program name with args.
7283 set dummy otool; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 if test -n "$ac_ct_OTOOL"; then
7290 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299 ac_cv_prog_ac_ct_OTOOL="otool"
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7302 fi
7303 done
7304 done
7305 IFS=$as_save_IFS
7306
7307 fi
7308 fi
7309 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7310 if test -n "$ac_ct_OTOOL"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7312 $as_echo "$ac_ct_OTOOL" >&6; }
7313 else
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 $as_echo "no" >&6; }
7316 fi
7317
7318 if test "x$ac_ct_OTOOL" = x; then
7319 OTOOL=":"
7320 else
7321 case $cross_compiling:$ac_tool_warned in
7322 yes:)
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325 ac_tool_warned=yes ;;
7326 esac
7327 OTOOL=$ac_ct_OTOOL
7328 fi
7329 else
7330 OTOOL="$ac_cv_prog_OTOOL"
7331 fi
7332
7333 if test -n "$ac_tool_prefix"; then
7334 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_OTOOL64+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$OTOOL64"; then
7342 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 OTOOL64=$ac_cv_prog_OTOOL64
7362 if test -n "$OTOOL64"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7364 $as_echo "$OTOOL64" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371 fi
7372 if test -z "$ac_cv_prog_OTOOL64"; then
7373 ac_ct_OTOOL64=$OTOOL64
7374 # Extract the first word of "otool64", so it can be a program name with args.
7375 set dummy otool64; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 if test -n "$ac_ct_OTOOL64"; then
7382 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7391 ac_cv_prog_ac_ct_OTOOL64="otool64"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 break 2
7394 fi
7395 done
7396 done
7397 IFS=$as_save_IFS
7398
7399 fi
7400 fi
7401 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7402 if test -n "$ac_ct_OTOOL64"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7404 $as_echo "$ac_ct_OTOOL64" >&6; }
7405 else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409
7410 if test "x$ac_ct_OTOOL64" = x; then
7411 OTOOL64=":"
7412 else
7413 case $cross_compiling:$ac_tool_warned in
7414 yes:)
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned=yes ;;
7418 esac
7419 OTOOL64=$ac_ct_OTOOL64
7420 fi
7421 else
7422 OTOOL64="$ac_cv_prog_OTOOL64"
7423 fi
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7452 $as_echo_n "checking for -single_module linker flag... " >&6; }
7453 if ${lt_cv_apple_cc_single_mod+:} false; then :
7454 $as_echo_n "(cached) " >&6
7455 else
7456 lt_cv_apple_cc_single_mod=no
7457 if test -z "${LT_MULTI_MODULE}"; then
7458 # By default we will add the -single_module flag. You can override
7459 # by either setting the environment variable LT_MULTI_MODULE
7460 # non-empty at configure time, or by adding -multi_module to the
7461 # link flags.
7462 rm -rf libconftest.dylib*
7463 echo "int foo(void){return 1;}" > conftest.c
7464 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7465 -dynamiclib -Wl,-single_module conftest.c" >&5
7466 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7467 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7468 _lt_result=$?
7469 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7470 lt_cv_apple_cc_single_mod=yes
7471 else
7472 cat conftest.err >&5
7473 fi
7474 rm -rf libconftest.dylib*
7475 rm -f conftest.*
7476 fi
7477 fi
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7479 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7481 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7482 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 lt_cv_ld_exported_symbols_list=no
7486 save_LDFLAGS=$LDFLAGS
7487 echo "_main" > conftest.sym
7488 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7491
7492 int
7493 main ()
7494 {
7495
7496 ;
7497 return 0;
7498 }
7499 _ACEOF
7500 if ac_fn_c_try_link "$LINENO"; then :
7501 lt_cv_ld_exported_symbols_list=yes
7502 else
7503 lt_cv_ld_exported_symbols_list=no
7504 fi
7505 rm -f core conftest.err conftest.$ac_objext \
7506 conftest$ac_exeext conftest.$ac_ext
7507 LDFLAGS="$save_LDFLAGS"
7508
7509 fi
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7511 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7513 $as_echo_n "checking for -force_load linker flag... " >&6; }
7514 if ${lt_cv_ld_force_load+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 lt_cv_ld_force_load=no
7518 cat > conftest.c << _LT_EOF
7519 int forced_loaded() { return 2;}
7520 _LT_EOF
7521 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7522 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7523 echo "$AR cru libconftest.a conftest.o" >&5
7524 $AR cru libconftest.a conftest.o 2>&5
7525 cat > conftest.c << _LT_EOF
7526 int main() { return 0;}
7527 _LT_EOF
7528 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7529 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7530 _lt_result=$?
7531 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7532 lt_cv_ld_force_load=yes
7533 else
7534 cat conftest.err >&5
7535 fi
7536 rm -f conftest.err libconftest.a conftest conftest.c
7537 rm -rf conftest.dSYM
7538
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7541 $as_echo "$lt_cv_ld_force_load" >&6; }
7542 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7543 # build without first building modern cctools / linker.
7544 case $host_cpu-$host_os in
7545 *-rhapsody* | *-darwin1.[012])
7546 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7547 *-darwin1.*)
7548 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7549 *-darwin*)
7550 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7551 # deployment target is forced to an earlier version.
7552 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7553 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7554 ;;
7555 10.[012][,.]*)
7556 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7557 ;;
7558 *)
7559 ;;
7560 esac
7561 ;;
7562 esac
7563 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7564 _lt_dar_single_mod='$single_module'
7565 fi
7566 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7567 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7568 else
7569 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7570 fi
7571 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7572 _lt_dsymutil='~$DSYMUTIL $lib || :'
7573 else
7574 _lt_dsymutil=
7575 fi
7576 ;;
7577 esac
7578
7579 for ac_header in dlfcn.h
7580 do :
7581 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7582 "
7583 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7584 cat >>confdefs.h <<_ACEOF
7585 #define HAVE_DLFCN_H 1
7586 _ACEOF
7587
7588 fi
7589
7590 done
7591
7592
7593
7594
7595
7596 # Set options
7597
7598
7599
7600 enable_dlopen=no
7601
7602
7603 enable_win32_dll=no
7604
7605
7606 # Check whether --enable-shared was given.
7607 if test "${enable_shared+set}" = set; then :
7608 enableval=$enable_shared; p=${PACKAGE-default}
7609 case $enableval in
7610 yes) enable_shared=yes ;;
7611 no) enable_shared=no ;;
7612 *)
7613 enable_shared=no
7614 # Look at the argument we got. We use all the common list separators.
7615 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7616 for pkg in $enableval; do
7617 IFS="$lt_save_ifs"
7618 if test "X$pkg" = "X$p"; then
7619 enable_shared=yes
7620 fi
7621 done
7622 IFS="$lt_save_ifs"
7623 ;;
7624 esac
7625 else
7626 enable_shared=yes
7627 fi
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637 # Check whether --enable-static was given.
7638 if test "${enable_static+set}" = set; then :
7639 enableval=$enable_static; p=${PACKAGE-default}
7640 case $enableval in
7641 yes) enable_static=yes ;;
7642 no) enable_static=no ;;
7643 *)
7644 enable_static=no
7645 # Look at the argument we got. We use all the common list separators.
7646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7647 for pkg in $enableval; do
7648 IFS="$lt_save_ifs"
7649 if test "X$pkg" = "X$p"; then
7650 enable_static=yes
7651 fi
7652 done
7653 IFS="$lt_save_ifs"
7654 ;;
7655 esac
7656 else
7657 enable_static=yes
7658 fi
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669 # Check whether --with-pic was given.
7670 if test "${with_pic+set}" = set; then :
7671 withval=$with_pic; pic_mode="$withval"
7672 else
7673 pic_mode=default
7674 fi
7675
7676
7677 test -z "$pic_mode" && pic_mode=default
7678
7679
7680
7681
7682
7683
7684
7685 # Check whether --enable-fast-install was given.
7686 if test "${enable_fast_install+set}" = set; then :
7687 enableval=$enable_fast_install; p=${PACKAGE-default}
7688 case $enableval in
7689 yes) enable_fast_install=yes ;;
7690 no) enable_fast_install=no ;;
7691 *)
7692 enable_fast_install=no
7693 # Look at the argument we got. We use all the common list separators.
7694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7695 for pkg in $enableval; do
7696 IFS="$lt_save_ifs"
7697 if test "X$pkg" = "X$p"; then
7698 enable_fast_install=yes
7699 fi
7700 done
7701 IFS="$lt_save_ifs"
7702 ;;
7703 esac
7704 else
7705 enable_fast_install=yes
7706 fi
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718 # This can be used to rebuild libtool when needed
7719 LIBTOOL_DEPS="$ltmain"
7720
7721 # Always use our own libtool.
7722 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749 test -z "$LN_S" && LN_S="ln -s"
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764 if test -n "${ZSH_VERSION+set}" ; then
7765 setopt NO_GLOB_SUBST
7766 fi
7767
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7769 $as_echo_n "checking for objdir... " >&6; }
7770 if ${lt_cv_objdir+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 rm -f .libs 2>/dev/null
7774 mkdir .libs 2>/dev/null
7775 if test -d .libs; then
7776 lt_cv_objdir=.libs
7777 else
7778 # MS-DOS does not allow filenames that begin with a dot.
7779 lt_cv_objdir=_libs
7780 fi
7781 rmdir .libs 2>/dev/null
7782 fi
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7784 $as_echo "$lt_cv_objdir" >&6; }
7785 objdir=$lt_cv_objdir
7786
7787
7788
7789
7790
7791 cat >>confdefs.h <<_ACEOF
7792 #define LT_OBJDIR "$lt_cv_objdir/"
7793 _ACEOF
7794
7795
7796
7797
7798 case $host_os in
7799 aix3*)
7800 # AIX sometimes has problems with the GCC collect2 program. For some
7801 # reason, if we set the COLLECT_NAMES environment variable, the problems
7802 # vanish in a puff of smoke.
7803 if test "X${COLLECT_NAMES+set}" != Xset; then
7804 COLLECT_NAMES=
7805 export COLLECT_NAMES
7806 fi
7807 ;;
7808 esac
7809
7810 # Global variables:
7811 ofile=libtool
7812 can_build_shared=yes
7813
7814 # All known linkers require a `.a' archive for static linking (except MSVC,
7815 # which needs '.lib').
7816 libext=a
7817
7818 with_gnu_ld="$lt_cv_prog_gnu_ld"
7819
7820 old_CC="$CC"
7821 old_CFLAGS="$CFLAGS"
7822
7823 # Set sane defaults for various variables
7824 test -z "$CC" && CC=cc
7825 test -z "$LTCC" && LTCC=$CC
7826 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7827 test -z "$LD" && LD=ld
7828 test -z "$ac_objext" && ac_objext=o
7829
7830 for cc_temp in $compiler""; do
7831 case $cc_temp in
7832 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7833 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7834 \-*) ;;
7835 *) break;;
7836 esac
7837 done
7838 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7839
7840
7841 # Only perform the check for file, if the check method requires it
7842 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7843 case $deplibs_check_method in
7844 file_magic*)
7845 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7847 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7848 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 case $MAGIC_CMD in
7852 [\\/*] | ?:[\\/]*)
7853 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7854 ;;
7855 *)
7856 lt_save_MAGIC_CMD="$MAGIC_CMD"
7857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7858 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7859 for ac_dir in $ac_dummy; do
7860 IFS="$lt_save_ifs"
7861 test -z "$ac_dir" && ac_dir=.
7862 if test -f $ac_dir/${ac_tool_prefix}file; then
7863 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7864 if test -n "$file_magic_test_file"; then
7865 case $deplibs_check_method in
7866 "file_magic "*)
7867 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7868 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7869 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7870 $EGREP "$file_magic_regex" > /dev/null; then
7871 :
7872 else
7873 cat <<_LT_EOF 1>&2
7874
7875 *** Warning: the command libtool uses to detect shared libraries,
7876 *** $file_magic_cmd, produces output that libtool cannot recognize.
7877 *** The result is that libtool may fail to recognize shared libraries
7878 *** as such. This will affect the creation of libtool libraries that
7879 *** depend on shared libraries, but programs linked with such libtool
7880 *** libraries will work regardless of this problem. Nevertheless, you
7881 *** may want to report the problem to your system manager and/or to
7882 *** bug-libtool@gnu.org
7883
7884 _LT_EOF
7885 fi ;;
7886 esac
7887 fi
7888 break
7889 fi
7890 done
7891 IFS="$lt_save_ifs"
7892 MAGIC_CMD="$lt_save_MAGIC_CMD"
7893 ;;
7894 esac
7895 fi
7896
7897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7898 if test -n "$MAGIC_CMD"; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7900 $as_echo "$MAGIC_CMD" >&6; }
7901 else
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903 $as_echo "no" >&6; }
7904 fi
7905
7906
7907
7908
7909
7910 if test -z "$lt_cv_path_MAGIC_CMD"; then
7911 if test -n "$ac_tool_prefix"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7913 $as_echo_n "checking for file... " >&6; }
7914 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7917 case $MAGIC_CMD in
7918 [\\/*] | ?:[\\/]*)
7919 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7920 ;;
7921 *)
7922 lt_save_MAGIC_CMD="$MAGIC_CMD"
7923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7924 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7925 for ac_dir in $ac_dummy; do
7926 IFS="$lt_save_ifs"
7927 test -z "$ac_dir" && ac_dir=.
7928 if test -f $ac_dir/file; then
7929 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7930 if test -n "$file_magic_test_file"; then
7931 case $deplibs_check_method in
7932 "file_magic "*)
7933 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7935 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7936 $EGREP "$file_magic_regex" > /dev/null; then
7937 :
7938 else
7939 cat <<_LT_EOF 1>&2
7940
7941 *** Warning: the command libtool uses to detect shared libraries,
7942 *** $file_magic_cmd, produces output that libtool cannot recognize.
7943 *** The result is that libtool may fail to recognize shared libraries
7944 *** as such. This will affect the creation of libtool libraries that
7945 *** depend on shared libraries, but programs linked with such libtool
7946 *** libraries will work regardless of this problem. Nevertheless, you
7947 *** may want to report the problem to your system manager and/or to
7948 *** bug-libtool@gnu.org
7949
7950 _LT_EOF
7951 fi ;;
7952 esac
7953 fi
7954 break
7955 fi
7956 done
7957 IFS="$lt_save_ifs"
7958 MAGIC_CMD="$lt_save_MAGIC_CMD"
7959 ;;
7960 esac
7961 fi
7962
7963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7964 if test -n "$MAGIC_CMD"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7966 $as_echo "$MAGIC_CMD" >&6; }
7967 else
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7970 fi
7971
7972
7973 else
7974 MAGIC_CMD=:
7975 fi
7976 fi
7977
7978 fi
7979 ;;
7980 esac
7981
7982 # Use C for the default configuration in the libtool script
7983
7984 lt_save_CC="$CC"
7985 ac_ext=c
7986 ac_cpp='$CPP $CPPFLAGS'
7987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7990
7991
7992 # Source file extension for C test sources.
7993 ac_ext=c
7994
7995 # Object file extension for compiled C test sources.
7996 objext=o
7997 objext=$objext
7998
7999 # Code to be used in simple compile tests
8000 lt_simple_compile_test_code="int some_variable = 0;"
8001
8002 # Code to be used in simple link tests
8003 lt_simple_link_test_code='int main(){return(0);}'
8004
8005
8006
8007
8008
8009
8010
8011 # If no C compiler was specified, use CC.
8012 LTCC=${LTCC-"$CC"}
8013
8014 # If no C compiler flags were specified, use CFLAGS.
8015 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8016
8017 # Allow CC to be a program name with arguments.
8018 compiler=$CC
8019
8020 # Save the default compiler, since it gets overwritten when the other
8021 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8022 compiler_DEFAULT=$CC
8023
8024 # save warnings/boilerplate of simple test code
8025 ac_outfile=conftest.$ac_objext
8026 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8027 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8028 _lt_compiler_boilerplate=`cat conftest.err`
8029 $RM conftest*
8030
8031 ac_outfile=conftest.$ac_objext
8032 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8033 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8034 _lt_linker_boilerplate=`cat conftest.err`
8035 $RM -r conftest*
8036
8037
8038 ## CAVEAT EMPTOR:
8039 ## There is no encapsulation within the following macros, do not change
8040 ## the running order or otherwise move them around unless you know exactly
8041 ## what you are doing...
8042 if test -n "$compiler"; then
8043
8044 lt_prog_compiler_no_builtin_flag=
8045
8046 if test "$GCC" = yes; then
8047 case $cc_basename in
8048 nvcc*)
8049 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8050 *)
8051 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8052 esac
8053
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8055 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8056 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 lt_cv_prog_compiler_rtti_exceptions=no
8060 ac_outfile=conftest.$ac_objext
8061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8062 lt_compiler_flag="-fno-rtti -fno-exceptions"
8063 # Insert the option either (1) after the last *FLAGS variable, or
8064 # (2) before a word containing "conftest.", or (3) at the end.
8065 # Note that $ac_compile itself does not contain backslashes and begins
8066 # with a dollar sign (not a hyphen), so the echo should work correctly.
8067 # The option is referenced via a variable to avoid confusing sed.
8068 lt_compile=`echo "$ac_compile" | $SED \
8069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8071 -e 's:$: $lt_compiler_flag:'`
8072 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8073 (eval "$lt_compile" 2>conftest.err)
8074 ac_status=$?
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 if (exit $ac_status) && test -s "$ac_outfile"; then
8078 # The compiler can only warn and ignore the option if not recognized
8079 # So say no if there are warnings other than the usual output.
8080 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8082 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8083 lt_cv_prog_compiler_rtti_exceptions=yes
8084 fi
8085 fi
8086 $RM conftest*
8087
8088 fi
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8090 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8091
8092 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8093 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8094 else
8095 :
8096 fi
8097
8098 fi
8099
8100
8101
8102
8103
8104
8105 lt_prog_compiler_wl=
8106 lt_prog_compiler_pic=
8107 lt_prog_compiler_static=
8108
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8110 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8111
8112 if test "$GCC" = yes; then
8113 lt_prog_compiler_wl='-Wl,'
8114 lt_prog_compiler_static='-static'
8115
8116 case $host_os in
8117 aix*)
8118 # All AIX code is PIC.
8119 if test "$host_cpu" = ia64; then
8120 # AIX 5 now supports IA64 processor
8121 lt_prog_compiler_static='-Bstatic'
8122 fi
8123 lt_prog_compiler_pic='-fPIC'
8124 ;;
8125
8126 amigaos*)
8127 case $host_cpu in
8128 powerpc)
8129 # see comment about AmigaOS4 .so support
8130 lt_prog_compiler_pic='-fPIC'
8131 ;;
8132 m68k)
8133 # FIXME: we need at least 68020 code to build shared libraries, but
8134 # adding the `-m68020' flag to GCC prevents building anything better,
8135 # like `-m68040'.
8136 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8137 ;;
8138 esac
8139 ;;
8140
8141 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8142 # PIC is the default for these OSes.
8143 ;;
8144
8145 mingw* | cygwin* | pw32* | os2* | cegcc*)
8146 # This hack is so that the source file can tell whether it is being
8147 # built for inclusion in a dll (and should export symbols for example).
8148 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8149 # (--disable-auto-import) libraries
8150 lt_prog_compiler_pic='-DDLL_EXPORT'
8151 ;;
8152
8153 darwin* | rhapsody*)
8154 # PIC is the default on this platform
8155 # Common symbols not allowed in MH_DYLIB files
8156 lt_prog_compiler_pic='-fno-common'
8157 ;;
8158
8159 haiku*)
8160 # PIC is the default for Haiku.
8161 # The "-static" flag exists, but is broken.
8162 lt_prog_compiler_static=
8163 ;;
8164
8165 hpux*)
8166 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8167 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8168 # sets the default TLS model and affects inlining.
8169 case $host_cpu in
8170 hppa*64*)
8171 # +Z the default
8172 ;;
8173 *)
8174 lt_prog_compiler_pic='-fPIC'
8175 ;;
8176 esac
8177 ;;
8178
8179 interix[3-9]*)
8180 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8181 # Instead, we relocate shared libraries at runtime.
8182 ;;
8183
8184 msdosdjgpp*)
8185 # Just because we use GCC doesn't mean we suddenly get shared libraries
8186 # on systems that don't support them.
8187 lt_prog_compiler_can_build_shared=no
8188 enable_shared=no
8189 ;;
8190
8191 *nto* | *qnx*)
8192 # QNX uses GNU C++, but need to define -shared option too, otherwise
8193 # it will coredump.
8194 lt_prog_compiler_pic='-fPIC -shared'
8195 ;;
8196
8197 sysv4*MP*)
8198 if test -d /usr/nec; then
8199 lt_prog_compiler_pic=-Kconform_pic
8200 fi
8201 ;;
8202
8203 *)
8204 lt_prog_compiler_pic='-fPIC'
8205 ;;
8206 esac
8207
8208 case $cc_basename in
8209 nvcc*) # Cuda Compiler Driver 2.2
8210 lt_prog_compiler_wl='-Xlinker '
8211 lt_prog_compiler_pic='-Xcompiler -fPIC'
8212 ;;
8213 esac
8214 else
8215 # PORTME Check for flag to pass linker flags through the system compiler.
8216 case $host_os in
8217 aix*)
8218 lt_prog_compiler_wl='-Wl,'
8219 if test "$host_cpu" = ia64; then
8220 # AIX 5 now supports IA64 processor
8221 lt_prog_compiler_static='-Bstatic'
8222 else
8223 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8224 fi
8225 ;;
8226
8227 mingw* | cygwin* | pw32* | os2* | cegcc*)
8228 # This hack is so that the source file can tell whether it is being
8229 # built for inclusion in a dll (and should export symbols for example).
8230 lt_prog_compiler_pic='-DDLL_EXPORT'
8231 ;;
8232
8233 hpux9* | hpux10* | hpux11*)
8234 lt_prog_compiler_wl='-Wl,'
8235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8236 # not for PA HP-UX.
8237 case $host_cpu in
8238 hppa*64*|ia64*)
8239 # +Z the default
8240 ;;
8241 *)
8242 lt_prog_compiler_pic='+Z'
8243 ;;
8244 esac
8245 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8246 lt_prog_compiler_static='${wl}-a ${wl}archive'
8247 ;;
8248
8249 irix5* | irix6* | nonstopux*)
8250 lt_prog_compiler_wl='-Wl,'
8251 # PIC (with -KPIC) is the default.
8252 lt_prog_compiler_static='-non_shared'
8253 ;;
8254
8255 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8256 case $cc_basename in
8257 # old Intel for x86_64 which still supported -KPIC.
8258 ecc*)
8259 lt_prog_compiler_wl='-Wl,'
8260 lt_prog_compiler_pic='-KPIC'
8261 lt_prog_compiler_static='-static'
8262 ;;
8263 # icc used to be incompatible with GCC.
8264 # ICC 10 doesn't accept -KPIC any more.
8265 icc* | ifort*)
8266 lt_prog_compiler_wl='-Wl,'
8267 lt_prog_compiler_pic='-fPIC'
8268 lt_prog_compiler_static='-static'
8269 ;;
8270 # Lahey Fortran 8.1.
8271 lf95*)
8272 lt_prog_compiler_wl='-Wl,'
8273 lt_prog_compiler_pic='--shared'
8274 lt_prog_compiler_static='--static'
8275 ;;
8276 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8277 # Portland Group compilers (*not* the Pentium gcc compiler,
8278 # which looks to be a dead project)
8279 lt_prog_compiler_wl='-Wl,'
8280 lt_prog_compiler_pic='-fpic'
8281 lt_prog_compiler_static='-Bstatic'
8282 ;;
8283 ccc*)
8284 lt_prog_compiler_wl='-Wl,'
8285 # All Alpha code is PIC.
8286 lt_prog_compiler_static='-non_shared'
8287 ;;
8288 xl* | bgxl* | bgf* | mpixl*)
8289 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8290 lt_prog_compiler_wl='-Wl,'
8291 lt_prog_compiler_pic='-qpic'
8292 lt_prog_compiler_static='-qstaticlink'
8293 ;;
8294 *)
8295 case `$CC -V 2>&1 | sed 5q` in
8296 *Sun\ F* | *Sun*Fortran*)
8297 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8298 lt_prog_compiler_pic='-KPIC'
8299 lt_prog_compiler_static='-Bstatic'
8300 lt_prog_compiler_wl=''
8301 ;;
8302 *Sun\ C*)
8303 # Sun C 5.9
8304 lt_prog_compiler_pic='-KPIC'
8305 lt_prog_compiler_static='-Bstatic'
8306 lt_prog_compiler_wl='-Wl,'
8307 ;;
8308 esac
8309 ;;
8310 esac
8311 ;;
8312
8313 newsos6)
8314 lt_prog_compiler_pic='-KPIC'
8315 lt_prog_compiler_static='-Bstatic'
8316 ;;
8317
8318 *nto* | *qnx*)
8319 # QNX uses GNU C++, but need to define -shared option too, otherwise
8320 # it will coredump.
8321 lt_prog_compiler_pic='-fPIC -shared'
8322 ;;
8323
8324 osf3* | osf4* | osf5*)
8325 lt_prog_compiler_wl='-Wl,'
8326 # All OSF/1 code is PIC.
8327 lt_prog_compiler_static='-non_shared'
8328 ;;
8329
8330 rdos*)
8331 lt_prog_compiler_static='-non_shared'
8332 ;;
8333
8334 solaris*)
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 case $cc_basename in
8338 f77* | f90* | f95*)
8339 lt_prog_compiler_wl='-Qoption ld ';;
8340 *)
8341 lt_prog_compiler_wl='-Wl,';;
8342 esac
8343 ;;
8344
8345 sunos4*)
8346 lt_prog_compiler_wl='-Qoption ld '
8347 lt_prog_compiler_pic='-PIC'
8348 lt_prog_compiler_static='-Bstatic'
8349 ;;
8350
8351 sysv4 | sysv4.2uw2* | sysv4.3*)
8352 lt_prog_compiler_wl='-Wl,'
8353 lt_prog_compiler_pic='-KPIC'
8354 lt_prog_compiler_static='-Bstatic'
8355 ;;
8356
8357 sysv4*MP*)
8358 if test -d /usr/nec ;then
8359 lt_prog_compiler_pic='-Kconform_pic'
8360 lt_prog_compiler_static='-Bstatic'
8361 fi
8362 ;;
8363
8364 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8365 lt_prog_compiler_wl='-Wl,'
8366 lt_prog_compiler_pic='-KPIC'
8367 lt_prog_compiler_static='-Bstatic'
8368 ;;
8369
8370 unicos*)
8371 lt_prog_compiler_wl='-Wl,'
8372 lt_prog_compiler_can_build_shared=no
8373 ;;
8374
8375 uts4*)
8376 lt_prog_compiler_pic='-pic'
8377 lt_prog_compiler_static='-Bstatic'
8378 ;;
8379
8380 *)
8381 lt_prog_compiler_can_build_shared=no
8382 ;;
8383 esac
8384 fi
8385
8386 case $host_os in
8387 # For platforms which do not support PIC, -DPIC is meaningless:
8388 *djgpp*)
8389 lt_prog_compiler_pic=
8390 ;;
8391 *)
8392 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8393 ;;
8394 esac
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8396 $as_echo "$lt_prog_compiler_pic" >&6; }
8397
8398
8399
8400
8401
8402
8403 #
8404 # Check to make sure the PIC flag actually works.
8405 #
8406 if test -n "$lt_prog_compiler_pic"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8408 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8409 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 lt_cv_prog_compiler_pic_works=no
8413 ac_outfile=conftest.$ac_objext
8414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8415 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8416 # Insert the option either (1) after the last *FLAGS variable, or
8417 # (2) before a word containing "conftest.", or (3) at the end.
8418 # Note that $ac_compile itself does not contain backslashes and begins
8419 # with a dollar sign (not a hyphen), so the echo should work correctly.
8420 # The option is referenced via a variable to avoid confusing sed.
8421 lt_compile=`echo "$ac_compile" | $SED \
8422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8424 -e 's:$: $lt_compiler_flag:'`
8425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8426 (eval "$lt_compile" 2>conftest.err)
8427 ac_status=$?
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 if (exit $ac_status) && test -s "$ac_outfile"; then
8431 # The compiler can only warn and ignore the option if not recognized
8432 # So say no if there are warnings other than the usual output.
8433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8436 lt_cv_prog_compiler_pic_works=yes
8437 fi
8438 fi
8439 $RM conftest*
8440
8441 fi
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8443 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8444
8445 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8446 case $lt_prog_compiler_pic in
8447 "" | " "*) ;;
8448 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8449 esac
8450 else
8451 lt_prog_compiler_pic=
8452 lt_prog_compiler_can_build_shared=no
8453 fi
8454
8455 fi
8456
8457
8458
8459
8460
8461
8462 #
8463 # Check to make sure the static flag actually works.
8464 #
8465 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8467 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8468 if ${lt_cv_prog_compiler_static_works+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 lt_cv_prog_compiler_static_works=no
8472 save_LDFLAGS="$LDFLAGS"
8473 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8474 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8475 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8476 # The linker can only warn and ignore the option if not recognized
8477 # So say no if there are warnings
8478 if test -s conftest.err; then
8479 # Append any errors to the config.log.
8480 cat conftest.err 1>&5
8481 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8483 if diff conftest.exp conftest.er2 >/dev/null; then
8484 lt_cv_prog_compiler_static_works=yes
8485 fi
8486 else
8487 lt_cv_prog_compiler_static_works=yes
8488 fi
8489 fi
8490 $RM -r conftest*
8491 LDFLAGS="$save_LDFLAGS"
8492
8493 fi
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8495 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8496
8497 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8498 :
8499 else
8500 lt_prog_compiler_static=
8501 fi
8502
8503
8504
8505
8506
8507
8508
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8510 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8511 if ${lt_cv_prog_compiler_c_o+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 lt_cv_prog_compiler_c_o=no
8515 $RM -r conftest 2>/dev/null
8516 mkdir conftest
8517 cd conftest
8518 mkdir out
8519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8520
8521 lt_compiler_flag="-o out/conftest2.$ac_objext"
8522 # Insert the option either (1) after the last *FLAGS variable, or
8523 # (2) before a word containing "conftest.", or (3) at the end.
8524 # Note that $ac_compile itself does not contain backslashes and begins
8525 # with a dollar sign (not a hyphen), so the echo should work correctly.
8526 lt_compile=`echo "$ac_compile" | $SED \
8527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8529 -e 's:$: $lt_compiler_flag:'`
8530 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8531 (eval "$lt_compile" 2>out/conftest.err)
8532 ac_status=$?
8533 cat out/conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8536 then
8537 # The compiler can only warn and ignore the option if not recognized
8538 # So say no if there are warnings
8539 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8540 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8541 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8542 lt_cv_prog_compiler_c_o=yes
8543 fi
8544 fi
8545 chmod u+w . 2>&5
8546 $RM conftest*
8547 # SGI C++ compiler will create directory out/ii_files/ for
8548 # template instantiation
8549 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8550 $RM out/* && rmdir out
8551 cd ..
8552 $RM -r conftest
8553 $RM conftest*
8554
8555 fi
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8557 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8558
8559
8560
8561
8562
8563
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8565 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8566 if ${lt_cv_prog_compiler_c_o+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 lt_cv_prog_compiler_c_o=no
8570 $RM -r conftest 2>/dev/null
8571 mkdir conftest
8572 cd conftest
8573 mkdir out
8574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8575
8576 lt_compiler_flag="-o out/conftest2.$ac_objext"
8577 # Insert the option either (1) after the last *FLAGS variable, or
8578 # (2) before a word containing "conftest.", or (3) at the end.
8579 # Note that $ac_compile itself does not contain backslashes and begins
8580 # with a dollar sign (not a hyphen), so the echo should work correctly.
8581 lt_compile=`echo "$ac_compile" | $SED \
8582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8584 -e 's:$: $lt_compiler_flag:'`
8585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8586 (eval "$lt_compile" 2>out/conftest.err)
8587 ac_status=$?
8588 cat out/conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8591 then
8592 # The compiler can only warn and ignore the option if not recognized
8593 # So say no if there are warnings
8594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8597 lt_cv_prog_compiler_c_o=yes
8598 fi
8599 fi
8600 chmod u+w . 2>&5
8601 $RM conftest*
8602 # SGI C++ compiler will create directory out/ii_files/ for
8603 # template instantiation
8604 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8605 $RM out/* && rmdir out
8606 cd ..
8607 $RM -r conftest
8608 $RM conftest*
8609
8610 fi
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8612 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8613
8614
8615
8616
8617 hard_links="nottested"
8618 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8619 # do not overwrite the value of need_locks provided by the user
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8621 $as_echo_n "checking if we can lock with hard links... " >&6; }
8622 hard_links=yes
8623 $RM conftest*
8624 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8625 touch conftest.a
8626 ln conftest.a conftest.b 2>&5 || hard_links=no
8627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8629 $as_echo "$hard_links" >&6; }
8630 if test "$hard_links" = no; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8632 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8633 need_locks=warn
8634 fi
8635 else
8636 need_locks=no
8637 fi
8638
8639
8640
8641
8642
8643
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8645 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8646
8647 runpath_var=
8648 allow_undefined_flag=
8649 always_export_symbols=no
8650 archive_cmds=
8651 archive_expsym_cmds=
8652 compiler_needs_object=no
8653 enable_shared_with_static_runtimes=no
8654 export_dynamic_flag_spec=
8655 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8656 hardcode_automatic=no
8657 hardcode_direct=no
8658 hardcode_direct_absolute=no
8659 hardcode_libdir_flag_spec=
8660 hardcode_libdir_flag_spec_ld=
8661 hardcode_libdir_separator=
8662 hardcode_minus_L=no
8663 hardcode_shlibpath_var=unsupported
8664 inherit_rpath=no
8665 link_all_deplibs=unknown
8666 module_cmds=
8667 module_expsym_cmds=
8668 old_archive_from_new_cmds=
8669 old_archive_from_expsyms_cmds=
8670 thread_safe_flag_spec=
8671 whole_archive_flag_spec=
8672 # include_expsyms should be a list of space-separated symbols to be *always*
8673 # included in the symbol list
8674 include_expsyms=
8675 # exclude_expsyms can be an extended regexp of symbols to exclude
8676 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8677 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8678 # as well as any symbol that contains `d'.
8679 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8680 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8681 # platforms (ab)use it in PIC code, but their linkers get confused if
8682 # the symbol is explicitly referenced. Since portable code cannot
8683 # rely on this symbol name, it's probably fine to never include it in
8684 # preloaded symbol tables.
8685 # Exclude shared library initialization/finalization symbols.
8686 extract_expsyms_cmds=
8687
8688 case $host_os in
8689 cygwin* | mingw* | pw32* | cegcc*)
8690 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8691 # When not using gcc, we currently assume that we are using
8692 # Microsoft Visual C++.
8693 if test "$GCC" != yes; then
8694 with_gnu_ld=no
8695 fi
8696 ;;
8697 interix*)
8698 # we just hope/assume this is gcc and not c89 (= MSVC++)
8699 with_gnu_ld=yes
8700 ;;
8701 openbsd*)
8702 with_gnu_ld=no
8703 ;;
8704 esac
8705
8706 ld_shlibs=yes
8707
8708 # On some targets, GNU ld is compatible enough with the native linker
8709 # that we're better off using the native interface for both.
8710 lt_use_gnu_ld_interface=no
8711 if test "$with_gnu_ld" = yes; then
8712 case $host_os in
8713 aix*)
8714 # The AIX port of GNU ld has always aspired to compatibility
8715 # with the native linker. However, as the warning in the GNU ld
8716 # block says, versions before 2.19.5* couldn't really create working
8717 # shared libraries, regardless of the interface used.
8718 case `$LD -v 2>&1` in
8719 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8720 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8721 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8722 *)
8723 lt_use_gnu_ld_interface=yes
8724 ;;
8725 esac
8726 ;;
8727 *)
8728 lt_use_gnu_ld_interface=yes
8729 ;;
8730 esac
8731 fi
8732
8733 if test "$lt_use_gnu_ld_interface" = yes; then
8734 # If archive_cmds runs LD, not CC, wlarc should be empty
8735 wlarc='${wl}'
8736
8737 # Set some defaults for GNU ld with shared library support. These
8738 # are reset later if shared libraries are not supported. Putting them
8739 # here allows them to be overridden if necessary.
8740 runpath_var=LD_RUN_PATH
8741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742 export_dynamic_flag_spec='${wl}--export-dynamic'
8743 # ancient GNU ld didn't support --whole-archive et. al.
8744 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8745 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8746 else
8747 whole_archive_flag_spec=
8748 fi
8749 supports_anon_versioning=no
8750 case `$LD -v 2>&1` in
8751 *GNU\ gold*) supports_anon_versioning=yes ;;
8752 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8753 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8754 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8755 *\ 2.11.*) ;; # other 2.11 versions
8756 *) supports_anon_versioning=yes ;;
8757 esac
8758
8759 # See if GNU ld supports shared libraries.
8760 case $host_os in
8761 aix[3-9]*)
8762 # On AIX/PPC, the GNU linker is very broken
8763 if test "$host_cpu" != ia64; then
8764 ld_shlibs=no
8765 cat <<_LT_EOF 1>&2
8766
8767 *** Warning: the GNU linker, at least up to release 2.19, is reported
8768 *** to be unable to reliably create shared libraries on AIX.
8769 *** Therefore, libtool is disabling shared libraries support. If you
8770 *** really care for shared libraries, you may want to install binutils
8771 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8772 *** You will then need to restart the configuration process.
8773
8774 _LT_EOF
8775 fi
8776 ;;
8777
8778 amigaos*)
8779 case $host_cpu in
8780 powerpc)
8781 # see comment about AmigaOS4 .so support
8782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8783 archive_expsym_cmds=''
8784 ;;
8785 m68k)
8786 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)'
8787 hardcode_libdir_flag_spec='-L$libdir'
8788 hardcode_minus_L=yes
8789 ;;
8790 esac
8791 ;;
8792
8793 beos*)
8794 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8795 allow_undefined_flag=unsupported
8796 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8797 # support --undefined. This deserves some investigation. FIXME
8798 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8799 else
8800 ld_shlibs=no
8801 fi
8802 ;;
8803
8804 cygwin* | mingw* | pw32* | cegcc*)
8805 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8806 # as there is no search path for DLLs.
8807 hardcode_libdir_flag_spec='-L$libdir'
8808 export_dynamic_flag_spec='${wl}--export-all-symbols'
8809 allow_undefined_flag=unsupported
8810 always_export_symbols=no
8811 enable_shared_with_static_runtimes=yes
8812 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8813
8814 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8816 # If the export-symbols file already is a .def file (1st line
8817 # is EXPORTS), use it as is; otherwise, prepend...
8818 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8819 cp $export_symbols $output_objdir/$soname.def;
8820 else
8821 echo EXPORTS > $output_objdir/$soname.def;
8822 cat $export_symbols >> $output_objdir/$soname.def;
8823 fi~
8824 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8825 else
8826 ld_shlibs=no
8827 fi
8828 ;;
8829
8830 haiku*)
8831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 link_all_deplibs=yes
8833 ;;
8834
8835 interix[3-9]*)
8836 hardcode_direct=no
8837 hardcode_shlibpath_var=no
8838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8839 export_dynamic_flag_spec='${wl}-E'
8840 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8841 # Instead, shared libraries are loaded at an image base (0x10000000 by
8842 # default) and relocated if they conflict, which is a slow very memory
8843 # consuming and fragmenting process. To avoid this, we pick a random,
8844 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8845 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8846 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8847 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'
8848 ;;
8849
8850 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8851 tmp_diet=no
8852 if test "$host_os" = linux-dietlibc; then
8853 case $cc_basename in
8854 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8855 esac
8856 fi
8857 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8858 && test "$tmp_diet" = no
8859 then
8860 tmp_addflag=' $pic_flag'
8861 tmp_sharedflag='-shared'
8862 case $cc_basename,$host_cpu in
8863 pgcc*) # Portland Group C compiler
8864 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'
8865 tmp_addflag=' $pic_flag'
8866 ;;
8867 pgf77* | pgf90* | pgf95* | pgfortran*)
8868 # Portland Group f77 and f90 compilers
8869 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'
8870 tmp_addflag=' $pic_flag -Mnomain' ;;
8871 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8872 tmp_addflag=' -i_dynamic' ;;
8873 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8874 tmp_addflag=' -i_dynamic -nofor_main' ;;
8875 ifc* | ifort*) # Intel Fortran compiler
8876 tmp_addflag=' -nofor_main' ;;
8877 lf95*) # Lahey Fortran 8.1
8878 whole_archive_flag_spec=
8879 tmp_sharedflag='--shared' ;;
8880 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8881 tmp_sharedflag='-qmkshrobj'
8882 tmp_addflag= ;;
8883 nvcc*) # Cuda Compiler Driver 2.2
8884 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'
8885 compiler_needs_object=yes
8886 ;;
8887 esac
8888 case `$CC -V 2>&1 | sed 5q` in
8889 *Sun\ C*) # Sun C 5.9
8890 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'
8891 compiler_needs_object=yes
8892 tmp_sharedflag='-G' ;;
8893 *Sun\ F*) # Sun Fortran 8.3
8894 tmp_sharedflag='-G' ;;
8895 esac
8896 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8897
8898 if test "x$supports_anon_versioning" = xyes; then
8899 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8900 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8901 echo "local: *; };" >> $output_objdir/$libname.ver~
8902 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8903 fi
8904
8905 case $cc_basename in
8906 xlf* | bgf* | bgxlf* | mpixlf*)
8907 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8908 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8909 hardcode_libdir_flag_spec=
8910 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8911 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8912 if test "x$supports_anon_versioning" = xyes; then
8913 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8914 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8915 echo "local: *; };" >> $output_objdir/$libname.ver~
8916 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8917 fi
8918 ;;
8919 esac
8920 else
8921 ld_shlibs=no
8922 fi
8923 ;;
8924
8925 netbsd*)
8926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8927 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8928 wlarc=
8929 else
8930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8932 fi
8933 ;;
8934
8935 solaris*)
8936 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8937 ld_shlibs=no
8938 cat <<_LT_EOF 1>&2
8939
8940 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8941 *** create shared libraries on Solaris systems. Therefore, libtool
8942 *** is disabling shared libraries support. We urge you to upgrade GNU
8943 *** binutils to release 2.9.1 or newer. Another option is to modify
8944 *** your PATH or compiler configuration so that the native linker is
8945 *** used, and then restart.
8946
8947 _LT_EOF
8948 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8951 else
8952 ld_shlibs=no
8953 fi
8954 ;;
8955
8956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8957 case `$LD -v 2>&1` in
8958 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8959 ld_shlibs=no
8960 cat <<_LT_EOF 1>&2
8961
8962 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8963 *** reliably create shared libraries on SCO systems. Therefore, libtool
8964 *** is disabling shared libraries support. We urge you to upgrade GNU
8965 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8966 *** your PATH or compiler configuration so that the native linker is
8967 *** used, and then restart.
8968
8969 _LT_EOF
8970 ;;
8971 *)
8972 # For security reasons, it is highly recommended that you always
8973 # use absolute paths for naming shared libraries, and exclude the
8974 # DT_RUNPATH tag from executables and libraries. But doing so
8975 # requires that you compile everything twice, which is a pain.
8976 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8980 else
8981 ld_shlibs=no
8982 fi
8983 ;;
8984 esac
8985 ;;
8986
8987 sunos4*)
8988 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8989 wlarc=
8990 hardcode_direct=yes
8991 hardcode_shlibpath_var=no
8992 ;;
8993
8994 *)
8995 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8998 else
8999 ld_shlibs=no
9000 fi
9001 ;;
9002 esac
9003
9004 if test "$ld_shlibs" = no; then
9005 runpath_var=
9006 hardcode_libdir_flag_spec=
9007 export_dynamic_flag_spec=
9008 whole_archive_flag_spec=
9009 fi
9010 else
9011 # PORTME fill in a description of your system's linker (not GNU ld)
9012 case $host_os in
9013 aix3*)
9014 allow_undefined_flag=unsupported
9015 always_export_symbols=yes
9016 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'
9017 # Note: this linker hardcodes the directories in LIBPATH if there
9018 # are no directories specified by -L.
9019 hardcode_minus_L=yes
9020 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9021 # Neither direct hardcoding nor static linking is supported with a
9022 # broken collect2.
9023 hardcode_direct=unsupported
9024 fi
9025 ;;
9026
9027 aix[4-9]*)
9028 if test "$host_cpu" = ia64; then
9029 # On IA64, the linker does run time linking by default, so we don't
9030 # have to do anything special.
9031 aix_use_runtimelinking=no
9032 exp_sym_flag='-Bexport'
9033 no_entry_flag=""
9034 else
9035 # If we're using GNU nm, then we don't want the "-C" option.
9036 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9037 # Also, AIX nm treats weak defined symbols like other global
9038 # defined symbols, whereas GNU nm marks them as "W".
9039 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9040 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'
9041 else
9042 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'
9043 fi
9044 aix_use_runtimelinking=no
9045
9046 # Test if we are trying to use run time linking or normal
9047 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9048 # need to do runtime linking.
9049 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9050 for ld_flag in $LDFLAGS; do
9051 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9052 aix_use_runtimelinking=yes
9053 break
9054 fi
9055 done
9056 ;;
9057 esac
9058
9059 exp_sym_flag='-bexport'
9060 no_entry_flag='-bnoentry'
9061 fi
9062
9063 # When large executables or shared objects are built, AIX ld can
9064 # have problems creating the table of contents. If linking a library
9065 # or program results in "error TOC overflow" add -mminimal-toc to
9066 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9067 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9068
9069 archive_cmds=''
9070 hardcode_direct=yes
9071 hardcode_direct_absolute=yes
9072 hardcode_libdir_separator=':'
9073 link_all_deplibs=yes
9074 file_list_spec='${wl}-f,'
9075
9076 if test "$GCC" = yes; then
9077 case $host_os in aix4.[012]|aix4.[012].*)
9078 # We only want to do this on AIX 4.2 and lower, the check
9079 # below for broken collect2 doesn't work under 4.3+
9080 collect2name=`${CC} -print-prog-name=collect2`
9081 if test -f "$collect2name" &&
9082 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9083 then
9084 # We have reworked collect2
9085 :
9086 else
9087 # We have old collect2
9088 hardcode_direct=unsupported
9089 # It fails to find uninstalled libraries when the uninstalled
9090 # path is not listed in the libpath. Setting hardcode_minus_L
9091 # to unsupported forces relinking
9092 hardcode_minus_L=yes
9093 hardcode_libdir_flag_spec='-L$libdir'
9094 hardcode_libdir_separator=
9095 fi
9096 ;;
9097 esac
9098 shared_flag='-shared'
9099 if test "$aix_use_runtimelinking" = yes; then
9100 shared_flag="$shared_flag "'${wl}-G'
9101 fi
9102 else
9103 # not using gcc
9104 if test "$host_cpu" = ia64; then
9105 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9106 # chokes on -Wl,-G. The following line is correct:
9107 shared_flag='-G'
9108 else
9109 if test "$aix_use_runtimelinking" = yes; then
9110 shared_flag='${wl}-G'
9111 else
9112 shared_flag='${wl}-bM:SRE'
9113 fi
9114 fi
9115 fi
9116
9117 export_dynamic_flag_spec='${wl}-bexpall'
9118 # It seems that -bexpall does not export symbols beginning with
9119 # underscore (_), so it is better to generate a list of symbols to export.
9120 always_export_symbols=yes
9121 if test "$aix_use_runtimelinking" = yes; then
9122 # Warning - without using the other runtime loading flags (-brtl),
9123 # -berok will link without error, but may produce a broken library.
9124 allow_undefined_flag='-berok'
9125 # Determine the default libpath from the value encoded in an
9126 # empty executable.
9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9129
9130 int
9131 main ()
9132 {
9133
9134 ;
9135 return 0;
9136 }
9137 _ACEOF
9138 if ac_fn_c_try_link "$LINENO"; then :
9139
9140 lt_aix_libpath_sed='
9141 /Import File Strings/,/^$/ {
9142 /^0/ {
9143 s/^0 *\(.*\)$/\1/
9144 p
9145 }
9146 }'
9147 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9148 # Check for a 64-bit object if we didn't find anything.
9149 if test -z "$aix_libpath"; then
9150 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9151 fi
9152 fi
9153 rm -f core conftest.err conftest.$ac_objext \
9154 conftest$ac_exeext conftest.$ac_ext
9155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9156
9157 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9158 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"
9159 else
9160 if test "$host_cpu" = ia64; then
9161 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9162 allow_undefined_flag="-z nodefs"
9163 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"
9164 else
9165 # Determine the default libpath from the value encoded in an
9166 # empty executable.
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169
9170 int
9171 main ()
9172 {
9173
9174 ;
9175 return 0;
9176 }
9177 _ACEOF
9178 if ac_fn_c_try_link "$LINENO"; then :
9179
9180 lt_aix_libpath_sed='
9181 /Import File Strings/,/^$/ {
9182 /^0/ {
9183 s/^0 *\(.*\)$/\1/
9184 p
9185 }
9186 }'
9187 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9188 # Check for a 64-bit object if we didn't find anything.
9189 if test -z "$aix_libpath"; then
9190 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9191 fi
9192 fi
9193 rm -f core conftest.err conftest.$ac_objext \
9194 conftest$ac_exeext conftest.$ac_ext
9195 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9196
9197 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9198 # Warning - without using the other run time loading flags,
9199 # -berok will link without error, but may produce a broken library.
9200 no_undefined_flag=' ${wl}-bernotok'
9201 allow_undefined_flag=' ${wl}-berok'
9202 if test "$with_gnu_ld" = yes; then
9203 # We only use this code for GNU lds that support --whole-archive.
9204 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9205 else
9206 # Exported symbols can be pulled into shared objects from archives
9207 whole_archive_flag_spec='$convenience'
9208 fi
9209 archive_cmds_need_lc=yes
9210 # This is similar to how AIX traditionally builds its shared libraries.
9211 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'
9212 fi
9213 fi
9214 ;;
9215
9216 amigaos*)
9217 case $host_cpu in
9218 powerpc)
9219 # see comment about AmigaOS4 .so support
9220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9221 archive_expsym_cmds=''
9222 ;;
9223 m68k)
9224 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)'
9225 hardcode_libdir_flag_spec='-L$libdir'
9226 hardcode_minus_L=yes
9227 ;;
9228 esac
9229 ;;
9230
9231 bsdi[45]*)
9232 export_dynamic_flag_spec=-rdynamic
9233 ;;
9234
9235 cygwin* | mingw* | pw32* | cegcc*)
9236 # When not using gcc, we currently assume that we are using
9237 # Microsoft Visual C++.
9238 # hardcode_libdir_flag_spec is actually meaningless, as there is
9239 # no search path for DLLs.
9240 hardcode_libdir_flag_spec=' '
9241 allow_undefined_flag=unsupported
9242 # Tell ltmain to make .lib files, not .a files.
9243 libext=lib
9244 # Tell ltmain to make .dll files, not .so files.
9245 shrext_cmds=".dll"
9246 # FIXME: Setting linknames here is a bad hack.
9247 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9248 # The linker will automatically build a .lib file if we build a DLL.
9249 old_archive_from_new_cmds='true'
9250 # FIXME: Should let the user specify the lib program.
9251 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9252 fix_srcfile_path='`cygpath -w "$srcfile"`'
9253 enable_shared_with_static_runtimes=yes
9254 ;;
9255
9256 darwin* | rhapsody*)
9257
9258
9259 archive_cmds_need_lc=no
9260 hardcode_direct=no
9261 hardcode_automatic=yes
9262 hardcode_shlibpath_var=unsupported
9263 if test "$lt_cv_ld_force_load" = "yes"; then
9264 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\"`'
9265 else
9266 whole_archive_flag_spec=''
9267 fi
9268 link_all_deplibs=yes
9269 allow_undefined_flag="$_lt_dar_allow_undefined"
9270 case $cc_basename in
9271 ifort*) _lt_dar_can_shared=yes ;;
9272 *) _lt_dar_can_shared=$GCC ;;
9273 esac
9274 if test "$_lt_dar_can_shared" = "yes"; then
9275 output_verbose_link_cmd=func_echo_all
9276 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9277 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9278 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}"
9279 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}"
9280
9281 else
9282 ld_shlibs=no
9283 fi
9284
9285 ;;
9286
9287 dgux*)
9288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9289 hardcode_libdir_flag_spec='-L$libdir'
9290 hardcode_shlibpath_var=no
9291 ;;
9292
9293 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9294 # support. Future versions do this automatically, but an explicit c++rt0.o
9295 # does not break anything, and helps significantly (at the cost of a little
9296 # extra space).
9297 freebsd2.2*)
9298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9299 hardcode_libdir_flag_spec='-R$libdir'
9300 hardcode_direct=yes
9301 hardcode_shlibpath_var=no
9302 ;;
9303
9304 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9305 freebsd2.*)
9306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9307 hardcode_direct=yes
9308 hardcode_minus_L=yes
9309 hardcode_shlibpath_var=no
9310 ;;
9311
9312 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9313 freebsd* | dragonfly*)
9314 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9315 hardcode_libdir_flag_spec='-R$libdir'
9316 hardcode_direct=yes
9317 hardcode_shlibpath_var=no
9318 ;;
9319
9320 hpux9*)
9321 if test "$GCC" = yes; then
9322 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'
9323 else
9324 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'
9325 fi
9326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9327 hardcode_libdir_separator=:
9328 hardcode_direct=yes
9329
9330 # hardcode_minus_L: Not really in the search PATH,
9331 # but as the default location of the library.
9332 hardcode_minus_L=yes
9333 export_dynamic_flag_spec='${wl}-E'
9334 ;;
9335
9336 hpux10*)
9337 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9338 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9339 else
9340 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9341 fi
9342 if test "$with_gnu_ld" = no; then
9343 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9344 hardcode_libdir_flag_spec_ld='+b $libdir'
9345 hardcode_libdir_separator=:
9346 hardcode_direct=yes
9347 hardcode_direct_absolute=yes
9348 export_dynamic_flag_spec='${wl}-E'
9349 # hardcode_minus_L: Not really in the search PATH,
9350 # but as the default location of the library.
9351 hardcode_minus_L=yes
9352 fi
9353 ;;
9354
9355 hpux11*)
9356 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9357 case $host_cpu in
9358 hppa*64*)
9359 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9360 ;;
9361 ia64*)
9362 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9363 ;;
9364 *)
9365 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9366 ;;
9367 esac
9368 else
9369 case $host_cpu in
9370 hppa*64*)
9371 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9372 ;;
9373 ia64*)
9374 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9375 ;;
9376 *)
9377
9378 # Older versions of the 11.00 compiler do not understand -b yet
9379 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9381 $as_echo_n "checking if $CC understands -b... " >&6; }
9382 if ${lt_cv_prog_compiler__b+:} false; then :
9383 $as_echo_n "(cached) " >&6
9384 else
9385 lt_cv_prog_compiler__b=no
9386 save_LDFLAGS="$LDFLAGS"
9387 LDFLAGS="$LDFLAGS -b"
9388 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9389 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9390 # The linker can only warn and ignore the option if not recognized
9391 # So say no if there are warnings
9392 if test -s conftest.err; then
9393 # Append any errors to the config.log.
9394 cat conftest.err 1>&5
9395 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9397 if diff conftest.exp conftest.er2 >/dev/null; then
9398 lt_cv_prog_compiler__b=yes
9399 fi
9400 else
9401 lt_cv_prog_compiler__b=yes
9402 fi
9403 fi
9404 $RM -r conftest*
9405 LDFLAGS="$save_LDFLAGS"
9406
9407 fi
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9409 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9410
9411 if test x"$lt_cv_prog_compiler__b" = xyes; then
9412 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9413 else
9414 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9415 fi
9416
9417 ;;
9418 esac
9419 fi
9420 if test "$with_gnu_ld" = no; then
9421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9422 hardcode_libdir_separator=:
9423
9424 case $host_cpu in
9425 hppa*64*|ia64*)
9426 hardcode_direct=no
9427 hardcode_shlibpath_var=no
9428 ;;
9429 *)
9430 hardcode_direct=yes
9431 hardcode_direct_absolute=yes
9432 export_dynamic_flag_spec='${wl}-E'
9433
9434 # hardcode_minus_L: Not really in the search PATH,
9435 # but as the default location of the library.
9436 hardcode_minus_L=yes
9437 ;;
9438 esac
9439 fi
9440 ;;
9441
9442 irix5* | irix6* | nonstopux*)
9443 if test "$GCC" = yes; then
9444 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'
9445 # Try to use the -exported_symbol ld option, if it does not
9446 # work, assume that -exports_file does not work either and
9447 # implicitly export all symbols.
9448 save_LDFLAGS="$LDFLAGS"
9449 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452 int foo(void) {}
9453 _ACEOF
9454 if ac_fn_c_try_link "$LINENO"; then :
9455 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'
9456
9457 fi
9458 rm -f core conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9460 LDFLAGS="$save_LDFLAGS"
9461 else
9462 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'
9463 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'
9464 fi
9465 archive_cmds_need_lc='no'
9466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9467 hardcode_libdir_separator=:
9468 inherit_rpath=yes
9469 link_all_deplibs=yes
9470 ;;
9471
9472 netbsd*)
9473 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9475 else
9476 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9477 fi
9478 hardcode_libdir_flag_spec='-R$libdir'
9479 hardcode_direct=yes
9480 hardcode_shlibpath_var=no
9481 ;;
9482
9483 newsos6)
9484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485 hardcode_direct=yes
9486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9487 hardcode_libdir_separator=:
9488 hardcode_shlibpath_var=no
9489 ;;
9490
9491 *nto* | *qnx*)
9492 ;;
9493
9494 openbsd*)
9495 if test -f /usr/libexec/ld.so; then
9496 hardcode_direct=yes
9497 hardcode_shlibpath_var=no
9498 hardcode_direct_absolute=yes
9499 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9500 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9501 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9502 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9503 export_dynamic_flag_spec='${wl}-E'
9504 else
9505 case $host_os in
9506 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9508 hardcode_libdir_flag_spec='-R$libdir'
9509 ;;
9510 *)
9511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9512 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9513 ;;
9514 esac
9515 fi
9516 else
9517 ld_shlibs=no
9518 fi
9519 ;;
9520
9521 os2*)
9522 hardcode_libdir_flag_spec='-L$libdir'
9523 hardcode_minus_L=yes
9524 allow_undefined_flag=unsupported
9525 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'
9526 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9527 ;;
9528
9529 osf3*)
9530 if test "$GCC" = yes; then
9531 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9532 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'
9533 else
9534 allow_undefined_flag=' -expect_unresolved \*'
9535 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'
9536 fi
9537 archive_cmds_need_lc='no'
9538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9539 hardcode_libdir_separator=:
9540 ;;
9541
9542 osf4* | osf5*) # as osf3* with the addition of -msym flag
9543 if test "$GCC" = yes; then
9544 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9545 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'
9546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547 else
9548 allow_undefined_flag=' -expect_unresolved \*'
9549 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'
9550 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~
9551 $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'
9552
9553 # Both c and cxx compiler support -rpath directly
9554 hardcode_libdir_flag_spec='-rpath $libdir'
9555 fi
9556 archive_cmds_need_lc='no'
9557 hardcode_libdir_separator=:
9558 ;;
9559
9560 solaris*)
9561 no_undefined_flag=' -z defs'
9562 if test "$GCC" = yes; then
9563 wlarc='${wl}'
9564 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9565 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9566 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9567 else
9568 case `$CC -V 2>&1` in
9569 *"Compilers 5.0"*)
9570 wlarc=''
9571 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9572 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9573 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9574 ;;
9575 *)
9576 wlarc='${wl}'
9577 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9578 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9579 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9580 ;;
9581 esac
9582 fi
9583 hardcode_libdir_flag_spec='-R$libdir'
9584 hardcode_shlibpath_var=no
9585 case $host_os in
9586 solaris2.[0-5] | solaris2.[0-5].*) ;;
9587 *)
9588 # The compiler driver will combine and reorder linker options,
9589 # but understands `-z linker_flag'. GCC discards it without `$wl',
9590 # but is careful enough not to reorder.
9591 # Supported since Solaris 2.6 (maybe 2.5.1?)
9592 if test "$GCC" = yes; then
9593 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9594 else
9595 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9596 fi
9597 ;;
9598 esac
9599 link_all_deplibs=yes
9600 ;;
9601
9602 sunos4*)
9603 if test "x$host_vendor" = xsequent; then
9604 # Use $CC to link under sequent, because it throws in some extra .o
9605 # files that make .init and .fini sections work.
9606 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9607 else
9608 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9609 fi
9610 hardcode_libdir_flag_spec='-L$libdir'
9611 hardcode_direct=yes
9612 hardcode_minus_L=yes
9613 hardcode_shlibpath_var=no
9614 ;;
9615
9616 sysv4)
9617 case $host_vendor in
9618 sni)
9619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9620 hardcode_direct=yes # is this really true???
9621 ;;
9622 siemens)
9623 ## LD is ld it makes a PLAMLIB
9624 ## CC just makes a GrossModule.
9625 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9626 reload_cmds='$CC -r -o $output$reload_objs'
9627 hardcode_direct=no
9628 ;;
9629 motorola)
9630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9632 ;;
9633 esac
9634 runpath_var='LD_RUN_PATH'
9635 hardcode_shlibpath_var=no
9636 ;;
9637
9638 sysv4.3*)
9639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9640 hardcode_shlibpath_var=no
9641 export_dynamic_flag_spec='-Bexport'
9642 ;;
9643
9644 sysv4*MP*)
9645 if test -d /usr/nec; then
9646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9647 hardcode_shlibpath_var=no
9648 runpath_var=LD_RUN_PATH
9649 hardcode_runpath_var=yes
9650 ld_shlibs=yes
9651 fi
9652 ;;
9653
9654 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9655 no_undefined_flag='${wl}-z,text'
9656 archive_cmds_need_lc=no
9657 hardcode_shlibpath_var=no
9658 runpath_var='LD_RUN_PATH'
9659
9660 if test "$GCC" = yes; then
9661 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9662 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9663 else
9664 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9665 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9666 fi
9667 ;;
9668
9669 sysv5* | sco3.2v5* | sco5v6*)
9670 # Note: We can NOT use -z defs as we might desire, because we do not
9671 # link with -lc, and that would cause any symbols used from libc to
9672 # always be unresolved, which means just about no library would
9673 # ever link correctly. If we're not using GNU ld we use -z text
9674 # though, which does catch some bad symbols but isn't as heavy-handed
9675 # as -z defs.
9676 no_undefined_flag='${wl}-z,text'
9677 allow_undefined_flag='${wl}-z,nodefs'
9678 archive_cmds_need_lc=no
9679 hardcode_shlibpath_var=no
9680 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9681 hardcode_libdir_separator=':'
9682 link_all_deplibs=yes
9683 export_dynamic_flag_spec='${wl}-Bexport'
9684 runpath_var='LD_RUN_PATH'
9685
9686 if test "$GCC" = yes; then
9687 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9688 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9689 else
9690 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9691 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 fi
9693 ;;
9694
9695 uts4*)
9696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_libdir_flag_spec='-L$libdir'
9698 hardcode_shlibpath_var=no
9699 ;;
9700
9701 *)
9702 ld_shlibs=no
9703 ;;
9704 esac
9705
9706 if test x$host_vendor = xsni; then
9707 case $host in
9708 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9709 export_dynamic_flag_spec='${wl}-Blargedynsym'
9710 ;;
9711 esac
9712 fi
9713 fi
9714
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9716 $as_echo "$ld_shlibs" >&6; }
9717 test "$ld_shlibs" = no && can_build_shared=no
9718
9719 with_gnu_ld=$with_gnu_ld
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735 #
9736 # Do we need to explicitly link libc?
9737 #
9738 case "x$archive_cmds_need_lc" in
9739 x|xyes)
9740 # Assume -lc should be added
9741 archive_cmds_need_lc=yes
9742
9743 if test "$enable_shared" = yes && test "$GCC" = yes; then
9744 case $archive_cmds in
9745 *'~'*)
9746 # FIXME: we may have to deal with multi-command sequences.
9747 ;;
9748 '$CC '*)
9749 # Test whether the compiler implicitly links with -lc since on some
9750 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9751 # to ld, don't add -lc before -lgcc.
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9753 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9754 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 $RM conftest*
9758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9759
9760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9761 (eval $ac_compile) 2>&5
9762 ac_status=$?
9763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9764 test $ac_status = 0; } 2>conftest.err; then
9765 soname=conftest
9766 lib=conftest
9767 libobjs=conftest.$ac_objext
9768 deplibs=
9769 wl=$lt_prog_compiler_wl
9770 pic_flag=$lt_prog_compiler_pic
9771 compiler_flags=-v
9772 linker_flags=-v
9773 verstring=
9774 output_objdir=.
9775 libname=conftest
9776 lt_save_allow_undefined_flag=$allow_undefined_flag
9777 allow_undefined_flag=
9778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9779 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9780 ac_status=$?
9781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9782 test $ac_status = 0; }
9783 then
9784 lt_cv_archive_cmds_need_lc=no
9785 else
9786 lt_cv_archive_cmds_need_lc=yes
9787 fi
9788 allow_undefined_flag=$lt_save_allow_undefined_flag
9789 else
9790 cat conftest.err 1>&5
9791 fi
9792 $RM conftest*
9793
9794 fi
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9796 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9797 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9798 ;;
9799 esac
9800 fi
9801 ;;
9802 esac
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9961 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9962
9963 if test "$GCC" = yes; then
9964 case $host_os in
9965 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9966 *) lt_awk_arg="/^libraries:/" ;;
9967 esac
9968 case $host_os in
9969 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9970 *) lt_sed_strip_eq="s,=/,/,g" ;;
9971 esac
9972 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9973 case $lt_search_path_spec in
9974 *\;*)
9975 # if the path contains ";" then we assume it to be the separator
9976 # otherwise default to the standard path separator (i.e. ":") - it is
9977 # assumed that no part of a normal pathname contains ";" but that should
9978 # okay in the real world where ";" in dirpaths is itself problematic.
9979 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9980 ;;
9981 *)
9982 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9983 ;;
9984 esac
9985 # Ok, now we have the path, separated by spaces, we can step through it
9986 # and add multilib dir if necessary.
9987 lt_tmp_lt_search_path_spec=
9988 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9989 for lt_sys_path in $lt_search_path_spec; do
9990 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9991 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9992 else
9993 test -d "$lt_sys_path" && \
9994 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9995 fi
9996 done
9997 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9998 BEGIN {RS=" "; FS="/|\n";} {
9999 lt_foo="";
10000 lt_count=0;
10001 for (lt_i = NF; lt_i > 0; lt_i--) {
10002 if ($lt_i != "" && $lt_i != ".") {
10003 if ($lt_i == "..") {
10004 lt_count++;
10005 } else {
10006 if (lt_count == 0) {
10007 lt_foo="/" $lt_i lt_foo;
10008 } else {
10009 lt_count--;
10010 }
10011 }
10012 }
10013 }
10014 if (lt_foo != "") { lt_freq[lt_foo]++; }
10015 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10016 }'`
10017 # AWK program above erroneously prepends '/' to C:/dos/paths
10018 # for these hosts.
10019 case $host_os in
10020 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10021 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10022 esac
10023 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10024 else
10025 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10026 fi
10027 library_names_spec=
10028 libname_spec='lib$name'
10029 soname_spec=
10030 shrext_cmds=".so"
10031 postinstall_cmds=
10032 postuninstall_cmds=
10033 finish_cmds=
10034 finish_eval=
10035 shlibpath_var=
10036 shlibpath_overrides_runpath=unknown
10037 version_type=none
10038 dynamic_linker="$host_os ld.so"
10039 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10040 need_lib_prefix=unknown
10041 hardcode_into_libs=no
10042
10043 # when you set need_version to no, make sure it does not cause -set_version
10044 # flags to be left without arguments
10045 need_version=unknown
10046
10047 case $host_os in
10048 aix3*)
10049 version_type=linux
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10051 shlibpath_var=LIBPATH
10052
10053 # AIX 3 has no versioning support, so we append a major version to the name.
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 ;;
10056
10057 aix[4-9]*)
10058 version_type=linux
10059 need_lib_prefix=no
10060 need_version=no
10061 hardcode_into_libs=yes
10062 if test "$host_cpu" = ia64; then
10063 # AIX 5 supports IA64
10064 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10065 shlibpath_var=LD_LIBRARY_PATH
10066 else
10067 # With GCC up to 2.95.x, collect2 would create an import file
10068 # for dependence libraries. The import file would start with
10069 # the line `#! .'. This would cause the generated library to
10070 # depend on `.', always an invalid library. This was fixed in
10071 # development snapshots of GCC prior to 3.0.
10072 case $host_os in
10073 aix4 | aix4.[01] | aix4.[01].*)
10074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10075 echo ' yes '
10076 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10077 :
10078 else
10079 can_build_shared=no
10080 fi
10081 ;;
10082 esac
10083 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10084 # soname into executable. Probably we can add versioning support to
10085 # collect2, so additional links can be useful in future.
10086 if test "$aix_use_runtimelinking" = yes; then
10087 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10088 # instead of lib<name>.a to let people know that these are not
10089 # typical AIX shared libraries.
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091 else
10092 # We preserve .a as extension for shared libraries through AIX4.2
10093 # and later when we are not doing run time linking.
10094 library_names_spec='${libname}${release}.a $libname.a'
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 fi
10097 shlibpath_var=LIBPATH
10098 fi
10099 ;;
10100
10101 amigaos*)
10102 case $host_cpu in
10103 powerpc)
10104 # Since July 2007 AmigaOS4 officially supports .so libraries.
10105 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 ;;
10108 m68k)
10109 library_names_spec='$libname.ixlibrary $libname.a'
10110 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10111 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'
10112 ;;
10113 esac
10114 ;;
10115
10116 beos*)
10117 library_names_spec='${libname}${shared_ext}'
10118 dynamic_linker="$host_os ld.so"
10119 shlibpath_var=LIBRARY_PATH
10120 ;;
10121
10122 bsdi[45]*)
10123 version_type=linux
10124 need_version=no
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10128 shlibpath_var=LD_LIBRARY_PATH
10129 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10130 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10131 # the default ld.so.conf also contains /usr/contrib/lib and
10132 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10133 # libtool to hard-code these into programs
10134 ;;
10135
10136 cygwin* | mingw* | pw32* | cegcc*)
10137 version_type=windows
10138 shrext_cmds=".dll"
10139 need_version=no
10140 need_lib_prefix=no
10141
10142 case $GCC,$host_os in
10143 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10144 library_names_spec='$libname.dll.a'
10145 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10146 postinstall_cmds='base_file=`basename \${file}`~
10147 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10148 dldir=$destdir/`dirname \$dlpath`~
10149 test -d \$dldir || mkdir -p \$dldir~
10150 $install_prog $dir/$dlname \$dldir/$dlname~
10151 chmod a+x \$dldir/$dlname~
10152 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10153 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10154 fi'
10155 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10156 dlpath=$dir/\$dldll~
10157 $RM \$dlpath'
10158 shlibpath_overrides_runpath=yes
10159
10160 case $host_os in
10161 cygwin*)
10162 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10163 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10164
10165 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10166 ;;
10167 mingw* | cegcc*)
10168 # MinGW DLLs use traditional 'lib' prefix
10169 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10170 ;;
10171 pw32*)
10172 # pw32 DLLs use 'pw' prefix rather than 'lib'
10173 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10174 ;;
10175 esac
10176 ;;
10177
10178 *)
10179 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10180 ;;
10181 esac
10182 dynamic_linker='Win32 ld.exe'
10183 # FIXME: first we should search . and the directory the executable is in
10184 shlibpath_var=PATH
10185 ;;
10186
10187 darwin* | rhapsody*)
10188 dynamic_linker="$host_os dyld"
10189 version_type=darwin
10190 need_lib_prefix=no
10191 need_version=no
10192 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10193 soname_spec='${libname}${release}${major}$shared_ext'
10194 shlibpath_overrides_runpath=yes
10195 shlibpath_var=DYLD_LIBRARY_PATH
10196 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10197
10198 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10199 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10200 ;;
10201
10202 dgux*)
10203 version_type=linux
10204 need_lib_prefix=no
10205 need_version=no
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10207 soname_spec='${libname}${release}${shared_ext}$major'
10208 shlibpath_var=LD_LIBRARY_PATH
10209 ;;
10210
10211 freebsd* | dragonfly*)
10212 # DragonFly does not have aout. When/if they implement a new
10213 # versioning mechanism, adjust this.
10214 if test -x /usr/bin/objformat; then
10215 objformat=`/usr/bin/objformat`
10216 else
10217 case $host_os in
10218 freebsd[23].*) objformat=aout ;;
10219 *) objformat=elf ;;
10220 esac
10221 fi
10222 version_type=freebsd-$objformat
10223 case $version_type in
10224 freebsd-elf*)
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10226 need_version=no
10227 need_lib_prefix=no
10228 ;;
10229 freebsd-*)
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10231 need_version=yes
10232 ;;
10233 esac
10234 shlibpath_var=LD_LIBRARY_PATH
10235 case $host_os in
10236 freebsd2.*)
10237 shlibpath_overrides_runpath=yes
10238 ;;
10239 freebsd3.[01]* | freebsdelf3.[01]*)
10240 shlibpath_overrides_runpath=yes
10241 hardcode_into_libs=yes
10242 ;;
10243 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10244 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10245 shlibpath_overrides_runpath=no
10246 hardcode_into_libs=yes
10247 ;;
10248 *) # from 4.6 on, and DragonFly
10249 shlibpath_overrides_runpath=yes
10250 hardcode_into_libs=yes
10251 ;;
10252 esac
10253 ;;
10254
10255 haiku*)
10256 version_type=linux
10257 need_lib_prefix=no
10258 need_version=no
10259 dynamic_linker="$host_os runtime_loader"
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 shlibpath_var=LIBRARY_PATH
10263 shlibpath_overrides_runpath=yes
10264 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10265 hardcode_into_libs=yes
10266 ;;
10267
10268 hpux9* | hpux10* | hpux11*)
10269 # Give a soname corresponding to the major version so that dld.sl refuses to
10270 # link against other versions.
10271 version_type=sunos
10272 need_lib_prefix=no
10273 need_version=no
10274 case $host_cpu in
10275 ia64*)
10276 shrext_cmds='.so'
10277 hardcode_into_libs=yes
10278 dynamic_linker="$host_os dld.so"
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 if test "X$HPUX_IA64_MODE" = X32; then
10284 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10285 else
10286 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10287 fi
10288 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10289 ;;
10290 hppa*64*)
10291 shrext_cmds='.sl'
10292 hardcode_into_libs=yes
10293 dynamic_linker="$host_os dld.sl"
10294 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10300 ;;
10301 *)
10302 shrext_cmds='.sl'
10303 dynamic_linker="$host_os dld.sl"
10304 shlibpath_var=SHLIB_PATH
10305 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 ;;
10309 esac
10310 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10311 postinstall_cmds='chmod 555 $lib'
10312 # or fails outright, so override atomically:
10313 install_override_mode=555
10314 ;;
10315
10316 interix[3-9]*)
10317 version_type=linux
10318 need_lib_prefix=no
10319 need_version=no
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10321 soname_spec='${libname}${release}${shared_ext}$major'
10322 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=no
10325 hardcode_into_libs=yes
10326 ;;
10327
10328 irix5* | irix6* | nonstopux*)
10329 case $host_os in
10330 nonstopux*) version_type=nonstopux ;;
10331 *)
10332 if test "$lt_cv_prog_gnu_ld" = yes; then
10333 version_type=linux
10334 else
10335 version_type=irix
10336 fi ;;
10337 esac
10338 need_lib_prefix=no
10339 need_version=no
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10342 case $host_os in
10343 irix5* | nonstopux*)
10344 libsuff= shlibsuff=
10345 ;;
10346 *)
10347 case $LD in # libtool.m4 will add one of these switches to LD
10348 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10349 libsuff= shlibsuff= libmagic=32-bit;;
10350 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10351 libsuff=32 shlibsuff=N32 libmagic=N32;;
10352 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10353 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10354 *) libsuff= shlibsuff= libmagic=never-match;;
10355 esac
10356 ;;
10357 esac
10358 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10359 shlibpath_overrides_runpath=no
10360 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10361 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10362 hardcode_into_libs=yes
10363 ;;
10364
10365 # No shared lib support for Linux oldld, aout, or coff.
10366 linux*oldld* | linux*aout* | linux*coff*)
10367 dynamic_linker=no
10368 ;;
10369
10370 # This must be Linux ELF.
10371
10372 # uclinux* changes (here and below) have been submitted to the libtool
10373 # project, but have not yet been accepted: they are GCC-local changes
10374 # for the time being. (See
10375 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10376 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10377 version_type=linux
10378 need_lib_prefix=no
10379 need_version=no
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10383 shlibpath_var=LD_LIBRARY_PATH
10384 shlibpath_overrides_runpath=no
10385
10386 # Some binutils ld are patched to set DT_RUNPATH
10387 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10388 $as_echo_n "(cached) " >&6
10389 else
10390 lt_cv_shlibpath_overrides_runpath=no
10391 save_LDFLAGS=$LDFLAGS
10392 save_libdir=$libdir
10393 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10394 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396 /* end confdefs.h. */
10397
10398 int
10399 main ()
10400 {
10401
10402 ;
10403 return 0;
10404 }
10405 _ACEOF
10406 if ac_fn_c_try_link "$LINENO"; then :
10407 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10408 lt_cv_shlibpath_overrides_runpath=yes
10409 fi
10410 fi
10411 rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413 LDFLAGS=$save_LDFLAGS
10414 libdir=$save_libdir
10415
10416 fi
10417
10418 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10419
10420 # This implies no fast_install, which is unacceptable.
10421 # Some rework will be needed to allow for fast_install
10422 # before this can be enabled.
10423 hardcode_into_libs=yes
10424
10425 # Append ld.so.conf contents to the search path
10426 if test -f /etc/ld.so.conf; then
10427 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' ' '`
10428 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10429 fi
10430
10431 # We used to test for /lib/ld.so.1 and disable shared libraries on
10432 # powerpc, because MkLinux only supported shared libraries with the
10433 # GNU dynamic linker. Since this was broken with cross compilers,
10434 # most powerpc-linux boxes support dynamic linking these days and
10435 # people can always --disable-shared, the test was removed, and we
10436 # assume the GNU/Linux dynamic linker is in use.
10437 dynamic_linker='GNU/Linux ld.so'
10438 ;;
10439
10440 netbsd*)
10441 version_type=sunos
10442 need_lib_prefix=no
10443 need_version=no
10444 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10447 dynamic_linker='NetBSD (a.out) ld.so'
10448 else
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 dynamic_linker='NetBSD ld.elf_so'
10452 fi
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=yes
10455 hardcode_into_libs=yes
10456 ;;
10457
10458 newsos6)
10459 version_type=linux
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 shlibpath_var=LD_LIBRARY_PATH
10462 shlibpath_overrides_runpath=yes
10463 ;;
10464
10465 *nto* | *qnx*)
10466 version_type=qnx
10467 need_lib_prefix=no
10468 need_version=no
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 shlibpath_var=LD_LIBRARY_PATH
10472 shlibpath_overrides_runpath=no
10473 hardcode_into_libs=yes
10474 dynamic_linker='ldqnx.so'
10475 ;;
10476
10477 openbsd*)
10478 version_type=sunos
10479 sys_lib_dlsearch_path_spec="/usr/lib"
10480 need_lib_prefix=no
10481 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10482 case $host_os in
10483 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10484 *) need_version=no ;;
10485 esac
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10490 case $host_os in
10491 openbsd2.[89] | openbsd2.[89].*)
10492 shlibpath_overrides_runpath=no
10493 ;;
10494 *)
10495 shlibpath_overrides_runpath=yes
10496 ;;
10497 esac
10498 else
10499 shlibpath_overrides_runpath=yes
10500 fi
10501 ;;
10502
10503 os2*)
10504 libname_spec='$name'
10505 shrext_cmds=".dll"
10506 need_lib_prefix=no
10507 library_names_spec='$libname${shared_ext} $libname.a'
10508 dynamic_linker='OS/2 ld.exe'
10509 shlibpath_var=LIBPATH
10510 ;;
10511
10512 osf3* | osf4* | osf5*)
10513 version_type=osf
10514 need_lib_prefix=no
10515 need_version=no
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10520 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10521 ;;
10522
10523 rdos*)
10524 dynamic_linker=no
10525 ;;
10526
10527 solaris*)
10528 version_type=linux
10529 need_lib_prefix=no
10530 need_version=no
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 soname_spec='${libname}${release}${shared_ext}$major'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath=yes
10535 hardcode_into_libs=yes
10536 # ldd complains unless libraries are executable
10537 postinstall_cmds='chmod +x $lib'
10538 ;;
10539
10540 sunos4*)
10541 version_type=sunos
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10543 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 shlibpath_overrides_runpath=yes
10546 if test "$with_gnu_ld" = yes; then
10547 need_lib_prefix=no
10548 fi
10549 need_version=yes
10550 ;;
10551
10552 sysv4 | sysv4.3*)
10553 version_type=linux
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 case $host_vendor in
10558 sni)
10559 shlibpath_overrides_runpath=no
10560 need_lib_prefix=no
10561 runpath_var=LD_RUN_PATH
10562 ;;
10563 siemens)
10564 need_lib_prefix=no
10565 ;;
10566 motorola)
10567 need_lib_prefix=no
10568 need_version=no
10569 shlibpath_overrides_runpath=no
10570 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10571 ;;
10572 esac
10573 ;;
10574
10575 sysv4*MP*)
10576 if test -d /usr/nec ;then
10577 version_type=linux
10578 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10579 soname_spec='$libname${shared_ext}.$major'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 fi
10582 ;;
10583
10584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10585 version_type=freebsd-elf
10586 need_lib_prefix=no
10587 need_version=no
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10589 soname_spec='${libname}${release}${shared_ext}$major'
10590 shlibpath_var=LD_LIBRARY_PATH
10591 shlibpath_overrides_runpath=yes
10592 hardcode_into_libs=yes
10593 if test "$with_gnu_ld" = yes; then
10594 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10595 else
10596 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10597 case $host_os in
10598 sco3.2v5*)
10599 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10600 ;;
10601 esac
10602 fi
10603 sys_lib_dlsearch_path_spec='/usr/lib'
10604 ;;
10605
10606 tpf*)
10607 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10608 version_type=linux
10609 need_lib_prefix=no
10610 need_version=no
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 shlibpath_overrides_runpath=no
10614 hardcode_into_libs=yes
10615 ;;
10616
10617 uts4*)
10618 version_type=linux
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 ;;
10623
10624 # Shared libraries for VwWorks, >= 7 only at this stage
10625 # and (fpic) still incompatible with "large" code models
10626 # in a few configurations. Only for RTP mode in any case,
10627 # and upon explicit request at configure time.
10628 vxworks7*)
10629 dynamic_linker=no
10630 case ${with_multisubdir}-${enable_shared} in
10631 *large*)
10632 ;;
10633 *mrtp*-yes)
10634 version_type=linux
10635 need_lib_prefix=no
10636 need_version=no
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 dynamic_linker="$host_os module_loader"
10640 ;;
10641 esac
10642 ;;
10643 *)
10644 dynamic_linker=no
10645 ;;
10646 esac
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10648 $as_echo "$dynamic_linker" >&6; }
10649 test "$dynamic_linker" = no && can_build_shared=no
10650
10651 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10652 if test "$GCC" = yes; then
10653 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10654 fi
10655
10656 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10657 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10658 fi
10659 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10660 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10661 fi
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10755 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10756 hardcode_action=
10757 if test -n "$hardcode_libdir_flag_spec" ||
10758 test -n "$runpath_var" ||
10759 test "X$hardcode_automatic" = "Xyes" ; then
10760
10761 # We can hardcode non-existent directories.
10762 if test "$hardcode_direct" != no &&
10763 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10764 # have to relink, otherwise we might link with an installed library
10765 # when we should be linking with a yet-to-be-installed one
10766 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10767 test "$hardcode_minus_L" != no; then
10768 # Linking always hardcodes the temporary library directory.
10769 hardcode_action=relink
10770 else
10771 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10772 hardcode_action=immediate
10773 fi
10774 else
10775 # We cannot hardcode anything, or else we can only hardcode existing
10776 # directories.
10777 hardcode_action=unsupported
10778 fi
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10780 $as_echo "$hardcode_action" >&6; }
10781
10782 if test "$hardcode_action" = relink ||
10783 test "$inherit_rpath" = yes; then
10784 # Fast installation is not supported
10785 enable_fast_install=no
10786 elif test "$shlibpath_overrides_runpath" = yes ||
10787 test "$enable_shared" = no; then
10788 # Fast installation is not necessary
10789 enable_fast_install=needless
10790 fi
10791
10792
10793
10794
10795
10796
10797 if test "x$enable_dlopen" != xyes; then
10798 enable_dlopen=unknown
10799 enable_dlopen_self=unknown
10800 enable_dlopen_self_static=unknown
10801 else
10802 lt_cv_dlopen=no
10803 lt_cv_dlopen_libs=
10804
10805 case $host_os in
10806 beos*)
10807 lt_cv_dlopen="load_add_on"
10808 lt_cv_dlopen_libs=
10809 lt_cv_dlopen_self=yes
10810 ;;
10811
10812 mingw* | pw32* | cegcc*)
10813 lt_cv_dlopen="LoadLibrary"
10814 lt_cv_dlopen_libs=
10815 ;;
10816
10817 cygwin*)
10818 lt_cv_dlopen="dlopen"
10819 lt_cv_dlopen_libs=
10820 ;;
10821
10822 darwin*)
10823 # if libdl is installed we need to link against it
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10825 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10826 if ${ac_cv_lib_dl_dlopen+:} false; then :
10827 $as_echo_n "(cached) " >&6
10828 else
10829 ac_check_lib_save_LIBS=$LIBS
10830 LIBS="-ldl $LIBS"
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833
10834 /* Override any GCC internal prototype to avoid an error.
10835 Use char because int might match the return type of a GCC
10836 builtin and then its argument prototype would still apply. */
10837 #ifdef __cplusplus
10838 extern "C"
10839 #endif
10840 char dlopen ();
10841 int
10842 main ()
10843 {
10844 return dlopen ();
10845 ;
10846 return 0;
10847 }
10848 _ACEOF
10849 if ac_fn_c_try_link "$LINENO"; then :
10850 ac_cv_lib_dl_dlopen=yes
10851 else
10852 ac_cv_lib_dl_dlopen=no
10853 fi
10854 rm -f core conftest.err conftest.$ac_objext \
10855 conftest$ac_exeext conftest.$ac_ext
10856 LIBS=$ac_check_lib_save_LIBS
10857 fi
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10859 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10860 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10861 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10862 else
10863
10864 lt_cv_dlopen="dyld"
10865 lt_cv_dlopen_libs=
10866 lt_cv_dlopen_self=yes
10867
10868 fi
10869
10870 ;;
10871
10872 *)
10873 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10874 if test "x$ac_cv_func_shl_load" = xyes; then :
10875 lt_cv_dlopen="shl_load"
10876 else
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10878 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10879 if ${ac_cv_lib_dld_shl_load+:} false; then :
10880 $as_echo_n "(cached) " >&6
10881 else
10882 ac_check_lib_save_LIBS=$LIBS
10883 LIBS="-ldld $LIBS"
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10886
10887 /* Override any GCC internal prototype to avoid an error.
10888 Use char because int might match the return type of a GCC
10889 builtin and then its argument prototype would still apply. */
10890 #ifdef __cplusplus
10891 extern "C"
10892 #endif
10893 char shl_load ();
10894 int
10895 main ()
10896 {
10897 return shl_load ();
10898 ;
10899 return 0;
10900 }
10901 _ACEOF
10902 if ac_fn_c_try_link "$LINENO"; then :
10903 ac_cv_lib_dld_shl_load=yes
10904 else
10905 ac_cv_lib_dld_shl_load=no
10906 fi
10907 rm -f core conftest.err conftest.$ac_objext \
10908 conftest$ac_exeext conftest.$ac_ext
10909 LIBS=$ac_check_lib_save_LIBS
10910 fi
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10912 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10913 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10914 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10915 else
10916 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10917 if test "x$ac_cv_func_dlopen" = xyes; then :
10918 lt_cv_dlopen="dlopen"
10919 else
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10921 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10922 if ${ac_cv_lib_dl_dlopen+:} false; then :
10923 $as_echo_n "(cached) " >&6
10924 else
10925 ac_check_lib_save_LIBS=$LIBS
10926 LIBS="-ldl $LIBS"
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10929
10930 /* Override any GCC internal prototype to avoid an error.
10931 Use char because int might match the return type of a GCC
10932 builtin and then its argument prototype would still apply. */
10933 #ifdef __cplusplus
10934 extern "C"
10935 #endif
10936 char dlopen ();
10937 int
10938 main ()
10939 {
10940 return dlopen ();
10941 ;
10942 return 0;
10943 }
10944 _ACEOF
10945 if ac_fn_c_try_link "$LINENO"; then :
10946 ac_cv_lib_dl_dlopen=yes
10947 else
10948 ac_cv_lib_dl_dlopen=no
10949 fi
10950 rm -f core conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10952 LIBS=$ac_check_lib_save_LIBS
10953 fi
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10955 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10956 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10957 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10958 else
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10960 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10961 if ${ac_cv_lib_svld_dlopen+:} false; then :
10962 $as_echo_n "(cached) " >&6
10963 else
10964 ac_check_lib_save_LIBS=$LIBS
10965 LIBS="-lsvld $LIBS"
10966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10968
10969 /* Override any GCC internal prototype to avoid an error.
10970 Use char because int might match the return type of a GCC
10971 builtin and then its argument prototype would still apply. */
10972 #ifdef __cplusplus
10973 extern "C"
10974 #endif
10975 char dlopen ();
10976 int
10977 main ()
10978 {
10979 return dlopen ();
10980 ;
10981 return 0;
10982 }
10983 _ACEOF
10984 if ac_fn_c_try_link "$LINENO"; then :
10985 ac_cv_lib_svld_dlopen=yes
10986 else
10987 ac_cv_lib_svld_dlopen=no
10988 fi
10989 rm -f core conftest.err conftest.$ac_objext \
10990 conftest$ac_exeext conftest.$ac_ext
10991 LIBS=$ac_check_lib_save_LIBS
10992 fi
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10994 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10995 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10996 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10997 else
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10999 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11000 if ${ac_cv_lib_dld_dld_link+:} false; then :
11001 $as_echo_n "(cached) " >&6
11002 else
11003 ac_check_lib_save_LIBS=$LIBS
11004 LIBS="-ldld $LIBS"
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11007
11008 /* Override any GCC internal prototype to avoid an error.
11009 Use char because int might match the return type of a GCC
11010 builtin and then its argument prototype would still apply. */
11011 #ifdef __cplusplus
11012 extern "C"
11013 #endif
11014 char dld_link ();
11015 int
11016 main ()
11017 {
11018 return dld_link ();
11019 ;
11020 return 0;
11021 }
11022 _ACEOF
11023 if ac_fn_c_try_link "$LINENO"; then :
11024 ac_cv_lib_dld_dld_link=yes
11025 else
11026 ac_cv_lib_dld_dld_link=no
11027 fi
11028 rm -f core conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
11030 LIBS=$ac_check_lib_save_LIBS
11031 fi
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11033 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11034 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11035 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11036 fi
11037
11038
11039 fi
11040
11041
11042 fi
11043
11044
11045 fi
11046
11047
11048 fi
11049
11050
11051 fi
11052
11053 ;;
11054 esac
11055
11056 if test "x$lt_cv_dlopen" != xno; then
11057 enable_dlopen=yes
11058 else
11059 enable_dlopen=no
11060 fi
11061
11062 case $lt_cv_dlopen in
11063 dlopen)
11064 save_CPPFLAGS="$CPPFLAGS"
11065 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11066
11067 save_LDFLAGS="$LDFLAGS"
11068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11069
11070 save_LIBS="$LIBS"
11071 LIBS="$lt_cv_dlopen_libs $LIBS"
11072
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11074 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11075 if ${lt_cv_dlopen_self+:} false; then :
11076 $as_echo_n "(cached) " >&6
11077 else
11078 if test "$cross_compiling" = yes; then :
11079 lt_cv_dlopen_self=cross
11080 else
11081 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11082 lt_status=$lt_dlunknown
11083 cat > conftest.$ac_ext <<_LT_EOF
11084 #line 11084 "configure"
11085 #include "confdefs.h"
11086
11087 #if HAVE_DLFCN_H
11088 #include <dlfcn.h>
11089 #endif
11090
11091 #include <stdio.h>
11092
11093 #ifdef RTLD_GLOBAL
11094 # define LT_DLGLOBAL RTLD_GLOBAL
11095 #else
11096 # ifdef DL_GLOBAL
11097 # define LT_DLGLOBAL DL_GLOBAL
11098 # else
11099 # define LT_DLGLOBAL 0
11100 # endif
11101 #endif
11102
11103 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11104 find out it does not work in some platform. */
11105 #ifndef LT_DLLAZY_OR_NOW
11106 # ifdef RTLD_LAZY
11107 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11108 # else
11109 # ifdef DL_LAZY
11110 # define LT_DLLAZY_OR_NOW DL_LAZY
11111 # else
11112 # ifdef RTLD_NOW
11113 # define LT_DLLAZY_OR_NOW RTLD_NOW
11114 # else
11115 # ifdef DL_NOW
11116 # define LT_DLLAZY_OR_NOW DL_NOW
11117 # else
11118 # define LT_DLLAZY_OR_NOW 0
11119 # endif
11120 # endif
11121 # endif
11122 # endif
11123 #endif
11124
11125 /* When -fvisbility=hidden is used, assume the code has been annotated
11126 correspondingly for the symbols needed. */
11127 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11128 void fnord () __attribute__((visibility("default")));
11129 #endif
11130
11131 void fnord () { int i=42; }
11132 int main ()
11133 {
11134 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11135 int status = $lt_dlunknown;
11136
11137 if (self)
11138 {
11139 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11140 else
11141 {
11142 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11143 else puts (dlerror ());
11144 }
11145 /* dlclose (self); */
11146 }
11147 else
11148 puts (dlerror ());
11149
11150 return status;
11151 }
11152 _LT_EOF
11153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11154 (eval $ac_link) 2>&5
11155 ac_status=$?
11156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11157 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11158 (./conftest; exit; ) >&5 2>/dev/null
11159 lt_status=$?
11160 case x$lt_status in
11161 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11162 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11163 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11164 esac
11165 else :
11166 # compilation failed
11167 lt_cv_dlopen_self=no
11168 fi
11169 fi
11170 rm -fr conftest*
11171
11172
11173 fi
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11175 $as_echo "$lt_cv_dlopen_self" >&6; }
11176
11177 if test "x$lt_cv_dlopen_self" = xyes; then
11178 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11180 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11181 if ${lt_cv_dlopen_self_static+:} false; then :
11182 $as_echo_n "(cached) " >&6
11183 else
11184 if test "$cross_compiling" = yes; then :
11185 lt_cv_dlopen_self_static=cross
11186 else
11187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11188 lt_status=$lt_dlunknown
11189 cat > conftest.$ac_ext <<_LT_EOF
11190 #line 11190 "configure"
11191 #include "confdefs.h"
11192
11193 #if HAVE_DLFCN_H
11194 #include <dlfcn.h>
11195 #endif
11196
11197 #include <stdio.h>
11198
11199 #ifdef RTLD_GLOBAL
11200 # define LT_DLGLOBAL RTLD_GLOBAL
11201 #else
11202 # ifdef DL_GLOBAL
11203 # define LT_DLGLOBAL DL_GLOBAL
11204 # else
11205 # define LT_DLGLOBAL 0
11206 # endif
11207 #endif
11208
11209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11210 find out it does not work in some platform. */
11211 #ifndef LT_DLLAZY_OR_NOW
11212 # ifdef RTLD_LAZY
11213 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11214 # else
11215 # ifdef DL_LAZY
11216 # define LT_DLLAZY_OR_NOW DL_LAZY
11217 # else
11218 # ifdef RTLD_NOW
11219 # define LT_DLLAZY_OR_NOW RTLD_NOW
11220 # else
11221 # ifdef DL_NOW
11222 # define LT_DLLAZY_OR_NOW DL_NOW
11223 # else
11224 # define LT_DLLAZY_OR_NOW 0
11225 # endif
11226 # endif
11227 # endif
11228 # endif
11229 #endif
11230
11231 /* When -fvisbility=hidden is used, assume the code has been annotated
11232 correspondingly for the symbols needed. */
11233 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11234 void fnord () __attribute__((visibility("default")));
11235 #endif
11236
11237 void fnord () { int i=42; }
11238 int main ()
11239 {
11240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11241 int status = $lt_dlunknown;
11242
11243 if (self)
11244 {
11245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11246 else
11247 {
11248 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11249 else puts (dlerror ());
11250 }
11251 /* dlclose (self); */
11252 }
11253 else
11254 puts (dlerror ());
11255
11256 return status;
11257 }
11258 _LT_EOF
11259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11260 (eval $ac_link) 2>&5
11261 ac_status=$?
11262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11263 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11264 (./conftest; exit; ) >&5 2>/dev/null
11265 lt_status=$?
11266 case x$lt_status in
11267 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11268 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11269 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11270 esac
11271 else :
11272 # compilation failed
11273 lt_cv_dlopen_self_static=no
11274 fi
11275 fi
11276 rm -fr conftest*
11277
11278
11279 fi
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11281 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11282 fi
11283
11284 CPPFLAGS="$save_CPPFLAGS"
11285 LDFLAGS="$save_LDFLAGS"
11286 LIBS="$save_LIBS"
11287 ;;
11288 esac
11289
11290 case $lt_cv_dlopen_self in
11291 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11292 *) enable_dlopen_self=unknown ;;
11293 esac
11294
11295 case $lt_cv_dlopen_self_static in
11296 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11297 *) enable_dlopen_self_static=unknown ;;
11298 esac
11299 fi
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317 striplib=
11318 old_striplib=
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11320 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11321 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11322 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11323 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11325 $as_echo "yes" >&6; }
11326 else
11327 # FIXME - insert some real tests, host_os isn't really good enough
11328 case $host_os in
11329 darwin*)
11330 if test -n "$STRIP" ; then
11331 striplib="$STRIP -x"
11332 old_striplib="$STRIP -S"
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11334 $as_echo "yes" >&6; }
11335 else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11338 fi
11339 ;;
11340 *)
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11342 $as_echo "no" >&6; }
11343 ;;
11344 esac
11345 fi
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358 # Report which library types will actually be built
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11360 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11362 $as_echo "$can_build_shared" >&6; }
11363
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11365 $as_echo_n "checking whether to build shared libraries... " >&6; }
11366 test "$can_build_shared" = "no" && enable_shared=no
11367
11368 # On AIX, shared libraries and static libraries use the same namespace, and
11369 # are all built from PIC.
11370 case $host_os in
11371 aix3*)
11372 test "$enable_shared" = yes && enable_static=no
11373 if test -n "$RANLIB"; then
11374 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11375 postinstall_cmds='$RANLIB $lib'
11376 fi
11377 ;;
11378
11379 aix[4-9]*)
11380 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11381 test "$enable_shared" = yes && enable_static=no
11382 fi
11383 ;;
11384 esac
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11386 $as_echo "$enable_shared" >&6; }
11387
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11389 $as_echo_n "checking whether to build static libraries... " >&6; }
11390 # Make sure either enable_shared or enable_static is yes.
11391 test "$enable_shared" = yes || enable_static=yes
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11393 $as_echo "$enable_static" >&6; }
11394
11395
11396
11397
11398 fi
11399 ac_ext=c
11400 ac_cpp='$CPP $CPPFLAGS'
11401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11404
11405 CC="$lt_save_CC"
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419 ac_config_commands="$ac_config_commands libtool"
11420
11421
11422
11423
11424 # Only expand once:
11425
11426
11427
11428 # The tests for host and target for $enable_largefile require
11429 # canonical names.
11430
11431
11432
11433 # As the $enable_largefile decision depends on --enable-plugins we must set it
11434 # even in directories otherwise not depending on the $plugins option.
11435
11436
11437 maybe_plugins=no
11438 for ac_header in dlfcn.h
11439 do :
11440 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11441 "
11442 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11443 cat >>confdefs.h <<_ACEOF
11444 #define HAVE_DLFCN_H 1
11445 _ACEOF
11446 maybe_plugins=yes
11447 fi
11448
11449 done
11450
11451 for ac_header in windows.h
11452 do :
11453 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11454 "
11455 if test "x$ac_cv_header_windows_h" = xyes; then :
11456 cat >>confdefs.h <<_ACEOF
11457 #define HAVE_WINDOWS_H 1
11458 _ACEOF
11459 maybe_plugins=yes
11460 fi
11461
11462 done
11463
11464
11465 # Check whether --enable-plugins was given.
11466 if test "${enable_plugins+set}" = set; then :
11467 enableval=$enable_plugins; case "${enableval}" in
11468 no) plugins=no ;;
11469 *) plugins=yes
11470 if test "$maybe_plugins" != "yes" ; then
11471 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11472 fi ;;
11473 esac
11474 else
11475 plugins=$maybe_plugins
11476
11477 fi
11478
11479 if test "$plugins" = "yes"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11481 $as_echo_n "checking for library containing dlsym... " >&6; }
11482 if ${ac_cv_search_dlsym+:} false; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 ac_func_search_save_LIBS=$LIBS
11486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487 /* end confdefs.h. */
11488
11489 /* Override any GCC internal prototype to avoid an error.
11490 Use char because int might match the return type of a GCC
11491 builtin and then its argument prototype would still apply. */
11492 #ifdef __cplusplus
11493 extern "C"
11494 #endif
11495 char dlsym ();
11496 int
11497 main ()
11498 {
11499 return dlsym ();
11500 ;
11501 return 0;
11502 }
11503 _ACEOF
11504 for ac_lib in '' dl; do
11505 if test -z "$ac_lib"; then
11506 ac_res="none required"
11507 else
11508 ac_res=-l$ac_lib
11509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11510 fi
11511 if ac_fn_c_try_link "$LINENO"; then :
11512 ac_cv_search_dlsym=$ac_res
11513 fi
11514 rm -f core conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext
11516 if ${ac_cv_search_dlsym+:} false; then :
11517 break
11518 fi
11519 done
11520 if ${ac_cv_search_dlsym+:} false; then :
11521
11522 else
11523 ac_cv_search_dlsym=no
11524 fi
11525 rm conftest.$ac_ext
11526 LIBS=$ac_func_search_save_LIBS
11527 fi
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11529 $as_echo "$ac_cv_search_dlsym" >&6; }
11530 ac_res=$ac_cv_search_dlsym
11531 if test "$ac_res" != no; then :
11532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11533
11534 fi
11535
11536 fi
11537
11538
11539 case "${host}" in
11540 sparc-*-solaris*|i?86-*-solaris*)
11541 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11542 # were mutually exclusive until Solaris 11.3. Without procfs support,
11543 # the bfd/ elf module cannot provide certain routines such as
11544 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11545 # explicitly requested large-file support through the
11546 # --enable-largefile switch, disable large-file support in favor of
11547 # procfs support.
11548 #
11549 # Check if <sys/procfs.h> is incompatible with large-file support.
11550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551 /* end confdefs.h. */
11552 #define _FILE_OFFSET_BITS 64
11553 #define _STRUCTURED_PROC 1
11554 #include <sys/procfs.h>
11555 int
11556 main ()
11557 {
11558
11559 ;
11560 return 0;
11561 }
11562 _ACEOF
11563 if ac_fn_c_try_compile "$LINENO"; then :
11564 acx_cv_procfs_lfs=yes
11565 else
11566 acx_cv_procfs_lfs=no
11567 fi
11568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 #
11570 # Forcefully disable large-file support only if necessary, gdb is in
11571 # tree and enabled.
11572 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11573 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11574 : ${enable_largefile="no"}
11575 if test "$plugins" = yes; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11577 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11578 $as_echo "$as_me: WARNING:
11579 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11580 plugins=no
11581 fi
11582 fi
11583 #
11584 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11585 # benefit of g++ 9+ which predefines it on Solaris.
11586 if test "$enable_largefile" = no; then
11587 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11588
11589 fi
11590 ;;
11591 esac
11592
11593 # Check whether --enable-largefile was given.
11594 if test "${enable_largefile+set}" = set; then :
11595 enableval=$enable_largefile;
11596 fi
11597
11598 if test "$enable_largefile" != no; then
11599
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11601 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11602 if ${ac_cv_sys_largefile_CC+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 ac_cv_sys_largefile_CC=no
11606 if test "$GCC" != yes; then
11607 ac_save_CC=$CC
11608 while :; do
11609 # IRIX 6.2 and later do not support large files by default,
11610 # so use the C compiler's -n32 option if that helps.
11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612 /* end confdefs.h. */
11613 #include <sys/types.h>
11614 /* Check that off_t can represent 2**63 - 1 correctly.
11615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11616 since some C++ compilers masquerading as C compilers
11617 incorrectly reject 9223372036854775807. */
11618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11620 && LARGE_OFF_T % 2147483647 == 1)
11621 ? 1 : -1];
11622 int
11623 main ()
11624 {
11625
11626 ;
11627 return 0;
11628 }
11629 _ACEOF
11630 if ac_fn_c_try_compile "$LINENO"; then :
11631 break
11632 fi
11633 rm -f core conftest.err conftest.$ac_objext
11634 CC="$CC -n32"
11635 if ac_fn_c_try_compile "$LINENO"; then :
11636 ac_cv_sys_largefile_CC=' -n32'; break
11637 fi
11638 rm -f core conftest.err conftest.$ac_objext
11639 break
11640 done
11641 CC=$ac_save_CC
11642 rm -f conftest.$ac_ext
11643 fi
11644 fi
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11646 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11647 if test "$ac_cv_sys_largefile_CC" != no; then
11648 CC=$CC$ac_cv_sys_largefile_CC
11649 fi
11650
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11652 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11653 if ${ac_cv_sys_file_offset_bits+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 while :; do
11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11659 #include <sys/types.h>
11660 /* Check that off_t can represent 2**63 - 1 correctly.
11661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11662 since some C++ compilers masquerading as C compilers
11663 incorrectly reject 9223372036854775807. */
11664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11666 && LARGE_OFF_T % 2147483647 == 1)
11667 ? 1 : -1];
11668 int
11669 main ()
11670 {
11671
11672 ;
11673 return 0;
11674 }
11675 _ACEOF
11676 if ac_fn_c_try_compile "$LINENO"; then :
11677 ac_cv_sys_file_offset_bits=no; break
11678 fi
11679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681 /* end confdefs.h. */
11682 #define _FILE_OFFSET_BITS 64
11683 #include <sys/types.h>
11684 /* Check that off_t can represent 2**63 - 1 correctly.
11685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11686 since some C++ compilers masquerading as C compilers
11687 incorrectly reject 9223372036854775807. */
11688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11690 && LARGE_OFF_T % 2147483647 == 1)
11691 ? 1 : -1];
11692 int
11693 main ()
11694 {
11695
11696 ;
11697 return 0;
11698 }
11699 _ACEOF
11700 if ac_fn_c_try_compile "$LINENO"; then :
11701 ac_cv_sys_file_offset_bits=64; break
11702 fi
11703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11704 ac_cv_sys_file_offset_bits=unknown
11705 break
11706 done
11707 fi
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11709 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11710 case $ac_cv_sys_file_offset_bits in #(
11711 no | unknown) ;;
11712 *)
11713 cat >>confdefs.h <<_ACEOF
11714 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11715 _ACEOF
11716 ;;
11717 esac
11718 rm -rf conftest*
11719 if test $ac_cv_sys_file_offset_bits = unknown; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11721 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11722 if ${ac_cv_sys_large_files+:} false; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 while :; do
11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h. */
11728 #include <sys/types.h>
11729 /* Check that off_t can represent 2**63 - 1 correctly.
11730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11731 since some C++ compilers masquerading as C compilers
11732 incorrectly reject 9223372036854775807. */
11733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11735 && LARGE_OFF_T % 2147483647 == 1)
11736 ? 1 : -1];
11737 int
11738 main ()
11739 {
11740
11741 ;
11742 return 0;
11743 }
11744 _ACEOF
11745 if ac_fn_c_try_compile "$LINENO"; then :
11746 ac_cv_sys_large_files=no; break
11747 fi
11748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11751 #define _LARGE_FILES 1
11752 #include <sys/types.h>
11753 /* Check that off_t can represent 2**63 - 1 correctly.
11754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11755 since some C++ compilers masquerading as C compilers
11756 incorrectly reject 9223372036854775807. */
11757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11759 && LARGE_OFF_T % 2147483647 == 1)
11760 ? 1 : -1];
11761 int
11762 main ()
11763 {
11764
11765 ;
11766 return 0;
11767 }
11768 _ACEOF
11769 if ac_fn_c_try_compile "$LINENO"; then :
11770 ac_cv_sys_large_files=1; break
11771 fi
11772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11773 ac_cv_sys_large_files=unknown
11774 break
11775 done
11776 fi
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11778 $as_echo "$ac_cv_sys_large_files" >&6; }
11779 case $ac_cv_sys_large_files in #(
11780 no | unknown) ;;
11781 *)
11782 cat >>confdefs.h <<_ACEOF
11783 #define _LARGE_FILES $ac_cv_sys_large_files
11784 _ACEOF
11785 ;;
11786 esac
11787 rm -rf conftest*
11788 fi
11789
11790
11791 fi
11792
11793
11794
11795 ac_checking=
11796 . ${srcdir}/../bfd/development.sh
11797 test "$development" = true && ac_checking=yes
11798 # Check whether --enable-checking was given.
11799 if test "${enable_checking+set}" = set; then :
11800 enableval=$enable_checking; case "${enableval}" in
11801 no|none) ac_checking= ;;
11802 *) ac_checking=yes ;;
11803 esac
11804 fi
11805 if test x$ac_checking != x ; then
11806
11807 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11808
11809 fi
11810
11811 # Check whether --enable-targets was given.
11812 if test "${enable_targets+set}" = set; then :
11813 enableval=$enable_targets; case "${enableval}" in
11814 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11815 ;;
11816 no) enable_targets= ;;
11817 *) enable_targets=$enableval ;;
11818 esac
11819 fi
11820
11821
11822 # Check whether --enable-deterministic-archives was given.
11823 if test "${enable_deterministic_archives+set}" = set; then :
11824 enableval=$enable_deterministic_archives;
11825 if test "${enableval}" = no; then
11826 default_ar_deterministic=0
11827 else
11828 default_ar_deterministic=1
11829 fi
11830 else
11831 default_ar_deterministic=0
11832 fi
11833
11834
11835
11836 cat >>confdefs.h <<_ACEOF
11837 #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11838 _ACEOF
11839
11840
11841
11842 # Check whether --enable-default-strings-all was given.
11843 if test "${enable_default_strings_all+set}" = set; then :
11844 enableval=$enable_default_strings_all;
11845 if test "${enableval}" = no; then
11846 default_strings_all=0
11847 else
11848 default_strings_all=1
11849 fi
11850 else
11851 default_strings_all=1
11852 fi
11853
11854
11855
11856 cat >>confdefs.h <<_ACEOF
11857 #define DEFAULT_STRINGS_ALL $default_strings_all
11858 _ACEOF
11859
11860
11861
11862 # Check whether --enable-f-for-ifunc-symbols was given.
11863 if test "${enable_f_for_ifunc_symbols+set}" = set; then :
11864 enableval=$enable_f_for_ifunc_symbols;
11865 if test "${enableval}" = no; then
11866 default_f_for_ifunc=0
11867 else
11868 default_f_for_ifunc=1
11869 fi
11870 else
11871 default_f_for_ifunc=0
11872 fi
11873
11874
11875
11876 cat >>confdefs.h <<_ACEOF
11877 #define DEFAULT_F_FOR_IFUNC_SYMBOLS $default_f_for_ifunc
11878 _ACEOF
11879
11880
11881
11882 # Check whether --enable-follow-debug-links was given.
11883 if test "${enable_follow_debug_links+set}" = set; then :
11884 enableval=$enable_follow_debug_links;
11885 if test "${enableval}" = no; then
11886 default_for_follow_links=0
11887 else
11888 default_for_follow_links=1
11889 fi
11890 else
11891 default_for_follow_links=1
11892 fi
11893
11894
11895
11896 cat >>confdefs.h <<_ACEOF
11897 #define DEFAULT_FOR_FOLLOW_LINKS $default_for_follow_links
11898 _ACEOF
11899
11900
11901
11902
11903
11904 # Check whether --enable-colored-disassembly was given.
11905 if test "${enable_colored_disassembly+set}" = set; then :
11906 enableval=$enable_colored_disassembly;
11907 if test "${enableval}" = no; then
11908 default_for_colored_disassembly=0
11909 else
11910 default_for_colored_disassembly=1
11911 fi
11912 else
11913 default_for_colored_disassembly=0
11914 fi
11915
11916
11917
11918 cat >>confdefs.h <<_ACEOF
11919 #define DEFAULT_FOR_COLORED_DISASSEMBLY $default_for_colored_disassembly
11920 _ACEOF
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11932 if test -n "$ac_tool_prefix"; then
11933 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11934 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11936 $as_echo_n "checking for $ac_word... " >&6; }
11937 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11938 $as_echo_n "(cached) " >&6
11939 else
11940 case $PKG_CONFIG in
11941 [\\/]* | ?:[\\/]*)
11942 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11943 ;;
11944 *)
11945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946 for as_dir in $PATH
11947 do
11948 IFS=$as_save_IFS
11949 test -z "$as_dir" && as_dir=.
11950 for ac_exec_ext in '' $ac_executable_extensions; do
11951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11952 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 break 2
11955 fi
11956 done
11957 done
11958 IFS=$as_save_IFS
11959
11960 ;;
11961 esac
11962 fi
11963 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11964 if test -n "$PKG_CONFIG"; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11966 $as_echo "$PKG_CONFIG" >&6; }
11967 else
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11970 fi
11971
11972
11973 fi
11974 if test -z "$ac_cv_path_PKG_CONFIG"; then
11975 ac_pt_PKG_CONFIG=$PKG_CONFIG
11976 # Extract the first word of "pkg-config", so it can be a program name with args.
11977 set dummy pkg-config; ac_word=$2
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11979 $as_echo_n "checking for $ac_word... " >&6; }
11980 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11981 $as_echo_n "(cached) " >&6
11982 else
11983 case $ac_pt_PKG_CONFIG in
11984 [\\/]* | ?:[\\/]*)
11985 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11986 ;;
11987 *)
11988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11990 do
11991 IFS=$as_save_IFS
11992 test -z "$as_dir" && as_dir=.
11993 for ac_exec_ext in '' $ac_executable_extensions; do
11994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11995 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11997 break 2
11998 fi
11999 done
12000 done
12001 IFS=$as_save_IFS
12002
12003 ;;
12004 esac
12005 fi
12006 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12007 if test -n "$ac_pt_PKG_CONFIG"; then
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12009 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12010 else
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12013 fi
12014
12015 if test "x$ac_pt_PKG_CONFIG" = x; then
12016 PKG_CONFIG=""
12017 else
12018 case $cross_compiling:$ac_tool_warned in
12019 yes:)
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12022 ac_tool_warned=yes ;;
12023 esac
12024 PKG_CONFIG=$ac_pt_PKG_CONFIG
12025 fi
12026 else
12027 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12028 fi
12029
12030 fi
12031 if test -n "$PKG_CONFIG"; then
12032 _pkg_min_version=0.9.0
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12034 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12035 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12037 $as_echo "yes" >&6; }
12038 else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12041 PKG_CONFIG=""
12042 fi
12043 fi
12044
12045 # Handle optional debuginfod support as well as optional section
12046 # downloading support.
12047 #
12048 # Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
12049 #
12050 # Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
12051 # version >= 0.188.
12052
12053 # Check whether --with-debuginfod was given.
12054 if test "${with_debuginfod+set}" = set; then :
12055 withval=$with_debuginfod;
12056 else
12057 with_debuginfod=auto
12058 fi
12059
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
12061 $as_echo_n "checking whether to use debuginfod... " >&6; }
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
12063 $as_echo "$with_debuginfod" >&6; }
12064
12065 if test "x$with_debuginfod" != xno; then
12066
12067 pkg_failed=no
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
12069 $as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
12070
12071 if test -n "$DEBUGINFOD_CFLAGS"; then
12072 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
12073 elif test -n "$PKG_CONFIG"; then
12074 if test -n "$PKG_CONFIG" && \
12075 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
12076 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
12077 ac_status=$?
12078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12079 test $ac_status = 0; }; then
12080 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
12081 test "x$?" != "x0" && pkg_failed=yes
12082 else
12083 pkg_failed=yes
12084 fi
12085 else
12086 pkg_failed=untried
12087 fi
12088 if test -n "$DEBUGINFOD_LIBS"; then
12089 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
12090 elif test -n "$PKG_CONFIG"; then
12091 if test -n "$PKG_CONFIG" && \
12092 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
12093 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
12094 ac_status=$?
12095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12096 test $ac_status = 0; }; then
12097 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
12098 test "x$?" != "x0" && pkg_failed=yes
12099 else
12100 pkg_failed=yes
12101 fi
12102 else
12103 pkg_failed=untried
12104 fi
12105
12106 if test $pkg_failed = no; then
12107 pkg_save_LDFLAGS="$LDFLAGS"
12108 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111
12112 int
12113 main ()
12114 {
12115
12116 ;
12117 return 0;
12118 }
12119 _ACEOF
12120 if ac_fn_c_try_link "$LINENO"; then :
12121
12122 else
12123 pkg_failed=yes
12124 fi
12125 rm -f core conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12127 LDFLAGS=$pkg_save_LDFLAGS
12128 fi
12129
12130
12131
12132 if test $pkg_failed = yes; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12135
12136 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12137 _pkg_short_errors_supported=yes
12138 else
12139 _pkg_short_errors_supported=no
12140 fi
12141 if test $_pkg_short_errors_supported = yes; then
12142 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
12143 else
12144 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
12145 fi
12146 # Put the nasty error message in config.log where it belongs
12147 echo "$DEBUGINFOD_PKG_ERRORS" >&5
12148
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
12150 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
12151 elif test $pkg_failed = untried; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
12155 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
12156 else
12157 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
12158 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12160 $as_echo "yes" >&6; }
12161
12162 $as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
12163
12164 fi
12165
12166
12167 pkg_failed=no
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
12169 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
12170
12171 if test -n "$DEBUGINFOD_CFLAGS"; then
12172 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
12173 elif test -n "$PKG_CONFIG"; then
12174 if test -n "$PKG_CONFIG" && \
12175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
12176 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
12177 ac_status=$?
12178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12179 test $ac_status = 0; }; then
12180 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
12181 test "x$?" != "x0" && pkg_failed=yes
12182 else
12183 pkg_failed=yes
12184 fi
12185 else
12186 pkg_failed=untried
12187 fi
12188 if test -n "$DEBUGINFOD_LIBS"; then
12189 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
12190 elif test -n "$PKG_CONFIG"; then
12191 if test -n "$PKG_CONFIG" && \
12192 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
12193 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
12194 ac_status=$?
12195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12196 test $ac_status = 0; }; then
12197 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
12198 test "x$?" != "x0" && pkg_failed=yes
12199 else
12200 pkg_failed=yes
12201 fi
12202 else
12203 pkg_failed=untried
12204 fi
12205
12206 if test $pkg_failed = no; then
12207 pkg_save_LDFLAGS="$LDFLAGS"
12208 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211
12212 int
12213 main ()
12214 {
12215
12216 ;
12217 return 0;
12218 }
12219 _ACEOF
12220 if ac_fn_c_try_link "$LINENO"; then :
12221
12222 else
12223 pkg_failed=yes
12224 fi
12225 rm -f core conftest.err conftest.$ac_objext \
12226 conftest$ac_exeext conftest.$ac_ext
12227 LDFLAGS=$pkg_save_LDFLAGS
12228 fi
12229
12230
12231
12232 if test $pkg_failed = yes; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12235
12236 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12237 _pkg_short_errors_supported=yes
12238 else
12239 _pkg_short_errors_supported=no
12240 fi
12241 if test $_pkg_short_errors_supported = yes; then
12242 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
12243 else
12244 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
12245 fi
12246 # Put the nasty error message in config.log where it belongs
12247 echo "$DEBUGINFOD_PKG_ERRORS" >&5
12248
12249 if test "x$with_debuginfod" = xyes; then
12250 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
12251 else
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
12253 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
12254 fi
12255 elif test $pkg_failed = untried; then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12258 if test "x$with_debuginfod" = xyes; then
12259 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
12260 else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
12262 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
12263 fi
12264 else
12265 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
12266 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12268 $as_echo "yes" >&6; }
12269
12270 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
12271
12272 fi
12273 else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
12275 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
12276 fi
12277
12278
12279 # Check whether --enable-libctf was given.
12280 if test "${enable_libctf+set}" = set; then :
12281 enableval=$enable_libctf;
12282 case "$enableval" in
12283 yes|no) ;;
12284 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
12285 esac
12286
12287 else
12288 enable_libctf=yes
12289 fi
12290
12291
12292 if test "${enable_libctf}" = yes; then
12293
12294 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
12295
12296 fi
12297 if test "${enable_libctf}" = yes; then
12298 ENABLE_LIBCTF_TRUE=
12299 ENABLE_LIBCTF_FALSE='#'
12300 else
12301 ENABLE_LIBCTF_TRUE='#'
12302 ENABLE_LIBCTF_FALSE=
12303 fi
12304
12305
12306
12307 # Set the 'development' global.
12308 . $srcdir/../bfd/development.sh
12309
12310 # Set acp_cpp_for_build variable
12311 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12312
12313 # Default set of GCC warnings to enable.
12314 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12315 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12316
12317 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12320 __GNUC__
12321 _ACEOF
12322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12323 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12324
12325 else
12326 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12327 fi
12328 rm -f conftest*
12329
12330
12331 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12332 #cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 #/* end confdefs.h. */
12334 #__GNUC__
12335 #_ACEOF
12336 #if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12337 # $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12338 #
12339 #else
12340 # cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 #/* end confdefs.h. */
12342 #__clang__
12343 #_ACEOF
12344 #if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12345 # $EGREP "^__clang__$" >/dev/null 2>&1; then :
12346 # GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12347 #fi
12348 #rm -f conftest*
12349
12350
12351 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12352 WARN_WRITE_STRINGS=""
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12355 __GNUC__
12356 _ACEOF
12357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12358 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12359
12360 else
12361 WARN_WRITE_STRINGS="-Wwrite-strings"
12362 fi
12363 rm -f conftest*
12364
12365
12366 # Verify CC_FOR_BUILD to be compatible with warning flags
12367
12368 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12371 __GNUC__
12372 _ACEOF
12373 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12374 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12375
12376 else
12377 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12378 fi
12379 rm -f conftest*
12380
12381
12382 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12383 #cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 #/* end confdefs.h. */
12385 #__GNUC__
12386 #_ACEOF
12387 #if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12388 # $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12389 #
12390 #else
12391 # cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 #/* end confdefs.h. */
12393 #__clang__
12394 #_ACEOF
12395 #if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12396 # $EGREP "^__clang__$" >/dev/null 2>&1; then :
12397 # GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12398 #fi
12399 #rm -f conftest*
12400
12401
12402 # Check whether --enable-werror was given.
12403 if test "${enable_werror+set}" = set; then :
12404 enableval=$enable_werror; case "${enableval}" in
12405 yes | y) ERROR_ON_WARNING="yes" ;;
12406 no | n) ERROR_ON_WARNING="no" ;;
12407 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12408 esac
12409 fi
12410
12411
12412 # Disable -Wformat by default when using gcc on mingw
12413 case "${host}" in
12414 *-*-mingw32*)
12415 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12416 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12417 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12418 fi
12419 ;;
12420 *) ;;
12421 esac
12422
12423 # Enable -Werror by default when using gcc. Turn it off for releases.
12424 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12425 ERROR_ON_WARNING=yes
12426 fi
12427
12428 NO_WERROR=
12429 if test "${ERROR_ON_WARNING}" = yes ; then
12430 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12431 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12432 NO_WERROR="-Wno-error"
12433 fi
12434
12435 if test "${GCC}" = yes ; then
12436 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12437 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12438 fi
12439
12440 # Check whether --enable-build-warnings was given.
12441 if test "${enable_build_warnings+set}" = set; then :
12442 enableval=$enable_build_warnings; case "${enableval}" in
12443 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12444 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12445 no) if test "${GCC}" = yes ; then
12446 WARN_CFLAGS="-w"
12447 WARN_CFLAGS_FOR_BUILD="-w"
12448 fi;;
12449 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12450 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12451 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12452 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12453 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12454 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12455 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12456 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12457 esac
12458 fi
12459
12460
12461 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12462 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12463 fi
12464
12465
12466
12467
12468
12469
12470
12471 ac_config_headers="$ac_config_headers config.h:config.in"
12472
12473
12474
12475
12476 if test -z "$target" ; then
12477 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12478 fi
12479 if test -z "$host" ; then
12480 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
12481 fi
12482
12483 for ac_prog in 'bison -y' byacc
12484 do
12485 # Extract the first word of "$ac_prog", so it can be a program name with args.
12486 set dummy $ac_prog; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if ${ac_cv_prog_YACC+:} false; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 if test -n "$YACC"; then
12493 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12494 else
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12497 do
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502 ac_cv_prog_YACC="$ac_prog"
12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504 break 2
12505 fi
12506 done
12507 done
12508 IFS=$as_save_IFS
12509
12510 fi
12511 fi
12512 YACC=$ac_cv_prog_YACC
12513 if test -n "$YACC"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12515 $as_echo "$YACC" >&6; }
12516 else
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12519 fi
12520
12521
12522 test -n "$YACC" && break
12523 done
12524 test -n "$YACC" || YACC="yacc"
12525
12526 for ac_prog in flex lex
12527 do
12528 # Extract the first word of "$ac_prog", so it can be a program name with args.
12529 set dummy $ac_prog; ac_word=$2
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if ${ac_cv_prog_LEX+:} false; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 if test -n "$LEX"; then
12536 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12537 else
12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539 for as_dir in $PATH
12540 do
12541 IFS=$as_save_IFS
12542 test -z "$as_dir" && as_dir=.
12543 for ac_exec_ext in '' $ac_executable_extensions; do
12544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12545 ac_cv_prog_LEX="$ac_prog"
12546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12547 break 2
12548 fi
12549 done
12550 done
12551 IFS=$as_save_IFS
12552
12553 fi
12554 fi
12555 LEX=$ac_cv_prog_LEX
12556 if test -n "$LEX"; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12558 $as_echo "$LEX" >&6; }
12559 else
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12561 $as_echo "no" >&6; }
12562 fi
12563
12564
12565 test -n "$LEX" && break
12566 done
12567 test -n "$LEX" || LEX=":"
12568
12569 case "$LEX" in
12570 :|*"missing "*) ;;
12571 *) cat >conftest.l <<_ACEOF
12572 %%
12573 a { ECHO; }
12574 b { REJECT; }
12575 c { yymore (); }
12576 d { yyless (1); }
12577 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12578 yyless ((input () != 0)); }
12579 f { unput (yytext[0]); }
12580 . { BEGIN INITIAL; }
12581 %%
12582 #ifdef YYTEXT_POINTER
12583 extern char *yytext;
12584 #endif
12585 int
12586 main (void)
12587 {
12588 return ! yylex () + ! yywrap ();
12589 }
12590 _ACEOF
12591 { { ac_try="$LEX conftest.l"
12592 case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12595 esac
12596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12597 $as_echo "$ac_try_echo"; } >&5
12598 (eval "$LEX conftest.l") 2>&5
12599 ac_status=$?
12600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12601 test $ac_status = 0; }
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12603 $as_echo_n "checking lex output file root... " >&6; }
12604 if ${ac_cv_prog_lex_root+:} false; then :
12605 $as_echo_n "(cached) " >&6
12606 else
12607
12608 if test -f lex.yy.c; then
12609 ac_cv_prog_lex_root=lex.yy
12610 elif test -f lexyy.c; then
12611 ac_cv_prog_lex_root=lexyy
12612 else
12613 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12614 fi
12615 fi
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12617 $as_echo "$ac_cv_prog_lex_root" >&6; }
12618 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12619
12620 if test -z "${LEXLIB+set}"; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12622 $as_echo_n "checking lex library... " >&6; }
12623 if ${ac_cv_lib_lex+:} false; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626
12627 ac_save_LIBS=$LIBS
12628 ac_cv_lib_lex='none needed'
12629 for ac_lib in '' -lfl -ll; do
12630 LIBS="$ac_lib $ac_save_LIBS"
12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h. */
12633 `cat $LEX_OUTPUT_ROOT.c`
12634 _ACEOF
12635 if ac_fn_c_try_link "$LINENO"; then :
12636 ac_cv_lib_lex=$ac_lib
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext \
12639 conftest$ac_exeext conftest.$ac_ext
12640 test "$ac_cv_lib_lex" != 'none needed' && break
12641 done
12642 LIBS=$ac_save_LIBS
12643
12644 fi
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12646 $as_echo "$ac_cv_lib_lex" >&6; }
12647 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12648 fi
12649
12650
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12652 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12653 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656 # POSIX says lex can declare yytext either as a pointer or an array; the
12657 # default is implementation-dependent. Figure out which it is, since
12658 # not all implementations provide the %pointer and %array declarations.
12659 ac_cv_prog_lex_yytext_pointer=no
12660 ac_save_LIBS=$LIBS
12661 LIBS="$LEXLIB $ac_save_LIBS"
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12664
12665 #define YYTEXT_POINTER 1
12666 `cat $LEX_OUTPUT_ROOT.c`
12667 _ACEOF
12668 if ac_fn_c_try_link "$LINENO"; then :
12669 ac_cv_prog_lex_yytext_pointer=yes
12670 fi
12671 rm -f core conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext conftest.$ac_ext
12673 LIBS=$ac_save_LIBS
12674
12675 fi
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12677 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12678 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12679
12680 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12681
12682 fi
12683 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12684 ;;
12685 esac
12686 if test "$LEX" = :; then
12687 LEX=${am_missing_run}flex
12688 fi
12689
12690 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"
12691
12692 MKINSTALLDIRS=
12693 if test -n "$ac_aux_dir"; then
12694 case "$ac_aux_dir" in
12695 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12696 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12697 esac
12698 fi
12699 if test -z "$MKINSTALLDIRS"; then
12700 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12701 fi
12702
12703
12704
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12706 $as_echo_n "checking whether NLS is requested... " >&6; }
12707 # Check whether --enable-nls was given.
12708 if test "${enable_nls+set}" = set; then :
12709 enableval=$enable_nls; USE_NLS=$enableval
12710 else
12711 USE_NLS=yes
12712 fi
12713
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12715 $as_echo "$USE_NLS" >&6; }
12716
12717
12718
12719
12720
12721
12722 # Prepare PATH_SEPARATOR.
12723 # The user is always right.
12724 if test "${PATH_SEPARATOR+set}" != set; then
12725 echo "#! /bin/sh" >conf$$.sh
12726 echo "exit 0" >>conf$$.sh
12727 chmod +x conf$$.sh
12728 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12729 PATH_SEPARATOR=';'
12730 else
12731 PATH_SEPARATOR=:
12732 fi
12733 rm -f conf$$.sh
12734 fi
12735
12736 # Find out how to test for executable files. Don't use a zero-byte file,
12737 # as systems may use methods other than mode bits to determine executability.
12738 cat >conf$$.file <<_ASEOF
12739 #! /bin/sh
12740 exit 0
12741 _ASEOF
12742 chmod +x conf$$.file
12743 if test -x conf$$.file >/dev/null 2>&1; then
12744 ac_executable_p="test -x"
12745 else
12746 ac_executable_p="test -f"
12747 fi
12748 rm -f conf$$.file
12749
12750 # Extract the first word of "msgfmt", so it can be a program name with args.
12751 set dummy msgfmt; ac_word=$2
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12753 $as_echo_n "checking for $ac_word... " >&6; }
12754 if ${ac_cv_path_MSGFMT+:} false; then :
12755 $as_echo_n "(cached) " >&6
12756 else
12757 case "$MSGFMT" in
12758 [\\/]* | ?:[\\/]*)
12759 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12760 ;;
12761 *)
12762 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12763 for ac_dir in $PATH; do
12764 IFS="$ac_save_IFS"
12765 test -z "$ac_dir" && ac_dir=.
12766 for ac_exec_ext in '' $ac_executable_extensions; do
12767 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12768 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12769 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12770 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12771 break 2
12772 fi
12773 fi
12774 done
12775 done
12776 IFS="$ac_save_IFS"
12777 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12778 ;;
12779 esac
12780 fi
12781 MSGFMT="$ac_cv_path_MSGFMT"
12782 if test "$MSGFMT" != ":"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12784 $as_echo "$MSGFMT" >&6; }
12785 else
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12788 fi
12789
12790 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12791 set dummy gmsgfmt; ac_word=$2
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793 $as_echo_n "checking for $ac_word... " >&6; }
12794 if ${ac_cv_path_GMSGFMT+:} false; then :
12795 $as_echo_n "(cached) " >&6
12796 else
12797 case $GMSGFMT in
12798 [\\/]* | ?:[\\/]*)
12799 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12800 ;;
12801 *)
12802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12803 for as_dir in $PATH
12804 do
12805 IFS=$as_save_IFS
12806 test -z "$as_dir" && as_dir=.
12807 for ac_exec_ext in '' $ac_executable_extensions; do
12808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12809 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12811 break 2
12812 fi
12813 done
12814 done
12815 IFS=$as_save_IFS
12816
12817 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12818 ;;
12819 esac
12820 fi
12821 GMSGFMT=$ac_cv_path_GMSGFMT
12822 if test -n "$GMSGFMT"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12824 $as_echo "$GMSGFMT" >&6; }
12825 else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12828 fi
12829
12830
12831
12832
12833 # Prepare PATH_SEPARATOR.
12834 # The user is always right.
12835 if test "${PATH_SEPARATOR+set}" != set; then
12836 echo "#! /bin/sh" >conf$$.sh
12837 echo "exit 0" >>conf$$.sh
12838 chmod +x conf$$.sh
12839 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12840 PATH_SEPARATOR=';'
12841 else
12842 PATH_SEPARATOR=:
12843 fi
12844 rm -f conf$$.sh
12845 fi
12846
12847 # Find out how to test for executable files. Don't use a zero-byte file,
12848 # as systems may use methods other than mode bits to determine executability.
12849 cat >conf$$.file <<_ASEOF
12850 #! /bin/sh
12851 exit 0
12852 _ASEOF
12853 chmod +x conf$$.file
12854 if test -x conf$$.file >/dev/null 2>&1; then
12855 ac_executable_p="test -x"
12856 else
12857 ac_executable_p="test -f"
12858 fi
12859 rm -f conf$$.file
12860
12861 # Extract the first word of "xgettext", so it can be a program name with args.
12862 set dummy xgettext; ac_word=$2
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12864 $as_echo_n "checking for $ac_word... " >&6; }
12865 if ${ac_cv_path_XGETTEXT+:} false; then :
12866 $as_echo_n "(cached) " >&6
12867 else
12868 case "$XGETTEXT" in
12869 [\\/]* | ?:[\\/]*)
12870 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12871 ;;
12872 *)
12873 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12874 for ac_dir in $PATH; do
12875 IFS="$ac_save_IFS"
12876 test -z "$ac_dir" && ac_dir=.
12877 for ac_exec_ext in '' $ac_executable_extensions; do
12878 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12879 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12880 (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
12881 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12882 break 2
12883 fi
12884 fi
12885 done
12886 done
12887 IFS="$ac_save_IFS"
12888 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12889 ;;
12890 esac
12891 fi
12892 XGETTEXT="$ac_cv_path_XGETTEXT"
12893 if test "$XGETTEXT" != ":"; then
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12895 $as_echo "$XGETTEXT" >&6; }
12896 else
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898 $as_echo "no" >&6; }
12899 fi
12900
12901 rm -f messages.po
12902
12903
12904 # Prepare PATH_SEPARATOR.
12905 # The user is always right.
12906 if test "${PATH_SEPARATOR+set}" != set; then
12907 echo "#! /bin/sh" >conf$$.sh
12908 echo "exit 0" >>conf$$.sh
12909 chmod +x conf$$.sh
12910 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12911 PATH_SEPARATOR=';'
12912 else
12913 PATH_SEPARATOR=:
12914 fi
12915 rm -f conf$$.sh
12916 fi
12917
12918 # Find out how to test for executable files. Don't use a zero-byte file,
12919 # as systems may use methods other than mode bits to determine executability.
12920 cat >conf$$.file <<_ASEOF
12921 #! /bin/sh
12922 exit 0
12923 _ASEOF
12924 chmod +x conf$$.file
12925 if test -x conf$$.file >/dev/null 2>&1; then
12926 ac_executable_p="test -x"
12927 else
12928 ac_executable_p="test -f"
12929 fi
12930 rm -f conf$$.file
12931
12932 # Extract the first word of "msgmerge", so it can be a program name with args.
12933 set dummy msgmerge; ac_word=$2
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12935 $as_echo_n "checking for $ac_word... " >&6; }
12936 if ${ac_cv_path_MSGMERGE+:} false; then :
12937 $as_echo_n "(cached) " >&6
12938 else
12939 case "$MSGMERGE" in
12940 [\\/]* | ?:[\\/]*)
12941 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12942 ;;
12943 *)
12944 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12945 for ac_dir in $PATH; do
12946 IFS="$ac_save_IFS"
12947 test -z "$ac_dir" && ac_dir=.
12948 for ac_exec_ext in '' $ac_executable_extensions; do
12949 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12950 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12951 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12952 break 2
12953 fi
12954 fi
12955 done
12956 done
12957 IFS="$ac_save_IFS"
12958 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12959 ;;
12960 esac
12961 fi
12962 MSGMERGE="$ac_cv_path_MSGMERGE"
12963 if test "$MSGMERGE" != ":"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12965 $as_echo "$MSGMERGE" >&6; }
12966 else
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12969 fi
12970
12971
12972 if test "$GMSGFMT" != ":"; then
12973 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12974 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12975 : ;
12976 else
12977 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12979 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12980 GMSGFMT=":"
12981 fi
12982 fi
12983
12984 if test "$XGETTEXT" != ":"; then
12985 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12986 (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
12987 : ;
12988 else
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12990 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12991 XGETTEXT=":"
12992 fi
12993 rm -f messages.po
12994 fi
12995
12996 ac_config_commands="$ac_config_commands default-1"
12997
12998
12999
13000 if test "X$prefix" = "XNONE"; then
13001 acl_final_prefix="$ac_default_prefix"
13002 else
13003 acl_final_prefix="$prefix"
13004 fi
13005 if test "X$exec_prefix" = "XNONE"; then
13006 acl_final_exec_prefix='${prefix}'
13007 else
13008 acl_final_exec_prefix="$exec_prefix"
13009 fi
13010 acl_save_prefix="$prefix"
13011 prefix="$acl_final_prefix"
13012 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13013 prefix="$acl_save_prefix"
13014
13015
13016 # Check whether --with-gnu-ld was given.
13017 if test "${with_gnu_ld+set}" = set; then :
13018 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13019 else
13020 with_gnu_ld=no
13021 fi
13022
13023 # Prepare PATH_SEPARATOR.
13024 # The user is always right.
13025 if test "${PATH_SEPARATOR+set}" != set; then
13026 echo "#! /bin/sh" >conf$$.sh
13027 echo "exit 0" >>conf$$.sh
13028 chmod +x conf$$.sh
13029 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13030 PATH_SEPARATOR=';'
13031 else
13032 PATH_SEPARATOR=:
13033 fi
13034 rm -f conf$$.sh
13035 fi
13036 ac_prog=ld
13037 if test "$GCC" = yes; then
13038 # Check if gcc -print-prog-name=ld gives a path.
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13040 $as_echo_n "checking for ld used by GCC... " >&6; }
13041 case $host in
13042 *-*-mingw*)
13043 # gcc leaves a trailing carriage return which upsets mingw
13044 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13045 *)
13046 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13047 esac
13048 case $ac_prog in
13049 # Accept absolute paths.
13050 [\\/]* | [A-Za-z]:[\\/]*)
13051 re_direlt='/[^/][^/]*/\.\./'
13052 # Canonicalize the path of ld
13053 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13054 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13055 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13056 done
13057 test -z "$LD" && LD="$ac_prog"
13058 ;;
13059 "")
13060 # If it fails, then pretend we aren't using GCC.
13061 ac_prog=ld
13062 ;;
13063 *)
13064 # If it is relative, then search for the first ld in PATH.
13065 with_gnu_ld=unknown
13066 ;;
13067 esac
13068 elif test "$with_gnu_ld" = yes; then
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13070 $as_echo_n "checking for GNU ld... " >&6; }
13071 else
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13073 $as_echo_n "checking for non-GNU ld... " >&6; }
13074 fi
13075 if ${acl_cv_path_LD+:} false; then :
13076 $as_echo_n "(cached) " >&6
13077 else
13078 if test -z "$LD"; then
13079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13080 for ac_dir in $PATH; do
13081 test -z "$ac_dir" && ac_dir=.
13082 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13083 acl_cv_path_LD="$ac_dir/$ac_prog"
13084 # Check to see if the program is GNU ld. I'd rather use --version,
13085 # but apparently some GNU ld's only accept -v.
13086 # Break only if it was the GNU/non-GNU ld that we prefer.
13087 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
13088 test "$with_gnu_ld" != no && break
13089 else
13090 test "$with_gnu_ld" != yes && break
13091 fi
13092 fi
13093 done
13094 IFS="$ac_save_ifs"
13095 else
13096 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13097 fi
13098 fi
13099
13100 LD="$acl_cv_path_LD"
13101 if test -n "$LD"; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13103 $as_echo "$LD" >&6; }
13104 else
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13107 fi
13108 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13110 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13111 if ${acl_cv_prog_gnu_ld+:} false; then :
13112 $as_echo_n "(cached) " >&6
13113 else
13114 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13115 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
13116 acl_cv_prog_gnu_ld=yes
13117 else
13118 acl_cv_prog_gnu_ld=no
13119 fi
13120 fi
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13122 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13123 with_gnu_ld=$acl_cv_prog_gnu_ld
13124
13125
13126
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13128 $as_echo_n "checking for shared library run path origin... " >&6; }
13129 if ${acl_cv_rpath+:} false; then :
13130 $as_echo_n "(cached) " >&6
13131 else
13132
13133 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13134 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13135 . ./conftest.sh
13136 rm -f ./conftest.sh
13137 acl_cv_rpath=done
13138
13139 fi
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13141 $as_echo "$acl_cv_rpath" >&6; }
13142 wl="$acl_cv_wl"
13143 libext="$acl_cv_libext"
13144 shlibext="$acl_cv_shlibext"
13145 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13146 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13147 hardcode_direct="$acl_cv_hardcode_direct"
13148 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13149 # Check whether --enable-rpath was given.
13150 if test "${enable_rpath+set}" = set; then :
13151 enableval=$enable_rpath; :
13152 else
13153 enable_rpath=yes
13154 fi
13155
13156
13157
13158
13159
13160
13161
13162
13163 use_additional=yes
13164
13165 acl_save_prefix="$prefix"
13166 prefix="$acl_final_prefix"
13167 acl_save_exec_prefix="$exec_prefix"
13168 exec_prefix="$acl_final_exec_prefix"
13169
13170 eval additional_includedir=\"$includedir\"
13171 eval additional_libdir=\"$libdir\"
13172
13173 exec_prefix="$acl_save_exec_prefix"
13174 prefix="$acl_save_prefix"
13175
13176
13177 # Check whether --with-libiconv-prefix was given.
13178 if test "${with_libiconv_prefix+set}" = set; then :
13179 withval=$with_libiconv_prefix;
13180 if test "X$withval" = "Xno"; then
13181 use_additional=no
13182 else
13183 if test "X$withval" = "X"; then
13184
13185 acl_save_prefix="$prefix"
13186 prefix="$acl_final_prefix"
13187 acl_save_exec_prefix="$exec_prefix"
13188 exec_prefix="$acl_final_exec_prefix"
13189
13190 eval additional_includedir=\"$includedir\"
13191 eval additional_libdir=\"$libdir\"
13192
13193 exec_prefix="$acl_save_exec_prefix"
13194 prefix="$acl_save_prefix"
13195
13196 else
13197 additional_includedir="$withval/include"
13198 additional_libdir="$withval/lib"
13199 fi
13200 fi
13201
13202 fi
13203
13204
13205 # Check whether --with-libiconv-type was given.
13206 if test "${with_libiconv_type+set}" = set; then :
13207 withval=$with_libiconv_type; with_libiconv_type=$withval
13208 else
13209 with_libiconv_type=auto
13210 fi
13211
13212 lib_type=`eval echo \$with_libiconv_type`
13213
13214 LIBICONV=
13215 LTLIBICONV=
13216 INCICONV=
13217 rpathdirs=
13218 ltrpathdirs=
13219 names_already_handled=
13220 names_next_round='iconv '
13221 while test -n "$names_next_round"; do
13222 names_this_round="$names_next_round"
13223 names_next_round=
13224 for name in $names_this_round; do
13225 already_handled=
13226 for n in $names_already_handled; do
13227 if test "$n" = "$name"; then
13228 already_handled=yes
13229 break
13230 fi
13231 done
13232 if test -z "$already_handled"; then
13233 names_already_handled="$names_already_handled $name"
13234 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13235 eval value=\"\$HAVE_LIB$uppername\"
13236 if test -n "$value"; then
13237 if test "$value" = yes; then
13238 eval value=\"\$LIB$uppername\"
13239 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13240 eval value=\"\$LTLIB$uppername\"
13241 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13242 else
13243 :
13244 fi
13245 else
13246 found_dir=
13247 found_la=
13248 found_so=
13249 found_a=
13250 if test $use_additional = yes; then
13251 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13252 found_dir="$additional_libdir"
13253 found_so="$additional_libdir/lib$name.$shlibext"
13254 if test -f "$additional_libdir/lib$name.la"; then
13255 found_la="$additional_libdir/lib$name.la"
13256 fi
13257 elif test x$lib_type != xshared; then
13258 if test -f "$additional_libdir/lib$name.$libext"; then
13259 found_dir="$additional_libdir"
13260 found_a="$additional_libdir/lib$name.$libext"
13261 if test -f "$additional_libdir/lib$name.la"; then
13262 found_la="$additional_libdir/lib$name.la"
13263 fi
13264 fi
13265 fi
13266 fi
13267 if test "X$found_dir" = "X"; then
13268 for x in $LDFLAGS $LTLIBICONV; do
13269
13270 acl_save_prefix="$prefix"
13271 prefix="$acl_final_prefix"
13272 acl_save_exec_prefix="$exec_prefix"
13273 exec_prefix="$acl_final_exec_prefix"
13274 eval x=\"$x\"
13275 exec_prefix="$acl_save_exec_prefix"
13276 prefix="$acl_save_prefix"
13277
13278 case "$x" in
13279 -L*)
13280 dir=`echo "X$x" | sed -e 's/^X-L//'`
13281 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13282 found_dir="$dir"
13283 found_so="$dir/lib$name.$shlibext"
13284 if test -f "$dir/lib$name.la"; then
13285 found_la="$dir/lib$name.la"
13286 fi
13287 elif test x$lib_type != xshared; then
13288 if test -f "$dir/lib$name.$libext"; then
13289 found_dir="$dir"
13290 found_a="$dir/lib$name.$libext"
13291 if test -f "$dir/lib$name.la"; then
13292 found_la="$dir/lib$name.la"
13293 fi
13294 fi
13295 fi
13296 ;;
13297 esac
13298 if test "X$found_dir" != "X"; then
13299 break
13300 fi
13301 done
13302 fi
13303 if test "X$found_dir" != "X"; then
13304 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13305 if test "X$found_so" != "X"; then
13306 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13307 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13308 else
13309 haveit=
13310 for x in $ltrpathdirs; do
13311 if test "X$x" = "X$found_dir"; then
13312 haveit=yes
13313 break
13314 fi
13315 done
13316 if test -z "$haveit"; then
13317 ltrpathdirs="$ltrpathdirs $found_dir"
13318 fi
13319 if test "$hardcode_direct" = yes; then
13320 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13321 else
13322 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13323 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13324 haveit=
13325 for x in $rpathdirs; do
13326 if test "X$x" = "X$found_dir"; then
13327 haveit=yes
13328 break
13329 fi
13330 done
13331 if test -z "$haveit"; then
13332 rpathdirs="$rpathdirs $found_dir"
13333 fi
13334 else
13335 haveit=
13336 for x in $LDFLAGS $LIBICONV; do
13337
13338 acl_save_prefix="$prefix"
13339 prefix="$acl_final_prefix"
13340 acl_save_exec_prefix="$exec_prefix"
13341 exec_prefix="$acl_final_exec_prefix"
13342 eval x=\"$x\"
13343 exec_prefix="$acl_save_exec_prefix"
13344 prefix="$acl_save_prefix"
13345
13346 if test "X$x" = "X-L$found_dir"; then
13347 haveit=yes
13348 break
13349 fi
13350 done
13351 if test -z "$haveit"; then
13352 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13353 fi
13354 if test "$hardcode_minus_L" != no; then
13355 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13356 else
13357 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13358 fi
13359 fi
13360 fi
13361 fi
13362 else
13363 if test "X$found_a" != "X"; then
13364 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13365 else
13366 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13367 fi
13368 fi
13369 additional_includedir=
13370 case "$found_dir" in
13371 */lib | */lib/)
13372 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13373 additional_includedir="$basedir/include"
13374 ;;
13375 esac
13376 if test "X$additional_includedir" != "X"; then
13377 if test "X$additional_includedir" != "X/usr/include"; then
13378 haveit=
13379 if test "X$additional_includedir" = "X/usr/local/include"; then
13380 if test -n "$GCC"; then
13381 case $host_os in
13382 linux*) haveit=yes;;
13383 esac
13384 fi
13385 fi
13386 if test -z "$haveit"; then
13387 for x in $CPPFLAGS $INCICONV; do
13388
13389 acl_save_prefix="$prefix"
13390 prefix="$acl_final_prefix"
13391 acl_save_exec_prefix="$exec_prefix"
13392 exec_prefix="$acl_final_exec_prefix"
13393 eval x=\"$x\"
13394 exec_prefix="$acl_save_exec_prefix"
13395 prefix="$acl_save_prefix"
13396
13397 if test "X$x" = "X-I$additional_includedir"; then
13398 haveit=yes
13399 break
13400 fi
13401 done
13402 if test -z "$haveit"; then
13403 if test -d "$additional_includedir"; then
13404 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13405 fi
13406 fi
13407 fi
13408 fi
13409 fi
13410 if test -n "$found_la"; then
13411 save_libdir="$libdir"
13412 case "$found_la" in
13413 */* | *\\*) . "$found_la" ;;
13414 *) . "./$found_la" ;;
13415 esac
13416 libdir="$save_libdir"
13417 for dep in $dependency_libs; do
13418 case "$dep" in
13419 -L*)
13420 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13421 if test "X$additional_libdir" != "X/usr/lib"; then
13422 haveit=
13423 if test "X$additional_libdir" = "X/usr/local/lib"; then
13424 if test -n "$GCC"; then
13425 case $host_os in
13426 linux*) haveit=yes;;
13427 esac
13428 fi
13429 fi
13430 if test -z "$haveit"; then
13431 haveit=
13432 for x in $LDFLAGS $LIBICONV; do
13433
13434 acl_save_prefix="$prefix"
13435 prefix="$acl_final_prefix"
13436 acl_save_exec_prefix="$exec_prefix"
13437 exec_prefix="$acl_final_exec_prefix"
13438 eval x=\"$x\"
13439 exec_prefix="$acl_save_exec_prefix"
13440 prefix="$acl_save_prefix"
13441
13442 if test "X$x" = "X-L$additional_libdir"; then
13443 haveit=yes
13444 break
13445 fi
13446 done
13447 if test -z "$haveit"; then
13448 if test -d "$additional_libdir"; then
13449 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13450 fi
13451 fi
13452 haveit=
13453 for x in $LDFLAGS $LTLIBICONV; do
13454
13455 acl_save_prefix="$prefix"
13456 prefix="$acl_final_prefix"
13457 acl_save_exec_prefix="$exec_prefix"
13458 exec_prefix="$acl_final_exec_prefix"
13459 eval x=\"$x\"
13460 exec_prefix="$acl_save_exec_prefix"
13461 prefix="$acl_save_prefix"
13462
13463 if test "X$x" = "X-L$additional_libdir"; then
13464 haveit=yes
13465 break
13466 fi
13467 done
13468 if test -z "$haveit"; then
13469 if test -d "$additional_libdir"; then
13470 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13471 fi
13472 fi
13473 fi
13474 fi
13475 ;;
13476 -R*)
13477 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13478 if test "$enable_rpath" != no; then
13479 haveit=
13480 for x in $rpathdirs; do
13481 if test "X$x" = "X$dir"; then
13482 haveit=yes
13483 break
13484 fi
13485 done
13486 if test -z "$haveit"; then
13487 rpathdirs="$rpathdirs $dir"
13488 fi
13489 haveit=
13490 for x in $ltrpathdirs; do
13491 if test "X$x" = "X$dir"; then
13492 haveit=yes
13493 break
13494 fi
13495 done
13496 if test -z "$haveit"; then
13497 ltrpathdirs="$ltrpathdirs $dir"
13498 fi
13499 fi
13500 ;;
13501 -l*)
13502 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13503 ;;
13504 *.la)
13505 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13506 ;;
13507 *)
13508 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13509 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13510 ;;
13511 esac
13512 done
13513 fi
13514 else
13515 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
13516 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13517 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13518 else
13519 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
13520 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
13521 fi
13522 fi
13523 fi
13524 fi
13525 done
13526 done
13527 if test "X$rpathdirs" != "X"; then
13528 if test -n "$hardcode_libdir_separator"; then
13529 alldirs=
13530 for found_dir in $rpathdirs; do
13531 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13532 done
13533 acl_save_libdir="$libdir"
13534 libdir="$alldirs"
13535 eval flag=\"$hardcode_libdir_flag_spec\"
13536 libdir="$acl_save_libdir"
13537 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13538 else
13539 for found_dir in $rpathdirs; do
13540 acl_save_libdir="$libdir"
13541 libdir="$found_dir"
13542 eval flag=\"$hardcode_libdir_flag_spec\"
13543 libdir="$acl_save_libdir"
13544 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13545 done
13546 fi
13547 fi
13548 if test "X$ltrpathdirs" != "X"; then
13549 for found_dir in $ltrpathdirs; do
13550 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13551 done
13552 fi
13553
13554
13555
13556
13557
13558 if test -f ../gettext/uninstalled-config.sh; then
13559 relative_builddir='$(top_builddir)/../gettext'
13560 . ../gettext/uninstalled-config.sh
13561 else
13562 # The sister gettext directory doesn't exist and won't collect information on
13563 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13588 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13589 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13590 $as_echo_n "(cached) " >&6
13591 else
13592 gt_save_LIBS="$LIBS"
13593 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596 #include <CoreFoundation/CFPreferences.h>
13597 int
13598 main ()
13599 {
13600 CFPreferencesCopyAppValue(NULL, NULL)
13601 ;
13602 return 0;
13603 }
13604 _ACEOF
13605 if ac_fn_c_try_link "$LINENO"; then :
13606 gt_cv_func_CFPreferencesCopyAppValue=yes
13607 else
13608 gt_cv_func_CFPreferencesCopyAppValue=no
13609 fi
13610 rm -f core conftest.err conftest.$ac_objext \
13611 conftest$ac_exeext conftest.$ac_ext
13612 LIBS="$gt_save_LIBS"
13613 fi
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13615 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13616 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13617
13618 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13619
13620 fi
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13622 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13623 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13624 $as_echo_n "(cached) " >&6
13625 else
13626 gt_save_LIBS="$LIBS"
13627 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h. */
13630 #include <CoreFoundation/CFLocale.h>
13631 int
13632 main ()
13633 {
13634 CFLocaleCopyPreferredLanguages();
13635 ;
13636 return 0;
13637 }
13638 _ACEOF
13639 if ac_fn_c_try_link "$LINENO"; then :
13640 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13641 else
13642 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13643 fi
13644 rm -f core conftest.err conftest.$ac_objext \
13645 conftest$ac_exeext conftest.$ac_ext
13646 LIBS="$gt_save_LIBS"
13647 fi
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13649 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13650 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13651
13652 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13653
13654 fi
13655 INTL_MACOSX_LIBS=
13656 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13657 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13658 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13659 fi
13660
13661
13662
13663
13664
13665
13666 LIBINTL=
13667 LTLIBINTL=
13668 POSUB=
13669
13670 case " $gt_needs " in
13671 *" need-formatstring-macros "*) gt_api_version=3 ;;
13672 *" need-ngettext "*) gt_api_version=2 ;;
13673 *) gt_api_version=1 ;;
13674 esac
13675 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13676 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13677
13678 if test "$USE_NLS" = "yes"; then
13679 gt_use_preinstalled_gnugettext=no
13680
13681
13682 if test $gt_api_version -ge 3; then
13683 gt_revision_test_code='
13684 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13685 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13686 #endif
13687 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13688 '
13689 else
13690 gt_revision_test_code=
13691 fi
13692 if test $gt_api_version -ge 2; then
13693 gt_expression_test_code=' + * ngettext ("", "", 0)'
13694 else
13695 gt_expression_test_code=
13696 fi
13697
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13699 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13700 if eval \${$gt_func_gnugettext_libc+:} false; then :
13701 $as_echo_n "(cached) " >&6
13702 else
13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h. */
13705
13706 #include <libintl.h>
13707 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13708 extern int _nl_msg_cat_cntr;
13709 extern int *_nl_domain_bindings;
13710 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13711 #else
13712 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13713 #endif
13714 $gt_revision_test_code
13715
13716 int
13717 main ()
13718 {
13719
13720 bindtextdomain ("", "");
13721 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13722
13723 ;
13724 return 0;
13725 }
13726 _ACEOF
13727 if ac_fn_c_try_link "$LINENO"; then :
13728 eval "$gt_func_gnugettext_libc=yes"
13729 else
13730 eval "$gt_func_gnugettext_libc=no"
13731 fi
13732 rm -f core conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
13734 fi
13735 eval ac_res=\$$gt_func_gnugettext_libc
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13737 $as_echo "$ac_res" >&6; }
13738
13739 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13740
13741
13742
13743
13744
13745 am_save_CPPFLAGS="$CPPFLAGS"
13746
13747 for element in $INCICONV; do
13748 haveit=
13749 for x in $CPPFLAGS; do
13750
13751 acl_save_prefix="$prefix"
13752 prefix="$acl_final_prefix"
13753 acl_save_exec_prefix="$exec_prefix"
13754 exec_prefix="$acl_final_exec_prefix"
13755 eval x=\"$x\"
13756 exec_prefix="$acl_save_exec_prefix"
13757 prefix="$acl_save_prefix"
13758
13759 if test "X$x" = "X$element"; then
13760 haveit=yes
13761 break
13762 fi
13763 done
13764 if test -z "$haveit"; then
13765 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13766 fi
13767 done
13768
13769
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13771 $as_echo_n "checking for iconv... " >&6; }
13772 if ${am_cv_func_iconv+:} false; then :
13773 $as_echo_n "(cached) " >&6
13774 else
13775
13776 am_cv_func_iconv="no, consider installing GNU libiconv"
13777 am_cv_lib_iconv=no
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13780
13781 #include <stdlib.h>
13782 #include <iconv.h>
13783
13784 int
13785 main ()
13786 {
13787 iconv_t cd = iconv_open("","");
13788 iconv(cd,NULL,NULL,NULL,NULL);
13789 iconv_close(cd);
13790 ;
13791 return 0;
13792 }
13793 _ACEOF
13794 if ac_fn_c_try_link "$LINENO"; then :
13795 am_cv_func_iconv=yes
13796 fi
13797 rm -f core conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
13799 if test "$am_cv_func_iconv" != yes; then
13800 am_save_LIBS="$LIBS"
13801 LIBS="$LIBS $LIBICONV"
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804
13805 #include <stdlib.h>
13806 #include <iconv.h>
13807
13808 int
13809 main ()
13810 {
13811 iconv_t cd = iconv_open("","");
13812 iconv(cd,NULL,NULL,NULL,NULL);
13813 iconv_close(cd);
13814 ;
13815 return 0;
13816 }
13817 _ACEOF
13818 if ac_fn_c_try_link "$LINENO"; then :
13819 am_cv_lib_iconv=yes
13820 am_cv_func_iconv=yes
13821 fi
13822 rm -f core conftest.err conftest.$ac_objext \
13823 conftest$ac_exeext conftest.$ac_ext
13824 LIBS="$am_save_LIBS"
13825 fi
13826
13827 fi
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13829 $as_echo "$am_cv_func_iconv" >&6; }
13830 if test "$am_cv_func_iconv" = yes; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13832 $as_echo_n "checking for working iconv... " >&6; }
13833 if ${am_cv_func_iconv_works+:} false; then :
13834 $as_echo_n "(cached) " >&6
13835 else
13836
13837 am_save_LIBS="$LIBS"
13838 if test $am_cv_lib_iconv = yes; then
13839 LIBS="$LIBS $LIBICONV"
13840 fi
13841 am_cv_func_iconv_works=no
13842 for ac_iconv_const in '' 'const'; do
13843 if test "$cross_compiling" = yes; then :
13844 case "$host_os" in
13845 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13846 *) am_cv_func_iconv_works="guessing yes" ;;
13847 esac
13848 else
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13851
13852 #include <iconv.h>
13853 #include <string.h>
13854
13855 #ifndef ICONV_CONST
13856 # define ICONV_CONST $ac_iconv_const
13857 #endif
13858
13859 int
13860 main ()
13861 {
13862 int result = 0;
13863 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
13864 successful returns. This is even documented in
13865 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
13866 {
13867 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13868 if (cd_utf8_to_88591 != (iconv_t)(-1))
13869 {
13870 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
13871 char buf[10];
13872 ICONV_CONST char *inptr = input;
13873 size_t inbytesleft = strlen (input);
13874 char *outptr = buf;
13875 size_t outbytesleft = sizeof (buf);
13876 size_t res = iconv (cd_utf8_to_88591,
13877 &inptr, &inbytesleft,
13878 &outptr, &outbytesleft);
13879 if (res == 0)
13880 result |= 1;
13881 iconv_close (cd_utf8_to_88591);
13882 }
13883 }
13884 /* Test against Solaris 10 bug: Failures are not distinguishable from
13885 successful returns. */
13886 {
13887 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13888 if (cd_ascii_to_88591 != (iconv_t)(-1))
13889 {
13890 static ICONV_CONST char input[] = "\263";
13891 char buf[10];
13892 ICONV_CONST char *inptr = input;
13893 size_t inbytesleft = strlen (input);
13894 char *outptr = buf;
13895 size_t outbytesleft = sizeof (buf);
13896 size_t res = iconv (cd_ascii_to_88591,
13897 &inptr, &inbytesleft,
13898 &outptr, &outbytesleft);
13899 if (res == 0)
13900 result |= 2;
13901 iconv_close (cd_ascii_to_88591);
13902 }
13903 }
13904 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
13905 {
13906 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
13907 if (cd_88591_to_utf8 != (iconv_t)(-1))
13908 {
13909 static ICONV_CONST char input[] = "\304";
13910 static char buf[2] = { (char)0xDE, (char)0xAD };
13911 ICONV_CONST char *inptr = input;
13912 size_t inbytesleft = 1;
13913 char *outptr = buf;
13914 size_t outbytesleft = 1;
13915 size_t res = iconv (cd_88591_to_utf8,
13916 &inptr, &inbytesleft,
13917 &outptr, &outbytesleft);
13918 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
13919 result |= 4;
13920 iconv_close (cd_88591_to_utf8);
13921 }
13922 }
13923 #if 0 /* This bug could be worked around by the caller. */
13924 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13925 {
13926 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13927 if (cd_88591_to_utf8 != (iconv_t)(-1))
13928 {
13929 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13930 char buf[50];
13931 ICONV_CONST char *inptr = input;
13932 size_t inbytesleft = strlen (input);
13933 char *outptr = buf;
13934 size_t outbytesleft = sizeof (buf);
13935 size_t res = iconv (cd_88591_to_utf8,
13936 &inptr, &inbytesleft,
13937 &outptr, &outbytesleft);
13938 if ((int)res > 0)
13939 result |= 8;
13940 iconv_close (cd_88591_to_utf8);
13941 }
13942 }
13943 #endif
13944 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13945 provided. */
13946 {
13947 /* Try standardized names. */
13948 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
13949 /* Try IRIX, OSF/1 names. */
13950 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
13951 /* Try AIX names. */
13952 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
13953 /* Try HP-UX names. */
13954 iconv_t cd4 = iconv_open ("utf8", "eucJP");
13955 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
13956 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
13957 result |= 16;
13958 if (cd1 != (iconv_t)(-1))
13959 iconv_close (cd1);
13960 if (cd2 != (iconv_t)(-1))
13961 iconv_close (cd2);
13962 if (cd3 != (iconv_t)(-1))
13963 iconv_close (cd3);
13964 if (cd4 != (iconv_t)(-1))
13965 iconv_close (cd4);
13966 }
13967 return result;
13968
13969 ;
13970 return 0;
13971 }
13972 _ACEOF
13973 if ac_fn_c_try_run "$LINENO"; then :
13974 am_cv_func_iconv_works=yes
13975 fi
13976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13977 conftest.$ac_objext conftest.beam conftest.$ac_ext
13978 fi
13979
13980 test "$am_cv_func_iconv_works" = no || break
13981 done
13982 LIBS="$am_save_LIBS"
13983
13984 fi
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13986 $as_echo "$am_cv_func_iconv_works" >&6; }
13987 case "$am_cv_func_iconv_works" in
13988 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13989 *) am_func_iconv=yes ;;
13990 esac
13991 else
13992 am_func_iconv=no am_cv_lib_iconv=no
13993 fi
13994 if test "$am_func_iconv" = yes; then
13995
13996 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13997
13998 fi
13999 if test "$am_cv_lib_iconv" = yes; then
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14001 $as_echo_n "checking how to link with libiconv... " >&6; }
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14003 $as_echo "$LIBICONV" >&6; }
14004 else
14005 CPPFLAGS="$am_save_CPPFLAGS"
14006 LIBICONV=
14007 LTLIBICONV=
14008 fi
14009
14010
14011
14012
14013
14014
14015 use_additional=yes
14016
14017 acl_save_prefix="$prefix"
14018 prefix="$acl_final_prefix"
14019 acl_save_exec_prefix="$exec_prefix"
14020 exec_prefix="$acl_final_exec_prefix"
14021
14022 eval additional_includedir=\"$includedir\"
14023 eval additional_libdir=\"$libdir\"
14024
14025 exec_prefix="$acl_save_exec_prefix"
14026 prefix="$acl_save_prefix"
14027
14028
14029 # Check whether --with-libintl-prefix was given.
14030 if test "${with_libintl_prefix+set}" = set; then :
14031 withval=$with_libintl_prefix;
14032 if test "X$withval" = "Xno"; then
14033 use_additional=no
14034 else
14035 if test "X$withval" = "X"; then
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
14042 eval additional_includedir=\"$includedir\"
14043 eval additional_libdir=\"$libdir\"
14044
14045 exec_prefix="$acl_save_exec_prefix"
14046 prefix="$acl_save_prefix"
14047
14048 else
14049 additional_includedir="$withval/include"
14050 additional_libdir="$withval/lib"
14051 fi
14052 fi
14053
14054 fi
14055
14056
14057 # Check whether --with-libintl-type was given.
14058 if test "${with_libintl_type+set}" = set; then :
14059 withval=$with_libintl_type; with_libintl_type=$withval
14060 else
14061 with_libintl_type=auto
14062 fi
14063
14064 lib_type=`eval echo \$with_libintl_type`
14065
14066 LIBINTL=
14067 LTLIBINTL=
14068 INCINTL=
14069 rpathdirs=
14070 ltrpathdirs=
14071 names_already_handled=
14072 names_next_round='intl '
14073 while test -n "$names_next_round"; do
14074 names_this_round="$names_next_round"
14075 names_next_round=
14076 for name in $names_this_round; do
14077 already_handled=
14078 for n in $names_already_handled; do
14079 if test "$n" = "$name"; then
14080 already_handled=yes
14081 break
14082 fi
14083 done
14084 if test -z "$already_handled"; then
14085 names_already_handled="$names_already_handled $name"
14086 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14087 eval value=\"\$HAVE_LIB$uppername\"
14088 if test -n "$value"; then
14089 if test "$value" = yes; then
14090 eval value=\"\$LIB$uppername\"
14091 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14092 eval value=\"\$LTLIB$uppername\"
14093 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14094 else
14095 :
14096 fi
14097 else
14098 found_dir=
14099 found_la=
14100 found_so=
14101 found_a=
14102 if test $use_additional = yes; then
14103 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14104 found_dir="$additional_libdir"
14105 found_so="$additional_libdir/lib$name.$shlibext"
14106 if test -f "$additional_libdir/lib$name.la"; then
14107 found_la="$additional_libdir/lib$name.la"
14108 fi
14109 elif test x$lib_type != xshared; then
14110 if test -f "$additional_libdir/lib$name.$libext"; then
14111 found_dir="$additional_libdir"
14112 found_a="$additional_libdir/lib$name.$libext"
14113 if test -f "$additional_libdir/lib$name.la"; then
14114 found_la="$additional_libdir/lib$name.la"
14115 fi
14116 fi
14117 fi
14118 fi
14119 if test "X$found_dir" = "X"; then
14120 for x in $LDFLAGS $LTLIBINTL; do
14121
14122 acl_save_prefix="$prefix"
14123 prefix="$acl_final_prefix"
14124 acl_save_exec_prefix="$exec_prefix"
14125 exec_prefix="$acl_final_exec_prefix"
14126 eval x=\"$x\"
14127 exec_prefix="$acl_save_exec_prefix"
14128 prefix="$acl_save_prefix"
14129
14130 case "$x" in
14131 -L*)
14132 dir=`echo "X$x" | sed -e 's/^X-L//'`
14133 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14134 found_dir="$dir"
14135 found_so="$dir/lib$name.$shlibext"
14136 if test -f "$dir/lib$name.la"; then
14137 found_la="$dir/lib$name.la"
14138 fi
14139 elif test x$lib_type != xshared; then
14140 if test -f "$dir/lib$name.$libext"; then
14141 found_dir="$dir"
14142 found_a="$dir/lib$name.$libext"
14143 if test -f "$dir/lib$name.la"; then
14144 found_la="$dir/lib$name.la"
14145 fi
14146 fi
14147 fi
14148 ;;
14149 esac
14150 if test "X$found_dir" != "X"; then
14151 break
14152 fi
14153 done
14154 fi
14155 if test "X$found_dir" != "X"; then
14156 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14157 if test "X$found_so" != "X"; then
14158 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14159 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14160 else
14161 haveit=
14162 for x in $ltrpathdirs; do
14163 if test "X$x" = "X$found_dir"; then
14164 haveit=yes
14165 break
14166 fi
14167 done
14168 if test -z "$haveit"; then
14169 ltrpathdirs="$ltrpathdirs $found_dir"
14170 fi
14171 if test "$hardcode_direct" = yes; then
14172 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14173 else
14174 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14175 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14176 haveit=
14177 for x in $rpathdirs; do
14178 if test "X$x" = "X$found_dir"; then
14179 haveit=yes
14180 break
14181 fi
14182 done
14183 if test -z "$haveit"; then
14184 rpathdirs="$rpathdirs $found_dir"
14185 fi
14186 else
14187 haveit=
14188 for x in $LDFLAGS $LIBINTL; do
14189
14190 acl_save_prefix="$prefix"
14191 prefix="$acl_final_prefix"
14192 acl_save_exec_prefix="$exec_prefix"
14193 exec_prefix="$acl_final_exec_prefix"
14194 eval x=\"$x\"
14195 exec_prefix="$acl_save_exec_prefix"
14196 prefix="$acl_save_prefix"
14197
14198 if test "X$x" = "X-L$found_dir"; then
14199 haveit=yes
14200 break
14201 fi
14202 done
14203 if test -z "$haveit"; then
14204 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14205 fi
14206 if test "$hardcode_minus_L" != no; then
14207 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14208 else
14209 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14210 fi
14211 fi
14212 fi
14213 fi
14214 else
14215 if test "X$found_a" != "X"; then
14216 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14217 else
14218 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14219 fi
14220 fi
14221 additional_includedir=
14222 case "$found_dir" in
14223 */lib | */lib/)
14224 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14225 additional_includedir="$basedir/include"
14226 ;;
14227 esac
14228 if test "X$additional_includedir" != "X"; then
14229 if test "X$additional_includedir" != "X/usr/include"; then
14230 haveit=
14231 if test "X$additional_includedir" = "X/usr/local/include"; then
14232 if test -n "$GCC"; then
14233 case $host_os in
14234 linux*) haveit=yes;;
14235 esac
14236 fi
14237 fi
14238 if test -z "$haveit"; then
14239 for x in $CPPFLAGS $INCINTL; do
14240
14241 acl_save_prefix="$prefix"
14242 prefix="$acl_final_prefix"
14243 acl_save_exec_prefix="$exec_prefix"
14244 exec_prefix="$acl_final_exec_prefix"
14245 eval x=\"$x\"
14246 exec_prefix="$acl_save_exec_prefix"
14247 prefix="$acl_save_prefix"
14248
14249 if test "X$x" = "X-I$additional_includedir"; then
14250 haveit=yes
14251 break
14252 fi
14253 done
14254 if test -z "$haveit"; then
14255 if test -d "$additional_includedir"; then
14256 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14257 fi
14258 fi
14259 fi
14260 fi
14261 fi
14262 if test -n "$found_la"; then
14263 save_libdir="$libdir"
14264 case "$found_la" in
14265 */* | *\\*) . "$found_la" ;;
14266 *) . "./$found_la" ;;
14267 esac
14268 libdir="$save_libdir"
14269 for dep in $dependency_libs; do
14270 case "$dep" in
14271 -L*)
14272 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14273 if test "X$additional_libdir" != "X/usr/lib"; then
14274 haveit=
14275 if test "X$additional_libdir" = "X/usr/local/lib"; then
14276 if test -n "$GCC"; then
14277 case $host_os in
14278 linux*) haveit=yes;;
14279 esac
14280 fi
14281 fi
14282 if test -z "$haveit"; then
14283 haveit=
14284 for x in $LDFLAGS $LIBINTL; do
14285
14286 acl_save_prefix="$prefix"
14287 prefix="$acl_final_prefix"
14288 acl_save_exec_prefix="$exec_prefix"
14289 exec_prefix="$acl_final_exec_prefix"
14290 eval x=\"$x\"
14291 exec_prefix="$acl_save_exec_prefix"
14292 prefix="$acl_save_prefix"
14293
14294 if test "X$x" = "X-L$additional_libdir"; then
14295 haveit=yes
14296 break
14297 fi
14298 done
14299 if test -z "$haveit"; then
14300 if test -d "$additional_libdir"; then
14301 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14302 fi
14303 fi
14304 haveit=
14305 for x in $LDFLAGS $LTLIBINTL; do
14306
14307 acl_save_prefix="$prefix"
14308 prefix="$acl_final_prefix"
14309 acl_save_exec_prefix="$exec_prefix"
14310 exec_prefix="$acl_final_exec_prefix"
14311 eval x=\"$x\"
14312 exec_prefix="$acl_save_exec_prefix"
14313 prefix="$acl_save_prefix"
14314
14315 if test "X$x" = "X-L$additional_libdir"; then
14316 haveit=yes
14317 break
14318 fi
14319 done
14320 if test -z "$haveit"; then
14321 if test -d "$additional_libdir"; then
14322 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14323 fi
14324 fi
14325 fi
14326 fi
14327 ;;
14328 -R*)
14329 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14330 if test "$enable_rpath" != no; then
14331 haveit=
14332 for x in $rpathdirs; do
14333 if test "X$x" = "X$dir"; then
14334 haveit=yes
14335 break
14336 fi
14337 done
14338 if test -z "$haveit"; then
14339 rpathdirs="$rpathdirs $dir"
14340 fi
14341 haveit=
14342 for x in $ltrpathdirs; do
14343 if test "X$x" = "X$dir"; then
14344 haveit=yes
14345 break
14346 fi
14347 done
14348 if test -z "$haveit"; then
14349 ltrpathdirs="$ltrpathdirs $dir"
14350 fi
14351 fi
14352 ;;
14353 -l*)
14354 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14355 ;;
14356 *.la)
14357 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14358 ;;
14359 *)
14360 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14361 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14362 ;;
14363 esac
14364 done
14365 fi
14366 else
14367 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14368 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14369 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14370 else
14371 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14372 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14373 fi
14374 fi
14375 fi
14376 fi
14377 done
14378 done
14379 if test "X$rpathdirs" != "X"; then
14380 if test -n "$hardcode_libdir_separator"; then
14381 alldirs=
14382 for found_dir in $rpathdirs; do
14383 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14384 done
14385 acl_save_libdir="$libdir"
14386 libdir="$alldirs"
14387 eval flag=\"$hardcode_libdir_flag_spec\"
14388 libdir="$acl_save_libdir"
14389 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14390 else
14391 for found_dir in $rpathdirs; do
14392 acl_save_libdir="$libdir"
14393 libdir="$found_dir"
14394 eval flag=\"$hardcode_libdir_flag_spec\"
14395 libdir="$acl_save_libdir"
14396 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14397 done
14398 fi
14399 fi
14400 if test "X$ltrpathdirs" != "X"; then
14401 for found_dir in $ltrpathdirs; do
14402 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14403 done
14404 fi
14405
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14407 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14408 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14409 $as_echo_n "(cached) " >&6
14410 else
14411 gt_save_CPPFLAGS="$CPPFLAGS"
14412 CPPFLAGS="$CPPFLAGS $INCINTL"
14413 gt_save_LIBS="$LIBS"
14414 LIBS="$LIBS $LIBINTL"
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14417
14418 #include <libintl.h>
14419 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14420 extern int _nl_msg_cat_cntr;
14421 extern
14422 #ifdef __cplusplus
14423 "C"
14424 #endif
14425 const char *_nl_expand_alias (const char *);
14426 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14427 #else
14428 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14429 #endif
14430 $gt_revision_test_code
14431
14432 int
14433 main ()
14434 {
14435
14436 bindtextdomain ("", "");
14437 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14438
14439 ;
14440 return 0;
14441 }
14442 _ACEOF
14443 if ac_fn_c_try_link "$LINENO"; then :
14444 eval "$gt_func_gnugettext_libintl=yes"
14445 else
14446 eval "$gt_func_gnugettext_libintl=no"
14447 fi
14448 rm -f core conftest.err conftest.$ac_objext \
14449 conftest$ac_exeext conftest.$ac_ext
14450 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14451 LIBS="$LIBS $LIBICONV"
14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14454
14455 #include <libintl.h>
14456 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14457 extern int _nl_msg_cat_cntr;
14458 extern
14459 #ifdef __cplusplus
14460 "C"
14461 #endif
14462 const char *_nl_expand_alias (const char *);
14463 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14464 #else
14465 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14466 #endif
14467 $gt_revision_test_code
14468
14469 int
14470 main ()
14471 {
14472
14473 bindtextdomain ("", "");
14474 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14475
14476 ;
14477 return 0;
14478 }
14479 _ACEOF
14480 if ac_fn_c_try_link "$LINENO"; then :
14481 LIBINTL="$LIBINTL $LIBICONV"
14482 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14483 eval "$gt_func_gnugettext_libintl=yes"
14484
14485 fi
14486 rm -f core conftest.err conftest.$ac_objext \
14487 conftest$ac_exeext conftest.$ac_ext
14488 fi
14489 CPPFLAGS="$gt_save_CPPFLAGS"
14490 LIBS="$gt_save_LIBS"
14491 fi
14492 eval ac_res=\$$gt_func_gnugettext_libintl
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14494 $as_echo "$ac_res" >&6; }
14495 fi
14496
14497 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14498 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14499 && test "$PACKAGE" != gettext-runtime \
14500 && test "$PACKAGE" != gettext-tools; }; then
14501 gt_use_preinstalled_gnugettext=yes
14502 else
14503 LIBINTL=
14504 LTLIBINTL=
14505 INCINTL=
14506 fi
14507
14508
14509
14510 if test -n "$INTL_MACOSX_LIBS"; then
14511 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14512 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14513 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14514 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14515 fi
14516 fi
14517
14518 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14519 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14520
14521 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14522
14523 else
14524 USE_NLS=no
14525 fi
14526 fi
14527
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14529 $as_echo_n "checking whether to use NLS... " >&6; }
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14531 $as_echo "$USE_NLS" >&6; }
14532 if test "$USE_NLS" = "yes"; then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14534 $as_echo_n "checking where the gettext function comes from... " >&6; }
14535 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14536 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14537 gt_source="external libintl"
14538 else
14539 gt_source="libc"
14540 fi
14541 else
14542 gt_source="included intl directory"
14543 fi
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14545 $as_echo "$gt_source" >&6; }
14546 fi
14547
14548 if test "$USE_NLS" = "yes"; then
14549
14550 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14551 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14553 $as_echo_n "checking how to link with libintl... " >&6; }
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14555 $as_echo "$LIBINTL" >&6; }
14556
14557 for element in $INCINTL; do
14558 haveit=
14559 for x in $CPPFLAGS; do
14560
14561 acl_save_prefix="$prefix"
14562 prefix="$acl_final_prefix"
14563 acl_save_exec_prefix="$exec_prefix"
14564 exec_prefix="$acl_final_exec_prefix"
14565 eval x=\"$x\"
14566 exec_prefix="$acl_save_exec_prefix"
14567 prefix="$acl_save_prefix"
14568
14569 if test "X$x" = "X$element"; then
14570 haveit=yes
14571 break
14572 fi
14573 done
14574 if test -z "$haveit"; then
14575 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14576 fi
14577 done
14578
14579 fi
14580
14581
14582 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14583
14584
14585 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14586
14587 fi
14588
14589 POSUB=po
14590 fi
14591
14592
14593
14594 INTLLIBS="$LIBINTL"
14595
14596
14597
14598
14599
14600
14601 fi
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14614 $as_echo_n "checking whether NLS is requested... " >&6; }
14615 if test x"$USE_NLS" != xyes; then
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14617 $as_echo "no" >&6; }
14618 else
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14620 $as_echo "yes" >&6; }
14621
14622 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14623
14624
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14626 $as_echo_n "checking for catalogs to be installed... " >&6; }
14627 # Look for .po and .gmo files in the source directory.
14628 CATALOGS=
14629 XLINGUAS=
14630 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14631 # If there aren't any .gmo files the shell will give us the
14632 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14633 # weeded out.
14634 case "$cat" in *\**)
14635 continue;;
14636 esac
14637 # The quadruple backslash is collapsed to a double backslash
14638 # by the backticks, then collapsed again by the double quotes,
14639 # leaving us with one backslash in the sed expression (right
14640 # before the dot that mustn't act as a wildcard).
14641 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14642 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14643 # The user is allowed to set LINGUAS to a list of languages to
14644 # install catalogs for. If it's empty that means "all of them."
14645 if test "x$LINGUAS" = x; then
14646 CATALOGS="$CATALOGS $cat"
14647 XLINGUAS="$XLINGUAS $lang"
14648 else
14649 case "$LINGUAS" in *$lang*)
14650 CATALOGS="$CATALOGS $cat"
14651 XLINGUAS="$XLINGUAS $lang"
14652 ;;
14653 esac
14654 fi
14655 done
14656 LINGUAS="$XLINGUAS"
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14658 $as_echo "$LINGUAS" >&6; }
14659
14660
14661 DATADIRNAME=share
14662
14663 INSTOBJEXT=.mo
14664
14665 GENCAT=gencat
14666
14667 CATOBJEXT=.gmo
14668
14669 fi
14670
14671
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14673 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14674 # Check whether --enable-maintainer-mode was given.
14675 if test "${enable_maintainer_mode+set}" = set; then :
14676 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14677 else
14678 USE_MAINTAINER_MODE=no
14679 fi
14680
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14682 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14683 if test $USE_MAINTAINER_MODE = yes; then
14684 MAINTAINER_MODE_TRUE=
14685 MAINTAINER_MODE_FALSE='#'
14686 else
14687 MAINTAINER_MODE_TRUE='#'
14688 MAINTAINER_MODE_FALSE=
14689 fi
14690
14691 MAINT=$MAINTAINER_MODE_TRUE
14692
14693
14694 if false; then
14695 GENINSRC_NEVER_TRUE=
14696 GENINSRC_NEVER_FALSE='#'
14697 else
14698 GENINSRC_NEVER_TRUE='#'
14699 GENINSRC_NEVER_FALSE=
14700 fi
14701
14702
14703 if test -n "$EXEEXT"; then
14704
14705 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
14706
14707 fi
14708
14709 cat >>confdefs.h <<_ACEOF
14710 #define EXECUTABLE_SUFFIX "${EXEEXT}"
14711 _ACEOF
14712
14713
14714 # host-specific stuff:
14715
14716 HDEFINES=
14717
14718 . ${srcdir}/../bfd/configure.host
14719
14720
14721 AR=${AR-ar}
14722
14723 if test -n "$ac_tool_prefix"; then
14724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14725 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14727 $as_echo_n "checking for $ac_word... " >&6; }
14728 if ${ac_cv_prog_RANLIB+:} false; then :
14729 $as_echo_n "(cached) " >&6
14730 else
14731 if test -n "$RANLIB"; then
14732 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14733 else
14734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14735 for as_dir in $PATH
14736 do
14737 IFS=$as_save_IFS
14738 test -z "$as_dir" && as_dir=.
14739 for ac_exec_ext in '' $ac_executable_extensions; do
14740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14741 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14743 break 2
14744 fi
14745 done
14746 done
14747 IFS=$as_save_IFS
14748
14749 fi
14750 fi
14751 RANLIB=$ac_cv_prog_RANLIB
14752 if test -n "$RANLIB"; then
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14754 $as_echo "$RANLIB" >&6; }
14755 else
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14757 $as_echo "no" >&6; }
14758 fi
14759
14760
14761 fi
14762 if test -z "$ac_cv_prog_RANLIB"; then
14763 ac_ct_RANLIB=$RANLIB
14764 # Extract the first word of "ranlib", so it can be a program name with args.
14765 set dummy ranlib; ac_word=$2
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14767 $as_echo_n "checking for $ac_word... " >&6; }
14768 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14769 $as_echo_n "(cached) " >&6
14770 else
14771 if test -n "$ac_ct_RANLIB"; then
14772 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14773 else
14774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14775 for as_dir in $PATH
14776 do
14777 IFS=$as_save_IFS
14778 test -z "$as_dir" && as_dir=.
14779 for ac_exec_ext in '' $ac_executable_extensions; do
14780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14781 ac_cv_prog_ac_ct_RANLIB="ranlib"
14782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14783 break 2
14784 fi
14785 done
14786 done
14787 IFS=$as_save_IFS
14788
14789 fi
14790 fi
14791 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14792 if test -n "$ac_ct_RANLIB"; then
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14794 $as_echo "$ac_ct_RANLIB" >&6; }
14795 else
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14797 $as_echo "no" >&6; }
14798 fi
14799
14800 if test "x$ac_ct_RANLIB" = x; then
14801 RANLIB=":"
14802 else
14803 case $cross_compiling:$ac_tool_warned in
14804 yes:)
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14807 ac_tool_warned=yes ;;
14808 esac
14809 RANLIB=$ac_ct_RANLIB
14810 fi
14811 else
14812 RANLIB="$ac_cv_prog_RANLIB"
14813 fi
14814
14815
14816
14817 # Put a plausible default for CC_FOR_BUILD in Makefile.
14818 if test -z "$CC_FOR_BUILD"; then
14819 if test "x$cross_compiling" = "xno"; then
14820 CC_FOR_BUILD='$(CC)'
14821 else
14822 CC_FOR_BUILD=gcc
14823 fi
14824 fi
14825
14826 # Also set EXEEXT_FOR_BUILD.
14827 if test "x$cross_compiling" = "xno"; then
14828 EXEEXT_FOR_BUILD='$(EXEEXT)'
14829 else
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
14831 $as_echo_n "checking for build system executable suffix... " >&6; }
14832 if ${bfd_cv_build_exeext+:} false; then :
14833 $as_echo_n "(cached) " >&6
14834 else
14835 rm -f conftest*
14836 echo 'int main () { return 0; }' > conftest.c
14837 bfd_cv_build_exeext=
14838 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
14839 for file in conftest.*; do
14840 case $file in
14841 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
14842 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
14843 esac
14844 done
14845 rm -f conftest*
14846 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
14847 fi
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
14849 $as_echo "$bfd_cv_build_exeext" >&6; }
14850 EXEEXT_FOR_BUILD=""
14851 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
14852 fi
14853
14854
14855 DEMANGLER_NAME=c++filt
14856 case "${host}" in
14857 *-*-go32* | *-*-msdos*)
14858 DEMANGLER_NAME=cxxfilt
14859 esac
14860
14861
14862 # We use headers from include/ that check various HAVE_*_H macros, thus
14863 # should ensure they are set by configure. This is true even when C99
14864 # guarantees they are available.
14865 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
14866 # Besides those, we need to check anything used in binutils/ not in C99.
14867 for ac_header in fcntl.h inttypes.h stdint.h sys/file.h \
14868 sys/stat.h sys/time.h sys/types.h unistd.h
14869 do :
14870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14871 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14872 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14873 cat >>confdefs.h <<_ACEOF
14874 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14875 _ACEOF
14876
14877 fi
14878
14879 done
14880
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
14882 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
14883 if ${ac_cv_header_sys_wait_h+:} false; then :
14884 $as_echo_n "(cached) " >&6
14885 else
14886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14887 /* end confdefs.h. */
14888 #include <sys/types.h>
14889 #include <sys/wait.h>
14890 #ifndef WEXITSTATUS
14891 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14892 #endif
14893 #ifndef WIFEXITED
14894 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14895 #endif
14896
14897 int
14898 main ()
14899 {
14900 int s;
14901 wait (&s);
14902 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14903 ;
14904 return 0;
14905 }
14906 _ACEOF
14907 if ac_fn_c_try_compile "$LINENO"; then :
14908 ac_cv_header_sys_wait_h=yes
14909 else
14910 ac_cv_header_sys_wait_h=no
14911 fi
14912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913 fi
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
14915 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
14916 if test $ac_cv_header_sys_wait_h = yes; then
14917
14918 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14919
14920 fi
14921
14922
14923
14924
14925 for ac_header in $ac_header_list
14926 do :
14927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14928 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14929 "
14930 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14931 cat >>confdefs.h <<_ACEOF
14932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14933 _ACEOF
14934
14935 fi
14936
14937 done
14938
14939
14940
14941
14942
14943
14944
14945 save_ASAN_OPTIONS="$ASAN_OPTIONS"
14946 ASAN_OPTIONS=detect_leaks=0
14947 export ASAN_OPTIONS
14948
14949 for ac_func in getpagesize
14950 do :
14951 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14952 if test "x$ac_cv_func_getpagesize" = xyes; then :
14953 cat >>confdefs.h <<_ACEOF
14954 #define HAVE_GETPAGESIZE 1
14955 _ACEOF
14956
14957 fi
14958 done
14959
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14961 $as_echo_n "checking for working mmap... " >&6; }
14962 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14963 $as_echo_n "(cached) " >&6
14964 else
14965 if test "$cross_compiling" = yes; then :
14966 ac_cv_func_mmap_fixed_mapped=no
14967 else
14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969 /* end confdefs.h. */
14970 $ac_includes_default
14971 /* malloc might have been renamed as rpl_malloc. */
14972 #undef malloc
14973
14974 /* Thanks to Mike Haertel and Jim Avera for this test.
14975 Here is a matrix of mmap possibilities:
14976 mmap private not fixed
14977 mmap private fixed at somewhere currently unmapped
14978 mmap private fixed at somewhere already mapped
14979 mmap shared not fixed
14980 mmap shared fixed at somewhere currently unmapped
14981 mmap shared fixed at somewhere already mapped
14982 For private mappings, we should verify that changes cannot be read()
14983 back from the file, nor mmap's back from the file at a different
14984 address. (There have been systems where private was not correctly
14985 implemented like the infamous i386 svr4.0, and systems where the
14986 VM page cache was not coherent with the file system buffer cache
14987 like early versions of FreeBSD and possibly contemporary NetBSD.)
14988 For shared mappings, we should conversely verify that changes get
14989 propagated back to all the places they're supposed to be.
14990
14991 Grep wants private fixed already mapped.
14992 The main things grep needs to know about mmap are:
14993 * does it exist and is it safe to write into the mmap'd area
14994 * how to use it (BSD variants) */
14995
14996 #include <fcntl.h>
14997 #include <sys/mman.h>
14998
14999 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15000 char *malloc ();
15001 #endif
15002
15003 /* This mess was copied from the GNU getpagesize.h. */
15004 #ifndef HAVE_GETPAGESIZE
15005 # ifdef _SC_PAGESIZE
15006 # define getpagesize() sysconf(_SC_PAGESIZE)
15007 # else /* no _SC_PAGESIZE */
15008 # ifdef HAVE_SYS_PARAM_H
15009 # include <sys/param.h>
15010 # ifdef EXEC_PAGESIZE
15011 # define getpagesize() EXEC_PAGESIZE
15012 # else /* no EXEC_PAGESIZE */
15013 # ifdef NBPG
15014 # define getpagesize() NBPG * CLSIZE
15015 # ifndef CLSIZE
15016 # define CLSIZE 1
15017 # endif /* no CLSIZE */
15018 # else /* no NBPG */
15019 # ifdef NBPC
15020 # define getpagesize() NBPC
15021 # else /* no NBPC */
15022 # ifdef PAGESIZE
15023 # define getpagesize() PAGESIZE
15024 # endif /* PAGESIZE */
15025 # endif /* no NBPC */
15026 # endif /* no NBPG */
15027 # endif /* no EXEC_PAGESIZE */
15028 # else /* no HAVE_SYS_PARAM_H */
15029 # define getpagesize() 8192 /* punt totally */
15030 # endif /* no HAVE_SYS_PARAM_H */
15031 # endif /* no _SC_PAGESIZE */
15032
15033 #endif /* no HAVE_GETPAGESIZE */
15034
15035 int
15036 main ()
15037 {
15038 char *data, *data2, *data3;
15039 const char *cdata2;
15040 int i, pagesize;
15041 int fd, fd2;
15042
15043 pagesize = getpagesize ();
15044
15045 /* First, make a file with some known garbage in it. */
15046 data = (char *) malloc (pagesize);
15047 if (!data)
15048 return 1;
15049 for (i = 0; i < pagesize; ++i)
15050 *(data + i) = rand ();
15051 umask (0);
15052 fd = creat ("conftest.mmap", 0600);
15053 if (fd < 0)
15054 return 2;
15055 if (write (fd, data, pagesize) != pagesize)
15056 return 3;
15057 close (fd);
15058
15059 /* Next, check that the tail of a page is zero-filled. File must have
15060 non-zero length, otherwise we risk SIGBUS for entire page. */
15061 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15062 if (fd2 < 0)
15063 return 4;
15064 cdata2 = "";
15065 if (write (fd2, cdata2, 1) != 1)
15066 return 5;
15067 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15068 if (data2 == MAP_FAILED)
15069 return 6;
15070 for (i = 0; i < pagesize; ++i)
15071 if (*(data2 + i))
15072 return 7;
15073 close (fd2);
15074 if (munmap (data2, pagesize))
15075 return 8;
15076
15077 /* Next, try to mmap the file at a fixed address which already has
15078 something else allocated at it. If we can, also make sure that
15079 we see the same garbage. */
15080 fd = open ("conftest.mmap", O_RDWR);
15081 if (fd < 0)
15082 return 9;
15083 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15084 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15085 return 10;
15086 for (i = 0; i < pagesize; ++i)
15087 if (*(data + i) != *(data2 + i))
15088 return 11;
15089
15090 /* Finally, make sure that changes to the mapped area do not
15091 percolate back to the file as seen by read(). (This is a bug on
15092 some variants of i386 svr4.0.) */
15093 for (i = 0; i < pagesize; ++i)
15094 *(data2 + i) = *(data2 + i) + 1;
15095 data3 = (char *) malloc (pagesize);
15096 if (!data3)
15097 return 12;
15098 if (read (fd, data3, pagesize) != pagesize)
15099 return 13;
15100 for (i = 0; i < pagesize; ++i)
15101 if (*(data + i) != *(data3 + i))
15102 return 14;
15103 close (fd);
15104 return 0;
15105 }
15106 _ACEOF
15107 if ac_fn_c_try_run "$LINENO"; then :
15108 ac_cv_func_mmap_fixed_mapped=yes
15109 else
15110 ac_cv_func_mmap_fixed_mapped=no
15111 fi
15112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15113 conftest.$ac_objext conftest.beam conftest.$ac_ext
15114 fi
15115
15116 fi
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15118 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15119 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15120
15121 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15122
15123 fi
15124 rm -f conftest.mmap conftest.txt
15125
15126 ASAN_OPTIONS="$save_ASAN_OPTIONS"
15127
15128 for ac_func in fseeko fseeko64 getc_unlocked mkdtemp mkstemp utimensat utimes
15129 do :
15130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15131 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15132 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15133 cat >>confdefs.h <<_ACEOF
15134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15135 _ACEOF
15136
15137 fi
15138 done
15139
15140
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15142 $as_echo_n "checking for mbstate_t... " >&6; }
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144 /* end confdefs.h. */
15145 #include <wchar.h>
15146 int
15147 main ()
15148 {
15149 mbstate_t teststate;
15150 ;
15151 return 0;
15152 }
15153 _ACEOF
15154 if ac_fn_c_try_compile "$LINENO"; then :
15155 have_mbstate_t=yes
15156 else
15157 have_mbstate_t=no
15158 fi
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
15161 $as_echo "$have_mbstate_t" >&6; }
15162 if test x"$have_mbstate_t" = xyes; then
15163
15164 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15165
15166 fi
15167
15168 # Copied from gnulib stat-time.m4.
15169 # We should just switch over to using gnulib.
15170 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>
15171 #include <sys/stat.h>
15172 "
15173 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
15174
15175 cat >>confdefs.h <<_ACEOF
15176 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
15177 _ACEOF
15178
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
15180 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
15181 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
15182 $as_echo_n "(cached) " >&6
15183 else
15184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185 /* end confdefs.h. */
15186
15187 #include <sys/types.h>
15188 #include <sys/stat.h>
15189 #if HAVE_SYS_TIME_H
15190 # include <sys/time.h>
15191 #endif
15192 #include <time.h>
15193 struct timespec ts;
15194 struct stat st;
15195
15196 int
15197 main ()
15198 {
15199
15200 st.st_atim = ts;
15201
15202 ;
15203 return 0;
15204 }
15205 _ACEOF
15206 if ac_fn_c_try_compile "$LINENO"; then :
15207 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
15208 else
15209 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
15210 fi
15211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15212 fi
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
15214 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
15215 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
15216
15217 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
15218
15219 fi
15220 else
15221 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>
15222 #include <sys/stat.h>
15223 "
15224 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
15225
15226 cat >>confdefs.h <<_ACEOF
15227 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
15228 _ACEOF
15229
15230
15231 else
15232 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
15233 #include <sys/stat.h>
15234 "
15235 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
15236
15237 cat >>confdefs.h <<_ACEOF
15238 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
15239 _ACEOF
15240
15241
15242 else
15243 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>
15244 #include <sys/stat.h>
15245 "
15246 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
15247
15248 cat >>confdefs.h <<_ACEOF
15249 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
15250 _ACEOF
15251
15252
15253 fi
15254
15255 fi
15256
15257 fi
15258
15259 fi
15260
15261
15262 # Some systems have frexp only in -lm, not in -lc.
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
15264 $as_echo_n "checking for library containing frexp... " >&6; }
15265 if ${ac_cv_search_frexp+:} false; then :
15266 $as_echo_n "(cached) " >&6
15267 else
15268 ac_func_search_save_LIBS=$LIBS
15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h. */
15271
15272 /* Override any GCC internal prototype to avoid an error.
15273 Use char because int might match the return type of a GCC
15274 builtin and then its argument prototype would still apply. */
15275 #ifdef __cplusplus
15276 extern "C"
15277 #endif
15278 char frexp ();
15279 int
15280 main ()
15281 {
15282 return frexp ();
15283 ;
15284 return 0;
15285 }
15286 _ACEOF
15287 for ac_lib in '' m; do
15288 if test -z "$ac_lib"; then
15289 ac_res="none required"
15290 else
15291 ac_res=-l$ac_lib
15292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15293 fi
15294 if ac_fn_c_try_link "$LINENO"; then :
15295 ac_cv_search_frexp=$ac_res
15296 fi
15297 rm -f core conftest.err conftest.$ac_objext \
15298 conftest$ac_exeext
15299 if ${ac_cv_search_frexp+:} false; then :
15300 break
15301 fi
15302 done
15303 if ${ac_cv_search_frexp+:} false; then :
15304
15305 else
15306 ac_cv_search_frexp=no
15307 fi
15308 rm conftest.$ac_ext
15309 LIBS=$ac_func_search_save_LIBS
15310 fi
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
15312 $as_echo "$ac_cv_search_frexp" >&6; }
15313 ac_res=$ac_cv_search_frexp
15314 if test "$ac_res" != no; then :
15315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15316
15317 fi
15318
15319
15320
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15322 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15323 if ${am_cv_val_LC_MESSAGES+:} false; then :
15324 $as_echo_n "(cached) " >&6
15325 else
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15328 #include <locale.h>
15329 int
15330 main ()
15331 {
15332 return LC_MESSAGES
15333 ;
15334 return 0;
15335 }
15336 _ACEOF
15337 if ac_fn_c_try_link "$LINENO"; then :
15338 am_cv_val_LC_MESSAGES=yes
15339 else
15340 am_cv_val_LC_MESSAGES=no
15341 fi
15342 rm -f core conftest.err conftest.$ac_objext \
15343 conftest$ac_exeext conftest.$ac_ext
15344 fi
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15346 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15347 if test $am_cv_val_LC_MESSAGES = yes; then
15348
15349 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15350
15351 fi
15352
15353
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
15355 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
15356 if ${bu_cv_decl_getopt_unistd_h+:} false; then :
15357 $as_echo_n "(cached) " >&6
15358 else
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15361 #include <unistd.h>
15362 int
15363 main ()
15364 {
15365 extern int getopt (int, char *const*, const char *);
15366 ;
15367 return 0;
15368 }
15369 _ACEOF
15370 if ac_fn_c_try_compile "$LINENO"; then :
15371 bu_cv_decl_getopt_unistd_h=yes
15372 else
15373 bu_cv_decl_getopt_unistd_h=no
15374 fi
15375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15376 fi
15377
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
15379 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
15380 if test $bu_cv_decl_getopt_unistd_h = yes; then
15381
15382 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
15383
15384 fi
15385
15386 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
15387 # by default.
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
15389 $as_echo_n "checking for utime.h... " >&6; }
15390 if ${bu_cv_header_utime_h+:} false; then :
15391 $as_echo_n "(cached) " >&6
15392 else
15393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15394 /* end confdefs.h. */
15395 #include <sys/types.h>
15396 #ifdef HAVE_TIME_H
15397 #include <time.h>
15398 #endif
15399 #include <utime.h>
15400 int
15401 main ()
15402 {
15403 struct utimbuf s;
15404 ;
15405 return 0;
15406 }
15407 _ACEOF
15408 if ac_fn_c_try_compile "$LINENO"; then :
15409 bu_cv_header_utime_h=yes
15410 else
15411 bu_cv_header_utime_h=no
15412 fi
15413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15414 fi
15415
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
15417 $as_echo "$bu_cv_header_utime_h" >&6; }
15418 if test $bu_cv_header_utime_h = yes; then
15419
15420 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
15421
15422 fi
15423
15424 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
15425 if test "x$ac_cv_have_decl_environ" = xyes; then :
15426 ac_have_decl=1
15427 else
15428 ac_have_decl=0
15429 fi
15430
15431 cat >>confdefs.h <<_ACEOF
15432 #define HAVE_DECL_ENVIRON $ac_have_decl
15433 _ACEOF
15434 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
15435 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
15436 ac_have_decl=1
15437 else
15438 ac_have_decl=0
15439 fi
15440
15441 cat >>confdefs.h <<_ACEOF
15442 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
15443 _ACEOF
15444 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
15445 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
15446 ac_have_decl=1
15447 else
15448 ac_have_decl=0
15449 fi
15450
15451 cat >>confdefs.h <<_ACEOF
15452 #define HAVE_DECL_STPCPY $ac_have_decl
15453 _ACEOF
15454 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
15455 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
15456 ac_have_decl=1
15457 else
15458 ac_have_decl=0
15459 fi
15460
15461 cat >>confdefs.h <<_ACEOF
15462 #define HAVE_DECL_STRNLEN $ac_have_decl
15463 _ACEOF
15464
15465
15466 # Link in zlib/zstd if we can. This allows us to read compressed debug
15467 # sections. This is used only by readelf.c (objdump uses bfd for
15468 # reading compressed sections).
15469
15470 # Use the system's zlib library.
15471 zlibdir="-L\$(top_builddir)/../zlib"
15472 zlibinc="-I\$(top_srcdir)/../zlib"
15473
15474 # Check whether --with-system-zlib was given.
15475 if test "${with_system_zlib+set}" = set; then :
15476 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
15477 zlibdir=
15478 zlibinc=
15479 fi
15480
15481 fi
15482
15483
15484
15485
15486
15487
15488 # Check whether --with-zstd was given.
15489 if test "${with_zstd+set}" = set; then :
15490 withval=$with_zstd;
15491 else
15492 with_zstd=auto
15493 fi
15494
15495
15496 if test "$with_zstd" != no; then :
15497
15498 pkg_failed=no
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
15500 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
15501
15502 if test -n "$ZSTD_CFLAGS"; then
15503 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
15504 elif test -n "$PKG_CONFIG"; then
15505 if test -n "$PKG_CONFIG" && \
15506 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
15507 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
15508 ac_status=$?
15509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15510 test $ac_status = 0; }; then
15511 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
15512 test "x$?" != "x0" && pkg_failed=yes
15513 else
15514 pkg_failed=yes
15515 fi
15516 else
15517 pkg_failed=untried
15518 fi
15519 if test -n "$ZSTD_LIBS"; then
15520 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
15521 elif test -n "$PKG_CONFIG"; then
15522 if test -n "$PKG_CONFIG" && \
15523 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
15524 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
15525 ac_status=$?
15526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15527 test $ac_status = 0; }; then
15528 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
15529 test "x$?" != "x0" && pkg_failed=yes
15530 else
15531 pkg_failed=yes
15532 fi
15533 else
15534 pkg_failed=untried
15535 fi
15536
15537 if test $pkg_failed = no; then
15538 pkg_save_LDFLAGS="$LDFLAGS"
15539 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
15540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541 /* end confdefs.h. */
15542
15543 int
15544 main ()
15545 {
15546
15547 ;
15548 return 0;
15549 }
15550 _ACEOF
15551 if ac_fn_c_try_link "$LINENO"; then :
15552
15553 else
15554 pkg_failed=yes
15555 fi
15556 rm -f core conftest.err conftest.$ac_objext \
15557 conftest$ac_exeext conftest.$ac_ext
15558 LDFLAGS=$pkg_save_LDFLAGS
15559 fi
15560
15561
15562
15563 if test $pkg_failed = yes; then
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15565 $as_echo "no" >&6; }
15566
15567 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15568 _pkg_short_errors_supported=yes
15569 else
15570 _pkg_short_errors_supported=no
15571 fi
15572 if test $_pkg_short_errors_supported = yes; then
15573 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
15574 else
15575 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
15576 fi
15577 # Put the nasty error message in config.log where it belongs
15578 echo "$ZSTD_PKG_ERRORS" >&5
15579
15580
15581 if test "$with_zstd" = yes; then
15582 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
15583 fi
15584
15585 elif test $pkg_failed = untried; then
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15587 $as_echo "no" >&6; }
15588
15589 if test "$with_zstd" = yes; then
15590 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
15591 fi
15592
15593 else
15594 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
15595 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15597 $as_echo "yes" >&6; }
15598
15599
15600 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
15601
15602
15603 fi
15604
15605 fi
15606
15607
15608
15609 case "${host}" in
15610 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
15611
15612 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
15613 ;;
15614 esac
15615
15616 # Support for the msgpack C library.
15617
15618 # Check whether --with-msgpack was given.
15619 if test "${with_msgpack+set}" = set; then :
15620 withval=$with_msgpack;
15621 else
15622 with_msgpack=auto
15623 fi
15624
15625
15626 if test "$with_msgpack" != no; then :
15627
15628 pkg_failed=no
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgpack" >&5
15630 $as_echo_n "checking for msgpack... " >&6; }
15631
15632 if test -n "$MSGPACK_CFLAGS"; then
15633 pkg_cv_MSGPACK_CFLAGS="$MSGPACK_CFLAGS"
15634 elif test -n "$PKG_CONFIG"; then
15635 if test -n "$PKG_CONFIG" && \
15636 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
15637 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
15638 ac_status=$?
15639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15640 test $ac_status = 0; }; then
15641 pkg_cv_MSGPACK_CFLAGS=`$PKG_CONFIG --cflags "msgpack" 2>/dev/null`
15642 test "x$?" != "x0" && pkg_failed=yes
15643 else
15644 pkg_failed=yes
15645 fi
15646 else
15647 pkg_failed=untried
15648 fi
15649 if test -n "$MSGPACK_LIBS"; then
15650 pkg_cv_MSGPACK_LIBS="$MSGPACK_LIBS"
15651 elif test -n "$PKG_CONFIG"; then
15652 if test -n "$PKG_CONFIG" && \
15653 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
15654 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
15655 ac_status=$?
15656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15657 test $ac_status = 0; }; then
15658 pkg_cv_MSGPACK_LIBS=`$PKG_CONFIG --libs "msgpack" 2>/dev/null`
15659 test "x$?" != "x0" && pkg_failed=yes
15660 else
15661 pkg_failed=yes
15662 fi
15663 else
15664 pkg_failed=untried
15665 fi
15666
15667 if test $pkg_failed = no; then
15668 pkg_save_LDFLAGS="$LDFLAGS"
15669 LDFLAGS="$LDFLAGS $pkg_cv_MSGPACK_LIBS"
15670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15671 /* end confdefs.h. */
15672
15673 int
15674 main ()
15675 {
15676
15677 ;
15678 return 0;
15679 }
15680 _ACEOF
15681 if ac_fn_c_try_link "$LINENO"; then :
15682
15683 else
15684 pkg_failed=yes
15685 fi
15686 rm -f core conftest.err conftest.$ac_objext \
15687 conftest$ac_exeext conftest.$ac_ext
15688 LDFLAGS=$pkg_save_LDFLAGS
15689 fi
15690
15691
15692
15693 if test $pkg_failed = yes; then
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15695 $as_echo "no" >&6; }
15696
15697 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15698 _pkg_short_errors_supported=yes
15699 else
15700 _pkg_short_errors_supported=no
15701 fi
15702 if test $_pkg_short_errors_supported = yes; then
15703 MSGPACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "msgpack" 2>&1`
15704 else
15705 MSGPACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "msgpack" 2>&1`
15706 fi
15707 # Put the nasty error message in config.log where it belongs
15708 echo "$MSGPACK_PKG_ERRORS" >&5
15709
15710 if test "$with_msgpack" = yes; then :
15711 as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5
15712 fi
15713 elif test $pkg_failed = untried; then
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15715 $as_echo "no" >&6; }
15716 if test "$with_msgpack" = yes; then :
15717 as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5
15718 fi
15719 else
15720 MSGPACK_CFLAGS=$pkg_cv_MSGPACK_CFLAGS
15721 MSGPACK_LIBS=$pkg_cv_MSGPACK_LIBS
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15723 $as_echo "yes" >&6; }
15724
15725 $as_echo "#define HAVE_MSGPACK 1" >>confdefs.h
15726
15727 fi
15728 fi
15729
15730 # target-specific stuff:
15731
15732 # Canonicalize the secondary target names.
15733 if test -n "$enable_targets"; then
15734 for targ in `echo $enable_targets | sed 's/,/ /g'`
15735 do
15736 result=`$ac_config_sub $targ 2>/dev/null`
15737 if test -n "$result"; then
15738 canon_targets="$canon_targets $result"
15739 else
15740 # Allow targets that config.sub doesn't recognize, like "all".
15741 canon_targets="$canon_targets $targ"
15742 fi
15743 done
15744 fi
15745
15746 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
15747 if test "x$ac_cv_header_iconv_h" = xyes; then :
15748
15749 fi
15750
15751
15752
15753
15754
15755
15756
15757 am_save_CPPFLAGS="$CPPFLAGS"
15758
15759 for element in $INCICONV; do
15760 haveit=
15761 for x in $CPPFLAGS; do
15762
15763 acl_save_prefix="$prefix"
15764 prefix="$acl_final_prefix"
15765 acl_save_exec_prefix="$exec_prefix"
15766 exec_prefix="$acl_final_exec_prefix"
15767 eval x=\"$x\"
15768 exec_prefix="$acl_save_exec_prefix"
15769 prefix="$acl_save_prefix"
15770
15771 if test "X$x" = "X$element"; then
15772 haveit=yes
15773 break
15774 fi
15775 done
15776 if test -z "$haveit"; then
15777 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15778 fi
15779 done
15780
15781
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15783 $as_echo_n "checking for iconv... " >&6; }
15784 if ${am_cv_func_iconv+:} false; then :
15785 $as_echo_n "(cached) " >&6
15786 else
15787
15788 am_cv_func_iconv="no, consider installing GNU libiconv"
15789 am_cv_lib_iconv=no
15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h. */
15792
15793 #include <stdlib.h>
15794 #include <iconv.h>
15795
15796 int
15797 main ()
15798 {
15799 iconv_t cd = iconv_open("","");
15800 iconv(cd,NULL,NULL,NULL,NULL);
15801 iconv_close(cd);
15802 ;
15803 return 0;
15804 }
15805 _ACEOF
15806 if ac_fn_c_try_link "$LINENO"; then :
15807 am_cv_func_iconv=yes
15808 fi
15809 rm -f core conftest.err conftest.$ac_objext \
15810 conftest$ac_exeext conftest.$ac_ext
15811 if test "$am_cv_func_iconv" != yes; then
15812 am_save_LIBS="$LIBS"
15813 LIBS="$LIBS $LIBICONV"
15814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h. */
15816
15817 #include <stdlib.h>
15818 #include <iconv.h>
15819
15820 int
15821 main ()
15822 {
15823 iconv_t cd = iconv_open("","");
15824 iconv(cd,NULL,NULL,NULL,NULL);
15825 iconv_close(cd);
15826 ;
15827 return 0;
15828 }
15829 _ACEOF
15830 if ac_fn_c_try_link "$LINENO"; then :
15831 am_cv_lib_iconv=yes
15832 am_cv_func_iconv=yes
15833 fi
15834 rm -f core conftest.err conftest.$ac_objext \
15835 conftest$ac_exeext conftest.$ac_ext
15836 LIBS="$am_save_LIBS"
15837 fi
15838
15839 fi
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15841 $as_echo "$am_cv_func_iconv" >&6; }
15842 if test "$am_cv_func_iconv" = yes; then
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15844 $as_echo_n "checking for working iconv... " >&6; }
15845 if ${am_cv_func_iconv_works+:} false; then :
15846 $as_echo_n "(cached) " >&6
15847 else
15848
15849 am_save_LIBS="$LIBS"
15850 if test $am_cv_lib_iconv = yes; then
15851 LIBS="$LIBS $LIBICONV"
15852 fi
15853 am_cv_func_iconv_works=no
15854 for ac_iconv_const in '' 'const'; do
15855 if test "$cross_compiling" = yes; then :
15856 case "$host_os" in
15857 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15858 *) am_cv_func_iconv_works="guessing yes" ;;
15859 esac
15860 else
15861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15862 /* end confdefs.h. */
15863
15864 #include <iconv.h>
15865 #include <string.h>
15866
15867 #ifndef ICONV_CONST
15868 # define ICONV_CONST $ac_iconv_const
15869 #endif
15870
15871 int
15872 main ()
15873 {
15874 int result = 0;
15875 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
15876 successful returns. This is even documented in
15877 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
15878 {
15879 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15880 if (cd_utf8_to_88591 != (iconv_t)(-1))
15881 {
15882 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
15883 char buf[10];
15884 ICONV_CONST char *inptr = input;
15885 size_t inbytesleft = strlen (input);
15886 char *outptr = buf;
15887 size_t outbytesleft = sizeof (buf);
15888 size_t res = iconv (cd_utf8_to_88591,
15889 &inptr, &inbytesleft,
15890 &outptr, &outbytesleft);
15891 if (res == 0)
15892 result |= 1;
15893 iconv_close (cd_utf8_to_88591);
15894 }
15895 }
15896 /* Test against Solaris 10 bug: Failures are not distinguishable from
15897 successful returns. */
15898 {
15899 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15900 if (cd_ascii_to_88591 != (iconv_t)(-1))
15901 {
15902 static ICONV_CONST char input[] = "\263";
15903 char buf[10];
15904 ICONV_CONST char *inptr = input;
15905 size_t inbytesleft = strlen (input);
15906 char *outptr = buf;
15907 size_t outbytesleft = sizeof (buf);
15908 size_t res = iconv (cd_ascii_to_88591,
15909 &inptr, &inbytesleft,
15910 &outptr, &outbytesleft);
15911 if (res == 0)
15912 result |= 2;
15913 iconv_close (cd_ascii_to_88591);
15914 }
15915 }
15916 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
15917 {
15918 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
15919 if (cd_88591_to_utf8 != (iconv_t)(-1))
15920 {
15921 static ICONV_CONST char input[] = "\304";
15922 static char buf[2] = { (char)0xDE, (char)0xAD };
15923 ICONV_CONST char *inptr = input;
15924 size_t inbytesleft = 1;
15925 char *outptr = buf;
15926 size_t outbytesleft = 1;
15927 size_t res = iconv (cd_88591_to_utf8,
15928 &inptr, &inbytesleft,
15929 &outptr, &outbytesleft);
15930 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
15931 result |= 4;
15932 iconv_close (cd_88591_to_utf8);
15933 }
15934 }
15935 #if 0 /* This bug could be worked around by the caller. */
15936 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15937 {
15938 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15939 if (cd_88591_to_utf8 != (iconv_t)(-1))
15940 {
15941 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15942 char buf[50];
15943 ICONV_CONST char *inptr = input;
15944 size_t inbytesleft = strlen (input);
15945 char *outptr = buf;
15946 size_t outbytesleft = sizeof (buf);
15947 size_t res = iconv (cd_88591_to_utf8,
15948 &inptr, &inbytesleft,
15949 &outptr, &outbytesleft);
15950 if ((int)res > 0)
15951 result |= 8;
15952 iconv_close (cd_88591_to_utf8);
15953 }
15954 }
15955 #endif
15956 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15957 provided. */
15958 {
15959 /* Try standardized names. */
15960 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
15961 /* Try IRIX, OSF/1 names. */
15962 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
15963 /* Try AIX names. */
15964 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
15965 /* Try HP-UX names. */
15966 iconv_t cd4 = iconv_open ("utf8", "eucJP");
15967 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
15968 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
15969 result |= 16;
15970 if (cd1 != (iconv_t)(-1))
15971 iconv_close (cd1);
15972 if (cd2 != (iconv_t)(-1))
15973 iconv_close (cd2);
15974 if (cd3 != (iconv_t)(-1))
15975 iconv_close (cd3);
15976 if (cd4 != (iconv_t)(-1))
15977 iconv_close (cd4);
15978 }
15979 return result;
15980
15981 ;
15982 return 0;
15983 }
15984 _ACEOF
15985 if ac_fn_c_try_run "$LINENO"; then :
15986 am_cv_func_iconv_works=yes
15987 fi
15988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15989 conftest.$ac_objext conftest.beam conftest.$ac_ext
15990 fi
15991
15992 test "$am_cv_func_iconv_works" = no || break
15993 done
15994 LIBS="$am_save_LIBS"
15995
15996 fi
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15998 $as_echo "$am_cv_func_iconv_works" >&6; }
15999 case "$am_cv_func_iconv_works" in
16000 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16001 *) am_func_iconv=yes ;;
16002 esac
16003 else
16004 am_func_iconv=no am_cv_lib_iconv=no
16005 fi
16006 if test "$am_func_iconv" = yes; then
16007
16008 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
16009
16010 fi
16011 if test "$am_cv_lib_iconv" = yes; then
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16013 $as_echo_n "checking how to link with libiconv... " >&6; }
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16015 $as_echo "$LIBICONV" >&6; }
16016 else
16017 CPPFLAGS="$am_save_CPPFLAGS"
16018 LIBICONV=
16019 LTLIBICONV=
16020 fi
16021
16022
16023
16024 if test "$am_cv_func_iconv" = yes; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
16026 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
16027 if ${gl_cv_iconv_nonconst+:} false; then :
16028 $as_echo_n "(cached) " >&6
16029 else
16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16032
16033 #include <stdlib.h>
16034 #include <iconv.h>
16035 extern
16036 #ifdef __cplusplus
16037 "C"
16038 #endif
16039 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16040
16041 int
16042 main ()
16043 {
16044
16045 ;
16046 return 0;
16047 }
16048 _ACEOF
16049 if ac_fn_c_try_compile "$LINENO"; then :
16050 gl_cv_iconv_nonconst=yes
16051 else
16052 gl_cv_iconv_nonconst=no
16053 fi
16054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055
16056 fi
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
16058 $as_echo "$gl_cv_iconv_nonconst" >&6; }
16059 else
16060 gl_cv_iconv_nonconst=yes
16061 fi
16062 if test $gl_cv_iconv_nonconst = yes; then
16063 iconv_arg1=""
16064 else
16065 iconv_arg1="const"
16066 fi
16067
16068 cat >>confdefs.h <<_ACEOF
16069 #define ICONV_CONST $iconv_arg1
16070 _ACEOF
16071
16072
16073
16074 if test "$am_func_iconv" = yes; then
16075 if test -n "$LIBICONV"; then
16076 am_cv_func_iconv_summary='yes, in libiconv'
16077 else
16078 am_cv_func_iconv_summary='yes, in libc'
16079 fi
16080 else
16081 if test "$am_cv_func_iconv" = yes; then
16082 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
16083 else
16084 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
16085 fi
16086 fi
16087
16088
16089 BUILD_SRCONV=
16090 BUILD_DLLTOOL=
16091 DLLTOOL_DEFS=
16092 DLLTOOL_DEFAULT=
16093 BUILD_WINDRES=
16094 BUILD_WINDMC=
16095 BUILD_DLLWRAP=
16096 BUILD_MISC=
16097 BUILD_INSTALL_MISC=
16098 OBJDUMP_DEFS=
16099 OBJDUMP_PRIVATE_VECTORS=
16100 OBJDUMP_PRIVATE_OFILES=
16101 od_vectors=
16102
16103 for targ in $target $canon_targets
16104 do
16105 case $targ in
16106 all | *-*-hms*)
16107 BUILD_SRCONV='$(SRCONV_PROG)'
16108 ;;
16109 esac
16110
16111 case $targ in
16112 all | spu-*-*)
16113 BUILD_MISC='bin2c$(EXEEXT_FOR_BUILD)'
16114 ;;
16115 esac
16116
16117 case $targ in
16118 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
16119 BUILD_INSTALL_MISC=embedspu
16120 ;;
16121 esac
16122
16123 case $targ in
16124 mep-*)
16125 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
16126 ;;
16127 powerpc*-aix5.[01])
16128 ;;
16129 powerpc*-aix[5-9].*)
16130 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
16131 ;;
16132 esac
16133
16134 case $targ in
16135 aarch64-*-mingw*)
16136 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16137 if test -z "$DLLTOOL_DEFAULT"; then
16138 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_AARCH64"
16139 fi
16140 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_AARCH64"
16141 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16142 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16143 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16144 ;;
16145 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
16146 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16147 if test -z "$DLLTOOL_DEFAULT"; then
16148 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
16149 fi
16150 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
16151 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16152 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16153 ;;
16154 arm-*-pe*)
16155 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16156 if test -z "$DLLTOOL_DEFAULT"; then
16157 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
16158 fi
16159 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16160 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16161 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16162 ;;
16163 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | all)
16164 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16165 if test -z "$DLLTOOL_DEFAULT"; then
16166 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16167 fi
16168 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16169 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16170 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16171 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16172 ;;
16173 i[3-7]86-*-interix)
16174 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
16175 if test -z "$DLLTOOL_DEFAULT"; then
16176 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16177 fi
16178 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16179 ;;
16180 mcore-*-pe)
16181 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16182 if test -z "$DLLTOOL_DEFAULT"; then
16183 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
16184 fi
16185 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
16186 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16187 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16188 ;;
16189 mcore-*-elf)
16190 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16191 if test -z "$DLLTOOL_DEFAULT"; then
16192 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
16193 fi
16194 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
16195 ;;
16196 sh*-*-pe)
16197 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16198 if test -z "$DLLTOOL_DEFAULT"; then
16199 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
16200 fi
16201 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
16202 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16203 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16204 ;;
16205 x86_64-*-mingw* | x86_64-*-cygwin*)
16206 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16207 if test -z "$DLLTOOL_DEFAULT"; then
16208 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
16209 fi
16210 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
16211 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16212 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16213 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16214 ;;
16215 esac
16216
16217 # Add objdump private vectors.
16218 case $targ in
16219 all)
16220 od_vectors="objdump_private_desc_elf32_avr objdump_private_desc_xcoff\
16221 objdump_private_desc_pe objdump_private_desc_mach_o"
16222 ;;
16223 avr-*-*)
16224 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
16225 ;;
16226 powerpc*-*-aix* | rs6000-*-aix*)
16227 od_vectors="$od_vectors objdump_private_desc_xcoff"
16228 ;;
16229 *-*-pe* | *-*-cygwin* | *-*-mingw*)
16230 od_vectors="$od_vectors objdump_private_desc_pe"
16231 ;;
16232 *-*-darwin*)
16233 od_vectors="$od_vectors objdump_private_desc_mach_o"
16234 ;;
16235 esac
16236 done
16237
16238 # Uniq objdump private vector, build objdump target ofiles.
16239 od_files=
16240 f=""
16241 for i in $od_vectors ; do
16242 case " $f " in
16243 *" $i "*) ;;
16244 *)
16245 f="$f $i"
16246 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
16247 case $i in
16248 objdump_private_desc_elf32_avr)
16249 od_files="$od_files od-elf32_avr" ;;
16250 objdump_private_desc_xcoff)
16251 od_files="$od_files od-xcoff" ;;
16252 objdump_private_desc_pe)
16253 od_files="$od_files od-pe" ;;
16254 objdump_private_desc_mach_o)
16255 od_files="$od_files od-macho" ;;
16256 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
16257 esac
16258 ;;
16259 esac
16260 done
16261
16262 # Uniq objdump target ofiles
16263 f=""
16264 for i in $od_files ; do
16265 case " $f " in
16266 *" $i "*) ;;
16267 *)
16268 f="$f $i"
16269 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
16270 ;;
16271 esac
16272 done
16273
16274 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
16275
16276 if test "${with_windres+set}" = set; then
16277 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16278 fi
16279
16280 if test "${with_windmc+set}" = set; then
16281 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16282 fi
16283
16284 OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298 cat >>confdefs.h <<_ACEOF
16299 #define TARGET "${target}"
16300 _ACEOF
16301
16302
16303 targ=$target
16304 . $srcdir/../bfd/config.bfd
16305 if test "x$targ_underscore" = "xyes"; then
16306 UNDERSCORE=1
16307 else
16308 UNDERSCORE=0
16309 fi
16310
16311 cat >>confdefs.h <<_ACEOF
16312 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
16313 _ACEOF
16314
16315
16316 # Emulation
16317 targ=$target
16318 . ${srcdir}/configure.tgt
16319 EMULATION=$targ_emul
16320 EMULATION_VECTOR=$targ_emul_vector
16321
16322
16323
16324
16325 # Required for html and install-html
16326
16327
16328
16329
16330
16331 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
16332
16333 cat >confcache <<\_ACEOF
16334 # This file is a shell script that caches the results of configure
16335 # tests run on this system so they can be shared between configure
16336 # scripts and configure runs, see configure's option --config-cache.
16337 # It is not useful on other systems. If it contains results you don't
16338 # want to keep, you may remove or edit it.
16339 #
16340 # config.status only pays attention to the cache file if you give it
16341 # the --recheck option to rerun configure.
16342 #
16343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16345 # following values.
16346
16347 _ACEOF
16348
16349 # The following way of writing the cache mishandles newlines in values,
16350 # but we know of no workaround that is simple, portable, and efficient.
16351 # So, we kill variables containing newlines.
16352 # Ultrix sh set writes to stderr and can't be redirected directly,
16353 # and sets the high bit in the cache file unless we assign to the vars.
16354 (
16355 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16356 eval ac_val=\$$ac_var
16357 case $ac_val in #(
16358 *${as_nl}*)
16359 case $ac_var in #(
16360 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16361 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16362 esac
16363 case $ac_var in #(
16364 _ | IFS | as_nl) ;; #(
16365 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16366 *) { eval $ac_var=; unset $ac_var;} ;;
16367 esac ;;
16368 esac
16369 done
16370
16371 (set) 2>&1 |
16372 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16373 *${as_nl}ac_space=\ *)
16374 # `set' does not quote correctly, so add quotes: double-quote
16375 # substitution turns \\\\ into \\, and sed turns \\ into \.
16376 sed -n \
16377 "s/'/'\\\\''/g;
16378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16379 ;; #(
16380 *)
16381 # `set' quotes correctly as required by POSIX, so do not add quotes.
16382 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16383 ;;
16384 esac |
16385 sort
16386 ) |
16387 sed '
16388 /^ac_cv_env_/b end
16389 t clear
16390 :clear
16391 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16392 t end
16393 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16394 :end' >>confcache
16395 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16396 if test -w "$cache_file"; then
16397 if test "x$cache_file" != "x/dev/null"; then
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16399 $as_echo "$as_me: updating cache $cache_file" >&6;}
16400 if test ! -f "$cache_file" || test -h "$cache_file"; then
16401 cat confcache >"$cache_file"
16402 else
16403 case $cache_file in #(
16404 */* | ?:*)
16405 mv -f confcache "$cache_file"$$ &&
16406 mv -f "$cache_file"$$ "$cache_file" ;; #(
16407 *)
16408 mv -f confcache "$cache_file" ;;
16409 esac
16410 fi
16411 fi
16412 else
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16414 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16415 fi
16416 fi
16417 rm -f confcache
16418
16419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16420 # Let make expand exec_prefix.
16421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16422
16423 DEFS=-DHAVE_CONFIG_H
16424
16425 ac_libobjs=
16426 ac_ltlibobjs=
16427 U=
16428 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16429 # 1. Remove the extension, and $U if already installed.
16430 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16431 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16432 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16433 # will be set to the directory where LIBOBJS objects are built.
16434 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16435 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16436 done
16437 LIBOBJS=$ac_libobjs
16438
16439 LTLIBOBJS=$ac_ltlibobjs
16440
16441
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16443 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16444 if test -n "$am_sleep_pid"; then
16445 # Hide warnings about reused PIDs.
16446 wait $am_sleep_pid 2>/dev/null
16447 fi
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16449 $as_echo "done" >&6; }
16450 if test -n "$EXEEXT"; then
16451 am__EXEEXT_TRUE=
16452 am__EXEEXT_FALSE='#'
16453 else
16454 am__EXEEXT_TRUE='#'
16455 am__EXEEXT_FALSE=
16456 fi
16457
16458 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16459 as_fn_error $? "conditional \"AMDEP\" was never defined.
16460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16461 fi
16462 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16463 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16465 fi
16466
16467 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
16468 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
16469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16470 fi
16471 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16472 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16474 fi
16475 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16476 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
16477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16478 fi
16479
16480 : "${CONFIG_STATUS=./config.status}"
16481 ac_write_fail=0
16482 ac_clean_files_save=$ac_clean_files
16483 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16485 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16486 as_write_fail=0
16487 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16488 #! $SHELL
16489 # Generated by $as_me.
16490 # Run this file to recreate the current configuration.
16491 # Compiler output produced by configure, useful for debugging
16492 # configure, is in config.log if it exists.
16493
16494 debug=false
16495 ac_cs_recheck=false
16496 ac_cs_silent=false
16497
16498 SHELL=\${CONFIG_SHELL-$SHELL}
16499 export SHELL
16500 _ASEOF
16501 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16502 ## -------------------- ##
16503 ## M4sh Initialization. ##
16504 ## -------------------- ##
16505
16506 # Be more Bourne compatible
16507 DUALCASE=1; export DUALCASE # for MKS sh
16508 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16509 emulate sh
16510 NULLCMD=:
16511 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16512 # is contrary to our usage. Disable this feature.
16513 alias -g '${1+"$@"}'='"$@"'
16514 setopt NO_GLOB_SUBST
16515 else
16516 case `(set -o) 2>/dev/null` in #(
16517 *posix*) :
16518 set -o posix ;; #(
16519 *) :
16520 ;;
16521 esac
16522 fi
16523
16524
16525 as_nl='
16526 '
16527 export as_nl
16528 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16529 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16532 # Prefer a ksh shell builtin over an external printf program on Solaris,
16533 # but without wasting forks for bash or zsh.
16534 if test -z "$BASH_VERSION$ZSH_VERSION" \
16535 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16536 as_echo='print -r --'
16537 as_echo_n='print -rn --'
16538 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16539 as_echo='printf %s\n'
16540 as_echo_n='printf %s'
16541 else
16542 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16543 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16544 as_echo_n='/usr/ucb/echo -n'
16545 else
16546 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16547 as_echo_n_body='eval
16548 arg=$1;
16549 case $arg in #(
16550 *"$as_nl"*)
16551 expr "X$arg" : "X\\(.*\\)$as_nl";
16552 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16553 esac;
16554 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16555 '
16556 export as_echo_n_body
16557 as_echo_n='sh -c $as_echo_n_body as_echo'
16558 fi
16559 export as_echo_body
16560 as_echo='sh -c $as_echo_body as_echo'
16561 fi
16562
16563 # The user is always right.
16564 if test "${PATH_SEPARATOR+set}" != set; then
16565 PATH_SEPARATOR=:
16566 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16567 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16568 PATH_SEPARATOR=';'
16569 }
16570 fi
16571
16572
16573 # IFS
16574 # We need space, tab and new line, in precisely that order. Quoting is
16575 # there to prevent editors from complaining about space-tab.
16576 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16577 # splitting by setting IFS to empty value.)
16578 IFS=" "" $as_nl"
16579
16580 # Find who we are. Look in the path if we contain no directory separator.
16581 as_myself=
16582 case $0 in #((
16583 *[\\/]* ) as_myself=$0 ;;
16584 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16585 for as_dir in $PATH
16586 do
16587 IFS=$as_save_IFS
16588 test -z "$as_dir" && as_dir=.
16589 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16590 done
16591 IFS=$as_save_IFS
16592
16593 ;;
16594 esac
16595 # We did not find ourselves, most probably we were run as `sh COMMAND'
16596 # in which case we are not to be found in the path.
16597 if test "x$as_myself" = x; then
16598 as_myself=$0
16599 fi
16600 if test ! -f "$as_myself"; then
16601 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16602 exit 1
16603 fi
16604
16605 # Unset variables that we do not need and which cause bugs (e.g. in
16606 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16607 # suppresses any "Segmentation fault" message there. '((' could
16608 # trigger a bug in pdksh 5.2.14.
16609 for as_var in BASH_ENV ENV MAIL MAILPATH
16610 do eval test x\${$as_var+set} = xset \
16611 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16612 done
16613 PS1='$ '
16614 PS2='> '
16615 PS4='+ '
16616
16617 # NLS nuisances.
16618 LC_ALL=C
16619 export LC_ALL
16620 LANGUAGE=C
16621 export LANGUAGE
16622
16623 # CDPATH.
16624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16625
16626
16627 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16628 # ----------------------------------------
16629 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16630 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16631 # script with STATUS, using 1 if that was 0.
16632 as_fn_error ()
16633 {
16634 as_status=$1; test $as_status -eq 0 && as_status=1
16635 if test "$4"; then
16636 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16637 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16638 fi
16639 $as_echo "$as_me: error: $2" >&2
16640 as_fn_exit $as_status
16641 } # as_fn_error
16642
16643
16644 # as_fn_set_status STATUS
16645 # -----------------------
16646 # Set $? to STATUS, without forking.
16647 as_fn_set_status ()
16648 {
16649 return $1
16650 } # as_fn_set_status
16651
16652 # as_fn_exit STATUS
16653 # -----------------
16654 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16655 as_fn_exit ()
16656 {
16657 set +e
16658 as_fn_set_status $1
16659 exit $1
16660 } # as_fn_exit
16661
16662 # as_fn_unset VAR
16663 # ---------------
16664 # Portably unset VAR.
16665 as_fn_unset ()
16666 {
16667 { eval $1=; unset $1;}
16668 }
16669 as_unset=as_fn_unset
16670 # as_fn_append VAR VALUE
16671 # ----------------------
16672 # Append the text in VALUE to the end of the definition contained in VAR. Take
16673 # advantage of any shell optimizations that allow amortized linear growth over
16674 # repeated appends, instead of the typical quadratic growth present in naive
16675 # implementations.
16676 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16677 eval 'as_fn_append ()
16678 {
16679 eval $1+=\$2
16680 }'
16681 else
16682 as_fn_append ()
16683 {
16684 eval $1=\$$1\$2
16685 }
16686 fi # as_fn_append
16687
16688 # as_fn_arith ARG...
16689 # ------------------
16690 # Perform arithmetic evaluation on the ARGs, and store the result in the
16691 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16692 # must be portable across $(()) and expr.
16693 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16694 eval 'as_fn_arith ()
16695 {
16696 as_val=$(( $* ))
16697 }'
16698 else
16699 as_fn_arith ()
16700 {
16701 as_val=`expr "$@" || test $? -eq 1`
16702 }
16703 fi # as_fn_arith
16704
16705
16706 if expr a : '\(a\)' >/dev/null 2>&1 &&
16707 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16708 as_expr=expr
16709 else
16710 as_expr=false
16711 fi
16712
16713 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16714 as_basename=basename
16715 else
16716 as_basename=false
16717 fi
16718
16719 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16720 as_dirname=dirname
16721 else
16722 as_dirname=false
16723 fi
16724
16725 as_me=`$as_basename -- "$0" ||
16726 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16727 X"$0" : 'X\(//\)$' \| \
16728 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16729 $as_echo X/"$0" |
16730 sed '/^.*\/\([^/][^/]*\)\/*$/{
16731 s//\1/
16732 q
16733 }
16734 /^X\/\(\/\/\)$/{
16735 s//\1/
16736 q
16737 }
16738 /^X\/\(\/\).*/{
16739 s//\1/
16740 q
16741 }
16742 s/.*/./; q'`
16743
16744 # Avoid depending upon Character Ranges.
16745 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16746 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16747 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16748 as_cr_digits='0123456789'
16749 as_cr_alnum=$as_cr_Letters$as_cr_digits
16750
16751 ECHO_C= ECHO_N= ECHO_T=
16752 case `echo -n x` in #(((((
16753 -n*)
16754 case `echo 'xy\c'` in
16755 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16756 xy) ECHO_C='\c';;
16757 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16758 ECHO_T=' ';;
16759 esac;;
16760 *)
16761 ECHO_N='-n';;
16762 esac
16763
16764 rm -f conf$$ conf$$.exe conf$$.file
16765 if test -d conf$$.dir; then
16766 rm -f conf$$.dir/conf$$.file
16767 else
16768 rm -f conf$$.dir
16769 mkdir conf$$.dir 2>/dev/null
16770 fi
16771 if (echo >conf$$.file) 2>/dev/null; then
16772 if ln -s conf$$.file conf$$ 2>/dev/null; then
16773 as_ln_s='ln -s'
16774 # ... but there are two gotchas:
16775 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16776 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16777 # In both cases, we have to default to `cp -pR'.
16778 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16779 as_ln_s='cp -pR'
16780 elif ln conf$$.file conf$$ 2>/dev/null; then
16781 as_ln_s=ln
16782 else
16783 as_ln_s='cp -pR'
16784 fi
16785 else
16786 as_ln_s='cp -pR'
16787 fi
16788 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16789 rmdir conf$$.dir 2>/dev/null
16790
16791
16792 # as_fn_mkdir_p
16793 # -------------
16794 # Create "$as_dir" as a directory, including parents if necessary.
16795 as_fn_mkdir_p ()
16796 {
16797
16798 case $as_dir in #(
16799 -*) as_dir=./$as_dir;;
16800 esac
16801 test -d "$as_dir" || eval $as_mkdir_p || {
16802 as_dirs=
16803 while :; do
16804 case $as_dir in #(
16805 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16806 *) as_qdir=$as_dir;;
16807 esac
16808 as_dirs="'$as_qdir' $as_dirs"
16809 as_dir=`$as_dirname -- "$as_dir" ||
16810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16811 X"$as_dir" : 'X\(//\)[^/]' \| \
16812 X"$as_dir" : 'X\(//\)$' \| \
16813 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16814 $as_echo X"$as_dir" |
16815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16816 s//\1/
16817 q
16818 }
16819 /^X\(\/\/\)[^/].*/{
16820 s//\1/
16821 q
16822 }
16823 /^X\(\/\/\)$/{
16824 s//\1/
16825 q
16826 }
16827 /^X\(\/\).*/{
16828 s//\1/
16829 q
16830 }
16831 s/.*/./; q'`
16832 test -d "$as_dir" && break
16833 done
16834 test -z "$as_dirs" || eval "mkdir $as_dirs"
16835 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16836
16837
16838 } # as_fn_mkdir_p
16839 if mkdir -p . 2>/dev/null; then
16840 as_mkdir_p='mkdir -p "$as_dir"'
16841 else
16842 test -d ./-p && rmdir ./-p
16843 as_mkdir_p=false
16844 fi
16845
16846
16847 # as_fn_executable_p FILE
16848 # -----------------------
16849 # Test if FILE is an executable regular file.
16850 as_fn_executable_p ()
16851 {
16852 test -f "$1" && test -x "$1"
16853 } # as_fn_executable_p
16854 as_test_x='test -x'
16855 as_executable_p=as_fn_executable_p
16856
16857 # Sed expression to map a string onto a valid CPP name.
16858 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16859
16860 # Sed expression to map a string onto a valid variable name.
16861 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16862
16863
16864 exec 6>&1
16865 ## ----------------------------------- ##
16866 ## Main body of $CONFIG_STATUS script. ##
16867 ## ----------------------------------- ##
16868 _ASEOF
16869 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16870
16871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16872 # Save the log message, to keep $0 and so on meaningful, and to
16873 # report actual input values of CONFIG_FILES etc. instead of their
16874 # values after options handling.
16875 ac_log="
16876 This file was extended by binutils $as_me 2.45, which was
16877 generated by GNU Autoconf 2.69. Invocation command line was
16878
16879 CONFIG_FILES = $CONFIG_FILES
16880 CONFIG_HEADERS = $CONFIG_HEADERS
16881 CONFIG_LINKS = $CONFIG_LINKS
16882 CONFIG_COMMANDS = $CONFIG_COMMANDS
16883 $ $0 $@
16884
16885 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16886 "
16887
16888 _ACEOF
16889
16890 case $ac_config_files in *"
16891 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16892 esac
16893
16894 case $ac_config_headers in *"
16895 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16896 esac
16897
16898
16899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16900 # Files that config.status was made for.
16901 config_files="$ac_config_files"
16902 config_headers="$ac_config_headers"
16903 config_commands="$ac_config_commands"
16904
16905 _ACEOF
16906
16907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16908 ac_cs_usage="\
16909 \`$as_me' instantiates files and other configuration actions
16910 from templates according to the current configuration. Unless the files
16911 and actions are specified as TAGs, all are instantiated by default.
16912
16913 Usage: $0 [OPTION]... [TAG]...
16914
16915 -h, --help print this help, then exit
16916 -V, --version print version number and configuration settings, then exit
16917 --config print configuration, then exit
16918 -q, --quiet, --silent
16919 do not print progress messages
16920 -d, --debug don't remove temporary files
16921 --recheck update $as_me by reconfiguring in the same conditions
16922 --file=FILE[:TEMPLATE]
16923 instantiate the configuration file FILE
16924 --header=FILE[:TEMPLATE]
16925 instantiate the configuration header FILE
16926
16927 Configuration files:
16928 $config_files
16929
16930 Configuration headers:
16931 $config_headers
16932
16933 Configuration commands:
16934 $config_commands
16935
16936 Report bugs to the package provider."
16937
16938 _ACEOF
16939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16940 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16941 ac_cs_version="\\
16942 binutils config.status 2.45
16943 configured by $0, generated by GNU Autoconf 2.69,
16944 with options \\"\$ac_cs_config\\"
16945
16946 Copyright (C) 2012 Free Software Foundation, Inc.
16947 This config.status script is free software; the Free Software Foundation
16948 gives unlimited permission to copy, distribute and modify it."
16949
16950 ac_pwd='$ac_pwd'
16951 srcdir='$srcdir'
16952 INSTALL='$INSTALL'
16953 MKDIR_P='$MKDIR_P'
16954 AWK='$AWK'
16955 test -n "\$AWK" || AWK=awk
16956 _ACEOF
16957
16958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16959 # The default lists apply if the user does not specify any file.
16960 ac_need_defaults=:
16961 while test $# != 0
16962 do
16963 case $1 in
16964 --*=?*)
16965 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16966 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16967 ac_shift=:
16968 ;;
16969 --*=)
16970 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16971 ac_optarg=
16972 ac_shift=:
16973 ;;
16974 *)
16975 ac_option=$1
16976 ac_optarg=$2
16977 ac_shift=shift
16978 ;;
16979 esac
16980
16981 case $ac_option in
16982 # Handling of the options.
16983 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16984 ac_cs_recheck=: ;;
16985 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16986 $as_echo "$ac_cs_version"; exit ;;
16987 --config | --confi | --conf | --con | --co | --c )
16988 $as_echo "$ac_cs_config"; exit ;;
16989 --debug | --debu | --deb | --de | --d | -d )
16990 debug=: ;;
16991 --file | --fil | --fi | --f )
16992 $ac_shift
16993 case $ac_optarg in
16994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16995 '') as_fn_error $? "missing file argument" ;;
16996 esac
16997 as_fn_append CONFIG_FILES " '$ac_optarg'"
16998 ac_need_defaults=false;;
16999 --header | --heade | --head | --hea )
17000 $ac_shift
17001 case $ac_optarg in
17002 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17003 esac
17004 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17005 ac_need_defaults=false;;
17006 --he | --h)
17007 # Conflict between --help and --header
17008 as_fn_error $? "ambiguous option: \`$1'
17009 Try \`$0 --help' for more information.";;
17010 --help | --hel | -h )
17011 $as_echo "$ac_cs_usage"; exit ;;
17012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17013 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17014 ac_cs_silent=: ;;
17015
17016 # This is an error.
17017 -*) as_fn_error $? "unrecognized option: \`$1'
17018 Try \`$0 --help' for more information." ;;
17019
17020 *) as_fn_append ac_config_targets " $1"
17021 ac_need_defaults=false ;;
17022
17023 esac
17024 shift
17025 done
17026
17027 ac_configure_extra_args=
17028
17029 if $ac_cs_silent; then
17030 exec 6>/dev/null
17031 ac_configure_extra_args="$ac_configure_extra_args --silent"
17032 fi
17033
17034 _ACEOF
17035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17036 if \$ac_cs_recheck; then
17037 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17038 shift
17039 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17040 CONFIG_SHELL='$SHELL'
17041 export CONFIG_SHELL
17042 exec "\$@"
17043 fi
17044
17045 _ACEOF
17046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17047 exec 5>>config.log
17048 {
17049 echo
17050 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17051 ## Running $as_me. ##
17052 _ASBOX
17053 $as_echo "$ac_log"
17054 } >&5
17055
17056 _ACEOF
17057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17058 #
17059 # INIT-COMMANDS
17060 #
17061 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17062
17063
17064 # The HP-UX ksh and POSIX shell print the target directory to stdout
17065 # if CDPATH is set.
17066 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17067
17068 sed_quote_subst='$sed_quote_subst'
17069 double_quote_subst='$double_quote_subst'
17070 delay_variable_subst='$delay_variable_subst'
17071 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17072 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17073 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17074 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17075 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17076 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17077 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17078 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17079 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17080 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17081 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17082 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17083 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17084 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17085 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17086 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17087 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17088 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17089 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17090 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17091 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17092 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17093 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17094 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17095 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17096 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17097 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17098 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17099 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17100 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17101 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17102 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17103 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17104 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17105 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17106 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17107 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17108 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17109 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17110 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17111 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17112 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17113 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17114 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17115 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17116 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17117 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17118 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17119 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"`'
17120 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17121 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17122 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17123 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17124 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17125 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17126 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17127 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17128 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17129 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17130 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17131 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17132 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17133 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17134 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17135 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17136 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17137 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17138 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17139 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17140 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17141 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17142 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17143 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17144 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17145 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17146 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17147 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17148 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17149 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17150 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17151 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17152 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17153 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17154 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17155 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17156 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17157 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17158 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17159 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17160 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17161 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17162 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17163 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17164 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17165 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17166 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17167 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17168 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17169 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17170 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17171 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17172 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17173 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17174 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17175 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17176 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17177 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17178 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17179 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17180 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17181 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17182 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17183 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17184 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17185 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17186 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17187 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17188 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17189 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17190 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17191
17192 LTCC='$LTCC'
17193 LTCFLAGS='$LTCFLAGS'
17194 compiler='$compiler_DEFAULT'
17195
17196 # A function that is used when there is no print builtin or printf.
17197 func_fallback_echo ()
17198 {
17199 eval 'cat <<_LTECHO_EOF
17200 \$1
17201 _LTECHO_EOF'
17202 }
17203
17204 # Quote evaled strings.
17205 for var in SHELL \
17206 ECHO \
17207 SED \
17208 GREP \
17209 EGREP \
17210 FGREP \
17211 LD \
17212 NM \
17213 LN_S \
17214 lt_SP2NL \
17215 lt_NL2SP \
17216 reload_flag \
17217 OBJDUMP \
17218 deplibs_check_method \
17219 file_magic_cmd \
17220 AR \
17221 AR_FLAGS \
17222 STRIP \
17223 RANLIB \
17224 CC \
17225 CFLAGS \
17226 compiler \
17227 lt_cv_sys_global_symbol_pipe \
17228 lt_cv_sys_global_symbol_to_cdecl \
17229 lt_cv_sys_global_symbol_to_c_name_address \
17230 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17231 lt_prog_compiler_no_builtin_flag \
17232 lt_prog_compiler_wl \
17233 lt_prog_compiler_pic \
17234 lt_prog_compiler_static \
17235 lt_cv_prog_compiler_c_o \
17236 need_locks \
17237 DSYMUTIL \
17238 NMEDIT \
17239 LIPO \
17240 OTOOL \
17241 OTOOL64 \
17242 shrext_cmds \
17243 export_dynamic_flag_spec \
17244 whole_archive_flag_spec \
17245 compiler_needs_object \
17246 with_gnu_ld \
17247 allow_undefined_flag \
17248 no_undefined_flag \
17249 hardcode_libdir_flag_spec \
17250 hardcode_libdir_flag_spec_ld \
17251 hardcode_libdir_separator \
17252 fix_srcfile_path \
17253 exclude_expsyms \
17254 include_expsyms \
17255 file_list_spec \
17256 variables_saved_for_relink \
17257 libname_spec \
17258 library_names_spec \
17259 soname_spec \
17260 install_override_mode \
17261 finish_eval \
17262 old_striplib \
17263 striplib; do
17264 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17265 *[\\\\\\\`\\"\\\$]*)
17266 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17267 ;;
17268 *)
17269 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17270 ;;
17271 esac
17272 done
17273
17274 # Double-quote double-evaled strings.
17275 for var in reload_cmds \
17276 old_postinstall_cmds \
17277 old_postuninstall_cmds \
17278 old_archive_cmds \
17279 extract_expsyms_cmds \
17280 old_archive_from_new_cmds \
17281 old_archive_from_expsyms_cmds \
17282 archive_cmds \
17283 archive_expsym_cmds \
17284 module_cmds \
17285 module_expsym_cmds \
17286 export_symbols_cmds \
17287 prelink_cmds \
17288 postinstall_cmds \
17289 postuninstall_cmds \
17290 finish_cmds \
17291 sys_lib_search_path_spec \
17292 sys_lib_dlsearch_path_spec; do
17293 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17294 *[\\\\\\\`\\"\\\$]*)
17295 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17296 ;;
17297 *)
17298 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17299 ;;
17300 esac
17301 done
17302
17303 ac_aux_dir='$ac_aux_dir'
17304 xsi_shell='$xsi_shell'
17305 lt_shell_append='$lt_shell_append'
17306
17307 # See if we are running on zsh, and set the options which allow our
17308 # commands through without removal of \ escapes INIT.
17309 if test -n "\${ZSH_VERSION+set}" ; then
17310 setopt NO_GLOB_SUBST
17311 fi
17312
17313
17314 PACKAGE='$PACKAGE'
17315 VERSION='$VERSION'
17316 TIMESTAMP='$TIMESTAMP'
17317 RM='$RM'
17318 ofile='$ofile'
17319
17320
17321
17322 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17323 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17324 # from automake.
17325 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17326 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17327 LINGUAS="${LINGUAS-%UNSET%}"
17328
17329
17330 _ACEOF
17331
17332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17333
17334 # Handling of arguments.
17335 for ac_config_target in $ac_config_targets
17336 do
17337 case $ac_config_target in
17338 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17339 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17340 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17341 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17342 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17343 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17344
17345 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17346 esac
17347 done
17348
17349
17350 # If the user did not use the arguments to specify the items to instantiate,
17351 # then the envvar interface is used. Set only those that are not.
17352 # We use the long form for the default assignment because of an extremely
17353 # bizarre bug on SunOS 4.1.3.
17354 if $ac_need_defaults; then
17355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17356 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17357 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17358 fi
17359
17360 # Have a temporary directory for convenience. Make it in the build tree
17361 # simply because there is no reason against having it here, and in addition,
17362 # creating and moving files from /tmp can sometimes cause problems.
17363 # Hook for its removal unless debugging.
17364 # Note that there is a small window in which the directory will not be cleaned:
17365 # after its creation but before its name has been assigned to `$tmp'.
17366 $debug ||
17367 {
17368 tmp= ac_tmp=
17369 trap 'exit_status=$?
17370 : "${ac_tmp:=$tmp}"
17371 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17372 ' 0
17373 trap 'as_fn_exit 1' 1 2 13 15
17374 }
17375 # Create a (secure) tmp directory for tmp files.
17376
17377 {
17378 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17379 test -d "$tmp"
17380 } ||
17381 {
17382 tmp=./conf$$-$RANDOM
17383 (umask 077 && mkdir "$tmp")
17384 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17385 ac_tmp=$tmp
17386
17387 # Set up the scripts for CONFIG_FILES section.
17388 # No need to generate them if there are no CONFIG_FILES.
17389 # This happens for instance with `./config.status config.h'.
17390 if test -n "$CONFIG_FILES"; then
17391
17392
17393 ac_cr=`echo X | tr X '\015'`
17394 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17395 # But we know of no other shell where ac_cr would be empty at this
17396 # point, so we can use a bashism as a fallback.
17397 if test "x$ac_cr" = x; then
17398 eval ac_cr=\$\'\\r\'
17399 fi
17400 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17401 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17402 ac_cs_awk_cr='\\r'
17403 else
17404 ac_cs_awk_cr=$ac_cr
17405 fi
17406
17407 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17408 _ACEOF
17409
17410
17411 {
17412 echo "cat >conf$$subs.awk <<_ACEOF" &&
17413 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17414 echo "_ACEOF"
17415 } >conf$$subs.sh ||
17416 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17417 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17418 ac_delim='%!_!# '
17419 for ac_last_try in false false false false false :; do
17420 . ./conf$$subs.sh ||
17421 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17422
17423 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17424 if test $ac_delim_n = $ac_delim_num; then
17425 break
17426 elif $ac_last_try; then
17427 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17428 else
17429 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17430 fi
17431 done
17432 rm -f conf$$subs.sh
17433
17434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17435 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17436 _ACEOF
17437 sed -n '
17438 h
17439 s/^/S["/; s/!.*/"]=/
17440 p
17441 g
17442 s/^[^!]*!//
17443 :repl
17444 t repl
17445 s/'"$ac_delim"'$//
17446 t delim
17447 :nl
17448 h
17449 s/\(.\{148\}\)..*/\1/
17450 t more1
17451 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17452 p
17453 n
17454 b repl
17455 :more1
17456 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17457 p
17458 g
17459 s/.\{148\}//
17460 t nl
17461 :delim
17462 h
17463 s/\(.\{148\}\)..*/\1/
17464 t more2
17465 s/["\\]/\\&/g; s/^/"/; s/$/"/
17466 p
17467 b
17468 :more2
17469 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17470 p
17471 g
17472 s/.\{148\}//
17473 t delim
17474 ' <conf$$subs.awk | sed '
17475 /^[^""]/{
17476 N
17477 s/\n//
17478 }
17479 ' >>$CONFIG_STATUS || ac_write_fail=1
17480 rm -f conf$$subs.awk
17481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17482 _ACAWK
17483 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17484 for (key in S) S_is_set[key] = 1
17485 FS = ""
17486
17487 }
17488 {
17489 line = $ 0
17490 nfields = split(line, field, "@")
17491 substed = 0
17492 len = length(field[1])
17493 for (i = 2; i < nfields; i++) {
17494 key = field[i]
17495 keylen = length(key)
17496 if (S_is_set[key]) {
17497 value = S[key]
17498 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17499 len += length(value) + length(field[++i])
17500 substed = 1
17501 } else
17502 len += 1 + keylen
17503 }
17504
17505 print line
17506 }
17507
17508 _ACAWK
17509 _ACEOF
17510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17511 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17512 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17513 else
17514 cat
17515 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17516 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17517 _ACEOF
17518
17519 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17520 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17521 # trailing colons and then remove the whole line if VPATH becomes empty
17522 # (actually we leave an empty line to preserve line numbers).
17523 if test "x$srcdir" = x.; then
17524 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17525 h
17526 s///
17527 s/^/:/
17528 s/[ ]*$/:/
17529 s/:\$(srcdir):/:/g
17530 s/:\${srcdir}:/:/g
17531 s/:@srcdir@:/:/g
17532 s/^:*//
17533 s/:*$//
17534 x
17535 s/\(=[ ]*\).*/\1/
17536 G
17537 s/\n//
17538 s/^[^=]*=[ ]*$//
17539 }'
17540 fi
17541
17542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17543 fi # test -n "$CONFIG_FILES"
17544
17545 # Set up the scripts for CONFIG_HEADERS section.
17546 # No need to generate them if there are no CONFIG_HEADERS.
17547 # This happens for instance with `./config.status Makefile'.
17548 if test -n "$CONFIG_HEADERS"; then
17549 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17550 BEGIN {
17551 _ACEOF
17552
17553 # Transform confdefs.h into an awk script `defines.awk', embedded as
17554 # here-document in config.status, that substitutes the proper values into
17555 # config.h.in to produce config.h.
17556
17557 # Create a delimiter string that does not exist in confdefs.h, to ease
17558 # handling of long lines.
17559 ac_delim='%!_!# '
17560 for ac_last_try in false false :; do
17561 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17562 if test -z "$ac_tt"; then
17563 break
17564 elif $ac_last_try; then
17565 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17566 else
17567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17568 fi
17569 done
17570
17571 # For the awk script, D is an array of macro values keyed by name,
17572 # likewise P contains macro parameters if any. Preserve backslash
17573 # newline sequences.
17574
17575 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17576 sed -n '
17577 s/.\{148\}/&'"$ac_delim"'/g
17578 t rset
17579 :rset
17580 s/^[ ]*#[ ]*define[ ][ ]*/ /
17581 t def
17582 d
17583 :def
17584 s/\\$//
17585 t bsnl
17586 s/["\\]/\\&/g
17587 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17588 D["\1"]=" \3"/p
17589 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17590 d
17591 :bsnl
17592 s/["\\]/\\&/g
17593 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17594 D["\1"]=" \3\\\\\\n"\\/p
17595 t cont
17596 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17597 t cont
17598 d
17599 :cont
17600 n
17601 s/.\{148\}/&'"$ac_delim"'/g
17602 t clear
17603 :clear
17604 s/\\$//
17605 t bsnlc
17606 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17607 d
17608 :bsnlc
17609 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17610 b cont
17611 ' <confdefs.h | sed '
17612 s/'"$ac_delim"'/"\\\
17613 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17614
17615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17616 for (key in D) D_is_set[key] = 1
17617 FS = ""
17618 }
17619 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17620 line = \$ 0
17621 split(line, arg, " ")
17622 if (arg[1] == "#") {
17623 defundef = arg[2]
17624 mac1 = arg[3]
17625 } else {
17626 defundef = substr(arg[1], 2)
17627 mac1 = arg[2]
17628 }
17629 split(mac1, mac2, "(") #)
17630 macro = mac2[1]
17631 prefix = substr(line, 1, index(line, defundef) - 1)
17632 if (D_is_set[macro]) {
17633 # Preserve the white space surrounding the "#".
17634 print prefix "define", macro P[macro] D[macro]
17635 next
17636 } else {
17637 # Replace #undef with comments. This is necessary, for example,
17638 # in the case of _POSIX_SOURCE, which is predefined and required
17639 # on some systems where configure will not decide to define it.
17640 if (defundef == "undef") {
17641 print "/*", prefix defundef, macro, "*/"
17642 next
17643 }
17644 }
17645 }
17646 { print }
17647 _ACAWK
17648 _ACEOF
17649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17650 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17651 fi # test -n "$CONFIG_HEADERS"
17652
17653
17654 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17655 shift
17656 for ac_tag
17657 do
17658 case $ac_tag in
17659 :[FHLC]) ac_mode=$ac_tag; continue;;
17660 esac
17661 case $ac_mode$ac_tag in
17662 :[FHL]*:*);;
17663 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17664 :[FH]-) ac_tag=-:-;;
17665 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17666 esac
17667 ac_save_IFS=$IFS
17668 IFS=:
17669 set x $ac_tag
17670 IFS=$ac_save_IFS
17671 shift
17672 ac_file=$1
17673 shift
17674
17675 case $ac_mode in
17676 :L) ac_source=$1;;
17677 :[FH])
17678 ac_file_inputs=
17679 for ac_f
17680 do
17681 case $ac_f in
17682 -) ac_f="$ac_tmp/stdin";;
17683 *) # Look for the file first in the build tree, then in the source tree
17684 # (if the path is not absolute). The absolute path cannot be DOS-style,
17685 # because $ac_f cannot contain `:'.
17686 test -f "$ac_f" ||
17687 case $ac_f in
17688 [\\/$]*) false;;
17689 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17690 esac ||
17691 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17692 esac
17693 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17694 as_fn_append ac_file_inputs " '$ac_f'"
17695 done
17696
17697 # Let's still pretend it is `configure' which instantiates (i.e., don't
17698 # use $as_me), people would be surprised to read:
17699 # /* config.h. Generated by config.status. */
17700 configure_input='Generated from '`
17701 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17702 `' by configure.'
17703 if test x"$ac_file" != x-; then
17704 configure_input="$ac_file. $configure_input"
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17706 $as_echo "$as_me: creating $ac_file" >&6;}
17707 fi
17708 # Neutralize special characters interpreted by sed in replacement strings.
17709 case $configure_input in #(
17710 *\&* | *\|* | *\\* )
17711 ac_sed_conf_input=`$as_echo "$configure_input" |
17712 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17713 *) ac_sed_conf_input=$configure_input;;
17714 esac
17715
17716 case $ac_tag in
17717 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17718 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17719 esac
17720 ;;
17721 esac
17722
17723 ac_dir=`$as_dirname -- "$ac_file" ||
17724 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17725 X"$ac_file" : 'X\(//\)[^/]' \| \
17726 X"$ac_file" : 'X\(//\)$' \| \
17727 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17728 $as_echo X"$ac_file" |
17729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17730 s//\1/
17731 q
17732 }
17733 /^X\(\/\/\)[^/].*/{
17734 s//\1/
17735 q
17736 }
17737 /^X\(\/\/\)$/{
17738 s//\1/
17739 q
17740 }
17741 /^X\(\/\).*/{
17742 s//\1/
17743 q
17744 }
17745 s/.*/./; q'`
17746 as_dir="$ac_dir"; as_fn_mkdir_p
17747 ac_builddir=.
17748
17749 case "$ac_dir" in
17750 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17751 *)
17752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17753 # A ".." for each directory in $ac_dir_suffix.
17754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17755 case $ac_top_builddir_sub in
17756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17758 esac ;;
17759 esac
17760 ac_abs_top_builddir=$ac_pwd
17761 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17762 # for backward compatibility:
17763 ac_top_builddir=$ac_top_build_prefix
17764
17765 case $srcdir in
17766 .) # We are building in place.
17767 ac_srcdir=.
17768 ac_top_srcdir=$ac_top_builddir_sub
17769 ac_abs_top_srcdir=$ac_pwd ;;
17770 [\\/]* | ?:[\\/]* ) # Absolute name.
17771 ac_srcdir=$srcdir$ac_dir_suffix;
17772 ac_top_srcdir=$srcdir
17773 ac_abs_top_srcdir=$srcdir ;;
17774 *) # Relative name.
17775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17776 ac_top_srcdir=$ac_top_build_prefix$srcdir
17777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17778 esac
17779 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17780
17781
17782 case $ac_mode in
17783 :F)
17784 #
17785 # CONFIG_FILE
17786 #
17787
17788 case $INSTALL in
17789 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17790 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17791 esac
17792 ac_MKDIR_P=$MKDIR_P
17793 case $MKDIR_P in
17794 [\\/$]* | ?:[\\/]* ) ;;
17795 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17796 esac
17797 _ACEOF
17798
17799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17800 # If the template does not know about datarootdir, expand it.
17801 # FIXME: This hack should be removed a few years after 2.60.
17802 ac_datarootdir_hack=; ac_datarootdir_seen=
17803 ac_sed_dataroot='
17804 /datarootdir/ {
17805 p
17806 q
17807 }
17808 /@datadir@/p
17809 /@docdir@/p
17810 /@infodir@/p
17811 /@localedir@/p
17812 /@mandir@/p'
17813 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17814 *datarootdir*) ac_datarootdir_seen=yes;;
17815 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17817 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17818 _ACEOF
17819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17820 ac_datarootdir_hack='
17821 s&@datadir@&$datadir&g
17822 s&@docdir@&$docdir&g
17823 s&@infodir@&$infodir&g
17824 s&@localedir@&$localedir&g
17825 s&@mandir@&$mandir&g
17826 s&\\\${datarootdir}&$datarootdir&g' ;;
17827 esac
17828 _ACEOF
17829
17830 # Neutralize VPATH when `$srcdir' = `.'.
17831 # Shell code in configure.ac might set extrasub.
17832 # FIXME: do we really want to maintain this feature?
17833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17834 ac_sed_extra="$ac_vpsub
17835 $extrasub
17836 _ACEOF
17837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17838 :t
17839 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17840 s|@configure_input@|$ac_sed_conf_input|;t t
17841 s&@top_builddir@&$ac_top_builddir_sub&;t t
17842 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17843 s&@srcdir@&$ac_srcdir&;t t
17844 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17845 s&@top_srcdir@&$ac_top_srcdir&;t t
17846 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17847 s&@builddir@&$ac_builddir&;t t
17848 s&@abs_builddir@&$ac_abs_builddir&;t t
17849 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17850 s&@INSTALL@&$ac_INSTALL&;t t
17851 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17852 $ac_datarootdir_hack
17853 "
17854 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17855 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17856
17857 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17858 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17859 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17860 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17862 which seems to be undefined. Please make sure it is defined" >&5
17863 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17864 which seems to be undefined. Please make sure it is defined" >&2;}
17865
17866 rm -f "$ac_tmp/stdin"
17867 case $ac_file in
17868 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17869 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17870 esac \
17871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17872 ;;
17873 :H)
17874 #
17875 # CONFIG_HEADER
17876 #
17877 if test x"$ac_file" != x-; then
17878 {
17879 $as_echo "/* $configure_input */" \
17880 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17881 } >"$ac_tmp/config.h" \
17882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17883 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17885 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17886 else
17887 rm -f "$ac_file"
17888 mv "$ac_tmp/config.h" "$ac_file" \
17889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17890 fi
17891 else
17892 $as_echo "/* $configure_input */" \
17893 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17894 || as_fn_error $? "could not create -" "$LINENO" 5
17895 fi
17896 # Compute "$ac_file"'s index in $config_headers.
17897 _am_arg="$ac_file"
17898 _am_stamp_count=1
17899 for _am_header in $config_headers :; do
17900 case $_am_header in
17901 $_am_arg | $_am_arg:* )
17902 break ;;
17903 * )
17904 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17905 esac
17906 done
17907 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17908 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17909 X"$_am_arg" : 'X\(//\)[^/]' \| \
17910 X"$_am_arg" : 'X\(//\)$' \| \
17911 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17912 $as_echo X"$_am_arg" |
17913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17914 s//\1/
17915 q
17916 }
17917 /^X\(\/\/\)[^/].*/{
17918 s//\1/
17919 q
17920 }
17921 /^X\(\/\/\)$/{
17922 s//\1/
17923 q
17924 }
17925 /^X\(\/\).*/{
17926 s//\1/
17927 q
17928 }
17929 s/.*/./; q'`/stamp-h$_am_stamp_count
17930 ;;
17931
17932 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17933 $as_echo "$as_me: executing $ac_file commands" >&6;}
17934 ;;
17935 esac
17936
17937
17938 case $ac_file$ac_mode in
17939 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17940 # Older Autoconf quotes --file arguments for eval, but not when files
17941 # are listed without --file. Let's play safe and only enable the eval
17942 # if we detect the quoting.
17943 case $CONFIG_FILES in
17944 *\'*) eval set x "$CONFIG_FILES" ;;
17945 *) set x $CONFIG_FILES ;;
17946 esac
17947 shift
17948 for mf
17949 do
17950 # Strip MF so we end up with the name of the file.
17951 mf=`echo "$mf" | sed -e 's/:.*$//'`
17952 # Check whether this is an Automake generated Makefile or not.
17953 # We used to match only the files named 'Makefile.in', but
17954 # some people rename them; so instead we look at the file content.
17955 # Grep'ing the first line is not enough: some people post-process
17956 # each Makefile.in and add a new line on top of each file to say so.
17957 # Grep'ing the whole file is not good either: AIX grep has a line
17958 # limit of 2048, but all sed's we know have understand at least 4000.
17959 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17960 dirpart=`$as_dirname -- "$mf" ||
17961 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17962 X"$mf" : 'X\(//\)[^/]' \| \
17963 X"$mf" : 'X\(//\)$' \| \
17964 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17965 $as_echo X"$mf" |
17966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17967 s//\1/
17968 q
17969 }
17970 /^X\(\/\/\)[^/].*/{
17971 s//\1/
17972 q
17973 }
17974 /^X\(\/\/\)$/{
17975 s//\1/
17976 q
17977 }
17978 /^X\(\/\).*/{
17979 s//\1/
17980 q
17981 }
17982 s/.*/./; q'`
17983 else
17984 continue
17985 fi
17986 # Extract the definition of DEPDIR, am__include, and am__quote
17987 # from the Makefile without running 'make'.
17988 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17989 test -z "$DEPDIR" && continue
17990 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17991 test -z "$am__include" && continue
17992 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17993 # Find all dependency output files, they are included files with
17994 # $(DEPDIR) in their names. We invoke sed twice because it is the
17995 # simplest approach to changing $(DEPDIR) to its actual value in the
17996 # expansion.
17997 for file in `sed -n "
17998 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17999 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18000 # Make sure the directory exists.
18001 test -f "$dirpart/$file" && continue
18002 fdir=`$as_dirname -- "$file" ||
18003 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18004 X"$file" : 'X\(//\)[^/]' \| \
18005 X"$file" : 'X\(//\)$' \| \
18006 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18007 $as_echo X"$file" |
18008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18009 s//\1/
18010 q
18011 }
18012 /^X\(\/\/\)[^/].*/{
18013 s//\1/
18014 q
18015 }
18016 /^X\(\/\/\)$/{
18017 s//\1/
18018 q
18019 }
18020 /^X\(\/\).*/{
18021 s//\1/
18022 q
18023 }
18024 s/.*/./; q'`
18025 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18026 # echo "creating $dirpart/$file"
18027 echo '# dummy' > "$dirpart/$file"
18028 done
18029 done
18030 }
18031 ;;
18032 "libtool":C)
18033
18034 # See if we are running on zsh, and set the options which allow our
18035 # commands through without removal of \ escapes.
18036 if test -n "${ZSH_VERSION+set}" ; then
18037 setopt NO_GLOB_SUBST
18038 fi
18039
18040 cfgfile="${ofile}T"
18041 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18042 $RM "$cfgfile"
18043
18044 cat <<_LT_EOF >> "$cfgfile"
18045 #! $SHELL
18046
18047 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18048 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18050 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18051 #
18052 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18053 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18054 # Written by Gordon Matzigkeit, 1996
18055 #
18056 # This file is part of GNU Libtool.
18057 #
18058 # GNU Libtool is free software; you can redistribute it and/or
18059 # modify it under the terms of the GNU General Public License as
18060 # published by the Free Software Foundation; either version 2 of
18061 # the License, or (at your option) any later version.
18062 #
18063 # As a special exception to the GNU General Public License,
18064 # if you distribute this file as part of a program or library that
18065 # is built using GNU Libtool, you may include this file under the
18066 # same distribution terms that you use for the rest of that program.
18067 #
18068 # GNU Libtool is distributed in the hope that it will be useful,
18069 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18070 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18071 # GNU General Public License for more details.
18072 #
18073 # You should have received a copy of the GNU General Public License
18074 # along with GNU Libtool; see the file COPYING. If not, a copy
18075 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18076 # obtained by writing to the Free Software Foundation, Inc.,
18077 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18078
18079
18080 # The names of the tagged configurations supported by this script.
18081 available_tags=""
18082
18083 # ### BEGIN LIBTOOL CONFIG
18084
18085 # Which release of libtool.m4 was used?
18086 macro_version=$macro_version
18087 macro_revision=$macro_revision
18088
18089 # Whether or not to build shared libraries.
18090 build_libtool_libs=$enable_shared
18091
18092 # Whether or not to build static libraries.
18093 build_old_libs=$enable_static
18094
18095 # What type of objects to build.
18096 pic_mode=$pic_mode
18097
18098 # Whether or not to optimize for fast installation.
18099 fast_install=$enable_fast_install
18100
18101 # Shell to use when invoking shell scripts.
18102 SHELL=$lt_SHELL
18103
18104 # An echo program that protects backslashes.
18105 ECHO=$lt_ECHO
18106
18107 # The host system.
18108 host_alias=$host_alias
18109 host=$host
18110 host_os=$host_os
18111
18112 # The build system.
18113 build_alias=$build_alias
18114 build=$build
18115 build_os=$build_os
18116
18117 # A sed program that does not truncate output.
18118 SED=$lt_SED
18119
18120 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18121 Xsed="\$SED -e 1s/^X//"
18122
18123 # A grep program that handles long lines.
18124 GREP=$lt_GREP
18125
18126 # An ERE matcher.
18127 EGREP=$lt_EGREP
18128
18129 # A literal string matcher.
18130 FGREP=$lt_FGREP
18131
18132 # A BSD- or MS-compatible name lister.
18133 NM=$lt_NM
18134
18135 # Whether we need soft or hard links.
18136 LN_S=$lt_LN_S
18137
18138 # What is the maximum length of a command?
18139 max_cmd_len=$max_cmd_len
18140
18141 # Object file suffix (normally "o").
18142 objext=$ac_objext
18143
18144 # Executable file suffix (normally "").
18145 exeext=$exeext
18146
18147 # whether the shell understands "unset".
18148 lt_unset=$lt_unset
18149
18150 # turn spaces into newlines.
18151 SP2NL=$lt_lt_SP2NL
18152
18153 # turn newlines into spaces.
18154 NL2SP=$lt_lt_NL2SP
18155
18156 # An object symbol dumper.
18157 OBJDUMP=$lt_OBJDUMP
18158
18159 # Method to check whether dependent libraries are shared objects.
18160 deplibs_check_method=$lt_deplibs_check_method
18161
18162 # Command to use when deplibs_check_method == "file_magic".
18163 file_magic_cmd=$lt_file_magic_cmd
18164
18165 # The archiver.
18166 AR=$lt_AR
18167 AR_FLAGS=$lt_AR_FLAGS
18168
18169 # A symbol stripping program.
18170 STRIP=$lt_STRIP
18171
18172 # Commands used to install an old-style archive.
18173 RANLIB=$lt_RANLIB
18174 old_postinstall_cmds=$lt_old_postinstall_cmds
18175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18176
18177 # Whether to use a lock for old archive extraction.
18178 lock_old_archive_extraction=$lock_old_archive_extraction
18179
18180 # A C compiler.
18181 LTCC=$lt_CC
18182
18183 # LTCC compiler flags.
18184 LTCFLAGS=$lt_CFLAGS
18185
18186 # Take the output of nm and produce a listing of raw symbols and C names.
18187 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18188
18189 # Transform the output of nm in a proper C declaration.
18190 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18191
18192 # Transform the output of nm in a C name address pair.
18193 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18194
18195 # Transform the output of nm in a C name address pair when lib prefix is needed.
18196 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18197
18198 # The name of the directory that contains temporary libtool files.
18199 objdir=$objdir
18200
18201 # Used to examine libraries when file_magic_cmd begins with "file".
18202 MAGIC_CMD=$MAGIC_CMD
18203
18204 # Must we lock files when doing compilation?
18205 need_locks=$lt_need_locks
18206
18207 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18208 DSYMUTIL=$lt_DSYMUTIL
18209
18210 # Tool to change global to local symbols on Mac OS X.
18211 NMEDIT=$lt_NMEDIT
18212
18213 # Tool to manipulate fat objects and archives on Mac OS X.
18214 LIPO=$lt_LIPO
18215
18216 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18217 OTOOL=$lt_OTOOL
18218
18219 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18220 OTOOL64=$lt_OTOOL64
18221
18222 # Old archive suffix (normally "a").
18223 libext=$libext
18224
18225 # Shared library suffix (normally ".so").
18226 shrext_cmds=$lt_shrext_cmds
18227
18228 # The commands to extract the exported symbol list from a shared archive.
18229 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18230
18231 # Variables whose values should be saved in libtool wrapper scripts and
18232 # restored at link time.
18233 variables_saved_for_relink=$lt_variables_saved_for_relink
18234
18235 # Do we need the "lib" prefix for modules?
18236 need_lib_prefix=$need_lib_prefix
18237
18238 # Do we need a version for libraries?
18239 need_version=$need_version
18240
18241 # Library versioning type.
18242 version_type=$version_type
18243
18244 # Shared library runtime path variable.
18245 runpath_var=$runpath_var
18246
18247 # Shared library path variable.
18248 shlibpath_var=$shlibpath_var
18249
18250 # Is shlibpath searched before the hard-coded library search path?
18251 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18252
18253 # Format of library name prefix.
18254 libname_spec=$lt_libname_spec
18255
18256 # List of archive names. First name is the real one, the rest are links.
18257 # The last name is the one that the linker finds with -lNAME
18258 library_names_spec=$lt_library_names_spec
18259
18260 # The coded name of the library, if different from the real name.
18261 soname_spec=$lt_soname_spec
18262
18263 # Permission mode override for installation of shared libraries.
18264 install_override_mode=$lt_install_override_mode
18265
18266 # Command to use after installation of a shared archive.
18267 postinstall_cmds=$lt_postinstall_cmds
18268
18269 # Command to use after uninstallation of a shared archive.
18270 postuninstall_cmds=$lt_postuninstall_cmds
18271
18272 # Commands used to finish a libtool library installation in a directory.
18273 finish_cmds=$lt_finish_cmds
18274
18275 # As "finish_cmds", except a single script fragment to be evaled but
18276 # not shown.
18277 finish_eval=$lt_finish_eval
18278
18279 # Whether we should hardcode library paths into libraries.
18280 hardcode_into_libs=$hardcode_into_libs
18281
18282 # Compile-time system search path for libraries.
18283 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18284
18285 # Run-time system search path for libraries.
18286 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18287
18288 # Whether dlopen is supported.
18289 dlopen_support=$enable_dlopen
18290
18291 # Whether dlopen of programs is supported.
18292 dlopen_self=$enable_dlopen_self
18293
18294 # Whether dlopen of statically linked programs is supported.
18295 dlopen_self_static=$enable_dlopen_self_static
18296
18297 # Commands to strip libraries.
18298 old_striplib=$lt_old_striplib
18299 striplib=$lt_striplib
18300
18301
18302 # The linker used to build libraries.
18303 LD=$lt_LD
18304
18305 # How to create reloadable object files.
18306 reload_flag=$lt_reload_flag
18307 reload_cmds=$lt_reload_cmds
18308
18309 # Commands used to build an old-style archive.
18310 old_archive_cmds=$lt_old_archive_cmds
18311
18312 # A language specific compiler.
18313 CC=$lt_compiler
18314
18315 # Is the compiler the GNU compiler?
18316 with_gcc=$GCC
18317
18318 # Compiler flag to turn off builtin functions.
18319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18320
18321 # How to pass a linker flag through the compiler.
18322 wl=$lt_lt_prog_compiler_wl
18323
18324 # Additional compiler flags for building library objects.
18325 pic_flag=$lt_lt_prog_compiler_pic
18326
18327 # Compiler flag to prevent dynamic linking.
18328 link_static_flag=$lt_lt_prog_compiler_static
18329
18330 # Does compiler simultaneously support -c and -o options?
18331 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18332
18333 # Whether or not to add -lc for building shared libraries.
18334 build_libtool_need_lc=$archive_cmds_need_lc
18335
18336 # Whether or not to disallow shared libs when runtime libs are static.
18337 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18338
18339 # Compiler flag to allow reflexive dlopens.
18340 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18341
18342 # Compiler flag to generate shared objects directly from archives.
18343 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18344
18345 # Whether the compiler copes with passing no objects directly.
18346 compiler_needs_object=$lt_compiler_needs_object
18347
18348 # Create an old-style archive from a shared archive.
18349 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18350
18351 # Create a temporary old-style archive to link instead of a shared archive.
18352 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18353
18354 # Commands used to build a shared archive.
18355 archive_cmds=$lt_archive_cmds
18356 archive_expsym_cmds=$lt_archive_expsym_cmds
18357
18358 # Commands used to build a loadable module if different from building
18359 # a shared archive.
18360 module_cmds=$lt_module_cmds
18361 module_expsym_cmds=$lt_module_expsym_cmds
18362
18363 # Whether we are building with GNU ld or not.
18364 with_gnu_ld=$lt_with_gnu_ld
18365
18366 # Flag that allows shared libraries with undefined symbols to be built.
18367 allow_undefined_flag=$lt_allow_undefined_flag
18368
18369 # Flag that enforces no undefined symbols.
18370 no_undefined_flag=$lt_no_undefined_flag
18371
18372 # Flag to hardcode \$libdir into a binary during linking.
18373 # This must work even if \$libdir does not exist
18374 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18375
18376 # If ld is used when linking, flag to hardcode \$libdir into a binary
18377 # during linking. This must work even if \$libdir does not exist.
18378 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18379
18380 # Whether we need a single "-rpath" flag with a separated argument.
18381 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18382
18383 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18384 # DIR into the resulting binary.
18385 hardcode_direct=$hardcode_direct
18386
18387 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18388 # DIR into the resulting binary and the resulting library dependency is
18389 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18390 # library is relocated.
18391 hardcode_direct_absolute=$hardcode_direct_absolute
18392
18393 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18394 # into the resulting binary.
18395 hardcode_minus_L=$hardcode_minus_L
18396
18397 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18398 # into the resulting binary.
18399 hardcode_shlibpath_var=$hardcode_shlibpath_var
18400
18401 # Set to "yes" if building a shared library automatically hardcodes DIR
18402 # into the library and all subsequent libraries and executables linked
18403 # against it.
18404 hardcode_automatic=$hardcode_automatic
18405
18406 # Set to yes if linker adds runtime paths of dependent libraries
18407 # to runtime path list.
18408 inherit_rpath=$inherit_rpath
18409
18410 # Whether libtool must link a program against all its dependency libraries.
18411 link_all_deplibs=$link_all_deplibs
18412
18413 # Fix the shell variable \$srcfile for the compiler.
18414 fix_srcfile_path=$lt_fix_srcfile_path
18415
18416 # Set to "yes" if exported symbols are required.
18417 always_export_symbols=$always_export_symbols
18418
18419 # The commands to list exported symbols.
18420 export_symbols_cmds=$lt_export_symbols_cmds
18421
18422 # Symbols that should not be listed in the preloaded symbols.
18423 exclude_expsyms=$lt_exclude_expsyms
18424
18425 # Symbols that must always be exported.
18426 include_expsyms=$lt_include_expsyms
18427
18428 # Commands necessary for linking programs (against libraries) with templates.
18429 prelink_cmds=$lt_prelink_cmds
18430
18431 # Specify filename containing input files.
18432 file_list_spec=$lt_file_list_spec
18433
18434 # How to hardcode a shared library path into an executable.
18435 hardcode_action=$hardcode_action
18436
18437 # ### END LIBTOOL CONFIG
18438
18439 _LT_EOF
18440
18441 case $host_os in
18442 aix3*)
18443 cat <<\_LT_EOF >> "$cfgfile"
18444 # AIX sometimes has problems with the GCC collect2 program. For some
18445 # reason, if we set the COLLECT_NAMES environment variable, the problems
18446 # vanish in a puff of smoke.
18447 if test "X${COLLECT_NAMES+set}" != Xset; then
18448 COLLECT_NAMES=
18449 export COLLECT_NAMES
18450 fi
18451 _LT_EOF
18452 ;;
18453 esac
18454
18455
18456 ltmain="$ac_aux_dir/ltmain.sh"
18457
18458
18459 # We use sed instead of cat because bash on DJGPP gets confused if
18460 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18461 # text mode, it properly converts lines to CR/LF. This bash problem
18462 # is reportedly fixed, but why not run on old versions too?
18463 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18464 || (rm -f "$cfgfile"; exit 1)
18465
18466 case $xsi_shell in
18467 yes)
18468 cat << \_LT_EOF >> "$cfgfile"
18469
18470 # func_dirname file append nondir_replacement
18471 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18472 # otherwise set result to NONDIR_REPLACEMENT.
18473 func_dirname ()
18474 {
18475 case ${1} in
18476 */*) func_dirname_result="${1%/*}${2}" ;;
18477 * ) func_dirname_result="${3}" ;;
18478 esac
18479 }
18480
18481 # func_basename file
18482 func_basename ()
18483 {
18484 func_basename_result="${1##*/}"
18485 }
18486
18487 # func_dirname_and_basename file append nondir_replacement
18488 # perform func_basename and func_dirname in a single function
18489 # call:
18490 # dirname: Compute the dirname of FILE. If nonempty,
18491 # add APPEND to the result, otherwise set result
18492 # to NONDIR_REPLACEMENT.
18493 # value returned in "$func_dirname_result"
18494 # basename: Compute filename of FILE.
18495 # value retuned in "$func_basename_result"
18496 # Implementation must be kept synchronized with func_dirname
18497 # and func_basename. For efficiency, we do not delegate to
18498 # those functions but instead duplicate the functionality here.
18499 func_dirname_and_basename ()
18500 {
18501 case ${1} in
18502 */*) func_dirname_result="${1%/*}${2}" ;;
18503 * ) func_dirname_result="${3}" ;;
18504 esac
18505 func_basename_result="${1##*/}"
18506 }
18507
18508 # func_stripname prefix suffix name
18509 # strip PREFIX and SUFFIX off of NAME.
18510 # PREFIX and SUFFIX must not contain globbing or regex special
18511 # characters, hashes, percent signs, but SUFFIX may contain a leading
18512 # dot (in which case that matches only a dot).
18513 func_stripname ()
18514 {
18515 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18516 # positional parameters, so assign one to ordinary parameter first.
18517 func_stripname_result=${3}
18518 func_stripname_result=${func_stripname_result#"${1}"}
18519 func_stripname_result=${func_stripname_result%"${2}"}
18520 }
18521
18522 # func_opt_split
18523 func_opt_split ()
18524 {
18525 func_opt_split_opt=${1%%=*}
18526 func_opt_split_arg=${1#*=}
18527 }
18528
18529 # func_lo2o object
18530 func_lo2o ()
18531 {
18532 case ${1} in
18533 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18534 *) func_lo2o_result=${1} ;;
18535 esac
18536 }
18537
18538 # func_xform libobj-or-source
18539 func_xform ()
18540 {
18541 func_xform_result=${1%.*}.lo
18542 }
18543
18544 # func_arith arithmetic-term...
18545 func_arith ()
18546 {
18547 func_arith_result=$(( $* ))
18548 }
18549
18550 # func_len string
18551 # STRING may not start with a hyphen.
18552 func_len ()
18553 {
18554 func_len_result=${#1}
18555 }
18556
18557 _LT_EOF
18558 ;;
18559 *) # Bourne compatible functions.
18560 cat << \_LT_EOF >> "$cfgfile"
18561
18562 # func_dirname file append nondir_replacement
18563 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18564 # otherwise set result to NONDIR_REPLACEMENT.
18565 func_dirname ()
18566 {
18567 # Extract subdirectory from the argument.
18568 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18569 if test "X$func_dirname_result" = "X${1}"; then
18570 func_dirname_result="${3}"
18571 else
18572 func_dirname_result="$func_dirname_result${2}"
18573 fi
18574 }
18575
18576 # func_basename file
18577 func_basename ()
18578 {
18579 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18580 }
18581
18582
18583 # func_stripname prefix suffix name
18584 # strip PREFIX and SUFFIX off of NAME.
18585 # PREFIX and SUFFIX must not contain globbing or regex special
18586 # characters, hashes, percent signs, but SUFFIX may contain a leading
18587 # dot (in which case that matches only a dot).
18588 # func_strip_suffix prefix name
18589 func_stripname ()
18590 {
18591 case ${2} in
18592 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18593 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18594 esac
18595 }
18596
18597 # sed scripts:
18598 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18599 my_sed_long_arg='1s/^-[^=]*=//'
18600
18601 # func_opt_split
18602 func_opt_split ()
18603 {
18604 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18605 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18606 }
18607
18608 # func_lo2o object
18609 func_lo2o ()
18610 {
18611 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18612 }
18613
18614 # func_xform libobj-or-source
18615 func_xform ()
18616 {
18617 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18618 }
18619
18620 # func_arith arithmetic-term...
18621 func_arith ()
18622 {
18623 func_arith_result=`expr "$@"`
18624 }
18625
18626 # func_len string
18627 # STRING may not start with a hyphen.
18628 func_len ()
18629 {
18630 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18631 }
18632
18633 _LT_EOF
18634 esac
18635
18636 case $lt_shell_append in
18637 yes)
18638 cat << \_LT_EOF >> "$cfgfile"
18639
18640 # func_append var value
18641 # Append VALUE to the end of shell variable VAR.
18642 func_append ()
18643 {
18644 eval "$1+=\$2"
18645 }
18646 _LT_EOF
18647 ;;
18648 *)
18649 cat << \_LT_EOF >> "$cfgfile"
18650
18651 # func_append var value
18652 # Append VALUE to the end of shell variable VAR.
18653 func_append ()
18654 {
18655 eval "$1=\$$1\$2"
18656 }
18657
18658 _LT_EOF
18659 ;;
18660 esac
18661
18662
18663 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18664 || (rm -f "$cfgfile"; exit 1)
18665
18666 mv -f "$cfgfile" "$ofile" ||
18667 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18668 chmod +x "$ofile"
18669
18670 ;;
18671 "default-1":C)
18672 for ac_file in $CONFIG_FILES; do
18673 # Support "outfile[:infile[:infile...]]"
18674 case "$ac_file" in
18675 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18676 esac
18677 # PO directories have a Makefile.in generated from Makefile.in.in.
18678 case "$ac_file" in */Makefile.in)
18679 # Adjust a relative srcdir.
18680 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18681 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18682 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18683 # In autoconf-2.13 it is called $ac_given_srcdir.
18684 # In autoconf-2.50 it is called $srcdir.
18685 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18686 case "$ac_given_srcdir" in
18687 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18688 /*) top_srcdir="$ac_given_srcdir" ;;
18689 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18690 esac
18691 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18692 rm -f "$ac_dir/POTFILES"
18693 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18694 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18695 POMAKEFILEDEPS="POTFILES.in"
18696 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18697 # on $ac_dir but don't depend on user-specified configuration
18698 # parameters.
18699 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18700 # The LINGUAS file contains the set of available languages.
18701 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18702 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
18703 fi
18704 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18705 # Hide the ALL_LINGUAS assigment from automake.
18706 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18707 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18708 else
18709 # The set of available languages was given in configure.ac.
18710 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18711 fi
18712 case "$ac_given_srcdir" in
18713 .) srcdirpre= ;;
18714 *) srcdirpre='$(srcdir)/' ;;
18715 esac
18716 POFILES=
18717 GMOFILES=
18718 UPDATEPOFILES=
18719 DUMMYPOFILES=
18720 for lang in $ALL_LINGUAS; do
18721 POFILES="$POFILES $srcdirpre$lang.po"
18722 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18723 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18724 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18725 done
18726 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18727 # environment variable.
18728 INST_LINGUAS=
18729 if test -n "$ALL_LINGUAS"; then
18730 for presentlang in $ALL_LINGUAS; do
18731 useit=no
18732 if test "%UNSET%" != "$LINGUAS"; then
18733 desiredlanguages="$LINGUAS"
18734 else
18735 desiredlanguages="$ALL_LINGUAS"
18736 fi
18737 for desiredlang in $desiredlanguages; do
18738 # Use the presentlang catalog if desiredlang is
18739 # a. equal to presentlang, or
18740 # b. a variant of presentlang (because in this case,
18741 # presentlang can be used as a fallback for messages
18742 # which are not translated in the desiredlang catalog).
18743 case "$desiredlang" in
18744 "$presentlang"*) useit=yes;;
18745 esac
18746 done
18747 if test $useit = yes; then
18748 INST_LINGUAS="$INST_LINGUAS $presentlang"
18749 fi
18750 done
18751 fi
18752 CATALOGS=
18753 if test -n "$INST_LINGUAS"; then
18754 for lang in $INST_LINGUAS; do
18755 CATALOGS="$CATALOGS $lang.gmo"
18756 done
18757 fi
18758 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18759 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"
18760 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18761 if test -f "$f"; then
18762 case "$f" in
18763 *.orig | *.bak | *~) ;;
18764 *) cat "$f" >> "$ac_dir/Makefile" ;;
18765 esac
18766 fi
18767 done
18768 fi
18769 ;;
18770 esac
18771 done ;;
18772
18773 esac
18774 done # for ac_tag
18775
18776
18777 as_fn_exit 0
18778 _ACEOF
18779 ac_clean_files=$ac_clean_files_save
18780
18781 test $ac_write_fail = 0 ||
18782 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18783
18784
18785 # configure is writing to config.log, and then calls config.status.
18786 # config.status does its own redirection, appending to config.log.
18787 # Unfortunately, on DOS this fails, as config.log is still kept open
18788 # by configure, so config.status won't be able to write to it; its
18789 # output is simply discarded. So we exec the FD to /dev/null,
18790 # effectively closing config.log, so it can be properly (re)opened and
18791 # appended to by config.status. When coming back to configure, we
18792 # need to make the FD available again.
18793 if test "$no_create" != yes; then
18794 ac_cs_success=:
18795 ac_config_status_args=
18796 test "$silent" = yes &&
18797 ac_config_status_args="$ac_config_status_args --quiet"
18798 exec 5>/dev/null
18799 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18800 exec 5>>config.log
18801 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18802 # would make configure fail if this is the last instruction.
18803 $ac_cs_success || as_fn_exit 1
18804 fi
18805 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18807 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18808 fi
18809
18810
18811
18812 touch config.status.tmp
18813 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
18814 sed '/as_fn_exit 0/i \
18815 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
18816 touch --reference=Makefile Makefile.tmp \
18817 mv Makefile.tmp Makefile \
18818 ' config.status > config.status.tmp
18819 touch --reference=config.status config.status.tmp
18820 mv config.status.tmp config.status
18821 chmod +x config.status
18822 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
18823 touch --reference=Makefile Makefile.tmp
18824 mv Makefile.tmp Makefile
18825 else
18826 rm -f config.status.tmp
18827 fi
18828