Debian Codegraph @

binutils/configure

raw ◀ ▶
3 Debian patches touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
•3 # Generated by GNU Autoconf 2.69 for binutils 2.44.
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 [email protected] 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.44'
591 PACKAGE_STRING='binutils 2.44'
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 CTF_SOVER_EXT
639 EMULATION_VECTOR
640 EMULATION
641 OBJDUMP_PRIVATE_OFILES
642 OBJDUMP_DEFS
643 BUILD_INSTALL_MISC
644 BUILD_MISC
645 BUILD_DLLWRAP
646 BUILD_WINDMC
647 BUILD_WINDRES
648 DLLTOOL_DEFS
649 BUILD_DLLTOOL
650 BUILD_SRCONV
651 MSGPACK_LIBS
652 MSGPACK_CFLAGS
653 ZSTD_LIBS
654 ZSTD_CFLAGS
655 zlibinc
656 zlibdir
657 DEMANGLER_NAME
658 EXEEXT_FOR_BUILD
659 CC_FOR_BUILD
660 HDEFINES
661 GENINSRC_NEVER_FALSE
662 GENINSRC_NEVER_TRUE
663 MAINT
664 MAINTAINER_MODE_FALSE
665 MAINTAINER_MODE_TRUE
666 CATOBJEXT
667 GENCAT
668 INSTOBJEXT
669 DATADIRNAME
670 CATALOGS
671 INCINTL
672 LIBINTL_DEP
673 POSUB
674 LTLIBINTL
675 LIBINTL
676 INTLLIBS
677 LTLIBICONV
678 LIBICONV
679 INTL_MACOSX_LIBS
680 MSGMERGE
681 XGETTEXT
682 GMSGFMT
683 MSGFMT
684 USE_NLS
685 MKINSTALLDIRS
686 LEXLIB
687 LEX_OUTPUT_ROOT
688 LEX
689 YFLAGS
690 YACC
691 WARN_WRITE_STRINGS
692 NO_WERROR
693 WARN_CFLAGS_FOR_BUILD
694 WARN_CFLAGS
695 ENABLE_LIBCTF_FALSE
696 ENABLE_LIBCTF_TRUE
697 DEBUGINFOD_LIBS
698 DEBUGINFOD_CFLAGS
699 PKG_CONFIG_LIBDIR
700 PKG_CONFIG_PATH
701 PKG_CONFIG
702 LARGEFILE_CPPFLAGS
703 OTOOL64
704 OTOOL
705 LIPO
706 NMEDIT
707 DSYMUTIL
708 RANLIB
709 AR
710 OBJDUMP
711 LN_S
712 NM
713 ac_ct_DUMPBIN
714 DUMPBIN
715 LD
716 FGREP
717 SED
718 LIBTOOL
719 EGREP
720 GREP
721 CPP
722 am__fastdepCC_FALSE
723 am__fastdepCC_TRUE
724 CCDEPMODE
725 am__nodep
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__quote
730 am__include
731 DEPDIR
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
738 CC
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 target_os
767 target_vendor
768 target_cpu
769 target
770 host_os
771 host_vendor
772 host_cpu
773 host
774 build_os
775 build_vendor
776 build_cpu
777 build
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 localstatedir
798 sharedstatedir
799 sysconfdir
800 datadir
801 datarootdir
802 libexecdir
803 sbindir
804 bindir
805 program_transform_name
806 prefix
807 exec_prefix
808 PACKAGE_URL
809 PACKAGE_BUGREPORT
810 PACKAGE_STRING
811 PACKAGE_VERSION
812 PACKAGE_TARNAME
813 PACKAGE_NAME
814 PATH_SEPARATOR
815 SHELL'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_silent_rules
820 enable_dependency_tracking
821 enable_shared
822 enable_static
823 with_pic
824 enable_fast_install
825 with_gnu_ld
826 enable_libtool_lock
827 enable_plugins
828 enable_largefile
829 enable_checking
830 enable_targets
831 enable_deterministic_archives
832 enable_default_strings_all
833 enable_f_for_ifunc_symbols
834 enable_follow_debug_links
835 enable_colored_disassembly
836 with_debuginfod
837 enable_libctf
838 enable_werror
839 enable_build_warnings
840 enable_nls
841 enable_rpath
842 with_libiconv_prefix
843 with_libiconv_type
844 with_libintl_prefix
845 with_libintl_type
846 enable_maintainer_mode
847 with_system_zlib
848 with_zstd
849 with_msgpack
850 '
851 ac_precious_vars='build_alias
852 host_alias
853 target_alias
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 CPP
860 PKG_CONFIG
861 PKG_CONFIG_PATH
862 PKG_CONFIG_LIBDIR
863 DEBUGINFOD_CFLAGS
864 DEBUGINFOD_LIBS
865 YACC
866 YFLAGS
867 ZSTD_CFLAGS
868 ZSTD_LIBS
869 MSGPACK_CFLAGS
870 MSGPACK_LIBS'
871
872
873 # Initialize some variables set by options.
874 ac_init_help=
875 ac_init_version=false
876 ac_unrecognized_opts=
877 ac_unrecognized_sep=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
880 cache_file=/dev/null
881 exec_prefix=NONE
882 no_create=
883 no_recursion=
884 prefix=NONE
885 program_prefix=NONE
886 program_suffix=NONE
887 program_transform_name=s,x,x,
888 silent=
889 site=
890 srcdir=
891 verbose=
892 x_includes=NONE
893 x_libraries=NONE
894
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 includedir='${prefix}/include'
910 oldincludedir='/usr/include'
911 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
912 infodir='${datarootdir}/info'
913 htmldir='${docdir}'
914 dvidir='${docdir}'
915 pdfdir='${docdir}'
916 psdir='${docdir}'
917 libdir='${exec_prefix}/lib'
918 localedir='${datarootdir}/locale'
919 mandir='${datarootdir}/man'
920
921 ac_prev=
922 ac_dashdash=
923 for ac_option
924 do
925 # If the previous option needs an argument, assign it.
926 if test -n "$ac_prev"; then
927 eval $ac_prev=\$ac_option
928 ac_prev=
929 continue
930 fi
931
932 case $ac_option in
933 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 *=) ac_optarg= ;;
935 *) ac_optarg=yes ;;
936 esac
937
938 # Accept the important Cygnus configure options, so we can diagnose typos.
939
940 case $ac_dashdash$ac_option in
941 --)
942 ac_dashdash=yes ;;
943
944 -bindir | --bindir | --bindi | --bind | --bin | --bi)
945 ac_prev=bindir ;;
946 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
947 bindir=$ac_optarg ;;
948
949 -build | --build | --buil | --bui | --bu)
950 ac_prev=build_alias ;;
951 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
952 build_alias=$ac_optarg ;;
953
954 -cache-file | --cache-file | --cache-fil | --cache-fi \
955 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956 ac_prev=cache_file ;;
957 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959 cache_file=$ac_optarg ;;
960
961 --config-cache | -C)
962 cache_file=config.cache ;;
963
964 -datadir | --datadir | --datadi | --datad)
965 ac_prev=datadir ;;
966 -datadir=* | --datadir=* | --datadi=* | --datad=*)
967 datadir=$ac_optarg ;;
968
969 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970 | --dataroo | --dataro | --datar)
971 ac_prev=datarootdir ;;
972 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974 datarootdir=$ac_optarg ;;
975
976 -disable-* | --disable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error $? "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=no ;;
991
992 -docdir | --docdir | --docdi | --doc | --do)
993 ac_prev=docdir ;;
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995 docdir=$ac_optarg ;;
996
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998 ac_prev=dvidir ;;
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1001
1002 -enable-* | --enable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011 "enable_$ac_useropt"
1012 "*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=\$ac_optarg ;;
1017
1018 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020 | --exec | --exe | --ex)
1021 ac_prev=exec_prefix ;;
1022 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024 | --exec=* | --exe=* | --ex=*)
1025 exec_prefix=$ac_optarg ;;
1026
1027 -gas | --gas | --ga | --g)
1028 # Obsolete; use --with-gas.
1029 with_gas=yes ;;
1030
1031 -help | --help | --hel | --he | -h)
1032 ac_init_help=long ;;
1033 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034 ac_init_help=recursive ;;
1035 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036 ac_init_help=short ;;
1037
1038 -host | --host | --hos | --ho)
1039 ac_prev=host_alias ;;
1040 -host=* | --host=* | --hos=* | --ho=*)
1041 host_alias=$ac_optarg ;;
1042
1043 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044 ac_prev=htmldir ;;
1045 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046 | --ht=*)
1047 htmldir=$ac_optarg ;;
1048
1049 -includedir | --includedir | --includedi | --included | --include \
1050 | --includ | --inclu | --incl | --inc)
1051 ac_prev=includedir ;;
1052 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053 | --includ=* | --inclu=* | --incl=* | --inc=*)
1054 includedir=$ac_optarg ;;
1055
1056 -infodir | --infodir | --infodi | --infod | --info | --inf)
1057 ac_prev=infodir ;;
1058 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059 infodir=$ac_optarg ;;
1060
1061 -libdir | --libdir | --libdi | --libd)
1062 ac_prev=libdir ;;
1063 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064 libdir=$ac_optarg ;;
1065
1066 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067 | --libexe | --libex | --libe)
1068 ac_prev=libexecdir ;;
1069 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070 | --libexe=* | --libex=* | --libe=*)
1071 libexecdir=$ac_optarg ;;
1072
1073 -localedir | --localedir | --localedi | --localed | --locale)
1074 ac_prev=localedir ;;
1075 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076 localedir=$ac_optarg ;;
1077
1078 -localstatedir | --localstatedir | --localstatedi | --localstated \
1079 | --localstate | --localstat | --localsta | --localst | --locals)
1080 ac_prev=localstatedir ;;
1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083 localstatedir=$ac_optarg ;;
1084
1085 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086 ac_prev=mandir ;;
1087 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088 mandir=$ac_optarg ;;
1089
1090 -nfp | --nfp | --nf)
1091 # Obsolete; use --without-fp.
1092 with_fp=no ;;
1093
1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095 | --no-cr | --no-c | -n)
1096 no_create=yes ;;
1097
1098 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100 no_recursion=yes ;;
1101
1102 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104 | --oldin | --oldi | --old | --ol | --o)
1105 ac_prev=oldincludedir ;;
1106 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109 oldincludedir=$ac_optarg ;;
1110
1111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112 ac_prev=prefix ;;
1113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114 prefix=$ac_optarg ;;
1115
1116 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117 | --program-pre | --program-pr | --program-p)
1118 ac_prev=program_prefix ;;
1119 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121 program_prefix=$ac_optarg ;;
1122
1123 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124 | --program-suf | --program-su | --program-s)
1125 ac_prev=program_suffix ;;
1126 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128 program_suffix=$ac_optarg ;;
1129
1130 -program-transform-name | --program-transform-name \
1131 | --program-transform-nam | --program-transform-na \
1132 | --program-transform-n | --program-transform- \
1133 | --program-transform | --program-transfor \
1134 | --program-transfo | --program-transf \
1135 | --program-trans | --program-tran \
1136 | --progr-tra | --program-tr | --program-t)
1137 ac_prev=program_transform_name ;;
1138 -program-transform-name=* | --program-transform-name=* \
1139 | --program-transform-nam=* | --program-transform-na=* \
1140 | --program-transform-n=* | --program-transform-=* \
1141 | --program-transform=* | --program-transfor=* \
1142 | --program-transfo=* | --program-transf=* \
1143 | --program-trans=* | --program-tran=* \
1144 | --progr-tra=* | --program-tr=* | --program-t=*)
1145 program_transform_name=$ac_optarg ;;
1146
1147 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148 ac_prev=pdfdir ;;
1149 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150 pdfdir=$ac_optarg ;;
1151
1152 -psdir | --psdir | --psdi | --psd | --ps)
1153 ac_prev=psdir ;;
1154 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155 psdir=$ac_optarg ;;
1156
1157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158 | -silent | --silent | --silen | --sile | --sil)
1159 silent=yes ;;
1160
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 ac_prev=sbindir ;;
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 | --sbi=* | --sb=*)
1165 sbindir=$ac_optarg ;;
1166
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1170 | --sha | --sh)
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 | --sha=* | --sh=*)
1176 sharedstatedir=$ac_optarg ;;
1177
1178 -site | --site | --sit)
1179 ac_prev=site ;;
1180 -site=* | --site=* | --sit=*)
1181 site=$ac_optarg ;;
1182
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 ac_prev=srcdir ;;
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1187
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1194
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1199
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 verbose=yes ;;
1202
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1205
1206 -with-* | --with-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: $ac_useropt"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=\$ac_optarg ;;
1221
1222 -without-* | --without-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=no ;;
1237
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1241
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1248
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1255
1256 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257 Try \`$0 --help' for more information"
1258 ;;
1259
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 case $ac_envvar in #(
1264 '' | [0-9]* | *[!_$as_cr_alnum]* )
1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1266 esac
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1269
1270 *)
1271 # FIXME: should be removed in autoconf 3.0.
1272 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276 ;;
1277
1278 esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 as_fn_error $? "missing argument to $ac_option"
1284 fi
1285
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1288 no) ;;
1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1299 do
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1302 case $ac_val in
1303 */ )
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1306 esac
1307 # Be sure to have absolute directory names.
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1328 fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 as_fn_error $? "working directory cannot be determined"
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 as_fn_error $? "pwd does not report name of working directory"
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
1372 srcdir=$ac_confdir
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 srcdir=..
1375 fi
1376 else
1377 ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1382 fi
1383 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 ac_abs_confdir=`(
1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1403
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
•1411 \`configure' configures binutils 2.44 to adapt to many kinds of systems.
1412
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418 Defaults for the options are specified in brackets.
1419
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking ...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1436
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1441
1442 For better control, use the options below.
1443
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1464 _ACEOF
1465
1466 cat <<\_ACEOF
1467
1468 Program names:
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1472
1473 System types:
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 --target=TARGET configure for building compilers for TARGET [HOST]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481 case $ac_init_help in
•1482 short | recursive ) echo "Configuration of binutils 2.44:";;
1483 esac
1484 cat <<\_ACEOF
1485
1486 Optional Features:
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-silent-rules less verbose build output (undo: "make V=1")
1491 --disable-silent-rules verbose build output (undo: "make V=0")
1492 --enable-dependency-tracking
1493 do not reject slow dependency extractors
1494 --disable-dependency-tracking
1495 speeds up one-time build
1496 --enable-shared[=PKGS] build shared libraries [default=yes]
1497 --enable-static[=PKGS] build static libraries [default=yes]
1498 --enable-fast-install[=PKGS]
1499 optimize for fast installation [default=yes]
1500 --disable-libtool-lock avoid locking (might break parallel builds)
1501 --enable-plugins Enable support for plugins
1502 --disable-largefile omit support for large files
1503 --enable-checking enable run-time checks
1504 --enable-targets alternative target configurations
1505 --enable-deterministic-archives
1506 ar and ranlib default to -D behavior
1507 --disable-default-strings-all
1508 strings defaults to --data behavior
1509 --enable-f-for-ifunc-symbols
1510 Have nm use F and f for global and local ifunc
1511 symbols
1512 --enable-follow-debug-links
1513 Have readelf and objdump follow debug links by
1514 default
1515 --enable-colored-disassembly
1516 Have objdump use colors in its disassembly by
1517 default
1518 --enable-libctf Handle .ctf type-info sections [default=yes]
1519 --enable-werror treat compile warnings as errors
1520 --enable-build-warnings enable build-time compiler warnings
1521 --disable-nls do not use Native Language Support
1522 --disable-rpath do not hardcode runtime library paths
1523 --enable-maintainer-mode
1524 enable make rules and dependencies not useful (and
1525 sometimes confusing) to the casual installer
1526
1527 Optional Packages:
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1530 --with-pic try to use only PIC/non-PIC objects [default=use
1531 both]
1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1533 --with-debuginfod Enable debuginfo lookups with debuginfod
1534 (auto/yes/no)
1535 --with-gnu-ld assume the C compiler uses GNU ld default=no
1536 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1537 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1538 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1539 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1540 --without-libintl-prefix don't search for libintl in includedir and libdir
1541 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1542 --with-system-zlib use installed libz
1543 --with-zstd support zstd compressed debug sections
1544 (default=auto)
1545 --with-msgpack Enable msgpack support (auto/yes/no)
1546
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1555 CPP C preprocessor
1556 PKG_CONFIG path to pkg-config utility
1557 PKG_CONFIG_PATH
1558 directories to add to pkg-config's search path
1559 PKG_CONFIG_LIBDIR
1560 path overriding pkg-config's built-in search path
1561 DEBUGINFOD_CFLAGS
1562 C compiler flags for DEBUGINFOD, overriding pkg-config
1563 DEBUGINFOD_LIBS
1564 linker flags for DEBUGINFOD, overriding pkg-config
1565 YACC The `Yet Another Compiler Compiler' implementation to use.
1566 Defaults to the first program found out of: `bison -y', `byacc',
1567 `yacc'.
1568 YFLAGS The list of arguments that will be passed by default to $YACC.
1569 This script will default YFLAGS to the empty string to avoid a
1570 default value of `-d' given by some make applications.
1571 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1572 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1573 MSGPACK_CFLAGS
1574 C compiler flags for MSGPACK, overriding pkg-config
1575 MSGPACK_LIBS
1576 linker flags for MSGPACK, overriding pkg-config
1577
1578 Use these variables to override the choices made by `configure' or to help
1579 it to find libraries and programs with nonstandard names/locations.
1580
1581 Report bugs to the package provider.
1582 _ACEOF
1583 ac_status=$?
1584 fi
1585
1586 if test "$ac_init_help" = "recursive"; then
1587 # If there are subdirs, report their specific --help.
1588 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1589 test -d "$ac_dir" ||
1590 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1591 continue
1592 ac_builddir=.
1593
1594 case "$ac_dir" in
1595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *)
1597 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1598 # A ".." for each directory in $ac_dir_suffix.
1599 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1600 case $ac_top_builddir_sub in
1601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603 esac ;;
1604 esac
1605 ac_abs_top_builddir=$ac_pwd
1606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1607 # for backward compatibility:
1608 ac_top_builddir=$ac_top_build_prefix
1609
1610 case $srcdir in
1611 .) # We are building in place.
1612 ac_srcdir=.
1613 ac_top_srcdir=$ac_top_builddir_sub
1614 ac_abs_top_srcdir=$ac_pwd ;;
1615 [\\/]* | ?:[\\/]* ) # Absolute name.
1616 ac_srcdir=$srcdir$ac_dir_suffix;
1617 ac_top_srcdir=$srcdir
1618 ac_abs_top_srcdir=$srcdir ;;
1619 *) # Relative name.
1620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621 ac_top_srcdir=$ac_top_build_prefix$srcdir
1622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623 esac
1624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625
1626 cd "$ac_dir" || { ac_status=$?; continue; }
1627 # Check for guested configure.
1628 if test -f "$ac_srcdir/configure.gnu"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631 elif test -f "$ac_srcdir/configure"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure" --help=recursive
1634 else
1635 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636 fi || ac_status=$?
1637 cd "$ac_pwd" || { ac_status=$?; break; }
1638 done
1639 fi
1640
1641 test -n "$ac_init_help" && exit $ac_status
1642 if $ac_init_version; then
1643 cat <<\_ACEOF
•1644 binutils configure 2.44
1645 generated by GNU Autoconf 2.69
1646
1647 Copyright (C) 2012 Free Software Foundation, Inc.
1648 This configure script is free software; the Free Software Foundation
1649 gives unlimited permission to copy, distribute and modify it.
1650 _ACEOF
1651 exit
1652 fi
1653
1654 ## ------------------------ ##
1655 ## Autoconf initialization. ##
1656 ## ------------------------ ##
1657
1658 # ac_fn_c_try_compile LINENO
1659 # --------------------------
1660 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_compile ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext
1665 if { { ac_try="$ac_compile"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_compile") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest.$ac_objext; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_compile
1695
1696 # ac_fn_c_try_cpp LINENO
1697 # ----------------------
1698 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_cpp ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_cpp conftest.$ac_ext"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } > conftest.i && {
1718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 }; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=1
1727 fi
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_cpp
1732
1733 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1736 # the include files in INCLUDES and setting the cache variable VAR
1737 # accordingly.
1738 ac_fn_c_check_header_mongrel ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if eval \${$3+:} false; then :
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745 $as_echo_n "(cached) " >&6
1746 fi
1747 eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750 else
1751 # Is the header compilable?
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1753 $as_echo_n "checking $2 usability... " >&6; }
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 $4
1757 #include <$2>
1758 _ACEOF
1759 if ac_fn_c_try_compile "$LINENO"; then :
1760 ac_header_compiler=yes
1761 else
1762 ac_header_compiler=no
1763 fi
1764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1766 $as_echo "$ac_header_compiler" >&6; }
1767
1768 # Is the header present?
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1770 $as_echo_n "checking $2 presence... " >&6; }
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1773 #include <$2>
1774 _ACEOF
1775 if ac_fn_c_try_cpp "$LINENO"; then :
1776 ac_header_preproc=yes
1777 else
1778 ac_header_preproc=no
1779 fi
1780 rm -f conftest.err conftest.i conftest.$ac_ext
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1782 $as_echo "$ac_header_preproc" >&6; }
1783
1784 # So? What about this header?
1785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1786 yes:no: )
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1788 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1790 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1791 ;;
1792 no:yes:* )
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1794 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1796 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1798 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1800 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1802 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1803 ;;
1804 esac
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1809 else
1810 eval "$3=\$ac_header_compiler"
1811 fi
1812 eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 fi
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817
1818 } # ac_fn_c_check_header_mongrel
1819
1820 # ac_fn_c_try_run LINENO
1821 # ----------------------
1822 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1823 # that executables *can* be run.
1824 ac_fn_c_try_run ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_link"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_link") 2>&5
1835 ac_status=$?
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1838 { { case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_try") 2>&5
1845 ac_status=$?
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; }; }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: program exited with status $ac_status" >&5
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1853
1854 ac_retval=$ac_status
1855 fi
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1859
1860 } # ac_fn_c_try_run
1861
1862 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1863 # -------------------------------------------------------
1864 # Tests whether HEADER exists and can be compiled using the include files in
1865 # INCLUDES, setting the cache variable VAR accordingly.
1866 ac_fn_c_check_header_compile ()
1867 {
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 $4
1877 #include <$2>
1878 _ACEOF
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880 eval "$3=yes"
1881 else
1882 eval "$3=no"
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_header_compile
1892
1893 # ac_fn_c_try_link LINENO
1894 # -----------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_link ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 test -x conftest$ac_exeext
1921 }; then :
1922 ac_retval=0
1923 else
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927 ac_retval=1
1928 fi
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1936
1937 } # ac_fn_c_try_link
1938
1939 # ac_fn_c_check_func LINENO FUNC VAR
1940 # ----------------------------------
1941 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1942 ac_fn_c_check_func ()
1943 {
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1949 else
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1954 #define $2 innocuous_$2
1955
1956 /* System header to define __stub macros and hopefully few prototypes,
1957 which can conflict with char $2 (); below.
1958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1959 <limits.h> exists even on freestanding compilers. */
1960
1961 #ifdef __STDC__
1962 # include <limits.h>
1963 #else
1964 # include <assert.h>
1965 #endif
1966
1967 #undef $2
1968
1969 /* Override any GCC internal prototype to avoid an error.
1970 Use char because int might match the return type of a GCC
1971 builtin and then its argument prototype would still apply. */
1972 #ifdef __cplusplus
1973 extern "C"
1974 #endif
1975 char $2 ();
1976 /* The GNU C library defines this for functions which it implements
1977 to always fail with ENOSYS. Some functions are actually named
1978 something starting with __ and the normal name is an alias. */
1979 #if defined __stub_$2 || defined __stub___$2
1980 choke me
1981 #endif
1982
1983 int
1984 main ()
1985 {
1986 return $2 ();
1987 ;
1988 return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_link "$LINENO"; then :
1992 eval "$3=yes"
1993 else
1994 eval "$3=no"
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext \
1997 conftest$ac_exeext conftest.$ac_ext
1998 fi
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004 } # ac_fn_c_check_func
2005
2006 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2007 # ----------------------------------------------------
2008 # Tries to find if the field MEMBER exists in type AGGR, after including
2009 # INCLUDES, setting cache variable VAR accordingly.
2010 ac_fn_c_check_member ()
2011 {
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2014 $as_echo_n "checking for $2.$3... " >&6; }
2015 if eval \${$4+:} false; then :
2016 $as_echo_n "(cached) " >&6
2017 else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 $5
2021 int
2022 main ()
2023 {
2024 static $2 ac_aggr;
2025 if (ac_aggr.$3)
2026 return 0;
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$4=yes"
2033 else
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 $5
2037 int
2038 main ()
2039 {
2040 static $2 ac_aggr;
2041 if (sizeof ac_aggr.$3)
2042 return 0;
2043 ;
2044 return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 eval "$4=yes"
2049 else
2050 eval "$4=no"
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 eval ac_res=\$$4
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060
2061 } # ac_fn_c_check_member
2062
2063 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2064 # ---------------------------------------------
2065 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2066 # accordingly.
2067 ac_fn_c_check_decl ()
2068 {
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 as_decl_name=`echo $2|sed 's/ *(.*//'`
2071 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2073 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2076 else
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 $4
2080 int
2081 main ()
2082 {
2083 #ifndef $as_decl_name
2084 #ifdef __cplusplus
2085 (void) $as_decl_use;
2086 #else
2087 (void) $as_decl_name;
2088 #endif
2089 #endif
2090
2091 ;
2092 return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 eval "$3=yes"
2097 else
2098 eval "$3=no"
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106
2107 } # ac_fn_c_check_decl
2108 cat >config.log <<_ACEOF
2109 This file contains any messages produced by compilers while
2110 running configure, to aid debugging if configure makes a mistake.
2111
•2112 It was created by binutils $as_me 2.44, which was
2113 generated by GNU Autoconf 2.69. Invocation command line was
2114
2115 $ $0 $@
2116
2117 _ACEOF
2118 exec 5>>config.log
2119 {
2120 cat <<_ASUNAME
2121 ## --------- ##
2122 ## Platform. ##
2123 ## --------- ##
2124
2125 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2126 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2127 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2128 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2129 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2130
2131 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2132 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2133
2134 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2135 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2136 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2137 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2138 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2139 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2140 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2141
2142 _ASUNAME
2143
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 $as_echo "PATH: $as_dir"
2150 done
2151 IFS=$as_save_IFS
2152
2153 } >&5
2154
2155 cat >&5 <<_ACEOF
2156
2157
2158 ## ----------- ##
2159 ## Core tests. ##
2160 ## ----------- ##
2161
2162 _ACEOF
2163
2164
2165 # Keep a trace of the command line.
2166 # Strip out --no-create and --no-recursion so they do not pile up.
2167 # Strip out --silent because we don't want to record it for future runs.
2168 # Also quote any args containing shell meta-characters.
2169 # Make two passes to allow for proper duplicate-argument suppression.
2170 ac_configure_args=
2171 ac_configure_args0=
2172 ac_configure_args1=
2173 ac_must_keep_next=false
2174 for ac_pass in 1 2
2175 do
2176 for ac_arg
2177 do
2178 case $ac_arg in
2179 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2181 | -silent | --silent | --silen | --sile | --sil)
2182 continue ;;
2183 *\'*)
2184 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2185 esac
2186 case $ac_pass in
2187 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2188 2)
2189 as_fn_append ac_configure_args1 " '$ac_arg'"
2190 if test $ac_must_keep_next = true; then
2191 ac_must_keep_next=false # Got value, back to normal.
2192 else
2193 case $ac_arg in
2194 *=* | --config-cache | -C | -disable-* | --disable-* \
2195 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2196 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2197 | -with-* | --with-* | -without-* | --without-* | --x)
2198 case "$ac_configure_args0 " in
2199 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2200 esac
2201 ;;
2202 -* ) ac_must_keep_next=true ;;
2203 esac
2204 fi
2205 as_fn_append ac_configure_args " '$ac_arg'"
2206 ;;
2207 esac
2208 done
2209 done
2210 { ac_configure_args0=; unset ac_configure_args0;}
2211 { ac_configure_args1=; unset ac_configure_args1;}
2212
2213 # When interrupted or exit'd, cleanup temporary files, and complete
2214 # config.log. We remove comments because anyway the quotes in there
2215 # would cause problems or look ugly.
2216 # WARNING: Use '\'' to represent an apostrophe within the trap.
2217 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2218 trap 'exit_status=$?
2219 # Save into config.log some information that might help in debugging.
2220 {
2221 echo
2222
2223 $as_echo "## ---------------- ##
2224 ## Cache variables. ##
2225 ## ---------------- ##"
2226 echo
2227 # The following way of writing the cache mishandles newlines in values,
2228 (
2229 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2230 eval ac_val=\$$ac_var
2231 case $ac_val in #(
2232 *${as_nl}*)
2233 case $ac_var in #(
2234 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2235 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2236 esac
2237 case $ac_var in #(
2238 _ | IFS | as_nl) ;; #(
2239 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2240 *) { eval $ac_var=; unset $ac_var;} ;;
2241 esac ;;
2242 esac
2243 done
2244 (set) 2>&1 |
2245 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2246 *${as_nl}ac_space=\ *)
2247 sed -n \
2248 "s/'\''/'\''\\\\'\'''\''/g;
2249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2250 ;; #(
2251 *)
2252 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2253 ;;
2254 esac |
2255 sort
2256 )
2257 echo
2258
2259 $as_echo "## ----------------- ##
2260 ## Output variables. ##
2261 ## ----------------- ##"
2262 echo
2263 for ac_var in $ac_subst_vars
2264 do
2265 eval ac_val=\$$ac_var
2266 case $ac_val in
2267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268 esac
2269 $as_echo "$ac_var='\''$ac_val'\''"
2270 done | sort
2271 echo
2272
2273 if test -n "$ac_subst_files"; then
2274 $as_echo "## ------------------- ##
2275 ## File substitutions. ##
2276 ## ------------------- ##"
2277 echo
2278 for ac_var in $ac_subst_files
2279 do
2280 eval ac_val=\$$ac_var
2281 case $ac_val in
2282 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2283 esac
2284 $as_echo "$ac_var='\''$ac_val'\''"
2285 done | sort
2286 echo
2287 fi
2288
2289 if test -s confdefs.h; then
2290 $as_echo "## ----------- ##
2291 ## confdefs.h. ##
2292 ## ----------- ##"
2293 echo
2294 cat confdefs.h
2295 echo
2296 fi
2297 test "$ac_signal" != 0 &&
2298 $as_echo "$as_me: caught signal $ac_signal"
2299 $as_echo "$as_me: exit $exit_status"
2300 } >&5
2301 rm -f core *.core core.conftest.* &&
2302 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2303 exit $exit_status
2304 ' 0
2305 for ac_signal in 1 2 13 15; do
2306 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2307 done
2308 ac_signal=0
2309
2310 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2311 rm -f -r conftest* confdefs.h
2312
2313 $as_echo "/* confdefs.h */" > confdefs.h
2314
2315 # Predefined preprocessor variables.
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_NAME "$PACKAGE_NAME"
2319 _ACEOF
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2323 _ACEOF
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2327 _ACEOF
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_STRING "$PACKAGE_STRING"
2331 _ACEOF
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2335 _ACEOF
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_URL "$PACKAGE_URL"
2339 _ACEOF
2340
2341
2342 # Let the site file select an alternate cache file if it wants to.
2343 # Prefer an explicitly selected file to automatically selected ones.
2344 ac_site_file1=NONE
2345 ac_site_file2=NONE
2346 if test -n "$CONFIG_SITE"; then
2347 # We do not want a PATH search for config.site.
2348 case $CONFIG_SITE in #((
2349 -*) ac_site_file1=./$CONFIG_SITE;;
2350 */*) ac_site_file1=$CONFIG_SITE;;
2351 *) ac_site_file1=./$CONFIG_SITE;;
2352 esac
2353 elif test "x$prefix" != xNONE; then
2354 ac_site_file1=$prefix/share/config.site
2355 ac_site_file2=$prefix/etc/config.site
2356 else
2357 ac_site_file1=$ac_default_prefix/share/config.site
2358 ac_site_file2=$ac_default_prefix/etc/config.site
2359 fi
2360 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2361 do
2362 test "x$ac_site_file" = xNONE && continue
2363 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2365 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2366 sed 's/^/| /' "$ac_site_file" >&5
2367 . "$ac_site_file" \
2368 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2370 as_fn_error $? "failed to load site script $ac_site_file
2371 See \`config.log' for more details" "$LINENO" 5; }
2372 fi
2373 done
2374
2375 if test -r "$cache_file"; then
2376 # Some versions of bash will fail to source /dev/null (special files
2377 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2378 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2380 $as_echo "$as_me: loading cache $cache_file" >&6;}
2381 case $cache_file in
2382 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2383 *) . "./$cache_file";;
2384 esac
2385 fi
2386 else
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2388 $as_echo "$as_me: creating cache $cache_file" >&6;}
2389 >$cache_file
2390 fi
2391
2392 gt_needs="$gt_needs "
2393 as_fn_append ac_header_list " stdlib.h"
2394 as_fn_append ac_header_list " unistd.h"
2395 as_fn_append ac_header_list " sys/param.h"
2396 # Check that the precious variables saved in the cache have kept the same
2397 # value.
2398 ac_cache_corrupted=false
2399 for ac_var in $ac_precious_vars; do
2400 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2401 eval ac_new_set=\$ac_env_${ac_var}_set
2402 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2403 eval ac_new_val=\$ac_env_${ac_var}_value
2404 case $ac_old_set,$ac_new_set in
2405 set,)
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2407 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2408 ac_cache_corrupted=: ;;
2409 ,set)
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2411 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2412 ac_cache_corrupted=: ;;
2413 ,);;
2414 *)
2415 if test "x$ac_old_val" != "x$ac_new_val"; then
2416 # differences in whitespace do not lead to failure.
2417 ac_old_val_w=`echo x $ac_old_val`
2418 ac_new_val_w=`echo x $ac_new_val`
2419 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2421 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2422 ac_cache_corrupted=:
2423 else
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2425 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2426 eval $ac_var=\$ac_old_val
2427 fi
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2429 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2431 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2432 fi;;
2433 esac
2434 # Pass precious variables to config.status.
2435 if test "$ac_new_set" = set; then
2436 case $ac_new_val in
2437 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2438 *) ac_arg=$ac_var=$ac_new_val ;;
2439 esac
2440 case " $ac_configure_args " in
2441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2442 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2443 esac
2444 fi
2445 done
2446 if $ac_cache_corrupted; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2450 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2451 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2452 fi
2453 ## -------------------- ##
2454 ## Main body of script. ##
2455 ## -------------------- ##
2456
2457 ac_ext=c
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462
2463
2464
2465
2466
2467
2468
2469 ac_aux_dir=
2470 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2471 if test -f "$ac_dir/install-sh"; then
2472 ac_aux_dir=$ac_dir
2473 ac_install_sh="$ac_aux_dir/install-sh -c"
2474 break
2475 elif test -f "$ac_dir/install.sh"; then
2476 ac_aux_dir=$ac_dir
2477 ac_install_sh="$ac_aux_dir/install.sh -c"
2478 break
2479 elif test -f "$ac_dir/shtool"; then
2480 ac_aux_dir=$ac_dir
2481 ac_install_sh="$ac_aux_dir/shtool install -c"
2482 break
2483 fi
2484 done
2485 if test -z "$ac_aux_dir"; then
2486 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2487 fi
2488
2489 # These three variables are undocumented and unsupported,
2490 # and are intended to be withdrawn in a future Autoconf release.
2491 # They can cause serious problems if a builder's source tree is in a directory
2492 # whose full name contains unusual characters.
2493 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2494 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2495 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2496
2497
2498 # Make sure we can run config.sub.
2499 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2500 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2501
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2503 $as_echo_n "checking build system type... " >&6; }
2504 if ${ac_cv_build+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 ac_build_alias=$build_alias
2508 test "x$ac_build_alias" = x &&
2509 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2510 test "x$ac_build_alias" = x &&
2511 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2512 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2514
2515 fi
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2517 $as_echo "$ac_cv_build" >&6; }
2518 case $ac_cv_build in
2519 *-*-*) ;;
2520 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2521 esac
2522 build=$ac_cv_build
2523 ac_save_IFS=$IFS; IFS='-'
2524 set x $ac_cv_build
2525 shift
2526 build_cpu=$1
2527 build_vendor=$2
2528 shift; shift
2529 # Remember, the first character of IFS is used to create $*,
2530 # except with old shells:
2531 build_os=$*
2532 IFS=$ac_save_IFS
2533 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2534
2535
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2537 $as_echo_n "checking host system type... " >&6; }
2538 if ${ac_cv_host+:} false; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 if test "x$host_alias" = x; then
2542 ac_cv_host=$ac_cv_build
2543 else
2544 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2546 fi
2547
2548 fi
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2550 $as_echo "$ac_cv_host" >&6; }
2551 case $ac_cv_host in
2552 *-*-*) ;;
2553 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2554 esac
2555 host=$ac_cv_host
2556 ac_save_IFS=$IFS; IFS='-'
2557 set x $ac_cv_host
2558 shift
2559 host_cpu=$1
2560 host_vendor=$2
2561 shift; shift
2562 # Remember, the first character of IFS is used to create $*,
2563 # except with old shells:
2564 host_os=$*
2565 IFS=$ac_save_IFS
2566 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2567
2568
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2570 $as_echo_n "checking target system type... " >&6; }
2571 if ${ac_cv_target+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test "x$target_alias" = x; then
2575 ac_cv_target=$ac_cv_host
2576 else
2577 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2578 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2579 fi
2580
2581 fi
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2583 $as_echo "$ac_cv_target" >&6; }
2584 case $ac_cv_target in
2585 *-*-*) ;;
2586 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2587 esac
2588 target=$ac_cv_target
2589 ac_save_IFS=$IFS; IFS='-'
2590 set x $ac_cv_target
2591 shift
2592 target_cpu=$1
2593 target_vendor=$2
2594 shift; shift
2595 # Remember, the first character of IFS is used to create $*,
2596 # except with old shells:
2597 target_os=$*
2598 IFS=$ac_save_IFS
2599 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2600
2601
2602 # The aliases save the names the user supplied, while $host etc.
2603 # will get canonicalized.
2604 test -n "$target_alias" &&
2605 test "$program_prefix$program_suffix$program_transform_name" = \
2606 NONENONEs,x,x, &&
2607 program_prefix=${target_alias}-
2608
2609 am__api_version='1.15'
2610
2611 # Find a good install program. We prefer a C program (faster),
2612 # so one script is as good as another. But avoid the broken or
2613 # incompatible versions:
2614 # SysV /etc/install, /usr/sbin/install
2615 # SunOS /usr/etc/install
2616 # IRIX /sbin/install
2617 # AIX /bin/install
2618 # AmigaOS /C/install, which installs bootblocks on floppy discs
2619 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2620 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2621 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2622 # OS/2's system install, which has a completely different semantic
2623 # ./install, which can be erroneously created by make from ./install.sh.
2624 # Reject install programs that cannot install multiple files.
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2626 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2627 if test -z "$INSTALL"; then
2628 if ${ac_cv_path_install+:} false; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 # Account for people who put trailing slashes in PATH elements.
2637 case $as_dir/ in #((
2638 ./ | .// | /[cC]/* | \
2639 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2640 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2641 /usr/ucb/* ) ;;
2642 *)
2643 # OSF1 and SCO ODT 3.0 have their own names for install.
2644 # Don't use installbsd from OSF since it installs stuff as root
2645 # by default.
2646 for ac_prog in ginstall scoinst install; do
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2649 if test $ac_prog = install &&
2650 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2651 # AIX install. It has an incompatible calling convention.
2652 :
2653 elif test $ac_prog = install &&
2654 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2655 # program-specific install script used by HP pwplus--don't use.
2656 :
2657 else
2658 rm -rf conftest.one conftest.two conftest.dir
2659 echo one > conftest.one
2660 echo two > conftest.two
2661 mkdir conftest.dir
2662 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2663 test -s conftest.one && test -s conftest.two &&
2664 test -s conftest.dir/conftest.one &&
2665 test -s conftest.dir/conftest.two
2666 then
2667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2668 break 3
2669 fi
2670 fi
2671 fi
2672 done
2673 done
2674 ;;
2675 esac
2676
2677 done
2678 IFS=$as_save_IFS
2679
2680 rm -rf conftest.one conftest.two conftest.dir
2681
2682 fi
2683 if test "${ac_cv_path_install+set}" = set; then
2684 INSTALL=$ac_cv_path_install
2685 else
2686 # As a last resort, use the slow shell script. Don't cache a
2687 # value for INSTALL within a source directory, because that will
2688 # break other packages using the cache if that directory is
2689 # removed, or if the value is a relative name.
2690 INSTALL=$ac_install_sh
2691 fi
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2694 $as_echo "$INSTALL" >&6; }
2695
2696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2697 # It thinks the first close brace ends the variable substitution.
2698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2699
2700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2701
2702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2703
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2705 $as_echo_n "checking whether build environment is sane... " >&6; }
2706 # Reject unsafe characters in $srcdir or the absolute working directory
2707 # name. Accept space and tab only in the latter.
2708 am_lf='
2709 '
2710 case `pwd` in
2711 *[\\\"\#\$\&\'\`$am_lf]*)
2712 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2713 esac
2714 case $srcdir in
2715 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2716 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2717 esac
2718
2719 # Do 'set' in a subshell so we don't clobber the current shell's
2720 # arguments. Must try -L first in case configure is actually a
2721 # symlink; some systems play weird games with the mod time of symlinks
2722 # (eg FreeBSD returns the mod time of the symlink's containing
2723 # directory).
2724 if (
2725 am_has_slept=no
2726 for am_try in 1 2; do
2727 echo "timestamp, slept: $am_has_slept" > conftest.file
2728 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2729 if test "$*" = "X"; then
2730 # -L didn't work.
2731 set X `ls -t "$srcdir/configure" conftest.file`
2732 fi
2733 if test "$*" != "X $srcdir/configure conftest.file" \
2734 && test "$*" != "X conftest.file $srcdir/configure"; then
2735
2736 # If neither matched, then we have a broken ls. This can happen
2737 # if, for instance, CONFIG_SHELL is bash and it inherits a
2738 # broken ls alias from the environment. This has actually
2739 # happened. Such a system could not be considered "sane".
2740 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2741 alias in your environment" "$LINENO" 5
2742 fi
2743 if test "$2" = conftest.file || test $am_try -eq 2; then
2744 break
2745 fi
2746 # Just in case.
2747 sleep 1
2748 am_has_slept=yes
2749 done
2750 test "$2" = conftest.file
2751 )
2752 then
2753 # Ok.
2754 :
2755 else
2756 as_fn_error $? "newly created file is older than distributed files!
2757 Check your system clock" "$LINENO" 5
2758 fi
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2760 $as_echo "yes" >&6; }
2761 # If we didn't sleep, we still need to ensure time stamps of config.status and
2762 # generated files are strictly newer.
2763 am_sleep_pid=
2764 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2765 ( sleep 1 ) &
2766 am_sleep_pid=$!
2767 fi
2768
2769 rm -f conftest.file
2770
2771 test "$program_prefix" != NONE &&
2772 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2773 # Use a double $ so make ignores it.
2774 test "$program_suffix" != NONE &&
2775 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2776 # Double any \ or $.
2777 # By default was `s,x,x', remove it if useless.
2778 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2779 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2780
2781 # Expand $ac_aux_dir to an absolute path.
2782 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2783
2784 if test x"${MISSING+set}" != xset; then
2785 case $am_aux_dir in
2786 *\ * | *\ *)
2787 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2788 *)
2789 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2790 esac
2791 fi
2792 # Use eval to expand $SHELL
2793 if eval "$MISSING --is-lightweight"; then
2794 am_missing_run="$MISSING "
2795 else
2796 am_missing_run=
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2798 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2799 fi
2800
2801 if test x"${install_sh+set}" != xset; then
2802 case $am_aux_dir in
2803 *\ * | *\ *)
2804 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2805 *)
2806 install_sh="\${SHELL} $am_aux_dir/install-sh"
2807 esac
2808 fi
2809
2810 # Installed binaries are usually stripped using 'strip' when the user
2811 # run "make install-strip". However 'strip' might not be the right
2812 # tool to use in cross-compilation environments, therefore Automake
2813 # will honor the 'STRIP' environment variable to overrule this program.
2814 if test "$cross_compiling" != no; then
2815 if test -n "$ac_tool_prefix"; then
2816 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2817 set dummy ${ac_tool_prefix}strip; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if ${ac_cv_prog_STRIP+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if test -n "$STRIP"; then
2824 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 STRIP=$ac_cv_prog_STRIP
2844 if test -n "$STRIP"; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2846 $as_echo "$STRIP" >&6; }
2847 else
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2850 fi
2851
2852
2853 fi
2854 if test -z "$ac_cv_prog_STRIP"; then
2855 ac_ct_STRIP=$STRIP
2856 # Extract the first word of "strip", so it can be a program name with args.
2857 set dummy strip; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 if test -n "$ac_ct_STRIP"; then
2864 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 ac_cv_prog_ac_ct_STRIP="strip"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877 done
2878 done
2879 IFS=$as_save_IFS
2880
2881 fi
2882 fi
2883 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2884 if test -n "$ac_ct_STRIP"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2886 $as_echo "$ac_ct_STRIP" >&6; }
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2890 fi
2891
2892 if test "x$ac_ct_STRIP" = x; then
2893 STRIP=":"
2894 else
2895 case $cross_compiling:$ac_tool_warned in
2896 yes:)
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2899 ac_tool_warned=yes ;;
2900 esac
2901 STRIP=$ac_ct_STRIP
2902 fi
2903 else
2904 STRIP="$ac_cv_prog_STRIP"
2905 fi
2906
2907 fi
2908 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2909
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2911 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2912 if test -z "$MKDIR_P"; then
2913 if ${ac_cv_path_mkdir+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2918 do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_prog in mkdir gmkdir; do
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2924 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2925 'mkdir (GNU coreutils) '* | \
2926 'mkdir (coreutils) '* | \
2927 'mkdir (fileutils) '4.1*)
2928 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2929 break 3;;
2930 esac
2931 done
2932 done
2933 done
2934 IFS=$as_save_IFS
2935
2936 fi
2937
2938 test -d ./--version && rmdir ./--version
2939 if test "${ac_cv_path_mkdir+set}" = set; then
2940 MKDIR_P="$ac_cv_path_mkdir -p"
2941 else
2942 # As a last resort, use the slow shell script. Don't cache a
2943 # value for MKDIR_P within a source directory, because that will
2944 # break other packages using the cache if that directory is
2945 # removed, or if the value is a relative name.
2946 MKDIR_P="$ac_install_sh -d"
2947 fi
2948 fi
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2950 $as_echo "$MKDIR_P" >&6; }
2951
2952 for ac_prog in gawk mawk nawk awk
2953 do
2954 # Extract the first word of "$ac_prog", so it can be a program name with args.
2955 set dummy $ac_prog; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if ${ac_cv_prog_AWK+:} false; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 if test -n "$AWK"; then
2962 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971 ac_cv_prog_AWK="$ac_prog"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975 done
2976 done
2977 IFS=$as_save_IFS
2978
2979 fi
2980 fi
2981 AWK=$ac_cv_prog_AWK
2982 if test -n "$AWK"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2984 $as_echo "$AWK" >&6; }
2985 else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990
2991 test -n "$AWK" && break
2992 done
2993
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2995 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2996 set x ${MAKE-make}
2997 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2998 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 cat >conftest.make <<\_ACEOF
3002 SHELL = /bin/sh
3003 all:
3004 @echo '@@@%%%=$(MAKE)=@@@%%%'
3005 _ACEOF
3006 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3007 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3008 *@@@%%%=?*=@@@%%%*)
3009 eval ac_cv_prog_make_${ac_make}_set=yes;;
3010 *)
3011 eval ac_cv_prog_make_${ac_make}_set=no;;
3012 esac
3013 rm -f conftest.make
3014 fi
3015 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3017 $as_echo "yes" >&6; }
3018 SET_MAKE=
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 SET_MAKE="MAKE=${MAKE-make}"
3023 fi
3024
3025 rm -rf .tst 2>/dev/null
3026 mkdir .tst 2>/dev/null
3027 if test -d .tst; then
3028 am__leading_dot=.
3029 else
3030 am__leading_dot=_
3031 fi
3032 rmdir .tst 2>/dev/null
3033
3034 # Check whether --enable-silent-rules was given.
3035 if test "${enable_silent_rules+set}" = set; then :
3036 enableval=$enable_silent_rules;
3037 fi
3038
3039 case $enable_silent_rules in # (((
3040 yes) AM_DEFAULT_VERBOSITY=0;;
3041 no) AM_DEFAULT_VERBOSITY=1;;
3042 *) AM_DEFAULT_VERBOSITY=1;;
3043 esac
3044 am_make=${MAKE-make}
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3046 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3047 if ${am_cv_make_support_nested_variables+:} false; then :
3048 $as_echo_n "(cached) " >&6
3049 else
3050 if $as_echo 'TRUE=$(BAR$(V))
3051 BAR0=false
3052 BAR1=true
3053 V=1
3054 am__doit:
3055 @$(TRUE)
3056 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3057 am_cv_make_support_nested_variables=yes
3058 else
3059 am_cv_make_support_nested_variables=no
3060 fi
3061 fi
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3063 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3064 if test $am_cv_make_support_nested_variables = yes; then
3065 AM_V='$(V)'
3066 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3067 else
3068 AM_V=$AM_DEFAULT_VERBOSITY
3069 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3070 fi
3071 AM_BACKSLASH='\'
3072
3073 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3074 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3075 # is not polluted with repeated "-I."
3076 am__isrc=' -I$(srcdir)'
3077 # test to see if srcdir already configured
3078 if test -f $srcdir/config.status; then
3079 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3080 fi
3081 fi
3082
3083 # test whether we have cygpath
3084 if test -z "$CYGPATH_W"; then
3085 if (cygpath --version) >/dev/null 2>/dev/null; then
3086 CYGPATH_W='cygpath -w'
3087 else
3088 CYGPATH_W=echo
3089 fi
3090 fi
3091
3092
3093 # Define the identity of the package.
3094 PACKAGE='binutils'
•3095 VERSION='2.44'
3096
3097
3098 cat >>confdefs.h <<_ACEOF
3099 #define PACKAGE "$PACKAGE"
3100 _ACEOF
3101
3102
3103 cat >>confdefs.h <<_ACEOF
3104 #define VERSION "$VERSION"
3105 _ACEOF
3106
3107 # Some tools Automake needs.
3108
3109 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3110
3111
3112 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3113
3114
3115 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3116
3117
3118 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3119
3120
3121 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3122
3123 # For better backward compatibility. To be removed once Automake 1.9.x
3124 # dies out for good. For more background, see:
3125 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3126 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3127 mkdir_p='$(MKDIR_P)'
3128
3129 # We need awk for the "check" target (and possibly the TAP driver). The
3130 # system "awk" is bad on some platforms.
3131 # Always define AMTAR for backward compatibility. Yes, it's still used
3132 # in the wild :-( We should find a proper way to deprecate it ...
3133 AMTAR='$${TAR-tar}'
3134
3135
3136 # We'll loop over all known methods to create a tar archive until one works.
3137 _am_tools='gnutar pax cpio none'
3138
3139 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3140
3141
3142
3143
3144
3145
3146 # POSIX will say in a future version that running "rm -f" with no argument
3147 # is OK; and we want to be able to make that assumption in our Makefile
3148 # recipes. So use an aggressive probe to check that the usage we want is
3149 # actually supported "in the wild" to an acceptable degree.
3150 # See automake bug#10828.
3151 # To make any issue more visible, cause the running configure to be aborted
3152 # by default if the 'rm' program in use doesn't match our expectations; the
3153 # user can still override this though.
3154 if rm -f && rm -fr && rm -rf; then : OK; else
3155 cat >&2 <<'END'
3156 Oops!
3157
3158 Your 'rm' program seems unable to run without file operands specified
3159 on the command line, even when the '-f' option is present. This is contrary
3160 to the behaviour of most rm programs out there, and not conforming with
3161 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3162
3163 Please tell [email protected] about your system, including the value
3164 of your $PATH and any error possibly output before this message. This
3165 can help us improve future automake versions.
3166
3167 END
3168 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3169 echo 'Configuration will proceed anyway, since you have set the' >&2
3170 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3171 echo >&2
3172 else
3173 cat >&2 <<'END'
3174 Aborting the configuration process, to ensure you take notice of the issue.
3175
3176 You can download and install GNU coreutils to get an 'rm' implementation
3177 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3178
3179 If you want to complete the configuration process using your problematic
3180 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3181 to "yes", and re-run configure.
3182
3183 END
3184 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3185 fi
3186 fi
3187
3188 # Check whether --enable-silent-rules was given.
3189 if test "${enable_silent_rules+set}" = set; then :
3190 enableval=$enable_silent_rules;
3191 fi
3192
3193 case $enable_silent_rules in # (((
3194 yes) AM_DEFAULT_VERBOSITY=0;;
3195 no) AM_DEFAULT_VERBOSITY=1;;
3196 *) AM_DEFAULT_VERBOSITY=0;;
3197 esac
3198 am_make=${MAKE-make}
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3200 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3201 if ${am_cv_make_support_nested_variables+:} false; then :
3202 $as_echo_n "(cached) " >&6
3203 else
3204 if $as_echo 'TRUE=$(BAR$(V))
3205 BAR0=false
3206 BAR1=true
3207 V=1
3208 am__doit:
3209 @$(TRUE)
3210 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3211 am_cv_make_support_nested_variables=yes
3212 else
3213 am_cv_make_support_nested_variables=no
3214 fi
3215 fi
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3217 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3218 if test $am_cv_make_support_nested_variables = yes; then
3219 AM_V='$(V)'
3220 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3221 else
3222 AM_V=$AM_DEFAULT_VERBOSITY
3223 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3224 fi
3225 AM_BACKSLASH='\'
3226
3227
3228 ac_ext=c
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233 if test -n "$ac_tool_prefix"; then
3234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3235 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_CC+:} false; then :
3239 $as_echo_n "(cached) " >&6
3240 else
3241 if test -n "$CC"; then
3242 ac_cv_prog_CC="$CC" # Let the user override the test.
3243 else
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247 IFS=$as_save_IFS
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 break 2
3254 fi
3255 done
3256 done
3257 IFS=$as_save_IFS
3258
3259 fi
3260 fi
3261 CC=$ac_cv_prog_CC
3262 if test -n "$CC"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 $as_echo "$CC" >&6; }
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 fi
3269
3270
3271 fi
3272 if test -z "$ac_cv_prog_CC"; then
3273 ac_ct_CC=$CC
3274 # Extract the first word of "gcc", so it can be a program name with args.
3275 set dummy gcc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 if test -n "$ac_ct_CC"; then
3282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_ac_ct_CC="gcc"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3294 fi
3295 done
3296 done
3297 IFS=$as_save_IFS
3298
3299 fi
3300 fi
3301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3302 if test -n "$ac_ct_CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3304 $as_echo "$ac_ct_CC" >&6; }
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 fi
3309
3310 if test "x$ac_ct_CC" = x; then
3311 CC=""
3312 else
3313 case $cross_compiling:$ac_tool_warned in
3314 yes:)
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3317 ac_tool_warned=yes ;;
3318 esac
3319 CC=$ac_ct_CC
3320 fi
3321 else
3322 CC="$ac_cv_prog_CC"
3323 fi
3324
3325 if test -z "$CC"; then
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}cc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_CC+:} false; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344 ac_cv_prog_CC="${ac_tool_prefix}cc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3347 fi
3348 done
3349 done
3350 IFS=$as_save_IFS
3351
3352 fi
3353 fi
3354 CC=$ac_cv_prog_CC
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 fi
3362
3363
3364 fi
3365 fi
3366 if test -z "$CC"; then
3367 # Extract the first word of "cc", so it can be a program name with args.
3368 set dummy cc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_CC+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if test -n "$CC"; then
3375 ac_cv_prog_CC="$CC" # Let the user override the test.
3376 else
3377 ac_prog_rejected=no
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3386 ac_prog_rejected=yes
3387 continue
3388 fi
3389 ac_cv_prog_CC="cc"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 break 2
3392 fi
3393 done
3394 done
3395 IFS=$as_save_IFS
3396
3397 if test $ac_prog_rejected = yes; then
3398 # We found a bogon in the path, so make sure we never use it.
3399 set dummy $ac_cv_prog_CC
3400 shift
3401 if test $# != 0; then
3402 # We chose a different compiler from the bogus one.
3403 # However, it has the same basename, so the bogon will be chosen
3404 # first if we set CC to just the basename; use the full file name.
3405 shift
3406 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3407 fi
3408 fi
3409 fi
3410 fi
3411 CC=$ac_cv_prog_CC
3412 if test -n "$CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414 $as_echo "$CC" >&6; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 fi
3419
3420
3421 fi
3422 if test -z "$CC"; then
3423 if test -n "$ac_tool_prefix"; then
3424 for ac_prog in cl.exe
3425 do
3426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_prog_CC+:} false; then :
3431 $as_echo_n "(cached) " >&6
3432 else
3433 if test -n "$CC"; then
3434 ac_cv_prog_CC="$CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2
3446 fi
3447 done
3448 done
3449 IFS=$as_save_IFS
3450
3451 fi
3452 fi
3453 CC=$ac_cv_prog_CC
3454 if test -n "$CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 $as_echo "$CC" >&6; }
3457 else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3460 fi
3461
3462
3463 test -n "$CC" && break
3464 done
3465 fi
3466 if test -z "$CC"; then
3467 ac_ct_CC=$CC
3468 for ac_prog in cl.exe
3469 do
3470 # Extract the first word of "$ac_prog", so it can be a program name with args.
3471 set dummy $ac_prog; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 if test -n "$ac_ct_CC"; then
3478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483 IFS=$as_save_IFS
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_ac_ct_CC="$ac_prog"
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 break 2
3490 fi
3491 done
3492 done
3493 IFS=$as_save_IFS
3494
3495 fi
3496 fi
3497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3498 if test -n "$ac_ct_CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3500 $as_echo "$ac_ct_CC" >&6; }
3501 else
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506
3507 test -n "$ac_ct_CC" && break
3508 done
3509
3510 if test "x$ac_ct_CC" = x; then
3511 CC=""
3512 else
3513 case $cross_compiling:$ac_tool_warned in
3514 yes:)
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3517 ac_tool_warned=yes ;;
3518 esac
3519 CC=$ac_ct_CC
3520 fi
3521 fi
3522
3523 fi
3524
3525
3526 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528 as_fn_error $? "no acceptable C compiler found in \$PATH
3529 See \`config.log' for more details" "$LINENO" 5; }
3530
3531 # Provide some information about the compiler.
3532 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3533 set X $ac_compile
3534 ac_compiler=$2
3535 for ac_option in --version -v -V -qversion; do
3536 { { ac_try="$ac_compiler $ac_option >&5"
3537 case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3544 ac_status=$?
3545 if test -s conftest.err; then
3546 sed '10a\
3547 ... rest of stderr output deleted ...
3548 10q' conftest.err >conftest.er1
3549 cat conftest.er1 >&5
3550 fi
3551 rm -f conftest.er1 conftest.err
3552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553 test $ac_status = 0; }
3554 done
3555
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3558
3559 int
3560 main ()
3561 {
3562
3563 ;
3564 return 0;
3565 }
3566 _ACEOF
3567 ac_clean_files_save=$ac_clean_files
3568 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3569 # Try to create an executable without -o first, disregard a.out.
3570 # It will help us diagnose broken compilers, and finding out an intuition
3571 # of exeext.
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3573 $as_echo_n "checking whether the C compiler works... " >&6; }
3574 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3575
3576 # The possible output files:
3577 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3578
3579 ac_rmfiles=
3580 for ac_file in $ac_files
3581 do
3582 case $ac_file in
3583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3585 esac
3586 done
3587 rm -f $ac_rmfiles
3588
3589 if { { ac_try="$ac_link_default"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_link_default") 2>&5
3597 ac_status=$?
3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599 test $ac_status = 0; }; then :
3600 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3601 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3602 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3603 # so that the user can short-circuit this test for compilers unknown to
3604 # Autoconf.
3605 for ac_file in $ac_files ''
3606 do
3607 test -f "$ac_file" || continue
3608 case $ac_file in
3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3610 ;;
3611 [ab].out )
3612 # We found the default executable, but exeext='' is most
3613 # certainly right.
3614 break;;
3615 *.* )
3616 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3617 then :; else
3618 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3619 fi
3620 # We set ac_cv_exeext here because the later test for it is not
3621 # safe: cross compilers may not add the suffix if given an `-o'
3622 # argument, so we may need to know it at that point already.
3623 # Even if this section looks crufty: it has the advantage of
3624 # actually working.
3625 break;;
3626 * )
3627 break;;
3628 esac
3629 done
3630 test "$ac_cv_exeext" = no && ac_cv_exeext=
3631
3632 else
3633 ac_file=''
3634 fi
3635 if test -z "$ac_file"; then :
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3638 $as_echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3640
3641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error 77 "C compiler cannot create executables
3644 See \`config.log' for more details" "$LINENO" 5; }
3645 else
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647 $as_echo "yes" >&6; }
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3650 $as_echo_n "checking for C compiler default output file name... " >&6; }
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3652 $as_echo "$ac_file" >&6; }
3653 ac_exeext=$ac_cv_exeext
3654
3655 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3656 ac_clean_files=$ac_clean_files_save
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3658 $as_echo_n "checking for suffix of executables... " >&6; }
3659 if { { ac_try="$ac_link"
3660 case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_link") 2>&5
3667 ac_status=$?
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; then :
3670 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3671 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3672 # work properly (i.e., refer to `conftest.exe'), while it won't with
3673 # `rm'.
3674 for ac_file in conftest.exe conftest conftest.*; do
3675 test -f "$ac_file" || continue
3676 case $ac_file in
3677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3678 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3679 break;;
3680 * ) break;;
3681 esac
3682 done
3683 else
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3687 See \`config.log' for more details" "$LINENO" 5; }
3688 fi
3689 rm -f conftest conftest$ac_cv_exeext
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3691 $as_echo "$ac_cv_exeext" >&6; }
3692
3693 rm -f conftest.$ac_ext
3694 EXEEXT=$ac_cv_exeext
3695 ac_exeext=$EXEEXT
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3698 #include <stdio.h>
3699 int
3700 main ()
3701 {
3702 FILE *f = fopen ("conftest.out", "w");
3703 return ferror (f) || fclose (f) != 0;
3704
3705 ;
3706 return 0;
3707 }
3708 _ACEOF
3709 ac_clean_files="$ac_clean_files conftest.out"
3710 # Check that the compiler produces executables we can run. If not, either
3711 # the compiler is broken, or we cross compile.
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3713 $as_echo_n "checking whether we are cross compiling... " >&6; }
3714 if test "$cross_compiling" != yes; then
3715 { { ac_try="$ac_link"
3716 case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_link") 2>&5
3723 ac_status=$?
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }
3726 if { ac_try='./conftest$ac_cv_exeext'
3727 { { case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730 esac
3731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732 $as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_try") 2>&5
3734 ac_status=$?
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }; }; then
3737 cross_compiling=no
3738 else
3739 if test "$cross_compiling" = maybe; then
3740 cross_compiling=yes
3741 else
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error $? "cannot run C compiled programs.
3745 If you meant to cross compile, use \`--host'.
3746 See \`config.log' for more details" "$LINENO" 5; }
3747 fi
3748 fi
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3751 $as_echo "$cross_compiling" >&6; }
3752
3753 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3754 ac_clean_files=$ac_clean_files_save
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3756 $as_echo_n "checking for suffix of object files... " >&6; }
3757 if ${ac_cv_objext+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3762
3763 int
3764 main ()
3765 {
3766
3767 ;
3768 return 0;
3769 }
3770 _ACEOF
3771 rm -f conftest.o conftest.obj
3772 if { { ac_try="$ac_compile"
3773 case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779 (eval "$ac_compile") 2>&5
3780 ac_status=$?
3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; }; then :
3783 for ac_file in conftest.o conftest.obj conftest.*; do
3784 test -f "$ac_file" || continue;
3785 case $ac_file in
3786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3787 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3788 break;;
3789 esac
3790 done
3791 else
3792 $as_echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error $? "cannot compute suffix of object files: cannot compile
3798 See \`config.log' for more details" "$LINENO" 5; }
3799 fi
3800 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3801 fi
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3803 $as_echo "$ac_cv_objext" >&6; }
3804 OBJEXT=$ac_cv_objext
3805 ac_objext=$OBJEXT
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3807 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3808 if ${ac_cv_c_compiler_gnu+:} false; then :
3809 $as_echo_n "(cached) " >&6
3810 else
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3813
3814 int
3815 main ()
3816 {
3817 #ifndef __GNUC__
3818 choke me
3819 #endif
3820
3821 ;
3822 return 0;
3823 }
3824 _ACEOF
3825 if ac_fn_c_try_compile "$LINENO"; then :
3826 ac_compiler_gnu=yes
3827 else
3828 ac_compiler_gnu=no
3829 fi
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3832
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3835 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3836 if test $ac_compiler_gnu = yes; then
3837 GCC=yes
3838 else
3839 GCC=
3840 fi
3841 ac_test_CFLAGS=${CFLAGS+set}
3842 ac_save_CFLAGS=$CFLAGS
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3844 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3845 if ${ac_cv_prog_cc_g+:} false; then :
3846 $as_echo_n "(cached) " >&6
3847 else
3848 ac_save_c_werror_flag=$ac_c_werror_flag
3849 ac_c_werror_flag=yes
3850 ac_cv_prog_cc_g=no
3851 CFLAGS="-g"
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854
3855 int
3856 main ()
3857 {
3858
3859 ;
3860 return 0;
3861 }
3862 _ACEOF
3863 if ac_fn_c_try_compile "$LINENO"; then :
3864 ac_cv_prog_cc_g=yes
3865 else
3866 CFLAGS=""
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3869
3870 int
3871 main ()
3872 {
3873
3874 ;
3875 return 0;
3876 }
3877 _ACEOF
3878 if ac_fn_c_try_compile "$LINENO"; then :
3879
3880 else
3881 ac_c_werror_flag=$ac_save_c_werror_flag
3882 CFLAGS="-g"
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3885
3886 int
3887 main ()
3888 {
3889
3890 ;
3891 return 0;
3892 }
3893 _ACEOF
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895 ac_cv_prog_cc_g=yes
3896 fi
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 fi
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_c_werror_flag=$ac_save_c_werror_flag
3903 fi
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3905 $as_echo "$ac_cv_prog_cc_g" >&6; }
3906 if test "$ac_test_CFLAGS" = set; then
3907 CFLAGS=$ac_save_CFLAGS
3908 elif test $ac_cv_prog_cc_g = yes; then
3909 if test "$GCC" = yes; then
3910 CFLAGS="-g -O2"
3911 else
3912 CFLAGS="-g"
3913 fi
3914 else
3915 if test "$GCC" = yes; then
3916 CFLAGS="-O2"
3917 else
3918 CFLAGS=
3919 fi
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3922 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3923 if ${ac_cv_prog_cc_c89+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 ac_cv_prog_cc_c89=no
3927 ac_save_CC=$CC
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930 #include <stdarg.h>
3931 #include <stdio.h>
3932 struct stat;
3933 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3934 struct buf { int x; };
3935 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3936 static char *e (p, i)
3937 char **p;
3938 int i;
3939 {
3940 return p[i];
3941 }
3942 static char *f (char * (*g) (char **, int), char **p, ...)
3943 {
3944 char *s;
3945 va_list v;
3946 va_start (v,p);
3947 s = g (p, va_arg (v,int));
3948 va_end (v);
3949 return s;
3950 }
3951
3952 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3953 function prototypes and stuff, but not '\xHH' hex character constants.
3954 These don't provoke an error unfortunately, instead are silently treated
3955 as 'x'. The following induces an error, until -std is added to get
3956 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3957 array size at least. It's necessary to write '\x00'==0 to get something
3958 that's true only with -std. */
3959 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3960
3961 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3962 inside strings and character constants. */
3963 #define FOO(x) 'x'
3964 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3965
3966 int test (int i, double x);
3967 struct s1 {int (*f) (int a);};
3968 struct s2 {int (*f) (double a);};
3969 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3970 int argc;
3971 char **argv;
3972 int
3973 main ()
3974 {
3975 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3976 ;
3977 return 0;
3978 }
3979 _ACEOF
3980 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3981 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3982 do
3983 CC="$ac_save_CC $ac_arg"
3984 if ac_fn_c_try_compile "$LINENO"; then :
3985 ac_cv_prog_cc_c89=$ac_arg
3986 fi
3987 rm -f core conftest.err conftest.$ac_objext
3988 test "x$ac_cv_prog_cc_c89" != "xno" && break
3989 done
3990 rm -f conftest.$ac_ext
3991 CC=$ac_save_CC
3992
3993 fi
3994 # AC_CACHE_VAL
3995 case "x$ac_cv_prog_cc_c89" in
3996 x)
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3998 $as_echo "none needed" >&6; } ;;
3999 xno)
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4001 $as_echo "unsupported" >&6; } ;;
4002 *)
4003 CC="$CC $ac_cv_prog_cc_c89"
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4005 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4006 esac
4007 if test "x$ac_cv_prog_cc_c89" != xno; then :
4008
4009 fi
4010
4011 ac_ext=c
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016
4017 ac_ext=c
4018 ac_cpp='$CPP $CPPFLAGS'
4019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4023 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4024 if ${am_cv_prog_cc_c_o+:} false; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4029
4030 int
4031 main ()
4032 {
4033
4034 ;
4035 return 0;
4036 }
4037 _ACEOF
4038 # Make sure it works both with $CC and with simple cc.
4039 # Following AC_PROG_CC_C_O, we do the test twice because some
4040 # compilers refuse to overwrite an existing .o file with -o,
4041 # though they will create one.
4042 am_cv_prog_cc_c_o=yes
4043 for am_i in 1 2; do
4044 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4045 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } \
4049 && test -f conftest2.$ac_objext; then
4050 : OK
4051 else
4052 am_cv_prog_cc_c_o=no
4053 break
4054 fi
4055 done
4056 rm -f core conftest*
4057 unset am_i
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4060 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4061 if test "$am_cv_prog_cc_c_o" != yes; then
4062 # Losing compiler, so override with the script.
4063 # FIXME: It is wrong to rewrite CC.
4064 # But if we don't then we get into trouble of one sort or another.
4065 # A longer-term fix would be to have automake use am__CC in this case,
4066 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4067 CC="$am_aux_dir/compile $CC"
4068 fi
4069 ac_ext=c
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074
4075 DEPDIR="${am__leading_dot}deps"
4076
4077 ac_config_commands="$ac_config_commands depfiles"
4078
4079
4080 am_make=${MAKE-make}
4081 cat > confinc << 'END'
4082 am__doit:
4083 @echo this is the am__doit target
4084 .PHONY: am__doit
4085 END
4086 # If we don't find an include directive, just comment out the code.
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4088 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4089 am__include="#"
4090 am__quote=
4091 _am_result=none
4092 # First try GNU make style include.
4093 echo "include confinc" > confmf
4094 # Ignore all kinds of additional output from 'make'.
4095 case `$am_make -s -f confmf 2> /dev/null` in #(
4096 *the\ am__doit\ target*)
4097 am__include=include
4098 am__quote=
4099 _am_result=GNU
4100 ;;
4101 esac
4102 # Now try BSD make style include.
4103 if test "$am__include" = "#"; then
4104 echo '.include "confinc"' > confmf
4105 case `$am_make -s -f confmf 2> /dev/null` in #(
4106 *the\ am__doit\ target*)
4107 am__include=.include
4108 am__quote="\""
4109 _am_result=BSD
4110 ;;
4111 esac
4112 fi
4113
4114
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4116 $as_echo "$_am_result" >&6; }
4117 rm -f confinc confmf
4118
4119 # Check whether --enable-dependency-tracking was given.
4120 if test "${enable_dependency_tracking+set}" = set; then :
4121 enableval=$enable_dependency_tracking;
4122 fi
4123
4124 if test "x$enable_dependency_tracking" != xno; then
4125 am_depcomp="$ac_aux_dir/depcomp"
4126 AMDEPBACKSLASH='\'
4127 am__nodep='_no'
4128 fi
4129 if test "x$enable_dependency_tracking" != xno; then
4130 AMDEP_TRUE=
4131 AMDEP_FALSE='#'
4132 else
4133 AMDEP_TRUE='#'
4134 AMDEP_FALSE=
4135 fi
4136
4137
4138
4139 depcc="$CC" am_compiler_list=
4140
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4142 $as_echo_n "checking dependency style of $depcc... " >&6; }
4143 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4147 # We make a subdir and do the tests there. Otherwise we can end up
4148 # making bogus files that we don't know about and never remove. For
4149 # instance it was reported that on HP-UX the gcc test will end up
4150 # making a dummy file named 'D' -- because '-MD' means "put the output
4151 # in D".
4152 rm -rf conftest.dir
4153 mkdir conftest.dir
4154 # Copy depcomp to subdir because otherwise we won't find it if we're
4155 # using a relative directory.
4156 cp "$am_depcomp" conftest.dir
4157 cd conftest.dir
4158 # We will build objects and dependencies in a subdirectory because
4159 # it helps to detect inapplicable dependency modes. For instance
4160 # both Tru64's cc and ICC support -MD to output dependencies as a
4161 # side effect of compilation, but ICC will put the dependencies in
4162 # the current directory while Tru64 will put them in the object
4163 # directory.
4164 mkdir sub
4165
4166 am_cv_CC_dependencies_compiler_type=none
4167 if test "$am_compiler_list" = ""; then
4168 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4169 fi
4170 am__universal=false
4171 case " $depcc " in #(
4172 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4173 esac
4174
4175 for depmode in $am_compiler_list; do
4176 # Setup a source with many dependencies, because some compilers
4177 # like to wrap large dependency lists on column 80 (with \), and
4178 # we should not choose a depcomp mode which is confused by this.
4179 #
4180 # We need to recreate these files for each test, as the compiler may
4181 # overwrite some of them when testing with obscure command lines.
4182 # This happens at least with the AIX C compiler.
4183 : > sub/conftest.c
4184 for i in 1 2 3 4 5 6; do
4185 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4186 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4187 # Solaris 10 /bin/sh.
4188 echo '/* dummy */' > sub/conftst$i.h
4189 done
4190 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4191
4192 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4193 # mode. It turns out that the SunPro C++ compiler does not properly
4194 # handle '-M -o', and we need to detect this. Also, some Intel
4195 # versions had trouble with output in subdirs.
4196 am__obj=sub/conftest.${OBJEXT-o}
4197 am__minus_obj="-o $am__obj"
4198 case $depmode in
4199 gcc)
4200 # This depmode causes a compiler race in universal mode.
4201 test "$am__universal" = false || continue
4202 ;;
4203 nosideeffect)
4204 # After this tag, mechanisms are not by side-effect, so they'll
4205 # only be used when explicitly requested.
4206 if test "x$enable_dependency_tracking" = xyes; then
4207 continue
4208 else
4209 break
4210 fi
4211 ;;
4212 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4213 # This compiler won't grok '-c -o', but also, the minuso test has
4214 # not run yet. These depmodes are late enough in the game, and
4215 # so weak that their functioning should not be impacted.
4216 am__obj=conftest.${OBJEXT-o}
4217 am__minus_obj=
4218 ;;
4219 none) break ;;
4220 esac
4221 if depmode=$depmode \
4222 source=sub/conftest.c object=$am__obj \
4223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4224 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4225 >/dev/null 2>conftest.err &&
4226 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4227 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4228 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4229 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4230 # icc doesn't choke on unknown options, it will just issue warnings
4231 # or remarks (even with -Werror). So we grep stderr for any message
4232 # that says an option was ignored or not supported.
4233 # When given -MP, icc 7.0 and 7.1 complain thusly:
4234 # icc: Command line warning: ignoring option '-M'; no argument required
4235 # The diagnosis changed in icc 8.0:
4236 # icc: Command line remark: option '-MP' not supported
4237 if (grep 'ignoring option' conftest.err ||
4238 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4239 am_cv_CC_dependencies_compiler_type=$depmode
4240 break
4241 fi
4242 fi
4243 done
4244
4245 cd ..
4246 rm -rf conftest.dir
4247 else
4248 am_cv_CC_dependencies_compiler_type=none
4249 fi
4250
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4253 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4254 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4255
4256 if
4257 test "x$enable_dependency_tracking" != xno \
4258 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4259 am__fastdepCC_TRUE=
4260 am__fastdepCC_FALSE='#'
4261 else
4262 am__fastdepCC_TRUE='#'
4263 am__fastdepCC_FALSE=
4264 fi
4265
4266
4267
4268 ac_ext=c
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4274 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4275 # On Suns, sometimes $CPP names a directory.
4276 if test -n "$CPP" && test -d "$CPP"; then
4277 CPP=
4278 fi
4279 if test -z "$CPP"; then
4280 if ${ac_cv_prog_CPP+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 # Double quotes because CPP needs to be expanded
4284 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4285 do
4286 ac_preproc_ok=false
4287 for ac_c_preproc_warn_flag in '' yes
4288 do
4289 # Use a header file that comes with gcc, so configuring glibc
4290 # with a fresh cross-compiler works.
4291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4292 # <limits.h> exists even on freestanding compilers.
4293 # On the NeXT, cc -E runs the code through the compiler's parser,
4294 # not just through cpp. "Syntax error" is here to catch this case.
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 #ifdef __STDC__
4298 # include <limits.h>
4299 #else
4300 # include <assert.h>
4301 #endif
4302 Syntax error
4303 _ACEOF
4304 if ac_fn_c_try_cpp "$LINENO"; then :
4305
4306 else
4307 # Broken: fails on valid input.
4308 continue
4309 fi
4310 rm -f conftest.err conftest.i conftest.$ac_ext
4311
4312 # OK, works on sane cases. Now check whether nonexistent headers
4313 # can be detected and how.
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316 #include <ac_nonexistent.h>
4317 _ACEOF
4318 if ac_fn_c_try_cpp "$LINENO"; then :
4319 # Broken: success on invalid input.
4320 continue
4321 else
4322 # Passes both tests.
4323 ac_preproc_ok=:
4324 break
4325 fi
4326 rm -f conftest.err conftest.i conftest.$ac_ext
4327
4328 done
4329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4330 rm -f conftest.i conftest.err conftest.$ac_ext
4331 if $ac_preproc_ok; then :
4332 break
4333 fi
4334
4335 done
4336 ac_cv_prog_CPP=$CPP
4337
4338 fi
4339 CPP=$ac_cv_prog_CPP
4340 else
4341 ac_cv_prog_CPP=$CPP
4342 fi
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4344 $as_echo "$CPP" >&6; }
4345 ac_preproc_ok=false
4346 for ac_c_preproc_warn_flag in '' yes
4347 do
4348 # Use a header file that comes with gcc, so configuring glibc
4349 # with a fresh cross-compiler works.
4350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4351 # <limits.h> exists even on freestanding compilers.
4352 # On the NeXT, cc -E runs the code through the compiler's parser,
4353 # not just through cpp. "Syntax error" is here to catch this case.
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356 #ifdef __STDC__
4357 # include <limits.h>
4358 #else
4359 # include <assert.h>
4360 #endif
4361 Syntax error
4362 _ACEOF
4363 if ac_fn_c_try_cpp "$LINENO"; then :
4364
4365 else
4366 # Broken: fails on valid input.
4367 continue
4368 fi
4369 rm -f conftest.err conftest.i conftest.$ac_ext
4370
4371 # OK, works on sane cases. Now check whether nonexistent headers
4372 # can be detected and how.
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 #include <ac_nonexistent.h>
4376 _ACEOF
4377 if ac_fn_c_try_cpp "$LINENO"; then :
4378 # Broken: success on invalid input.
4379 continue
4380 else
4381 # Passes both tests.
4382 ac_preproc_ok=:
4383 break
4384 fi
4385 rm -f conftest.err conftest.i conftest.$ac_ext
4386
4387 done
4388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4389 rm -f conftest.i conftest.err conftest.$ac_ext
4390 if $ac_preproc_ok; then :
4391
4392 else
4393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4395 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4396 See \`config.log' for more details" "$LINENO" 5; }
4397 fi
4398
4399 ac_ext=c
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404
4405
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4407 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4408 if ${ac_cv_path_GREP+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 if test -z "$GREP"; then
4412 ac_path_GREP_found=false
4413 # Loop through the user's path and test for each of PROGNAME-LIST
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4416 do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_prog in grep ggrep; do
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4422 as_fn_executable_p "$ac_path_GREP" || continue
4423 # Check for GNU ac_path_GREP and select it if it is found.
4424 # Check for GNU $ac_path_GREP
4425 case `"$ac_path_GREP" --version 2>&1` in
4426 *GNU*)
4427 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4428 *)
4429 ac_count=0
4430 $as_echo_n 0123456789 >"conftest.in"
4431 while :
4432 do
4433 cat "conftest.in" "conftest.in" >"conftest.tmp"
4434 mv "conftest.tmp" "conftest.in"
4435 cp "conftest.in" "conftest.nl"
4436 $as_echo 'GREP' >> "conftest.nl"
4437 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4438 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4439 as_fn_arith $ac_count + 1 && ac_count=$as_val
4440 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4441 # Best one so far, save it but keep looking for a better one
4442 ac_cv_path_GREP="$ac_path_GREP"
4443 ac_path_GREP_max=$ac_count
4444 fi
4445 # 10*(2^10) chars as input seems more than enough
4446 test $ac_count -gt 10 && break
4447 done
4448 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4449 esac
4450
4451 $ac_path_GREP_found && break 3
4452 done
4453 done
4454 done
4455 IFS=$as_save_IFS
4456 if test -z "$ac_cv_path_GREP"; then
4457 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4458 fi
4459 else
4460 ac_cv_path_GREP=$GREP
4461 fi
4462
4463 fi
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4465 $as_echo "$ac_cv_path_GREP" >&6; }
4466 GREP="$ac_cv_path_GREP"
4467
4468
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4470 $as_echo_n "checking for egrep... " >&6; }
4471 if ${ac_cv_path_EGREP+:} false; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4475 then ac_cv_path_EGREP="$GREP -E"
4476 else
4477 if test -z "$EGREP"; then
4478 ac_path_EGREP_found=false
4479 # Loop through the user's path and test for each of PROGNAME-LIST
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4482 do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_prog in egrep; do
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4488 as_fn_executable_p "$ac_path_EGREP" || continue
4489 # Check for GNU ac_path_EGREP and select it if it is found.
4490 # Check for GNU $ac_path_EGREP
4491 case `"$ac_path_EGREP" --version 2>&1` in
4492 *GNU*)
4493 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4494 *)
4495 ac_count=0
4496 $as_echo_n 0123456789 >"conftest.in"
4497 while :
4498 do
4499 cat "conftest.in" "conftest.in" >"conftest.tmp"
4500 mv "conftest.tmp" "conftest.in"
4501 cp "conftest.in" "conftest.nl"
4502 $as_echo 'EGREP' >> "conftest.nl"
4503 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4505 as_fn_arith $ac_count + 1 && ac_count=$as_val
4506 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4507 # Best one so far, save it but keep looking for a better one
4508 ac_cv_path_EGREP="$ac_path_EGREP"
4509 ac_path_EGREP_max=$ac_count
4510 fi
4511 # 10*(2^10) chars as input seems more than enough
4512 test $ac_count -gt 10 && break
4513 done
4514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4515 esac
4516
4517 $ac_path_EGREP_found && break 3
4518 done
4519 done
4520 done
4521 IFS=$as_save_IFS
4522 if test -z "$ac_cv_path_EGREP"; then
4523 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4524 fi
4525 else
4526 ac_cv_path_EGREP=$EGREP
4527 fi
4528
4529 fi
4530 fi
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4532 $as_echo "$ac_cv_path_EGREP" >&6; }
4533 EGREP="$ac_cv_path_EGREP"
4534
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4537 $as_echo_n "checking for ANSI C header files... " >&6; }
4538 if ${ac_cv_header_stdc+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 #include <stdlib.h>
4544 #include <stdarg.h>
4545 #include <string.h>
4546 #include <float.h>
4547
4548 int
4549 main ()
4550 {
4551
4552 ;
4553 return 0;
4554 }
4555 _ACEOF
4556 if ac_fn_c_try_compile "$LINENO"; then :
4557 ac_cv_header_stdc=yes
4558 else
4559 ac_cv_header_stdc=no
4560 fi
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562
4563 if test $ac_cv_header_stdc = yes; then
4564 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567 #include <string.h>
4568
4569 _ACEOF
4570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4571 $EGREP "memchr" >/dev/null 2>&1; then :
4572
4573 else
4574 ac_cv_header_stdc=no
4575 fi
4576 rm -f conftest*
4577
4578 fi
4579
4580 if test $ac_cv_header_stdc = yes; then
4581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584 #include <stdlib.h>
4585
4586 _ACEOF
4587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4588 $EGREP "free" >/dev/null 2>&1; then :
4589
4590 else
4591 ac_cv_header_stdc=no
4592 fi
4593 rm -f conftest*
4594
4595 fi
4596
4597 if test $ac_cv_header_stdc = yes; then
4598 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4599 if test "$cross_compiling" = yes; then :
4600 :
4601 else
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4604 #include <ctype.h>
4605 #include <stdlib.h>
4606 #if ((' ' & 0x0FF) == 0x020)
4607 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4608 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4609 #else
4610 # define ISLOWER(c) \
4611 (('a' <= (c) && (c) <= 'i') \
4612 || ('j' <= (c) && (c) <= 'r') \
4613 || ('s' <= (c) && (c) <= 'z'))
4614 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4615 #endif
4616
4617 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4618 int
4619 main ()
4620 {
4621 int i;
4622 for (i = 0; i < 256; i++)
4623 if (XOR (islower (i), ISLOWER (i))
4624 || toupper (i) != TOUPPER (i))
4625 return 2;
4626 return 0;
4627 }
4628 _ACEOF
4629 if ac_fn_c_try_run "$LINENO"; then :
4630
4631 else
4632 ac_cv_header_stdc=no
4633 fi
4634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4635 conftest.$ac_objext conftest.beam conftest.$ac_ext
4636 fi
4637
4638 fi
4639 fi
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4641 $as_echo "$ac_cv_header_stdc" >&6; }
4642 if test $ac_cv_header_stdc = yes; then
4643
4644 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4645
4646 fi
4647
4648 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4649 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4650 inttypes.h stdint.h unistd.h
4651 do :
4652 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4653 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4654 "
4655 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4656 cat >>confdefs.h <<_ACEOF
4657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4658 _ACEOF
4659
4660 fi
4661
4662 done
4663
4664
4665
4666 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4667 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4668 MINIX=yes
4669 else
4670 MINIX=
4671 fi
4672
4673
4674 if test "$MINIX" = yes; then
4675
4676 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4677
4678
4679 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4680
4681
4682 $as_echo "#define _MINIX 1" >>confdefs.h
4683
4684 fi
4685
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4688 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4689 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694
4695 # define __EXTENSIONS__ 1
4696 $ac_includes_default
4697 int
4698 main ()
4699 {
4700
4701 ;
4702 return 0;
4703 }
4704 _ACEOF
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706 ac_cv_safe_to_define___extensions__=yes
4707 else
4708 ac_cv_safe_to_define___extensions__=no
4709 fi
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4713 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4714 test $ac_cv_safe_to_define___extensions__ = yes &&
4715 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4716
4717 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4718
4719 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4720
4721 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4722
4723 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4724
4725
4726
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4728 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4729 if ${ac_cv_c_bigendian+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 ac_cv_c_bigendian=unknown
4733 # See if we're dealing with a universal compiler.
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736 #ifndef __APPLE_CC__
4737 not a universal capable compiler
4738 #endif
4739 typedef int dummy;
4740
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743
4744 # Check for potential -arch flags. It is not universal unless
4745 # there are at least two -arch flags with different values.
4746 ac_arch=
4747 ac_prev=
4748 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4749 if test -n "$ac_prev"; then
4750 case $ac_word in
4751 i?86 | x86_64 | ppc | ppc64)
4752 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4753 ac_arch=$ac_word
4754 else
4755 ac_cv_c_bigendian=universal
4756 break
4757 fi
4758 ;;
4759 esac
4760 ac_prev=
4761 elif test "x$ac_word" = "x-arch"; then
4762 ac_prev=arch
4763 fi
4764 done
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 if test $ac_cv_c_bigendian = unknown; then
4768 # See if sys/param.h defines the BYTE_ORDER macro.
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4771 #include <sys/types.h>
4772 #include <sys/param.h>
4773
4774 int
4775 main ()
4776 {
4777 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4778 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4779 && LITTLE_ENDIAN)
4780 bogus endian macros
4781 #endif
4782
4783 ;
4784 return 0;
4785 }
4786 _ACEOF
4787 if ac_fn_c_try_compile "$LINENO"; then :
4788 # It does; now see whether it defined to BIG_ENDIAN or not.
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791 #include <sys/types.h>
4792 #include <sys/param.h>
4793
4794 int
4795 main ()
4796 {
4797 #if BYTE_ORDER != BIG_ENDIAN
4798 not big endian
4799 #endif
4800
4801 ;
4802 return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806 ac_cv_c_bigendian=yes
4807 else
4808 ac_cv_c_bigendian=no
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 fi
4814 if test $ac_cv_c_bigendian = unknown; then
4815 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 #include <limits.h>
4819
4820 int
4821 main ()
4822 {
4823 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4824 bogus endian macros
4825 #endif
4826
4827 ;
4828 return 0;
4829 }
4830 _ACEOF
4831 if ac_fn_c_try_compile "$LINENO"; then :
4832 # It does; now see whether it defined to _BIG_ENDIAN or not.
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835 #include <limits.h>
4836
4837 int
4838 main ()
4839 {
4840 #ifndef _BIG_ENDIAN
4841 not big endian
4842 #endif
4843
4844 ;
4845 return 0;
4846 }
4847 _ACEOF
4848 if ac_fn_c_try_compile "$LINENO"; then :
4849 ac_cv_c_bigendian=yes
4850 else
4851 ac_cv_c_bigendian=no
4852 fi
4853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 fi
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 fi
4857 if test $ac_cv_c_bigendian = unknown; then
4858 # Compile a test program.
4859 if test "$cross_compiling" = yes; then :
4860 # Try to guess by grepping values from an object file.
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863 short int ascii_mm[] =
4864 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4865 short int ascii_ii[] =
4866 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4867 int use_ascii (int i) {
4868 return ascii_mm[i] + ascii_ii[i];
4869 }
4870 short int ebcdic_ii[] =
4871 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4872 short int ebcdic_mm[] =
4873 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4874 int use_ebcdic (int i) {
4875 return ebcdic_mm[i] + ebcdic_ii[i];
4876 }
4877 extern int foo;
4878
4879 int
4880 main ()
4881 {
4882 return use_ascii (foo) == use_ebcdic (foo);
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4889 ac_cv_c_bigendian=yes
4890 fi
4891 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4892 if test "$ac_cv_c_bigendian" = unknown; then
4893 ac_cv_c_bigendian=no
4894 else
4895 # finding both strings is unlikely to happen, but who knows?
4896 ac_cv_c_bigendian=unknown
4897 fi
4898 fi
4899 fi
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 else
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 $ac_includes_default
4905 int
4906 main ()
4907 {
4908
4909 /* Are we little or big endian? From Harbison&Steele. */
4910 union
4911 {
4912 long int l;
4913 char c[sizeof (long int)];
4914 } u;
4915 u.l = 1;
4916 return u.c[sizeof (long int) - 1] == 1;
4917
4918 ;
4919 return 0;
4920 }
4921 _ACEOF
4922 if ac_fn_c_try_run "$LINENO"; then :
4923 ac_cv_c_bigendian=no
4924 else
4925 ac_cv_c_bigendian=yes
4926 fi
4927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4928 conftest.$ac_objext conftest.beam conftest.$ac_ext
4929 fi
4930
4931 fi
4932 fi
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4934 $as_echo "$ac_cv_c_bigendian" >&6; }
4935 case $ac_cv_c_bigendian in #(
4936 yes)
4937 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4938 ;; #(
4939 no)
4940 ;; #(
4941 universal)
4942
4943 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4944
4945 ;; #(
4946 *)
4947 as_fn_error $? "unknown endianness
4948 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4949 esac
4950
4951
4952 case `pwd` in
4953 *\ * | *\ *)
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4955 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4956 esac
4957
4958
4959
4960 macro_version='2.2.7a'
4961 macro_revision='1.3134'
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975 ltmain="$ac_aux_dir/ltmain.sh"
4976
4977 # Backslashify metacharacters that are still active within
4978 # double-quoted strings.
4979 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4980
4981 # Same as above, but do not quote variable references.
4982 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4983
4984 # Sed substitution to delay expansion of an escaped shell variable in a
4985 # double_quote_subst'ed string.
4986 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4987
4988 # Sed substitution to delay expansion of an escaped single quote.
4989 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4990
4991 # Sed substitution to avoid accidental globbing in evaled expressions
4992 no_glob_subst='s/\*/\\\*/g'
4993
4994 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4995 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4996 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4999 $as_echo_n "checking how to print strings... " >&6; }
5000 # Test print first, because it will be a builtin if present.
5001 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5002 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5003 ECHO='print -r --'
5004 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5005 ECHO='printf %s\n'
5006 else
5007 # Use this function as a fallback that always works.
5008 func_fallback_echo ()
5009 {
5010 eval 'cat <<_LTECHO_EOF
5011 $1
5012 _LTECHO_EOF'
5013 }
5014 ECHO='func_fallback_echo'
5015 fi
5016
5017 # func_echo_all arg...
5018 # Invoke $ECHO with all args, space-separated.
5019 func_echo_all ()
5020 {
5021 $ECHO ""
5022 }
5023
5024 case "$ECHO" in
5025 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5026 $as_echo "printf" >&6; } ;;
5027 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5028 $as_echo "print -r" >&6; } ;;
5029 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5030 $as_echo "cat" >&6; } ;;
5031 esac
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5047 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5048 if ${ac_cv_path_SED+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5052 for ac_i in 1 2 3 4 5 6 7; do
5053 ac_script="$ac_script$as_nl$ac_script"
5054 done
5055 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5056 { ac_script=; unset ac_script;}
5057 if test -z "$SED"; then
5058 ac_path_SED_found=false
5059 # Loop through the user's path and test for each of PROGNAME-LIST
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_prog in sed gsed; do
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5068 as_fn_executable_p "$ac_path_SED" || continue
5069 # Check for GNU ac_path_SED and select it if it is found.
5070 # Check for GNU $ac_path_SED
5071 case `"$ac_path_SED" --version 2>&1` in
5072 *GNU*)
5073 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5074 *)
5075 ac_count=0
5076 $as_echo_n 0123456789 >"conftest.in"
5077 while :
5078 do
5079 cat "conftest.in" "conftest.in" >"conftest.tmp"
5080 mv "conftest.tmp" "conftest.in"
5081 cp "conftest.in" "conftest.nl"
5082 $as_echo '' >> "conftest.nl"
5083 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5085 as_fn_arith $ac_count + 1 && ac_count=$as_val
5086 if test $ac_count -gt ${ac_path_SED_max-0}; then
5087 # Best one so far, save it but keep looking for a better one
5088 ac_cv_path_SED="$ac_path_SED"
5089 ac_path_SED_max=$ac_count
5090 fi
5091 # 10*(2^10) chars as input seems more than enough
5092 test $ac_count -gt 10 && break
5093 done
5094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5095 esac
5096
5097 $ac_path_SED_found && break 3
5098 done
5099 done
5100 done
5101 IFS=$as_save_IFS
5102 if test -z "$ac_cv_path_SED"; then
5103 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5104 fi
5105 else
5106 ac_cv_path_SED=$SED
5107 fi
5108
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5111 $as_echo "$ac_cv_path_SED" >&6; }
5112 SED="$ac_cv_path_SED"
5113 rm -f conftest.sed
5114
5115 test -z "$SED" && SED=sed
5116 Xsed="$SED -e 1s/^X//"
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5129 $as_echo_n "checking for fgrep... " >&6; }
5130 if ${ac_cv_path_FGREP+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5134 then ac_cv_path_FGREP="$GREP -F"
5135 else
5136 if test -z "$FGREP"; then
5137 ac_path_FGREP_found=false
5138 # Loop through the user's path and test for each of PROGNAME-LIST
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5141 do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_prog in fgrep; do
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5147 as_fn_executable_p "$ac_path_FGREP" || continue
5148 # Check for GNU ac_path_FGREP and select it if it is found.
5149 # Check for GNU $ac_path_FGREP
5150 case `"$ac_path_FGREP" --version 2>&1` in
5151 *GNU*)
5152 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5153 *)
5154 ac_count=0
5155 $as_echo_n 0123456789 >"conftest.in"
5156 while :
5157 do
5158 cat "conftest.in" "conftest.in" >"conftest.tmp"
5159 mv "conftest.tmp" "conftest.in"
5160 cp "conftest.in" "conftest.nl"
5161 $as_echo 'FGREP' >> "conftest.nl"
5162 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5164 as_fn_arith $ac_count + 1 && ac_count=$as_val
5165 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5166 # Best one so far, save it but keep looking for a better one
5167 ac_cv_path_FGREP="$ac_path_FGREP"
5168 ac_path_FGREP_max=$ac_count
5169 fi
5170 # 10*(2^10) chars as input seems more than enough
5171 test $ac_count -gt 10 && break
5172 done
5173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5174 esac
5175
5176 $ac_path_FGREP_found && break 3
5177 done
5178 done
5179 done
5180 IFS=$as_save_IFS
5181 if test -z "$ac_cv_path_FGREP"; then
5182 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5183 fi
5184 else
5185 ac_cv_path_FGREP=$FGREP
5186 fi
5187
5188 fi
5189 fi
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5191 $as_echo "$ac_cv_path_FGREP" >&6; }
5192 FGREP="$ac_cv_path_FGREP"
5193
5194
5195 test -z "$GREP" && GREP=grep
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215 # Check whether --with-gnu-ld was given.
5216 if test "${with_gnu_ld+set}" = set; then :
5217 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5218 else
5219 with_gnu_ld=no
5220 fi
5221
5222 ac_prog=ld
5223 if test "$GCC" = yes; then
5224 # Check if gcc -print-prog-name=ld gives a path.
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5226 $as_echo_n "checking for ld used by $CC... " >&6; }
5227 case $host in
5228 *-*-mingw*)
5229 # gcc leaves a trailing carriage return which upsets mingw
5230 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5231 *)
5232 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5233 esac
5234 case $ac_prog in
5235 # Accept absolute paths.
5236 [\\/]* | ?:[\\/]*)
5237 re_direlt='/[^/][^/]*/\.\./'
5238 # Canonicalize the pathname of ld
5239 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5240 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5241 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5242 done
5243 test -z "$LD" && LD="$ac_prog"
5244 ;;
5245 "")
5246 # If it fails, then pretend we aren't using GCC.
5247 ac_prog=ld
5248 ;;
5249 *)
5250 # If it is relative, then search for the first ld in PATH.
5251 with_gnu_ld=unknown
5252 ;;
5253 esac
5254 elif test "$with_gnu_ld" = yes; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5256 $as_echo_n "checking for GNU ld... " >&6; }
5257 else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5259 $as_echo_n "checking for non-GNU ld... " >&6; }
5260 fi
5261 if ${lt_cv_path_LD+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 if test -z "$LD"; then
5265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5266 for ac_dir in $PATH; do
5267 IFS="$lt_save_ifs"
5268 test -z "$ac_dir" && ac_dir=.
5269 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5270 lt_cv_path_LD="$ac_dir/$ac_prog"
5271 # Check to see if the program is GNU ld. I'd rather use --version,
5272 # but apparently some variants of GNU ld only accept -v.
5273 # Break only if it was the GNU/non-GNU ld that we prefer.
5274 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5275 *GNU* | *'with BFD'*)
5276 test "$with_gnu_ld" != no && break
5277 ;;
5278 *)
5279 test "$with_gnu_ld" != yes && break
5280 ;;
5281 esac
5282 fi
5283 done
5284 IFS="$lt_save_ifs"
5285 else
5286 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5287 fi
5288 fi
5289
5290 LD="$lt_cv_path_LD"
5291 if test -n "$LD"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5293 $as_echo "$LD" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5300 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5301 if ${lt_cv_prog_gnu_ld+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5305 case `$LD -v 2>&1 </dev/null` in
5306 *GNU* | *'with BFD'*)
5307 lt_cv_prog_gnu_ld=yes
5308 ;;
5309 *)
5310 lt_cv_prog_gnu_ld=no
5311 ;;
5312 esac
5313 fi
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5315 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5316 with_gnu_ld=$lt_cv_prog_gnu_ld
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5327 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5328 if ${lt_cv_path_NM+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 if test -n "$NM"; then
5332 # Let the user override the nm to test.
5333 lt_nm_to_check="$NM"
5334 else
5335 lt_nm_to_check="${ac_tool_prefix}nm"
5336 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5337 lt_nm_to_check="$lt_nm_to_check nm"
5338 fi
5339 fi
5340 for lt_tmp_nm in "$lt_nm_to_check"; do
5341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5342 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5343 IFS="$lt_save_ifs"
5344 test -z "$ac_dir" && ac_dir=.
5345 # Strip out any user-provided options from the nm to test twice,
5346 # the first time to test to see if nm (rather than its options) has
5347 # an explicit path, the second time to yield a file which can be
5348 # nm'ed itself.
5349 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5350 case "$tmp_nm_path" in
5351 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5352 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5353 esac
5354 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5355 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5356 # Check to see if the nm accepts a BSD-compat flag.
5357 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5358 # nm: unknown option "B" ignored
5359 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5360 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5361 break
5362 ;;
5363 *)
5364 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5365 *$tmp_nm*)
5366 lt_cv_path_NM="$tmp_nm -p"
5367 break
5368 ;;
5369 *)
5370 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5371 continue # so that we can try to find one that supports BSD flags
5372 ;;
5373 esac
5374 ;;
5375 esac
5376 fi
5377 done
5378 IFS="$lt_save_ifs"
5379 done
5380 : ${lt_cv_path_NM=no}
5381 fi
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5383 $as_echo "$lt_cv_path_NM" >&6; }
5384 if test "$lt_cv_path_NM" != "no"; then
5385 NM="$lt_cv_path_NM"
5386 else
5387 # Didn't find any BSD compatible name lister, look for dumpbin.
5388 if test -n "$DUMPBIN"; then :
5389 # Let the user override the test.
5390 else
5391 if test -n "$ac_tool_prefix"; then
5392 for ac_prog in dumpbin "link -dump"
5393 do
5394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_prog_DUMPBIN+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if test -n "$DUMPBIN"; then
5402 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5414 fi
5415 done
5416 done
5417 IFS=$as_save_IFS
5418
5419 fi
5420 fi
5421 DUMPBIN=$ac_cv_prog_DUMPBIN
5422 if test -n "$DUMPBIN"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5424 $as_echo "$DUMPBIN" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430
5431 test -n "$DUMPBIN" && break
5432 done
5433 fi
5434 if test -z "$DUMPBIN"; then
5435 ac_ct_DUMPBIN=$DUMPBIN
5436 for ac_prog in dumpbin "link -dump"
5437 do
5438 # Extract the first word of "$ac_prog", so it can be a program name with args.
5439 set dummy $ac_prog; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 if test -n "$ac_ct_DUMPBIN"; then
5446 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5447 else
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH
5450 do
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5455 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 break 2
5458 fi
5459 done
5460 done
5461 IFS=$as_save_IFS
5462
5463 fi
5464 fi
5465 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5466 if test -n "$ac_ct_DUMPBIN"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5468 $as_echo "$ac_ct_DUMPBIN" >&6; }
5469 else
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5472 fi
5473
5474
5475 test -n "$ac_ct_DUMPBIN" && break
5476 done
5477
5478 if test "x$ac_ct_DUMPBIN" = x; then
5479 DUMPBIN=":"
5480 else
5481 case $cross_compiling:$ac_tool_warned in
5482 yes:)
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5485 ac_tool_warned=yes ;;
5486 esac
5487 DUMPBIN=$ac_ct_DUMPBIN
5488 fi
5489 fi
5490
5491 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5492 *COFF*)
5493 DUMPBIN="$DUMPBIN -symbols"
5494 ;;
5495 *)
5496 DUMPBIN=:
5497 ;;
5498 esac
5499 fi
5500
5501 if test "$DUMPBIN" != ":"; then
5502 NM="$DUMPBIN"
5503 fi
5504 fi
5505 test -z "$NM" && NM=nm
5506
5507
5508
5509
5510
5511
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5513 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5514 if ${lt_cv_nm_interface+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 lt_cv_nm_interface="BSD nm"
5518 echo "int some_variable = 0;" > conftest.$ac_ext
5519 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5520 (eval "$ac_compile" 2>conftest.err)
5521 cat conftest.err >&5
5522 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5523 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5524 cat conftest.err >&5
5525 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5526 cat conftest.out >&5
5527 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5528 lt_cv_nm_interface="MS dumpbin"
5529 fi
5530 rm -f conftest*
5531 fi
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5533 $as_echo "$lt_cv_nm_interface" >&6; }
5534
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5536 $as_echo_n "checking whether ln -s works... " >&6; }
5537 LN_S=$as_ln_s
5538 if test "$LN_S" = "ln -s"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5540 $as_echo "yes" >&6; }
5541 else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5543 $as_echo "no, using $LN_S" >&6; }
5544 fi
5545
5546 # find the maximum length of command line arguments
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5548 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5549 if ${lt_cv_sys_max_cmd_len+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 i=0
5553 teststring="ABCD"
5554
5555 case $build_os in
5556 msdosdjgpp*)
5557 # On DJGPP, this test can blow up pretty badly due to problems in libc
5558 # (any single argument exceeding 2000 bytes causes a buffer overrun
5559 # during glob expansion). Even if it were fixed, the result of this
5560 # check would be larger than it should be.
5561 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5562 ;;
5563
5564 gnu*)
5565 # Under GNU Hurd, this test is not required because there is
5566 # no limit to the length of command line arguments.
5567 # Libtool will interpret -1 as no limit whatsoever
5568 lt_cv_sys_max_cmd_len=-1;
5569 ;;
5570
5571 cygwin* | mingw* | cegcc*)
5572 # On Win9x/ME, this test blows up -- it succeeds, but takes
5573 # about 5 minutes as the teststring grows exponentially.
5574 # Worse, since 9x/ME are not pre-emptively multitasking,
5575 # you end up with a "frozen" computer, even though with patience
5576 # the test eventually succeeds (with a max line length of 256k).
5577 # Instead, let's just punt: use the minimum linelength reported by
5578 # all of the supported platforms: 8192 (on NT/2K/XP).
5579 lt_cv_sys_max_cmd_len=8192;
5580 ;;
5581
5582 mint*)
5583 # On MiNT this can take a long time and run out of memory.
5584 lt_cv_sys_max_cmd_len=8192;
5585 ;;
5586
5587 amigaos*)
5588 # On AmigaOS with pdksh, this test takes hours, literally.
5589 # So we just punt and use a minimum line length of 8192.
5590 lt_cv_sys_max_cmd_len=8192;
5591 ;;
5592
5593 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5594 # This has been around since 386BSD, at least. Likely further.
5595 if test -x /sbin/sysctl; then
5596 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5597 elif test -x /usr/sbin/sysctl; then
5598 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5599 else
5600 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5601 fi
5602 # And add a safety zone
5603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5605 ;;
5606
5607 interix*)
5608 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5609 lt_cv_sys_max_cmd_len=196608
5610 ;;
5611
5612 osf*)
5613 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5614 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5615 # nice to cause kernel panics so lets avoid the loop below.
5616 # First set a reasonable default.
5617 lt_cv_sys_max_cmd_len=16384
5618 #
5619 if test -x /sbin/sysconfig; then
5620 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5621 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5622 esac
5623 fi
5624 ;;
5625 sco3.2v5*)
5626 lt_cv_sys_max_cmd_len=102400
5627 ;;
5628 sysv5* | sco5v6* | sysv4.2uw2*)
5629 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5630 if test -n "$kargmax"; then
5631 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5632 else
5633 lt_cv_sys_max_cmd_len=32768
5634 fi
5635 ;;
5636 *)
5637 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5638 if test -n "$lt_cv_sys_max_cmd_len"; then
5639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5641 else
5642 # Make teststring a little bigger before we do anything with it.
5643 # a 1K string should be a reasonable start.
5644 for i in 1 2 3 4 5 6 7 8 ; do
5645 teststring=$teststring$teststring
5646 done
5647 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5648 # If test is not a shell built-in, we'll probably end up computing a
5649 # maximum length that is only half of the actual maximum length, but
5650 # we can't tell.
5651 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5652 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5653 test $i != 17 # 1/2 MB should be enough
5654 do
5655 i=`expr $i + 1`
5656 teststring=$teststring$teststring
5657 done
5658 # Only check the string length outside the loop.
5659 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5660 teststring=
5661 # Add a significant safety factor because C++ compilers can tack on
5662 # massive amounts of additional arguments before passing them to the
5663 # linker. It appears as though 1/2 is a usable value.
5664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5665 fi
5666 ;;
5667 esac
5668
5669 fi
5670
5671 if test -n $lt_cv_sys_max_cmd_len ; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5673 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5674 else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5676 $as_echo "none" >&6; }
5677 fi
5678 max_cmd_len=$lt_cv_sys_max_cmd_len
5679
5680
5681
5682
5683
5684
5685 : ${CP="cp -f"}
5686 : ${MV="mv -f"}
5687 : ${RM="rm -f"}
5688
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5690 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5691 # Try some XSI features
5692 xsi_shell=no
5693 ( _lt_dummy="a/b/c"
5694 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5695 = c,a/b,, \
5696 && eval 'test $(( 1 + 1 )) -eq 2 \
5697 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5698 && xsi_shell=yes
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5700 $as_echo "$xsi_shell" >&6; }
5701
5702
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5704 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5705 lt_shell_append=no
5706 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5707 >/dev/null 2>&1 \
5708 && lt_shell_append=yes
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5710 $as_echo "$lt_shell_append" >&6; }
5711
5712
5713 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5714 lt_unset=unset
5715 else
5716 lt_unset=false
5717 fi
5718
5719
5720
5721
5722
5723 # test EBCDIC or ASCII
5724 case `echo X|tr X '\101'` in
5725 A) # ASCII based system
5726 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5727 lt_SP2NL='tr \040 \012'
5728 lt_NL2SP='tr \015\012 \040\040'
5729 ;;
5730 *) # EBCDIC based system
5731 lt_SP2NL='tr \100 \n'
5732 lt_NL2SP='tr \r\n \100\100'
5733 ;;
5734 esac
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5745 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5746 if ${lt_cv_ld_reload_flag+:} false; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 lt_cv_ld_reload_flag='-r'
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5752 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5753 reload_flag=$lt_cv_ld_reload_flag
5754 case $reload_flag in
5755 "" | " "*) ;;
5756 *) reload_flag=" $reload_flag" ;;
5757 esac
5758 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5759 case $host_os in
5760 darwin*)
5761 if test "$GCC" = yes; then
5762 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5763 else
5764 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5765 fi
5766 ;;
5767 esac
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777 if test -n "$ac_tool_prefix"; then
5778 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5779 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_OBJDUMP+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 if test -n "$OBJDUMP"; then
5786 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799 done
5800 done
5801 IFS=$as_save_IFS
5802
5803 fi
5804 fi
5805 OBJDUMP=$ac_cv_prog_OBJDUMP
5806 if test -n "$OBJDUMP"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5808 $as_echo "$OBJDUMP" >&6; }
5809 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5812 fi
5813
5814
5815 fi
5816 if test -z "$ac_cv_prog_OBJDUMP"; then
5817 ac_ct_OBJDUMP=$OBJDUMP
5818 # Extract the first word of "objdump", so it can be a program name with args.
5819 set dummy objdump; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if test -n "$ac_ct_OBJDUMP"; then
5826 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5846 if test -n "$ac_ct_OBJDUMP"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5848 $as_echo "$ac_ct_OBJDUMP" >&6; }
5849 else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5852 fi
5853
5854 if test "x$ac_ct_OBJDUMP" = x; then
5855 OBJDUMP="false"
5856 else
5857 case $cross_compiling:$ac_tool_warned in
5858 yes:)
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5861 ac_tool_warned=yes ;;
5862 esac
5863 OBJDUMP=$ac_ct_OBJDUMP
5864 fi
5865 else
5866 OBJDUMP="$ac_cv_prog_OBJDUMP"
5867 fi
5868
5869 test -z "$OBJDUMP" && OBJDUMP=objdump
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5880 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5881 if ${lt_cv_deplibs_check_method+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 lt_cv_file_magic_cmd='$MAGIC_CMD'
5885 lt_cv_file_magic_test_file=
5886 lt_cv_deplibs_check_method='unknown'
5887 # Need to set the preceding variable on all platforms that support
5888 # interlibrary dependencies.
5889 # 'none' -- dependencies not supported.
5890 # `unknown' -- same as none, but documents that we really don't know.
5891 # 'pass_all' -- all dependencies passed with no checks.
5892 # 'test_compile' -- check by making test program.
5893 # 'file_magic [[regex]]' -- check by looking for files in library path
5894 # which responds to the $file_magic_cmd with a given extended regex.
5895 # If you have `file' or equivalent on your system and you're not sure
5896 # whether `pass_all' will *always* work, you probably want this one.
5897
5898 case $host_os in
5899 aix[4-9]*)
5900 lt_cv_deplibs_check_method=pass_all
5901 ;;
5902
5903 beos*)
5904 lt_cv_deplibs_check_method=pass_all
5905 ;;
5906
5907 bsdi[45]*)
5908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5909 lt_cv_file_magic_cmd='/usr/bin/file -L'
5910 lt_cv_file_magic_test_file=/shlib/libc.so
5911 ;;
5912
5913 cygwin*)
5914 # func_win32_libid is a shell function defined in ltmain.sh
5915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5916 lt_cv_file_magic_cmd='func_win32_libid'
5917 ;;
5918
5919 mingw* | pw32*)
5920 # Base MSYS/MinGW do not provide the 'file' command needed by
5921 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5922 # unless we find 'file', for example because we are cross-compiling.
5923 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5924 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5925 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5926 lt_cv_file_magic_cmd='func_win32_libid'
5927 else
5928 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5929 lt_cv_file_magic_cmd='$OBJDUMP -f'
5930 fi
5931 ;;
5932
5933 cegcc*)
5934 # use the weaker test based on 'objdump'. See mingw*.
5935 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5936 lt_cv_file_magic_cmd='$OBJDUMP -f'
5937 ;;
5938
5939 darwin* | rhapsody*)
5940 lt_cv_deplibs_check_method=pass_all
5941 ;;
5942
5943 freebsd* | dragonfly*)
5944 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5945 case $host_cpu in
5946 i*86 )
5947 # Not sure whether the presence of OpenBSD here was a mistake.
5948 # Let's accept both of them until this is cleared up.
5949 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5950 lt_cv_file_magic_cmd=/usr/bin/file
5951 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5952 ;;
5953 esac
5954 else
5955 lt_cv_deplibs_check_method=pass_all
5956 fi
5957 ;;
5958
5959 gnu*)
5960 lt_cv_deplibs_check_method=pass_all
5961 ;;
5962
5963 haiku*)
5964 lt_cv_deplibs_check_method=pass_all
5965 ;;
5966
5967 hpux10.20* | hpux11*)
5968 lt_cv_file_magic_cmd=/usr/bin/file
5969 case $host_cpu in
5970 ia64*)
5971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5972 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5973 ;;
5974 hppa*64*)
5975 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]'
5976 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5977 ;;
5978 *)
5979 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5980 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5981 ;;
5982 esac
5983 ;;
5984
5985 interix[3-9]*)
5986 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5988 ;;
5989
5990 irix5* | irix6* | nonstopux*)
5991 case $LD in
5992 *-32|*"-32 ") libmagic=32-bit;;
5993 *-n32|*"-n32 ") libmagic=N32;;
5994 *-64|*"-64 ") libmagic=64-bit;;
5995 *) libmagic=never-match;;
5996 esac
5997 lt_cv_deplibs_check_method=pass_all
5998 ;;
5999
6000 # This must be Linux ELF.
6001 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6002 lt_cv_deplibs_check_method=pass_all
6003 ;;
6004
6005 netbsd*)
6006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6008 else
6009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6010 fi
6011 ;;
6012
6013 newos6*)
6014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6015 lt_cv_file_magic_cmd=/usr/bin/file
6016 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6017 ;;
6018
6019 *nto* | *qnx*)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022
6023 openbsd*)
6024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6026 else
6027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6028 fi
6029 ;;
6030
6031 osf3* | osf4* | osf5*)
6032 lt_cv_deplibs_check_method=pass_all
6033 ;;
6034
6035 rdos*)
6036 lt_cv_deplibs_check_method=pass_all
6037 ;;
6038
6039 solaris*)
6040 lt_cv_deplibs_check_method=pass_all
6041 ;;
6042
6043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6044 lt_cv_deplibs_check_method=pass_all
6045 ;;
6046
6047 sysv4 | sysv4.3*)
6048 case $host_vendor in
6049 motorola)
6050 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]'
6051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6052 ;;
6053 ncr)
6054 lt_cv_deplibs_check_method=pass_all
6055 ;;
6056 sequent)
6057 lt_cv_file_magic_cmd='/bin/file'
6058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6059 ;;
6060 sni)
6061 lt_cv_file_magic_cmd='/bin/file'
6062 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6063 lt_cv_file_magic_test_file=/lib/libc.so
6064 ;;
6065 siemens)
6066 lt_cv_deplibs_check_method=pass_all
6067 ;;
6068 pc)
6069 lt_cv_deplibs_check_method=pass_all
6070 ;;
6071 esac
6072 ;;
6073
6074 tpf*)
6075 lt_cv_deplibs_check_method=pass_all
6076 ;;
6077 vxworks*)
6078 # Assume VxWorks cross toolchains are built on Linux, possibly
6079 # as canadian for Windows hosts.
6080 lt_cv_deplibs_check_method=pass_all
6081 ;;
6082 esac
6083
6084 fi
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6086 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6087 file_magic_cmd=$lt_cv_file_magic_cmd
6088 deplibs_check_method=$lt_cv_deplibs_check_method
6089 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102 plugin_option=
6103 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6104 for plugin in $plugin_names; do
6105 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6106 if test x$plugin_so = x$plugin; then
6107 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6108 fi
6109 if test x$plugin_so != x$plugin; then
6110 plugin_option="--plugin $plugin_so"
6111 break
6112 fi
6113 done
6114
6115 if test -n "$ac_tool_prefix"; then
6116 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6117 set dummy ${ac_tool_prefix}ar; ac_word=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if ${ac_cv_prog_AR+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 if test -n "$AR"; then
6124 ac_cv_prog_AR="$AR" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133 ac_cv_prog_AR="${ac_tool_prefix}ar"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137 done
6138 done
6139 IFS=$as_save_IFS
6140
6141 fi
6142 fi
6143 AR=$ac_cv_prog_AR
6144 if test -n "$AR"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6146 $as_echo "$AR" >&6; }
6147 else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 $as_echo "no" >&6; }
6150 fi
6151
6152
6153 fi
6154 if test -z "$ac_cv_prog_AR"; then
6155 ac_ct_AR=$AR
6156 # Extract the first word of "ar", so it can be a program name with args.
6157 set dummy ar; ac_word=$2
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159 $as_echo_n "checking for $ac_word... " >&6; }
6160 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 if test -n "$ac_ct_AR"; then
6164 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6165 else
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH
6168 do
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6173 ac_cv_prog_ac_ct_AR="ar"
6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 break 2
6176 fi
6177 done
6178 done
6179 IFS=$as_save_IFS
6180
6181 fi
6182 fi
6183 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6184 if test -n "$ac_ct_AR"; then
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6186 $as_echo "$ac_ct_AR" >&6; }
6187 else
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189 $as_echo "no" >&6; }
6190 fi
6191
6192 if test "x$ac_ct_AR" = x; then
6193 AR="false"
6194 else
6195 case $cross_compiling:$ac_tool_warned in
6196 yes:)
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199 ac_tool_warned=yes ;;
6200 esac
6201 AR=$ac_ct_AR
6202 fi
6203 else
6204 AR="$ac_cv_prog_AR"
6205 fi
6206
6207 test -z "$AR" && AR=ar
6208 if test -n "$plugin_option"; then
6209 if $AR --help 2>&1 | grep -q "\--plugin"; then
6210 touch conftest.c
6211 $AR $plugin_option rc conftest.a conftest.c
6212 if test "$?" != 0; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6214 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6215 else
6216 AR="$AR $plugin_option"
6217 fi
6218 rm -f conftest.*
6219 fi
6220 fi
6221 test -z "$AR_FLAGS" && AR_FLAGS=cru
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233 if test -n "$ac_tool_prefix"; then
6234 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6235 set dummy ${ac_tool_prefix}strip; ac_word=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if ${ac_cv_prog_STRIP+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 if test -n "$STRIP"; then
6242 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 break 2
6254 fi
6255 done
6256 done
6257 IFS=$as_save_IFS
6258
6259 fi
6260 fi
6261 STRIP=$ac_cv_prog_STRIP
6262 if test -n "$STRIP"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6264 $as_echo "$STRIP" >&6; }
6265 else
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6268 fi
6269
6270
6271 fi
6272 if test -z "$ac_cv_prog_STRIP"; then
6273 ac_ct_STRIP=$STRIP
6274 # Extract the first word of "strip", so it can be a program name with args.
6275 set dummy strip; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 if test -n "$ac_ct_STRIP"; then
6282 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291 ac_cv_prog_ac_ct_STRIP="strip"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6294 fi
6295 done
6296 done
6297 IFS=$as_save_IFS
6298
6299 fi
6300 fi
6301 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6302 if test -n "$ac_ct_STRIP"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6304 $as_echo "$ac_ct_STRIP" >&6; }
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309
6310 if test "x$ac_ct_STRIP" = x; then
6311 STRIP=":"
6312 else
6313 case $cross_compiling:$ac_tool_warned in
6314 yes:)
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6317 ac_tool_warned=yes ;;
6318 esac
6319 STRIP=$ac_ct_STRIP
6320 fi
6321 else
6322 STRIP="$ac_cv_prog_STRIP"
6323 fi
6324
6325 test -z "$STRIP" && STRIP=:
6326
6327
6328
6329
6330
6331
6332 if test -n "$ac_tool_prefix"; then
6333 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6334 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if ${ac_cv_prog_RANLIB+:} false; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 if test -n "$RANLIB"; then
6341 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354 done
6355 done
6356 IFS=$as_save_IFS
6357
6358 fi
6359 fi
6360 RANLIB=$ac_cv_prog_RANLIB
6361 if test -n "$RANLIB"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6363 $as_echo "$RANLIB" >&6; }
6364 else
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6367 fi
6368
6369
6370 fi
6371 if test -z "$ac_cv_prog_RANLIB"; then
6372 ac_ct_RANLIB=$RANLIB
6373 # Extract the first word of "ranlib", so it can be a program name with args.
6374 set dummy ranlib; ac_word=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 if test -n "$ac_ct_RANLIB"; then
6381 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6382 else
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390 ac_cv_prog_ac_ct_RANLIB="ranlib"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394 done
6395 done
6396 IFS=$as_save_IFS
6397
6398 fi
6399 fi
6400 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6401 if test -n "$ac_ct_RANLIB"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6403 $as_echo "$ac_ct_RANLIB" >&6; }
6404 else
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6407 fi
6408
6409 if test "x$ac_ct_RANLIB" = x; then
6410 RANLIB=":"
6411 else
6412 case $cross_compiling:$ac_tool_warned in
6413 yes:)
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6416 ac_tool_warned=yes ;;
6417 esac
6418 RANLIB=$ac_ct_RANLIB
6419 fi
6420 else
6421 RANLIB="$ac_cv_prog_RANLIB"
6422 fi
6423
6424 test -z "$RANLIB" && RANLIB=:
6425 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6426 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6427 RANLIB="$RANLIB $plugin_option"
6428 fi
6429 fi
6430
6431
6432
6433
6434
6435
6436 # Determine commands to create old-style static archives.
6437 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6438 old_postinstall_cmds='chmod 644 $oldlib'
6439 old_postuninstall_cmds=
6440
6441 if test -n "$RANLIB"; then
6442 case $host_os in
6443 openbsd*)
6444 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6445 ;;
6446 *)
6447 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6448 ;;
6449 esac
6450 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6451 fi
6452
6453 case $host_os in
6454 darwin*)
6455 lock_old_archive_extraction=yes ;;
6456 *)
6457 lock_old_archive_extraction=no ;;
6458 esac
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
6498 # If no C compiler was specified, use CC.
6499 LTCC=${LTCC-"$CC"}
6500
6501 # If no C compiler flags were specified, use CFLAGS.
6502 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6503
6504 # Allow CC to be a program name with arguments.
6505 compiler=$CC
6506
6507
6508 # Check for command to grab the raw symbol name followed by C symbol from nm.
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6510 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6511 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514
6515 # These are sane defaults that work on at least a few old systems.
6516 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6517
6518 # Character class describing NM global symbol codes.
6519 symcode='[BCDEGRST]'
6520
6521 # Regexp to match symbols that can be accessed directly from C.
6522 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6523
6524 # Define system-specific variables.
6525 case $host_os in
6526 aix*)
6527 symcode='[BCDT]'
6528 ;;
6529 cygwin* | mingw* | pw32* | cegcc*)
6530 symcode='[ABCDGISTW]'
6531 ;;
6532 hpux*)
6533 if test "$host_cpu" = ia64; then
6534 symcode='[ABCDEGRST]'
6535 fi
6536 ;;
6537 irix* | nonstopux*)
6538 symcode='[BCDEGRST]'
6539 ;;
6540 osf*)
6541 symcode='[BCDEGQRST]'
6542 ;;
6543 solaris*)
6544 symcode='[BCDRT]'
6545 ;;
6546 sco3.2v5*)
6547 symcode='[DT]'
6548 ;;
6549 sysv4.2uw2*)
6550 symcode='[DT]'
6551 ;;
6552 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6553 symcode='[ABDT]'
6554 ;;
6555 sysv4)
6556 symcode='[DFNSTU]'
6557 ;;
6558 esac
6559
6560 # If we're using GNU nm, then use its standard symbol codes.
6561 case `$NM -V 2>&1` in
6562 *GNU* | *'with BFD'*)
6563 symcode='[ABCDGIRSTW]' ;;
6564 esac
6565
6566 # Transform an extracted symbol line into a proper C declaration.
6567 # Some systems (esp. on ia64) link data and code symbols differently,
6568 # so use this general approach.
6569 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6570
6571 # Transform an extracted symbol line into symbol name and symbol address
6572 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6573 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'"
6574
6575 # Handle CRLF in mingw tool chain
6576 opt_cr=
6577 case $build_os in
6578 mingw*)
6579 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6580 ;;
6581 esac
6582
6583 # Try without a prefix underscore, then with it.
6584 for ac_symprfx in "" "_"; do
6585
6586 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6587 symxfrm="\\1 $ac_symprfx\\2 \\2"
6588
6589 # Write the raw and C identifiers.
6590 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6591 # Fake it for dumpbin and say T for any non-static function
6592 # and D for any global variable.
6593 # Also find C++ and __fastcall symbols from MSVC++,
6594 # which start with @ or ?.
6595 lt_cv_sys_global_symbol_pipe="$AWK '"\
6596 " {last_section=section; section=\$ 3};"\
6597 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6598 " \$ 0!~/External *\|/{next};"\
6599 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6600 " {if(hide[section]) next};"\
6601 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6602 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6603 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6604 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6605 " ' prfx=^$ac_symprfx"
6606 else
6607 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6608 fi
6609
6610 # Check to see that the pipe works correctly.
6611 pipe_works=no
6612
6613 rm -f conftest*
6614 cat > conftest.$ac_ext <<_LT_EOF
6615 #ifdef __cplusplus
6616 extern "C" {
6617 #endif
6618 char nm_test_var;
6619 void nm_test_func(void);
6620 void nm_test_func(void){}
6621 #ifdef __cplusplus
6622 }
6623 #endif
6624 int main(){nm_test_var='a';nm_test_func();return(0);}
6625 _LT_EOF
6626
6627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6628 (eval $ac_compile) 2>&5
6629 ac_status=$?
6630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6631 test $ac_status = 0; }; then
6632 # Now try to grab the symbols.
6633 nlist=conftest.nm
6634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6635 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6636 ac_status=$?
6637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6638 test $ac_status = 0; } && test -s "$nlist"; then
6639 # Try sorting and uniquifying the output.
6640 if sort "$nlist" | uniq > "$nlist"T; then
6641 mv -f "$nlist"T "$nlist"
6642 else
6643 rm -f "$nlist"T
6644 fi
6645
6646 # Make sure that we snagged all the symbols we need.
6647 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6648 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6649 cat <<_LT_EOF > conftest.$ac_ext
6650 #ifdef __cplusplus
6651 extern "C" {
6652 #endif
6653
6654 _LT_EOF
6655 # Now generate the symbol file.
6656 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6657
6658 cat <<_LT_EOF >> conftest.$ac_ext
6659
6660 /* The mapping between symbol names and symbols. */
6661 const struct {
6662 const char *name;
6663 void *address;
6664 }
6665 lt__PROGRAM__LTX_preloaded_symbols[] =
6666 {
6667 { "@PROGRAM@", (void *) 0 },
6668 _LT_EOF
6669 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6670 cat <<\_LT_EOF >> conftest.$ac_ext
6671 {0, (void *) 0}
6672 };
6673
6674 /* This works around a problem in FreeBSD linker */
6675 #ifdef FREEBSD_WORKAROUND
6676 static const void *lt_preloaded_setup() {
6677 return lt__PROGRAM__LTX_preloaded_symbols;
6678 }
6679 #endif
6680
6681 #ifdef __cplusplus
6682 }
6683 #endif
6684 _LT_EOF
6685 # Now try linking the two files.
6686 mv conftest.$ac_objext conftstm.$ac_objext
6687 lt_save_LIBS="$LIBS"
6688 lt_save_CFLAGS="$CFLAGS"
6689 LIBS="conftstm.$ac_objext"
6690 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6692 (eval $ac_link) 2>&5
6693 ac_status=$?
6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6696 pipe_works=yes
6697 fi
6698 LIBS="$lt_save_LIBS"
6699 CFLAGS="$lt_save_CFLAGS"
6700 else
6701 echo "cannot find nm_test_func in $nlist" >&5
6702 fi
6703 else
6704 echo "cannot find nm_test_var in $nlist" >&5
6705 fi
6706 else
6707 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6708 fi
6709 else
6710 echo "$progname: failed program was:" >&5
6711 cat conftest.$ac_ext >&5
6712 fi
6713 rm -rf conftest* conftst*
6714
6715 # Do not use the global_symbol_pipe unless it works.
6716 if test "$pipe_works" = yes; then
6717 break
6718 else
6719 lt_cv_sys_global_symbol_pipe=
6720 fi
6721 done
6722
6723 fi
6724
6725 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6726 lt_cv_sys_global_symbol_to_cdecl=
6727 fi
6728 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6730 $as_echo "failed" >&6; }
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6733 $as_echo "ok" >&6; }
6734 fi
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757 # Check whether --enable-libtool-lock was given.
6758 if test "${enable_libtool_lock+set}" = set; then :
6759 enableval=$enable_libtool_lock;
6760 fi
6761
6762 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6763
6764 # Some flags need to be propagated to the compiler or linker for good
6765 # libtool support.
6766 case $host in
6767 ia64-*-hpux*)
6768 # Find out which ABI we are using.
6769 echo 'int i;' > conftest.$ac_ext
6770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6771 (eval $ac_compile) 2>&5
6772 ac_status=$?
6773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774 test $ac_status = 0; }; then
6775 case `/usr/bin/file conftest.$ac_objext` in
6776 *ELF-32*)
6777 HPUX_IA64_MODE="32"
6778 ;;
6779 *ELF-64*)
6780 HPUX_IA64_MODE="64"
6781 ;;
6782 esac
6783 fi
6784 rm -rf conftest*
6785 ;;
6786 *-*-irix6*)
6787 # Find out which ABI we are using.
6788 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6790 (eval $ac_compile) 2>&5
6791 ac_status=$?
6792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793 test $ac_status = 0; }; then
6794 if test "$lt_cv_prog_gnu_ld" = yes; then
6795 case `/usr/bin/file conftest.$ac_objext` in
6796 *32-bit*)
6797 LD="${LD-ld} -melf32bsmip"
6798 ;;
6799 *N32*)
6800 LD="${LD-ld} -melf32bmipn32"
6801 ;;
6802 *64-bit*)
6803 LD="${LD-ld} -melf64bmip"
6804 ;;
6805 esac
6806 else
6807 case `/usr/bin/file conftest.$ac_objext` in
6808 *32-bit*)
6809 LD="${LD-ld} -32"
6810 ;;
6811 *N32*)
6812 LD="${LD-ld} -n32"
6813 ;;
6814 *64-bit*)
6815 LD="${LD-ld} -64"
6816 ;;
6817 esac
6818 fi
6819 fi
6820 rm -rf conftest*
6821 ;;
6822
6823 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6824 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6825 # Find out which ABI we are using.
6826 echo 'int i;' > conftest.$ac_ext
6827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6828 (eval $ac_compile) 2>&5
6829 ac_status=$?
6830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6831 test $ac_status = 0; }; then
6832 case `/usr/bin/file conftest.o` in
6833 *32-bit*)
6834 case $host in
6835 x86_64-*kfreebsd*-gnu)
6836 LD="${LD-ld} -m elf_i386_fbsd"
6837 ;;
6838 x86_64-*linux*)
6839 case `/usr/bin/file conftest.o` in
6840 *x86-64*)
6841 LD="${LD-ld} -m elf32_x86_64"
6842 ;;
6843 *)
6844 LD="${LD-ld} -m elf_i386"
6845 ;;
6846 esac
6847 ;;
6848 powerpc64le-*linux*)
6849 LD="${LD-ld} -m elf32lppclinux"
6850 ;;
6851 powerpc64-*linux*)
6852 LD="${LD-ld} -m elf32ppclinux"
6853 ;;
6854 s390x-*linux*)
6855 LD="${LD-ld} -m elf_s390"
6856 ;;
6857 sparc64-*linux*)
6858 LD="${LD-ld} -m elf32_sparc"
6859 ;;
6860 esac
6861 ;;
6862 *64-bit*)
6863 case $host in
6864 x86_64-*kfreebsd*-gnu)
6865 LD="${LD-ld} -m elf_x86_64_fbsd"
6866 ;;
6867 x86_64-*linux*)
6868 LD="${LD-ld} -m elf_x86_64"
6869 ;;
6870 powerpcle-*linux*)
6871 LD="${LD-ld} -m elf64lppc"
6872 ;;
6873 powerpc-*linux*)
6874 LD="${LD-ld} -m elf64ppc"
6875 ;;
6876 s390*-*linux*|s390*-*tpf*)
6877 LD="${LD-ld} -m elf64_s390"
6878 ;;
6879 sparc*-*linux*)
6880 LD="${LD-ld} -m elf64_sparc"
6881 ;;
6882 esac
6883 ;;
6884 esac
6885 fi
6886 rm -rf conftest*
6887 ;;
6888
6889 *-*-sco3.2v5*)
6890 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6891 SAVE_CFLAGS="$CFLAGS"
6892 CFLAGS="$CFLAGS -belf"
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6894 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6895 if ${lt_cv_cc_needs_belf+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 ac_ext=c
6899 ac_cpp='$CPP $CPPFLAGS'
6900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6903
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906
6907 int
6908 main ()
6909 {
6910
6911 ;
6912 return 0;
6913 }
6914 _ACEOF
6915 if ac_fn_c_try_link "$LINENO"; then :
6916 lt_cv_cc_needs_belf=yes
6917 else
6918 lt_cv_cc_needs_belf=no
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext \
6921 conftest$ac_exeext conftest.$ac_ext
6922 ac_ext=c
6923 ac_cpp='$CPP $CPPFLAGS'
6924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927
6928 fi
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6930 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6931 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6932 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6933 CFLAGS="$SAVE_CFLAGS"
6934 fi
6935 ;;
6936 sparc*-*solaris*)
6937 # Find out which ABI we are using.
6938 echo 'int i;' > conftest.$ac_ext
6939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6940 (eval $ac_compile) 2>&5
6941 ac_status=$?
6942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6943 test $ac_status = 0; }; then
6944 case `/usr/bin/file conftest.o` in
6945 *64-bit*)
6946 case $lt_cv_prog_gnu_ld in
6947 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6948 *)
6949 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6950 LD="${LD-ld} -64"
6951 fi
6952 ;;
6953 esac
6954 ;;
6955 esac
6956 fi
6957 rm -rf conftest*
6958 ;;
6959 esac
6960
6961 need_locks="$enable_libtool_lock"
6962
6963
6964 case $host_os in
6965 rhapsody* | darwin*)
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 if test -n "$DSYMUTIL"; then
6975 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6987 fi
6988 done
6989 done
6990 IFS=$as_save_IFS
6991
6992 fi
6993 fi
6994 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6995 if test -n "$DSYMUTIL"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6997 $as_echo "$DSYMUTIL" >&6; }
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002
7003
7004 fi
7005 if test -z "$ac_cv_prog_DSYMUTIL"; then
7006 ac_ct_DSYMUTIL=$DSYMUTIL
7007 # Extract the first word of "dsymutil", so it can be a program name with args.
7008 set dummy dsymutil; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 if test -n "$ac_ct_DSYMUTIL"; then
7015 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7035 if test -n "$ac_ct_DSYMUTIL"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7037 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7038 else
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043 if test "x$ac_ct_DSYMUTIL" = x; then
7044 DSYMUTIL=":"
7045 else
7046 case $cross_compiling:$ac_tool_warned in
7047 yes:)
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7050 ac_tool_warned=yes ;;
7051 esac
7052 DSYMUTIL=$ac_ct_DSYMUTIL
7053 fi
7054 else
7055 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7056 fi
7057
7058 if test -n "$ac_tool_prefix"; then
7059 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7060 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if ${ac_cv_prog_NMEDIT+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 if test -n "$NMEDIT"; then
7067 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084 fi
7085 fi
7086 NMEDIT=$ac_cv_prog_NMEDIT
7087 if test -n "$NMEDIT"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7089 $as_echo "$NMEDIT" >&6; }
7090 else
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7093 fi
7094
7095
7096 fi
7097 if test -z "$ac_cv_prog_NMEDIT"; then
7098 ac_ct_NMEDIT=$NMEDIT
7099 # Extract the first word of "nmedit", so it can be a program name with args.
7100 set dummy nmedit; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7104 $as_echo_n "(cached) " >&6
7105 else
7106 if test -n "$ac_ct_NMEDIT"; then
7107 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7119 fi
7120 done
7121 done
7122 IFS=$as_save_IFS
7123
7124 fi
7125 fi
7126 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7127 if test -n "$ac_ct_NMEDIT"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7129 $as_echo "$ac_ct_NMEDIT" >&6; }
7130 else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134
7135 if test "x$ac_ct_NMEDIT" = x; then
7136 NMEDIT=":"
7137 else
7138 case $cross_compiling:$ac_tool_warned in
7139 yes:)
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7142 ac_tool_warned=yes ;;
7143 esac
7144 NMEDIT=$ac_ct_NMEDIT
7145 fi
7146 else
7147 NMEDIT="$ac_cv_prog_NMEDIT"
7148 fi
7149
7150 if test -n "$ac_tool_prefix"; then
7151 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7152 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_LIPO+:} false; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 if test -n "$LIPO"; then
7159 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7171 fi
7172 done
7173 done
7174 IFS=$as_save_IFS
7175
7176 fi
7177 fi
7178 LIPO=$ac_cv_prog_LIPO
7179 if test -n "$LIPO"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7181 $as_echo "$LIPO" >&6; }
7182 else
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7185 fi
7186
7187
7188 fi
7189 if test -z "$ac_cv_prog_LIPO"; then
7190 ac_ct_LIPO=$LIPO
7191 # Extract the first word of "lipo", so it can be a program name with args.
7192 set dummy lipo; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 if test -n "$ac_ct_LIPO"; then
7199 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208 ac_cv_prog_ac_ct_LIPO="lipo"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216 fi
7217 fi
7218 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7219 if test -n "$ac_ct_LIPO"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7221 $as_echo "$ac_ct_LIPO" >&6; }
7222 else
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227 if test "x$ac_ct_LIPO" = x; then
7228 LIPO=":"
7229 else
7230 case $cross_compiling:$ac_tool_warned in
7231 yes:)
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7235 esac
7236 LIPO=$ac_ct_LIPO
7237 fi
7238 else
7239 LIPO="$ac_cv_prog_LIPO"
7240 fi
7241
7242 if test -n "$ac_tool_prefix"; then
7243 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7244 set dummy ${ac_tool_prefix}otool; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if ${ac_cv_prog_OTOOL+:} false; then :
7248 $as_echo_n "(cached) " >&6
7249 else
7250 if test -n "$OTOOL"; then
7251 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7263 fi
7264 done
7265 done
7266 IFS=$as_save_IFS
7267
7268 fi
7269 fi
7270 OTOOL=$ac_cv_prog_OTOOL
7271 if test -n "$OTOOL"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7273 $as_echo "$OTOOL" >&6; }
7274 else
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7277 fi
7278
7279
7280 fi
7281 if test -z "$ac_cv_prog_OTOOL"; then
7282 ac_ct_OTOOL=$OTOOL
7283 # Extract the first word of "otool", so it can be a program name with args.
7284 set dummy otool; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 if test -n "$ac_ct_OTOOL"; then
7291 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7292 else
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300 ac_cv_prog_ac_ct_OTOOL="otool"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304 done
7305 done
7306 IFS=$as_save_IFS
7307
7308 fi
7309 fi
7310 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7311 if test -n "$ac_ct_OTOOL"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7313 $as_echo "$ac_ct_OTOOL" >&6; }
7314 else
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7317 fi
7318
7319 if test "x$ac_ct_OTOOL" = x; then
7320 OTOOL=":"
7321 else
7322 case $cross_compiling:$ac_tool_warned in
7323 yes:)
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7326 ac_tool_warned=yes ;;
7327 esac
7328 OTOOL=$ac_ct_OTOOL
7329 fi
7330 else
7331 OTOOL="$ac_cv_prog_OTOOL"
7332 fi
7333
7334 if test -n "$ac_tool_prefix"; then
7335 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7336 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338 $as_echo_n "checking for $ac_word... " >&6; }
7339 if ${ac_cv_prog_OTOOL64+:} false; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342 if test -n "$OTOOL64"; then
7343 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7352 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356 done
7357 done
7358 IFS=$as_save_IFS
7359
7360 fi
7361 fi
7362 OTOOL64=$ac_cv_prog_OTOOL64
7363 if test -n "$OTOOL64"; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7365 $as_echo "$OTOOL64" >&6; }
7366 else
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 $as_echo "no" >&6; }
7369 fi
7370
7371
7372 fi
7373 if test -z "$ac_cv_prog_OTOOL64"; then
7374 ac_ct_OTOOL64=$OTOOL64
7375 # Extract the first word of "otool64", so it can be a program name with args.
7376 set dummy otool64; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381 else
7382 if test -n "$ac_ct_OTOOL64"; then
7383 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7384 else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392 ac_cv_prog_ac_ct_OTOOL64="otool64"
7393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7395 fi
7396 done
7397 done
7398 IFS=$as_save_IFS
7399
7400 fi
7401 fi
7402 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7403 if test -n "$ac_ct_OTOOL64"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7405 $as_echo "$ac_ct_OTOOL64" >&6; }
7406 else
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7409 fi
7410
7411 if test "x$ac_ct_OTOOL64" = x; then
7412 OTOOL64=":"
7413 else
7414 case $cross_compiling:$ac_tool_warned in
7415 yes:)
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7418 ac_tool_warned=yes ;;
7419 esac
7420 OTOOL64=$ac_ct_OTOOL64
7421 fi
7422 else
7423 OTOOL64="$ac_cv_prog_OTOOL64"
7424 fi
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
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7453 $as_echo_n "checking for -single_module linker flag... " >&6; }
7454 if ${lt_cv_apple_cc_single_mod+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 lt_cv_apple_cc_single_mod=no
7458 if test -z "${LT_MULTI_MODULE}"; then
7459 # By default we will add the -single_module flag. You can override
7460 # by either setting the environment variable LT_MULTI_MODULE
7461 # non-empty at configure time, or by adding -multi_module to the
7462 # link flags.
7463 rm -rf libconftest.dylib*
7464 echo "int foo(void){return 1;}" > conftest.c
7465 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7466 -dynamiclib -Wl,-single_module conftest.c" >&5
7467 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7468 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7469 _lt_result=$?
7470 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7471 lt_cv_apple_cc_single_mod=yes
7472 else
7473 cat conftest.err >&5
7474 fi
7475 rm -rf libconftest.dylib*
7476 rm -f conftest.*
7477 fi
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7480 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7482 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7483 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 lt_cv_ld_exported_symbols_list=no
7487 save_LDFLAGS=$LDFLAGS
7488 echo "_main" > conftest.sym
7489 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7492
7493 int
7494 main ()
7495 {
7496
7497 ;
7498 return 0;
7499 }
7500 _ACEOF
7501 if ac_fn_c_try_link "$LINENO"; then :
7502 lt_cv_ld_exported_symbols_list=yes
7503 else
7504 lt_cv_ld_exported_symbols_list=no
7505 fi
7506 rm -f core conftest.err conftest.$ac_objext \
7507 conftest$ac_exeext conftest.$ac_ext
7508 LDFLAGS="$save_LDFLAGS"
7509
7510 fi
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7512 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7514 $as_echo_n "checking for -force_load linker flag... " >&6; }
7515 if ${lt_cv_ld_force_load+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 lt_cv_ld_force_load=no
7519 cat > conftest.c << _LT_EOF
7520 int forced_loaded() { return 2;}
7521 _LT_EOF
7522 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7523 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7524 echo "$AR cru libconftest.a conftest.o" >&5
7525 $AR cru libconftest.a conftest.o 2>&5
7526 cat > conftest.c << _LT_EOF
7527 int main() { return 0;}
7528 _LT_EOF
7529 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7530 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7531 _lt_result=$?
7532 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7533 lt_cv_ld_force_load=yes
7534 else
7535 cat conftest.err >&5
7536 fi
7537 rm -f conftest.err libconftest.a conftest conftest.c
7538 rm -rf conftest.dSYM
7539
7540 fi
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7542 $as_echo "$lt_cv_ld_force_load" >&6; }
7543 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7544 # build without first building modern cctools / linker.
7545 case $host_cpu-$host_os in
7546 *-rhapsody* | *-darwin1.[012])
7547 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7548 *-darwin1.*)
7549 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7550 *-darwin*)
7551 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7552 # deployment target is forced to an earlier version.
7553 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7554 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7555 ;;
7556 10.[012][,.]*)
7557 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7558 ;;
7559 *)
7560 ;;
7561 esac
7562 ;;
7563 esac
7564 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7565 _lt_dar_single_mod='$single_module'
7566 fi
7567 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7568 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7569 else
7570 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7571 fi
7572 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7573 _lt_dsymutil='~$DSYMUTIL $lib || :'
7574 else
7575 _lt_dsymutil=
7576 fi
7577 ;;
7578 esac
7579
7580 for ac_header in dlfcn.h
7581 do :
7582 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7583 "
7584 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7585 cat >>confdefs.h <<_ACEOF
7586 #define HAVE_DLFCN_H 1
7587 _ACEOF
7588
7589 fi
7590
7591 done
7592
7593
7594
7595
7596
7597 # Set options
7598
7599
7600
7601 enable_dlopen=no
7602
7603
7604 enable_win32_dll=no
7605
7606
7607 # Check whether --enable-shared was given.
7608 if test "${enable_shared+set}" = set; then :
7609 enableval=$enable_shared; p=${PACKAGE-default}
7610 case $enableval in
7611 yes) enable_shared=yes ;;
7612 no) enable_shared=no ;;
7613 *)
7614 enable_shared=no
7615 # Look at the argument we got. We use all the common list separators.
7616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7617 for pkg in $enableval; do
7618 IFS="$lt_save_ifs"
7619 if test "X$pkg" = "X$p"; then
7620 enable_shared=yes
7621 fi
7622 done
7623 IFS="$lt_save_ifs"
7624 ;;
7625 esac
7626 else
7627 enable_shared=yes
7628 fi
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638 # Check whether --enable-static was given.
7639 if test "${enable_static+set}" = set; then :
7640 enableval=$enable_static; p=${PACKAGE-default}
7641 case $enableval in
7642 yes) enable_static=yes ;;
7643 no) enable_static=no ;;
7644 *)
7645 enable_static=no
7646 # Look at the argument we got. We use all the common list separators.
7647 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7648 for pkg in $enableval; do
7649 IFS="$lt_save_ifs"
7650 if test "X$pkg" = "X$p"; then
7651 enable_static=yes
7652 fi
7653 done
7654 IFS="$lt_save_ifs"
7655 ;;
7656 esac
7657 else
7658 enable_static=yes
7659 fi
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670 # Check whether --with-pic was given.
7671 if test "${with_pic+set}" = set; then :
7672 withval=$with_pic; pic_mode="$withval"
7673 else
7674 pic_mode=default
7675 fi
7676
7677
7678 test -z "$pic_mode" && pic_mode=default
7679
7680
7681
7682
7683
7684
7685
7686 # Check whether --enable-fast-install was given.
7687 if test "${enable_fast_install+set}" = set; then :
7688 enableval=$enable_fast_install; p=${PACKAGE-default}
7689 case $enableval in
7690 yes) enable_fast_install=yes ;;
7691 no) enable_fast_install=no ;;
7692 *)
7693 enable_fast_install=no
7694 # Look at the argument we got. We use all the common list separators.
7695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7696 for pkg in $enableval; do
7697 IFS="$lt_save_ifs"
7698 if test "X$pkg" = "X$p"; then
7699 enable_fast_install=yes
7700 fi
7701 done
7702 IFS="$lt_save_ifs"
7703 ;;
7704 esac
7705 else
7706 enable_fast_install=yes
7707 fi
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719 # This can be used to rebuild libtool when needed
7720 LIBTOOL_DEPS="$ltmain"
7721
7722 # Always use our own libtool.
7723 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
7750 test -z "$LN_S" && LN_S="ln -s"
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765 if test -n "${ZSH_VERSION+set}" ; then
7766 setopt NO_GLOB_SUBST
7767 fi
7768
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7770 $as_echo_n "checking for objdir... " >&6; }
7771 if ${lt_cv_objdir+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 rm -f .libs 2>/dev/null
7775 mkdir .libs 2>/dev/null
7776 if test -d .libs; then
7777 lt_cv_objdir=.libs
7778 else
7779 # MS-DOS does not allow filenames that begin with a dot.
7780 lt_cv_objdir=_libs
7781 fi
7782 rmdir .libs 2>/dev/null
7783 fi
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7785 $as_echo "$lt_cv_objdir" >&6; }
7786 objdir=$lt_cv_objdir
7787
7788
7789
7790
7791
7792 cat >>confdefs.h <<_ACEOF
7793 #define LT_OBJDIR "$lt_cv_objdir/"
7794 _ACEOF
7795
7796
7797
7798
7799 case $host_os in
7800 aix3*)
7801 # AIX sometimes has problems with the GCC collect2 program. For some
7802 # reason, if we set the COLLECT_NAMES environment variable, the problems
7803 # vanish in a puff of smoke.
7804 if test "X${COLLECT_NAMES+set}" != Xset; then
7805 COLLECT_NAMES=
7806 export COLLECT_NAMES
7807 fi
7808 ;;
7809 esac
7810
7811 # Global variables:
7812 ofile=libtool
7813 can_build_shared=yes
7814
7815 # All known linkers require a `.a' archive for static linking (except MSVC,
7816 # which needs '.lib').
7817 libext=a
7818
7819 with_gnu_ld="$lt_cv_prog_gnu_ld"
7820
7821 old_CC="$CC"
7822 old_CFLAGS="$CFLAGS"
7823
7824 # Set sane defaults for various variables
7825 test -z "$CC" && CC=cc
7826 test -z "$LTCC" && LTCC=$CC
7827 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7828 test -z "$LD" && LD=ld
7829 test -z "$ac_objext" && ac_objext=o
7830
7831 for cc_temp in $compiler""; do
7832 case $cc_temp in
7833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7835 \-*) ;;
7836 *) break;;
7837 esac
7838 done
7839 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7840
7841
7842 # Only perform the check for file, if the check method requires it
7843 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7844 case $deplibs_check_method in
7845 file_magic*)
7846 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7848 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7849 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 case $MAGIC_CMD in
7853 [\\/*] | ?:[\\/]*)
7854 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7855 ;;
7856 *)
7857 lt_save_MAGIC_CMD="$MAGIC_CMD"
7858 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7859 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7860 for ac_dir in $ac_dummy; do
7861 IFS="$lt_save_ifs"
7862 test -z "$ac_dir" && ac_dir=.
7863 if test -f $ac_dir/${ac_tool_prefix}file; then
7864 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7865 if test -n "$file_magic_test_file"; then
7866 case $deplibs_check_method in
7867 "file_magic "*)
7868 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7870 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7871 $EGREP "$file_magic_regex" > /dev/null; then
7872 :
7873 else
7874 cat <<_LT_EOF 1>&2
7875
7876 *** Warning: the command libtool uses to detect shared libraries,
7877 *** $file_magic_cmd, produces output that libtool cannot recognize.
7878 *** The result is that libtool may fail to recognize shared libraries
7879 *** as such. This will affect the creation of libtool libraries that
7880 *** depend on shared libraries, but programs linked with such libtool
7881 *** libraries will work regardless of this problem. Nevertheless, you
7882 *** may want to report the problem to your system manager and/or to
7883 *** [email protected]
7884
7885 _LT_EOF
7886 fi ;;
7887 esac
7888 fi
7889 break
7890 fi
7891 done
7892 IFS="$lt_save_ifs"
7893 MAGIC_CMD="$lt_save_MAGIC_CMD"
7894 ;;
7895 esac
7896 fi
7897
7898 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7899 if test -n "$MAGIC_CMD"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7901 $as_echo "$MAGIC_CMD" >&6; }
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7905 fi
7906
7907
7908
7909
7910
7911 if test -z "$lt_cv_path_MAGIC_CMD"; then
7912 if test -n "$ac_tool_prefix"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7914 $as_echo_n "checking for file... " >&6; }
7915 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 case $MAGIC_CMD in
7919 [\\/*] | ?:[\\/]*)
7920 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7921 ;;
7922 *)
7923 lt_save_MAGIC_CMD="$MAGIC_CMD"
7924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7925 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7926 for ac_dir in $ac_dummy; do
7927 IFS="$lt_save_ifs"
7928 test -z "$ac_dir" && ac_dir=.
7929 if test -f $ac_dir/file; then
7930 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7931 if test -n "$file_magic_test_file"; then
7932 case $deplibs_check_method in
7933 "file_magic "*)
7934 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7935 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7936 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7937 $EGREP "$file_magic_regex" > /dev/null; then
7938 :
7939 else
7940 cat <<_LT_EOF 1>&2
7941
7942 *** Warning: the command libtool uses to detect shared libraries,
7943 *** $file_magic_cmd, produces output that libtool cannot recognize.
7944 *** The result is that libtool may fail to recognize shared libraries
7945 *** as such. This will affect the creation of libtool libraries that
7946 *** depend on shared libraries, but programs linked with such libtool
7947 *** libraries will work regardless of this problem. Nevertheless, you
7948 *** may want to report the problem to your system manager and/or to
7949 *** [email protected]
7950
7951 _LT_EOF
7952 fi ;;
7953 esac
7954 fi
7955 break
7956 fi
7957 done
7958 IFS="$lt_save_ifs"
7959 MAGIC_CMD="$lt_save_MAGIC_CMD"
7960 ;;
7961 esac
7962 fi
7963
7964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7965 if test -n "$MAGIC_CMD"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7967 $as_echo "$MAGIC_CMD" >&6; }
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973
7974 else
7975 MAGIC_CMD=:
7976 fi
7977 fi
7978
7979 fi
7980 ;;
7981 esac
7982
7983 # Use C for the default configuration in the libtool script
7984
7985 lt_save_CC="$CC"
7986 ac_ext=c
7987 ac_cpp='$CPP $CPPFLAGS'
7988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7991
7992
7993 # Source file extension for C test sources.
7994 ac_ext=c
7995
7996 # Object file extension for compiled C test sources.
7997 objext=o
7998 objext=$objext
7999
8000 # Code to be used in simple compile tests
8001 lt_simple_compile_test_code="int some_variable = 0;"
8002
8003 # Code to be used in simple link tests
8004 lt_simple_link_test_code='int main(){return(0);}'
8005
8006
8007
8008
8009
8010
8011
8012 # If no C compiler was specified, use CC.
8013 LTCC=${LTCC-"$CC"}
8014
8015 # If no C compiler flags were specified, use CFLAGS.
8016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8017
8018 # Allow CC to be a program name with arguments.
8019 compiler=$CC
8020
8021 # Save the default compiler, since it gets overwritten when the other
8022 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8023 compiler_DEFAULT=$CC
8024
8025 # save warnings/boilerplate of simple test code
8026 ac_outfile=conftest.$ac_objext
8027 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8028 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8029 _lt_compiler_boilerplate=`cat conftest.err`
8030 $RM conftest*
8031
8032 ac_outfile=conftest.$ac_objext
8033 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8034 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8035 _lt_linker_boilerplate=`cat conftest.err`
8036 $RM -r conftest*
8037
8038
8039 ## CAVEAT EMPTOR:
8040 ## There is no encapsulation within the following macros, do not change
8041 ## the running order or otherwise move them around unless you know exactly
8042 ## what you are doing...
8043 if test -n "$compiler"; then
8044
8045 lt_prog_compiler_no_builtin_flag=
8046
8047 if test "$GCC" = yes; then
8048 case $cc_basename in
8049 nvcc*)
8050 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8051 *)
8052 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8053 esac
8054
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8056 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8057 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 lt_cv_prog_compiler_rtti_exceptions=no
8061 ac_outfile=conftest.$ac_objext
8062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8063 lt_compiler_flag="-fno-rtti -fno-exceptions"
8064 # Insert the option either (1) after the last *FLAGS variable, or
8065 # (2) before a word containing "conftest.", or (3) at the end.
8066 # Note that $ac_compile itself does not contain backslashes and begins
8067 # with a dollar sign (not a hyphen), so the echo should work correctly.
8068 # The option is referenced via a variable to avoid confusing sed.
8069 lt_compile=`echo "$ac_compile" | $SED \
8070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8072 -e 's:$: $lt_compiler_flag:'`
8073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8074 (eval "$lt_compile" 2>conftest.err)
8075 ac_status=$?
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 if (exit $ac_status) && test -s "$ac_outfile"; then
8079 # The compiler can only warn and ignore the option if not recognized
8080 # So say no if there are warnings other than the usual output.
8081 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8083 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8084 lt_cv_prog_compiler_rtti_exceptions=yes
8085 fi
8086 fi
8087 $RM conftest*
8088
8089 fi
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8091 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8092
8093 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8094 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8095 else
8096 :
8097 fi
8098
8099 fi
8100
8101
8102
8103
8104
8105
8106 lt_prog_compiler_wl=
8107 lt_prog_compiler_pic=
8108 lt_prog_compiler_static=
8109
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8111 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8112
8113 if test "$GCC" = yes; then
8114 lt_prog_compiler_wl='-Wl,'
8115 lt_prog_compiler_static='-static'
8116
8117 case $host_os in
8118 aix*)
8119 # All AIX code is PIC.
8120 if test "$host_cpu" = ia64; then
8121 # AIX 5 now supports IA64 processor
8122 lt_prog_compiler_static='-Bstatic'
8123 fi
8124 lt_prog_compiler_pic='-fPIC'
8125 ;;
8126
8127 amigaos*)
8128 case $host_cpu in
8129 powerpc)
8130 # see comment about AmigaOS4 .so support
8131 lt_prog_compiler_pic='-fPIC'
8132 ;;
8133 m68k)
8134 # FIXME: we need at least 68020 code to build shared libraries, but
8135 # adding the `-m68020' flag to GCC prevents building anything better,
8136 # like `-m68040'.
8137 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8138 ;;
8139 esac
8140 ;;
8141
8142 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8143 # PIC is the default for these OSes.
8144 ;;
8145
8146 mingw* | cygwin* | pw32* | os2* | cegcc*)
8147 # This hack is so that the source file can tell whether it is being
8148 # built for inclusion in a dll (and should export symbols for example).
8149 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8150 # (--disable-auto-import) libraries
8151 lt_prog_compiler_pic='-DDLL_EXPORT'
8152 ;;
8153
8154 darwin* | rhapsody*)
8155 # PIC is the default on this platform
8156 # Common symbols not allowed in MH_DYLIB files
8157 lt_prog_compiler_pic='-fno-common'
8158 ;;
8159
8160 haiku*)
8161 # PIC is the default for Haiku.
8162 # The "-static" flag exists, but is broken.
8163 lt_prog_compiler_static=
8164 ;;
8165
8166 hpux*)
8167 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8168 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8169 # sets the default TLS model and affects inlining.
8170 case $host_cpu in
8171 hppa*64*)
8172 # +Z the default
8173 ;;
8174 *)
8175 lt_prog_compiler_pic='-fPIC'
8176 ;;
8177 esac
8178 ;;
8179
8180 interix[3-9]*)
8181 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8182 # Instead, we relocate shared libraries at runtime.
8183 ;;
8184
8185 msdosdjgpp*)
8186 # Just because we use GCC doesn't mean we suddenly get shared libraries
8187 # on systems that don't support them.
8188 lt_prog_compiler_can_build_shared=no
8189 enable_shared=no
8190 ;;
8191
8192 *nto* | *qnx*)
8193 # QNX uses GNU C++, but need to define -shared option too, otherwise
8194 # it will coredump.
8195 lt_prog_compiler_pic='-fPIC -shared'
8196 ;;
8197
8198 sysv4*MP*)
8199 if test -d /usr/nec; then
8200 lt_prog_compiler_pic=-Kconform_pic
8201 fi
8202 ;;
8203
8204 *)
8205 lt_prog_compiler_pic='-fPIC'
8206 ;;
8207 esac
8208
8209 case $cc_basename in
8210 nvcc*) # Cuda Compiler Driver 2.2
8211 lt_prog_compiler_wl='-Xlinker '
8212 lt_prog_compiler_pic='-Xcompiler -fPIC'
8213 ;;
8214 esac
8215 else
8216 # PORTME Check for flag to pass linker flags through the system compiler.
8217 case $host_os in
8218 aix*)
8219 lt_prog_compiler_wl='-Wl,'
8220 if test "$host_cpu" = ia64; then
8221 # AIX 5 now supports IA64 processor
8222 lt_prog_compiler_static='-Bstatic'
8223 else
8224 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8225 fi
8226 ;;
8227
8228 mingw* | cygwin* | pw32* | os2* | cegcc*)
8229 # This hack is so that the source file can tell whether it is being
8230 # built for inclusion in a dll (and should export symbols for example).
8231 lt_prog_compiler_pic='-DDLL_EXPORT'
8232 ;;
8233
8234 hpux9* | hpux10* | hpux11*)
8235 lt_prog_compiler_wl='-Wl,'
8236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8237 # not for PA HP-UX.
8238 case $host_cpu in
8239 hppa*64*|ia64*)
8240 # +Z the default
8241 ;;
8242 *)
8243 lt_prog_compiler_pic='+Z'
8244 ;;
8245 esac
8246 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8247 lt_prog_compiler_static='${wl}-a ${wl}archive'
8248 ;;
8249
8250 irix5* | irix6* | nonstopux*)
8251 lt_prog_compiler_wl='-Wl,'
8252 # PIC (with -KPIC) is the default.
8253 lt_prog_compiler_static='-non_shared'
8254 ;;
8255
8256 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8257 case $cc_basename in
8258 # old Intel for x86_64 which still supported -KPIC.
8259 ecc*)
8260 lt_prog_compiler_wl='-Wl,'
8261 lt_prog_compiler_pic='-KPIC'
8262 lt_prog_compiler_static='-static'
8263 ;;
8264 # icc used to be incompatible with GCC.
8265 # ICC 10 doesn't accept -KPIC any more.
8266 icc* | ifort*)
8267 lt_prog_compiler_wl='-Wl,'
8268 lt_prog_compiler_pic='-fPIC'
8269 lt_prog_compiler_static='-static'
8270 ;;
8271 # Lahey Fortran 8.1.
8272 lf95*)
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_pic='--shared'
8275 lt_prog_compiler_static='--static'
8276 ;;
8277 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8278 # Portland Group compilers (*not* the Pentium gcc compiler,
8279 # which looks to be a dead project)
8280 lt_prog_compiler_wl='-Wl,'
8281 lt_prog_compiler_pic='-fpic'
8282 lt_prog_compiler_static='-Bstatic'
8283 ;;
8284 ccc*)
8285 lt_prog_compiler_wl='-Wl,'
8286 # All Alpha code is PIC.
8287 lt_prog_compiler_static='-non_shared'
8288 ;;
8289 xl* | bgxl* | bgf* | mpixl*)
8290 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8291 lt_prog_compiler_wl='-Wl,'
8292 lt_prog_compiler_pic='-qpic'
8293 lt_prog_compiler_static='-qstaticlink'
8294 ;;
8295 *)
8296 case `$CC -V 2>&1 | sed 5q` in
8297 *Sun\ F* | *Sun*Fortran*)
8298 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8299 lt_prog_compiler_pic='-KPIC'
8300 lt_prog_compiler_static='-Bstatic'
8301 lt_prog_compiler_wl=''
8302 ;;
8303 *Sun\ C*)
8304 # Sun C 5.9
8305 lt_prog_compiler_pic='-KPIC'
8306 lt_prog_compiler_static='-Bstatic'
8307 lt_prog_compiler_wl='-Wl,'
8308 ;;
8309 esac
8310 ;;
8311 esac
8312 ;;
8313
8314 newsos6)
8315 lt_prog_compiler_pic='-KPIC'
8316 lt_prog_compiler_static='-Bstatic'
8317 ;;
8318
8319 *nto* | *qnx*)
8320 # QNX uses GNU C++, but need to define -shared option too, otherwise
8321 # it will coredump.
8322 lt_prog_compiler_pic='-fPIC -shared'
8323 ;;
8324
8325 osf3* | osf4* | osf5*)
8326 lt_prog_compiler_wl='-Wl,'
8327 # All OSF/1 code is PIC.
8328 lt_prog_compiler_static='-non_shared'
8329 ;;
8330
8331 rdos*)
8332 lt_prog_compiler_static='-non_shared'
8333 ;;
8334
8335 solaris*)
8336 lt_prog_compiler_pic='-KPIC'
8337 lt_prog_compiler_static='-Bstatic'
8338 case $cc_basename in
8339 f77* | f90* | f95*)
8340 lt_prog_compiler_wl='-Qoption ld ';;
8341 *)
8342 lt_prog_compiler_wl='-Wl,';;
8343 esac
8344 ;;
8345
8346 sunos4*)
8347 lt_prog_compiler_wl='-Qoption ld '
8348 lt_prog_compiler_pic='-PIC'
8349 lt_prog_compiler_static='-Bstatic'
8350 ;;
8351
8352 sysv4 | sysv4.2uw2* | sysv4.3*)
8353 lt_prog_compiler_wl='-Wl,'
8354 lt_prog_compiler_pic='-KPIC'
8355 lt_prog_compiler_static='-Bstatic'
8356 ;;
8357
8358 sysv4*MP*)
8359 if test -d /usr/nec ;then
8360 lt_prog_compiler_pic='-Kconform_pic'
8361 lt_prog_compiler_static='-Bstatic'
8362 fi
8363 ;;
8364
8365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8366 lt_prog_compiler_wl='-Wl,'
8367 lt_prog_compiler_pic='-KPIC'
8368 lt_prog_compiler_static='-Bstatic'
8369 ;;
8370
8371 unicos*)
8372 lt_prog_compiler_wl='-Wl,'
8373 lt_prog_compiler_can_build_shared=no
8374 ;;
8375
8376 uts4*)
8377 lt_prog_compiler_pic='-pic'
8378 lt_prog_compiler_static='-Bstatic'
8379 ;;
8380
8381 *)
8382 lt_prog_compiler_can_build_shared=no
8383 ;;
8384 esac
8385 fi
8386
8387 case $host_os in
8388 # For platforms which do not support PIC, -DPIC is meaningless:
8389 *djgpp*)
8390 lt_prog_compiler_pic=
8391 ;;
8392 *)
8393 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8394 ;;
8395 esac
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8397 $as_echo "$lt_prog_compiler_pic" >&6; }
8398
8399
8400
8401
8402
8403
8404 #
8405 # Check to make sure the PIC flag actually works.
8406 #
8407 if test -n "$lt_prog_compiler_pic"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8409 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8410 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 lt_cv_prog_compiler_pic_works=no
8414 ac_outfile=conftest.$ac_objext
8415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8416 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8417 # Insert the option either (1) after the last *FLAGS variable, or
8418 # (2) before a word containing "conftest.", or (3) at the end.
8419 # Note that $ac_compile itself does not contain backslashes and begins
8420 # with a dollar sign (not a hyphen), so the echo should work correctly.
8421 # The option is referenced via a variable to avoid confusing sed.
8422 lt_compile=`echo "$ac_compile" | $SED \
8423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8425 -e 's:$: $lt_compiler_flag:'`
8426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8427 (eval "$lt_compile" 2>conftest.err)
8428 ac_status=$?
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 if (exit $ac_status) && test -s "$ac_outfile"; then
8432 # The compiler can only warn and ignore the option if not recognized
8433 # So say no if there are warnings other than the usual output.
8434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8437 lt_cv_prog_compiler_pic_works=yes
8438 fi
8439 fi
8440 $RM conftest*
8441
8442 fi
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8444 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8445
8446 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8447 case $lt_prog_compiler_pic in
8448 "" | " "*) ;;
8449 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8450 esac
8451 else
8452 lt_prog_compiler_pic=
8453 lt_prog_compiler_can_build_shared=no
8454 fi
8455
8456 fi
8457
8458
8459
8460
8461
8462
8463 #
8464 # Check to make sure the static flag actually works.
8465 #
8466 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8468 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8469 if ${lt_cv_prog_compiler_static_works+:} false; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 lt_cv_prog_compiler_static_works=no
8473 save_LDFLAGS="$LDFLAGS"
8474 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8475 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8476 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8477 # The linker can only warn and ignore the option if not recognized
8478 # So say no if there are warnings
8479 if test -s conftest.err; then
8480 # Append any errors to the config.log.
8481 cat conftest.err 1>&5
8482 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8484 if diff conftest.exp conftest.er2 >/dev/null; then
8485 lt_cv_prog_compiler_static_works=yes
8486 fi
8487 else
8488 lt_cv_prog_compiler_static_works=yes
8489 fi
8490 fi
8491 $RM -r conftest*
8492 LDFLAGS="$save_LDFLAGS"
8493
8494 fi
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8496 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8497
8498 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8499 :
8500 else
8501 lt_prog_compiler_static=
8502 fi
8503
8504
8505
8506
8507
8508
8509
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8511 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8512 if ${lt_cv_prog_compiler_c_o+:} false; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 lt_cv_prog_compiler_c_o=no
8516 $RM -r conftest 2>/dev/null
8517 mkdir conftest
8518 cd conftest
8519 mkdir out
8520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8521
8522 lt_compiler_flag="-o out/conftest2.$ac_objext"
8523 # Insert the option either (1) after the last *FLAGS variable, or
8524 # (2) before a word containing "conftest.", or (3) at the end.
8525 # Note that $ac_compile itself does not contain backslashes and begins
8526 # with a dollar sign (not a hyphen), so the echo should work correctly.
8527 lt_compile=`echo "$ac_compile" | $SED \
8528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8530 -e 's:$: $lt_compiler_flag:'`
8531 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8532 (eval "$lt_compile" 2>out/conftest.err)
8533 ac_status=$?
8534 cat out/conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8537 then
8538 # The compiler can only warn and ignore the option if not recognized
8539 # So say no if there are warnings
8540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8543 lt_cv_prog_compiler_c_o=yes
8544 fi
8545 fi
8546 chmod u+w . 2>&5
8547 $RM conftest*
8548 # SGI C++ compiler will create directory out/ii_files/ for
8549 # template instantiation
8550 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8551 $RM out/* && rmdir out
8552 cd ..
8553 $RM -r conftest
8554 $RM conftest*
8555
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8558 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8559
8560
8561
8562
8563
8564
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8567 if ${lt_cv_prog_compiler_c_o+:} false; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 lt_cv_prog_compiler_c_o=no
8571 $RM -r conftest 2>/dev/null
8572 mkdir conftest
8573 cd conftest
8574 mkdir out
8575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8576
8577 lt_compiler_flag="-o out/conftest2.$ac_objext"
8578 # Insert the option either (1) after the last *FLAGS variable, or
8579 # (2) before a word containing "conftest.", or (3) at the end.
8580 # Note that $ac_compile itself does not contain backslashes and begins
8581 # with a dollar sign (not a hyphen), so the echo should work correctly.
8582 lt_compile=`echo "$ac_compile" | $SED \
8583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8585 -e 's:$: $lt_compiler_flag:'`
8586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8587 (eval "$lt_compile" 2>out/conftest.err)
8588 ac_status=$?
8589 cat out/conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8592 then
8593 # The compiler can only warn and ignore the option if not recognized
8594 # So say no if there are warnings
8595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8598 lt_cv_prog_compiler_c_o=yes
8599 fi
8600 fi
8601 chmod u+w . 2>&5
8602 $RM conftest*
8603 # SGI C++ compiler will create directory out/ii_files/ for
8604 # template instantiation
8605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8606 $RM out/* && rmdir out
8607 cd ..
8608 $RM -r conftest
8609 $RM conftest*
8610
8611 fi
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8613 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8614
8615
8616
8617
8618 hard_links="nottested"
8619 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8620 # do not overwrite the value of need_locks provided by the user
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8622 $as_echo_n "checking if we can lock with hard links... " >&6; }
8623 hard_links=yes
8624 $RM conftest*
8625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8626 touch conftest.a
8627 ln conftest.a conftest.b 2>&5 || hard_links=no
8628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8630 $as_echo "$hard_links" >&6; }
8631 if test "$hard_links" = no; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8633 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8634 need_locks=warn
8635 fi
8636 else
8637 need_locks=no
8638 fi
8639
8640
8641
8642
8643
8644
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8646 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8647
8648 runpath_var=
8649 allow_undefined_flag=
8650 always_export_symbols=no
8651 archive_cmds=
8652 archive_expsym_cmds=
8653 compiler_needs_object=no
8654 enable_shared_with_static_runtimes=no
8655 export_dynamic_flag_spec=
8656 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8657 hardcode_automatic=no
8658 hardcode_direct=no
8659 hardcode_direct_absolute=no
8660 hardcode_libdir_flag_spec=
8661 hardcode_libdir_flag_spec_ld=
8662 hardcode_libdir_separator=
8663 hardcode_minus_L=no
8664 hardcode_shlibpath_var=unsupported
8665 inherit_rpath=no
8666 link_all_deplibs=unknown
8667 module_cmds=
8668 module_expsym_cmds=
8669 old_archive_from_new_cmds=
8670 old_archive_from_expsyms_cmds=
8671 thread_safe_flag_spec=
8672 whole_archive_flag_spec=
8673 # include_expsyms should be a list of space-separated symbols to be *always*
8674 # included in the symbol list
8675 include_expsyms=
8676 # exclude_expsyms can be an extended regexp of symbols to exclude
8677 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8678 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8679 # as well as any symbol that contains `d'.
8680 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8681 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8682 # platforms (ab)use it in PIC code, but their linkers get confused if
8683 # the symbol is explicitly referenced. Since portable code cannot
8684 # rely on this symbol name, it's probably fine to never include it in
8685 # preloaded symbol tables.
8686 # Exclude shared library initialization/finalization symbols.
8687 extract_expsyms_cmds=
8688
8689 case $host_os in
8690 cygwin* | mingw* | pw32* | cegcc*)
8691 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8692 # When not using gcc, we currently assume that we are using
8693 # Microsoft Visual C++.
8694 if test "$GCC" != yes; then
8695 with_gnu_ld=no
8696 fi
8697 ;;
8698 interix*)
8699 # we just hope/assume this is gcc and not c89 (= MSVC++)
8700 with_gnu_ld=yes
8701 ;;
8702 openbsd*)
8703 with_gnu_ld=no
8704 ;;
8705 esac
8706
8707 ld_shlibs=yes
8708
8709 # On some targets, GNU ld is compatible enough with the native linker
8710 # that we're better off using the native interface for both.
8711 lt_use_gnu_ld_interface=no
8712 if test "$with_gnu_ld" = yes; then
8713 case $host_os in
8714 aix*)
8715 # The AIX port of GNU ld has always aspired to compatibility
8716 # with the native linker. However, as the warning in the GNU ld
8717 # block says, versions before 2.19.5* couldn't really create working
8718 # shared libraries, regardless of the interface used.
8719 case `$LD -v 2>&1` in
8720 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8721 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8722 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8723 *)
8724 lt_use_gnu_ld_interface=yes
8725 ;;
8726 esac
8727 ;;
8728 *)
8729 lt_use_gnu_ld_interface=yes
8730 ;;
8731 esac
8732 fi
8733
8734 if test "$lt_use_gnu_ld_interface" = yes; then
8735 # If archive_cmds runs LD, not CC, wlarc should be empty
8736 wlarc='${wl}'
8737
8738 # Set some defaults for GNU ld with shared library support. These
8739 # are reset later if shared libraries are not supported. Putting them
8740 # here allows them to be overridden if necessary.
8741 runpath_var=LD_RUN_PATH
8742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8743 export_dynamic_flag_spec='${wl}--export-dynamic'
8744 # ancient GNU ld didn't support --whole-archive et. al.
8745 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8746 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8747 else
8748 whole_archive_flag_spec=
8749 fi
8750 supports_anon_versioning=no
8751 case `$LD -v 2>&1` in
8752 *GNU\ gold*) supports_anon_versioning=yes ;;
8753 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8754 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8755 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8756 *\ 2.11.*) ;; # other 2.11 versions
8757 *) supports_anon_versioning=yes ;;
8758 esac
8759
8760 # See if GNU ld supports shared libraries.
8761 case $host_os in
8762 aix[3-9]*)
8763 # On AIX/PPC, the GNU linker is very broken
8764 if test "$host_cpu" != ia64; then
8765 ld_shlibs=no
8766 cat <<_LT_EOF 1>&2
8767
8768 *** Warning: the GNU linker, at least up to release 2.19, is reported
8769 *** to be unable to reliably create shared libraries on AIX.
8770 *** Therefore, libtool is disabling shared libraries support. If you
8771 *** really care for shared libraries, you may want to install binutils
8772 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8773 *** You will then need to restart the configuration process.
8774
8775 _LT_EOF
8776 fi
8777 ;;
8778
8779 amigaos*)
8780 case $host_cpu in
8781 powerpc)
8782 # see comment about AmigaOS4 .so support
8783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784 archive_expsym_cmds=''
8785 ;;
8786 m68k)
8787 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)'
8788 hardcode_libdir_flag_spec='-L$libdir'
8789 hardcode_minus_L=yes
8790 ;;
8791 esac
8792 ;;
8793
8794 beos*)
8795 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8796 allow_undefined_flag=unsupported
8797 # Joseph Beckenbach <[email protected]> says some releases of gcc
8798 # support --undefined. This deserves some investigation. FIXME
8799 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8800 else
8801 ld_shlibs=no
8802 fi
8803 ;;
8804
8805 cygwin* | mingw* | pw32* | cegcc*)
8806 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8807 # as there is no search path for DLLs.
8808 hardcode_libdir_flag_spec='-L$libdir'
8809 export_dynamic_flag_spec='${wl}--export-all-symbols'
8810 allow_undefined_flag=unsupported
8811 always_export_symbols=no
8812 enable_shared_with_static_runtimes=yes
8813 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8814
8815 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8817 # If the export-symbols file already is a .def file (1st line
8818 # is EXPORTS), use it as is; otherwise, prepend...
8819 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8820 cp $export_symbols $output_objdir/$soname.def;
8821 else
8822 echo EXPORTS > $output_objdir/$soname.def;
8823 cat $export_symbols >> $output_objdir/$soname.def;
8824 fi~
8825 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8826 else
8827 ld_shlibs=no
8828 fi
8829 ;;
8830
8831 haiku*)
8832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8833 link_all_deplibs=yes
8834 ;;
8835
8836 interix[3-9]*)
8837 hardcode_direct=no
8838 hardcode_shlibpath_var=no
8839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8840 export_dynamic_flag_spec='${wl}-E'
8841 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8842 # Instead, shared libraries are loaded at an image base (0x10000000 by
8843 # default) and relocated if they conflict, which is a slow very memory
8844 # consuming and fragmenting process. To avoid this, we pick a random,
8845 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8846 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8847 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8848 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'
8849 ;;
8850
8851 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8852 tmp_diet=no
8853 if test "$host_os" = linux-dietlibc; then
8854 case $cc_basename in
8855 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8856 esac
8857 fi
8858 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8859 && test "$tmp_diet" = no
8860 then
8861 tmp_addflag=' $pic_flag'
8862 tmp_sharedflag='-shared'
8863 case $cc_basename,$host_cpu in
8864 pgcc*) # Portland Group C compiler
8865 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'
8866 tmp_addflag=' $pic_flag'
8867 ;;
8868 pgf77* | pgf90* | pgf95* | pgfortran*)
8869 # Portland Group f77 and f90 compilers
8870 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'
8871 tmp_addflag=' $pic_flag -Mnomain' ;;
8872 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8873 tmp_addflag=' -i_dynamic' ;;
8874 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8875 tmp_addflag=' -i_dynamic -nofor_main' ;;
8876 ifc* | ifort*) # Intel Fortran compiler
8877 tmp_addflag=' -nofor_main' ;;
8878 lf95*) # Lahey Fortran 8.1
8879 whole_archive_flag_spec=
8880 tmp_sharedflag='--shared' ;;
8881 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8882 tmp_sharedflag='-qmkshrobj'
8883 tmp_addflag= ;;
8884 nvcc*) # Cuda Compiler Driver 2.2
8885 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'
8886 compiler_needs_object=yes
8887 ;;
8888 esac
8889 case `$CC -V 2>&1 | sed 5q` in
8890 *Sun\ C*) # Sun C 5.9
8891 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'
8892 compiler_needs_object=yes
8893 tmp_sharedflag='-G' ;;
8894 *Sun\ F*) # Sun Fortran 8.3
8895 tmp_sharedflag='-G' ;;
8896 esac
8897 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8898
8899 if test "x$supports_anon_versioning" = xyes; then
8900 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8901 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8902 echo "local: *; };" >> $output_objdir/$libname.ver~
8903 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8904 fi
8905
8906 case $cc_basename in
8907 xlf* | bgf* | bgxlf* | mpixlf*)
8908 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8909 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8910 hardcode_libdir_flag_spec=
8911 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8912 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8913 if test "x$supports_anon_versioning" = xyes; then
8914 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8915 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8916 echo "local: *; };" >> $output_objdir/$libname.ver~
8917 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8918 fi
8919 ;;
8920 esac
8921 else
8922 ld_shlibs=no
8923 fi
8924 ;;
8925
8926 netbsd*)
8927 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8928 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8929 wlarc=
8930 else
8931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8932 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8933 fi
8934 ;;
8935
8936 solaris*)
8937 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8938 ld_shlibs=no
8939 cat <<_LT_EOF 1>&2
8940
8941 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8942 *** create shared libraries on Solaris systems. Therefore, libtool
8943 *** is disabling shared libraries support. We urge you to upgrade GNU
8944 *** binutils to release 2.9.1 or newer. Another option is to modify
8945 *** your PATH or compiler configuration so that the native linker is
8946 *** used, and then restart.
8947
8948 _LT_EOF
8949 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8952 else
8953 ld_shlibs=no
8954 fi
8955 ;;
8956
8957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8958 case `$LD -v 2>&1` in
8959 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8960 ld_shlibs=no
8961 cat <<_LT_EOF 1>&2
8962
8963 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8964 *** reliably create shared libraries on SCO systems. Therefore, libtool
8965 *** is disabling shared libraries support. We urge you to upgrade GNU
8966 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8967 *** your PATH or compiler configuration so that the native linker is
8968 *** used, and then restart.
8969
8970 _LT_EOF
8971 ;;
8972 *)
8973 # For security reasons, it is highly recommended that you always
8974 # use absolute paths for naming shared libraries, and exclude the
8975 # DT_RUNPATH tag from executables and libraries. But doing so
8976 # requires that you compile everything twice, which is a pain.
8977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8981 else
8982 ld_shlibs=no
8983 fi
8984 ;;
8985 esac
8986 ;;
8987
8988 sunos4*)
8989 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8990 wlarc=
8991 hardcode_direct=yes
8992 hardcode_shlibpath_var=no
8993 ;;
8994
8995 *)
8996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8999 else
9000 ld_shlibs=no
9001 fi
9002 ;;
9003 esac
9004
9005 if test "$ld_shlibs" = no; then
9006 runpath_var=
9007 hardcode_libdir_flag_spec=
9008 export_dynamic_flag_spec=
9009 whole_archive_flag_spec=
9010 fi
9011 else
9012 # PORTME fill in a description of your system's linker (not GNU ld)
9013 case $host_os in
9014 aix3*)
9015 allow_undefined_flag=unsupported
9016 always_export_symbols=yes
9017 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'
9018 # Note: this linker hardcodes the directories in LIBPATH if there
9019 # are no directories specified by -L.
9020 hardcode_minus_L=yes
9021 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9022 # Neither direct hardcoding nor static linking is supported with a
9023 # broken collect2.
9024 hardcode_direct=unsupported
9025 fi
9026 ;;
9027
9028 aix[4-9]*)
9029 if test "$host_cpu" = ia64; then
9030 # On IA64, the linker does run time linking by default, so we don't
9031 # have to do anything special.
9032 aix_use_runtimelinking=no
9033 exp_sym_flag='-Bexport'
9034 no_entry_flag=""
9035 else
9036 # If we're using GNU nm, then we don't want the "-C" option.
9037 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9038 # Also, AIX nm treats weak defined symbols like other global
9039 # defined symbols, whereas GNU nm marks them as "W".
9040 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9041 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'
9042 else
9043 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'
9044 fi
9045 aix_use_runtimelinking=no
9046
9047 # Test if we are trying to use run time linking or normal
9048 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9049 # need to do runtime linking.
9050 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9051 for ld_flag in $LDFLAGS; do
9052 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9053 aix_use_runtimelinking=yes
9054 break
9055 fi
9056 done
9057 ;;
9058 esac
9059
9060 exp_sym_flag='-bexport'
9061 no_entry_flag='-bnoentry'
9062 fi
9063
9064 # When large executables or shared objects are built, AIX ld can
9065 # have problems creating the table of contents. If linking a library
9066 # or program results in "error TOC overflow" add -mminimal-toc to
9067 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9068 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9069
9070 archive_cmds=''
9071 hardcode_direct=yes
9072 hardcode_direct_absolute=yes
9073 hardcode_libdir_separator=':'
9074 link_all_deplibs=yes
9075 file_list_spec='${wl}-f,'
9076
9077 if test "$GCC" = yes; then
9078 case $host_os in aix4.[012]|aix4.[012].*)
9079 # We only want to do this on AIX 4.2 and lower, the check
9080 # below for broken collect2 doesn't work under 4.3+
9081 collect2name=`${CC} -print-prog-name=collect2`
9082 if test -f "$collect2name" &&
9083 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9084 then
9085 # We have reworked collect2
9086 :
9087 else
9088 # We have old collect2
9089 hardcode_direct=unsupported
9090 # It fails to find uninstalled libraries when the uninstalled
9091 # path is not listed in the libpath. Setting hardcode_minus_L
9092 # to unsupported forces relinking
9093 hardcode_minus_L=yes
9094 hardcode_libdir_flag_spec='-L$libdir'
9095 hardcode_libdir_separator=
9096 fi
9097 ;;
9098 esac
9099 shared_flag='-shared'
9100 if test "$aix_use_runtimelinking" = yes; then
9101 shared_flag="$shared_flag "'${wl}-G'
9102 fi
9103 else
9104 # not using gcc
9105 if test "$host_cpu" = ia64; then
9106 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9107 # chokes on -Wl,-G. The following line is correct:
9108 shared_flag='-G'
9109 else
9110 if test "$aix_use_runtimelinking" = yes; then
9111 shared_flag='${wl}-G'
9112 else
9113 shared_flag='${wl}-bM:SRE'
9114 fi
9115 fi
9116 fi
9117
9118 export_dynamic_flag_spec='${wl}-bexpall'
9119 # It seems that -bexpall does not export symbols beginning with
9120 # underscore (_), so it is better to generate a list of symbols to export.
9121 always_export_symbols=yes
9122 if test "$aix_use_runtimelinking" = yes; then
9123 # Warning - without using the other runtime loading flags (-brtl),
9124 # -berok will link without error, but may produce a broken library.
9125 allow_undefined_flag='-berok'
9126 # Determine the default libpath from the value encoded in an
9127 # empty executable.
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9130
9131 int
9132 main ()
9133 {
9134
9135 ;
9136 return 0;
9137 }
9138 _ACEOF
9139 if ac_fn_c_try_link "$LINENO"; then :
9140
9141 lt_aix_libpath_sed='
9142 /Import File Strings/,/^$/ {
9143 /^0/ {
9144 s/^0 *\(.*\)$/\1/
9145 p
9146 }
9147 }'
9148 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9149 # Check for a 64-bit object if we didn't find anything.
9150 if test -z "$aix_libpath"; then
9151 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9152 fi
9153 fi
9154 rm -f core conftest.err conftest.$ac_objext \
9155 conftest$ac_exeext conftest.$ac_ext
9156 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9157
9158 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9159 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"
9160 else
9161 if test "$host_cpu" = ia64; then
9162 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9163 allow_undefined_flag="-z nodefs"
9164 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"
9165 else
9166 # Determine the default libpath from the value encoded in an
9167 # empty executable.
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9170
9171 int
9172 main ()
9173 {
9174
9175 ;
9176 return 0;
9177 }
9178 _ACEOF
9179 if ac_fn_c_try_link "$LINENO"; then :
9180
9181 lt_aix_libpath_sed='
9182 /Import File Strings/,/^$/ {
9183 /^0/ {
9184 s/^0 *\(.*\)$/\1/
9185 p
9186 }
9187 }'
9188 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9189 # Check for a 64-bit object if we didn't find anything.
9190 if test -z "$aix_libpath"; then
9191 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9192 fi
9193 fi
9194 rm -f core conftest.err conftest.$ac_objext \
9195 conftest$ac_exeext conftest.$ac_ext
9196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9197
9198 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9199 # Warning - without using the other run time loading flags,
9200 # -berok will link without error, but may produce a broken library.
9201 no_undefined_flag=' ${wl}-bernotok'
9202 allow_undefined_flag=' ${wl}-berok'
9203 if test "$with_gnu_ld" = yes; then
9204 # We only use this code for GNU lds that support --whole-archive.
9205 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9206 else
9207 # Exported symbols can be pulled into shared objects from archives
9208 whole_archive_flag_spec='$convenience'
9209 fi
9210 archive_cmds_need_lc=yes
9211 # This is similar to how AIX traditionally builds its shared libraries.
9212 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'
9213 fi
9214 fi
9215 ;;
9216
9217 amigaos*)
9218 case $host_cpu in
9219 powerpc)
9220 # see comment about AmigaOS4 .so support
9221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9222 archive_expsym_cmds=''
9223 ;;
9224 m68k)
9225 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)'
9226 hardcode_libdir_flag_spec='-L$libdir'
9227 hardcode_minus_L=yes
9228 ;;
9229 esac
9230 ;;
9231
9232 bsdi[45]*)
9233 export_dynamic_flag_spec=-rdynamic
9234 ;;
9235
9236 cygwin* | mingw* | pw32* | cegcc*)
9237 # When not using gcc, we currently assume that we are using
9238 # Microsoft Visual C++.
9239 # hardcode_libdir_flag_spec is actually meaningless, as there is
9240 # no search path for DLLs.
9241 hardcode_libdir_flag_spec=' '
9242 allow_undefined_flag=unsupported
9243 # Tell ltmain to make .lib files, not .a files.
9244 libext=lib
9245 # Tell ltmain to make .dll files, not .so files.
9246 shrext_cmds=".dll"
9247 # FIXME: Setting linknames here is a bad hack.
9248 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9249 # The linker will automatically build a .lib file if we build a DLL.
9250 old_archive_from_new_cmds='true'
9251 # FIXME: Should let the user specify the lib program.
9252 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9253 fix_srcfile_path='`cygpath -w "$srcfile"`'
9254 enable_shared_with_static_runtimes=yes
9255 ;;
9256
9257 darwin* | rhapsody*)
9258
9259
9260 archive_cmds_need_lc=no
9261 hardcode_direct=no
9262 hardcode_automatic=yes
9263 hardcode_shlibpath_var=unsupported
9264 if test "$lt_cv_ld_force_load" = "yes"; then
9265 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\"`'
9266 else
9267 whole_archive_flag_spec=''
9268 fi
9269 link_all_deplibs=yes
9270 allow_undefined_flag="$_lt_dar_allow_undefined"
9271 case $cc_basename in
9272 ifort*) _lt_dar_can_shared=yes ;;
9273 *) _lt_dar_can_shared=$GCC ;;
9274 esac
9275 if test "$_lt_dar_can_shared" = "yes"; then
9276 output_verbose_link_cmd=func_echo_all
9277 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9278 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9279 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}"
9280 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}"
9281
9282 else
9283 ld_shlibs=no
9284 fi
9285
9286 ;;
9287
9288 dgux*)
9289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9290 hardcode_libdir_flag_spec='-L$libdir'
9291 hardcode_shlibpath_var=no
9292 ;;
9293
9294 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9295 # support. Future versions do this automatically, but an explicit c++rt0.o
9296 # does not break anything, and helps significantly (at the cost of a little
9297 # extra space).
9298 freebsd2.2*)
9299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9300 hardcode_libdir_flag_spec='-R$libdir'
9301 hardcode_direct=yes
9302 hardcode_shlibpath_var=no
9303 ;;
9304
9305 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9306 freebsd2.*)
9307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9308 hardcode_direct=yes
9309 hardcode_minus_L=yes
9310 hardcode_shlibpath_var=no
9311 ;;
9312
9313 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9314 freebsd* | dragonfly*)
9315 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9316 hardcode_libdir_flag_spec='-R$libdir'
9317 hardcode_direct=yes
9318 hardcode_shlibpath_var=no
9319 ;;
9320
9321 hpux9*)
9322 if test "$GCC" = yes; then
9323 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'
9324 else
9325 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'
9326 fi
9327 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9328 hardcode_libdir_separator=:
9329 hardcode_direct=yes
9330
9331 # hardcode_minus_L: Not really in the search PATH,
9332 # but as the default location of the library.
9333 hardcode_minus_L=yes
9334 export_dynamic_flag_spec='${wl}-E'
9335 ;;
9336
9337 hpux10*)
9338 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9339 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9340 else
9341 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9342 fi
9343 if test "$with_gnu_ld" = no; then
9344 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9345 hardcode_libdir_flag_spec_ld='+b $libdir'
9346 hardcode_libdir_separator=:
9347 hardcode_direct=yes
9348 hardcode_direct_absolute=yes
9349 export_dynamic_flag_spec='${wl}-E'
9350 # hardcode_minus_L: Not really in the search PATH,
9351 # but as the default location of the library.
9352 hardcode_minus_L=yes
9353 fi
9354 ;;
9355
9356 hpux11*)
9357 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9358 case $host_cpu in
9359 hppa*64*)
9360 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9361 ;;
9362 ia64*)
9363 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9364 ;;
9365 *)
9366 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9367 ;;
9368 esac
9369 else
9370 case $host_cpu in
9371 hppa*64*)
9372 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9373 ;;
9374 ia64*)
9375 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9376 ;;
9377 *)
9378
9379 # Older versions of the 11.00 compiler do not understand -b yet
9380 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9382 $as_echo_n "checking if $CC understands -b... " >&6; }
9383 if ${lt_cv_prog_compiler__b+:} false; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 lt_cv_prog_compiler__b=no
9387 save_LDFLAGS="$LDFLAGS"
9388 LDFLAGS="$LDFLAGS -b"
9389 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9390 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9391 # The linker can only warn and ignore the option if not recognized
9392 # So say no if there are warnings
9393 if test -s conftest.err; then
9394 # Append any errors to the config.log.
9395 cat conftest.err 1>&5
9396 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9398 if diff conftest.exp conftest.er2 >/dev/null; then
9399 lt_cv_prog_compiler__b=yes
9400 fi
9401 else
9402 lt_cv_prog_compiler__b=yes
9403 fi
9404 fi
9405 $RM -r conftest*
9406 LDFLAGS="$save_LDFLAGS"
9407
9408 fi
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9410 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9411
9412 if test x"$lt_cv_prog_compiler__b" = xyes; then
9413 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9414 else
9415 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9416 fi
9417
9418 ;;
9419 esac
9420 fi
9421 if test "$with_gnu_ld" = no; then
9422 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9423 hardcode_libdir_separator=:
9424
9425 case $host_cpu in
9426 hppa*64*|ia64*)
9427 hardcode_direct=no
9428 hardcode_shlibpath_var=no
9429 ;;
9430 *)
9431 hardcode_direct=yes
9432 hardcode_direct_absolute=yes
9433 export_dynamic_flag_spec='${wl}-E'
9434
9435 # hardcode_minus_L: Not really in the search PATH,
9436 # but as the default location of the library.
9437 hardcode_minus_L=yes
9438 ;;
9439 esac
9440 fi
9441 ;;
9442
9443 irix5* | irix6* | nonstopux*)
9444 if test "$GCC" = yes; then
9445 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'
9446 # Try to use the -exported_symbol ld option, if it does not
9447 # work, assume that -exports_file does not work either and
9448 # implicitly export all symbols.
9449 save_LDFLAGS="$LDFLAGS"
9450 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9453 int foo(void) {}
9454 _ACEOF
9455 if ac_fn_c_try_link "$LINENO"; then :
9456 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'
9457
9458 fi
9459 rm -f core conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
9461 LDFLAGS="$save_LDFLAGS"
9462 else
9463 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'
9464 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'
9465 fi
9466 archive_cmds_need_lc='no'
9467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9468 hardcode_libdir_separator=:
9469 inherit_rpath=yes
9470 link_all_deplibs=yes
9471 ;;
9472
9473 netbsd*)
9474 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9476 else
9477 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9478 fi
9479 hardcode_libdir_flag_spec='-R$libdir'
9480 hardcode_direct=yes
9481 hardcode_shlibpath_var=no
9482 ;;
9483
9484 newsos6)
9485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9486 hardcode_direct=yes
9487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9488 hardcode_libdir_separator=:
9489 hardcode_shlibpath_var=no
9490 ;;
9491
9492 *nto* | *qnx*)
9493 ;;
9494
9495 openbsd*)
9496 if test -f /usr/libexec/ld.so; then
9497 hardcode_direct=yes
9498 hardcode_shlibpath_var=no
9499 hardcode_direct_absolute=yes
9500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9501 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9502 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9503 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9504 export_dynamic_flag_spec='${wl}-E'
9505 else
9506 case $host_os in
9507 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9509 hardcode_libdir_flag_spec='-R$libdir'
9510 ;;
9511 *)
9512 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9513 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9514 ;;
9515 esac
9516 fi
9517 else
9518 ld_shlibs=no
9519 fi
9520 ;;
9521
9522 os2*)
9523 hardcode_libdir_flag_spec='-L$libdir'
9524 hardcode_minus_L=yes
9525 allow_undefined_flag=unsupported
9526 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'
9527 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9528 ;;
9529
9530 osf3*)
9531 if test "$GCC" = yes; then
9532 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9533 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'
9534 else
9535 allow_undefined_flag=' -expect_unresolved \*'
9536 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'
9537 fi
9538 archive_cmds_need_lc='no'
9539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9540 hardcode_libdir_separator=:
9541 ;;
9542
9543 osf4* | osf5*) # as osf3* with the addition of -msym flag
9544 if test "$GCC" = yes; then
9545 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9546 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'
9547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9548 else
9549 allow_undefined_flag=' -expect_unresolved \*'
9550 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'
9551 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~
9552 $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'
9553
9554 # Both c and cxx compiler support -rpath directly
9555 hardcode_libdir_flag_spec='-rpath $libdir'
9556 fi
9557 archive_cmds_need_lc='no'
9558 hardcode_libdir_separator=:
9559 ;;
9560
9561 solaris*)
9562 no_undefined_flag=' -z defs'
9563 if test "$GCC" = yes; then
9564 wlarc='${wl}'
9565 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9567 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9568 else
9569 case `$CC -V 2>&1` in
9570 *"Compilers 5.0"*)
9571 wlarc=''
9572 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9573 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9574 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9575 ;;
9576 *)
9577 wlarc='${wl}'
9578 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9579 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9580 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9581 ;;
9582 esac
9583 fi
9584 hardcode_libdir_flag_spec='-R$libdir'
9585 hardcode_shlibpath_var=no
9586 case $host_os in
9587 solaris2.[0-5] | solaris2.[0-5].*) ;;
9588 *)
9589 # The compiler driver will combine and reorder linker options,
9590 # but understands `-z linker_flag'. GCC discards it without `$wl',
9591 # but is careful enough not to reorder.
9592 # Supported since Solaris 2.6 (maybe 2.5.1?)
9593 if test "$GCC" = yes; then
9594 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9595 else
9596 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9597 fi
9598 ;;
9599 esac
9600 link_all_deplibs=yes
9601 ;;
9602
9603 sunos4*)
9604 if test "x$host_vendor" = xsequent; then
9605 # Use $CC to link under sequent, because it throws in some extra .o
9606 # files that make .init and .fini sections work.
9607 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9608 else
9609 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9610 fi
9611 hardcode_libdir_flag_spec='-L$libdir'
9612 hardcode_direct=yes
9613 hardcode_minus_L=yes
9614 hardcode_shlibpath_var=no
9615 ;;
9616
9617 sysv4)
9618 case $host_vendor in
9619 sni)
9620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9621 hardcode_direct=yes # is this really true???
9622 ;;
9623 siemens)
9624 ## LD is ld it makes a PLAMLIB
9625 ## CC just makes a GrossModule.
9626 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9627 reload_cmds='$CC -r -o $output$reload_objs'
9628 hardcode_direct=no
9629 ;;
9630 motorola)
9631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9632 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9633 ;;
9634 esac
9635 runpath_var='LD_RUN_PATH'
9636 hardcode_shlibpath_var=no
9637 ;;
9638
9639 sysv4.3*)
9640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_shlibpath_var=no
9642 export_dynamic_flag_spec='-Bexport'
9643 ;;
9644
9645 sysv4*MP*)
9646 if test -d /usr/nec; then
9647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9648 hardcode_shlibpath_var=no
9649 runpath_var=LD_RUN_PATH
9650 hardcode_runpath_var=yes
9651 ld_shlibs=yes
9652 fi
9653 ;;
9654
9655 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9656 no_undefined_flag='${wl}-z,text'
9657 archive_cmds_need_lc=no
9658 hardcode_shlibpath_var=no
9659 runpath_var='LD_RUN_PATH'
9660
9661 if test "$GCC" = yes; then
9662 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9663 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9664 else
9665 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9666 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9667 fi
9668 ;;
9669
9670 sysv5* | sco3.2v5* | sco5v6*)
9671 # Note: We can NOT use -z defs as we might desire, because we do not
9672 # link with -lc, and that would cause any symbols used from libc to
9673 # always be unresolved, which means just about no library would
9674 # ever link correctly. If we're not using GNU ld we use -z text
9675 # though, which does catch some bad symbols but isn't as heavy-handed
9676 # as -z defs.
9677 no_undefined_flag='${wl}-z,text'
9678 allow_undefined_flag='${wl}-z,nodefs'
9679 archive_cmds_need_lc=no
9680 hardcode_shlibpath_var=no
9681 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9682 hardcode_libdir_separator=':'
9683 link_all_deplibs=yes
9684 export_dynamic_flag_spec='${wl}-Bexport'
9685 runpath_var='LD_RUN_PATH'
9686
9687 if test "$GCC" = yes; then
9688 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9689 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9690 else
9691 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 fi
9694 ;;
9695
9696 uts4*)
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_libdir_flag_spec='-L$libdir'
9699 hardcode_shlibpath_var=no
9700 ;;
9701
9702 *)
9703 ld_shlibs=no
9704 ;;
9705 esac
9706
9707 if test x$host_vendor = xsni; then
9708 case $host in
9709 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9710 export_dynamic_flag_spec='${wl}-Blargedynsym'
9711 ;;
9712 esac
9713 fi
9714 fi
9715
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9717 $as_echo "$ld_shlibs" >&6; }
9718 test "$ld_shlibs" = no && can_build_shared=no
9719
9720 with_gnu_ld=$with_gnu_ld
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736 #
9737 # Do we need to explicitly link libc?
9738 #
9739 case "x$archive_cmds_need_lc" in
9740 x|xyes)
9741 # Assume -lc should be added
9742 archive_cmds_need_lc=yes
9743
9744 if test "$enable_shared" = yes && test "$GCC" = yes; then
9745 case $archive_cmds in
9746 *'~'*)
9747 # FIXME: we may have to deal with multi-command sequences.
9748 ;;
9749 '$CC '*)
9750 # Test whether the compiler implicitly links with -lc since on some
9751 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9752 # to ld, don't add -lc before -lgcc.
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9754 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9755 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 $RM conftest*
9759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9760
9761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9762 (eval $ac_compile) 2>&5
9763 ac_status=$?
9764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9765 test $ac_status = 0; } 2>conftest.err; then
9766 soname=conftest
9767 lib=conftest
9768 libobjs=conftest.$ac_objext
9769 deplibs=
9770 wl=$lt_prog_compiler_wl
9771 pic_flag=$lt_prog_compiler_pic
9772 compiler_flags=-v
9773 linker_flags=-v
9774 verstring=
9775 output_objdir=.
9776 libname=conftest
9777 lt_save_allow_undefined_flag=$allow_undefined_flag
9778 allow_undefined_flag=
9779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9780 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9781 ac_status=$?
9782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9783 test $ac_status = 0; }
9784 then
9785 lt_cv_archive_cmds_need_lc=no
9786 else
9787 lt_cv_archive_cmds_need_lc=yes
9788 fi
9789 allow_undefined_flag=$lt_save_allow_undefined_flag
9790 else
9791 cat conftest.err 1>&5
9792 fi
9793 $RM conftest*
9794
9795 fi
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9797 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9798 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9799 ;;
9800 esac
9801 fi
9802 ;;
9803 esac
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
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9962 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9963
9964 if test "$GCC" = yes; then
9965 case $host_os in
9966 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9967 *) lt_awk_arg="/^libraries:/" ;;
9968 esac
9969 case $host_os in
9970 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9971 *) lt_sed_strip_eq="s,=/,/,g" ;;
9972 esac
9973 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9974 case $lt_search_path_spec in
9975 *\;*)
9976 # if the path contains ";" then we assume it to be the separator
9977 # otherwise default to the standard path separator (i.e. ":") - it is
9978 # assumed that no part of a normal pathname contains ";" but that should
9979 # okay in the real world where ";" in dirpaths is itself problematic.
9980 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9981 ;;
9982 *)
9983 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9984 ;;
9985 esac
9986 # Ok, now we have the path, separated by spaces, we can step through it
9987 # and add multilib dir if necessary.
9988 lt_tmp_lt_search_path_spec=
9989 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9990 for lt_sys_path in $lt_search_path_spec; do
9991 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9992 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9993 else
9994 test -d "$lt_sys_path" && \
9995 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9996 fi
9997 done
9998 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9999 BEGIN {RS=" "; FS="/|\n";} {
10000 lt_foo="";
10001 lt_count=0;
10002 for (lt_i = NF; lt_i > 0; lt_i--) {
10003 if ($lt_i != "" && $lt_i != ".") {
10004 if ($lt_i == "..") {
10005 lt_count++;
10006 } else {
10007 if (lt_count == 0) {
10008 lt_foo="/" $lt_i lt_foo;
10009 } else {
10010 lt_count--;
10011 }
10012 }
10013 }
10014 }
10015 if (lt_foo != "") { lt_freq[lt_foo]++; }
10016 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10017 }'`
10018 # AWK program above erroneously prepends '/' to C:/dos/paths
10019 # for these hosts.
10020 case $host_os in
10021 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10022 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10023 esac
10024 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10025 else
10026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10027 fi
10028 library_names_spec=
10029 libname_spec='lib$name'
10030 soname_spec=
10031 shrext_cmds=".so"
10032 postinstall_cmds=
10033 postuninstall_cmds=
10034 finish_cmds=
10035 finish_eval=
10036 shlibpath_var=
10037 shlibpath_overrides_runpath=unknown
10038 version_type=none
10039 dynamic_linker="$host_os ld.so"
10040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10041 need_lib_prefix=unknown
10042 hardcode_into_libs=no
10043
10044 # when you set need_version to no, make sure it does not cause -set_version
10045 # flags to be left without arguments
10046 need_version=unknown
10047
10048 case $host_os in
10049 aix3*)
10050 version_type=linux
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10052 shlibpath_var=LIBPATH
10053
10054 # AIX 3 has no versioning support, so we append a major version to the name.
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 ;;
10057
10058 aix[4-9]*)
10059 version_type=linux
10060 need_lib_prefix=no
10061 need_version=no
10062 hardcode_into_libs=yes
10063 if test "$host_cpu" = ia64; then
10064 # AIX 5 supports IA64
10065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10066 shlibpath_var=LD_LIBRARY_PATH
10067 else
10068 # With GCC up to 2.95.x, collect2 would create an import file
10069 # for dependence libraries. The import file would start with
10070 # the line `#! .'. This would cause the generated library to
10071 # depend on `.', always an invalid library. This was fixed in
10072 # development snapshots of GCC prior to 3.0.
10073 case $host_os in
10074 aix4 | aix4.[01] | aix4.[01].*)
10075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10076 echo ' yes '
10077 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10078 :
10079 else
10080 can_build_shared=no
10081 fi
10082 ;;
10083 esac
10084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10085 # soname into executable. Probably we can add versioning support to
10086 # collect2, so additional links can be useful in future.
10087 if test "$aix_use_runtimelinking" = yes; then
10088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10089 # instead of lib<name>.a to let people know that these are not
10090 # typical AIX shared libraries.
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092 else
10093 # We preserve .a as extension for shared libraries through AIX4.2
10094 # and later when we are not doing run time linking.
10095 library_names_spec='${libname}${release}.a $libname.a'
10096 soname_spec='${libname}${release}${shared_ext}$major'
10097 fi
10098 shlibpath_var=LIBPATH
10099 fi
10100 ;;
10101
10102 amigaos*)
10103 case $host_cpu in
10104 powerpc)
10105 # Since July 2007 AmigaOS4 officially supports .so libraries.
10106 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108 ;;
10109 m68k)
10110 library_names_spec='$libname.ixlibrary $libname.a'
10111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10112 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'
10113 ;;
10114 esac
10115 ;;
10116
10117 beos*)
10118 library_names_spec='${libname}${shared_ext}'
10119 dynamic_linker="$host_os ld.so"
10120 shlibpath_var=LIBRARY_PATH
10121 ;;
10122
10123 bsdi[45]*)
10124 version_type=linux
10125 need_version=no
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127 soname_spec='${libname}${release}${shared_ext}$major'
10128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10129 shlibpath_var=LD_LIBRARY_PATH
10130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10132 # the default ld.so.conf also contains /usr/contrib/lib and
10133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10134 # libtool to hard-code these into programs
10135 ;;
10136
10137 cygwin* | mingw* | pw32* | cegcc*)
10138 version_type=windows
10139 shrext_cmds=".dll"
10140 need_version=no
10141 need_lib_prefix=no
10142
10143 case $GCC,$host_os in
10144 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10145 library_names_spec='$libname.dll.a'
10146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10147 postinstall_cmds='base_file=`basename \${file}`~
10148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10149 dldir=$destdir/`dirname \$dlpath`~
10150 test -d \$dldir || mkdir -p \$dldir~
10151 $install_prog $dir/$dlname \$dldir/$dlname~
10152 chmod a+x \$dldir/$dlname~
10153 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10154 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10155 fi'
10156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10157 dlpath=$dir/\$dldll~
10158 $RM \$dlpath'
10159 shlibpath_overrides_runpath=yes
10160
10161 case $host_os in
10162 cygwin*)
10163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10165
10166 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10167 ;;
10168 mingw* | cegcc*)
10169 # MinGW DLLs use traditional 'lib' prefix
10170 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10171 ;;
10172 pw32*)
10173 # pw32 DLLs use 'pw' prefix rather than 'lib'
10174 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10175 ;;
10176 esac
10177 ;;
10178
10179 *)
10180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10181 ;;
10182 esac
10183 dynamic_linker='Win32 ld.exe'
10184 # FIXME: first we should search . and the directory the executable is in
10185 shlibpath_var=PATH
10186 ;;
10187
10188 darwin* | rhapsody*)
10189 dynamic_linker="$host_os dyld"
10190 version_type=darwin
10191 need_lib_prefix=no
10192 need_version=no
10193 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10194 soname_spec='${libname}${release}${major}$shared_ext'
10195 shlibpath_overrides_runpath=yes
10196 shlibpath_var=DYLD_LIBRARY_PATH
10197 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10198
10199 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10200 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10201 ;;
10202
10203 dgux*)
10204 version_type=linux
10205 need_lib_prefix=no
10206 need_version=no
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 ;;
10211
10212 freebsd* | dragonfly*)
10213 # DragonFly does not have aout. When/if they implement a new
10214 # versioning mechanism, adjust this.
10215 if test -x /usr/bin/objformat; then
10216 objformat=`/usr/bin/objformat`
10217 else
10218 case $host_os in
10219 freebsd[23].*) objformat=aout ;;
10220 *) objformat=elf ;;
10221 esac
10222 fi
10223 version_type=freebsd-$objformat
10224 case $version_type in
10225 freebsd-elf*)
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10227 need_version=no
10228 need_lib_prefix=no
10229 ;;
10230 freebsd-*)
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10232 need_version=yes
10233 ;;
10234 esac
10235 shlibpath_var=LD_LIBRARY_PATH
10236 case $host_os in
10237 freebsd2.*)
10238 shlibpath_overrides_runpath=yes
10239 ;;
10240 freebsd3.[01]* | freebsdelf3.[01]*)
10241 shlibpath_overrides_runpath=yes
10242 hardcode_into_libs=yes
10243 ;;
10244 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10245 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10246 shlibpath_overrides_runpath=no
10247 hardcode_into_libs=yes
10248 ;;
10249 *) # from 4.6 on, and DragonFly
10250 shlibpath_overrides_runpath=yes
10251 hardcode_into_libs=yes
10252 ;;
10253 esac
10254 ;;
10255
10256 haiku*)
10257 version_type=linux
10258 need_lib_prefix=no
10259 need_version=no
10260 dynamic_linker="$host_os runtime_loader"
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10262 soname_spec='${libname}${release}${shared_ext}$major'
10263 shlibpath_var=LIBRARY_PATH
10264 shlibpath_overrides_runpath=yes
10265 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10266 hardcode_into_libs=yes
10267 ;;
10268
10269 hpux9* | hpux10* | hpux11*)
10270 # Give a soname corresponding to the major version so that dld.sl refuses to
10271 # link against other versions.
10272 version_type=sunos
10273 need_lib_prefix=no
10274 need_version=no
10275 case $host_cpu in
10276 ia64*)
10277 shrext_cmds='.so'
10278 hardcode_into_libs=yes
10279 dynamic_linker="$host_os dld.so"
10280 shlibpath_var=LD_LIBRARY_PATH
10281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283 soname_spec='${libname}${release}${shared_ext}$major'
10284 if test "X$HPUX_IA64_MODE" = X32; then
10285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10286 else
10287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10288 fi
10289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10290 ;;
10291 hppa*64*)
10292 shrext_cmds='.sl'
10293 hardcode_into_libs=yes
10294 dynamic_linker="$host_os dld.sl"
10295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10301 ;;
10302 *)
10303 shrext_cmds='.sl'
10304 dynamic_linker="$host_os dld.sl"
10305 shlibpath_var=SHLIB_PATH
10306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 ;;
10310 esac
10311 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10312 postinstall_cmds='chmod 555 $lib'
10313 # or fails outright, so override atomically:
10314 install_override_mode=555
10315 ;;
10316
10317 interix[3-9]*)
10318 version_type=linux
10319 need_lib_prefix=no
10320 need_version=no
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=no
10326 hardcode_into_libs=yes
10327 ;;
10328
10329 irix5* | irix6* | nonstopux*)
10330 case $host_os in
10331 nonstopux*) version_type=nonstopux ;;
10332 *)
10333 if test "$lt_cv_prog_gnu_ld" = yes; then
10334 version_type=linux
10335 else
10336 version_type=irix
10337 fi ;;
10338 esac
10339 need_lib_prefix=no
10340 need_version=no
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10343 case $host_os in
10344 irix5* | nonstopux*)
10345 libsuff= shlibsuff=
10346 ;;
10347 *)
10348 case $LD in # libtool.m4 will add one of these switches to LD
10349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10350 libsuff= shlibsuff= libmagic=32-bit;;
10351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10352 libsuff=32 shlibsuff=N32 libmagic=N32;;
10353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10355 *) libsuff= shlibsuff= libmagic=never-match;;
10356 esac
10357 ;;
10358 esac
10359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10360 shlibpath_overrides_runpath=no
10361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10363 hardcode_into_libs=yes
10364 ;;
10365
10366 # No shared lib support for Linux oldld, aout, or coff.
10367 linux*oldld* | linux*aout* | linux*coff*)
10368 dynamic_linker=no
10369 ;;
10370
10371 # This must be Linux ELF.
10372
10373 # uclinux* changes (here and below) have been submitted to the libtool
10374 # project, but have not yet been accepted: they are GCC-local changes
10375 # for the time being. (See
10376 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10377 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10378 version_type=linux
10379 need_lib_prefix=no
10380 need_version=no
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=no
10386
10387 # Some binutils ld are patched to set DT_RUNPATH
10388 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 lt_cv_shlibpath_overrides_runpath=no
10392 save_LDFLAGS=$LDFLAGS
10393 save_libdir=$libdir
10394 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10395 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10398
10399 int
10400 main ()
10401 {
10402
10403 ;
10404 return 0;
10405 }
10406 _ACEOF
10407 if ac_fn_c_try_link "$LINENO"; then :
10408 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10409 lt_cv_shlibpath_overrides_runpath=yes
10410 fi
10411 fi
10412 rm -f core conftest.err conftest.$ac_objext \
10413 conftest$ac_exeext conftest.$ac_ext
10414 LDFLAGS=$save_LDFLAGS
10415 libdir=$save_libdir
10416
10417 fi
10418
10419 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10420
10421 # This implies no fast_install, which is unacceptable.
10422 # Some rework will be needed to allow for fast_install
10423 # before this can be enabled.
10424 hardcode_into_libs=yes
10425
10426 # Append ld.so.conf contents to the search path
10427 if test -f /etc/ld.so.conf; then
10428 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' ' '`
10429 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10430 fi
10431
10432 # We used to test for /lib/ld.so.1 and disable shared libraries on
10433 # powerpc, because MkLinux only supported shared libraries with the
10434 # GNU dynamic linker. Since this was broken with cross compilers,
10435 # most powerpc-linux boxes support dynamic linking these days and
10436 # people can always --disable-shared, the test was removed, and we
10437 # assume the GNU/Linux dynamic linker is in use.
10438 dynamic_linker='GNU/Linux ld.so'
10439 ;;
10440
10441 netbsd*)
10442 version_type=sunos
10443 need_lib_prefix=no
10444 need_version=no
10445 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10448 dynamic_linker='NetBSD (a.out) ld.so'
10449 else
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 dynamic_linker='NetBSD ld.elf_so'
10453 fi
10454 shlibpath_var=LD_LIBRARY_PATH
10455 shlibpath_overrides_runpath=yes
10456 hardcode_into_libs=yes
10457 ;;
10458
10459 newsos6)
10460 version_type=linux
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10462 shlibpath_var=LD_LIBRARY_PATH
10463 shlibpath_overrides_runpath=yes
10464 ;;
10465
10466 *nto* | *qnx*)
10467 version_type=qnx
10468 need_lib_prefix=no
10469 need_version=no
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471 soname_spec='${libname}${release}${shared_ext}$major'
10472 shlibpath_var=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath=no
10474 hardcode_into_libs=yes
10475 dynamic_linker='ldqnx.so'
10476 ;;
10477
10478 openbsd*)
10479 version_type=sunos
10480 sys_lib_dlsearch_path_spec="/usr/lib"
10481 need_lib_prefix=no
10482 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10483 case $host_os in
10484 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10485 *) need_version=no ;;
10486 esac
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10489 shlibpath_var=LD_LIBRARY_PATH
10490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10491 case $host_os in
10492 openbsd2.[89] | openbsd2.[89].*)
10493 shlibpath_overrides_runpath=no
10494 ;;
10495 *)
10496 shlibpath_overrides_runpath=yes
10497 ;;
10498 esac
10499 else
10500 shlibpath_overrides_runpath=yes
10501 fi
10502 ;;
10503
10504 os2*)
10505 libname_spec='$name'
10506 shrext_cmds=".dll"
10507 need_lib_prefix=no
10508 library_names_spec='$libname${shared_ext} $libname.a'
10509 dynamic_linker='OS/2 ld.exe'
10510 shlibpath_var=LIBPATH
10511 ;;
10512
10513 osf3* | osf4* | osf5*)
10514 version_type=osf
10515 need_lib_prefix=no
10516 need_version=no
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 shlibpath_var=LD_LIBRARY_PATH
10520 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10521 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10522 ;;
10523
10524 rdos*)
10525 dynamic_linker=no
10526 ;;
10527
10528 solaris*)
10529 version_type=linux
10530 need_lib_prefix=no
10531 need_version=no
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 shlibpath_var=LD_LIBRARY_PATH
10535 shlibpath_overrides_runpath=yes
10536 hardcode_into_libs=yes
10537 # ldd complains unless libraries are executable
10538 postinstall_cmds='chmod +x $lib'
10539 ;;
10540
10541 sunos4*)
10542 version_type=sunos
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10544 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10545 shlibpath_var=LD_LIBRARY_PATH
10546 shlibpath_overrides_runpath=yes
10547 if test "$with_gnu_ld" = yes; then
10548 need_lib_prefix=no
10549 fi
10550 need_version=yes
10551 ;;
10552
10553 sysv4 | sysv4.3*)
10554 version_type=linux
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 soname_spec='${libname}${release}${shared_ext}$major'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 case $host_vendor in
10559 sni)
10560 shlibpath_overrides_runpath=no
10561 need_lib_prefix=no
10562 runpath_var=LD_RUN_PATH
10563 ;;
10564 siemens)
10565 need_lib_prefix=no
10566 ;;
10567 motorola)
10568 need_lib_prefix=no
10569 need_version=no
10570 shlibpath_overrides_runpath=no
10571 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10572 ;;
10573 esac
10574 ;;
10575
10576 sysv4*MP*)
10577 if test -d /usr/nec ;then
10578 version_type=linux
10579 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10580 soname_spec='$libname${shared_ext}.$major'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 fi
10583 ;;
10584
10585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10586 version_type=freebsd-elf
10587 need_lib_prefix=no
10588 need_version=no
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 shlibpath_var=LD_LIBRARY_PATH
10592 shlibpath_overrides_runpath=yes
10593 hardcode_into_libs=yes
10594 if test "$with_gnu_ld" = yes; then
10595 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10596 else
10597 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10598 case $host_os in
10599 sco3.2v5*)
10600 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10601 ;;
10602 esac
10603 fi
10604 sys_lib_dlsearch_path_spec='/usr/lib'
10605 ;;
10606
10607 tpf*)
10608 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10609 version_type=linux
10610 need_lib_prefix=no
10611 need_version=no
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 shlibpath_overrides_runpath=no
10615 hardcode_into_libs=yes
10616 ;;
10617
10618 uts4*)
10619 version_type=linux
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 shlibpath_var=LD_LIBRARY_PATH
10623 ;;
10624
10625 # Shared libraries for VwWorks, >= 7 only at this stage
10626 # and (fpic) still incompatible with "large" code models
10627 # in a few configurations. Only for RTP mode in any case,
10628 # and upon explicit request at configure time.
10629 vxworks7*)
10630 dynamic_linker=no
10631 case ${with_multisubdir}-${enable_shared} in
10632 *large*)
10633 ;;
10634 *mrtp*-yes)
10635 version_type=linux
10636 need_lib_prefix=no
10637 need_version=no
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 soname_spec='${libname}${release}${shared_ext}$major'
10640 dynamic_linker="$host_os module_loader"
10641 ;;
10642 esac
10643 ;;
10644 *)
10645 dynamic_linker=no
10646 ;;
10647 esac
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10649 $as_echo "$dynamic_linker" >&6; }
10650 test "$dynamic_linker" = no && can_build_shared=no
10651
10652 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10653 if test "$GCC" = yes; then
10654 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10655 fi
10656
10657 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10658 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10659 fi
10660 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10661 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10662 fi
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
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10756 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10757 hardcode_action=
10758 if test -n "$hardcode_libdir_flag_spec" ||
10759 test -n "$runpath_var" ||
10760 test "X$hardcode_automatic" = "Xyes" ; then
10761
10762 # We can hardcode non-existent directories.
10763 if test "$hardcode_direct" != no &&
10764 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10765 # have to relink, otherwise we might link with an installed library
10766 # when we should be linking with a yet-to-be-installed one
10767 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10768 test "$hardcode_minus_L" != no; then
10769 # Linking always hardcodes the temporary library directory.
10770 hardcode_action=relink
10771 else
10772 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10773 hardcode_action=immediate
10774 fi
10775 else
10776 # We cannot hardcode anything, or else we can only hardcode existing
10777 # directories.
10778 hardcode_action=unsupported
10779 fi
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10781 $as_echo "$hardcode_action" >&6; }
10782
10783 if test "$hardcode_action" = relink ||
10784 test "$inherit_rpath" = yes; then
10785 # Fast installation is not supported
10786 enable_fast_install=no
10787 elif test "$shlibpath_overrides_runpath" = yes ||
10788 test "$enable_shared" = no; then
10789 # Fast installation is not necessary
10790 enable_fast_install=needless
10791 fi
10792
10793
10794
10795
10796
10797
10798 if test "x$enable_dlopen" != xyes; then
10799 enable_dlopen=unknown
10800 enable_dlopen_self=unknown
10801 enable_dlopen_self_static=unknown
10802 else
10803 lt_cv_dlopen=no
10804 lt_cv_dlopen_libs=
10805
10806 case $host_os in
10807 beos*)
10808 lt_cv_dlopen="load_add_on"
10809 lt_cv_dlopen_libs=
10810 lt_cv_dlopen_self=yes
10811 ;;
10812
10813 mingw* | pw32* | cegcc*)
10814 lt_cv_dlopen="LoadLibrary"
10815 lt_cv_dlopen_libs=
10816 ;;
10817
10818 cygwin*)
10819 lt_cv_dlopen="dlopen"
10820 lt_cv_dlopen_libs=
10821 ;;
10822
10823 darwin*)
10824 # if libdl is installed we need to link against it
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10826 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10827 if ${ac_cv_lib_dl_dlopen+:} false; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 ac_check_lib_save_LIBS=$LIBS
10831 LIBS="-ldl $LIBS"
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10834
10835 /* Override any GCC internal prototype to avoid an error.
10836 Use char because int might match the return type of a GCC
10837 builtin and then its argument prototype would still apply. */
10838 #ifdef __cplusplus
10839 extern "C"
10840 #endif
10841 char dlopen ();
10842 int
10843 main ()
10844 {
10845 return dlopen ();
10846 ;
10847 return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_link "$LINENO"; then :
10851 ac_cv_lib_dl_dlopen=yes
10852 else
10853 ac_cv_lib_dl_dlopen=no
10854 fi
10855 rm -f core conftest.err conftest.$ac_objext \
10856 conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_lib_save_LIBS
10858 fi
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10860 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10861 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10863 else
10864
10865 lt_cv_dlopen="dyld"
10866 lt_cv_dlopen_libs=
10867 lt_cv_dlopen_self=yes
10868
10869 fi
10870
10871 ;;
10872
10873 *)
10874 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10875 if test "x$ac_cv_func_shl_load" = xyes; then :
10876 lt_cv_dlopen="shl_load"
10877 else
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10879 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10880 if ${ac_cv_lib_dld_shl_load+:} false; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 ac_check_lib_save_LIBS=$LIBS
10884 LIBS="-ldld $LIBS"
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10887
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10891 #ifdef __cplusplus
10892 extern "C"
10893 #endif
10894 char shl_load ();
10895 int
10896 main ()
10897 {
10898 return shl_load ();
10899 ;
10900 return 0;
10901 }
10902 _ACEOF
10903 if ac_fn_c_try_link "$LINENO"; then :
10904 ac_cv_lib_dld_shl_load=yes
10905 else
10906 ac_cv_lib_dld_shl_load=no
10907 fi
10908 rm -f core conftest.err conftest.$ac_objext \
10909 conftest$ac_exeext conftest.$ac_ext
10910 LIBS=$ac_check_lib_save_LIBS
10911 fi
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10913 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10914 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10915 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10916 else
10917 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10918 if test "x$ac_cv_func_dlopen" = xyes; then :
10919 lt_cv_dlopen="dlopen"
10920 else
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10922 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10923 if ${ac_cv_lib_dl_dlopen+:} false; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926 ac_check_lib_save_LIBS=$LIBS
10927 LIBS="-ldl $LIBS"
10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h. */
10930
10931 /* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
10934 #ifdef __cplusplus
10935 extern "C"
10936 #endif
10937 char dlopen ();
10938 int
10939 main ()
10940 {
10941 return dlopen ();
10942 ;
10943 return 0;
10944 }
10945 _ACEOF
10946 if ac_fn_c_try_link "$LINENO"; then :
10947 ac_cv_lib_dl_dlopen=yes
10948 else
10949 ac_cv_lib_dl_dlopen=no
10950 fi
10951 rm -f core conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10954 fi
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10956 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10957 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10959 else
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10961 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10962 if ${ac_cv_lib_svld_dlopen+:} false; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-lsvld $LIBS"
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10969
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10973 #ifdef __cplusplus
10974 extern "C"
10975 #endif
10976 char dlopen ();
10977 int
10978 main ()
10979 {
10980 return dlopen ();
10981 ;
10982 return 0;
10983 }
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 ac_cv_lib_svld_dlopen=yes
10987 else
10988 ac_cv_lib_svld_dlopen=no
10989 fi
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10993 fi
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10995 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10996 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10998 else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11000 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11001 if ${ac_cv_lib_dld_dld_link+:} false; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004 ac_check_lib_save_LIBS=$LIBS
11005 LIBS="-ldld $LIBS"
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 char dld_link ();
11016 int
11017 main ()
11018 {
11019 return dld_link ();
11020 ;
11021 return 0;
11022 }
11023 _ACEOF
11024 if ac_fn_c_try_link "$LINENO"; then :
11025 ac_cv_lib_dld_dld_link=yes
11026 else
11027 ac_cv_lib_dld_dld_link=no
11028 fi
11029 rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11032 fi
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11034 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11035 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11036 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11037 fi
11038
11039
11040 fi
11041
11042
11043 fi
11044
11045
11046 fi
11047
11048
11049 fi
11050
11051
11052 fi
11053
11054 ;;
11055 esac
11056
11057 if test "x$lt_cv_dlopen" != xno; then
11058 enable_dlopen=yes
11059 else
11060 enable_dlopen=no
11061 fi
11062
11063 case $lt_cv_dlopen in
11064 dlopen)
11065 save_CPPFLAGS="$CPPFLAGS"
11066 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11067
11068 save_LDFLAGS="$LDFLAGS"
11069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11070
11071 save_LIBS="$LIBS"
11072 LIBS="$lt_cv_dlopen_libs $LIBS"
11073
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11075 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11076 if ${lt_cv_dlopen_self+:} false; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 if test "$cross_compiling" = yes; then :
11080 lt_cv_dlopen_self=cross
11081 else
11082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11083 lt_status=$lt_dlunknown
11084 cat > conftest.$ac_ext <<_LT_EOF
•11085 #line 11085 "configure"
11086 #include "confdefs.h"
11087
11088 #if HAVE_DLFCN_H
11089 #include <dlfcn.h>
11090 #endif
11091
11092 #include <stdio.h>
11093
11094 #ifdef RTLD_GLOBAL
11095 # define LT_DLGLOBAL RTLD_GLOBAL
11096 #else
11097 # ifdef DL_GLOBAL
11098 # define LT_DLGLOBAL DL_GLOBAL
11099 # else
11100 # define LT_DLGLOBAL 0
11101 # endif
11102 #endif
11103
11104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11105 find out it does not work in some platform. */
11106 #ifndef LT_DLLAZY_OR_NOW
11107 # ifdef RTLD_LAZY
11108 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11109 # else
11110 # ifdef DL_LAZY
11111 # define LT_DLLAZY_OR_NOW DL_LAZY
11112 # else
11113 # ifdef RTLD_NOW
11114 # define LT_DLLAZY_OR_NOW RTLD_NOW
11115 # else
11116 # ifdef DL_NOW
11117 # define LT_DLLAZY_OR_NOW DL_NOW
11118 # else
11119 # define LT_DLLAZY_OR_NOW 0
11120 # endif
11121 # endif
11122 # endif
11123 # endif
11124 #endif
11125
11126 /* When -fvisbility=hidden is used, assume the code has been annotated
11127 correspondingly for the symbols needed. */
11128 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11129 void fnord () __attribute__((visibility("default")));
11130 #endif
11131
11132 void fnord () { int i=42; }
11133 int main ()
11134 {
11135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11136 int status = $lt_dlunknown;
11137
11138 if (self)
11139 {
11140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11141 else
11142 {
11143 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11144 else puts (dlerror ());
11145 }
11146 /* dlclose (self); */
11147 }
11148 else
11149 puts (dlerror ());
11150
11151 return status;
11152 }
11153 _LT_EOF
11154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11155 (eval $ac_link) 2>&5
11156 ac_status=$?
11157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11158 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11159 (./conftest; exit; ) >&5 2>/dev/null
11160 lt_status=$?
11161 case x$lt_status in
11162 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11163 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11164 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11165 esac
11166 else :
11167 # compilation failed
11168 lt_cv_dlopen_self=no
11169 fi
11170 fi
11171 rm -fr conftest*
11172
11173
11174 fi
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11176 $as_echo "$lt_cv_dlopen_self" >&6; }
11177
11178 if test "x$lt_cv_dlopen_self" = xyes; then
11179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11181 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11182 if ${lt_cv_dlopen_self_static+:} false; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 if test "$cross_compiling" = yes; then :
11186 lt_cv_dlopen_self_static=cross
11187 else
11188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11189 lt_status=$lt_dlunknown
11190 cat > conftest.$ac_ext <<_LT_EOF
•11191 #line 11191 "configure"
11192 #include "confdefs.h"
11193
11194 #if HAVE_DLFCN_H
11195 #include <dlfcn.h>
11196 #endif
11197
11198 #include <stdio.h>
11199
11200 #ifdef RTLD_GLOBAL
11201 # define LT_DLGLOBAL RTLD_GLOBAL
11202 #else
11203 # ifdef DL_GLOBAL
11204 # define LT_DLGLOBAL DL_GLOBAL
11205 # else
11206 # define LT_DLGLOBAL 0
11207 # endif
11208 #endif
11209
11210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11211 find out it does not work in some platform. */
11212 #ifndef LT_DLLAZY_OR_NOW
11213 # ifdef RTLD_LAZY
11214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11215 # else
11216 # ifdef DL_LAZY
11217 # define LT_DLLAZY_OR_NOW DL_LAZY
11218 # else
11219 # ifdef RTLD_NOW
11220 # define LT_DLLAZY_OR_NOW RTLD_NOW
11221 # else
11222 # ifdef DL_NOW
11223 # define LT_DLLAZY_OR_NOW DL_NOW
11224 # else
11225 # define LT_DLLAZY_OR_NOW 0
11226 # endif
11227 # endif
11228 # endif
11229 # endif
11230 #endif
11231
11232 /* When -fvisbility=hidden is used, assume the code has been annotated
11233 correspondingly for the symbols needed. */
11234 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11235 void fnord () __attribute__((visibility("default")));
11236 #endif
11237
11238 void fnord () { int i=42; }
11239 int main ()
11240 {
11241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11242 int status = $lt_dlunknown;
11243
11244 if (self)
11245 {
11246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11247 else
11248 {
11249 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11250 else puts (dlerror ());
11251 }
11252 /* dlclose (self); */
11253 }
11254 else
11255 puts (dlerror ());
11256
11257 return status;
11258 }
11259 _LT_EOF
11260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11261 (eval $ac_link) 2>&5
11262 ac_status=$?
11263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11264 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11265 (./conftest; exit; ) >&5 2>/dev/null
11266 lt_status=$?
11267 case x$lt_status in
11268 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11269 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11270 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11271 esac
11272 else :
11273 # compilation failed
11274 lt_cv_dlopen_self_static=no
11275 fi
11276 fi
11277 rm -fr conftest*
11278
11279
11280 fi
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11282 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11283 fi
11284
11285 CPPFLAGS="$save_CPPFLAGS"
11286 LDFLAGS="$save_LDFLAGS"
11287 LIBS="$save_LIBS"
11288 ;;
11289 esac
11290
11291 case $lt_cv_dlopen_self in
11292 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11293 *) enable_dlopen_self=unknown ;;
11294 esac
11295
11296 case $lt_cv_dlopen_self_static in
11297 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11298 *) enable_dlopen_self_static=unknown ;;
11299 esac
11300 fi
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318 striplib=
11319 old_striplib=
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11321 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11322 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11323 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11324 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11326 $as_echo "yes" >&6; }
11327 else
11328 # FIXME - insert some real tests, host_os isn't really good enough
11329 case $host_os in
11330 darwin*)
11331 if test -n "$STRIP" ; then
11332 striplib="$STRIP -x"
11333 old_striplib="$STRIP -S"
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11335 $as_echo "yes" >&6; }
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11339 fi
11340 ;;
11341 *)
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11344 ;;
11345 esac
11346 fi
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359 # Report which library types will actually be built
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11361 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11363 $as_echo "$can_build_shared" >&6; }
11364
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11366 $as_echo_n "checking whether to build shared libraries... " >&6; }
11367 test "$can_build_shared" = "no" && enable_shared=no
11368
11369 # On AIX, shared libraries and static libraries use the same namespace, and
11370 # are all built from PIC.
11371 case $host_os in
11372 aix3*)
11373 test "$enable_shared" = yes && enable_static=no
11374 if test -n "$RANLIB"; then
11375 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11376 postinstall_cmds='$RANLIB $lib'
11377 fi
11378 ;;
11379
11380 aix[4-9]*)
11381 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11382 test "$enable_shared" = yes && enable_static=no
11383 fi
11384 ;;
11385 esac
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11387 $as_echo "$enable_shared" >&6; }
11388
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11390 $as_echo_n "checking whether to build static libraries... " >&6; }
11391 # Make sure either enable_shared or enable_static is yes.
11392 test "$enable_shared" = yes || enable_static=yes
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11394 $as_echo "$enable_static" >&6; }
11395
11396
11397
11398
11399 fi
11400 ac_ext=c
11401 ac_cpp='$CPP $CPPFLAGS'
11402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11405
11406 CC="$lt_save_CC"
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420 ac_config_commands="$ac_config_commands libtool"
11421
11422
11423
11424
11425 # Only expand once:
11426
11427
11428
11429 # The tests for host and target for $enable_largefile require
11430 # canonical names.
11431
11432
11433
11434 # As the $enable_largefile decision depends on --enable-plugins we must set it
11435 # even in directories otherwise not depending on the $plugins option.
11436
11437
11438 maybe_plugins=no
11439 for ac_header in dlfcn.h
11440 do :
11441 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11442 "
11443 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11444 cat >>confdefs.h <<_ACEOF
11445 #define HAVE_DLFCN_H 1
11446 _ACEOF
11447 maybe_plugins=yes
11448 fi
11449
11450 done
11451
11452 for ac_header in windows.h
11453 do :
11454 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11455 "
11456 if test "x$ac_cv_header_windows_h" = xyes; then :
11457 cat >>confdefs.h <<_ACEOF
11458 #define HAVE_WINDOWS_H 1
11459 _ACEOF
11460 maybe_plugins=yes
11461 fi
11462
11463 done
11464
11465
11466 # Check whether --enable-plugins was given.
11467 if test "${enable_plugins+set}" = set; then :
11468 enableval=$enable_plugins; case "${enableval}" in
11469 no) plugins=no ;;
11470 *) plugins=yes
11471 if test "$maybe_plugins" != "yes" ; then
11472 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11473 fi ;;
11474 esac
11475 else
11476 plugins=$maybe_plugins
11477
11478 fi
11479
11480 if test "$plugins" = "yes"; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11482 $as_echo_n "checking for library containing dlsym... " >&6; }
11483 if ${ac_cv_search_dlsym+:} false; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 ac_func_search_save_LIBS=$LIBS
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11489
11490 /* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11493 #ifdef __cplusplus
11494 extern "C"
11495 #endif
11496 char dlsym ();
11497 int
11498 main ()
11499 {
11500 return dlsym ();
11501 ;
11502 return 0;
11503 }
11504 _ACEOF
11505 for ac_lib in '' dl; do
11506 if test -z "$ac_lib"; then
11507 ac_res="none required"
11508 else
11509 ac_res=-l$ac_lib
11510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11511 fi
11512 if ac_fn_c_try_link "$LINENO"; then :
11513 ac_cv_search_dlsym=$ac_res
11514 fi
11515 rm -f core conftest.err conftest.$ac_objext \
11516 conftest$ac_exeext
11517 if ${ac_cv_search_dlsym+:} false; then :
11518 break
11519 fi
11520 done
11521 if ${ac_cv_search_dlsym+:} false; then :
11522
11523 else
11524 ac_cv_search_dlsym=no
11525 fi
11526 rm conftest.$ac_ext
11527 LIBS=$ac_func_search_save_LIBS
11528 fi
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11530 $as_echo "$ac_cv_search_dlsym" >&6; }
11531 ac_res=$ac_cv_search_dlsym
11532 if test "$ac_res" != no; then :
11533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11534
11535 fi
11536
11537 fi
11538
11539
11540 case "${host}" in
11541 sparc-*-solaris*|i?86-*-solaris*)
11542 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11543 # were mutually exclusive until Solaris 11.3. Without procfs support,
11544 # the bfd/ elf module cannot provide certain routines such as
11545 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11546 # explicitly requested large-file support through the
11547 # --enable-largefile switch, disable large-file support in favor of
11548 # procfs support.
11549 #
11550 # Check if <sys/procfs.h> is incompatible with large-file support.
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11553 #define _FILE_OFFSET_BITS 64
11554 #define _STRUCTURED_PROC 1
11555 #include <sys/procfs.h>
11556 int
11557 main ()
11558 {
11559
11560 ;
11561 return 0;
11562 }
11563 _ACEOF
11564 if ac_fn_c_try_compile "$LINENO"; then :
11565 acx_cv_procfs_lfs=yes
11566 else
11567 acx_cv_procfs_lfs=no
11568 fi
11569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11570 #
11571 # Forcefully disable large-file support only if necessary, gdb is in
11572 # tree and enabled.
11573 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11574 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11575 : ${enable_largefile="no"}
11576 if test "$plugins" = yes; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11578 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11579 $as_echo "$as_me: WARNING:
11580 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11581 plugins=no
11582 fi
11583 fi
11584 #
11585 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11586 # benefit of g++ 9+ which predefines it on Solaris.
11587 if test "$enable_largefile" = no; then
11588 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11589
11590 fi
11591 ;;
11592 esac
11593
11594 # Check whether --enable-largefile was given.
11595 if test "${enable_largefile+set}" = set; then :
11596 enableval=$enable_largefile;
11597 fi
11598
11599 if test "$enable_largefile" != no; then
11600
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11602 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11603 if ${ac_cv_sys_largefile_CC+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 ac_cv_sys_largefile_CC=no
11607 if test "$GCC" != yes; then
11608 ac_save_CC=$CC
11609 while :; do
11610 # IRIX 6.2 and later do not support large files by default,
11611 # so use the C compiler's -n32 option if that helps.
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11614 #include <sys/types.h>
11615 /* Check that off_t can represent 2**63 - 1 correctly.
11616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11617 since some C++ compilers masquerading as C compilers
11618 incorrectly reject 9223372036854775807. */
11619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11621 && LARGE_OFF_T % 2147483647 == 1)
11622 ? 1 : -1];
11623 int
11624 main ()
11625 {
11626
11627 ;
11628 return 0;
11629 }
11630 _ACEOF
11631 if ac_fn_c_try_compile "$LINENO"; then :
11632 break
11633 fi
11634 rm -f core conftest.err conftest.$ac_objext
11635 CC="$CC -n32"
11636 if ac_fn_c_try_compile "$LINENO"; then :
11637 ac_cv_sys_largefile_CC=' -n32'; break
11638 fi
11639 rm -f core conftest.err conftest.$ac_objext
11640 break
11641 done
11642 CC=$ac_save_CC
11643 rm -f conftest.$ac_ext
11644 fi
11645 fi
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11647 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11648 if test "$ac_cv_sys_largefile_CC" != no; then
11649 CC=$CC$ac_cv_sys_largefile_CC
11650 fi
11651
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11653 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11654 if ${ac_cv_sys_file_offset_bits+:} false; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 while :; do
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11660 #include <sys/types.h>
11661 /* Check that off_t can represent 2**63 - 1 correctly.
11662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11663 since some C++ compilers masquerading as C compilers
11664 incorrectly reject 9223372036854775807. */
11665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11667 && LARGE_OFF_T % 2147483647 == 1)
11668 ? 1 : -1];
11669 int
11670 main ()
11671 {
11672
11673 ;
11674 return 0;
11675 }
11676 _ACEOF
11677 if ac_fn_c_try_compile "$LINENO"; then :
11678 ac_cv_sys_file_offset_bits=no; break
11679 fi
11680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11683 #define _FILE_OFFSET_BITS 64
11684 #include <sys/types.h>
11685 /* Check that off_t can represent 2**63 - 1 correctly.
11686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11687 since some C++ compilers masquerading as C compilers
11688 incorrectly reject 9223372036854775807. */
11689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11691 && LARGE_OFF_T % 2147483647 == 1)
11692 ? 1 : -1];
11693 int
11694 main ()
11695 {
11696
11697 ;
11698 return 0;
11699 }
11700 _ACEOF
11701 if ac_fn_c_try_compile "$LINENO"; then :
11702 ac_cv_sys_file_offset_bits=64; break
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11705 ac_cv_sys_file_offset_bits=unknown
11706 break
11707 done
11708 fi
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11710 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11711 case $ac_cv_sys_file_offset_bits in #(
11712 no | unknown) ;;
11713 *)
11714 cat >>confdefs.h <<_ACEOF
11715 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11716 _ACEOF
11717 ;;
11718 esac
11719 rm -rf conftest*
11720 if test $ac_cv_sys_file_offset_bits = unknown; then
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11722 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11723 if ${ac_cv_sys_large_files+:} false; then :
11724 $as_echo_n "(cached) " >&6
11725 else
11726 while :; do
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11729 #include <sys/types.h>
11730 /* Check that off_t can represent 2**63 - 1 correctly.
11731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11732 since some C++ compilers masquerading as C compilers
11733 incorrectly reject 9223372036854775807. */
11734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11736 && LARGE_OFF_T % 2147483647 == 1)
11737 ? 1 : -1];
11738 int
11739 main ()
11740 {
11741
11742 ;
11743 return 0;
11744 }
11745 _ACEOF
11746 if ac_fn_c_try_compile "$LINENO"; then :
11747 ac_cv_sys_large_files=no; break
11748 fi
11749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752 #define _LARGE_FILES 1
11753 #include <sys/types.h>
11754 /* Check that off_t can represent 2**63 - 1 correctly.
11755 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11756 since some C++ compilers masquerading as C compilers
11757 incorrectly reject 9223372036854775807. */
11758 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11759 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11760 && LARGE_OFF_T % 2147483647 == 1)
11761 ? 1 : -1];
11762 int
11763 main ()
11764 {
11765
11766 ;
11767 return 0;
11768 }
11769 _ACEOF
11770 if ac_fn_c_try_compile "$LINENO"; then :
11771 ac_cv_sys_large_files=1; break
11772 fi
11773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11774 ac_cv_sys_large_files=unknown
11775 break
11776 done
11777 fi
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11779 $as_echo "$ac_cv_sys_large_files" >&6; }
11780 case $ac_cv_sys_large_files in #(
11781 no | unknown) ;;
11782 *)
11783 cat >>confdefs.h <<_ACEOF
11784 #define _LARGE_FILES $ac_cv_sys_large_files
11785 _ACEOF
11786 ;;
11787 esac
11788 rm -rf conftest*
11789 fi
11790
11791
11792 fi
11793
11794
11795
11796 ac_checking=
11797 . ${srcdir}/../bfd/development.sh
11798 test "$development" = true && ac_checking=yes
11799 # Check whether --enable-checking was given.
11800 if test "${enable_checking+set}" = set; then :
11801 enableval=$enable_checking; case "${enableval}" in
11802 no|none) ac_checking= ;;
11803 *) ac_checking=yes ;;
11804 esac
11805 fi
11806 if test x$ac_checking != x ; then
11807
11808 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11809
11810 fi
11811
11812 # Check whether --enable-targets was given.
11813 if test "${enable_targets+set}" = set; then :
11814 enableval=$enable_targets; case "${enableval}" in
11815 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11816 ;;
11817 no) enable_targets= ;;
11818 *) enable_targets=$enableval ;;
11819 esac
11820 fi
11821
11822
11823 # Check whether --enable-deterministic-archives was given.
11824 if test "${enable_deterministic_archives+set}" = set; then :
11825 enableval=$enable_deterministic_archives;
11826 if test "${enableval}" = no; then
11827 default_ar_deterministic=0
11828 else
11829 default_ar_deterministic=1
11830 fi
11831 else
11832 default_ar_deterministic=0
11833 fi
11834
11835
11836
11837 cat >>confdefs.h <<_ACEOF
11838 #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11839 _ACEOF
11840
11841
11842
11843 # Check whether --enable-default-strings-all was given.
11844 if test "${enable_default_strings_all+set}" = set; then :
11845 enableval=$enable_default_strings_all;
11846 if test "${enableval}" = no; then
11847 default_strings_all=0
11848 else
11849 default_strings_all=1
11850 fi
11851 else
11852 default_strings_all=1
11853 fi
11854
11855
11856
11857 cat >>confdefs.h <<_ACEOF
11858 #define DEFAULT_STRINGS_ALL $default_strings_all
11859 _ACEOF
11860
11861
11862
11863 # Check whether --enable-f-for-ifunc-symbols was given.
11864 if test "${enable_f_for_ifunc_symbols+set}" = set; then :
11865 enableval=$enable_f_for_ifunc_symbols;
11866 if test "${enableval}" = no; then
11867 default_f_for_ifunc=0
11868 else
11869 default_f_for_ifunc=1
11870 fi
11871 else
11872 default_f_for_ifunc=0
11873 fi
11874
11875
11876
11877 cat >>confdefs.h <<_ACEOF
11878 #define DEFAULT_F_FOR_IFUNC_SYMBOLS $default_f_for_ifunc
11879 _ACEOF
11880
11881
11882
11883 # Check whether --enable-follow-debug-links was given.
11884 if test "${enable_follow_debug_links+set}" = set; then :
11885 enableval=$enable_follow_debug_links;
11886 if test "${enableval}" = no; then
11887 default_for_follow_links=0
11888 else
11889 default_for_follow_links=1
11890 fi
11891 else
11892 default_for_follow_links=1
11893 fi
11894
11895
11896
11897 cat >>confdefs.h <<_ACEOF
11898 #define DEFAULT_FOR_FOLLOW_LINKS $default_for_follow_links
11899 _ACEOF
11900
11901
11902
11903
11904
11905 # Check whether --enable-colored-disassembly was given.
11906 if test "${enable_colored_disassembly+set}" = set; then :
11907 enableval=$enable_colored_disassembly;
11908 if test "${enableval}" = no; then
11909 default_for_colored_disassembly=0
11910 else
11911 default_for_colored_disassembly=1
11912 fi
11913 else
11914 default_for_colored_disassembly=0
11915 fi
11916
11917
11918
11919 cat >>confdefs.h <<_ACEOF
11920 #define DEFAULT_FOR_COLORED_DISASSEMBLY $default_for_colored_disassembly
11921 _ACEOF
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11933 if test -n "$ac_tool_prefix"; then
11934 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11935 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937 $as_echo_n "checking for $ac_word... " >&6; }
11938 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 case $PKG_CONFIG in
11942 [\\/]* | ?:[\\/]*)
11943 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11944 ;;
11945 *)
11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947 for as_dir in $PATH
11948 do
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11953 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11955 break 2
11956 fi
11957 done
11958 done
11959 IFS=$as_save_IFS
11960
11961 ;;
11962 esac
11963 fi
11964 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11965 if test -n "$PKG_CONFIG"; then
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11967 $as_echo "$PKG_CONFIG" >&6; }
11968 else
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970 $as_echo "no" >&6; }
11971 fi
11972
11973
11974 fi
11975 if test -z "$ac_cv_path_PKG_CONFIG"; then
11976 ac_pt_PKG_CONFIG=$PKG_CONFIG
11977 # Extract the first word of "pkg-config", so it can be a program name with args.
11978 set dummy pkg-config; ac_word=$2
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980 $as_echo_n "checking for $ac_word... " >&6; }
11981 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 case $ac_pt_PKG_CONFIG in
11985 [\\/]* | ?:[\\/]*)
11986 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11987 ;;
11988 *)
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11991 do
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11996 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11998 break 2
11999 fi
12000 done
12001 done
12002 IFS=$as_save_IFS
12003
12004 ;;
12005 esac
12006 fi
12007 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12008 if test -n "$ac_pt_PKG_CONFIG"; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12010 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12011 else
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12014 fi
12015
12016 if test "x$ac_pt_PKG_CONFIG" = x; then
12017 PKG_CONFIG=""
12018 else
12019 case $cross_compiling:$ac_tool_warned in
12020 yes:)
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12023 ac_tool_warned=yes ;;
12024 esac
12025 PKG_CONFIG=$ac_pt_PKG_CONFIG
12026 fi
12027 else
12028 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12029 fi
12030
12031 fi
12032 if test -n "$PKG_CONFIG"; then
12033 _pkg_min_version=0.9.0
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12035 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12036 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12038 $as_echo "yes" >&6; }
12039 else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12042 PKG_CONFIG=""
12043 fi
12044 fi
12045
12046 # Handle optional debuginfod support as well as optional section
12047 # downloading support.
12048 #
12049 # Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
12050 #
12051 # Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
12052 # version >= 0.188.
12053
12054 # Check whether --with-debuginfod was given.
12055 if test "${with_debuginfod+set}" = set; then :
12056 withval=$with_debuginfod;
12057 else
12058 with_debuginfod=auto
12059 fi
12060
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
12062 $as_echo_n "checking whether to use debuginfod... " >&6; }
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
12064 $as_echo "$with_debuginfod" >&6; }
12065
12066 if test "x$with_debuginfod" != xno; then
12067
12068 pkg_failed=no
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
12070 $as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
12071
12072 if test -n "$DEBUGINFOD_CFLAGS"; then
12073 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
12074 elif test -n "$PKG_CONFIG"; then
12075 if test -n "$PKG_CONFIG" && \
12076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
12077 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
12078 ac_status=$?
12079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12080 test $ac_status = 0; }; then
12081 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
12082 test "x$?" != "x0" && pkg_failed=yes
12083 else
12084 pkg_failed=yes
12085 fi
12086 else
12087 pkg_failed=untried
12088 fi
12089 if test -n "$DEBUGINFOD_LIBS"; then
12090 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
12091 elif test -n "$PKG_CONFIG"; then
12092 if test -n "$PKG_CONFIG" && \
12093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
12094 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
12095 ac_status=$?
12096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12097 test $ac_status = 0; }; then
12098 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
12099 test "x$?" != "x0" && pkg_failed=yes
12100 else
12101 pkg_failed=yes
12102 fi
12103 else
12104 pkg_failed=untried
12105 fi
12106
12107 if test $pkg_failed = no; then
12108 pkg_save_LDFLAGS="$LDFLAGS"
12109 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h. */
12112
12113 int
12114 main ()
12115 {
12116
12117 ;
12118 return 0;
12119 }
12120 _ACEOF
12121 if ac_fn_c_try_link "$LINENO"; then :
12122
12123 else
12124 pkg_failed=yes
12125 fi
12126 rm -f core conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12128 LDFLAGS=$pkg_save_LDFLAGS
12129 fi
12130
12131
12132
12133 if test $pkg_failed = yes; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135 $as_echo "no" >&6; }
12136
12137 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12138 _pkg_short_errors_supported=yes
12139 else
12140 _pkg_short_errors_supported=no
12141 fi
12142 if test $_pkg_short_errors_supported = yes; then
12143 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
12144 else
12145 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
12146 fi
12147 # Put the nasty error message in config.log where it belongs
12148 echo "$DEBUGINFOD_PKG_ERRORS" >&5
12149
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
12151 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
12152 elif test $pkg_failed = untried; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
12156 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
12157 else
12158 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
12159 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12161 $as_echo "yes" >&6; }
12162
12163 $as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
12164
12165 fi
12166
12167
12168 pkg_failed=no
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
12170 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
12171
12172 if test -n "$DEBUGINFOD_CFLAGS"; then
12173 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
12174 elif test -n "$PKG_CONFIG"; then
12175 if test -n "$PKG_CONFIG" && \
12176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
12177 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
12178 ac_status=$?
12179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12180 test $ac_status = 0; }; then
12181 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
12182 test "x$?" != "x0" && pkg_failed=yes
12183 else
12184 pkg_failed=yes
12185 fi
12186 else
12187 pkg_failed=untried
12188 fi
12189 if test -n "$DEBUGINFOD_LIBS"; then
12190 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
12191 elif test -n "$PKG_CONFIG"; then
12192 if test -n "$PKG_CONFIG" && \
12193 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
12194 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
12195 ac_status=$?
12196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12197 test $ac_status = 0; }; then
12198 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
12199 test "x$?" != "x0" && pkg_failed=yes
12200 else
12201 pkg_failed=yes
12202 fi
12203 else
12204 pkg_failed=untried
12205 fi
12206
12207 if test $pkg_failed = no; then
12208 pkg_save_LDFLAGS="$LDFLAGS"
12209 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
12210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12211 /* end confdefs.h. */
12212
12213 int
12214 main ()
12215 {
12216
12217 ;
12218 return 0;
12219 }
12220 _ACEOF
12221 if ac_fn_c_try_link "$LINENO"; then :
12222
12223 else
12224 pkg_failed=yes
12225 fi
12226 rm -f core conftest.err conftest.$ac_objext \
12227 conftest$ac_exeext conftest.$ac_ext
12228 LDFLAGS=$pkg_save_LDFLAGS
12229 fi
12230
12231
12232
12233 if test $pkg_failed = yes; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235 $as_echo "no" >&6; }
12236
12237 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12238 _pkg_short_errors_supported=yes
12239 else
12240 _pkg_short_errors_supported=no
12241 fi
12242 if test $_pkg_short_errors_supported = yes; then
12243 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
12244 else
12245 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
12246 fi
12247 # Put the nasty error message in config.log where it belongs
12248 echo "$DEBUGINFOD_PKG_ERRORS" >&5
12249
12250 if test "x$with_debuginfod" = xyes; then
12251 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
12254 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
12255 fi
12256 elif test $pkg_failed = untried; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12259 if test "x$with_debuginfod" = xyes; then
12260 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
12261 else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
12263 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
12264 fi
12265 else
12266 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
12267 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12269 $as_echo "yes" >&6; }
12270
12271 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
12272
12273 fi
12274 else
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
12276 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
12277 fi
12278
12279
12280 # Check whether --enable-libctf was given.
12281 if test "${enable_libctf+set}" = set; then :
12282 enableval=$enable_libctf;
12283 case "$enableval" in
12284 yes|no) ;;
12285 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
12286 esac
12287
12288 else
12289 enable_libctf=yes
12290 fi
12291
12292
12293 if test "${enable_libctf}" = yes; then
12294
12295 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
12296
12297 fi
12298 if test "${enable_libctf}" = yes; then
12299 ENABLE_LIBCTF_TRUE=
12300 ENABLE_LIBCTF_FALSE='#'
12301 else
12302 ENABLE_LIBCTF_TRUE='#'
12303 ENABLE_LIBCTF_FALSE=
12304 fi
12305
12306
12307
12308 # Set the 'development' global.
12309 . $srcdir/../bfd/development.sh
12310
12311 # Set acp_cpp_for_build variable
12312 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12313
12314 # Default set of GCC warnings to enable.
12315 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12316 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12317
12318 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12321 __GNUC__
12322 _ACEOF
12323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12324 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12325
12326 else
12327 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12328 fi
12329 rm -f conftest*
12330
12331
12332 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h. */
12335 __GNUC__
12336 _ACEOF
12337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12338 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12339
12340 else
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343 __clang__
12344 _ACEOF
12345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12346 $EGREP "^__clang__$" >/dev/null 2>&1; then :
12347 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12348 fi
12349 rm -f conftest*
12350
12351 fi
12352 rm -f conftest*
12353
12354
12355 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12356 WARN_WRITE_STRINGS=""
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359 __GNUC__
12360 _ACEOF
12361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12362 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12363
12364 else
12365 WARN_WRITE_STRINGS="-Wwrite-strings"
12366 fi
12367 rm -f conftest*
12368
12369
12370 # Verify CC_FOR_BUILD to be compatible with warning flags
12371
12372 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375 __GNUC__
12376 _ACEOF
12377 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12378 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12379
12380 else
12381 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12382 fi
12383 rm -f conftest*
12384
12385
12386 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12389 __GNUC__
12390 _ACEOF
12391 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12392 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12393
12394 else
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12397 __clang__
12398 _ACEOF
12399 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12400 $EGREP "^__clang__$" >/dev/null 2>&1; then :
12401 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12402 fi
12403 rm -f conftest*
12404
12405 fi
12406 rm -f conftest*
12407
12408
12409 # Check whether --enable-werror was given.
12410 if test "${enable_werror+set}" = set; then :
12411 enableval=$enable_werror; case "${enableval}" in
12412 yes | y) ERROR_ON_WARNING="yes" ;;
12413 no | n) ERROR_ON_WARNING="no" ;;
12414 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12415 esac
12416 fi
12417
12418
12419 # Disable -Wformat by default when using gcc on mingw
12420 case "${host}" in
12421 *-*-mingw32*)
12422 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12423 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12424 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12425 fi
12426 ;;
12427 *) ;;
12428 esac
12429
12430 # Enable -Werror by default when using gcc. Turn it off for releases.
12431 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12432 ERROR_ON_WARNING=yes
12433 fi
12434
12435 NO_WERROR=
12436 if test "${ERROR_ON_WARNING}" = yes ; then
12437 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12438 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12439 NO_WERROR="-Wno-error"
12440 fi
12441
12442 if test "${GCC}" = yes ; then
12443 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12444 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12445 fi
12446
12447 # Check whether --enable-build-warnings was given.
12448 if test "${enable_build_warnings+set}" = set; then :
12449 enableval=$enable_build_warnings; case "${enableval}" in
12450 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12451 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12452 no) if test "${GCC}" = yes ; then
12453 WARN_CFLAGS="-w"
12454 WARN_CFLAGS_FOR_BUILD="-w"
12455 fi;;
12456 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12457 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12458 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12459 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12460 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12461 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12462 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12463 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12464 esac
12465 fi
12466
12467
12468 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12469 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12470 fi
12471
12472
12473
12474
12475
12476
12477
12478 ac_config_headers="$ac_config_headers config.h:config.in"
12479
12480
12481
12482
12483 if test -z "$target" ; then
12484 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12485 fi
12486 if test -z "$host" ; then
12487 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
12488 fi
12489
12490 for ac_prog in 'bison -y' byacc
12491 do
12492 # Extract the first word of "$ac_prog", so it can be a program name with args.
12493 set dummy $ac_prog; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if ${ac_cv_prog_YACC+:} false; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 if test -n "$YACC"; then
12500 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12501 else
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH
12504 do
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12509 ac_cv_prog_YACC="$ac_prog"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511 break 2
12512 fi
12513 done
12514 done
12515 IFS=$as_save_IFS
12516
12517 fi
12518 fi
12519 YACC=$ac_cv_prog_YACC
12520 if test -n "$YACC"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12522 $as_echo "$YACC" >&6; }
12523 else
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12526 fi
12527
12528
12529 test -n "$YACC" && break
12530 done
12531 test -n "$YACC" || YACC="yacc"
12532
12533 for ac_prog in flex lex
12534 do
12535 # Extract the first word of "$ac_prog", so it can be a program name with args.
12536 set dummy $ac_prog; ac_word=$2
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538 $as_echo_n "checking for $ac_word... " >&6; }
12539 if ${ac_cv_prog_LEX+:} false; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12542 if test -n "$LEX"; then
12543 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12544 else
12545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546 for as_dir in $PATH
12547 do
12548 IFS=$as_save_IFS
12549 test -z "$as_dir" && as_dir=.
12550 for ac_exec_ext in '' $ac_executable_extensions; do
12551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12552 ac_cv_prog_LEX="$ac_prog"
12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12554 break 2
12555 fi
12556 done
12557 done
12558 IFS=$as_save_IFS
12559
12560 fi
12561 fi
12562 LEX=$ac_cv_prog_LEX
12563 if test -n "$LEX"; then
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12565 $as_echo "$LEX" >&6; }
12566 else
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568 $as_echo "no" >&6; }
12569 fi
12570
12571
12572 test -n "$LEX" && break
12573 done
12574 test -n "$LEX" || LEX=":"
12575
12576 case "$LEX" in
12577 :|*"missing "*) ;;
12578 *) cat >conftest.l <<_ACEOF
12579 %%
12580 a { ECHO; }
12581 b { REJECT; }
12582 c { yymore (); }
12583 d { yyless (1); }
12584 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12585 yyless ((input () != 0)); }
12586 f { unput (yytext[0]); }
12587 . { BEGIN INITIAL; }
12588 %%
12589 #ifdef YYTEXT_POINTER
12590 extern char *yytext;
12591 #endif
12592 int
12593 main (void)
12594 {
12595 return ! yylex () + ! yywrap ();
12596 }
12597 _ACEOF
12598 { { ac_try="$LEX conftest.l"
12599 case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12602 esac
12603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12604 $as_echo "$ac_try_echo"; } >&5
12605 (eval "$LEX conftest.l") 2>&5
12606 ac_status=$?
12607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12608 test $ac_status = 0; }
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12610 $as_echo_n "checking lex output file root... " >&6; }
12611 if ${ac_cv_prog_lex_root+:} false; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614
12615 if test -f lex.yy.c; then
12616 ac_cv_prog_lex_root=lex.yy
12617 elif test -f lexyy.c; then
12618 ac_cv_prog_lex_root=lexyy
12619 else
12620 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12621 fi
12622 fi
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12624 $as_echo "$ac_cv_prog_lex_root" >&6; }
12625 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12626
12627 if test -z "${LEXLIB+set}"; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12629 $as_echo_n "checking lex library... " >&6; }
12630 if ${ac_cv_lib_lex+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633
12634 ac_save_LIBS=$LIBS
12635 ac_cv_lib_lex='none needed'
12636 for ac_lib in '' -lfl -ll; do
12637 LIBS="$ac_lib $ac_save_LIBS"
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12640 `cat $LEX_OUTPUT_ROOT.c`
12641 _ACEOF
12642 if ac_fn_c_try_link "$LINENO"; then :
12643 ac_cv_lib_lex=$ac_lib
12644 fi
12645 rm -f core conftest.err conftest.$ac_objext \
12646 conftest$ac_exeext conftest.$ac_ext
12647 test "$ac_cv_lib_lex" != 'none needed' && break
12648 done
12649 LIBS=$ac_save_LIBS
12650
12651 fi
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12653 $as_echo "$ac_cv_lib_lex" >&6; }
12654 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12655 fi
12656
12657
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12659 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12660 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 # POSIX says lex can declare yytext either as a pointer or an array; the
12664 # default is implementation-dependent. Figure out which it is, since
12665 # not all implementations provide the %pointer and %array declarations.
12666 ac_cv_prog_lex_yytext_pointer=no
12667 ac_save_LIBS=$LIBS
12668 LIBS="$LEXLIB $ac_save_LIBS"
12669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12670 /* end confdefs.h. */
12671
12672 #define YYTEXT_POINTER 1
12673 `cat $LEX_OUTPUT_ROOT.c`
12674 _ACEOF
12675 if ac_fn_c_try_link "$LINENO"; then :
12676 ac_cv_prog_lex_yytext_pointer=yes
12677 fi
12678 rm -f core conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12680 LIBS=$ac_save_LIBS
12681
12682 fi
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12684 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12685 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12686
12687 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12688
12689 fi
12690 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12691 ;;
12692 esac
12693 if test "$LEX" = :; then
12694 LEX=${am_missing_run}flex
12695 fi
12696
12697 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"
12698
12699 MKINSTALLDIRS=
12700 if test -n "$ac_aux_dir"; then
12701 case "$ac_aux_dir" in
12702 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12703 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12704 esac
12705 fi
12706 if test -z "$MKINSTALLDIRS"; then
12707 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12708 fi
12709
12710
12711
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12713 $as_echo_n "checking whether NLS is requested... " >&6; }
12714 # Check whether --enable-nls was given.
12715 if test "${enable_nls+set}" = set; then :
12716 enableval=$enable_nls; USE_NLS=$enableval
12717 else
12718 USE_NLS=yes
12719 fi
12720
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12722 $as_echo "$USE_NLS" >&6; }
12723
12724
12725
12726
12727
12728
12729 # Prepare PATH_SEPARATOR.
12730 # The user is always right.
12731 if test "${PATH_SEPARATOR+set}" != set; then
12732 echo "#! /bin/sh" >conf$$.sh
12733 echo "exit 0" >>conf$$.sh
12734 chmod +x conf$$.sh
12735 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12736 PATH_SEPARATOR=';'
12737 else
12738 PATH_SEPARATOR=:
12739 fi
12740 rm -f conf$$.sh
12741 fi
12742
12743 # Find out how to test for executable files. Don't use a zero-byte file,
12744 # as systems may use methods other than mode bits to determine executability.
12745 cat >conf$$.file <<_ASEOF
12746 #! /bin/sh
12747 exit 0
12748 _ASEOF
12749 chmod +x conf$$.file
12750 if test -x conf$$.file >/dev/null 2>&1; then
12751 ac_executable_p="test -x"
12752 else
12753 ac_executable_p="test -f"
12754 fi
12755 rm -f conf$$.file
12756
12757 # Extract the first word of "msgfmt", so it can be a program name with args.
12758 set dummy msgfmt; ac_word=$2
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12760 $as_echo_n "checking for $ac_word... " >&6; }
12761 if ${ac_cv_path_MSGFMT+:} false; then :
12762 $as_echo_n "(cached) " >&6
12763 else
12764 case "$MSGFMT" in
12765 [\\/]* | ?:[\\/]*)
12766 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12767 ;;
12768 *)
12769 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12770 for ac_dir in $PATH; do
12771 IFS="$ac_save_IFS"
12772 test -z "$ac_dir" && ac_dir=.
12773 for ac_exec_ext in '' $ac_executable_extensions; do
12774 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12775 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12776 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12777 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12778 break 2
12779 fi
12780 fi
12781 done
12782 done
12783 IFS="$ac_save_IFS"
12784 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12785 ;;
12786 esac
12787 fi
12788 MSGFMT="$ac_cv_path_MSGFMT"
12789 if test "$MSGFMT" != ":"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12791 $as_echo "$MSGFMT" >&6; }
12792 else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12795 fi
12796
12797 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12798 set dummy gmsgfmt; ac_word=$2
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12800 $as_echo_n "checking for $ac_word... " >&6; }
12801 if ${ac_cv_path_GMSGFMT+:} false; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 case $GMSGFMT in
12805 [\\/]* | ?:[\\/]*)
12806 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12807 ;;
12808 *)
12809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810 for as_dir in $PATH
12811 do
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12816 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 break 2
12819 fi
12820 done
12821 done
12822 IFS=$as_save_IFS
12823
12824 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12825 ;;
12826 esac
12827 fi
12828 GMSGFMT=$ac_cv_path_GMSGFMT
12829 if test -n "$GMSGFMT"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12831 $as_echo "$GMSGFMT" >&6; }
12832 else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834 $as_echo "no" >&6; }
12835 fi
12836
12837
12838
12839
12840 # Prepare PATH_SEPARATOR.
12841 # The user is always right.
12842 if test "${PATH_SEPARATOR+set}" != set; then
12843 echo "#! /bin/sh" >conf$$.sh
12844 echo "exit 0" >>conf$$.sh
12845 chmod +x conf$$.sh
12846 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12847 PATH_SEPARATOR=';'
12848 else
12849 PATH_SEPARATOR=:
12850 fi
12851 rm -f conf$$.sh
12852 fi
12853
12854 # Find out how to test for executable files. Don't use a zero-byte file,
12855 # as systems may use methods other than mode bits to determine executability.
12856 cat >conf$$.file <<_ASEOF
12857 #! /bin/sh
12858 exit 0
12859 _ASEOF
12860 chmod +x conf$$.file
12861 if test -x conf$$.file >/dev/null 2>&1; then
12862 ac_executable_p="test -x"
12863 else
12864 ac_executable_p="test -f"
12865 fi
12866 rm -f conf$$.file
12867
12868 # Extract the first word of "xgettext", so it can be a program name with args.
12869 set dummy xgettext; ac_word=$2
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12871 $as_echo_n "checking for $ac_word... " >&6; }
12872 if ${ac_cv_path_XGETTEXT+:} false; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12875 case "$XGETTEXT" in
12876 [\\/]* | ?:[\\/]*)
12877 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12878 ;;
12879 *)
12880 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12881 for ac_dir in $PATH; do
12882 IFS="$ac_save_IFS"
12883 test -z "$ac_dir" && ac_dir=.
12884 for ac_exec_ext in '' $ac_executable_extensions; do
12885 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12886 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12887 (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
12888 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12889 break 2
12890 fi
12891 fi
12892 done
12893 done
12894 IFS="$ac_save_IFS"
12895 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12896 ;;
12897 esac
12898 fi
12899 XGETTEXT="$ac_cv_path_XGETTEXT"
12900 if test "$XGETTEXT" != ":"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12902 $as_echo "$XGETTEXT" >&6; }
12903 else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12906 fi
12907
12908 rm -f messages.po
12909
12910
12911 # Prepare PATH_SEPARATOR.
12912 # The user is always right.
12913 if test "${PATH_SEPARATOR+set}" != set; then
12914 echo "#! /bin/sh" >conf$$.sh
12915 echo "exit 0" >>conf$$.sh
12916 chmod +x conf$$.sh
12917 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12918 PATH_SEPARATOR=';'
12919 else
12920 PATH_SEPARATOR=:
12921 fi
12922 rm -f conf$$.sh
12923 fi
12924
12925 # Find out how to test for executable files. Don't use a zero-byte file,
12926 # as systems may use methods other than mode bits to determine executability.
12927 cat >conf$$.file <<_ASEOF
12928 #! /bin/sh
12929 exit 0
12930 _ASEOF
12931 chmod +x conf$$.file
12932 if test -x conf$$.file >/dev/null 2>&1; then
12933 ac_executable_p="test -x"
12934 else
12935 ac_executable_p="test -f"
12936 fi
12937 rm -f conf$$.file
12938
12939 # Extract the first word of "msgmerge", so it can be a program name with args.
12940 set dummy msgmerge; ac_word=$2
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942 $as_echo_n "checking for $ac_word... " >&6; }
12943 if ${ac_cv_path_MSGMERGE+:} false; then :
12944 $as_echo_n "(cached) " >&6
12945 else
12946 case "$MSGMERGE" in
12947 [\\/]* | ?:[\\/]*)
12948 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12949 ;;
12950 *)
12951 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12952 for ac_dir in $PATH; do
12953 IFS="$ac_save_IFS"
12954 test -z "$ac_dir" && ac_dir=.
12955 for ac_exec_ext in '' $ac_executable_extensions; do
12956 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12957 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12958 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12959 break 2
12960 fi
12961 fi
12962 done
12963 done
12964 IFS="$ac_save_IFS"
12965 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12966 ;;
12967 esac
12968 fi
12969 MSGMERGE="$ac_cv_path_MSGMERGE"
12970 if test "$MSGMERGE" != ":"; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12972 $as_echo "$MSGMERGE" >&6; }
12973 else
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12976 fi
12977
12978
12979 if test "$GMSGFMT" != ":"; then
12980 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12981 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12982 : ;
12983 else
12984 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12986 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12987 GMSGFMT=":"
12988 fi
12989 fi
12990
12991 if test "$XGETTEXT" != ":"; then
12992 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12993 (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
12994 : ;
12995 else
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12997 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12998 XGETTEXT=":"
12999 fi
13000 rm -f messages.po
13001 fi
13002
13003 ac_config_commands="$ac_config_commands default-1"
13004
13005
13006
13007 if test "X$prefix" = "XNONE"; then
13008 acl_final_prefix="$ac_default_prefix"
13009 else
13010 acl_final_prefix="$prefix"
13011 fi
13012 if test "X$exec_prefix" = "XNONE"; then
13013 acl_final_exec_prefix='${prefix}'
13014 else
13015 acl_final_exec_prefix="$exec_prefix"
13016 fi
13017 acl_save_prefix="$prefix"
13018 prefix="$acl_final_prefix"
13019 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13020 prefix="$acl_save_prefix"
13021
13022
13023 # Check whether --with-gnu-ld was given.
13024 if test "${with_gnu_ld+set}" = set; then :
13025 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13026 else
13027 with_gnu_ld=no
13028 fi
13029
13030 # Prepare PATH_SEPARATOR.
13031 # The user is always right.
13032 if test "${PATH_SEPARATOR+set}" != set; then
13033 echo "#! /bin/sh" >conf$$.sh
13034 echo "exit 0" >>conf$$.sh
13035 chmod +x conf$$.sh
13036 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13037 PATH_SEPARATOR=';'
13038 else
13039 PATH_SEPARATOR=:
13040 fi
13041 rm -f conf$$.sh
13042 fi
13043 ac_prog=ld
13044 if test "$GCC" = yes; then
13045 # Check if gcc -print-prog-name=ld gives a path.
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13047 $as_echo_n "checking for ld used by GCC... " >&6; }
13048 case $host in
13049 *-*-mingw*)
13050 # gcc leaves a trailing carriage return which upsets mingw
13051 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13052 *)
13053 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13054 esac
13055 case $ac_prog in
13056 # Accept absolute paths.
13057 [\\/]* | [A-Za-z]:[\\/]*)
13058 re_direlt='/[^/][^/]*/\.\./'
13059 # Canonicalize the path of ld
13060 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13061 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13062 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13063 done
13064 test -z "$LD" && LD="$ac_prog"
13065 ;;
13066 "")
13067 # If it fails, then pretend we aren't using GCC.
13068 ac_prog=ld
13069 ;;
13070 *)
13071 # If it is relative, then search for the first ld in PATH.
13072 with_gnu_ld=unknown
13073 ;;
13074 esac
13075 elif test "$with_gnu_ld" = yes; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13077 $as_echo_n "checking for GNU ld... " >&6; }
13078 else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13080 $as_echo_n "checking for non-GNU ld... " >&6; }
13081 fi
13082 if ${acl_cv_path_LD+:} false; then :
13083 $as_echo_n "(cached) " >&6
13084 else
13085 if test -z "$LD"; then
13086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13087 for ac_dir in $PATH; do
13088 test -z "$ac_dir" && ac_dir=.
13089 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13090 acl_cv_path_LD="$ac_dir/$ac_prog"
13091 # Check to see if the program is GNU ld. I'd rather use --version,
13092 # but apparently some GNU ld's only accept -v.
13093 # Break only if it was the GNU/non-GNU ld that we prefer.
13094 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
13095 test "$with_gnu_ld" != no && break
13096 else
13097 test "$with_gnu_ld" != yes && break
13098 fi
13099 fi
13100 done
13101 IFS="$ac_save_ifs"
13102 else
13103 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13104 fi
13105 fi
13106
13107 LD="$acl_cv_path_LD"
13108 if test -n "$LD"; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13110 $as_echo "$LD" >&6; }
13111 else
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13114 fi
13115 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13117 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13118 if ${acl_cv_prog_gnu_ld+:} false; then :
13119 $as_echo_n "(cached) " >&6
13120 else
13121 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13122 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
13123 acl_cv_prog_gnu_ld=yes
13124 else
13125 acl_cv_prog_gnu_ld=no
13126 fi
13127 fi
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13129 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13130 with_gnu_ld=$acl_cv_prog_gnu_ld
13131
13132
13133
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13135 $as_echo_n "checking for shared library run path origin... " >&6; }
13136 if ${acl_cv_rpath+:} false; then :
13137 $as_echo_n "(cached) " >&6
13138 else
13139
13140 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13141 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13142 . ./conftest.sh
13143 rm -f ./conftest.sh
13144 acl_cv_rpath=done
13145
13146 fi
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13148 $as_echo "$acl_cv_rpath" >&6; }
13149 wl="$acl_cv_wl"
13150 libext="$acl_cv_libext"
13151 shlibext="$acl_cv_shlibext"
13152 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13153 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13154 hardcode_direct="$acl_cv_hardcode_direct"
13155 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13156 # Check whether --enable-rpath was given.
13157 if test "${enable_rpath+set}" = set; then :
13158 enableval=$enable_rpath; :
13159 else
13160 enable_rpath=yes
13161 fi
13162
13163
13164
13165
13166
13167
13168
13169
13170 use_additional=yes
13171
13172 acl_save_prefix="$prefix"
13173 prefix="$acl_final_prefix"
13174 acl_save_exec_prefix="$exec_prefix"
13175 exec_prefix="$acl_final_exec_prefix"
13176
13177 eval additional_includedir=\"$includedir\"
13178 eval additional_libdir=\"$libdir\"
13179
13180 exec_prefix="$acl_save_exec_prefix"
13181 prefix="$acl_save_prefix"
13182
13183
13184 # Check whether --with-libiconv-prefix was given.
13185 if test "${with_libiconv_prefix+set}" = set; then :
13186 withval=$with_libiconv_prefix;
13187 if test "X$withval" = "Xno"; then
13188 use_additional=no
13189 else
13190 if test "X$withval" = "X"; then
13191
13192 acl_save_prefix="$prefix"
13193 prefix="$acl_final_prefix"
13194 acl_save_exec_prefix="$exec_prefix"
13195 exec_prefix="$acl_final_exec_prefix"
13196
13197 eval additional_includedir=\"$includedir\"
13198 eval additional_libdir=\"$libdir\"
13199
13200 exec_prefix="$acl_save_exec_prefix"
13201 prefix="$acl_save_prefix"
13202
13203 else
13204 additional_includedir="$withval/include"
13205 additional_libdir="$withval/lib"
13206 fi
13207 fi
13208
13209 fi
13210
13211
13212 # Check whether --with-libiconv-type was given.
13213 if test "${with_libiconv_type+set}" = set; then :
13214 withval=$with_libiconv_type; with_libiconv_type=$withval
13215 else
13216 with_libiconv_type=auto
13217 fi
13218
13219 lib_type=`eval echo \$with_libiconv_type`
13220
13221 LIBICONV=
13222 LTLIBICONV=
13223 INCICONV=
13224 rpathdirs=
13225 ltrpathdirs=
13226 names_already_handled=
13227 names_next_round='iconv '
13228 while test -n "$names_next_round"; do
13229 names_this_round="$names_next_round"
13230 names_next_round=
13231 for name in $names_this_round; do
13232 already_handled=
13233 for n in $names_already_handled; do
13234 if test "$n" = "$name"; then
13235 already_handled=yes
13236 break
13237 fi
13238 done
13239 if test -z "$already_handled"; then
13240 names_already_handled="$names_already_handled $name"
13241 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13242 eval value=\"\$HAVE_LIB$uppername\"
13243 if test -n "$value"; then
13244 if test "$value" = yes; then
13245 eval value=\"\$LIB$uppername\"
13246 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13247 eval value=\"\$LTLIB$uppername\"
13248 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13249 else
13250 :
13251 fi
13252 else
13253 found_dir=
13254 found_la=
13255 found_so=
13256 found_a=
13257 if test $use_additional = yes; then
13258 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13259 found_dir="$additional_libdir"
13260 found_so="$additional_libdir/lib$name.$shlibext"
13261 if test -f "$additional_libdir/lib$name.la"; then
13262 found_la="$additional_libdir/lib$name.la"
13263 fi
13264 elif test x$lib_type != xshared; then
13265 if test -f "$additional_libdir/lib$name.$libext"; then
13266 found_dir="$additional_libdir"
13267 found_a="$additional_libdir/lib$name.$libext"
13268 if test -f "$additional_libdir/lib$name.la"; then
13269 found_la="$additional_libdir/lib$name.la"
13270 fi
13271 fi
13272 fi
13273 fi
13274 if test "X$found_dir" = "X"; then
13275 for x in $LDFLAGS $LTLIBICONV; do
13276
13277 acl_save_prefix="$prefix"
13278 prefix="$acl_final_prefix"
13279 acl_save_exec_prefix="$exec_prefix"
13280 exec_prefix="$acl_final_exec_prefix"
13281 eval x=\"$x\"
13282 exec_prefix="$acl_save_exec_prefix"
13283 prefix="$acl_save_prefix"
13284
13285 case "$x" in
13286 -L*)
13287 dir=`echo "X$x" | sed -e 's/^X-L//'`
13288 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13289 found_dir="$dir"
13290 found_so="$dir/lib$name.$shlibext"
13291 if test -f "$dir/lib$name.la"; then
13292 found_la="$dir/lib$name.la"
13293 fi
13294 elif test x$lib_type != xshared; then
13295 if test -f "$dir/lib$name.$libext"; then
13296 found_dir="$dir"
13297 found_a="$dir/lib$name.$libext"
13298 if test -f "$dir/lib$name.la"; then
13299 found_la="$dir/lib$name.la"
13300 fi
13301 fi
13302 fi
13303 ;;
13304 esac
13305 if test "X$found_dir" != "X"; then
13306 break
13307 fi
13308 done
13309 fi
13310 if test "X$found_dir" != "X"; then
13311 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13312 if test "X$found_so" != "X"; then
13313 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13314 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13315 else
13316 haveit=
13317 for x in $ltrpathdirs; do
13318 if test "X$x" = "X$found_dir"; then
13319 haveit=yes
13320 break
13321 fi
13322 done
13323 if test -z "$haveit"; then
13324 ltrpathdirs="$ltrpathdirs $found_dir"
13325 fi
13326 if test "$hardcode_direct" = yes; then
13327 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13328 else
13329 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13330 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13331 haveit=
13332 for x in $rpathdirs; do
13333 if test "X$x" = "X$found_dir"; then
13334 haveit=yes
13335 break
13336 fi
13337 done
13338 if test -z "$haveit"; then
13339 rpathdirs="$rpathdirs $found_dir"
13340 fi
13341 else
13342 haveit=
13343 for x in $LDFLAGS $LIBICONV; do
13344
13345 acl_save_prefix="$prefix"
13346 prefix="$acl_final_prefix"
13347 acl_save_exec_prefix="$exec_prefix"
13348 exec_prefix="$acl_final_exec_prefix"
13349 eval x=\"$x\"
13350 exec_prefix="$acl_save_exec_prefix"
13351 prefix="$acl_save_prefix"
13352
13353 if test "X$x" = "X-L$found_dir"; then
13354 haveit=yes
13355 break
13356 fi
13357 done
13358 if test -z "$haveit"; then
13359 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13360 fi
13361 if test "$hardcode_minus_L" != no; then
13362 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13363 else
13364 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13365 fi
13366 fi
13367 fi
13368 fi
13369 else
13370 if test "X$found_a" != "X"; then
13371 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13372 else
13373 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13374 fi
13375 fi
13376 additional_includedir=
13377 case "$found_dir" in
13378 */lib | */lib/)
13379 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13380 additional_includedir="$basedir/include"
13381 ;;
13382 esac
13383 if test "X$additional_includedir" != "X"; then
13384 if test "X$additional_includedir" != "X/usr/include"; then
13385 haveit=
13386 if test "X$additional_includedir" = "X/usr/local/include"; then
13387 if test -n "$GCC"; then
13388 case $host_os in
13389 linux*) haveit=yes;;
13390 esac
13391 fi
13392 fi
13393 if test -z "$haveit"; then
13394 for x in $CPPFLAGS $INCICONV; do
13395
13396 acl_save_prefix="$prefix"
13397 prefix="$acl_final_prefix"
13398 acl_save_exec_prefix="$exec_prefix"
13399 exec_prefix="$acl_final_exec_prefix"
13400 eval x=\"$x\"
13401 exec_prefix="$acl_save_exec_prefix"
13402 prefix="$acl_save_prefix"
13403
13404 if test "X$x" = "X-I$additional_includedir"; then
13405 haveit=yes
13406 break
13407 fi
13408 done
13409 if test -z "$haveit"; then
13410 if test -d "$additional_includedir"; then
13411 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13412 fi
13413 fi
13414 fi
13415 fi
13416 fi
13417 if test -n "$found_la"; then
13418 save_libdir="$libdir"
13419 case "$found_la" in
13420 */* | *\\*) . "$found_la" ;;
13421 *) . "./$found_la" ;;
13422 esac
13423 libdir="$save_libdir"
13424 for dep in $dependency_libs; do
13425 case "$dep" in
13426 -L*)
13427 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13428 if test "X$additional_libdir" != "X/usr/lib"; then
13429 haveit=
13430 if test "X$additional_libdir" = "X/usr/local/lib"; then
13431 if test -n "$GCC"; then
13432 case $host_os in
13433 linux*) haveit=yes;;
13434 esac
13435 fi
13436 fi
13437 if test -z "$haveit"; then
13438 haveit=
13439 for x in $LDFLAGS $LIBICONV; do
13440
13441 acl_save_prefix="$prefix"
13442 prefix="$acl_final_prefix"
13443 acl_save_exec_prefix="$exec_prefix"
13444 exec_prefix="$acl_final_exec_prefix"
13445 eval x=\"$x\"
13446 exec_prefix="$acl_save_exec_prefix"
13447 prefix="$acl_save_prefix"
13448
13449 if test "X$x" = "X-L$additional_libdir"; then
13450 haveit=yes
13451 break
13452 fi
13453 done
13454 if test -z "$haveit"; then
13455 if test -d "$additional_libdir"; then
13456 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13457 fi
13458 fi
13459 haveit=
13460 for x in $LDFLAGS $LTLIBICONV; do
13461
13462 acl_save_prefix="$prefix"
13463 prefix="$acl_final_prefix"
13464 acl_save_exec_prefix="$exec_prefix"
13465 exec_prefix="$acl_final_exec_prefix"
13466 eval x=\"$x\"
13467 exec_prefix="$acl_save_exec_prefix"
13468 prefix="$acl_save_prefix"
13469
13470 if test "X$x" = "X-L$additional_libdir"; then
13471 haveit=yes
13472 break
13473 fi
13474 done
13475 if test -z "$haveit"; then
13476 if test -d "$additional_libdir"; then
13477 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13478 fi
13479 fi
13480 fi
13481 fi
13482 ;;
13483 -R*)
13484 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13485 if test "$enable_rpath" != no; then
13486 haveit=
13487 for x in $rpathdirs; do
13488 if test "X$x" = "X$dir"; then
13489 haveit=yes
13490 break
13491 fi
13492 done
13493 if test -z "$haveit"; then
13494 rpathdirs="$rpathdirs $dir"
13495 fi
13496 haveit=
13497 for x in $ltrpathdirs; do
13498 if test "X$x" = "X$dir"; then
13499 haveit=yes
13500 break
13501 fi
13502 done
13503 if test -z "$haveit"; then
13504 ltrpathdirs="$ltrpathdirs $dir"
13505 fi
13506 fi
13507 ;;
13508 -l*)
13509 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13510 ;;
13511 *.la)
13512 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13513 ;;
13514 *)
13515 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13516 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13517 ;;
13518 esac
13519 done
13520 fi
13521 else
13522 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
13523 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13524 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13525 else
13526 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
13527 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
13528 fi
13529 fi
13530 fi
13531 fi
13532 done
13533 done
13534 if test "X$rpathdirs" != "X"; then
13535 if test -n "$hardcode_libdir_separator"; then
13536 alldirs=
13537 for found_dir in $rpathdirs; do
13538 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13539 done
13540 acl_save_libdir="$libdir"
13541 libdir="$alldirs"
13542 eval flag=\"$hardcode_libdir_flag_spec\"
13543 libdir="$acl_save_libdir"
13544 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13545 else
13546 for found_dir in $rpathdirs; do
13547 acl_save_libdir="$libdir"
13548 libdir="$found_dir"
13549 eval flag=\"$hardcode_libdir_flag_spec\"
13550 libdir="$acl_save_libdir"
13551 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13552 done
13553 fi
13554 fi
13555 if test "X$ltrpathdirs" != "X"; then
13556 for found_dir in $ltrpathdirs; do
13557 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13558 done
13559 fi
13560
13561
13562
13563
13564
13565 if test -f ../gettext/uninstalled-config.sh; then
13566 relative_builddir='$(top_builddir)/../gettext'
13567 . ../gettext/uninstalled-config.sh
13568 else
13569 # The sister gettext directory doesn't exist and won't collect information on
13570 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13595 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13596 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13597 $as_echo_n "(cached) " >&6
13598 else
13599 gt_save_LIBS="$LIBS"
13600 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13603 #include <CoreFoundation/CFPreferences.h>
13604 int
13605 main ()
13606 {
13607 CFPreferencesCopyAppValue(NULL, NULL)
13608 ;
13609 return 0;
13610 }
13611 _ACEOF
13612 if ac_fn_c_try_link "$LINENO"; then :
13613 gt_cv_func_CFPreferencesCopyAppValue=yes
13614 else
13615 gt_cv_func_CFPreferencesCopyAppValue=no
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext \
13618 conftest$ac_exeext conftest.$ac_ext
13619 LIBS="$gt_save_LIBS"
13620 fi
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13622 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13623 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13624
13625 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13626
13627 fi
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13629 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13630 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13631 $as_echo_n "(cached) " >&6
13632 else
13633 gt_save_LIBS="$LIBS"
13634 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13637 #include <CoreFoundation/CFLocale.h>
13638 int
13639 main ()
13640 {
13641 CFLocaleCopyPreferredLanguages();
13642 ;
13643 return 0;
13644 }
13645 _ACEOF
13646 if ac_fn_c_try_link "$LINENO"; then :
13647 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13648 else
13649 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13650 fi
13651 rm -f core conftest.err conftest.$ac_objext \
13652 conftest$ac_exeext conftest.$ac_ext
13653 LIBS="$gt_save_LIBS"
13654 fi
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13656 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13657 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13658
13659 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13660
13661 fi
13662 INTL_MACOSX_LIBS=
13663 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13664 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13665 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13666 fi
13667
13668
13669
13670
13671
13672
13673 LIBINTL=
13674 LTLIBINTL=
13675 POSUB=
13676
13677 case " $gt_needs " in
13678 *" need-formatstring-macros "*) gt_api_version=3 ;;
13679 *" need-ngettext "*) gt_api_version=2 ;;
13680 *) gt_api_version=1 ;;
13681 esac
13682 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13683 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13684
13685 if test "$USE_NLS" = "yes"; then
13686 gt_use_preinstalled_gnugettext=no
13687
13688
13689 if test $gt_api_version -ge 3; then
13690 gt_revision_test_code='
13691 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13692 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13693 #endif
13694 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13695 '
13696 else
13697 gt_revision_test_code=
13698 fi
13699 if test $gt_api_version -ge 2; then
13700 gt_expression_test_code=' + * ngettext ("", "", 0)'
13701 else
13702 gt_expression_test_code=
13703 fi
13704
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13706 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13707 if eval \${$gt_func_gnugettext_libc+:} false; then :
13708 $as_echo_n "(cached) " >&6
13709 else
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13712
13713 #include <libintl.h>
13714 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13715 extern int _nl_msg_cat_cntr;
13716 extern int *_nl_domain_bindings;
13717 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13718 #else
13719 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13720 #endif
13721 $gt_revision_test_code
13722
13723 int
13724 main ()
13725 {
13726
13727 bindtextdomain ("", "");
13728 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13729
13730 ;
13731 return 0;
13732 }
13733 _ACEOF
13734 if ac_fn_c_try_link "$LINENO"; then :
13735 eval "$gt_func_gnugettext_libc=yes"
13736 else
13737 eval "$gt_func_gnugettext_libc=no"
13738 fi
13739 rm -f core conftest.err conftest.$ac_objext \
13740 conftest$ac_exeext conftest.$ac_ext
13741 fi
13742 eval ac_res=\$$gt_func_gnugettext_libc
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13744 $as_echo "$ac_res" >&6; }
13745
13746 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13747
13748
13749
13750
13751
13752 am_save_CPPFLAGS="$CPPFLAGS"
13753
13754 for element in $INCICONV; do
13755 haveit=
13756 for x in $CPPFLAGS; do
13757
13758 acl_save_prefix="$prefix"
13759 prefix="$acl_final_prefix"
13760 acl_save_exec_prefix="$exec_prefix"
13761 exec_prefix="$acl_final_exec_prefix"
13762 eval x=\"$x\"
13763 exec_prefix="$acl_save_exec_prefix"
13764 prefix="$acl_save_prefix"
13765
13766 if test "X$x" = "X$element"; then
13767 haveit=yes
13768 break
13769 fi
13770 done
13771 if test -z "$haveit"; then
13772 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13773 fi
13774 done
13775
13776
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13778 $as_echo_n "checking for iconv... " >&6; }
13779 if ${am_cv_func_iconv+:} false; then :
13780 $as_echo_n "(cached) " >&6
13781 else
13782
13783 am_cv_func_iconv="no, consider installing GNU libiconv"
13784 am_cv_lib_iconv=no
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13787
13788 #include <stdlib.h>
13789 #include <iconv.h>
13790
13791 int
13792 main ()
13793 {
13794 iconv_t cd = iconv_open("","");
13795 iconv(cd,NULL,NULL,NULL,NULL);
13796 iconv_close(cd);
13797 ;
13798 return 0;
13799 }
13800 _ACEOF
13801 if ac_fn_c_try_link "$LINENO"; then :
13802 am_cv_func_iconv=yes
13803 fi
13804 rm -f core conftest.err conftest.$ac_objext \
13805 conftest$ac_exeext conftest.$ac_ext
13806 if test "$am_cv_func_iconv" != yes; then
13807 am_save_LIBS="$LIBS"
13808 LIBS="$LIBS $LIBICONV"
13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13811
13812 #include <stdlib.h>
13813 #include <iconv.h>
13814
13815 int
13816 main ()
13817 {
13818 iconv_t cd = iconv_open("","");
13819 iconv(cd,NULL,NULL,NULL,NULL);
13820 iconv_close(cd);
13821 ;
13822 return 0;
13823 }
13824 _ACEOF
13825 if ac_fn_c_try_link "$LINENO"; then :
13826 am_cv_lib_iconv=yes
13827 am_cv_func_iconv=yes
13828 fi
13829 rm -f core conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext conftest.$ac_ext
13831 LIBS="$am_save_LIBS"
13832 fi
13833
13834 fi
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13836 $as_echo "$am_cv_func_iconv" >&6; }
13837 if test "$am_cv_func_iconv" = yes; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13839 $as_echo_n "checking for working iconv... " >&6; }
13840 if ${am_cv_func_iconv_works+:} false; then :
13841 $as_echo_n "(cached) " >&6
13842 else
13843
13844 am_save_LIBS="$LIBS"
13845 if test $am_cv_lib_iconv = yes; then
13846 LIBS="$LIBS $LIBICONV"
13847 fi
13848 am_cv_func_iconv_works=no
13849 for ac_iconv_const in '' 'const'; do
13850 if test "$cross_compiling" = yes; then :
13851 case "$host_os" in
13852 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13853 *) am_cv_func_iconv_works="guessing yes" ;;
13854 esac
13855 else
13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857 /* end confdefs.h. */
13858
13859 #include <iconv.h>
13860 #include <string.h>
13861
13862 #ifndef ICONV_CONST
13863 # define ICONV_CONST $ac_iconv_const
13864 #endif
13865
13866 int
13867 main ()
13868 {
13869 int result = 0;
13870 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
13871 successful returns. This is even documented in
13872 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
13873 {
13874 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13875 if (cd_utf8_to_88591 != (iconv_t)(-1))
13876 {
13877 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
13878 char buf[10];
13879 ICONV_CONST char *inptr = input;
13880 size_t inbytesleft = strlen (input);
13881 char *outptr = buf;
13882 size_t outbytesleft = sizeof (buf);
13883 size_t res = iconv (cd_utf8_to_88591,
13884 &inptr, &inbytesleft,
13885 &outptr, &outbytesleft);
13886 if (res == 0)
13887 result |= 1;
13888 iconv_close (cd_utf8_to_88591);
13889 }
13890 }
13891 /* Test against Solaris 10 bug: Failures are not distinguishable from
13892 successful returns. */
13893 {
13894 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13895 if (cd_ascii_to_88591 != (iconv_t)(-1))
13896 {
13897 static ICONV_CONST char input[] = "\263";
13898 char buf[10];
13899 ICONV_CONST char *inptr = input;
13900 size_t inbytesleft = strlen (input);
13901 char *outptr = buf;
13902 size_t outbytesleft = sizeof (buf);
13903 size_t res = iconv (cd_ascii_to_88591,
13904 &inptr, &inbytesleft,
13905 &outptr, &outbytesleft);
13906 if (res == 0)
13907 result |= 2;
13908 iconv_close (cd_ascii_to_88591);
13909 }
13910 }
13911 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
13912 {
13913 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
13914 if (cd_88591_to_utf8 != (iconv_t)(-1))
13915 {
13916 static ICONV_CONST char input[] = "\304";
13917 static char buf[2] = { (char)0xDE, (char)0xAD };
13918 ICONV_CONST char *inptr = input;
13919 size_t inbytesleft = 1;
13920 char *outptr = buf;
13921 size_t outbytesleft = 1;
13922 size_t res = iconv (cd_88591_to_utf8,
13923 &inptr, &inbytesleft,
13924 &outptr, &outbytesleft);
13925 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
13926 result |= 4;
13927 iconv_close (cd_88591_to_utf8);
13928 }
13929 }
13930 #if 0 /* This bug could be worked around by the caller. */
13931 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13932 {
13933 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13934 if (cd_88591_to_utf8 != (iconv_t)(-1))
13935 {
13936 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13937 char buf[50];
13938 ICONV_CONST char *inptr = input;
13939 size_t inbytesleft = strlen (input);
13940 char *outptr = buf;
13941 size_t outbytesleft = sizeof (buf);
13942 size_t res = iconv (cd_88591_to_utf8,
13943 &inptr, &inbytesleft,
13944 &outptr, &outbytesleft);
13945 if ((int)res > 0)
13946 result |= 8;
13947 iconv_close (cd_88591_to_utf8);
13948 }
13949 }
13950 #endif
13951 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13952 provided. */
13953 {
13954 /* Try standardized names. */
13955 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
13956 /* Try IRIX, OSF/1 names. */
13957 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
13958 /* Try AIX names. */
13959 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
13960 /* Try HP-UX names. */
13961 iconv_t cd4 = iconv_open ("utf8", "eucJP");
13962 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
13963 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
13964 result |= 16;
13965 if (cd1 != (iconv_t)(-1))
13966 iconv_close (cd1);
13967 if (cd2 != (iconv_t)(-1))
13968 iconv_close (cd2);
13969 if (cd3 != (iconv_t)(-1))
13970 iconv_close (cd3);
13971 if (cd4 != (iconv_t)(-1))
13972 iconv_close (cd4);
13973 }
13974 return result;
13975
13976 ;
13977 return 0;
13978 }
13979 _ACEOF
13980 if ac_fn_c_try_run "$LINENO"; then :
13981 am_cv_func_iconv_works=yes
13982 fi
13983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13984 conftest.$ac_objext conftest.beam conftest.$ac_ext
13985 fi
13986
13987 test "$am_cv_func_iconv_works" = no || break
13988 done
13989 LIBS="$am_save_LIBS"
13990
13991 fi
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13993 $as_echo "$am_cv_func_iconv_works" >&6; }
13994 case "$am_cv_func_iconv_works" in
13995 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13996 *) am_func_iconv=yes ;;
13997 esac
13998 else
13999 am_func_iconv=no am_cv_lib_iconv=no
14000 fi
14001 if test "$am_func_iconv" = yes; then
14002
14003 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14004
14005 fi
14006 if test "$am_cv_lib_iconv" = yes; then
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14008 $as_echo_n "checking how to link with libiconv... " >&6; }
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14010 $as_echo "$LIBICONV" >&6; }
14011 else
14012 CPPFLAGS="$am_save_CPPFLAGS"
14013 LIBICONV=
14014 LTLIBICONV=
14015 fi
14016
14017
14018
14019
14020
14021
14022 use_additional=yes
14023
14024 acl_save_prefix="$prefix"
14025 prefix="$acl_final_prefix"
14026 acl_save_exec_prefix="$exec_prefix"
14027 exec_prefix="$acl_final_exec_prefix"
14028
14029 eval additional_includedir=\"$includedir\"
14030 eval additional_libdir=\"$libdir\"
14031
14032 exec_prefix="$acl_save_exec_prefix"
14033 prefix="$acl_save_prefix"
14034
14035
14036 # Check whether --with-libintl-prefix was given.
14037 if test "${with_libintl_prefix+set}" = set; then :
14038 withval=$with_libintl_prefix;
14039 if test "X$withval" = "Xno"; then
14040 use_additional=no
14041 else
14042 if test "X$withval" = "X"; then
14043
14044 acl_save_prefix="$prefix"
14045 prefix="$acl_final_prefix"
14046 acl_save_exec_prefix="$exec_prefix"
14047 exec_prefix="$acl_final_exec_prefix"
14048
14049 eval additional_includedir=\"$includedir\"
14050 eval additional_libdir=\"$libdir\"
14051
14052 exec_prefix="$acl_save_exec_prefix"
14053 prefix="$acl_save_prefix"
14054
14055 else
14056 additional_includedir="$withval/include"
14057 additional_libdir="$withval/lib"
14058 fi
14059 fi
14060
14061 fi
14062
14063
14064 # Check whether --with-libintl-type was given.
14065 if test "${with_libintl_type+set}" = set; then :
14066 withval=$with_libintl_type; with_libintl_type=$withval
14067 else
14068 with_libintl_type=auto
14069 fi
14070
14071 lib_type=`eval echo \$with_libintl_type`
14072
14073 LIBINTL=
14074 LTLIBINTL=
14075 INCINTL=
14076 rpathdirs=
14077 ltrpathdirs=
14078 names_already_handled=
14079 names_next_round='intl '
14080 while test -n "$names_next_round"; do
14081 names_this_round="$names_next_round"
14082 names_next_round=
14083 for name in $names_this_round; do
14084 already_handled=
14085 for n in $names_already_handled; do
14086 if test "$n" = "$name"; then
14087 already_handled=yes
14088 break
14089 fi
14090 done
14091 if test -z "$already_handled"; then
14092 names_already_handled="$names_already_handled $name"
14093 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14094 eval value=\"\$HAVE_LIB$uppername\"
14095 if test -n "$value"; then
14096 if test "$value" = yes; then
14097 eval value=\"\$LIB$uppername\"
14098 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14099 eval value=\"\$LTLIB$uppername\"
14100 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14101 else
14102 :
14103 fi
14104 else
14105 found_dir=
14106 found_la=
14107 found_so=
14108 found_a=
14109 if test $use_additional = yes; then
14110 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14111 found_dir="$additional_libdir"
14112 found_so="$additional_libdir/lib$name.$shlibext"
14113 if test -f "$additional_libdir/lib$name.la"; then
14114 found_la="$additional_libdir/lib$name.la"
14115 fi
14116 elif test x$lib_type != xshared; then
14117 if test -f "$additional_libdir/lib$name.$libext"; then
14118 found_dir="$additional_libdir"
14119 found_a="$additional_libdir/lib$name.$libext"
14120 if test -f "$additional_libdir/lib$name.la"; then
14121 found_la="$additional_libdir/lib$name.la"
14122 fi
14123 fi
14124 fi
14125 fi
14126 if test "X$found_dir" = "X"; then
14127 for x in $LDFLAGS $LTLIBINTL; do
14128
14129 acl_save_prefix="$prefix"
14130 prefix="$acl_final_prefix"
14131 acl_save_exec_prefix="$exec_prefix"
14132 exec_prefix="$acl_final_exec_prefix"
14133 eval x=\"$x\"
14134 exec_prefix="$acl_save_exec_prefix"
14135 prefix="$acl_save_prefix"
14136
14137 case "$x" in
14138 -L*)
14139 dir=`echo "X$x" | sed -e 's/^X-L//'`
14140 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14141 found_dir="$dir"
14142 found_so="$dir/lib$name.$shlibext"
14143 if test -f "$dir/lib$name.la"; then
14144 found_la="$dir/lib$name.la"
14145 fi
14146 elif test x$lib_type != xshared; then
14147 if test -f "$dir/lib$name.$libext"; then
14148 found_dir="$dir"
14149 found_a="$dir/lib$name.$libext"
14150 if test -f "$dir/lib$name.la"; then
14151 found_la="$dir/lib$name.la"
14152 fi
14153 fi
14154 fi
14155 ;;
14156 esac
14157 if test "X$found_dir" != "X"; then
14158 break
14159 fi
14160 done
14161 fi
14162 if test "X$found_dir" != "X"; then
14163 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14164 if test "X$found_so" != "X"; then
14165 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14166 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14167 else
14168 haveit=
14169 for x in $ltrpathdirs; do
14170 if test "X$x" = "X$found_dir"; then
14171 haveit=yes
14172 break
14173 fi
14174 done
14175 if test -z "$haveit"; then
14176 ltrpathdirs="$ltrpathdirs $found_dir"
14177 fi
14178 if test "$hardcode_direct" = yes; then
14179 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14180 else
14181 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14182 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14183 haveit=
14184 for x in $rpathdirs; do
14185 if test "X$x" = "X$found_dir"; then
14186 haveit=yes
14187 break
14188 fi
14189 done
14190 if test -z "$haveit"; then
14191 rpathdirs="$rpathdirs $found_dir"
14192 fi
14193 else
14194 haveit=
14195 for x in $LDFLAGS $LIBINTL; do
14196
14197 acl_save_prefix="$prefix"
14198 prefix="$acl_final_prefix"
14199 acl_save_exec_prefix="$exec_prefix"
14200 exec_prefix="$acl_final_exec_prefix"
14201 eval x=\"$x\"
14202 exec_prefix="$acl_save_exec_prefix"
14203 prefix="$acl_save_prefix"
14204
14205 if test "X$x" = "X-L$found_dir"; then
14206 haveit=yes
14207 break
14208 fi
14209 done
14210 if test -z "$haveit"; then
14211 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14212 fi
14213 if test "$hardcode_minus_L" != no; then
14214 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14215 else
14216 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14217 fi
14218 fi
14219 fi
14220 fi
14221 else
14222 if test "X$found_a" != "X"; then
14223 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14224 else
14225 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14226 fi
14227 fi
14228 additional_includedir=
14229 case "$found_dir" in
14230 */lib | */lib/)
14231 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14232 additional_includedir="$basedir/include"
14233 ;;
14234 esac
14235 if test "X$additional_includedir" != "X"; then
14236 if test "X$additional_includedir" != "X/usr/include"; then
14237 haveit=
14238 if test "X$additional_includedir" = "X/usr/local/include"; then
14239 if test -n "$GCC"; then
14240 case $host_os in
14241 linux*) haveit=yes;;
14242 esac
14243 fi
14244 fi
14245 if test -z "$haveit"; then
14246 for x in $CPPFLAGS $INCINTL; do
14247
14248 acl_save_prefix="$prefix"
14249 prefix="$acl_final_prefix"
14250 acl_save_exec_prefix="$exec_prefix"
14251 exec_prefix="$acl_final_exec_prefix"
14252 eval x=\"$x\"
14253 exec_prefix="$acl_save_exec_prefix"
14254 prefix="$acl_save_prefix"
14255
14256 if test "X$x" = "X-I$additional_includedir"; then
14257 haveit=yes
14258 break
14259 fi
14260 done
14261 if test -z "$haveit"; then
14262 if test -d "$additional_includedir"; then
14263 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14264 fi
14265 fi
14266 fi
14267 fi
14268 fi
14269 if test -n "$found_la"; then
14270 save_libdir="$libdir"
14271 case "$found_la" in
14272 */* | *\\*) . "$found_la" ;;
14273 *) . "./$found_la" ;;
14274 esac
14275 libdir="$save_libdir"
14276 for dep in $dependency_libs; do
14277 case "$dep" in
14278 -L*)
14279 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14280 if test "X$additional_libdir" != "X/usr/lib"; then
14281 haveit=
14282 if test "X$additional_libdir" = "X/usr/local/lib"; then
14283 if test -n "$GCC"; then
14284 case $host_os in
14285 linux*) haveit=yes;;
14286 esac
14287 fi
14288 fi
14289 if test -z "$haveit"; then
14290 haveit=
14291 for x in $LDFLAGS $LIBINTL; do
14292
14293 acl_save_prefix="$prefix"
14294 prefix="$acl_final_prefix"
14295 acl_save_exec_prefix="$exec_prefix"
14296 exec_prefix="$acl_final_exec_prefix"
14297 eval x=\"$x\"
14298 exec_prefix="$acl_save_exec_prefix"
14299 prefix="$acl_save_prefix"
14300
14301 if test "X$x" = "X-L$additional_libdir"; then
14302 haveit=yes
14303 break
14304 fi
14305 done
14306 if test -z "$haveit"; then
14307 if test -d "$additional_libdir"; then
14308 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14309 fi
14310 fi
14311 haveit=
14312 for x in $LDFLAGS $LTLIBINTL; do
14313
14314 acl_save_prefix="$prefix"
14315 prefix="$acl_final_prefix"
14316 acl_save_exec_prefix="$exec_prefix"
14317 exec_prefix="$acl_final_exec_prefix"
14318 eval x=\"$x\"
14319 exec_prefix="$acl_save_exec_prefix"
14320 prefix="$acl_save_prefix"
14321
14322 if test "X$x" = "X-L$additional_libdir"; then
14323 haveit=yes
14324 break
14325 fi
14326 done
14327 if test -z "$haveit"; then
14328 if test -d "$additional_libdir"; then
14329 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14330 fi
14331 fi
14332 fi
14333 fi
14334 ;;
14335 -R*)
14336 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14337 if test "$enable_rpath" != no; then
14338 haveit=
14339 for x in $rpathdirs; do
14340 if test "X$x" = "X$dir"; then
14341 haveit=yes
14342 break
14343 fi
14344 done
14345 if test -z "$haveit"; then
14346 rpathdirs="$rpathdirs $dir"
14347 fi
14348 haveit=
14349 for x in $ltrpathdirs; do
14350 if test "X$x" = "X$dir"; then
14351 haveit=yes
14352 break
14353 fi
14354 done
14355 if test -z "$haveit"; then
14356 ltrpathdirs="$ltrpathdirs $dir"
14357 fi
14358 fi
14359 ;;
14360 -l*)
14361 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14362 ;;
14363 *.la)
14364 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14365 ;;
14366 *)
14367 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14368 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14369 ;;
14370 esac
14371 done
14372 fi
14373 else
14374 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14375 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14376 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14377 else
14378 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14379 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14380 fi
14381 fi
14382 fi
14383 fi
14384 done
14385 done
14386 if test "X$rpathdirs" != "X"; then
14387 if test -n "$hardcode_libdir_separator"; then
14388 alldirs=
14389 for found_dir in $rpathdirs; do
14390 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14391 done
14392 acl_save_libdir="$libdir"
14393 libdir="$alldirs"
14394 eval flag=\"$hardcode_libdir_flag_spec\"
14395 libdir="$acl_save_libdir"
14396 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14397 else
14398 for found_dir in $rpathdirs; do
14399 acl_save_libdir="$libdir"
14400 libdir="$found_dir"
14401 eval flag=\"$hardcode_libdir_flag_spec\"
14402 libdir="$acl_save_libdir"
14403 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14404 done
14405 fi
14406 fi
14407 if test "X$ltrpathdirs" != "X"; then
14408 for found_dir in $ltrpathdirs; do
14409 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14410 done
14411 fi
14412
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14414 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14415 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14416 $as_echo_n "(cached) " >&6
14417 else
14418 gt_save_CPPFLAGS="$CPPFLAGS"
14419 CPPFLAGS="$CPPFLAGS $INCINTL"
14420 gt_save_LIBS="$LIBS"
14421 LIBS="$LIBS $LIBINTL"
14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14424
14425 #include <libintl.h>
14426 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14427 extern int _nl_msg_cat_cntr;
14428 extern
14429 #ifdef __cplusplus
14430 "C"
14431 #endif
14432 const char *_nl_expand_alias (const char *);
14433 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14434 #else
14435 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14436 #endif
14437 $gt_revision_test_code
14438
14439 int
14440 main ()
14441 {
14442
14443 bindtextdomain ("", "");
14444 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14445
14446 ;
14447 return 0;
14448 }
14449 _ACEOF
14450 if ac_fn_c_try_link "$LINENO"; then :
14451 eval "$gt_func_gnugettext_libintl=yes"
14452 else
14453 eval "$gt_func_gnugettext_libintl=no"
14454 fi
14455 rm -f core conftest.err conftest.$ac_objext \
14456 conftest$ac_exeext conftest.$ac_ext
14457 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14458 LIBS="$LIBS $LIBICONV"
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14461
14462 #include <libintl.h>
14463 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14464 extern int _nl_msg_cat_cntr;
14465 extern
14466 #ifdef __cplusplus
14467 "C"
14468 #endif
14469 const char *_nl_expand_alias (const char *);
14470 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14471 #else
14472 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14473 #endif
14474 $gt_revision_test_code
14475
14476 int
14477 main ()
14478 {
14479
14480 bindtextdomain ("", "");
14481 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14482
14483 ;
14484 return 0;
14485 }
14486 _ACEOF
14487 if ac_fn_c_try_link "$LINENO"; then :
14488 LIBINTL="$LIBINTL $LIBICONV"
14489 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14490 eval "$gt_func_gnugettext_libintl=yes"
14491
14492 fi
14493 rm -f core conftest.err conftest.$ac_objext \
14494 conftest$ac_exeext conftest.$ac_ext
14495 fi
14496 CPPFLAGS="$gt_save_CPPFLAGS"
14497 LIBS="$gt_save_LIBS"
14498 fi
14499 eval ac_res=\$$gt_func_gnugettext_libintl
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14501 $as_echo "$ac_res" >&6; }
14502 fi
14503
14504 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14505 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14506 && test "$PACKAGE" != gettext-runtime \
14507 && test "$PACKAGE" != gettext-tools; }; then
14508 gt_use_preinstalled_gnugettext=yes
14509 else
14510 LIBINTL=
14511 LTLIBINTL=
14512 INCINTL=
14513 fi
14514
14515
14516
14517 if test -n "$INTL_MACOSX_LIBS"; then
14518 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14519 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14520 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14521 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14522 fi
14523 fi
14524
14525 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14526 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14527
14528 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14529
14530 else
14531 USE_NLS=no
14532 fi
14533 fi
14534
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14536 $as_echo_n "checking whether to use NLS... " >&6; }
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14538 $as_echo "$USE_NLS" >&6; }
14539 if test "$USE_NLS" = "yes"; then
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14541 $as_echo_n "checking where the gettext function comes from... " >&6; }
14542 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14543 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14544 gt_source="external libintl"
14545 else
14546 gt_source="libc"
14547 fi
14548 else
14549 gt_source="included intl directory"
14550 fi
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14552 $as_echo "$gt_source" >&6; }
14553 fi
14554
14555 if test "$USE_NLS" = "yes"; then
14556
14557 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14558 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14560 $as_echo_n "checking how to link with libintl... " >&6; }
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14562 $as_echo "$LIBINTL" >&6; }
14563
14564 for element in $INCINTL; do
14565 haveit=
14566 for x in $CPPFLAGS; do
14567
14568 acl_save_prefix="$prefix"
14569 prefix="$acl_final_prefix"
14570 acl_save_exec_prefix="$exec_prefix"
14571 exec_prefix="$acl_final_exec_prefix"
14572 eval x=\"$x\"
14573 exec_prefix="$acl_save_exec_prefix"
14574 prefix="$acl_save_prefix"
14575
14576 if test "X$x" = "X$element"; then
14577 haveit=yes
14578 break
14579 fi
14580 done
14581 if test -z "$haveit"; then
14582 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14583 fi
14584 done
14585
14586 fi
14587
14588
14589 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14590
14591
14592 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14593
14594 fi
14595
14596 POSUB=po
14597 fi
14598
14599
14600
14601 INTLLIBS="$LIBINTL"
14602
14603
14604
14605
14606
14607
14608 fi
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14621 $as_echo_n "checking whether NLS is requested... " >&6; }
14622 if test x"$USE_NLS" != xyes; then
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14624 $as_echo "no" >&6; }
14625 else
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14627 $as_echo "yes" >&6; }
14628
14629 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14630
14631
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14633 $as_echo_n "checking for catalogs to be installed... " >&6; }
14634 # Look for .po and .gmo files in the source directory.
14635 CATALOGS=
14636 XLINGUAS=
14637 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14638 # If there aren't any .gmo files the shell will give us the
14639 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14640 # weeded out.
14641 case "$cat" in *\**)
14642 continue;;
14643 esac
14644 # The quadruple backslash is collapsed to a double backslash
14645 # by the backticks, then collapsed again by the double quotes,
14646 # leaving us with one backslash in the sed expression (right
14647 # before the dot that mustn't act as a wildcard).
14648 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14649 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14650 # The user is allowed to set LINGUAS to a list of languages to
14651 # install catalogs for. If it's empty that means "all of them."
14652 if test "x$LINGUAS" = x; then
14653 CATALOGS="$CATALOGS $cat"
14654 XLINGUAS="$XLINGUAS $lang"
14655 else
14656 case "$LINGUAS" in *$lang*)
14657 CATALOGS="$CATALOGS $cat"
14658 XLINGUAS="$XLINGUAS $lang"
14659 ;;
14660 esac
14661 fi
14662 done
14663 LINGUAS="$XLINGUAS"
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14665 $as_echo "$LINGUAS" >&6; }
14666
14667
14668 DATADIRNAME=share
14669
14670 INSTOBJEXT=.mo
14671
14672 GENCAT=gencat
14673
14674 CATOBJEXT=.gmo
14675
14676 fi
14677
14678
14679
14680
14681 # Prepare PATH_SEPARATOR.
14682 # The user is always right.
14683 if test "${PATH_SEPARATOR+set}" != set; then
14684 echo "#! /bin/sh" >conf$$.sh
14685 echo "exit 0" >>conf$$.sh
14686 chmod +x conf$$.sh
14687 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14688 PATH_SEPARATOR=';'
14689 else
14690 PATH_SEPARATOR=:
14691 fi
14692 rm -f conf$$.sh
14693 fi
14694
14695 # Find out how to test for executable files. Don't use a zero-byte file,
14696 # as systems may use methods other than mode bits to determine executability.
14697 cat >conf$$.file <<_ASEOF
14698 #! /bin/sh
14699 exit 0
14700 _ASEOF
14701 chmod +x conf$$.file
14702 if test -x conf$$.file >/dev/null 2>&1; then
14703 ac_executable_p="test -x"
14704 else
14705 ac_executable_p="test -f"
14706 fi
14707 rm -f conf$$.file
14708
14709 # Extract the first word of "msgfmt", so it can be a program name with args.
14710 set dummy msgfmt; ac_word=$2
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14712 $as_echo_n "checking for $ac_word... " >&6; }
14713 if ${ac_cv_path_MSGFMT+:} false; then :
14714 $as_echo_n "(cached) " >&6
14715 else
14716 case "$MSGFMT" in
14717 [\\/]* | ?:[\\/]*)
14718 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14719 ;;
14720 *)
14721 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14722 for ac_dir in $PATH; do
14723 IFS="$ac_save_IFS"
14724 test -z "$ac_dir" && ac_dir=.
14725 for ac_exec_ext in '' $ac_executable_extensions; do
14726 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14727 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
14728 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14729 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14730 break 2
14731 fi
14732 fi
14733 done
14734 done
14735 IFS="$ac_save_IFS"
14736 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14737 ;;
14738 esac
14739 fi
14740 MSGFMT="$ac_cv_path_MSGFMT"
14741 if test "$MSGFMT" != ":"; then
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14743 $as_echo "$MSGFMT" >&6; }
14744 else
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14746 $as_echo "no" >&6; }
14747 fi
14748
14749 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14750 set dummy gmsgfmt; ac_word=$2
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14752 $as_echo_n "checking for $ac_word... " >&6; }
14753 if ${ac_cv_path_GMSGFMT+:} false; then :
14754 $as_echo_n "(cached) " >&6
14755 else
14756 case $GMSGFMT in
14757 [\\/]* | ?:[\\/]*)
14758 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14759 ;;
14760 *)
14761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14762 for as_dir in $PATH
14763 do
14764 IFS=$as_save_IFS
14765 test -z "$as_dir" && as_dir=.
14766 for ac_exec_ext in '' $ac_executable_extensions; do
14767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14768 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14770 break 2
14771 fi
14772 done
14773 done
14774 IFS=$as_save_IFS
14775
14776 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14777 ;;
14778 esac
14779 fi
14780 GMSGFMT=$ac_cv_path_GMSGFMT
14781 if test -n "$GMSGFMT"; then
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14783 $as_echo "$GMSGFMT" >&6; }
14784 else
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14786 $as_echo "no" >&6; }
14787 fi
14788
14789
14790
14791
14792 # Prepare PATH_SEPARATOR.
14793 # The user is always right.
14794 if test "${PATH_SEPARATOR+set}" != set; then
14795 echo "#! /bin/sh" >conf$$.sh
14796 echo "exit 0" >>conf$$.sh
14797 chmod +x conf$$.sh
14798 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14799 PATH_SEPARATOR=';'
14800 else
14801 PATH_SEPARATOR=:
14802 fi
14803 rm -f conf$$.sh
14804 fi
14805
14806 # Find out how to test for executable files. Don't use a zero-byte file,
14807 # as systems may use methods other than mode bits to determine executability.
14808 cat >conf$$.file <<_ASEOF
14809 #! /bin/sh
14810 exit 0
14811 _ASEOF
14812 chmod +x conf$$.file
14813 if test -x conf$$.file >/dev/null 2>&1; then
14814 ac_executable_p="test -x"
14815 else
14816 ac_executable_p="test -f"
14817 fi
14818 rm -f conf$$.file
14819
14820 # Extract the first word of "xgettext", so it can be a program name with args.
14821 set dummy xgettext; ac_word=$2
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14823 $as_echo_n "checking for $ac_word... " >&6; }
14824 if ${ac_cv_path_XGETTEXT+:} false; then :
14825 $as_echo_n "(cached) " >&6
14826 else
14827 case "$XGETTEXT" in
14828 [\\/]* | ?:[\\/]*)
14829 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14830 ;;
14831 *)
14832 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14833 for ac_dir in $PATH; do
14834 IFS="$ac_save_IFS"
14835 test -z "$ac_dir" && ac_dir=.
14836 for ac_exec_ext in '' $ac_executable_extensions; do
14837 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14838 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14839 (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
14840 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14841 break 2
14842 fi
14843 fi
14844 done
14845 done
14846 IFS="$ac_save_IFS"
14847 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14848 ;;
14849 esac
14850 fi
14851 XGETTEXT="$ac_cv_path_XGETTEXT"
14852 if test "$XGETTEXT" != ":"; then
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14854 $as_echo "$XGETTEXT" >&6; }
14855 else
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14857 $as_echo "no" >&6; }
14858 fi
14859
14860 rm -f messages.po
14861
14862
14863 # Prepare PATH_SEPARATOR.
14864 # The user is always right.
14865 if test "${PATH_SEPARATOR+set}" != set; then
14866 echo "#! /bin/sh" >conf$$.sh
14867 echo "exit 0" >>conf$$.sh
14868 chmod +x conf$$.sh
14869 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14870 PATH_SEPARATOR=';'
14871 else
14872 PATH_SEPARATOR=:
14873 fi
14874 rm -f conf$$.sh
14875 fi
14876
14877 # Find out how to test for executable files. Don't use a zero-byte file,
14878 # as systems may use methods other than mode bits to determine executability.
14879 cat >conf$$.file <<_ASEOF
14880 #! /bin/sh
14881 exit 0
14882 _ASEOF
14883 chmod +x conf$$.file
14884 if test -x conf$$.file >/dev/null 2>&1; then
14885 ac_executable_p="test -x"
14886 else
14887 ac_executable_p="test -f"
14888 fi
14889 rm -f conf$$.file
14890
14891 # Extract the first word of "msgmerge", so it can be a program name with args.
14892 set dummy msgmerge; ac_word=$2
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14894 $as_echo_n "checking for $ac_word... " >&6; }
14895 if ${ac_cv_path_MSGMERGE+:} false; then :
14896 $as_echo_n "(cached) " >&6
14897 else
14898 case "$MSGMERGE" in
14899 [\\/]* | ?:[\\/]*)
14900 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14901 ;;
14902 *)
14903 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14904 for ac_dir in $PATH; do
14905 IFS="$ac_save_IFS"
14906 test -z "$ac_dir" && ac_dir=.
14907 for ac_exec_ext in '' $ac_executable_extensions; do
14908 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14909 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
14910 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14911 break 2
14912 fi
14913 fi
14914 done
14915 done
14916 IFS="$ac_save_IFS"
14917 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14918 ;;
14919 esac
14920 fi
14921 MSGMERGE="$ac_cv_path_MSGMERGE"
14922 if test "$MSGMERGE" != ":"; then
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14924 $as_echo "$MSGMERGE" >&6; }
14925 else
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14927 $as_echo "no" >&6; }
14928 fi
14929
14930
14931 if test "$GMSGFMT" != ":"; then
14932 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
14933 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14934 : ;
14935 else
14936 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
14938 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
14939 GMSGFMT=":"
14940 fi
14941 fi
14942
14943 if test "$XGETTEXT" != ":"; then
14944 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14945 (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
14946 : ;
14947 else
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
14949 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
14950 XGETTEXT=":"
14951 fi
14952 rm -f messages.po
14953 fi
14954
14955 ac_config_commands="$ac_config_commands default-2"
14956
14957
14958
14959
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14961 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14962 # Check whether --enable-maintainer-mode was given.
14963 if test "${enable_maintainer_mode+set}" = set; then :
14964 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14965 else
14966 USE_MAINTAINER_MODE=no
14967 fi
14968
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14970 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14971 if test $USE_MAINTAINER_MODE = yes; then
14972 MAINTAINER_MODE_TRUE=
14973 MAINTAINER_MODE_FALSE='#'
14974 else
14975 MAINTAINER_MODE_TRUE='#'
14976 MAINTAINER_MODE_FALSE=
14977 fi
14978
14979 MAINT=$MAINTAINER_MODE_TRUE
14980
14981
14982 if false; then
14983 GENINSRC_NEVER_TRUE=
14984 GENINSRC_NEVER_FALSE='#'
14985 else
14986 GENINSRC_NEVER_TRUE='#'
14987 GENINSRC_NEVER_FALSE=
14988 fi
14989
14990
14991 if test -n "$EXEEXT"; then
14992
14993 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
14994
14995 fi
14996
14997 cat >>confdefs.h <<_ACEOF
14998 #define EXECUTABLE_SUFFIX "${EXEEXT}"
14999 _ACEOF
15000
15001
15002 # host-specific stuff:
15003
15004 HDEFINES=
15005
15006 . ${srcdir}/../bfd/configure.host
15007
15008
15009 AR=${AR-ar}
15010
15011 if test -n "$ac_tool_prefix"; then
15012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15015 $as_echo_n "checking for $ac_word... " >&6; }
15016 if ${ac_cv_prog_RANLIB+:} false; then :
15017 $as_echo_n "(cached) " >&6
15018 else
15019 if test -n "$RANLIB"; then
15020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15021 else
15022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15023 for as_dir in $PATH
15024 do
15025 IFS=$as_save_IFS
15026 test -z "$as_dir" && as_dir=.
15027 for ac_exec_ext in '' $ac_executable_extensions; do
15028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15031 break 2
15032 fi
15033 done
15034 done
15035 IFS=$as_save_IFS
15036
15037 fi
15038 fi
15039 RANLIB=$ac_cv_prog_RANLIB
15040 if test -n "$RANLIB"; then
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15042 $as_echo "$RANLIB" >&6; }
15043 else
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15045 $as_echo "no" >&6; }
15046 fi
15047
15048
15049 fi
15050 if test -z "$ac_cv_prog_RANLIB"; then
15051 ac_ct_RANLIB=$RANLIB
15052 # Extract the first word of "ranlib", so it can be a program name with args.
15053 set dummy ranlib; ac_word=$2
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15055 $as_echo_n "checking for $ac_word... " >&6; }
15056 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15057 $as_echo_n "(cached) " >&6
15058 else
15059 if test -n "$ac_ct_RANLIB"; then
15060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15061 else
15062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15063 for as_dir in $PATH
15064 do
15065 IFS=$as_save_IFS
15066 test -z "$as_dir" && as_dir=.
15067 for ac_exec_ext in '' $ac_executable_extensions; do
15068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15069 ac_cv_prog_ac_ct_RANLIB="ranlib"
15070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15071 break 2
15072 fi
15073 done
15074 done
15075 IFS=$as_save_IFS
15076
15077 fi
15078 fi
15079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15080 if test -n "$ac_ct_RANLIB"; then
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15082 $as_echo "$ac_ct_RANLIB" >&6; }
15083 else
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15085 $as_echo "no" >&6; }
15086 fi
15087
15088 if test "x$ac_ct_RANLIB" = x; then
15089 RANLIB=":"
15090 else
15091 case $cross_compiling:$ac_tool_warned in
15092 yes:)
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15095 ac_tool_warned=yes ;;
15096 esac
15097 RANLIB=$ac_ct_RANLIB
15098 fi
15099 else
15100 RANLIB="$ac_cv_prog_RANLIB"
15101 fi
15102
15103
15104
15105 # Put a plausible default for CC_FOR_BUILD in Makefile.
15106 if test -z "$CC_FOR_BUILD"; then
15107 if test "x$cross_compiling" = "xno"; then
15108 CC_FOR_BUILD='$(CC)'
15109 else
15110 CC_FOR_BUILD=gcc
15111 fi
15112 fi
15113
15114 # Also set EXEEXT_FOR_BUILD.
15115 if test "x$cross_compiling" = "xno"; then
15116 EXEEXT_FOR_BUILD='$(EXEEXT)'
15117 else
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
15119 $as_echo_n "checking for build system executable suffix... " >&6; }
15120 if ${bfd_cv_build_exeext+:} false; then :
15121 $as_echo_n "(cached) " >&6
15122 else
15123 rm -f conftest*
15124 echo 'int main () { return 0; }' > conftest.c
15125 bfd_cv_build_exeext=
15126 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
15127 for file in conftest.*; do
15128 case $file in
15129 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
15130 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
15131 esac
15132 done
15133 rm -f conftest*
15134 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
15135 fi
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
15137 $as_echo "$bfd_cv_build_exeext" >&6; }
15138 EXEEXT_FOR_BUILD=""
15139 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
15140 fi
15141
15142
15143 DEMANGLER_NAME=c++filt
15144 case "${host}" in
15145 *-*-go32* | *-*-msdos*)
15146 DEMANGLER_NAME=cxxfilt
15147 esac
15148
15149
15150 # We use headers from include/ that check various HAVE_*_H macros, thus
15151 # should ensure they are set by configure. This is true even when C99
15152 # guarantees they are available.
15153 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
15154 # Besides those, we need to check anything used in binutils/ not in C99.
15155 for ac_header in fcntl.h inttypes.h stdint.h sys/file.h \
15156 sys/stat.h sys/time.h sys/types.h unistd.h
15157 do :
15158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15159 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15160 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15161 cat >>confdefs.h <<_ACEOF
15162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15163 _ACEOF
15164
15165 fi
15166
15167 done
15168
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15170 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15171 if ${ac_cv_header_sys_wait_h+:} false; then :
15172 $as_echo_n "(cached) " >&6
15173 else
15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15175 /* end confdefs.h. */
15176 #include <sys/types.h>
15177 #include <sys/wait.h>
15178 #ifndef WEXITSTATUS
15179 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15180 #endif
15181 #ifndef WIFEXITED
15182 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15183 #endif
15184
15185 int
15186 main ()
15187 {
15188 int s;
15189 wait (&s);
15190 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15191 ;
15192 return 0;
15193 }
15194 _ACEOF
15195 if ac_fn_c_try_compile "$LINENO"; then :
15196 ac_cv_header_sys_wait_h=yes
15197 else
15198 ac_cv_header_sys_wait_h=no
15199 fi
15200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15201 fi
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15203 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
15204 if test $ac_cv_header_sys_wait_h = yes; then
15205
15206 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15207
15208 fi
15209
15210
15211
15212
15213 for ac_header in $ac_header_list
15214 do :
15215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15216 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15217 "
15218 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15219 cat >>confdefs.h <<_ACEOF
15220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15221 _ACEOF
15222
15223 fi
15224
15225 done
15226
15227
15228
15229
15230
15231
15232
15233 save_ASAN_OPTIONS="$ASAN_OPTIONS"
15234 ASAN_OPTIONS=detect_leaks=0
15235 export ASAN_OPTIONS
15236
15237 for ac_func in getpagesize
15238 do :
15239 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15240 if test "x$ac_cv_func_getpagesize" = xyes; then :
15241 cat >>confdefs.h <<_ACEOF
15242 #define HAVE_GETPAGESIZE 1
15243 _ACEOF
15244
15245 fi
15246 done
15247
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15249 $as_echo_n "checking for working mmap... " >&6; }
15250 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15251 $as_echo_n "(cached) " >&6
15252 else
15253 if test "$cross_compiling" = yes; then :
15254 ac_cv_func_mmap_fixed_mapped=no
15255 else
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15258 $ac_includes_default
15259 /* malloc might have been renamed as rpl_malloc. */
15260 #undef malloc
15261
15262 /* Thanks to Mike Haertel and Jim Avera for this test.
15263 Here is a matrix of mmap possibilities:
15264 mmap private not fixed
15265 mmap private fixed at somewhere currently unmapped
15266 mmap private fixed at somewhere already mapped
15267 mmap shared not fixed
15268 mmap shared fixed at somewhere currently unmapped
15269 mmap shared fixed at somewhere already mapped
15270 For private mappings, we should verify that changes cannot be read()
15271 back from the file, nor mmap's back from the file at a different
15272 address. (There have been systems where private was not correctly
15273 implemented like the infamous i386 svr4.0, and systems where the
15274 VM page cache was not coherent with the file system buffer cache
15275 like early versions of FreeBSD and possibly contemporary NetBSD.)
15276 For shared mappings, we should conversely verify that changes get
15277 propagated back to all the places they're supposed to be.
15278
15279 Grep wants private fixed already mapped.
15280 The main things grep needs to know about mmap are:
15281 * does it exist and is it safe to write into the mmap'd area
15282 * how to use it (BSD variants) */
15283
15284 #include <fcntl.h>
15285 #include <sys/mman.h>
15286
15287 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15288 char *malloc ();
15289 #endif
15290
15291 /* This mess was copied from the GNU getpagesize.h. */
15292 #ifndef HAVE_GETPAGESIZE
15293 # ifdef _SC_PAGESIZE
15294 # define getpagesize() sysconf(_SC_PAGESIZE)
15295 # else /* no _SC_PAGESIZE */
15296 # ifdef HAVE_SYS_PARAM_H
15297 # include <sys/param.h>
15298 # ifdef EXEC_PAGESIZE
15299 # define getpagesize() EXEC_PAGESIZE
15300 # else /* no EXEC_PAGESIZE */
15301 # ifdef NBPG
15302 # define getpagesize() NBPG * CLSIZE
15303 # ifndef CLSIZE
15304 # define CLSIZE 1
15305 # endif /* no CLSIZE */
15306 # else /* no NBPG */
15307 # ifdef NBPC
15308 # define getpagesize() NBPC
15309 # else /* no NBPC */
15310 # ifdef PAGESIZE
15311 # define getpagesize() PAGESIZE
15312 # endif /* PAGESIZE */
15313 # endif /* no NBPC */
15314 # endif /* no NBPG */
15315 # endif /* no EXEC_PAGESIZE */
15316 # else /* no HAVE_SYS_PARAM_H */
15317 # define getpagesize() 8192 /* punt totally */
15318 # endif /* no HAVE_SYS_PARAM_H */
15319 # endif /* no _SC_PAGESIZE */
15320
15321 #endif /* no HAVE_GETPAGESIZE */
15322
15323 int
15324 main ()
15325 {
15326 char *data, *data2, *data3;
15327 const char *cdata2;
15328 int i, pagesize;
15329 int fd, fd2;
15330
15331 pagesize = getpagesize ();
15332
15333 /* First, make a file with some known garbage in it. */
15334 data = (char *) malloc (pagesize);
15335 if (!data)
15336 return 1;
15337 for (i = 0; i < pagesize; ++i)
15338 *(data + i) = rand ();
15339 umask (0);
15340 fd = creat ("conftest.mmap", 0600);
15341 if (fd < 0)
15342 return 2;
15343 if (write (fd, data, pagesize) != pagesize)
15344 return 3;
15345 close (fd);
15346
15347 /* Next, check that the tail of a page is zero-filled. File must have
15348 non-zero length, otherwise we risk SIGBUS for entire page. */
15349 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15350 if (fd2 < 0)
15351 return 4;
15352 cdata2 = "";
15353 if (write (fd2, cdata2, 1) != 1)
15354 return 5;
15355 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15356 if (data2 == MAP_FAILED)
15357 return 6;
15358 for (i = 0; i < pagesize; ++i)
15359 if (*(data2 + i))
15360 return 7;
15361 close (fd2);
15362 if (munmap (data2, pagesize))
15363 return 8;
15364
15365 /* Next, try to mmap the file at a fixed address which already has
15366 something else allocated at it. If we can, also make sure that
15367 we see the same garbage. */
15368 fd = open ("conftest.mmap", O_RDWR);
15369 if (fd < 0)
15370 return 9;
15371 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15372 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15373 return 10;
15374 for (i = 0; i < pagesize; ++i)
15375 if (*(data + i) != *(data2 + i))
15376 return 11;
15377
15378 /* Finally, make sure that changes to the mapped area do not
15379 percolate back to the file as seen by read(). (This is a bug on
15380 some variants of i386 svr4.0.) */
15381 for (i = 0; i < pagesize; ++i)
15382 *(data2 + i) = *(data2 + i) + 1;
15383 data3 = (char *) malloc (pagesize);
15384 if (!data3)
15385 return 12;
15386 if (read (fd, data3, pagesize) != pagesize)
15387 return 13;
15388 for (i = 0; i < pagesize; ++i)
15389 if (*(data + i) != *(data3 + i))
15390 return 14;
15391 close (fd);
15392 return 0;
15393 }
15394 _ACEOF
15395 if ac_fn_c_try_run "$LINENO"; then :
15396 ac_cv_func_mmap_fixed_mapped=yes
15397 else
15398 ac_cv_func_mmap_fixed_mapped=no
15399 fi
15400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15401 conftest.$ac_objext conftest.beam conftest.$ac_ext
15402 fi
15403
15404 fi
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15406 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15407 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15408
15409 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15410
15411 fi
15412 rm -f conftest.mmap conftest.txt
15413
15414 ASAN_OPTIONS="$save_ASAN_OPTIONS"
15415
15416 for ac_func in fseeko fseeko64 getc_unlocked mkdtemp mkstemp utimensat utimes
15417 do :
15418 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15419 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15420 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15421 cat >>confdefs.h <<_ACEOF
15422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15423 _ACEOF
15424
15425 fi
15426 done
15427
15428
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15430 $as_echo_n "checking for mbstate_t... " >&6; }
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15433 #include <wchar.h>
15434 int
15435 main ()
15436 {
15437 mbstate_t teststate;
15438 ;
15439 return 0;
15440 }
15441 _ACEOF
15442 if ac_fn_c_try_compile "$LINENO"; then :
15443 have_mbstate_t=yes
15444 else
15445 have_mbstate_t=no
15446 fi
15447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
15449 $as_echo "$have_mbstate_t" >&6; }
15450 if test x"$have_mbstate_t" = xyes; then
15451
15452 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15453
15454 fi
15455
15456 # Copied from gnulib stat-time.m4.
15457 # We should just switch over to using gnulib.
15458 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>
15459 #include <sys/stat.h>
15460 "
15461 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
15462
15463 cat >>confdefs.h <<_ACEOF
15464 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
15465 _ACEOF
15466
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
15468 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
15469 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
15470 $as_echo_n "(cached) " >&6
15471 else
15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h. */
15474
15475 #include <sys/types.h>
15476 #include <sys/stat.h>
15477 #if HAVE_SYS_TIME_H
15478 # include <sys/time.h>
15479 #endif
15480 #include <time.h>
15481 struct timespec ts;
15482 struct stat st;
15483
15484 int
15485 main ()
15486 {
15487
15488 st.st_atim = ts;
15489
15490 ;
15491 return 0;
15492 }
15493 _ACEOF
15494 if ac_fn_c_try_compile "$LINENO"; then :
15495 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
15496 else
15497 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
15498 fi
15499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15500 fi
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
15502 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
15503 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
15504
15505 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
15506
15507 fi
15508 else
15509 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>
15510 #include <sys/stat.h>
15511 "
15512 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
15513
15514 cat >>confdefs.h <<_ACEOF
15515 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
15516 _ACEOF
15517
15518
15519 else
15520 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
15521 #include <sys/stat.h>
15522 "
15523 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
15524
15525 cat >>confdefs.h <<_ACEOF
15526 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
15527 _ACEOF
15528
15529
15530 else
15531 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>
15532 #include <sys/stat.h>
15533 "
15534 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
15535
15536 cat >>confdefs.h <<_ACEOF
15537 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
15538 _ACEOF
15539
15540
15541 fi
15542
15543 fi
15544
15545 fi
15546
15547 fi
15548
15549
15550 # Some systems have frexp only in -lm, not in -lc.
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
15552 $as_echo_n "checking for library containing frexp... " >&6; }
15553 if ${ac_cv_search_frexp+:} false; then :
15554 $as_echo_n "(cached) " >&6
15555 else
15556 ac_func_search_save_LIBS=$LIBS
15557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h. */
15559
15560 /* Override any GCC internal prototype to avoid an error.
15561 Use char because int might match the return type of a GCC
15562 builtin and then its argument prototype would still apply. */
15563 #ifdef __cplusplus
15564 extern "C"
15565 #endif
15566 char frexp ();
15567 int
15568 main ()
15569 {
15570 return frexp ();
15571 ;
15572 return 0;
15573 }
15574 _ACEOF
15575 for ac_lib in '' m; do
15576 if test -z "$ac_lib"; then
15577 ac_res="none required"
15578 else
15579 ac_res=-l$ac_lib
15580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15581 fi
15582 if ac_fn_c_try_link "$LINENO"; then :
15583 ac_cv_search_frexp=$ac_res
15584 fi
15585 rm -f core conftest.err conftest.$ac_objext \
15586 conftest$ac_exeext
15587 if ${ac_cv_search_frexp+:} false; then :
15588 break
15589 fi
15590 done
15591 if ${ac_cv_search_frexp+:} false; then :
15592
15593 else
15594 ac_cv_search_frexp=no
15595 fi
15596 rm conftest.$ac_ext
15597 LIBS=$ac_func_search_save_LIBS
15598 fi
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
15600 $as_echo "$ac_cv_search_frexp" >&6; }
15601 ac_res=$ac_cv_search_frexp
15602 if test "$ac_res" != no; then :
15603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15604
15605 fi
15606
15607
15608
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15610 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15611 if ${am_cv_val_LC_MESSAGES+:} false; then :
15612 $as_echo_n "(cached) " >&6
15613 else
15614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615 /* end confdefs.h. */
15616 #include <locale.h>
15617 int
15618 main ()
15619 {
15620 return LC_MESSAGES
15621 ;
15622 return 0;
15623 }
15624 _ACEOF
15625 if ac_fn_c_try_link "$LINENO"; then :
15626 am_cv_val_LC_MESSAGES=yes
15627 else
15628 am_cv_val_LC_MESSAGES=no
15629 fi
15630 rm -f core conftest.err conftest.$ac_objext \
15631 conftest$ac_exeext conftest.$ac_ext
15632 fi
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15634 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15635 if test $am_cv_val_LC_MESSAGES = yes; then
15636
15637 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15638
15639 fi
15640
15641
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
15643 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
15644 if ${bu_cv_decl_getopt_unistd_h+:} false; then :
15645 $as_echo_n "(cached) " >&6
15646 else
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15649 #include <unistd.h>
15650 int
15651 main ()
15652 {
15653 extern int getopt (int, char *const*, const char *);
15654 ;
15655 return 0;
15656 }
15657 _ACEOF
15658 if ac_fn_c_try_compile "$LINENO"; then :
15659 bu_cv_decl_getopt_unistd_h=yes
15660 else
15661 bu_cv_decl_getopt_unistd_h=no
15662 fi
15663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15664 fi
15665
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
15667 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
15668 if test $bu_cv_decl_getopt_unistd_h = yes; then
15669
15670 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
15671
15672 fi
15673
15674 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
15675 # by default.
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
15677 $as_echo_n "checking for utime.h... " >&6; }
15678 if ${bu_cv_header_utime_h+:} false; then :
15679 $as_echo_n "(cached) " >&6
15680 else
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15683 #include <sys/types.h>
15684 #ifdef HAVE_TIME_H
15685 #include <time.h>
15686 #endif
15687 #include <utime.h>
15688 int
15689 main ()
15690 {
15691 struct utimbuf s;
15692 ;
15693 return 0;
15694 }
15695 _ACEOF
15696 if ac_fn_c_try_compile "$LINENO"; then :
15697 bu_cv_header_utime_h=yes
15698 else
15699 bu_cv_header_utime_h=no
15700 fi
15701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15702 fi
15703
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
15705 $as_echo "$bu_cv_header_utime_h" >&6; }
15706 if test $bu_cv_header_utime_h = yes; then
15707
15708 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
15709
15710 fi
15711
15712 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
15713 if test "x$ac_cv_have_decl_environ" = xyes; then :
15714 ac_have_decl=1
15715 else
15716 ac_have_decl=0
15717 fi
15718
15719 cat >>confdefs.h <<_ACEOF
15720 #define HAVE_DECL_ENVIRON $ac_have_decl
15721 _ACEOF
15722 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
15723 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
15724 ac_have_decl=1
15725 else
15726 ac_have_decl=0
15727 fi
15728
15729 cat >>confdefs.h <<_ACEOF
15730 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
15731 _ACEOF
15732 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
15733 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
15734 ac_have_decl=1
15735 else
15736 ac_have_decl=0
15737 fi
15738
15739 cat >>confdefs.h <<_ACEOF
15740 #define HAVE_DECL_STPCPY $ac_have_decl
15741 _ACEOF
15742 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
15743 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
15744 ac_have_decl=1
15745 else
15746 ac_have_decl=0
15747 fi
15748
15749 cat >>confdefs.h <<_ACEOF
15750 #define HAVE_DECL_STRNLEN $ac_have_decl
15751 _ACEOF
15752
15753
15754 # Link in zlib/zstd if we can. This allows us to read compressed debug
15755 # sections. This is used only by readelf.c (objdump uses bfd for
15756 # reading compressed sections).
15757
15758 # Use the system's zlib library.
15759 zlibdir="-L\$(top_builddir)/../zlib"
15760 zlibinc="-I\$(top_srcdir)/../zlib"
15761
15762 # Check whether --with-system-zlib was given.
15763 if test "${with_system_zlib+set}" = set; then :
15764 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
15765 zlibdir=
15766 zlibinc=
15767 fi
15768
15769 fi
15770
15771
15772
15773
15774
15775
15776 # Check whether --with-zstd was given.
15777 if test "${with_zstd+set}" = set; then :
15778 withval=$with_zstd;
15779 else
15780 with_zstd=auto
15781 fi
15782
15783
15784 if test "$with_zstd" != no; then :
15785
15786 pkg_failed=no
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
15788 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
15789
15790 if test -n "$ZSTD_CFLAGS"; then
15791 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
15792 elif test -n "$PKG_CONFIG"; then
15793 if test -n "$PKG_CONFIG" && \
15794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
15795 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
15796 ac_status=$?
15797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15798 test $ac_status = 0; }; then
15799 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
15800 test "x$?" != "x0" && pkg_failed=yes
15801 else
15802 pkg_failed=yes
15803 fi
15804 else
15805 pkg_failed=untried
15806 fi
15807 if test -n "$ZSTD_LIBS"; then
15808 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
15809 elif test -n "$PKG_CONFIG"; then
15810 if test -n "$PKG_CONFIG" && \
15811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
15812 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
15813 ac_status=$?
15814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15815 test $ac_status = 0; }; then
15816 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
15817 test "x$?" != "x0" && pkg_failed=yes
15818 else
15819 pkg_failed=yes
15820 fi
15821 else
15822 pkg_failed=untried
15823 fi
15824
15825 if test $pkg_failed = no; then
15826 pkg_save_LDFLAGS="$LDFLAGS"
15827 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15830
15831 int
15832 main ()
15833 {
15834
15835 ;
15836 return 0;
15837 }
15838 _ACEOF
15839 if ac_fn_c_try_link "$LINENO"; then :
15840
15841 else
15842 pkg_failed=yes
15843 fi
15844 rm -f core conftest.err conftest.$ac_objext \
15845 conftest$ac_exeext conftest.$ac_ext
15846 LDFLAGS=$pkg_save_LDFLAGS
15847 fi
15848
15849
15850
15851 if test $pkg_failed = yes; then
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15853 $as_echo "no" >&6; }
15854
15855 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15856 _pkg_short_errors_supported=yes
15857 else
15858 _pkg_short_errors_supported=no
15859 fi
15860 if test $_pkg_short_errors_supported = yes; then
15861 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
15862 else
15863 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
15864 fi
15865 # Put the nasty error message in config.log where it belongs
15866 echo "$ZSTD_PKG_ERRORS" >&5
15867
15868
15869 if test "$with_zstd" = yes; then
15870 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
15871 fi
15872
15873 elif test $pkg_failed = untried; then
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15875 $as_echo "no" >&6; }
15876
15877 if test "$with_zstd" = yes; then
15878 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
15879 fi
15880
15881 else
15882 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
15883 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15885 $as_echo "yes" >&6; }
15886
15887
15888 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
15889
15890
15891 fi
15892
15893 fi
15894
15895
15896
15897 case "${host}" in
15898 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
15899
15900 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
15901 ;;
15902 esac
15903
15904 # Support for the msgpack C library.
15905
15906 # Check whether --with-msgpack was given.
15907 if test "${with_msgpack+set}" = set; then :
15908 withval=$with_msgpack;
15909 else
15910 with_msgpack=auto
15911 fi
15912
15913
15914 if test "$with_msgpack" != no; then :
15915
15916 pkg_failed=no
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgpack" >&5
15918 $as_echo_n "checking for msgpack... " >&6; }
15919
15920 if test -n "$MSGPACK_CFLAGS"; then
15921 pkg_cv_MSGPACK_CFLAGS="$MSGPACK_CFLAGS"
15922 elif test -n "$PKG_CONFIG"; then
15923 if test -n "$PKG_CONFIG" && \
15924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
15925 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
15926 ac_status=$?
15927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15928 test $ac_status = 0; }; then
15929 pkg_cv_MSGPACK_CFLAGS=`$PKG_CONFIG --cflags "msgpack" 2>/dev/null`
15930 test "x$?" != "x0" && pkg_failed=yes
15931 else
15932 pkg_failed=yes
15933 fi
15934 else
15935 pkg_failed=untried
15936 fi
15937 if test -n "$MSGPACK_LIBS"; then
15938 pkg_cv_MSGPACK_LIBS="$MSGPACK_LIBS"
15939 elif test -n "$PKG_CONFIG"; then
15940 if test -n "$PKG_CONFIG" && \
15941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
15942 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
15943 ac_status=$?
15944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15945 test $ac_status = 0; }; then
15946 pkg_cv_MSGPACK_LIBS=`$PKG_CONFIG --libs "msgpack" 2>/dev/null`
15947 test "x$?" != "x0" && pkg_failed=yes
15948 else
15949 pkg_failed=yes
15950 fi
15951 else
15952 pkg_failed=untried
15953 fi
15954
15955 if test $pkg_failed = no; then
15956 pkg_save_LDFLAGS="$LDFLAGS"
15957 LDFLAGS="$LDFLAGS $pkg_cv_MSGPACK_LIBS"
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15960
15961 int
15962 main ()
15963 {
15964
15965 ;
15966 return 0;
15967 }
15968 _ACEOF
15969 if ac_fn_c_try_link "$LINENO"; then :
15970
15971 else
15972 pkg_failed=yes
15973 fi
15974 rm -f core conftest.err conftest.$ac_objext \
15975 conftest$ac_exeext conftest.$ac_ext
15976 LDFLAGS=$pkg_save_LDFLAGS
15977 fi
15978
15979
15980
15981 if test $pkg_failed = yes; then
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15983 $as_echo "no" >&6; }
15984
15985 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15986 _pkg_short_errors_supported=yes
15987 else
15988 _pkg_short_errors_supported=no
15989 fi
15990 if test $_pkg_short_errors_supported = yes; then
15991 MSGPACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "msgpack" 2>&1`
15992 else
15993 MSGPACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "msgpack" 2>&1`
15994 fi
15995 # Put the nasty error message in config.log where it belongs
15996 echo "$MSGPACK_PKG_ERRORS" >&5
15997
15998 if test "$with_msgpack" = yes; then :
15999 as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5
16000 fi
16001 elif test $pkg_failed = untried; then
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16003 $as_echo "no" >&6; }
16004 if test "$with_msgpack" = yes; then :
16005 as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5
16006 fi
16007 else
16008 MSGPACK_CFLAGS=$pkg_cv_MSGPACK_CFLAGS
16009 MSGPACK_LIBS=$pkg_cv_MSGPACK_LIBS
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16011 $as_echo "yes" >&6; }
16012
16013 $as_echo "#define HAVE_MSGPACK 1" >>confdefs.h
16014
16015 fi
16016 fi
16017
16018 # target-specific stuff:
16019
16020 # Canonicalize the secondary target names.
16021 if test -n "$enable_targets"; then
16022 for targ in `echo $enable_targets | sed 's/,/ /g'`
16023 do
16024 result=`$ac_config_sub $targ 2>/dev/null`
16025 if test -n "$result"; then
16026 canon_targets="$canon_targets $result"
16027 else
16028 # Allow targets that config.sub doesn't recognize, like "all".
16029 canon_targets="$canon_targets $targ"
16030 fi
16031 done
16032 fi
16033
16034 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
16035 if test "x$ac_cv_header_iconv_h" = xyes; then :
16036
16037 fi
16038
16039
16040
16041
16042
16043
16044
16045 am_save_CPPFLAGS="$CPPFLAGS"
16046
16047 for element in $INCICONV; do
16048 haveit=
16049 for x in $CPPFLAGS; do
16050
16051 acl_save_prefix="$prefix"
16052 prefix="$acl_final_prefix"
16053 acl_save_exec_prefix="$exec_prefix"
16054 exec_prefix="$acl_final_exec_prefix"
16055 eval x=\"$x\"
16056 exec_prefix="$acl_save_exec_prefix"
16057 prefix="$acl_save_prefix"
16058
16059 if test "X$x" = "X$element"; then
16060 haveit=yes
16061 break
16062 fi
16063 done
16064 if test -z "$haveit"; then
16065 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16066 fi
16067 done
16068
16069
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16071 $as_echo_n "checking for iconv... " >&6; }
16072 if ${am_cv_func_iconv+:} false; then :
16073 $as_echo_n "(cached) " >&6
16074 else
16075
16076 am_cv_func_iconv="no, consider installing GNU libiconv"
16077 am_cv_lib_iconv=no
16078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079 /* end confdefs.h. */
16080
16081 #include <stdlib.h>
16082 #include <iconv.h>
16083
16084 int
16085 main ()
16086 {
16087 iconv_t cd = iconv_open("","");
16088 iconv(cd,NULL,NULL,NULL,NULL);
16089 iconv_close(cd);
16090 ;
16091 return 0;
16092 }
16093 _ACEOF
16094 if ac_fn_c_try_link "$LINENO"; then :
16095 am_cv_func_iconv=yes
16096 fi
16097 rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16099 if test "$am_cv_func_iconv" != yes; then
16100 am_save_LIBS="$LIBS"
16101 LIBS="$LIBS $LIBICONV"
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h. */
16104
16105 #include <stdlib.h>
16106 #include <iconv.h>
16107
16108 int
16109 main ()
16110 {
16111 iconv_t cd = iconv_open("","");
16112 iconv(cd,NULL,NULL,NULL,NULL);
16113 iconv_close(cd);
16114 ;
16115 return 0;
16116 }
16117 _ACEOF
16118 if ac_fn_c_try_link "$LINENO"; then :
16119 am_cv_lib_iconv=yes
16120 am_cv_func_iconv=yes
16121 fi
16122 rm -f core conftest.err conftest.$ac_objext \
16123 conftest$ac_exeext conftest.$ac_ext
16124 LIBS="$am_save_LIBS"
16125 fi
16126
16127 fi
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16129 $as_echo "$am_cv_func_iconv" >&6; }
16130 if test "$am_cv_func_iconv" = yes; then
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16132 $as_echo_n "checking for working iconv... " >&6; }
16133 if ${am_cv_func_iconv_works+:} false; then :
16134 $as_echo_n "(cached) " >&6
16135 else
16136
16137 am_save_LIBS="$LIBS"
16138 if test $am_cv_lib_iconv = yes; then
16139 LIBS="$LIBS $LIBICONV"
16140 fi
16141 am_cv_func_iconv_works=no
16142 for ac_iconv_const in '' 'const'; do
16143 if test "$cross_compiling" = yes; then :
16144 case "$host_os" in
16145 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16146 *) am_cv_func_iconv_works="guessing yes" ;;
16147 esac
16148 else
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16151
16152 #include <iconv.h>
16153 #include <string.h>
16154
16155 #ifndef ICONV_CONST
16156 # define ICONV_CONST $ac_iconv_const
16157 #endif
16158
16159 int
16160 main ()
16161 {
16162 int result = 0;
16163 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
16164 successful returns. This is even documented in
16165 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
16166 {
16167 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16168 if (cd_utf8_to_88591 != (iconv_t)(-1))
16169 {
16170 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
16171 char buf[10];
16172 ICONV_CONST char *inptr = input;
16173 size_t inbytesleft = strlen (input);
16174 char *outptr = buf;
16175 size_t outbytesleft = sizeof (buf);
16176 size_t res = iconv (cd_utf8_to_88591,
16177 &inptr, &inbytesleft,
16178 &outptr, &outbytesleft);
16179 if (res == 0)
16180 result |= 1;
16181 iconv_close (cd_utf8_to_88591);
16182 }
16183 }
16184 /* Test against Solaris 10 bug: Failures are not distinguishable from
16185 successful returns. */
16186 {
16187 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16188 if (cd_ascii_to_88591 != (iconv_t)(-1))
16189 {
16190 static ICONV_CONST char input[] = "\263";
16191 char buf[10];
16192 ICONV_CONST char *inptr = input;
16193 size_t inbytesleft = strlen (input);
16194 char *outptr = buf;
16195 size_t outbytesleft = sizeof (buf);
16196 size_t res = iconv (cd_ascii_to_88591,
16197 &inptr, &inbytesleft,
16198 &outptr, &outbytesleft);
16199 if (res == 0)
16200 result |= 2;
16201 iconv_close (cd_ascii_to_88591);
16202 }
16203 }
16204 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
16205 {
16206 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16207 if (cd_88591_to_utf8 != (iconv_t)(-1))
16208 {
16209 static ICONV_CONST char input[] = "\304";
16210 static char buf[2] = { (char)0xDE, (char)0xAD };
16211 ICONV_CONST char *inptr = input;
16212 size_t inbytesleft = 1;
16213 char *outptr = buf;
16214 size_t outbytesleft = 1;
16215 size_t res = iconv (cd_88591_to_utf8,
16216 &inptr, &inbytesleft,
16217 &outptr, &outbytesleft);
16218 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16219 result |= 4;
16220 iconv_close (cd_88591_to_utf8);
16221 }
16222 }
16223 #if 0 /* This bug could be worked around by the caller. */
16224 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
16225 {
16226 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16227 if (cd_88591_to_utf8 != (iconv_t)(-1))
16228 {
16229 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16230 char buf[50];
16231 ICONV_CONST char *inptr = input;
16232 size_t inbytesleft = strlen (input);
16233 char *outptr = buf;
16234 size_t outbytesleft = sizeof (buf);
16235 size_t res = iconv (cd_88591_to_utf8,
16236 &inptr, &inbytesleft,
16237 &outptr, &outbytesleft);
16238 if ((int)res > 0)
16239 result |= 8;
16240 iconv_close (cd_88591_to_utf8);
16241 }
16242 }
16243 #endif
16244 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16245 provided. */
16246 {
16247 /* Try standardized names. */
16248 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
16249 /* Try IRIX, OSF/1 names. */
16250 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
16251 /* Try AIX names. */
16252 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
16253 /* Try HP-UX names. */
16254 iconv_t cd4 = iconv_open ("utf8", "eucJP");
16255 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
16256 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
16257 result |= 16;
16258 if (cd1 != (iconv_t)(-1))
16259 iconv_close (cd1);
16260 if (cd2 != (iconv_t)(-1))
16261 iconv_close (cd2);
16262 if (cd3 != (iconv_t)(-1))
16263 iconv_close (cd3);
16264 if (cd4 != (iconv_t)(-1))
16265 iconv_close (cd4);
16266 }
16267 return result;
16268
16269 ;
16270 return 0;
16271 }
16272 _ACEOF
16273 if ac_fn_c_try_run "$LINENO"; then :
16274 am_cv_func_iconv_works=yes
16275 fi
16276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16277 conftest.$ac_objext conftest.beam conftest.$ac_ext
16278 fi
16279
16280 test "$am_cv_func_iconv_works" = no || break
16281 done
16282 LIBS="$am_save_LIBS"
16283
16284 fi
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16286 $as_echo "$am_cv_func_iconv_works" >&6; }
16287 case "$am_cv_func_iconv_works" in
16288 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16289 *) am_func_iconv=yes ;;
16290 esac
16291 else
16292 am_func_iconv=no am_cv_lib_iconv=no
16293 fi
16294 if test "$am_func_iconv" = yes; then
16295
16296 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
16297
16298 fi
16299 if test "$am_cv_lib_iconv" = yes; then
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16301 $as_echo_n "checking how to link with libiconv... " >&6; }
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16303 $as_echo "$LIBICONV" >&6; }
16304 else
16305 CPPFLAGS="$am_save_CPPFLAGS"
16306 LIBICONV=
16307 LTLIBICONV=
16308 fi
16309
16310
16311
16312 if test "$am_cv_func_iconv" = yes; then
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
16314 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
16315 if ${gl_cv_iconv_nonconst+:} false; then :
16316 $as_echo_n "(cached) " >&6
16317 else
16318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16319 /* end confdefs.h. */
16320
16321 #include <stdlib.h>
16322 #include <iconv.h>
16323 extern
16324 #ifdef __cplusplus
16325 "C"
16326 #endif
16327 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16328
16329 int
16330 main ()
16331 {
16332
16333 ;
16334 return 0;
16335 }
16336 _ACEOF
16337 if ac_fn_c_try_compile "$LINENO"; then :
16338 gl_cv_iconv_nonconst=yes
16339 else
16340 gl_cv_iconv_nonconst=no
16341 fi
16342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16343
16344 fi
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
16346 $as_echo "$gl_cv_iconv_nonconst" >&6; }
16347 else
16348 gl_cv_iconv_nonconst=yes
16349 fi
16350 if test $gl_cv_iconv_nonconst = yes; then
16351 iconv_arg1=""
16352 else
16353 iconv_arg1="const"
16354 fi
16355
16356 cat >>confdefs.h <<_ACEOF
16357 #define ICONV_CONST $iconv_arg1
16358 _ACEOF
16359
16360
16361
16362 if test "$am_func_iconv" = yes; then
16363 if test -n "$LIBICONV"; then
16364 am_cv_func_iconv_summary='yes, in libiconv'
16365 else
16366 am_cv_func_iconv_summary='yes, in libc'
16367 fi
16368 else
16369 if test "$am_cv_func_iconv" = yes; then
16370 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
16371 else
16372 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
16373 fi
16374 fi
16375
16376
16377 BUILD_SRCONV=
16378 BUILD_DLLTOOL=
16379 DLLTOOL_DEFS=
16380 DLLTOOL_DEFAULT=
16381 BUILD_WINDRES=
16382 BUILD_WINDMC=
16383 BUILD_DLLWRAP=
16384 BUILD_MISC=
16385 BUILD_INSTALL_MISC=
16386 OBJDUMP_DEFS=
16387 OBJDUMP_PRIVATE_VECTORS=
16388 OBJDUMP_PRIVATE_OFILES=
16389 od_vectors=
16390
16391 for targ in $target $canon_targets
16392 do
16393 case $targ in
16394 all | *-*-hms*)
16395 BUILD_SRCONV='$(SRCONV_PROG)'
16396 ;;
16397 esac
16398
16399 case $targ in
16400 all | spu-*-*)
16401 BUILD_MISC='bin2c$(EXEEXT_FOR_BUILD)'
16402 ;;
16403 esac
16404
16405 case $targ in
16406 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
16407 BUILD_INSTALL_MISC=embedspu
16408 ;;
16409 esac
16410
16411 case $targ in
16412 mep-*)
16413 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
16414 ;;
16415 powerpc*-aix5.[01])
16416 ;;
16417 powerpc*-aix[5-9].*)
16418 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
16419 ;;
16420 esac
16421
16422 case $targ in
16423 aarch64-*-mingw*)
16424 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16425 if test -z "$DLLTOOL_DEFAULT"; then
16426 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_AARCH64"
16427 fi
16428 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_AARCH64"
16429 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16430 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16431 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16432 ;;
16433 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
16434 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16435 if test -z "$DLLTOOL_DEFAULT"; then
16436 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
16437 fi
16438 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
16439 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16440 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16441 ;;
16442 arm-*-pe*)
16443 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16444 if test -z "$DLLTOOL_DEFAULT"; then
16445 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
16446 fi
16447 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16448 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16449 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16450 ;;
16451 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | all)
16452 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16453 if test -z "$DLLTOOL_DEFAULT"; then
16454 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16455 fi
16456 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16457 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16458 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16459 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16460 ;;
16461 i[3-7]86-*-interix)
16462 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
16463 if test -z "$DLLTOOL_DEFAULT"; then
16464 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16465 fi
16466 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16467 ;;
16468 mcore-*-pe)
16469 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16470 if test -z "$DLLTOOL_DEFAULT"; then
16471 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
16472 fi
16473 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
16474 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16475 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16476 ;;
16477 mcore-*-elf)
16478 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16479 if test -z "$DLLTOOL_DEFAULT"; then
16480 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
16481 fi
16482 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
16483 ;;
16484 sh*-*-pe)
16485 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16486 if test -z "$DLLTOOL_DEFAULT"; then
16487 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
16488 fi
16489 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
16490 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16491 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16492 ;;
16493 x86_64-*-mingw* | x86_64-*-cygwin*)
16494 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16495 if test -z "$DLLTOOL_DEFAULT"; then
16496 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
16497 fi
16498 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
16499 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16500 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16501 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16502 ;;
16503 esac
16504
16505 # Add objdump private vectors.
16506 case $targ in
16507 all)
16508 od_vectors="objdump_private_desc_elf32_avr objdump_private_desc_xcoff\
16509 objdump_private_desc_pe objdump_private_desc_mach_o"
16510 ;;
16511 avr-*-*)
16512 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
16513 ;;
16514 powerpc*-*-aix* | rs6000-*-aix*)
16515 od_vectors="$od_vectors objdump_private_desc_xcoff"
16516 ;;
16517 *-*-pe* | *-*-cygwin* | *-*-mingw*)
16518 od_vectors="$od_vectors objdump_private_desc_pe"
16519 ;;
16520 *-*-darwin*)
16521 od_vectors="$od_vectors objdump_private_desc_mach_o"
16522 ;;
16523 esac
16524 done
16525
16526 # Uniq objdump private vector, build objdump target ofiles.
16527 od_files=
16528 f=""
16529 for i in $od_vectors ; do
16530 case " $f " in
16531 *" $i "*) ;;
16532 *)
16533 f="$f $i"
16534 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
16535 case $i in
16536 objdump_private_desc_elf32_avr)
16537 od_files="$od_files od-elf32_avr" ;;
16538 objdump_private_desc_xcoff)
16539 od_files="$od_files od-xcoff" ;;
16540 objdump_private_desc_pe)
16541 od_files="$od_files od-pe" ;;
16542 objdump_private_desc_mach_o)
16543 od_files="$od_files od-macho" ;;
16544 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
16545 esac
16546 ;;
16547 esac
16548 done
16549
16550 # Uniq objdump target ofiles
16551 f=""
16552 for i in $od_files ; do
16553 case " $f " in
16554 *" $i "*) ;;
16555 *)
16556 f="$f $i"
16557 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
16558 ;;
16559 esac
16560 done
16561
16562 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
16563
16564 if test "${with_windres+set}" = set; then
16565 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16566 fi
16567
16568 if test "${with_windmc+set}" = set; then
16569 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16570 fi
16571
16572 OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586 cat >>confdefs.h <<_ACEOF
16587 #define TARGET "${target}"
16588 _ACEOF
16589
16590
16591 targ=$target
16592 . $srcdir/../bfd/config.bfd
16593 if test "x$targ_underscore" = "xyes"; then
16594 UNDERSCORE=1
16595 else
16596 UNDERSCORE=0
16597 fi
16598
16599 cat >>confdefs.h <<_ACEOF
16600 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
16601 _ACEOF
16602
16603
16604 # Emulation
16605 targ=$target
16606 . ${srcdir}/configure.tgt
16607 EMULATION=$targ_emul
16608 EMULATION_VECTOR=$targ_emul_vector
16609
16610
16611
16612
•16613 CTF_SOVER_EXT=$CTF_SOVER_EXT
16614
16615
16616 # Required for html and install-html
16617
16618
16619
16620
16621
16622 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
16623
16624 cat >confcache <<\_ACEOF
16625 # This file is a shell script that caches the results of configure
16626 # tests run on this system so they can be shared between configure
16627 # scripts and configure runs, see configure's option --config-cache.
16628 # It is not useful on other systems. If it contains results you don't
16629 # want to keep, you may remove or edit it.
16630 #
16631 # config.status only pays attention to the cache file if you give it
16632 # the --recheck option to rerun configure.
16633 #
16634 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16635 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16636 # following values.
16637
16638 _ACEOF
16639
16640 # The following way of writing the cache mishandles newlines in values,
16641 # but we know of no workaround that is simple, portable, and efficient.
16642 # So, we kill variables containing newlines.
16643 # Ultrix sh set writes to stderr and can't be redirected directly,
16644 # and sets the high bit in the cache file unless we assign to the vars.
16645 (
16646 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16647 eval ac_val=\$$ac_var
16648 case $ac_val in #(
16649 *${as_nl}*)
16650 case $ac_var in #(
16651 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16652 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16653 esac
16654 case $ac_var in #(
16655 _ | IFS | as_nl) ;; #(
16656 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16657 *) { eval $ac_var=; unset $ac_var;} ;;
16658 esac ;;
16659 esac
16660 done
16661
16662 (set) 2>&1 |
16663 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16664 *${as_nl}ac_space=\ *)
16665 # `set' does not quote correctly, so add quotes: double-quote
16666 # substitution turns \\\\ into \\, and sed turns \\ into \.
16667 sed -n \
16668 "s/'/'\\\\''/g;
16669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16670 ;; #(
16671 *)
16672 # `set' quotes correctly as required by POSIX, so do not add quotes.
16673 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16674 ;;
16675 esac |
16676 sort
16677 ) |
16678 sed '
16679 /^ac_cv_env_/b end
16680 t clear
16681 :clear
16682 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16683 t end
16684 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16685 :end' >>confcache
16686 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16687 if test -w "$cache_file"; then
16688 if test "x$cache_file" != "x/dev/null"; then
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16690 $as_echo "$as_me: updating cache $cache_file" >&6;}
16691 if test ! -f "$cache_file" || test -h "$cache_file"; then
16692 cat confcache >"$cache_file"
16693 else
16694 case $cache_file in #(
16695 */* | ?:*)
16696 mv -f confcache "$cache_file"$$ &&
16697 mv -f "$cache_file"$$ "$cache_file" ;; #(
16698 *)
16699 mv -f confcache "$cache_file" ;;
16700 esac
16701 fi
16702 fi
16703 else
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16705 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16706 fi
16707 fi
16708 rm -f confcache
16709
16710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16711 # Let make expand exec_prefix.
16712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16713
16714 DEFS=-DHAVE_CONFIG_H
16715
16716 ac_libobjs=
16717 ac_ltlibobjs=
16718 U=
16719 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16720 # 1. Remove the extension, and $U if already installed.
16721 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16722 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16723 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16724 # will be set to the directory where LIBOBJS objects are built.
16725 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16726 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16727 done
16728 LIBOBJS=$ac_libobjs
16729
16730 LTLIBOBJS=$ac_ltlibobjs
16731
16732
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16734 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16735 if test -n "$am_sleep_pid"; then
16736 # Hide warnings about reused PIDs.
16737 wait $am_sleep_pid 2>/dev/null
16738 fi
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16740 $as_echo "done" >&6; }
16741 if test -n "$EXEEXT"; then
16742 am__EXEEXT_TRUE=
16743 am__EXEEXT_FALSE='#'
16744 else
16745 am__EXEEXT_TRUE='#'
16746 am__EXEEXT_FALSE=
16747 fi
16748
16749 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16750 as_fn_error $? "conditional \"AMDEP\" was never defined.
16751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16752 fi
16753 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16754 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16756 fi
16757
16758 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
16759 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
16760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16761 fi
16762 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16763 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16765 fi
16766 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16767 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
16768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16769 fi
16770
16771 : "${CONFIG_STATUS=./config.status}"
16772 ac_write_fail=0
16773 ac_clean_files_save=$ac_clean_files
16774 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16776 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16777 as_write_fail=0
16778 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16779 #! $SHELL
16780 # Generated by $as_me.
16781 # Run this file to recreate the current configuration.
16782 # Compiler output produced by configure, useful for debugging
16783 # configure, is in config.log if it exists.
16784
16785 debug=false
16786 ac_cs_recheck=false
16787 ac_cs_silent=false
16788
16789 SHELL=\${CONFIG_SHELL-$SHELL}
16790 export SHELL
16791 _ASEOF
16792 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16793 ## -------------------- ##
16794 ## M4sh Initialization. ##
16795 ## -------------------- ##
16796
16797 # Be more Bourne compatible
16798 DUALCASE=1; export DUALCASE # for MKS sh
16799 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16800 emulate sh
16801 NULLCMD=:
16802 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16803 # is contrary to our usage. Disable this feature.
16804 alias -g '${1+"$@"}'='"$@"'
16805 setopt NO_GLOB_SUBST
16806 else
16807 case `(set -o) 2>/dev/null` in #(
16808 *posix*) :
16809 set -o posix ;; #(
16810 *) :
16811 ;;
16812 esac
16813 fi
16814
16815
16816 as_nl='
16817 '
16818 export as_nl
16819 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16820 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16821 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16822 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16823 # Prefer a ksh shell builtin over an external printf program on Solaris,
16824 # but without wasting forks for bash or zsh.
16825 if test -z "$BASH_VERSION$ZSH_VERSION" \
16826 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16827 as_echo='print -r --'
16828 as_echo_n='print -rn --'
16829 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16830 as_echo='printf %s\n'
16831 as_echo_n='printf %s'
16832 else
16833 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16834 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16835 as_echo_n='/usr/ucb/echo -n'
16836 else
16837 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16838 as_echo_n_body='eval
16839 arg=$1;
16840 case $arg in #(
16841 *"$as_nl"*)
16842 expr "X$arg" : "X\\(.*\\)$as_nl";
16843 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16844 esac;
16845 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16846 '
16847 export as_echo_n_body
16848 as_echo_n='sh -c $as_echo_n_body as_echo'
16849 fi
16850 export as_echo_body
16851 as_echo='sh -c $as_echo_body as_echo'
16852 fi
16853
16854 # The user is always right.
16855 if test "${PATH_SEPARATOR+set}" != set; then
16856 PATH_SEPARATOR=:
16857 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16858 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16859 PATH_SEPARATOR=';'
16860 }
16861 fi
16862
16863
16864 # IFS
16865 # We need space, tab and new line, in precisely that order. Quoting is
16866 # there to prevent editors from complaining about space-tab.
16867 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16868 # splitting by setting IFS to empty value.)
16869 IFS=" "" $as_nl"
16870
16871 # Find who we are. Look in the path if we contain no directory separator.
16872 as_myself=
16873 case $0 in #((
16874 *[\\/]* ) as_myself=$0 ;;
16875 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16876 for as_dir in $PATH
16877 do
16878 IFS=$as_save_IFS
16879 test -z "$as_dir" && as_dir=.
16880 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16881 done
16882 IFS=$as_save_IFS
16883
16884 ;;
16885 esac
16886 # We did not find ourselves, most probably we were run as `sh COMMAND'
16887 # in which case we are not to be found in the path.
16888 if test "x$as_myself" = x; then
16889 as_myself=$0
16890 fi
16891 if test ! -f "$as_myself"; then
16892 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16893 exit 1
16894 fi
16895
16896 # Unset variables that we do not need and which cause bugs (e.g. in
16897 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16898 # suppresses any "Segmentation fault" message there. '((' could
16899 # trigger a bug in pdksh 5.2.14.
16900 for as_var in BASH_ENV ENV MAIL MAILPATH
16901 do eval test x\${$as_var+set} = xset \
16902 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16903 done
16904 PS1='$ '
16905 PS2='> '
16906 PS4='+ '
16907
16908 # NLS nuisances.
16909 LC_ALL=C
16910 export LC_ALL
16911 LANGUAGE=C
16912 export LANGUAGE
16913
16914 # CDPATH.
16915 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16916
16917
16918 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16919 # ----------------------------------------
16920 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16921 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16922 # script with STATUS, using 1 if that was 0.
16923 as_fn_error ()
16924 {
16925 as_status=$1; test $as_status -eq 0 && as_status=1
16926 if test "$4"; then
16927 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16928 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16929 fi
16930 $as_echo "$as_me: error: $2" >&2
16931 as_fn_exit $as_status
16932 } # as_fn_error
16933
16934
16935 # as_fn_set_status STATUS
16936 # -----------------------
16937 # Set $? to STATUS, without forking.
16938 as_fn_set_status ()
16939 {
16940 return $1
16941 } # as_fn_set_status
16942
16943 # as_fn_exit STATUS
16944 # -----------------
16945 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16946 as_fn_exit ()
16947 {
16948 set +e
16949 as_fn_set_status $1
16950 exit $1
16951 } # as_fn_exit
16952
16953 # as_fn_unset VAR
16954 # ---------------
16955 # Portably unset VAR.
16956 as_fn_unset ()
16957 {
16958 { eval $1=; unset $1;}
16959 }
16960 as_unset=as_fn_unset
16961 # as_fn_append VAR VALUE
16962 # ----------------------
16963 # Append the text in VALUE to the end of the definition contained in VAR. Take
16964 # advantage of any shell optimizations that allow amortized linear growth over
16965 # repeated appends, instead of the typical quadratic growth present in naive
16966 # implementations.
16967 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16968 eval 'as_fn_append ()
16969 {
16970 eval $1+=\$2
16971 }'
16972 else
16973 as_fn_append ()
16974 {
16975 eval $1=\$$1\$2
16976 }
16977 fi # as_fn_append
16978
16979 # as_fn_arith ARG...
16980 # ------------------
16981 # Perform arithmetic evaluation on the ARGs, and store the result in the
16982 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16983 # must be portable across $(()) and expr.
16984 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16985 eval 'as_fn_arith ()
16986 {
16987 as_val=$(( $* ))
16988 }'
16989 else
16990 as_fn_arith ()
16991 {
16992 as_val=`expr "$@" || test $? -eq 1`
16993 }
16994 fi # as_fn_arith
16995
16996
16997 if expr a : '\(a\)' >/dev/null 2>&1 &&
16998 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16999 as_expr=expr
17000 else
17001 as_expr=false
17002 fi
17003
17004 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17005 as_basename=basename
17006 else
17007 as_basename=false
17008 fi
17009
17010 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17011 as_dirname=dirname
17012 else
17013 as_dirname=false
17014 fi
17015
17016 as_me=`$as_basename -- "$0" ||
17017 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17018 X"$0" : 'X\(//\)$' \| \
17019 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17020 $as_echo X/"$0" |
17021 sed '/^.*\/\([^/][^/]*\)\/*$/{
17022 s//\1/
17023 q
17024 }
17025 /^X\/\(\/\/\)$/{
17026 s//\1/
17027 q
17028 }
17029 /^X\/\(\/\).*/{
17030 s//\1/
17031 q
17032 }
17033 s/.*/./; q'`
17034
17035 # Avoid depending upon Character Ranges.
17036 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17037 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17038 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17039 as_cr_digits='0123456789'
17040 as_cr_alnum=$as_cr_Letters$as_cr_digits
17041
17042 ECHO_C= ECHO_N= ECHO_T=
17043 case `echo -n x` in #(((((
17044 -n*)
17045 case `echo 'xy\c'` in
17046 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17047 xy) ECHO_C='\c';;
17048 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17049 ECHO_T=' ';;
17050 esac;;
17051 *)
17052 ECHO_N='-n';;
17053 esac
17054
17055 rm -f conf$$ conf$$.exe conf$$.file
17056 if test -d conf$$.dir; then
17057 rm -f conf$$.dir/conf$$.file
17058 else
17059 rm -f conf$$.dir
17060 mkdir conf$$.dir 2>/dev/null
17061 fi
17062 if (echo >conf$$.file) 2>/dev/null; then
17063 if ln -s conf$$.file conf$$ 2>/dev/null; then
17064 as_ln_s='ln -s'
17065 # ... but there are two gotchas:
17066 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17067 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17068 # In both cases, we have to default to `cp -pR'.
17069 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17070 as_ln_s='cp -pR'
17071 elif ln conf$$.file conf$$ 2>/dev/null; then
17072 as_ln_s=ln
17073 else
17074 as_ln_s='cp -pR'
17075 fi
17076 else
17077 as_ln_s='cp -pR'
17078 fi
17079 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17080 rmdir conf$$.dir 2>/dev/null
17081
17082
17083 # as_fn_mkdir_p
17084 # -------------
17085 # Create "$as_dir" as a directory, including parents if necessary.
17086 as_fn_mkdir_p ()
17087 {
17088
17089 case $as_dir in #(
17090 -*) as_dir=./$as_dir;;
17091 esac
17092 test -d "$as_dir" || eval $as_mkdir_p || {
17093 as_dirs=
17094 while :; do
17095 case $as_dir in #(
17096 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17097 *) as_qdir=$as_dir;;
17098 esac
17099 as_dirs="'$as_qdir' $as_dirs"
17100 as_dir=`$as_dirname -- "$as_dir" ||
17101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17102 X"$as_dir" : 'X\(//\)[^/]' \| \
17103 X"$as_dir" : 'X\(//\)$' \| \
17104 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17105 $as_echo X"$as_dir" |
17106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17107 s//\1/
17108 q
17109 }
17110 /^X\(\/\/\)[^/].*/{
17111 s//\1/
17112 q
17113 }
17114 /^X\(\/\/\)$/{
17115 s//\1/
17116 q
17117 }
17118 /^X\(\/\).*/{
17119 s//\1/
17120 q
17121 }
17122 s/.*/./; q'`
17123 test -d "$as_dir" && break
17124 done
17125 test -z "$as_dirs" || eval "mkdir $as_dirs"
17126 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17127
17128
17129 } # as_fn_mkdir_p
17130 if mkdir -p . 2>/dev/null; then
17131 as_mkdir_p='mkdir -p "$as_dir"'
17132 else
17133 test -d ./-p && rmdir ./-p
17134 as_mkdir_p=false
17135 fi
17136
17137
17138 # as_fn_executable_p FILE
17139 # -----------------------
17140 # Test if FILE is an executable regular file.
17141 as_fn_executable_p ()
17142 {
17143 test -f "$1" && test -x "$1"
17144 } # as_fn_executable_p
17145 as_test_x='test -x'
17146 as_executable_p=as_fn_executable_p
17147
17148 # Sed expression to map a string onto a valid CPP name.
17149 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17150
17151 # Sed expression to map a string onto a valid variable name.
17152 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17153
17154
17155 exec 6>&1
17156 ## ----------------------------------- ##
17157 ## Main body of $CONFIG_STATUS script. ##
17158 ## ----------------------------------- ##
17159 _ASEOF
17160 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17161
17162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17163 # Save the log message, to keep $0 and so on meaningful, and to
17164 # report actual input values of CONFIG_FILES etc. instead of their
17165 # values after options handling.
17166 ac_log="
•17167 This file was extended by binutils $as_me 2.44, which was
17168 generated by GNU Autoconf 2.69. Invocation command line was
17169
17170 CONFIG_FILES = $CONFIG_FILES
17171 CONFIG_HEADERS = $CONFIG_HEADERS
17172 CONFIG_LINKS = $CONFIG_LINKS
17173 CONFIG_COMMANDS = $CONFIG_COMMANDS
17174 $ $0 $@
17175
17176 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17177 "
17178
17179 _ACEOF
17180
17181 case $ac_config_files in *"
17182 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17183 esac
17184
17185 case $ac_config_headers in *"
17186 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17187 esac
17188
17189
17190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17191 # Files that config.status was made for.
17192 config_files="$ac_config_files"
17193 config_headers="$ac_config_headers"
17194 config_commands="$ac_config_commands"
17195
17196 _ACEOF
17197
17198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17199 ac_cs_usage="\
17200 \`$as_me' instantiates files and other configuration actions
17201 from templates according to the current configuration. Unless the files
17202 and actions are specified as TAGs, all are instantiated by default.
17203
17204 Usage: $0 [OPTION]... [TAG]...
17205
17206 -h, --help print this help, then exit
17207 -V, --version print version number and configuration settings, then exit
17208 --config print configuration, then exit
17209 -q, --quiet, --silent
17210 do not print progress messages
17211 -d, --debug don't remove temporary files
17212 --recheck update $as_me by reconfiguring in the same conditions
17213 --file=FILE[:TEMPLATE]
17214 instantiate the configuration file FILE
17215 --header=FILE[:TEMPLATE]
17216 instantiate the configuration header FILE
17217
17218 Configuration files:
17219 $config_files
17220
17221 Configuration headers:
17222 $config_headers
17223
17224 Configuration commands:
17225 $config_commands
17226
17227 Report bugs to the package provider."
17228
17229 _ACEOF
17230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17231 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17232 ac_cs_version="\\
•17233 binutils config.status 2.44
17234 configured by $0, generated by GNU Autoconf 2.69,
17235 with options \\"\$ac_cs_config\\"
17236
17237 Copyright (C) 2012 Free Software Foundation, Inc.
17238 This config.status script is free software; the Free Software Foundation
17239 gives unlimited permission to copy, distribute and modify it."
17240
17241 ac_pwd='$ac_pwd'
17242 srcdir='$srcdir'
17243 INSTALL='$INSTALL'
17244 MKDIR_P='$MKDIR_P'
17245 AWK='$AWK'
17246 test -n "\$AWK" || AWK=awk
17247 _ACEOF
17248
17249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17250 # The default lists apply if the user does not specify any file.
17251 ac_need_defaults=:
17252 while test $# != 0
17253 do
17254 case $1 in
17255 --*=?*)
17256 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17257 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17258 ac_shift=:
17259 ;;
17260 --*=)
17261 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17262 ac_optarg=
17263 ac_shift=:
17264 ;;
17265 *)
17266 ac_option=$1
17267 ac_optarg=$2
17268 ac_shift=shift
17269 ;;
17270 esac
17271
17272 case $ac_option in
17273 # Handling of the options.
17274 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17275 ac_cs_recheck=: ;;
17276 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17277 $as_echo "$ac_cs_version"; exit ;;
17278 --config | --confi | --conf | --con | --co | --c )
17279 $as_echo "$ac_cs_config"; exit ;;
17280 --debug | --debu | --deb | --de | --d | -d )
17281 debug=: ;;
17282 --file | --fil | --fi | --f )
17283 $ac_shift
17284 case $ac_optarg in
17285 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17286 '') as_fn_error $? "missing file argument" ;;
17287 esac
17288 as_fn_append CONFIG_FILES " '$ac_optarg'"
17289 ac_need_defaults=false;;
17290 --header | --heade | --head | --hea )
17291 $ac_shift
17292 case $ac_optarg in
17293 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17294 esac
17295 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17296 ac_need_defaults=false;;
17297 --he | --h)
17298 # Conflict between --help and --header
17299 as_fn_error $? "ambiguous option: \`$1'
17300 Try \`$0 --help' for more information.";;
17301 --help | --hel | -h )
17302 $as_echo "$ac_cs_usage"; exit ;;
17303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17304 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17305 ac_cs_silent=: ;;
17306
17307 # This is an error.
17308 -*) as_fn_error $? "unrecognized option: \`$1'
17309 Try \`$0 --help' for more information." ;;
17310
17311 *) as_fn_append ac_config_targets " $1"
17312 ac_need_defaults=false ;;
17313
17314 esac
17315 shift
17316 done
17317
17318 ac_configure_extra_args=
17319
17320 if $ac_cs_silent; then
17321 exec 6>/dev/null
17322 ac_configure_extra_args="$ac_configure_extra_args --silent"
17323 fi
17324
17325 _ACEOF
17326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17327 if \$ac_cs_recheck; then
17328 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17329 shift
17330 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17331 CONFIG_SHELL='$SHELL'
17332 export CONFIG_SHELL
17333 exec "\$@"
17334 fi
17335
17336 _ACEOF
17337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17338 exec 5>>config.log
17339 {
17340 echo
17341 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17342 ## Running $as_me. ##
17343 _ASBOX
17344 $as_echo "$ac_log"
17345 } >&5
17346
17347 _ACEOF
17348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17349 #
17350 # INIT-COMMANDS
17351 #
17352 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17353
17354
17355 # The HP-UX ksh and POSIX shell print the target directory to stdout
17356 # if CDPATH is set.
17357 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17358
17359 sed_quote_subst='$sed_quote_subst'
17360 double_quote_subst='$double_quote_subst'
17361 delay_variable_subst='$delay_variable_subst'
17362 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17363 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17364 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17365 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17366 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17367 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17368 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17369 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17370 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17371 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17372 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17373 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17374 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17375 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17376 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17377 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17378 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17379 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17380 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17381 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17382 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17383 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17384 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17385 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17386 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17387 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17388 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17389 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17390 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17391 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17392 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17393 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17394 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17395 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17396 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17397 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17398 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17399 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17400 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17401 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17402 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17403 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17404 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17405 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17406 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17407 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17408 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17409 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17410 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"`'
17411 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17412 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17413 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17414 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17415 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17416 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17417 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17418 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17419 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17420 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17421 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17422 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17423 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17424 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17425 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17426 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17427 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17428 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17429 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17430 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17431 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17432 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17433 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17434 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17435 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17436 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17437 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17438 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17439 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17440 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17441 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17442 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17443 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17444 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17445 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17446 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17447 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17448 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17449 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17450 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17451 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17452 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17453 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17454 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17455 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17456 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17457 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17458 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17459 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17460 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17461 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17462 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17463 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17464 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17465 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17466 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17467 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17468 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17469 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17470 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17471 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17472 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17473 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17474 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17475 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17476 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17477 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17478 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17479 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17480 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17481 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17482
17483 LTCC='$LTCC'
17484 LTCFLAGS='$LTCFLAGS'
17485 compiler='$compiler_DEFAULT'
17486
17487 # A function that is used when there is no print builtin or printf.
17488 func_fallback_echo ()
17489 {
17490 eval 'cat <<_LTECHO_EOF
17491 \$1
17492 _LTECHO_EOF'
17493 }
17494
17495 # Quote evaled strings.
17496 for var in SHELL \
17497 ECHO \
17498 SED \
17499 GREP \
17500 EGREP \
17501 FGREP \
17502 LD \
17503 NM \
17504 LN_S \
17505 lt_SP2NL \
17506 lt_NL2SP \
17507 reload_flag \
17508 OBJDUMP \
17509 deplibs_check_method \
17510 file_magic_cmd \
17511 AR \
17512 AR_FLAGS \
17513 STRIP \
17514 RANLIB \
17515 CC \
17516 CFLAGS \
17517 compiler \
17518 lt_cv_sys_global_symbol_pipe \
17519 lt_cv_sys_global_symbol_to_cdecl \
17520 lt_cv_sys_global_symbol_to_c_name_address \
17521 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17522 lt_prog_compiler_no_builtin_flag \
17523 lt_prog_compiler_wl \
17524 lt_prog_compiler_pic \
17525 lt_prog_compiler_static \
17526 lt_cv_prog_compiler_c_o \
17527 need_locks \
17528 DSYMUTIL \
17529 NMEDIT \
17530 LIPO \
17531 OTOOL \
17532 OTOOL64 \
17533 shrext_cmds \
17534 export_dynamic_flag_spec \
17535 whole_archive_flag_spec \
17536 compiler_needs_object \
17537 with_gnu_ld \
17538 allow_undefined_flag \
17539 no_undefined_flag \
17540 hardcode_libdir_flag_spec \
17541 hardcode_libdir_flag_spec_ld \
17542 hardcode_libdir_separator \
17543 fix_srcfile_path \
17544 exclude_expsyms \
17545 include_expsyms \
17546 file_list_spec \
17547 variables_saved_for_relink \
17548 libname_spec \
17549 library_names_spec \
17550 soname_spec \
17551 install_override_mode \
17552 finish_eval \
17553 old_striplib \
17554 striplib; do
17555 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17556 *[\\\\\\\`\\"\\\$]*)
17557 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17558 ;;
17559 *)
17560 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17561 ;;
17562 esac
17563 done
17564
17565 # Double-quote double-evaled strings.
17566 for var in reload_cmds \
17567 old_postinstall_cmds \
17568 old_postuninstall_cmds \
17569 old_archive_cmds \
17570 extract_expsyms_cmds \
17571 old_archive_from_new_cmds \
17572 old_archive_from_expsyms_cmds \
17573 archive_cmds \
17574 archive_expsym_cmds \
17575 module_cmds \
17576 module_expsym_cmds \
17577 export_symbols_cmds \
17578 prelink_cmds \
17579 postinstall_cmds \
17580 postuninstall_cmds \
17581 finish_cmds \
17582 sys_lib_search_path_spec \
17583 sys_lib_dlsearch_path_spec; do
17584 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17585 *[\\\\\\\`\\"\\\$]*)
17586 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17587 ;;
17588 *)
17589 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17590 ;;
17591 esac
17592 done
17593
17594 ac_aux_dir='$ac_aux_dir'
17595 xsi_shell='$xsi_shell'
17596 lt_shell_append='$lt_shell_append'
17597
17598 # See if we are running on zsh, and set the options which allow our
17599 # commands through without removal of \ escapes INIT.
17600 if test -n "\${ZSH_VERSION+set}" ; then
17601 setopt NO_GLOB_SUBST
17602 fi
17603
17604
17605 PACKAGE='$PACKAGE'
17606 VERSION='$VERSION'
17607 TIMESTAMP='$TIMESTAMP'
17608 RM='$RM'
17609 ofile='$ofile'
17610
17611
17612
17613 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17614 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17615 # from automake.
17616 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17617 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17618 LINGUAS="${LINGUAS-%UNSET%}"
17619
17620 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17621 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17622 # from automake.
17623 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17624 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17625 LINGUAS="${LINGUAS-%UNSET%}"
17626
17627
17628 _ACEOF
17629
17630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17631
17632 # Handling of arguments.
17633 for ac_config_target in $ac_config_targets
17634 do
17635 case $ac_config_target in
17636 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17637 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17638 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17639 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17640 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
17641 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17642 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17643
17644 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17645 esac
17646 done
17647
17648
17649 # If the user did not use the arguments to specify the items to instantiate,
17650 # then the envvar interface is used. Set only those that are not.
17651 # We use the long form for the default assignment because of an extremely
17652 # bizarre bug on SunOS 4.1.3.
17653 if $ac_need_defaults; then
17654 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17655 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17656 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17657 fi
17658
17659 # Have a temporary directory for convenience. Make it in the build tree
17660 # simply because there is no reason against having it here, and in addition,
17661 # creating and moving files from /tmp can sometimes cause problems.
17662 # Hook for its removal unless debugging.
17663 # Note that there is a small window in which the directory will not be cleaned:
17664 # after its creation but before its name has been assigned to `$tmp'.
17665 $debug ||
17666 {
17667 tmp= ac_tmp=
17668 trap 'exit_status=$?
17669 : "${ac_tmp:=$tmp}"
17670 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17671 ' 0
17672 trap 'as_fn_exit 1' 1 2 13 15
17673 }
17674 # Create a (secure) tmp directory for tmp files.
17675
17676 {
17677 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17678 test -d "$tmp"
17679 } ||
17680 {
17681 tmp=./conf$$-$RANDOM
17682 (umask 077 && mkdir "$tmp")
17683 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17684 ac_tmp=$tmp
17685
17686 # Set up the scripts for CONFIG_FILES section.
17687 # No need to generate them if there are no CONFIG_FILES.
17688 # This happens for instance with `./config.status config.h'.
17689 if test -n "$CONFIG_FILES"; then
17690
17691
17692 ac_cr=`echo X | tr X '\015'`
17693 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17694 # But we know of no other shell where ac_cr would be empty at this
17695 # point, so we can use a bashism as a fallback.
17696 if test "x$ac_cr" = x; then
17697 eval ac_cr=\$\'\\r\'
17698 fi
17699 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17700 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17701 ac_cs_awk_cr='\\r'
17702 else
17703 ac_cs_awk_cr=$ac_cr
17704 fi
17705
17706 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17707 _ACEOF
17708
17709
17710 {
17711 echo "cat >conf$$subs.awk <<_ACEOF" &&
17712 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17713 echo "_ACEOF"
17714 } >conf$$subs.sh ||
17715 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17716 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17717 ac_delim='%!_!# '
17718 for ac_last_try in false false false false false :; do
17719 . ./conf$$subs.sh ||
17720 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17721
17722 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17723 if test $ac_delim_n = $ac_delim_num; then
17724 break
17725 elif $ac_last_try; then
17726 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17727 else
17728 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17729 fi
17730 done
17731 rm -f conf$$subs.sh
17732
17733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17734 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17735 _ACEOF
17736 sed -n '
17737 h
17738 s/^/S["/; s/!.*/"]=/
17739 p
17740 g
17741 s/^[^!]*!//
17742 :repl
17743 t repl
17744 s/'"$ac_delim"'$//
17745 t delim
17746 :nl
17747 h
17748 s/\(.\{148\}\)..*/\1/
17749 t more1
17750 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17751 p
17752 n
17753 b repl
17754 :more1
17755 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17756 p
17757 g
17758 s/.\{148\}//
17759 t nl
17760 :delim
17761 h
17762 s/\(.\{148\}\)..*/\1/
17763 t more2
17764 s/["\\]/\\&/g; s/^/"/; s/$/"/
17765 p
17766 b
17767 :more2
17768 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17769 p
17770 g
17771 s/.\{148\}//
17772 t delim
17773 ' <conf$$subs.awk | sed '
17774 /^[^""]/{
17775 N
17776 s/\n//
17777 }
17778 ' >>$CONFIG_STATUS || ac_write_fail=1
17779 rm -f conf$$subs.awk
17780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17781 _ACAWK
17782 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17783 for (key in S) S_is_set[key] = 1
17784 FS = ""
17785
17786 }
17787 {
17788 line = $ 0
17789 nfields = split(line, field, "@")
17790 substed = 0
17791 len = length(field[1])
17792 for (i = 2; i < nfields; i++) {
17793 key = field[i]
17794 keylen = length(key)
17795 if (S_is_set[key]) {
17796 value = S[key]
17797 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17798 len += length(value) + length(field[++i])
17799 substed = 1
17800 } else
17801 len += 1 + keylen
17802 }
17803
17804 print line
17805 }
17806
17807 _ACAWK
17808 _ACEOF
17809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17810 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17811 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17812 else
17813 cat
17814 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17815 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17816 _ACEOF
17817
17818 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17819 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17820 # trailing colons and then remove the whole line if VPATH becomes empty
17821 # (actually we leave an empty line to preserve line numbers).
17822 if test "x$srcdir" = x.; then
17823 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17824 h
17825 s///
17826 s/^/:/
17827 s/[ ]*$/:/
17828 s/:\$(srcdir):/:/g
17829 s/:\${srcdir}:/:/g
17830 s/:@srcdir@:/:/g
17831 s/^:*//
17832 s/:*$//
17833 x
17834 s/\(=[ ]*\).*/\1/
17835 G
17836 s/\n//
17837 s/^[^=]*=[ ]*$//
17838 }'
17839 fi
17840
17841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17842 fi # test -n "$CONFIG_FILES"
17843
17844 # Set up the scripts for CONFIG_HEADERS section.
17845 # No need to generate them if there are no CONFIG_HEADERS.
17846 # This happens for instance with `./config.status Makefile'.
17847 if test -n "$CONFIG_HEADERS"; then
17848 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17849 BEGIN {
17850 _ACEOF
17851
17852 # Transform confdefs.h into an awk script `defines.awk', embedded as
17853 # here-document in config.status, that substitutes the proper values into
17854 # config.h.in to produce config.h.
17855
17856 # Create a delimiter string that does not exist in confdefs.h, to ease
17857 # handling of long lines.
17858 ac_delim='%!_!# '
17859 for ac_last_try in false false :; do
17860 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17861 if test -z "$ac_tt"; then
17862 break
17863 elif $ac_last_try; then
17864 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17865 else
17866 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17867 fi
17868 done
17869
17870 # For the awk script, D is an array of macro values keyed by name,
17871 # likewise P contains macro parameters if any. Preserve backslash
17872 # newline sequences.
17873
17874 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17875 sed -n '
17876 s/.\{148\}/&'"$ac_delim"'/g
17877 t rset
17878 :rset
17879 s/^[ ]*#[ ]*define[ ][ ]*/ /
17880 t def
17881 d
17882 :def
17883 s/\\$//
17884 t bsnl
17885 s/["\\]/\\&/g
17886 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17887 D["\1"]=" \3"/p
17888 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17889 d
17890 :bsnl
17891 s/["\\]/\\&/g
17892 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17893 D["\1"]=" \3\\\\\\n"\\/p
17894 t cont
17895 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17896 t cont
17897 d
17898 :cont
17899 n
17900 s/.\{148\}/&'"$ac_delim"'/g
17901 t clear
17902 :clear
17903 s/\\$//
17904 t bsnlc
17905 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17906 d
17907 :bsnlc
17908 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17909 b cont
17910 ' <confdefs.h | sed '
17911 s/'"$ac_delim"'/"\\\
17912 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17913
17914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17915 for (key in D) D_is_set[key] = 1
17916 FS = ""
17917 }
17918 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17919 line = \$ 0
17920 split(line, arg, " ")
17921 if (arg[1] == "#") {
17922 defundef = arg[2]
17923 mac1 = arg[3]
17924 } else {
17925 defundef = substr(arg[1], 2)
17926 mac1 = arg[2]
17927 }
17928 split(mac1, mac2, "(") #)
17929 macro = mac2[1]
17930 prefix = substr(line, 1, index(line, defundef) - 1)
17931 if (D_is_set[macro]) {
17932 # Preserve the white space surrounding the "#".
17933 print prefix "define", macro P[macro] D[macro]
17934 next
17935 } else {
17936 # Replace #undef with comments. This is necessary, for example,
17937 # in the case of _POSIX_SOURCE, which is predefined and required
17938 # on some systems where configure will not decide to define it.
17939 if (defundef == "undef") {
17940 print "/*", prefix defundef, macro, "*/"
17941 next
17942 }
17943 }
17944 }
17945 { print }
17946 _ACAWK
17947 _ACEOF
17948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17949 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17950 fi # test -n "$CONFIG_HEADERS"
17951
17952
17953 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17954 shift
17955 for ac_tag
17956 do
17957 case $ac_tag in
17958 :[FHLC]) ac_mode=$ac_tag; continue;;
17959 esac
17960 case $ac_mode$ac_tag in
17961 :[FHL]*:*);;
17962 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17963 :[FH]-) ac_tag=-:-;;
17964 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17965 esac
17966 ac_save_IFS=$IFS
17967 IFS=:
17968 set x $ac_tag
17969 IFS=$ac_save_IFS
17970 shift
17971 ac_file=$1
17972 shift
17973
17974 case $ac_mode in
17975 :L) ac_source=$1;;
17976 :[FH])
17977 ac_file_inputs=
17978 for ac_f
17979 do
17980 case $ac_f in
17981 -) ac_f="$ac_tmp/stdin";;
17982 *) # Look for the file first in the build tree, then in the source tree
17983 # (if the path is not absolute). The absolute path cannot be DOS-style,
17984 # because $ac_f cannot contain `:'.
17985 test -f "$ac_f" ||
17986 case $ac_f in
17987 [\\/$]*) false;;
17988 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17989 esac ||
17990 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17991 esac
17992 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17993 as_fn_append ac_file_inputs " '$ac_f'"
17994 done
17995
17996 # Let's still pretend it is `configure' which instantiates (i.e., don't
17997 # use $as_me), people would be surprised to read:
17998 # /* config.h. Generated by config.status. */
17999 configure_input='Generated from '`
18000 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18001 `' by configure.'
18002 if test x"$ac_file" != x-; then
18003 configure_input="$ac_file. $configure_input"
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18005 $as_echo "$as_me: creating $ac_file" >&6;}
18006 fi
18007 # Neutralize special characters interpreted by sed in replacement strings.
18008 case $configure_input in #(
18009 *\&* | *\|* | *\\* )
18010 ac_sed_conf_input=`$as_echo "$configure_input" |
18011 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18012 *) ac_sed_conf_input=$configure_input;;
18013 esac
18014
18015 case $ac_tag in
18016 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18018 esac
18019 ;;
18020 esac
18021
18022 ac_dir=`$as_dirname -- "$ac_file" ||
18023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18024 X"$ac_file" : 'X\(//\)[^/]' \| \
18025 X"$ac_file" : 'X\(//\)$' \| \
18026 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18027 $as_echo X"$ac_file" |
18028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18029 s//\1/
18030 q
18031 }
18032 /^X\(\/\/\)[^/].*/{
18033 s//\1/
18034 q
18035 }
18036 /^X\(\/\/\)$/{
18037 s//\1/
18038 q
18039 }
18040 /^X\(\/\).*/{
18041 s//\1/
18042 q
18043 }
18044 s/.*/./; q'`
18045 as_dir="$ac_dir"; as_fn_mkdir_p
18046 ac_builddir=.
18047
18048 case "$ac_dir" in
18049 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18050 *)
18051 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18052 # A ".." for each directory in $ac_dir_suffix.
18053 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18054 case $ac_top_builddir_sub in
18055 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18056 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18057 esac ;;
18058 esac
18059 ac_abs_top_builddir=$ac_pwd
18060 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18061 # for backward compatibility:
18062 ac_top_builddir=$ac_top_build_prefix
18063
18064 case $srcdir in
18065 .) # We are building in place.
18066 ac_srcdir=.
18067 ac_top_srcdir=$ac_top_builddir_sub
18068 ac_abs_top_srcdir=$ac_pwd ;;
18069 [\\/]* | ?:[\\/]* ) # Absolute name.
18070 ac_srcdir=$srcdir$ac_dir_suffix;
18071 ac_top_srcdir=$srcdir
18072 ac_abs_top_srcdir=$srcdir ;;
18073 *) # Relative name.
18074 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18075 ac_top_srcdir=$ac_top_build_prefix$srcdir
18076 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18077 esac
18078 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18079
18080
18081 case $ac_mode in
18082 :F)
18083 #
18084 # CONFIG_FILE
18085 #
18086
18087 case $INSTALL in
18088 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18089 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18090 esac
18091 ac_MKDIR_P=$MKDIR_P
18092 case $MKDIR_P in
18093 [\\/$]* | ?:[\\/]* ) ;;
18094 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18095 esac
18096 _ACEOF
18097
18098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18099 # If the template does not know about datarootdir, expand it.
18100 # FIXME: This hack should be removed a few years after 2.60.
18101 ac_datarootdir_hack=; ac_datarootdir_seen=
18102 ac_sed_dataroot='
18103 /datarootdir/ {
18104 p
18105 q
18106 }
18107 /@datadir@/p
18108 /@docdir@/p
18109 /@infodir@/p
18110 /@localedir@/p
18111 /@mandir@/p'
18112 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18113 *datarootdir*) ac_datarootdir_seen=yes;;
18114 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18116 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18117 _ACEOF
18118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18119 ac_datarootdir_hack='
18120 s&@datadir@&$datadir&g
18121 s&@docdir@&$docdir&g
18122 s&@infodir@&$infodir&g
18123 s&@localedir@&$localedir&g
18124 s&@mandir@&$mandir&g
18125 s&\\\${datarootdir}&$datarootdir&g' ;;
18126 esac
18127 _ACEOF
18128
18129 # Neutralize VPATH when `$srcdir' = `.'.
18130 # Shell code in configure.ac might set extrasub.
18131 # FIXME: do we really want to maintain this feature?
18132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18133 ac_sed_extra="$ac_vpsub
18134 $extrasub
18135 _ACEOF
18136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18137 :t
18138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18139 s|@configure_input@|$ac_sed_conf_input|;t t
18140 s&@top_builddir@&$ac_top_builddir_sub&;t t
18141 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18142 s&@srcdir@&$ac_srcdir&;t t
18143 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18144 s&@top_srcdir@&$ac_top_srcdir&;t t
18145 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18146 s&@builddir@&$ac_builddir&;t t
18147 s&@abs_builddir@&$ac_abs_builddir&;t t
18148 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18149 s&@INSTALL@&$ac_INSTALL&;t t
18150 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18151 $ac_datarootdir_hack
18152 "
18153 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18154 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18155
18156 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18157 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18158 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18159 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18161 which seems to be undefined. Please make sure it is defined" >&5
18162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18163 which seems to be undefined. Please make sure it is defined" >&2;}
18164
18165 rm -f "$ac_tmp/stdin"
18166 case $ac_file in
18167 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18168 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18169 esac \
18170 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18171 ;;
18172 :H)
18173 #
18174 # CONFIG_HEADER
18175 #
18176 if test x"$ac_file" != x-; then
18177 {
18178 $as_echo "/* $configure_input */" \
18179 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18180 } >"$ac_tmp/config.h" \
18181 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18182 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18184 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18185 else
18186 rm -f "$ac_file"
18187 mv "$ac_tmp/config.h" "$ac_file" \
18188 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18189 fi
18190 else
18191 $as_echo "/* $configure_input */" \
18192 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18193 || as_fn_error $? "could not create -" "$LINENO" 5
18194 fi
18195 # Compute "$ac_file"'s index in $config_headers.
18196 _am_arg="$ac_file"
18197 _am_stamp_count=1
18198 for _am_header in $config_headers :; do
18199 case $_am_header in
18200 $_am_arg | $_am_arg:* )
18201 break ;;
18202 * )
18203 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18204 esac
18205 done
18206 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18207 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18208 X"$_am_arg" : 'X\(//\)[^/]' \| \
18209 X"$_am_arg" : 'X\(//\)$' \| \
18210 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18211 $as_echo X"$_am_arg" |
18212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18213 s//\1/
18214 q
18215 }
18216 /^X\(\/\/\)[^/].*/{
18217 s//\1/
18218 q
18219 }
18220 /^X\(\/\/\)$/{
18221 s//\1/
18222 q
18223 }
18224 /^X\(\/\).*/{
18225 s//\1/
18226 q
18227 }
18228 s/.*/./; q'`/stamp-h$_am_stamp_count
18229 ;;
18230
18231 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18232 $as_echo "$as_me: executing $ac_file commands" >&6;}
18233 ;;
18234 esac
18235
18236
18237 case $ac_file$ac_mode in
18238 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18239 # Older Autoconf quotes --file arguments for eval, but not when files
18240 # are listed without --file. Let's play safe and only enable the eval
18241 # if we detect the quoting.
18242 case $CONFIG_FILES in
18243 *\'*) eval set x "$CONFIG_FILES" ;;
18244 *) set x $CONFIG_FILES ;;
18245 esac
18246 shift
18247 for mf
18248 do
18249 # Strip MF so we end up with the name of the file.
18250 mf=`echo "$mf" | sed -e 's/:.*$//'`
18251 # Check whether this is an Automake generated Makefile or not.
18252 # We used to match only the files named 'Makefile.in', but
18253 # some people rename them; so instead we look at the file content.
18254 # Grep'ing the first line is not enough: some people post-process
18255 # each Makefile.in and add a new line on top of each file to say so.
18256 # Grep'ing the whole file is not good either: AIX grep has a line
18257 # limit of 2048, but all sed's we know have understand at least 4000.
18258 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18259 dirpart=`$as_dirname -- "$mf" ||
18260 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18261 X"$mf" : 'X\(//\)[^/]' \| \
18262 X"$mf" : 'X\(//\)$' \| \
18263 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18264 $as_echo X"$mf" |
18265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18266 s//\1/
18267 q
18268 }
18269 /^X\(\/\/\)[^/].*/{
18270 s//\1/
18271 q
18272 }
18273 /^X\(\/\/\)$/{
18274 s//\1/
18275 q
18276 }
18277 /^X\(\/\).*/{
18278 s//\1/
18279 q
18280 }
18281 s/.*/./; q'`
18282 else
18283 continue
18284 fi
18285 # Extract the definition of DEPDIR, am__include, and am__quote
18286 # from the Makefile without running 'make'.
18287 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18288 test -z "$DEPDIR" && continue
18289 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18290 test -z "$am__include" && continue
18291 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18292 # Find all dependency output files, they are included files with
18293 # $(DEPDIR) in their names. We invoke sed twice because it is the
18294 # simplest approach to changing $(DEPDIR) to its actual value in the
18295 # expansion.
18296 for file in `sed -n "
18297 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18298 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18299 # Make sure the directory exists.
18300 test -f "$dirpart/$file" && continue
18301 fdir=`$as_dirname -- "$file" ||
18302 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18303 X"$file" : 'X\(//\)[^/]' \| \
18304 X"$file" : 'X\(//\)$' \| \
18305 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18306 $as_echo X"$file" |
18307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18308 s//\1/
18309 q
18310 }
18311 /^X\(\/\/\)[^/].*/{
18312 s//\1/
18313 q
18314 }
18315 /^X\(\/\/\)$/{
18316 s//\1/
18317 q
18318 }
18319 /^X\(\/\).*/{
18320 s//\1/
18321 q
18322 }
18323 s/.*/./; q'`
18324 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18325 # echo "creating $dirpart/$file"
18326 echo '# dummy' > "$dirpart/$file"
18327 done
18328 done
18329 }
18330 ;;
18331 "libtool":C)
18332
18333 # See if we are running on zsh, and set the options which allow our
18334 # commands through without removal of \ escapes.
18335 if test -n "${ZSH_VERSION+set}" ; then
18336 setopt NO_GLOB_SUBST
18337 fi
18338
18339 cfgfile="${ofile}T"
18340 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18341 $RM "$cfgfile"
18342
18343 cat <<_LT_EOF >> "$cfgfile"
18344 #! $SHELL
18345
18346 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18347 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18348 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18349 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18350 #
18351 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18352 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18353 # Written by Gordon Matzigkeit, 1996
18354 #
18355 # This file is part of GNU Libtool.
18356 #
18357 # GNU Libtool is free software; you can redistribute it and/or
18358 # modify it under the terms of the GNU General Public License as
18359 # published by the Free Software Foundation; either version 2 of
18360 # the License, or (at your option) any later version.
18361 #
18362 # As a special exception to the GNU General Public License,
18363 # if you distribute this file as part of a program or library that
18364 # is built using GNU Libtool, you may include this file under the
18365 # same distribution terms that you use for the rest of that program.
18366 #
18367 # GNU Libtool is distributed in the hope that it will be useful,
18368 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18369 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18370 # GNU General Public License for more details.
18371 #
18372 # You should have received a copy of the GNU General Public License
18373 # along with GNU Libtool; see the file COPYING. If not, a copy
18374 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18375 # obtained by writing to the Free Software Foundation, Inc.,
18376 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18377
18378
18379 # The names of the tagged configurations supported by this script.
18380 available_tags=""
18381
18382 # ### BEGIN LIBTOOL CONFIG
18383
18384 # Which release of libtool.m4 was used?
18385 macro_version=$macro_version
18386 macro_revision=$macro_revision
18387
18388 # Whether or not to build shared libraries.
18389 build_libtool_libs=$enable_shared
18390
18391 # Whether or not to build static libraries.
18392 build_old_libs=$enable_static
18393
18394 # What type of objects to build.
18395 pic_mode=$pic_mode
18396
18397 # Whether or not to optimize for fast installation.
18398 fast_install=$enable_fast_install
18399
18400 # Shell to use when invoking shell scripts.
18401 SHELL=$lt_SHELL
18402
18403 # An echo program that protects backslashes.
18404 ECHO=$lt_ECHO
18405
18406 # The host system.
18407 host_alias=$host_alias
18408 host=$host
18409 host_os=$host_os
18410
18411 # The build system.
18412 build_alias=$build_alias
18413 build=$build
18414 build_os=$build_os
18415
18416 # A sed program that does not truncate output.
18417 SED=$lt_SED
18418
18419 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18420 Xsed="\$SED -e 1s/^X//"
18421
18422 # A grep program that handles long lines.
18423 GREP=$lt_GREP
18424
18425 # An ERE matcher.
18426 EGREP=$lt_EGREP
18427
18428 # A literal string matcher.
18429 FGREP=$lt_FGREP
18430
18431 # A BSD- or MS-compatible name lister.
18432 NM=$lt_NM
18433
18434 # Whether we need soft or hard links.
18435 LN_S=$lt_LN_S
18436
18437 # What is the maximum length of a command?
18438 max_cmd_len=$max_cmd_len
18439
18440 # Object file suffix (normally "o").
18441 objext=$ac_objext
18442
18443 # Executable file suffix (normally "").
18444 exeext=$exeext
18445
18446 # whether the shell understands "unset".
18447 lt_unset=$lt_unset
18448
18449 # turn spaces into newlines.
18450 SP2NL=$lt_lt_SP2NL
18451
18452 # turn newlines into spaces.
18453 NL2SP=$lt_lt_NL2SP
18454
18455 # An object symbol dumper.
18456 OBJDUMP=$lt_OBJDUMP
18457
18458 # Method to check whether dependent libraries are shared objects.
18459 deplibs_check_method=$lt_deplibs_check_method
18460
18461 # Command to use when deplibs_check_method == "file_magic".
18462 file_magic_cmd=$lt_file_magic_cmd
18463
18464 # The archiver.
18465 AR=$lt_AR
18466 AR_FLAGS=$lt_AR_FLAGS
18467
18468 # A symbol stripping program.
18469 STRIP=$lt_STRIP
18470
18471 # Commands used to install an old-style archive.
18472 RANLIB=$lt_RANLIB
18473 old_postinstall_cmds=$lt_old_postinstall_cmds
18474 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18475
18476 # Whether to use a lock for old archive extraction.
18477 lock_old_archive_extraction=$lock_old_archive_extraction
18478
18479 # A C compiler.
18480 LTCC=$lt_CC
18481
18482 # LTCC compiler flags.
18483 LTCFLAGS=$lt_CFLAGS
18484
18485 # Take the output of nm and produce a listing of raw symbols and C names.
18486 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18487
18488 # Transform the output of nm in a proper C declaration.
18489 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18490
18491 # Transform the output of nm in a C name address pair.
18492 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18493
18494 # Transform the output of nm in a C name address pair when lib prefix is needed.
18495 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18496
18497 # The name of the directory that contains temporary libtool files.
18498 objdir=$objdir
18499
18500 # Used to examine libraries when file_magic_cmd begins with "file".
18501 MAGIC_CMD=$MAGIC_CMD
18502
18503 # Must we lock files when doing compilation?
18504 need_locks=$lt_need_locks
18505
18506 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18507 DSYMUTIL=$lt_DSYMUTIL
18508
18509 # Tool to change global to local symbols on Mac OS X.
18510 NMEDIT=$lt_NMEDIT
18511
18512 # Tool to manipulate fat objects and archives on Mac OS X.
18513 LIPO=$lt_LIPO
18514
18515 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18516 OTOOL=$lt_OTOOL
18517
18518 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18519 OTOOL64=$lt_OTOOL64
18520
18521 # Old archive suffix (normally "a").
18522 libext=$libext
18523
18524 # Shared library suffix (normally ".so").
18525 shrext_cmds=$lt_shrext_cmds
18526
18527 # The commands to extract the exported symbol list from a shared archive.
18528 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18529
18530 # Variables whose values should be saved in libtool wrapper scripts and
18531 # restored at link time.
18532 variables_saved_for_relink=$lt_variables_saved_for_relink
18533
18534 # Do we need the "lib" prefix for modules?
18535 need_lib_prefix=$need_lib_prefix
18536
18537 # Do we need a version for libraries?
18538 need_version=$need_version
18539
18540 # Library versioning type.
18541 version_type=$version_type
18542
18543 # Shared library runtime path variable.
18544 runpath_var=$runpath_var
18545
18546 # Shared library path variable.
18547 shlibpath_var=$shlibpath_var
18548
18549 # Is shlibpath searched before the hard-coded library search path?
18550 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18551
18552 # Format of library name prefix.
18553 libname_spec=$lt_libname_spec
18554
18555 # List of archive names. First name is the real one, the rest are links.
18556 # The last name is the one that the linker finds with -lNAME
18557 library_names_spec=$lt_library_names_spec
18558
18559 # The coded name of the library, if different from the real name.
18560 soname_spec=$lt_soname_spec
18561
18562 # Permission mode override for installation of shared libraries.
18563 install_override_mode=$lt_install_override_mode
18564
18565 # Command to use after installation of a shared archive.
18566 postinstall_cmds=$lt_postinstall_cmds
18567
18568 # Command to use after uninstallation of a shared archive.
18569 postuninstall_cmds=$lt_postuninstall_cmds
18570
18571 # Commands used to finish a libtool library installation in a directory.
18572 finish_cmds=$lt_finish_cmds
18573
18574 # As "finish_cmds", except a single script fragment to be evaled but
18575 # not shown.
18576 finish_eval=$lt_finish_eval
18577
18578 # Whether we should hardcode library paths into libraries.
18579 hardcode_into_libs=$hardcode_into_libs
18580
18581 # Compile-time system search path for libraries.
18582 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18583
18584 # Run-time system search path for libraries.
18585 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18586
18587 # Whether dlopen is supported.
18588 dlopen_support=$enable_dlopen
18589
18590 # Whether dlopen of programs is supported.
18591 dlopen_self=$enable_dlopen_self
18592
18593 # Whether dlopen of statically linked programs is supported.
18594 dlopen_self_static=$enable_dlopen_self_static
18595
18596 # Commands to strip libraries.
18597 old_striplib=$lt_old_striplib
18598 striplib=$lt_striplib
18599
18600
18601 # The linker used to build libraries.
18602 LD=$lt_LD
18603
18604 # How to create reloadable object files.
18605 reload_flag=$lt_reload_flag
18606 reload_cmds=$lt_reload_cmds
18607
18608 # Commands used to build an old-style archive.
18609 old_archive_cmds=$lt_old_archive_cmds
18610
18611 # A language specific compiler.
18612 CC=$lt_compiler
18613
18614 # Is the compiler the GNU compiler?
18615 with_gcc=$GCC
18616
18617 # Compiler flag to turn off builtin functions.
18618 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18619
18620 # How to pass a linker flag through the compiler.
18621 wl=$lt_lt_prog_compiler_wl
18622
18623 # Additional compiler flags for building library objects.
18624 pic_flag=$lt_lt_prog_compiler_pic
18625
18626 # Compiler flag to prevent dynamic linking.
18627 link_static_flag=$lt_lt_prog_compiler_static
18628
18629 # Does compiler simultaneously support -c and -o options?
18630 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18631
18632 # Whether or not to add -lc for building shared libraries.
18633 build_libtool_need_lc=$archive_cmds_need_lc
18634
18635 # Whether or not to disallow shared libs when runtime libs are static.
18636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18637
18638 # Compiler flag to allow reflexive dlopens.
18639 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18640
18641 # Compiler flag to generate shared objects directly from archives.
18642 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18643
18644 # Whether the compiler copes with passing no objects directly.
18645 compiler_needs_object=$lt_compiler_needs_object
18646
18647 # Create an old-style archive from a shared archive.
18648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18649
18650 # Create a temporary old-style archive to link instead of a shared archive.
18651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18652
18653 # Commands used to build a shared archive.
18654 archive_cmds=$lt_archive_cmds
18655 archive_expsym_cmds=$lt_archive_expsym_cmds
18656
18657 # Commands used to build a loadable module if different from building
18658 # a shared archive.
18659 module_cmds=$lt_module_cmds
18660 module_expsym_cmds=$lt_module_expsym_cmds
18661
18662 # Whether we are building with GNU ld or not.
18663 with_gnu_ld=$lt_with_gnu_ld
18664
18665 # Flag that allows shared libraries with undefined symbols to be built.
18666 allow_undefined_flag=$lt_allow_undefined_flag
18667
18668 # Flag that enforces no undefined symbols.
18669 no_undefined_flag=$lt_no_undefined_flag
18670
18671 # Flag to hardcode \$libdir into a binary during linking.
18672 # This must work even if \$libdir does not exist
18673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18674
18675 # If ld is used when linking, flag to hardcode \$libdir into a binary
18676 # during linking. This must work even if \$libdir does not exist.
18677 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18678
18679 # Whether we need a single "-rpath" flag with a separated argument.
18680 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18681
18682 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18683 # DIR into the resulting binary.
18684 hardcode_direct=$hardcode_direct
18685
18686 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18687 # DIR into the resulting binary and the resulting library dependency is
18688 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18689 # library is relocated.
18690 hardcode_direct_absolute=$hardcode_direct_absolute
18691
18692 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18693 # into the resulting binary.
18694 hardcode_minus_L=$hardcode_minus_L
18695
18696 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18697 # into the resulting binary.
18698 hardcode_shlibpath_var=$hardcode_shlibpath_var
18699
18700 # Set to "yes" if building a shared library automatically hardcodes DIR
18701 # into the library and all subsequent libraries and executables linked
18702 # against it.
18703 hardcode_automatic=$hardcode_automatic
18704
18705 # Set to yes if linker adds runtime paths of dependent libraries
18706 # to runtime path list.
18707 inherit_rpath=$inherit_rpath
18708
18709 # Whether libtool must link a program against all its dependency libraries.
18710 link_all_deplibs=$link_all_deplibs
18711
18712 # Fix the shell variable \$srcfile for the compiler.
18713 fix_srcfile_path=$lt_fix_srcfile_path
18714
18715 # Set to "yes" if exported symbols are required.
18716 always_export_symbols=$always_export_symbols
18717
18718 # The commands to list exported symbols.
18719 export_symbols_cmds=$lt_export_symbols_cmds
18720
18721 # Symbols that should not be listed in the preloaded symbols.
18722 exclude_expsyms=$lt_exclude_expsyms
18723
18724 # Symbols that must always be exported.
18725 include_expsyms=$lt_include_expsyms
18726
18727 # Commands necessary for linking programs (against libraries) with templates.
18728 prelink_cmds=$lt_prelink_cmds
18729
18730 # Specify filename containing input files.
18731 file_list_spec=$lt_file_list_spec
18732
18733 # How to hardcode a shared library path into an executable.
18734 hardcode_action=$hardcode_action
18735
18736 # ### END LIBTOOL CONFIG
18737
18738 _LT_EOF
18739
18740 case $host_os in
18741 aix3*)
18742 cat <<\_LT_EOF >> "$cfgfile"
18743 # AIX sometimes has problems with the GCC collect2 program. For some
18744 # reason, if we set the COLLECT_NAMES environment variable, the problems
18745 # vanish in a puff of smoke.
18746 if test "X${COLLECT_NAMES+set}" != Xset; then
18747 COLLECT_NAMES=
18748 export COLLECT_NAMES
18749 fi
18750 _LT_EOF
18751 ;;
18752 esac
18753
18754
18755 ltmain="$ac_aux_dir/ltmain.sh"
18756
18757
18758 # We use sed instead of cat because bash on DJGPP gets confused if
18759 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18760 # text mode, it properly converts lines to CR/LF. This bash problem
18761 # is reportedly fixed, but why not run on old versions too?
18762 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18763 || (rm -f "$cfgfile"; exit 1)
18764
18765 case $xsi_shell in
18766 yes)
18767 cat << \_LT_EOF >> "$cfgfile"
18768
18769 # func_dirname file append nondir_replacement
18770 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18771 # otherwise set result to NONDIR_REPLACEMENT.
18772 func_dirname ()
18773 {
18774 case ${1} in
18775 */*) func_dirname_result="${1%/*}${2}" ;;
18776 * ) func_dirname_result="${3}" ;;
18777 esac
18778 }
18779
18780 # func_basename file
18781 func_basename ()
18782 {
18783 func_basename_result="${1##*/}"
18784 }
18785
18786 # func_dirname_and_basename file append nondir_replacement
18787 # perform func_basename and func_dirname in a single function
18788 # call:
18789 # dirname: Compute the dirname of FILE. If nonempty,
18790 # add APPEND to the result, otherwise set result
18791 # to NONDIR_REPLACEMENT.
18792 # value returned in "$func_dirname_result"
18793 # basename: Compute filename of FILE.
18794 # value retuned in "$func_basename_result"
18795 # Implementation must be kept synchronized with func_dirname
18796 # and func_basename. For efficiency, we do not delegate to
18797 # those functions but instead duplicate the functionality here.
18798 func_dirname_and_basename ()
18799 {
18800 case ${1} in
18801 */*) func_dirname_result="${1%/*}${2}" ;;
18802 * ) func_dirname_result="${3}" ;;
18803 esac
18804 func_basename_result="${1##*/}"
18805 }
18806
18807 # func_stripname prefix suffix name
18808 # strip PREFIX and SUFFIX off of NAME.
18809 # PREFIX and SUFFIX must not contain globbing or regex special
18810 # characters, hashes, percent signs, but SUFFIX may contain a leading
18811 # dot (in which case that matches only a dot).
18812 func_stripname ()
18813 {
18814 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18815 # positional parameters, so assign one to ordinary parameter first.
18816 func_stripname_result=${3}
18817 func_stripname_result=${func_stripname_result#"${1}"}
18818 func_stripname_result=${func_stripname_result%"${2}"}
18819 }
18820
18821 # func_opt_split
18822 func_opt_split ()
18823 {
18824 func_opt_split_opt=${1%%=*}
18825 func_opt_split_arg=${1#*=}
18826 }
18827
18828 # func_lo2o object
18829 func_lo2o ()
18830 {
18831 case ${1} in
18832 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18833 *) func_lo2o_result=${1} ;;
18834 esac
18835 }
18836
18837 # func_xform libobj-or-source
18838 func_xform ()
18839 {
18840 func_xform_result=${1%.*}.lo
18841 }
18842
18843 # func_arith arithmetic-term...
18844 func_arith ()
18845 {
18846 func_arith_result=$(( $* ))
18847 }
18848
18849 # func_len string
18850 # STRING may not start with a hyphen.
18851 func_len ()
18852 {
18853 func_len_result=${#1}
18854 }
18855
18856 _LT_EOF
18857 ;;
18858 *) # Bourne compatible functions.
18859 cat << \_LT_EOF >> "$cfgfile"
18860
18861 # func_dirname file append nondir_replacement
18862 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18863 # otherwise set result to NONDIR_REPLACEMENT.
18864 func_dirname ()
18865 {
18866 # Extract subdirectory from the argument.
18867 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18868 if test "X$func_dirname_result" = "X${1}"; then
18869 func_dirname_result="${3}"
18870 else
18871 func_dirname_result="$func_dirname_result${2}"
18872 fi
18873 }
18874
18875 # func_basename file
18876 func_basename ()
18877 {
18878 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18879 }
18880
18881
18882 # func_stripname prefix suffix name
18883 # strip PREFIX and SUFFIX off of NAME.
18884 # PREFIX and SUFFIX must not contain globbing or regex special
18885 # characters, hashes, percent signs, but SUFFIX may contain a leading
18886 # dot (in which case that matches only a dot).
18887 # func_strip_suffix prefix name
18888 func_stripname ()
18889 {
18890 case ${2} in
18891 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18892 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18893 esac
18894 }
18895
18896 # sed scripts:
18897 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18898 my_sed_long_arg='1s/^-[^=]*=//'
18899
18900 # func_opt_split
18901 func_opt_split ()
18902 {
18903 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18904 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18905 }
18906
18907 # func_lo2o object
18908 func_lo2o ()
18909 {
18910 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18911 }
18912
18913 # func_xform libobj-or-source
18914 func_xform ()
18915 {
18916 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18917 }
18918
18919 # func_arith arithmetic-term...
18920 func_arith ()
18921 {
18922 func_arith_result=`expr "$@"`
18923 }
18924
18925 # func_len string
18926 # STRING may not start with a hyphen.
18927 func_len ()
18928 {
18929 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18930 }
18931
18932 _LT_EOF
18933 esac
18934
18935 case $lt_shell_append in
18936 yes)
18937 cat << \_LT_EOF >> "$cfgfile"
18938
18939 # func_append var value
18940 # Append VALUE to the end of shell variable VAR.
18941 func_append ()
18942 {
18943 eval "$1+=\$2"
18944 }
18945 _LT_EOF
18946 ;;
18947 *)
18948 cat << \_LT_EOF >> "$cfgfile"
18949
18950 # func_append var value
18951 # Append VALUE to the end of shell variable VAR.
18952 func_append ()
18953 {
18954 eval "$1=\$$1\$2"
18955 }
18956
18957 _LT_EOF
18958 ;;
18959 esac
18960
18961
18962 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18963 || (rm -f "$cfgfile"; exit 1)
18964
18965 mv -f "$cfgfile" "$ofile" ||
18966 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18967 chmod +x "$ofile"
18968
18969 ;;
18970 "default-1":C)
18971 for ac_file in $CONFIG_FILES; do
18972 # Support "outfile[:infile[:infile...]]"
18973 case "$ac_file" in
18974 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18975 esac
18976 # PO directories have a Makefile.in generated from Makefile.in.in.
18977 case "$ac_file" in */Makefile.in)
18978 # Adjust a relative srcdir.
18979 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18980 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18981 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18982 # In autoconf-2.13 it is called $ac_given_srcdir.
18983 # In autoconf-2.50 it is called $srcdir.
18984 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18985 case "$ac_given_srcdir" in
18986 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18987 /*) top_srcdir="$ac_given_srcdir" ;;
18988 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18989 esac
18990 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18991 rm -f "$ac_dir/POTFILES"
18992 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18993 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18994 POMAKEFILEDEPS="POTFILES.in"
18995 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18996 # on $ac_dir but don't depend on user-specified configuration
18997 # parameters.
18998 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18999 # The LINGUAS file contains the set of available languages.
19000 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19001 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
19002 fi
19003 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19004 # Hide the ALL_LINGUAS assigment from automake.
19005 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19006 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19007 else
19008 # The set of available languages was given in configure.ac.
19009 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19010 fi
19011 case "$ac_given_srcdir" in
19012 .) srcdirpre= ;;
19013 *) srcdirpre='$(srcdir)/' ;;
19014 esac
19015 POFILES=
19016 GMOFILES=
19017 UPDATEPOFILES=
19018 DUMMYPOFILES=
19019 for lang in $ALL_LINGUAS; do
19020 POFILES="$POFILES $srcdirpre$lang.po"
19021 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19022 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19023 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19024 done
19025 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19026 # environment variable.
19027 INST_LINGUAS=
19028 if test -n "$ALL_LINGUAS"; then
19029 for presentlang in $ALL_LINGUAS; do
19030 useit=no
19031 if test "%UNSET%" != "$LINGUAS"; then
19032 desiredlanguages="$LINGUAS"
19033 else
19034 desiredlanguages="$ALL_LINGUAS"
19035 fi
19036 for desiredlang in $desiredlanguages; do
19037 # Use the presentlang catalog if desiredlang is
19038 # a. equal to presentlang, or
19039 # b. a variant of presentlang (because in this case,
19040 # presentlang can be used as a fallback for messages
19041 # which are not translated in the desiredlang catalog).
19042 case "$desiredlang" in
19043 "$presentlang"*) useit=yes;;
19044 esac
19045 done
19046 if test $useit = yes; then
19047 INST_LINGUAS="$INST_LINGUAS $presentlang"
19048 fi
19049 done
19050 fi
19051 CATALOGS=
19052 if test -n "$INST_LINGUAS"; then
19053 for lang in $INST_LINGUAS; do
19054 CATALOGS="$CATALOGS $lang.gmo"
19055 done
19056 fi
19057 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19058 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"
19059 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19060 if test -f "$f"; then
19061 case "$f" in
19062 *.orig | *.bak | *~) ;;
19063 *) cat "$f" >> "$ac_dir/Makefile" ;;
19064 esac
19065 fi
19066 done
19067 fi
19068 ;;
19069 esac
19070 done ;;
19071 "default-2":C)
19072 for ac_file in $CONFIG_FILES; do
19073 # Support "outfile[:infile[:infile...]]"
19074 case "$ac_file" in
19075 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19076 esac
19077 # PO directories have a Makefile.in generated from Makefile.in.in.
19078 case "$ac_file" in */Makefile.in)
19079 # Adjust a relative srcdir.
19080 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19081 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19082 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19083 # In autoconf-2.13 it is called $ac_given_srcdir.
19084 # In autoconf-2.50 it is called $srcdir.
19085 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19086 case "$ac_given_srcdir" in
19087 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19088 /*) top_srcdir="$ac_given_srcdir" ;;
19089 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19090 esac
19091 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19092 rm -f "$ac_dir/POTFILES"
19093 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19094 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19095 POMAKEFILEDEPS="POTFILES.in"
19096 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19097 # on $ac_dir but don't depend on user-specified configuration
19098 # parameters.
19099 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19100 # The LINGUAS file contains the set of available languages.
19101 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19102 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
19103 fi
19104 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19105 # Hide the ALL_LINGUAS assigment from automake.
19106 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19107 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19108 else
19109 # The set of available languages was given in configure.ac.
19110 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19111 fi
19112 case "$ac_given_srcdir" in
19113 .) srcdirpre= ;;
19114 *) srcdirpre='$(srcdir)/' ;;
19115 esac
19116 POFILES=
19117 GMOFILES=
19118 UPDATEPOFILES=
19119 DUMMYPOFILES=
19120 for lang in $ALL_LINGUAS; do
19121 POFILES="$POFILES $srcdirpre$lang.po"
19122 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19123 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19124 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19125 done
19126 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19127 # environment variable.
19128 INST_LINGUAS=
19129 if test -n "$ALL_LINGUAS"; then
19130 for presentlang in $ALL_LINGUAS; do
19131 useit=no
19132 if test "%UNSET%" != "$LINGUAS"; then
19133 desiredlanguages="$LINGUAS"
19134 else
19135 desiredlanguages="$ALL_LINGUAS"
19136 fi
19137 for desiredlang in $desiredlanguages; do
19138 # Use the presentlang catalog if desiredlang is
19139 # a. equal to presentlang, or
19140 # b. a variant of presentlang (because in this case,
19141 # presentlang can be used as a fallback for messages
19142 # which are not translated in the desiredlang catalog).
19143 case "$desiredlang" in
19144 "$presentlang"*) useit=yes;;
19145 esac
19146 done
19147 if test $useit = yes; then
19148 INST_LINGUAS="$INST_LINGUAS $presentlang"
19149 fi
19150 done
19151 fi
19152 CATALOGS=
19153 if test -n "$INST_LINGUAS"; then
19154 for lang in $INST_LINGUAS; do
19155 CATALOGS="$CATALOGS $lang.gmo"
19156 done
19157 fi
19158 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19159 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"
19160 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19161 if test -f "$f"; then
19162 case "$f" in
19163 *.orig | *.bak | *~) ;;
19164 *) cat "$f" >> "$ac_dir/Makefile" ;;
19165 esac
19166 fi
19167 done
19168 fi
19169 ;;
19170 esac
19171 done ;;
19172
19173 esac
19174 done # for ac_tag
19175
19176
19177 as_fn_exit 0
19178 _ACEOF
19179 ac_clean_files=$ac_clean_files_save
19180
19181 test $ac_write_fail = 0 ||
19182 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19183
19184
19185 # configure is writing to config.log, and then calls config.status.
19186 # config.status does its own redirection, appending to config.log.
19187 # Unfortunately, on DOS this fails, as config.log is still kept open
19188 # by configure, so config.status won't be able to write to it; its
19189 # output is simply discarded. So we exec the FD to /dev/null,
19190 # effectively closing config.log, so it can be properly (re)opened and
19191 # appended to by config.status. When coming back to configure, we
19192 # need to make the FD available again.
19193 if test "$no_create" != yes; then
19194 ac_cs_success=:
19195 ac_config_status_args=
19196 test "$silent" = yes &&
19197 ac_config_status_args="$ac_config_status_args --quiet"
19198 exec 5>/dev/null
19199 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19200 exec 5>>config.log
19201 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19202 # would make configure fail if this is the last instruction.
19203 $ac_cs_success || as_fn_exit 1
19204 fi
19205 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19207 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19208 fi
19209
19210
19211
19212 touch config.status.tmp
19213 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
19214 sed '/as_fn_exit 0/i \
19215 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
19216 touch --reference=Makefile Makefile.tmp \
19217 mv Makefile.tmp Makefile \
19218 ' config.status > config.status.tmp
19219 touch --reference=config.status config.status.tmp
19220 mv config.status.tmp config.status
19221 chmod +x config.status
19222 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
19223 touch --reference=Makefile Makefile.tmp
19224 mv Makefile.tmp Makefile
19225 else
19226 rm -f config.status.tmp
19227 fi