* configure: Regenerate.
[deliverable/binutils-gdb.git] / binutils / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="ar.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 EMULATION_VECTOR
606 EMULATION
607 OBJDUMP_DEFS
608 BUILD_INSTALL_MISC
609 BUILD_MISC
610 BUILD_DLLWRAP
611 BUILD_WINDMC
612 BUILD_WINDRES
613 DLLTOOL_DEFS
614 BUILD_DLLTOOL
615 BUILD_SRCONV
616 BUILD_NLMCONV
617 NLMCONV_DEFS
618 LTLIBICONV
619 LIBICONV
620 ALLOCA
621 DEMANGLER_NAME
622 EXEEXT_FOR_BUILD
623 CC_FOR_BUILD
624 HDEFINES
625 GENINSRC_NEVER_FALSE
626 GENINSRC_NEVER_TRUE
627 MAINT
628 MAINTAINER_MODE_FALSE
629 MAINTAINER_MODE_TRUE
630 MSGMERGE
631 MSGFMT
632 MKINSTALLDIRS
633 CATOBJEXT
634 GENCAT
635 INSTOBJEXT
636 DATADIRNAME
637 CATALOGS
638 POSUB
639 GMSGFMT
640 XGETTEXT
641 INCINTL
642 LIBINTL_DEP
643 LIBINTL
644 USE_NLS
645 LEXLIB
646 LEX_OUTPUT_ROOT
647 LEX
648 YFLAGS
649 YACC
650 NO_WERROR
651 WARN_CFLAGS
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 RANLIB
658 AR
659 OBJDUMP
660 LN_S
661 NM
662 ac_ct_DUMPBIN
663 DUMPBIN
664 LD
665 FGREP
666 SED
667 LIBTOOL
668 EGREP
669 GREP
670 CPP
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 am__untar
681 am__tar
682 AMTAR
683 am__leading_dot
684 SET_MAKE
685 AWK
686 mkdir_p
687 MKDIR_P
688 INSTALL_STRIP_PROGRAM
689 STRIP
690 install_sh
691 MAKEINFO
692 AUTOHEADER
693 AUTOMAKE
694 AUTOCONF
695 ACLOCAL
696 VERSION
697 PACKAGE
698 CYGPATH_W
699 am__isrc
700 INSTALL_DATA
701 INSTALL_SCRIPT
702 INSTALL_PROGRAM
703 OBJEXT
704 EXEEXT
705 ac_ct_CC
706 CPPFLAGS
707 LDFLAGS
708 CFLAGS
709 CC
710 target_os
711 target_vendor
712 target_cpu
713 target
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_dependency_tracking
764 enable_plugins
765 enable_largefile
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_gnu_ld
771 enable_libtool_lock
772 enable_targets
773 enable_werror
774 enable_build_warnings
775 enable_nls
776 enable_maintainer_mode
777 enable_rpath
778 with_libiconv_prefix
779 '
780 ac_precious_vars='build_alias
781 host_alias
782 target_alias
783 CC
784 CFLAGS
785 LDFLAGS
786 LIBS
787 CPPFLAGS
788 CPP
789 YACC
790 YFLAGS'
791
792
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
1175 -*) as_fn_error "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information."
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 ;;
1196
1197 esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error "missing argument to $ac_option"
1203 fi
1204
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211 fi
1212
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218 do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1249 fi
1250 fi
1251
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255 test "$silent" = yes && exec 6>/dev/null
1256
1257
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error "pwd does not report name of working directory"
1264
1265
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\).*/{
1289 s//\1/
1290 q
1291 }
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1296 fi
1297 else
1298 ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1303 fi
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311 fi
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1324
1325 #
1326 # Report the --help message.
1327 #
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures this package to adapt to many kinds of systems.
1333
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339 Defaults for the options are specified in brackets.
1340
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1357
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1362
1363 For better control, use the options below.
1364
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1386
1387 cat <<\_ACEOF
1388
1389 Program names:
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393
1394 System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 --target=TARGET configure for building compilers for TARGET [HOST]
1398 _ACEOF
1399 fi
1400
1401 if test -n "$ac_init_help"; then
1402
1403 cat <<\_ACEOF
1404
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --disable-dependency-tracking speeds up one-time build
1410 --enable-dependency-tracking do not reject slow dependency extractors
1411 --enable-plugins Enable support for plugins (defaults no)
1412 --disable-largefile omit support for large files
1413 --enable-shared[=PKGS] build shared libraries [default=yes]
1414 --enable-static[=PKGS] build static libraries [default=yes]
1415 --enable-fast-install[=PKGS]
1416 optimize for fast installation [default=yes]
1417 --disable-libtool-lock avoid locking (might break parallel builds)
1418 --enable-targets alternative target configurations
1419 --enable-werror treat compile warnings as errors
1420 --enable-build-warnings enable build-time compiler warnings
1421 --disable-nls do not use Native Language Support
1422 --enable-maintainer-mode enable make rules and dependencies not useful
1423 (and sometimes confusing) to the casual installer
1424 --disable-rpath do not hardcode runtime library paths
1425
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-pic try to use only PIC/non-PIC objects [default=use
1430 both]
1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1432 --with-gnu-ld assume the C compiler uses GNU ld default=no
1433 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1434 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1435
1436 Some influential environment variables:
1437 CC C compiler command
1438 CFLAGS C compiler flags
1439 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1440 nonstandard directory <lib dir>
1441 LIBS libraries to pass to the linker, e.g. -l<library>
1442 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1443 you have headers in a nonstandard directory <include dir>
1444 CPP C preprocessor
1445 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1446 the first program found out of: `bison -y', `byacc', `yacc'.
1447 YFLAGS The list of arguments that will be passed by default to $YACC.
1448 This script will default YFLAGS to the empty string to avoid a
1449 default value of `-d' given by some make applications.
1450
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1453
1454 Report bugs to the package provider.
1455 _ACEOF
1456 ac_status=$?
1457 fi
1458
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 continue
1465 ac_builddir=.
1466
1467 case "$ac_dir" in
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *)
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 esac ;;
1477 esac
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1482
1483 case $srcdir in
1484 .) # We are building in place.
1485 ac_srcdir=.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1492 *) # Relative name.
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 esac
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1507 else
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1511 done
1512 fi
1513
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516 cat <<\_ACEOF
1517 configure
1518 generated by GNU Autoconf 2.64
1519
1520 Copyright (C) 2009 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524 exit
1525 fi
1526
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1530
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558 else
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563 fi
1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565 return $ac_retval
1566
1567 } # ac_fn_c_try_compile
1568
1569 # ac_fn_c_try_link LINENO
1570 # -----------------------
1571 # Try to link conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_link ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext conftest$ac_exeext
1576 if { { ac_try="$ac_link"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_link") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest$ac_exeext && {
1595 test "$cross_compiling" = yes ||
1596 $as_test_x conftest$ac_exeext
1597 }; then :
1598 ac_retval=0
1599 else
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=1
1604 fi
1605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1607 # interfere with the next link command; also delete a directory that is
1608 # left behind by Apple's compiler. We do this before executing the actions.
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611 return $ac_retval
1612
1613 } # ac_fn_c_try_link
1614
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_cpp ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_cpp conftest.$ac_ext"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1634 fi
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } >/dev/null && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 }; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646 fi
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648 return $ac_retval
1649
1650 } # ac_fn_c_try_cpp
1651
1652 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1655 # the include files in INCLUDES and setting the cache variable VAR
1656 # accordingly.
1657 ac_fn_c_check_header_mongrel ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1664 $as_echo_n "(cached) " >&6
1665 fi
1666 eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 else
1670 # Is the header compilable?
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1672 $as_echo_n "checking $2 usability... " >&6; }
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1675 $4
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679 ac_header_compiler=yes
1680 else
1681 ac_header_compiler=no
1682 fi
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1685 $as_echo "$ac_header_compiler" >&6; }
1686
1687 # Is the header present?
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1689 $as_echo_n "checking $2 presence... " >&6; }
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1692 #include <$2>
1693 _ACEOF
1694 if ac_fn_c_try_cpp "$LINENO"; then :
1695 ac_header_preproc=yes
1696 else
1697 ac_header_preproc=no
1698 fi
1699 rm -f conftest.err conftest.$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1701 $as_echo "$ac_header_preproc" >&6; }
1702
1703 # So? What about this header?
1704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1705 yes:no: )
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1707 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1709 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1710 ;;
1711 no:yes:* )
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1713 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1715 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1717 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1719 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722 ;;
1723 esac
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1727 $as_echo_n "(cached) " >&6
1728 else
1729 eval "$3=\$ac_header_compiler"
1730 fi
1731 eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 fi
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736
1737 } # ac_fn_c_check_header_mongrel
1738
1739 # ac_fn_c_try_run LINENO
1740 # ----------------------
1741 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1742 # that executables *can* be run.
1743 ac_fn_c_try_run ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_link"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1757 { { case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_try") 2>&5
1764 ac_status=$?
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; }; }; then :
1767 ac_retval=0
1768 else
1769 $as_echo "$as_me: program exited with status $ac_status" >&5
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=$ac_status
1774 fi
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 return $ac_retval
1778
1779 } # ac_fn_c_try_run
1780
1781 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1782 # -------------------------------------------------------
1783 # Tests whether HEADER exists and can be compiled using the include files in
1784 # INCLUDES, setting the cache variable VAR accordingly.
1785 ac_fn_c_check_header_compile ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791 $as_echo_n "(cached) " >&6
1792 else
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1795 $4
1796 #include <$2>
1797 _ACEOF
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799 eval "$3=yes"
1800 else
1801 eval "$3=no"
1802 fi
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 fi
1805 eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
1810 } # ac_fn_c_check_header_compile
1811
1812 # ac_fn_c_check_func LINENO FUNC VAR
1813 # ----------------------------------
1814 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1815 ac_fn_c_check_func ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1821 $as_echo_n "(cached) " >&6
1822 else
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827 #define $2 innocuous_$2
1828
1829 /* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
1833
1834 #ifdef __STDC__
1835 # include <limits.h>
1836 #else
1837 # include <assert.h>
1838 #endif
1839
1840 #undef $2
1841
1842 /* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1845 #ifdef __cplusplus
1846 extern "C"
1847 #endif
1848 char $2 ();
1849 /* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852 #if defined __stub_$2 || defined __stub___$2
1853 choke me
1854 #endif
1855
1856 int
1857 main ()
1858 {
1859 return $2 ();
1860 ;
1861 return 0;
1862 }
1863 _ACEOF
1864 if ac_fn_c_try_link "$LINENO"; then :
1865 eval "$3=yes"
1866 else
1867 eval "$3=no"
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1871 fi
1872 eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876
1877 } # ac_fn_c_check_func
1878
1879 # ac_fn_c_check_decl LINENO SYMBOL VAR
1880 # ------------------------------------
1881 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1882 ac_fn_c_check_decl ()
1883 {
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1886 $as_echo_n "checking whether $2 is declared... " >&6; }
1887 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888 $as_echo_n "(cached) " >&6
1889 else
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1892 $4
1893 int
1894 main ()
1895 {
1896 #ifndef $2
1897 (void) $2;
1898 #endif
1899
1900 ;
1901 return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"; then :
1905 eval "$3=yes"
1906 else
1907 eval "$3=no"
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 fi
1911 eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915
1916 } # ac_fn_c_check_decl
1917 cat >config.log <<_ACEOF
1918 This file contains any messages produced by compilers while
1919 running configure, to aid debugging if configure makes a mistake.
1920
1921 It was created by $as_me, which was
1922 generated by GNU Autoconf 2.64. Invocation command line was
1923
1924 $ $0 $@
1925
1926 _ACEOF
1927 exec 5>>config.log
1928 {
1929 cat <<_ASUNAME
1930 ## --------- ##
1931 ## Platform. ##
1932 ## --------- ##
1933
1934 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1935 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1936 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1937 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1938 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1939
1940 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1941 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1942
1943 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1944 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1945 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1946 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1947 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1948 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1949 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1950
1951 _ASUNAME
1952
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 $as_echo "PATH: $as_dir"
1959 done
1960 IFS=$as_save_IFS
1961
1962 } >&5
1963
1964 cat >&5 <<_ACEOF
1965
1966
1967 ## ----------- ##
1968 ## Core tests. ##
1969 ## ----------- ##
1970
1971 _ACEOF
1972
1973
1974 # Keep a trace of the command line.
1975 # Strip out --no-create and --no-recursion so they do not pile up.
1976 # Strip out --silent because we don't want to record it for future runs.
1977 # Also quote any args containing shell meta-characters.
1978 # Make two passes to allow for proper duplicate-argument suppression.
1979 ac_configure_args=
1980 ac_configure_args0=
1981 ac_configure_args1=
1982 ac_must_keep_next=false
1983 for ac_pass in 1 2
1984 do
1985 for ac_arg
1986 do
1987 case $ac_arg in
1988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1990 | -silent | --silent | --silen | --sile | --sil)
1991 continue ;;
1992 *\'*)
1993 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1994 esac
1995 case $ac_pass in
1996 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1997 2)
1998 as_fn_append ac_configure_args1 " '$ac_arg'"
1999 if test $ac_must_keep_next = true; then
2000 ac_must_keep_next=false # Got value, back to normal.
2001 else
2002 case $ac_arg in
2003 *=* | --config-cache | -C | -disable-* | --disable-* \
2004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2006 | -with-* | --with-* | -without-* | --without-* | --x)
2007 case "$ac_configure_args0 " in
2008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2009 esac
2010 ;;
2011 -* ) ac_must_keep_next=true ;;
2012 esac
2013 fi
2014 as_fn_append ac_configure_args " '$ac_arg'"
2015 ;;
2016 esac
2017 done
2018 done
2019 { ac_configure_args0=; unset ac_configure_args0;}
2020 { ac_configure_args1=; unset ac_configure_args1;}
2021
2022 # When interrupted or exit'd, cleanup temporary files, and complete
2023 # config.log. We remove comments because anyway the quotes in there
2024 # would cause problems or look ugly.
2025 # WARNING: Use '\'' to represent an apostrophe within the trap.
2026 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2027 trap 'exit_status=$?
2028 # Save into config.log some information that might help in debugging.
2029 {
2030 echo
2031
2032 cat <<\_ASBOX
2033 ## ---------------- ##
2034 ## Cache variables. ##
2035 ## ---------------- ##
2036 _ASBOX
2037 echo
2038 # The following way of writing the cache mishandles newlines in values,
2039 (
2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in #(
2043 *${as_nl}*)
2044 case $ac_var in #(
2045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2046 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2047 esac
2048 case $ac_var in #(
2049 _ | IFS | as_nl) ;; #(
2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2051 *) { eval $ac_var=; unset $ac_var;} ;;
2052 esac ;;
2053 esac
2054 done
2055 (set) 2>&1 |
2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2057 *${as_nl}ac_space=\ *)
2058 sed -n \
2059 "s/'\''/'\''\\\\'\'''\''/g;
2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2061 ;; #(
2062 *)
2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2064 ;;
2065 esac |
2066 sort
2067 )
2068 echo
2069
2070 cat <<\_ASBOX
2071 ## ----------------- ##
2072 ## Output variables. ##
2073 ## ----------------- ##
2074 _ASBOX
2075 echo
2076 for ac_var in $ac_subst_vars
2077 do
2078 eval ac_val=\$$ac_var
2079 case $ac_val in
2080 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 esac
2082 $as_echo "$ac_var='\''$ac_val'\''"
2083 done | sort
2084 echo
2085
2086 if test -n "$ac_subst_files"; then
2087 cat <<\_ASBOX
2088 ## ------------------- ##
2089 ## File substitutions. ##
2090 ## ------------------- ##
2091 _ASBOX
2092 echo
2093 for ac_var in $ac_subst_files
2094 do
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
2100 done | sort
2101 echo
2102 fi
2103
2104 if test -s confdefs.h; then
2105 cat <<\_ASBOX
2106 ## ----------- ##
2107 ## confdefs.h. ##
2108 ## ----------- ##
2109 _ASBOX
2110 echo
2111 cat confdefs.h
2112 echo
2113 fi
2114 test "$ac_signal" != 0 &&
2115 $as_echo "$as_me: caught signal $ac_signal"
2116 $as_echo "$as_me: exit $exit_status"
2117 } >&5
2118 rm -f core *.core core.conftest.* &&
2119 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2120 exit $exit_status
2121 ' 0
2122 for ac_signal in 1 2 13 15; do
2123 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2124 done
2125 ac_signal=0
2126
2127 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2128 rm -f -r conftest* confdefs.h
2129
2130 $as_echo "/* confdefs.h */" > confdefs.h
2131
2132 # Predefined preprocessor variables.
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_NAME "$PACKAGE_NAME"
2136 _ACEOF
2137
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2140 _ACEOF
2141
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2144 _ACEOF
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_STRING "$PACKAGE_STRING"
2148 _ACEOF
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_URL "$PACKAGE_URL"
2156 _ACEOF
2157
2158
2159 # Let the site file select an alternate cache file if it wants to.
2160 # Prefer an explicitly selected file to automatically selected ones.
2161 ac_site_file1=NONE
2162 ac_site_file2=NONE
2163 if test -n "$CONFIG_SITE"; then
2164 ac_site_file1=$CONFIG_SITE
2165 elif test "x$prefix" != xNONE; then
2166 ac_site_file1=$prefix/share/config.site
2167 ac_site_file2=$prefix/etc/config.site
2168 else
2169 ac_site_file1=$ac_default_prefix/share/config.site
2170 ac_site_file2=$ac_default_prefix/etc/config.site
2171 fi
2172 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2173 do
2174 test "x$ac_site_file" = xNONE && continue
2175 if test -r "$ac_site_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2178 sed 's/^/| /' "$ac_site_file" >&5
2179 . "$ac_site_file"
2180 fi
2181 done
2182
2183 if test -r "$cache_file"; then
2184 # Some versions of bash will fail to source /dev/null (special
2185 # files actually), so we avoid doing that.
2186 if test -f "$cache_file"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2188 $as_echo "$as_me: loading cache $cache_file" >&6;}
2189 case $cache_file in
2190 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2191 *) . "./$cache_file";;
2192 esac
2193 fi
2194 else
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2196 $as_echo "$as_me: creating cache $cache_file" >&6;}
2197 >$cache_file
2198 fi
2199
2200 # Check that the precious variables saved in the cache have kept the same
2201 # value.
2202 ac_cache_corrupted=false
2203 for ac_var in $ac_precious_vars; do
2204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2205 eval ac_new_set=\$ac_env_${ac_var}_set
2206 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2207 eval ac_new_val=\$ac_env_${ac_var}_value
2208 case $ac_old_set,$ac_new_set in
2209 set,)
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2211 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2212 ac_cache_corrupted=: ;;
2213 ,set)
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2215 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2216 ac_cache_corrupted=: ;;
2217 ,);;
2218 *)
2219 if test "x$ac_old_val" != "x$ac_new_val"; then
2220 # differences in whitespace do not lead to failure.
2221 ac_old_val_w=`echo x $ac_old_val`
2222 ac_new_val_w=`echo x $ac_new_val`
2223 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2225 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2226 ac_cache_corrupted=:
2227 else
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2229 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2230 eval $ac_var=\$ac_old_val
2231 fi
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2233 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2235 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2236 fi;;
2237 esac
2238 # Pass precious variables to config.status.
2239 if test "$ac_new_set" = set; then
2240 case $ac_new_val in
2241 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2242 *) ac_arg=$ac_var=$ac_new_val ;;
2243 esac
2244 case " $ac_configure_args " in
2245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2246 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2247 esac
2248 fi
2249 done
2250 if $ac_cache_corrupted; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2254 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2255 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2256 fi
2257 ## -------------------- ##
2258 ## Main body of script. ##
2259 ## -------------------- ##
2260
2261 ac_ext=c
2262 ac_cpp='$CPP $CPPFLAGS'
2263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2266
2267
2268
2269
2270
2271
2272
2273 ac_aux_dir=
2274 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2275 for ac_t in install-sh install.sh shtool; do
2276 if test -f "$ac_dir/$ac_t"; then
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/$ac_t -c"
2279 break 2
2280 fi
2281 done
2282 done
2283 if test -z "$ac_aux_dir"; then
2284 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2285 fi
2286
2287 # These three variables are undocumented and unsupported,
2288 # and are intended to be withdrawn in a future Autoconf release.
2289 # They can cause serious problems if a builder's source tree is in a directory
2290 # whose full name contains unusual characters.
2291 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2292 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2293 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2294
2295
2296 # Make sure we can run config.sub.
2297 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2298 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2299
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2301 $as_echo_n "checking build system type... " >&6; }
2302 if test "${ac_cv_build+set}" = set; then :
2303 $as_echo_n "(cached) " >&6
2304 else
2305 ac_build_alias=$build_alias
2306 test "x$ac_build_alias" = x &&
2307 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2308 test "x$ac_build_alias" = x &&
2309 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2310 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2311 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2312
2313 fi
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2315 $as_echo "$ac_cv_build" >&6; }
2316 case $ac_cv_build in
2317 *-*-*) ;;
2318 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2319 esac
2320 build=$ac_cv_build
2321 ac_save_IFS=$IFS; IFS='-'
2322 set x $ac_cv_build
2323 shift
2324 build_cpu=$1
2325 build_vendor=$2
2326 shift; shift
2327 # Remember, the first character of IFS is used to create $*,
2328 # except with old shells:
2329 build_os=$*
2330 IFS=$ac_save_IFS
2331 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2332
2333
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2335 $as_echo_n "checking host system type... " >&6; }
2336 if test "${ac_cv_host+set}" = set; then :
2337 $as_echo_n "(cached) " >&6
2338 else
2339 if test "x$host_alias" = x; then
2340 ac_cv_host=$ac_cv_build
2341 else
2342 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2343 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2344 fi
2345
2346 fi
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2348 $as_echo "$ac_cv_host" >&6; }
2349 case $ac_cv_host in
2350 *-*-*) ;;
2351 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2352 esac
2353 host=$ac_cv_host
2354 ac_save_IFS=$IFS; IFS='-'
2355 set x $ac_cv_host
2356 shift
2357 host_cpu=$1
2358 host_vendor=$2
2359 shift; shift
2360 # Remember, the first character of IFS is used to create $*,
2361 # except with old shells:
2362 host_os=$*
2363 IFS=$ac_save_IFS
2364 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2365
2366
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2368 $as_echo_n "checking target system type... " >&6; }
2369 if test "${ac_cv_target+set}" = set; then :
2370 $as_echo_n "(cached) " >&6
2371 else
2372 if test "x$target_alias" = x; then
2373 ac_cv_target=$ac_cv_host
2374 else
2375 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2376 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2377 fi
2378
2379 fi
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2381 $as_echo "$ac_cv_target" >&6; }
2382 case $ac_cv_target in
2383 *-*-*) ;;
2384 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2385 esac
2386 target=$ac_cv_target
2387 ac_save_IFS=$IFS; IFS='-'
2388 set x $ac_cv_target
2389 shift
2390 target_cpu=$1
2391 target_vendor=$2
2392 shift; shift
2393 # Remember, the first character of IFS is used to create $*,
2394 # except with old shells:
2395 target_os=$*
2396 IFS=$ac_save_IFS
2397 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2398
2399
2400 # The aliases save the names the user supplied, while $host etc.
2401 # will get canonicalized.
2402 test -n "$target_alias" &&
2403 test "$program_prefix$program_suffix$program_transform_name" = \
2404 NONENONEs,x,x, &&
2405 program_prefix=${target_alias}-
2406 ac_ext=c
2407 ac_cpp='$CPP $CPPFLAGS'
2408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411 if test -n "$ac_tool_prefix"; then
2412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2413 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if test "${ac_cv_prog_CC+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2424 do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 break 2
2432 fi
2433 done
2434 done
2435 IFS=$as_save_IFS
2436
2437 fi
2438 fi
2439 CC=$ac_cv_prog_CC
2440 if test -n "$CC"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2442 $as_echo "$CC" >&6; }
2443 else
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445 $as_echo "no" >&6; }
2446 fi
2447
2448
2449 fi
2450 if test -z "$ac_cv_prog_CC"; then
2451 ac_ct_CC=$CC
2452 # Extract the first word of "gcc", so it can be a program name with args.
2453 set dummy gcc; ac_word=$2
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 if test -n "$ac_ct_CC"; then
2460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_ac_ct_CC="gcc"
2470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 break 2
2472 fi
2473 done
2474 done
2475 IFS=$as_save_IFS
2476
2477 fi
2478 fi
2479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480 if test -n "$ac_ct_CC"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2482 $as_echo "$ac_ct_CC" >&6; }
2483 else
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2486 fi
2487
2488 if test "x$ac_ct_CC" = x; then
2489 CC=""
2490 else
2491 case $cross_compiling:$ac_tool_warned in
2492 yes:)
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2495 ac_tool_warned=yes ;;
2496 esac
2497 CC=$ac_ct_CC
2498 fi
2499 else
2500 CC="$ac_cv_prog_CC"
2501 fi
2502
2503 if test -z "$CC"; then
2504 if test -n "$ac_tool_prefix"; then
2505 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2506 set dummy ${ac_tool_prefix}cc; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if test "${ac_cv_prog_CC+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC="$CC" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_CC="${ac_tool_prefix}cc"
2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2525 fi
2526 done
2527 done
2528 IFS=$as_save_IFS
2529
2530 fi
2531 fi
2532 CC=$ac_cv_prog_CC
2533 if test -n "$CC"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2535 $as_echo "$CC" >&6; }
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2539 fi
2540
2541
2542 fi
2543 fi
2544 if test -z "$CC"; then
2545 # Extract the first word of "cc", so it can be a program name with args.
2546 set dummy cc; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if test "${ac_cv_prog_CC+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2554 else
2555 ac_prog_rejected=no
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2564 ac_prog_rejected=yes
2565 continue
2566 fi
2567 ac_cv_prog_CC="cc"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2570 fi
2571 done
2572 done
2573 IFS=$as_save_IFS
2574
2575 if test $ac_prog_rejected = yes; then
2576 # We found a bogon in the path, so make sure we never use it.
2577 set dummy $ac_cv_prog_CC
2578 shift
2579 if test $# != 0; then
2580 # We chose a different compiler from the bogus one.
2581 # However, it has the same basename, so the bogon will be chosen
2582 # first if we set CC to just the basename; use the full file name.
2583 shift
2584 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2585 fi
2586 fi
2587 fi
2588 fi
2589 CC=$ac_cv_prog_CC
2590 if test -n "$CC"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2592 $as_echo "$CC" >&6; }
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595 $as_echo "no" >&6; }
2596 fi
2597
2598
2599 fi
2600 if test -z "$CC"; then
2601 if test -n "$ac_tool_prefix"; then
2602 for ac_prog in cl.exe
2603 do
2604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if test "${ac_cv_prog_CC+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2624 fi
2625 done
2626 done
2627 IFS=$as_save_IFS
2628
2629 fi
2630 fi
2631 CC=$ac_cv_prog_CC
2632 if test -n "$CC"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2634 $as_echo "$CC" >&6; }
2635 else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2638 fi
2639
2640
2641 test -n "$CC" && break
2642 done
2643 fi
2644 if test -z "$CC"; then
2645 ac_ct_CC=$CC
2646 for ac_prog in cl.exe
2647 do
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test -n "$ac_ct_CC"; then
2656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_ac_ct_CC="$ac_prog"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2668 fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2676 if test -n "$ac_ct_CC"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2678 $as_echo "$ac_ct_CC" >&6; }
2679 else
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684
2685 test -n "$ac_ct_CC" && break
2686 done
2687
2688 if test "x$ac_ct_CC" = x; then
2689 CC=""
2690 else
2691 case $cross_compiling:$ac_tool_warned in
2692 yes:)
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2695 ac_tool_warned=yes ;;
2696 esac
2697 CC=$ac_ct_CC
2698 fi
2699 fi
2700
2701 fi
2702
2703
2704 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706 as_fn_error "no acceptable C compiler found in \$PATH
2707 See \`config.log' for more details." "$LINENO" 5; }
2708
2709 # Provide some information about the compiler.
2710 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2711 set X $ac_compile
2712 ac_compiler=$2
2713 for ac_option in --version -v -V -qversion; do
2714 { { ac_try="$ac_compiler $ac_option >&5"
2715 case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718 esac
2719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2720 $as_echo "$ac_try_echo"; } >&5
2721 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2722 ac_status=$?
2723 if test -s conftest.err; then
2724 sed '10a\
2725 ... rest of stderr output deleted ...
2726 10q' conftest.err >conftest.er1
2727 cat conftest.er1 >&5
2728 rm -f conftest.er1 conftest.err
2729 fi
2730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2731 test $ac_status = 0; }
2732 done
2733
2734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h. */
2736
2737 int
2738 main ()
2739 {
2740
2741 ;
2742 return 0;
2743 }
2744 _ACEOF
2745 ac_clean_files_save=$ac_clean_files
2746 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2747 # Try to create an executable without -o first, disregard a.out.
2748 # It will help us diagnose broken compilers, and finding out an intuition
2749 # of exeext.
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2751 $as_echo_n "checking for C compiler default output file name... " >&6; }
2752 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2753
2754 # The possible output files:
2755 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2756
2757 ac_rmfiles=
2758 for ac_file in $ac_files
2759 do
2760 case $ac_file in
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2762 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2763 esac
2764 done
2765 rm -f $ac_rmfiles
2766
2767 if { { ac_try="$ac_link_default"
2768 case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771 esac
2772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2773 $as_echo "$ac_try_echo"; } >&5
2774 (eval "$ac_link_default") 2>&5
2775 ac_status=$?
2776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2777 test $ac_status = 0; }; then :
2778 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2779 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2780 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2781 # so that the user can short-circuit this test for compilers unknown to
2782 # Autoconf.
2783 for ac_file in $ac_files ''
2784 do
2785 test -f "$ac_file" || continue
2786 case $ac_file in
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2788 ;;
2789 [ab].out )
2790 # We found the default executable, but exeext='' is most
2791 # certainly right.
2792 break;;
2793 *.* )
2794 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2795 then :; else
2796 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2797 fi
2798 # We set ac_cv_exeext here because the later test for it is not
2799 # safe: cross compilers may not add the suffix if given an `-o'
2800 # argument, so we may need to know it at that point already.
2801 # Even if this section looks crufty: it has the advantage of
2802 # actually working.
2803 break;;
2804 * )
2805 break;;
2806 esac
2807 done
2808 test "$ac_cv_exeext" = no && ac_cv_exeext=
2809
2810 else
2811 ac_file=''
2812 fi
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2814 $as_echo "$ac_file" >&6; }
2815 if test -z "$ac_file"; then :
2816 $as_echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2818
2819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821 { as_fn_set_status 77
2822 as_fn_error "C compiler cannot create executables
2823 See \`config.log' for more details." "$LINENO" 5; }; }
2824 fi
2825 ac_exeext=$ac_cv_exeext
2826
2827 # Check that the compiler produces executables we can run. If not, either
2828 # the compiler is broken, or we cross compile.
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2830 $as_echo_n "checking whether the C compiler works... " >&6; }
2831 # If not cross compiling, check that we can run a simple program.
2832 if test "$cross_compiling" != yes; then
2833 if { ac_try='./$ac_file'
2834 { { case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837 esac
2838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2839 $as_echo "$ac_try_echo"; } >&5
2840 (eval "$ac_try") 2>&5
2841 ac_status=$?
2842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2843 test $ac_status = 0; }; }; then
2844 cross_compiling=no
2845 else
2846 if test "$cross_compiling" = maybe; then
2847 cross_compiling=yes
2848 else
2849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851 as_fn_error "cannot run C compiled programs.
2852 If you meant to cross compile, use \`--host'.
2853 See \`config.log' for more details." "$LINENO" 5; }
2854 fi
2855 fi
2856 fi
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2858 $as_echo "yes" >&6; }
2859
2860 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2861 ac_clean_files=$ac_clean_files_save
2862 # Check that the compiler produces executables we can run. If not, either
2863 # the compiler is broken, or we cross compile.
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2865 $as_echo_n "checking whether we are cross compiling... " >&6; }
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2867 $as_echo "$cross_compiling" >&6; }
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2870 $as_echo_n "checking for suffix of executables... " >&6; }
2871 if { { ac_try="$ac_link"
2872 case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875 esac
2876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2877 $as_echo "$ac_try_echo"; } >&5
2878 (eval "$ac_link") 2>&5
2879 ac_status=$?
2880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2881 test $ac_status = 0; }; then :
2882 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2883 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2884 # work properly (i.e., refer to `conftest.exe'), while it won't with
2885 # `rm'.
2886 for ac_file in conftest.exe conftest conftest.*; do
2887 test -f "$ac_file" || continue
2888 case $ac_file in
2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2891 break;;
2892 * ) break;;
2893 esac
2894 done
2895 else
2896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898 as_fn_error "cannot compute suffix of executables: cannot compile and link
2899 See \`config.log' for more details." "$LINENO" 5; }
2900 fi
2901 rm -f conftest$ac_cv_exeext
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2903 $as_echo "$ac_cv_exeext" >&6; }
2904
2905 rm -f conftest.$ac_ext
2906 EXEEXT=$ac_cv_exeext
2907 ac_exeext=$EXEEXT
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2909 $as_echo_n "checking for suffix of object files... " >&6; }
2910 if test "${ac_cv_objext+set}" = set; then :
2911 $as_echo_n "(cached) " >&6
2912 else
2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914 /* end confdefs.h. */
2915
2916 int
2917 main ()
2918 {
2919
2920 ;
2921 return 0;
2922 }
2923 _ACEOF
2924 rm -f conftest.o conftest.obj
2925 if { { ac_try="$ac_compile"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_compile") 2>&5
2933 ac_status=$?
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }; then :
2936 for ac_file in conftest.o conftest.obj conftest.*; do
2937 test -f "$ac_file" || continue;
2938 case $ac_file in
2939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2940 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2941 break;;
2942 esac
2943 done
2944 else
2945 $as_echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 as_fn_error "cannot compute suffix of object files: cannot compile
2951 See \`config.log' for more details." "$LINENO" 5; }
2952 fi
2953 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2954 fi
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2956 $as_echo "$ac_cv_objext" >&6; }
2957 OBJEXT=$ac_cv_objext
2958 ac_objext=$OBJEXT
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2960 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2961 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965 /* end confdefs.h. */
2966
2967 int
2968 main ()
2969 {
2970 #ifndef __GNUC__
2971 choke me
2972 #endif
2973
2974 ;
2975 return 0;
2976 }
2977 _ACEOF
2978 if ac_fn_c_try_compile "$LINENO"; then :
2979 ac_compiler_gnu=yes
2980 else
2981 ac_compiler_gnu=no
2982 fi
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2985
2986 fi
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2988 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2989 if test $ac_compiler_gnu = yes; then
2990 GCC=yes
2991 else
2992 GCC=
2993 fi
2994 ac_test_CFLAGS=${CFLAGS+set}
2995 ac_save_CFLAGS=$CFLAGS
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2997 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2998 if test "${ac_cv_prog_cc_g+set}" = set; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 ac_save_c_werror_flag=$ac_c_werror_flag
3002 ac_c_werror_flag=yes
3003 ac_cv_prog_cc_g=no
3004 CFLAGS="-g"
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3007
3008 int
3009 main ()
3010 {
3011
3012 ;
3013 return 0;
3014 }
3015 _ACEOF
3016 if ac_fn_c_try_compile "$LINENO"; then :
3017 ac_cv_prog_cc_g=yes
3018 else
3019 CFLAGS=""
3020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3021 /* end confdefs.h. */
3022
3023 int
3024 main ()
3025 {
3026
3027 ;
3028 return 0;
3029 }
3030 _ACEOF
3031 if ac_fn_c_try_compile "$LINENO"; then :
3032
3033 else
3034 ac_c_werror_flag=$ac_save_c_werror_flag
3035 CFLAGS="-g"
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3038
3039 int
3040 main ()
3041 {
3042
3043 ;
3044 return 0;
3045 }
3046 _ACEOF
3047 if ac_fn_c_try_compile "$LINENO"; then :
3048 ac_cv_prog_cc_g=yes
3049 fi
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 fi
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 fi
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_c_werror_flag=$ac_save_c_werror_flag
3056 fi
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3058 $as_echo "$ac_cv_prog_cc_g" >&6; }
3059 if test "$ac_test_CFLAGS" = set; then
3060 CFLAGS=$ac_save_CFLAGS
3061 elif test $ac_cv_prog_cc_g = yes; then
3062 if test "$GCC" = yes; then
3063 CFLAGS="-g -O2"
3064 else
3065 CFLAGS="-g"
3066 fi
3067 else
3068 if test "$GCC" = yes; then
3069 CFLAGS="-O2"
3070 else
3071 CFLAGS=
3072 fi
3073 fi
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3075 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3076 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 ac_cv_prog_cc_c89=no
3080 ac_save_CC=$CC
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3083 #include <stdarg.h>
3084 #include <stdio.h>
3085 #include <sys/types.h>
3086 #include <sys/stat.h>
3087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3088 struct buf { int x; };
3089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3090 static char *e (p, i)
3091 char **p;
3092 int i;
3093 {
3094 return p[i];
3095 }
3096 static char *f (char * (*g) (char **, int), char **p, ...)
3097 {
3098 char *s;
3099 va_list v;
3100 va_start (v,p);
3101 s = g (p, va_arg (v,int));
3102 va_end (v);
3103 return s;
3104 }
3105
3106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3107 function prototypes and stuff, but not '\xHH' hex character constants.
3108 These don't provoke an error unfortunately, instead are silently treated
3109 as 'x'. The following induces an error, until -std is added to get
3110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3111 array size at least. It's necessary to write '\x00'==0 to get something
3112 that's true only with -std. */
3113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3114
3115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3116 inside strings and character constants. */
3117 #define FOO(x) 'x'
3118 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3119
3120 int test (int i, double x);
3121 struct s1 {int (*f) (int a);};
3122 struct s2 {int (*f) (double a);};
3123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3124 int argc;
3125 char **argv;
3126 int
3127 main ()
3128 {
3129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3130 ;
3131 return 0;
3132 }
3133 _ACEOF
3134 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3136 do
3137 CC="$ac_save_CC $ac_arg"
3138 if ac_fn_c_try_compile "$LINENO"; then :
3139 ac_cv_prog_cc_c89=$ac_arg
3140 fi
3141 rm -f core conftest.err conftest.$ac_objext
3142 test "x$ac_cv_prog_cc_c89" != "xno" && break
3143 done
3144 rm -f conftest.$ac_ext
3145 CC=$ac_save_CC
3146
3147 fi
3148 # AC_CACHE_VAL
3149 case "x$ac_cv_prog_cc_c89" in
3150 x)
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3152 $as_echo "none needed" >&6; } ;;
3153 xno)
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3155 $as_echo "unsupported" >&6; } ;;
3156 *)
3157 CC="$CC $ac_cv_prog_cc_c89"
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3159 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3160 esac
3161 if test "x$ac_cv_prog_cc_c89" != xno; then :
3162
3163 fi
3164
3165 ac_ext=c
3166 ac_cpp='$CPP $CPPFLAGS'
3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170
3171
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3173 $as_echo_n "checking for library containing strerror... " >&6; }
3174 if test "${ac_cv_search_strerror+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 ac_func_search_save_LIBS=$LIBS
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3180
3181 /* Override any GCC internal prototype to avoid an error.
3182 Use char because int might match the return type of a GCC
3183 builtin and then its argument prototype would still apply. */
3184 #ifdef __cplusplus
3185 extern "C"
3186 #endif
3187 char strerror ();
3188 int
3189 main ()
3190 {
3191 return strerror ();
3192 ;
3193 return 0;
3194 }
3195 _ACEOF
3196 for ac_lib in '' cposix; do
3197 if test -z "$ac_lib"; then
3198 ac_res="none required"
3199 else
3200 ac_res=-l$ac_lib
3201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3202 fi
3203 if ac_fn_c_try_link "$LINENO"; then :
3204 ac_cv_search_strerror=$ac_res
3205 fi
3206 rm -f core conftest.err conftest.$ac_objext \
3207 conftest$ac_exeext
3208 if test "${ac_cv_search_strerror+set}" = set; then :
3209 break
3210 fi
3211 done
3212 if test "${ac_cv_search_strerror+set}" = set; then :
3213
3214 else
3215 ac_cv_search_strerror=no
3216 fi
3217 rm conftest.$ac_ext
3218 LIBS=$ac_func_search_save_LIBS
3219 fi
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3221 $as_echo "$ac_cv_search_strerror" >&6; }
3222 ac_res=$ac_cv_search_strerror
3223 if test "$ac_res" != no; then :
3224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3225
3226 fi
3227
3228
3229 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3230 am__api_version='1.11'
3231
3232 # Find a good install program. We prefer a C program (faster),
3233 # so one script is as good as another. But avoid the broken or
3234 # incompatible versions:
3235 # SysV /etc/install, /usr/sbin/install
3236 # SunOS /usr/etc/install
3237 # IRIX /sbin/install
3238 # AIX /bin/install
3239 # AmigaOS /C/install, which installs bootblocks on floppy discs
3240 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3241 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3242 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3243 # OS/2's system install, which has a completely different semantic
3244 # ./install, which can be erroneously created by make from ./install.sh.
3245 # Reject install programs that cannot install multiple files.
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3247 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3248 if test -z "$INSTALL"; then
3249 if test "${ac_cv_path_install+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 # Account for people who put trailing slashes in PATH elements.
3258 case $as_dir/ in #((
3259 ./ | .// | /[cC]/* | \
3260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3261 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3262 /usr/ucb/* ) ;;
3263 *)
3264 # OSF1 and SCO ODT 3.0 have their own names for install.
3265 # Don't use installbsd from OSF since it installs stuff as root
3266 # by default.
3267 for ac_prog in ginstall scoinst install; do
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3270 if test $ac_prog = install &&
3271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3272 # AIX install. It has an incompatible calling convention.
3273 :
3274 elif test $ac_prog = install &&
3275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3276 # program-specific install script used by HP pwplus--don't use.
3277 :
3278 else
3279 rm -rf conftest.one conftest.two conftest.dir
3280 echo one > conftest.one
3281 echo two > conftest.two
3282 mkdir conftest.dir
3283 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3284 test -s conftest.one && test -s conftest.two &&
3285 test -s conftest.dir/conftest.one &&
3286 test -s conftest.dir/conftest.two
3287 then
3288 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3289 break 3
3290 fi
3291 fi
3292 fi
3293 done
3294 done
3295 ;;
3296 esac
3297
3298 done
3299 IFS=$as_save_IFS
3300
3301 rm -rf conftest.one conftest.two conftest.dir
3302
3303 fi
3304 if test "${ac_cv_path_install+set}" = set; then
3305 INSTALL=$ac_cv_path_install
3306 else
3307 # As a last resort, use the slow shell script. Don't cache a
3308 # value for INSTALL within a source directory, because that will
3309 # break other packages using the cache if that directory is
3310 # removed, or if the value is a relative name.
3311 INSTALL=$ac_install_sh
3312 fi
3313 fi
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3315 $as_echo "$INSTALL" >&6; }
3316
3317 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3318 # It thinks the first close brace ends the variable substitution.
3319 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3320
3321 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3322
3323 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3324
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3326 $as_echo_n "checking whether build environment is sane... " >&6; }
3327 # Just in case
3328 sleep 1
3329 echo timestamp > conftest.file
3330 # Reject unsafe characters in $srcdir or the absolute working directory
3331 # name. Accept space and tab only in the latter.
3332 am_lf='
3333 '
3334 case `pwd` in
3335 *[\\\"\#\$\&\'\`$am_lf]*)
3336 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3337 esac
3338 case $srcdir in
3339 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3340 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3341 esac
3342
3343 # Do `set' in a subshell so we don't clobber the current shell's
3344 # arguments. Must try -L first in case configure is actually a
3345 # symlink; some systems play weird games with the mod time of symlinks
3346 # (eg FreeBSD returns the mod time of the symlink's containing
3347 # directory).
3348 if (
3349 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3350 if test "$*" = "X"; then
3351 # -L didn't work.
3352 set X `ls -t "$srcdir/configure" conftest.file`
3353 fi
3354 rm -f conftest.file
3355 if test "$*" != "X $srcdir/configure conftest.file" \
3356 && test "$*" != "X conftest.file $srcdir/configure"; then
3357
3358 # If neither matched, then we have a broken ls. This can happen
3359 # if, for instance, CONFIG_SHELL is bash and it inherits a
3360 # broken ls alias from the environment. This has actually
3361 # happened. Such a system could not be considered "sane".
3362 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3363 alias in your environment" "$LINENO" 5
3364 fi
3365
3366 test "$2" = conftest.file
3367 )
3368 then
3369 # Ok.
3370 :
3371 else
3372 as_fn_error "newly created file is older than distributed files!
3373 Check your system clock" "$LINENO" 5
3374 fi
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376 $as_echo "yes" >&6; }
3377 test "$program_prefix" != NONE &&
3378 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3379 # Use a double $ so make ignores it.
3380 test "$program_suffix" != NONE &&
3381 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3382 # Double any \ or $.
3383 # By default was `s,x,x', remove it if useless.
3384 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3385 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3386
3387 # expand $ac_aux_dir to an absolute path
3388 am_aux_dir=`cd $ac_aux_dir && pwd`
3389
3390 if test x"${MISSING+set}" != xset; then
3391 case $am_aux_dir in
3392 *\ * | *\ *)
3393 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3394 *)
3395 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3396 esac
3397 fi
3398 # Use eval to expand $SHELL
3399 if eval "$MISSING --run true"; then
3400 am_missing_run="$MISSING --run "
3401 else
3402 am_missing_run=
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3404 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3405 fi
3406
3407 if test x"${install_sh}" != xset; then
3408 case $am_aux_dir in
3409 *\ * | *\ *)
3410 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3411 *)
3412 install_sh="\${SHELL} $am_aux_dir/install-sh"
3413 esac
3414 fi
3415
3416 # Installed binaries are usually stripped using `strip' when the user
3417 # run `make install-strip'. However `strip' might not be the right
3418 # tool to use in cross-compilation environments, therefore Automake
3419 # will honor the `STRIP' environment variable to overrule this program.
3420 if test "$cross_compiling" != no; then
3421 if test -n "$ac_tool_prefix"; then
3422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3423 set dummy ${ac_tool_prefix}strip; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if test "${ac_cv_prog_STRIP+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 if test -n "$STRIP"; then
3430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3442 fi
3443 done
3444 done
3445 IFS=$as_save_IFS
3446
3447 fi
3448 fi
3449 STRIP=$ac_cv_prog_STRIP
3450 if test -n "$STRIP"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3452 $as_echo "$STRIP" >&6; }
3453 else
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3456 fi
3457
3458
3459 fi
3460 if test -z "$ac_cv_prog_STRIP"; then
3461 ac_ct_STRIP=$STRIP
3462 # Extract the first word of "strip", so it can be a program name with args.
3463 set dummy strip; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 if test -n "$ac_ct_STRIP"; then
3470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_ac_ct_STRIP="strip"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3482 fi
3483 done
3484 done
3485 IFS=$as_save_IFS
3486
3487 fi
3488 fi
3489 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3490 if test -n "$ac_ct_STRIP"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3492 $as_echo "$ac_ct_STRIP" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3496 fi
3497
3498 if test "x$ac_ct_STRIP" = x; then
3499 STRIP=":"
3500 else
3501 case $cross_compiling:$ac_tool_warned in
3502 yes:)
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3505 ac_tool_warned=yes ;;
3506 esac
3507 STRIP=$ac_ct_STRIP
3508 fi
3509 else
3510 STRIP="$ac_cv_prog_STRIP"
3511 fi
3512
3513 fi
3514 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3515
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3517 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3518 if test -z "$MKDIR_P"; then
3519 if test "${ac_cv_path_mkdir+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3524 do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_prog in mkdir gmkdir; do
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3530 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3531 'mkdir (GNU coreutils) '* | \
3532 'mkdir (coreutils) '* | \
3533 'mkdir (fileutils) '4.1*)
3534 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3535 break 3;;
3536 esac
3537 done
3538 done
3539 done
3540 IFS=$as_save_IFS
3541
3542 fi
3543
3544 if test "${ac_cv_path_mkdir+set}" = set; then
3545 MKDIR_P="$ac_cv_path_mkdir -p"
3546 else
3547 # As a last resort, use the slow shell script. Don't cache a
3548 # value for MKDIR_P within a source directory, because that will
3549 # break other packages using the cache if that directory is
3550 # removed, or if the value is a relative name.
3551 test -d ./--version && rmdir ./--version
3552 MKDIR_P="$ac_install_sh -d"
3553 fi
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3556 $as_echo "$MKDIR_P" >&6; }
3557
3558 mkdir_p="$MKDIR_P"
3559 case $mkdir_p in
3560 [\\/$]* | ?:[\\/]*) ;;
3561 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3562 esac
3563
3564 for ac_prog in gawk mawk nawk awk
3565 do
3566 # Extract the first word of "$ac_prog", so it can be a program name with args.
3567 set dummy $ac_prog; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_AWK+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 if test -n "$AWK"; then
3574 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 ac_cv_prog_AWK="$ac_prog"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587 done
3588 done
3589 IFS=$as_save_IFS
3590
3591 fi
3592 fi
3593 AWK=$ac_cv_prog_AWK
3594 if test -n "$AWK"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3596 $as_echo "$AWK" >&6; }
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3600 fi
3601
3602
3603 test -n "$AWK" && break
3604 done
3605
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3607 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3608 set x ${MAKE-make}
3609 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3610 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 cat >conftest.make <<\_ACEOF
3614 SHELL = /bin/sh
3615 all:
3616 @echo '@@@%%%=$(MAKE)=@@@%%%'
3617 _ACEOF
3618 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3619 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3620 *@@@%%%=?*=@@@%%%*)
3621 eval ac_cv_prog_make_${ac_make}_set=yes;;
3622 *)
3623 eval ac_cv_prog_make_${ac_make}_set=no;;
3624 esac
3625 rm -f conftest.make
3626 fi
3627 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 $as_echo "yes" >&6; }
3630 SET_MAKE=
3631 else
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 SET_MAKE="MAKE=${MAKE-make}"
3635 fi
3636
3637 rm -rf .tst 2>/dev/null
3638 mkdir .tst 2>/dev/null
3639 if test -d .tst; then
3640 am__leading_dot=.
3641 else
3642 am__leading_dot=_
3643 fi
3644 rmdir .tst 2>/dev/null
3645
3646 DEPDIR="${am__leading_dot}deps"
3647
3648 ac_config_commands="$ac_config_commands depfiles"
3649
3650
3651 am_make=${MAKE-make}
3652 cat > confinc << 'END'
3653 am__doit:
3654 @echo this is the am__doit target
3655 .PHONY: am__doit
3656 END
3657 # If we don't find an include directive, just comment out the code.
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3659 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3660 am__include="#"
3661 am__quote=
3662 _am_result=none
3663 # First try GNU make style include.
3664 echo "include confinc" > confmf
3665 # Ignore all kinds of additional output from `make'.
3666 case `$am_make -s -f confmf 2> /dev/null` in #(
3667 *the\ am__doit\ target*)
3668 am__include=include
3669 am__quote=
3670 _am_result=GNU
3671 ;;
3672 esac
3673 # Now try BSD make style include.
3674 if test "$am__include" = "#"; then
3675 echo '.include "confinc"' > confmf
3676 case `$am_make -s -f confmf 2> /dev/null` in #(
3677 *the\ am__doit\ target*)
3678 am__include=.include
3679 am__quote="\""
3680 _am_result=BSD
3681 ;;
3682 esac
3683 fi
3684
3685
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3687 $as_echo "$_am_result" >&6; }
3688 rm -f confinc confmf
3689
3690 # Check whether --enable-dependency-tracking was given.
3691 if test "${enable_dependency_tracking+set}" = set; then :
3692 enableval=$enable_dependency_tracking;
3693 fi
3694
3695 if test "x$enable_dependency_tracking" != xno; then
3696 am_depcomp="$ac_aux_dir/depcomp"
3697 AMDEPBACKSLASH='\'
3698 fi
3699 if test "x$enable_dependency_tracking" != xno; then
3700 AMDEP_TRUE=
3701 AMDEP_FALSE='#'
3702 else
3703 AMDEP_TRUE='#'
3704 AMDEP_FALSE=
3705 fi
3706
3707
3708 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3709 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3710 # is not polluted with repeated "-I."
3711 am__isrc=' -I$(srcdir)'
3712 # test to see if srcdir already configured
3713 if test -f $srcdir/config.status; then
3714 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3715 fi
3716 fi
3717
3718 # test whether we have cygpath
3719 if test -z "$CYGPATH_W"; then
3720 if (cygpath --version) >/dev/null 2>/dev/null; then
3721 CYGPATH_W='cygpath -w'
3722 else
3723 CYGPATH_W=echo
3724 fi
3725 fi
3726
3727
3728 # Define the identity of the package.
3729 PACKAGE=binutils
3730 VERSION=${BFD_VERSION}
3731
3732
3733 cat >>confdefs.h <<_ACEOF
3734 #define PACKAGE "$PACKAGE"
3735 _ACEOF
3736
3737
3738 cat >>confdefs.h <<_ACEOF
3739 #define VERSION "$VERSION"
3740 _ACEOF
3741
3742 # Some tools Automake needs.
3743
3744 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3745
3746
3747 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3748
3749
3750 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3751
3752
3753 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3754
3755
3756 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3757
3758 # We need awk for the "check" target. The system "awk" is bad on
3759 # some platforms.
3760 # Always define AMTAR for backward compatibility.
3761
3762 AMTAR=${AMTAR-"${am_missing_run}tar"}
3763
3764 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3765
3766
3767
3768
3769 depcc="$CC" am_compiler_list=
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772 $as_echo_n "checking dependency style of $depcc... " >&6; }
3773 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named `D' -- because `-MD' means `put the output
3781 # in D'.
3782 mkdir conftest.dir
3783 # Copy depcomp to subdir because otherwise we won't find it if we're
3784 # using a relative directory.
3785 cp "$am_depcomp" conftest.dir
3786 cd conftest.dir
3787 # We will build objects and dependencies in a subdirectory because
3788 # it helps to detect inapplicable dependency modes. For instance
3789 # both Tru64's cc and ICC support -MD to output dependencies as a
3790 # side effect of compilation, but ICC will put the dependencies in
3791 # the current directory while Tru64 will put them in the object
3792 # directory.
3793 mkdir sub
3794
3795 am_cv_CC_dependencies_compiler_type=none
3796 if test "$am_compiler_list" = ""; then
3797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3798 fi
3799 am__universal=false
3800 case " $depcc " in #(
3801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3802 esac
3803
3804 for depmode in $am_compiler_list; do
3805 # Setup a source with many dependencies, because some compilers
3806 # like to wrap large dependency lists on column 80 (with \), and
3807 # we should not choose a depcomp mode which is confused by this.
3808 #
3809 # We need to recreate these files for each test, as the compiler may
3810 # overwrite some of them when testing with obscure command lines.
3811 # This happens at least with the AIX C compiler.
3812 : > sub/conftest.c
3813 for i in 1 2 3 4 5 6; do
3814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3816 # Solaris 8's {/usr,}/bin/sh.
3817 touch sub/conftst$i.h
3818 done
3819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3820
3821 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3822 # mode. It turns out that the SunPro C++ compiler does not properly
3823 # handle `-M -o', and we need to detect this. Also, some Intel
3824 # versions had trouble with output in subdirs
3825 am__obj=sub/conftest.${OBJEXT-o}
3826 am__minus_obj="-o $am__obj"
3827 case $depmode in
3828 gcc)
3829 # This depmode causes a compiler race in universal mode.
3830 test "$am__universal" = false || continue
3831 ;;
3832 nosideeffect)
3833 # after this tag, mechanisms are not by side-effect, so they'll
3834 # only be used when explicitly requested
3835 if test "x$enable_dependency_tracking" = xyes; then
3836 continue
3837 else
3838 break
3839 fi
3840 ;;
3841 msvisualcpp | msvcmsys)
3842 # This compiler won't grok `-c -o', but also, the minuso test has
3843 # not run yet. These depmodes are late enough in the game, and
3844 # so weak that their functioning should not be impacted.
3845 am__obj=conftest.${OBJEXT-o}
3846 am__minus_obj=
3847 ;;
3848 none) break ;;
3849 esac
3850 if depmode=$depmode \
3851 source=sub/conftest.c object=$am__obj \
3852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3854 >/dev/null 2>conftest.err &&
3855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859 # icc doesn't choke on unknown options, it will just issue warnings
3860 # or remarks (even with -Werror). So we grep stderr for any message
3861 # that says an option was ignored or not supported.
3862 # When given -MP, icc 7.0 and 7.1 complain thusly:
3863 # icc: Command line warning: ignoring option '-M'; no argument required
3864 # The diagnosis changed in icc 8.0:
3865 # icc: Command line remark: option '-MP' not supported
3866 if (grep 'ignoring option' conftest.err ||
3867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3868 am_cv_CC_dependencies_compiler_type=$depmode
3869 break
3870 fi
3871 fi
3872 done
3873
3874 cd ..
3875 rm -rf conftest.dir
3876 else
3877 am_cv_CC_dependencies_compiler_type=none
3878 fi
3879
3880 fi
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3882 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3883 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3884
3885 if
3886 test "x$enable_dependency_tracking" != xno \
3887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3888 am__fastdepCC_TRUE=
3889 am__fastdepCC_FALSE='#'
3890 else
3891 am__fastdepCC_TRUE='#'
3892 am__fastdepCC_FALSE=
3893 fi
3894
3895
3896
3897
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903 if test -n "$ac_tool_prefix"; then
3904 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3905 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if test "${ac_cv_prog_CC+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 if test -n "$CC"; then
3912 ac_cv_prog_CC="$CC" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3924 fi
3925 done
3926 done
3927 IFS=$as_save_IFS
3928
3929 fi
3930 fi
3931 CC=$ac_cv_prog_CC
3932 if test -n "$CC"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934 $as_echo "$CC" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3938 fi
3939
3940
3941 fi
3942 if test -z "$ac_cv_prog_CC"; then
3943 ac_ct_CC=$CC
3944 # Extract the first word of "gcc", so it can be a program name with args.
3945 set dummy gcc; ac_word=$2
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 $as_echo_n "checking for $ac_word... " >&6; }
3948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 if test -n "$ac_ct_CC"; then
3952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3953 else
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3956 do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961 ac_cv_prog_ac_ct_CC="gcc"
3962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 break 2
3964 fi
3965 done
3966 done
3967 IFS=$as_save_IFS
3968
3969 fi
3970 fi
3971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3972 if test -n "$ac_ct_CC"; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3974 $as_echo "$ac_ct_CC" >&6; }
3975 else
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 fi
3979
3980 if test "x$ac_ct_CC" = x; then
3981 CC=""
3982 else
3983 case $cross_compiling:$ac_tool_warned in
3984 yes:)
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3987 ac_tool_warned=yes ;;
3988 esac
3989 CC=$ac_ct_CC
3990 fi
3991 else
3992 CC="$ac_cv_prog_CC"
3993 fi
3994
3995 if test -z "$CC"; then
3996 if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3998 set dummy ${ac_tool_prefix}cc; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if test "${ac_cv_prog_CC+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014 ac_cv_prog_CC="${ac_tool_prefix}cc"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
4017 fi
4018 done
4019 done
4020 IFS=$as_save_IFS
4021
4022 fi
4023 fi
4024 CC=$ac_cv_prog_CC
4025 if test -n "$CC"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027 $as_echo "$CC" >&6; }
4028 else
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4031 fi
4032
4033
4034 fi
4035 fi
4036 if test -z "$CC"; then
4037 # Extract the first word of "cc", so it can be a program name with args.
4038 set dummy cc; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if test "${ac_cv_prog_CC+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 if test -n "$CC"; then
4045 ac_cv_prog_CC="$CC" # Let the user override the test.
4046 else
4047 ac_prog_rejected=no
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4056 ac_prog_rejected=yes
4057 continue
4058 fi
4059 ac_cv_prog_CC="cc"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4062 fi
4063 done
4064 done
4065 IFS=$as_save_IFS
4066
4067 if test $ac_prog_rejected = yes; then
4068 # We found a bogon in the path, so make sure we never use it.
4069 set dummy $ac_cv_prog_CC
4070 shift
4071 if test $# != 0; then
4072 # We chose a different compiler from the bogus one.
4073 # However, it has the same basename, so the bogon will be chosen
4074 # first if we set CC to just the basename; use the full file name.
4075 shift
4076 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4077 fi
4078 fi
4079 fi
4080 fi
4081 CC=$ac_cv_prog_CC
4082 if test -n "$CC"; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4084 $as_echo "$CC" >&6; }
4085 else
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087 $as_echo "no" >&6; }
4088 fi
4089
4090
4091 fi
4092 if test -z "$CC"; then
4093 if test -n "$ac_tool_prefix"; then
4094 for ac_prog in cl.exe
4095 do
4096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if test "${ac_cv_prog_CC+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 if test -n "$CC"; then
4104 ac_cv_prog_CC="$CC" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109 IFS=$as_save_IFS
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4113 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 break 2
4116 fi
4117 done
4118 done
4119 IFS=$as_save_IFS
4120
4121 fi
4122 fi
4123 CC=$ac_cv_prog_CC
4124 if test -n "$CC"; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4126 $as_echo "$CC" >&6; }
4127 else
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4130 fi
4131
4132
4133 test -n "$CC" && break
4134 done
4135 fi
4136 if test -z "$CC"; then
4137 ac_ct_CC=$CC
4138 for ac_prog in cl.exe
4139 do
4140 # Extract the first word of "$ac_prog", so it can be a program name with args.
4141 set dummy $ac_prog; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 if test -n "$ac_ct_CC"; then
4148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4157 ac_cv_prog_ac_ct_CC="$ac_prog"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4160 fi
4161 done
4162 done
4163 IFS=$as_save_IFS
4164
4165 fi
4166 fi
4167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4168 if test -n "$ac_ct_CC"; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4170 $as_echo "$ac_ct_CC" >&6; }
4171 else
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 fi
4175
4176
4177 test -n "$ac_ct_CC" && break
4178 done
4179
4180 if test "x$ac_ct_CC" = x; then
4181 CC=""
4182 else
4183 case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187 ac_tool_warned=yes ;;
4188 esac
4189 CC=$ac_ct_CC
4190 fi
4191 fi
4192
4193 fi
4194
4195
4196 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198 as_fn_error "no acceptable C compiler found in \$PATH
4199 See \`config.log' for more details." "$LINENO" 5; }
4200
4201 # Provide some information about the compiler.
4202 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4203 set X $ac_compile
4204 ac_compiler=$2
4205 for ac_option in --version -v -V -qversion; do
4206 { { ac_try="$ac_compiler $ac_option >&5"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 $as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4214 ac_status=$?
4215 if test -s conftest.err; then
4216 sed '10a\
4217 ... rest of stderr output deleted ...
4218 10q' conftest.err >conftest.er1
4219 cat conftest.er1 >&5
4220 rm -f conftest.er1 conftest.err
4221 fi
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }
4224 done
4225
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4227 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4228 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233
4234 int
4235 main ()
4236 {
4237 #ifndef __GNUC__
4238 choke me
4239 #endif
4240
4241 ;
4242 return 0;
4243 }
4244 _ACEOF
4245 if ac_fn_c_try_compile "$LINENO"; then :
4246 ac_compiler_gnu=yes
4247 else
4248 ac_compiler_gnu=no
4249 fi
4250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4252
4253 fi
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4255 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4256 if test $ac_compiler_gnu = yes; then
4257 GCC=yes
4258 else
4259 GCC=
4260 fi
4261 ac_test_CFLAGS=${CFLAGS+set}
4262 ac_save_CFLAGS=$CFLAGS
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4264 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4265 if test "${ac_cv_prog_cc_g+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 ac_save_c_werror_flag=$ac_c_werror_flag
4269 ac_c_werror_flag=yes
4270 ac_cv_prog_cc_g=no
4271 CFLAGS="-g"
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274
4275 int
4276 main ()
4277 {
4278
4279 ;
4280 return 0;
4281 }
4282 _ACEOF
4283 if ac_fn_c_try_compile "$LINENO"; then :
4284 ac_cv_prog_cc_g=yes
4285 else
4286 CFLAGS=""
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289
4290 int
4291 main ()
4292 {
4293
4294 ;
4295 return 0;
4296 }
4297 _ACEOF
4298 if ac_fn_c_try_compile "$LINENO"; then :
4299
4300 else
4301 ac_c_werror_flag=$ac_save_c_werror_flag
4302 CFLAGS="-g"
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305
4306 int
4307 main ()
4308 {
4309
4310 ;
4311 return 0;
4312 }
4313 _ACEOF
4314 if ac_fn_c_try_compile "$LINENO"; then :
4315 ac_cv_prog_cc_g=yes
4316 fi
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318 fi
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 fi
4321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 ac_c_werror_flag=$ac_save_c_werror_flag
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4325 $as_echo "$ac_cv_prog_cc_g" >&6; }
4326 if test "$ac_test_CFLAGS" = set; then
4327 CFLAGS=$ac_save_CFLAGS
4328 elif test $ac_cv_prog_cc_g = yes; then
4329 if test "$GCC" = yes; then
4330 CFLAGS="-g -O2"
4331 else
4332 CFLAGS="-g"
4333 fi
4334 else
4335 if test "$GCC" = yes; then
4336 CFLAGS="-O2"
4337 else
4338 CFLAGS=
4339 fi
4340 fi
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4342 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4343 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 ac_cv_prog_cc_c89=no
4347 ac_save_CC=$CC
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350 #include <stdarg.h>
4351 #include <stdio.h>
4352 #include <sys/types.h>
4353 #include <sys/stat.h>
4354 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4355 struct buf { int x; };
4356 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4357 static char *e (p, i)
4358 char **p;
4359 int i;
4360 {
4361 return p[i];
4362 }
4363 static char *f (char * (*g) (char **, int), char **p, ...)
4364 {
4365 char *s;
4366 va_list v;
4367 va_start (v,p);
4368 s = g (p, va_arg (v,int));
4369 va_end (v);
4370 return s;
4371 }
4372
4373 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4374 function prototypes and stuff, but not '\xHH' hex character constants.
4375 These don't provoke an error unfortunately, instead are silently treated
4376 as 'x'. The following induces an error, until -std is added to get
4377 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4378 array size at least. It's necessary to write '\x00'==0 to get something
4379 that's true only with -std. */
4380 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4381
4382 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4383 inside strings and character constants. */
4384 #define FOO(x) 'x'
4385 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4386
4387 int test (int i, double x);
4388 struct s1 {int (*f) (int a);};
4389 struct s2 {int (*f) (double a);};
4390 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4391 int argc;
4392 char **argv;
4393 int
4394 main ()
4395 {
4396 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4397 ;
4398 return 0;
4399 }
4400 _ACEOF
4401 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4402 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4403 do
4404 CC="$ac_save_CC $ac_arg"
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406 ac_cv_prog_cc_c89=$ac_arg
4407 fi
4408 rm -f core conftest.err conftest.$ac_objext
4409 test "x$ac_cv_prog_cc_c89" != "xno" && break
4410 done
4411 rm -f conftest.$ac_ext
4412 CC=$ac_save_CC
4413
4414 fi
4415 # AC_CACHE_VAL
4416 case "x$ac_cv_prog_cc_c89" in
4417 x)
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4419 $as_echo "none needed" >&6; } ;;
4420 xno)
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4422 $as_echo "unsupported" >&6; } ;;
4423 *)
4424 CC="$CC $ac_cv_prog_cc_c89"
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4426 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4427 esac
4428 if test "x$ac_cv_prog_cc_c89" != xno; then :
4429
4430 fi
4431
4432 ac_ext=c
4433 ac_cpp='$CPP $CPPFLAGS'
4434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4437
4438 ac_ext=c
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4444 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4445 # On Suns, sometimes $CPP names a directory.
4446 if test -n "$CPP" && test -d "$CPP"; then
4447 CPP=
4448 fi
4449 if test -z "$CPP"; then
4450 if test "${ac_cv_prog_CPP+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 # Double quotes because CPP needs to be expanded
4454 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4455 do
4456 ac_preproc_ok=false
4457 for ac_c_preproc_warn_flag in '' yes
4458 do
4459 # Use a header file that comes with gcc, so configuring glibc
4460 # with a fresh cross-compiler works.
4461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4462 # <limits.h> exists even on freestanding compilers.
4463 # On the NeXT, cc -E runs the code through the compiler's parser,
4464 # not just through cpp. "Syntax error" is here to catch this case.
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #ifdef __STDC__
4468 # include <limits.h>
4469 #else
4470 # include <assert.h>
4471 #endif
4472 Syntax error
4473 _ACEOF
4474 if ac_fn_c_try_cpp "$LINENO"; then :
4475
4476 else
4477 # Broken: fails on valid input.
4478 continue
4479 fi
4480 rm -f conftest.err conftest.$ac_ext
4481
4482 # OK, works on sane cases. Now check whether nonexistent headers
4483 # can be detected and how.
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486 #include <ac_nonexistent.h>
4487 _ACEOF
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4489 # Broken: success on invalid input.
4490 continue
4491 else
4492 # Passes both tests.
4493 ac_preproc_ok=:
4494 break
4495 fi
4496 rm -f conftest.err conftest.$ac_ext
4497
4498 done
4499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500 rm -f conftest.err conftest.$ac_ext
4501 if $ac_preproc_ok; then :
4502 break
4503 fi
4504
4505 done
4506 ac_cv_prog_CPP=$CPP
4507
4508 fi
4509 CPP=$ac_cv_prog_CPP
4510 else
4511 ac_cv_prog_CPP=$CPP
4512 fi
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4514 $as_echo "$CPP" >&6; }
4515 ac_preproc_ok=false
4516 for ac_c_preproc_warn_flag in '' yes
4517 do
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 #ifdef __STDC__
4527 # include <limits.h>
4528 #else
4529 # include <assert.h>
4530 #endif
4531 Syntax error
4532 _ACEOF
4533 if ac_fn_c_try_cpp "$LINENO"; then :
4534
4535 else
4536 # Broken: fails on valid input.
4537 continue
4538 fi
4539 rm -f conftest.err conftest.$ac_ext
4540
4541 # OK, works on sane cases. Now check whether nonexistent headers
4542 # can be detected and how.
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545 #include <ac_nonexistent.h>
4546 _ACEOF
4547 if ac_fn_c_try_cpp "$LINENO"; then :
4548 # Broken: success on invalid input.
4549 continue
4550 else
4551 # Passes both tests.
4552 ac_preproc_ok=:
4553 break
4554 fi
4555 rm -f conftest.err conftest.$ac_ext
4556
4557 done
4558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4559 rm -f conftest.err conftest.$ac_ext
4560 if $ac_preproc_ok; then :
4561
4562 else
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4566 See \`config.log' for more details." "$LINENO" 5; }
4567 fi
4568
4569 ac_ext=c
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4577 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4578 if test "${ac_cv_path_GREP+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test -z "$GREP"; then
4582 ac_path_GREP_found=false
4583 # Loop through the user's path and test for each of PROGNAME-LIST
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4586 do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_prog in grep ggrep; do
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4592 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4593 # Check for GNU ac_path_GREP and select it if it is found.
4594 # Check for GNU $ac_path_GREP
4595 case `"$ac_path_GREP" --version 2>&1` in
4596 *GNU*)
4597 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4598 *)
4599 ac_count=0
4600 $as_echo_n 0123456789 >"conftest.in"
4601 while :
4602 do
4603 cat "conftest.in" "conftest.in" >"conftest.tmp"
4604 mv "conftest.tmp" "conftest.in"
4605 cp "conftest.in" "conftest.nl"
4606 $as_echo 'GREP' >> "conftest.nl"
4607 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609 as_fn_arith $ac_count + 1 && ac_count=$as_val
4610 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4611 # Best one so far, save it but keep looking for a better one
4612 ac_cv_path_GREP="$ac_path_GREP"
4613 ac_path_GREP_max=$ac_count
4614 fi
4615 # 10*(2^10) chars as input seems more than enough
4616 test $ac_count -gt 10 && break
4617 done
4618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619 esac
4620
4621 $ac_path_GREP_found && break 3
4622 done
4623 done
4624 done
4625 IFS=$as_save_IFS
4626 if test -z "$ac_cv_path_GREP"; then
4627 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4628 fi
4629 else
4630 ac_cv_path_GREP=$GREP
4631 fi
4632
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4635 $as_echo "$ac_cv_path_GREP" >&6; }
4636 GREP="$ac_cv_path_GREP"
4637
4638
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4640 $as_echo_n "checking for egrep... " >&6; }
4641 if test "${ac_cv_path_EGREP+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4645 then ac_cv_path_EGREP="$GREP -E"
4646 else
4647 if test -z "$EGREP"; then
4648 ac_path_EGREP_found=false
4649 # Loop through the user's path and test for each of PROGNAME-LIST
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4652 do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_prog in egrep; do
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4658 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4659 # Check for GNU ac_path_EGREP and select it if it is found.
4660 # Check for GNU $ac_path_EGREP
4661 case `"$ac_path_EGREP" --version 2>&1` in
4662 *GNU*)
4663 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4664 *)
4665 ac_count=0
4666 $as_echo_n 0123456789 >"conftest.in"
4667 while :
4668 do
4669 cat "conftest.in" "conftest.in" >"conftest.tmp"
4670 mv "conftest.tmp" "conftest.in"
4671 cp "conftest.in" "conftest.nl"
4672 $as_echo 'EGREP' >> "conftest.nl"
4673 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4675 as_fn_arith $ac_count + 1 && ac_count=$as_val
4676 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4677 # Best one so far, save it but keep looking for a better one
4678 ac_cv_path_EGREP="$ac_path_EGREP"
4679 ac_path_EGREP_max=$ac_count
4680 fi
4681 # 10*(2^10) chars as input seems more than enough
4682 test $ac_count -gt 10 && break
4683 done
4684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4685 esac
4686
4687 $ac_path_EGREP_found && break 3
4688 done
4689 done
4690 done
4691 IFS=$as_save_IFS
4692 if test -z "$ac_cv_path_EGREP"; then
4693 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4694 fi
4695 else
4696 ac_cv_path_EGREP=$EGREP
4697 fi
4698
4699 fi
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4702 $as_echo "$ac_cv_path_EGREP" >&6; }
4703 EGREP="$ac_cv_path_EGREP"
4704
4705
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4707 $as_echo_n "checking for ANSI C header files... " >&6; }
4708 if test "${ac_cv_header_stdc+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713 #include <stdlib.h>
4714 #include <stdarg.h>
4715 #include <string.h>
4716 #include <float.h>
4717
4718 int
4719 main ()
4720 {
4721
4722 ;
4723 return 0;
4724 }
4725 _ACEOF
4726 if ac_fn_c_try_compile "$LINENO"; then :
4727 ac_cv_header_stdc=yes
4728 else
4729 ac_cv_header_stdc=no
4730 fi
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732
4733 if test $ac_cv_header_stdc = yes; then
4734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4737 #include <string.h>
4738
4739 _ACEOF
4740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4741 $EGREP "memchr" >/dev/null 2>&1; then :
4742
4743 else
4744 ac_cv_header_stdc=no
4745 fi
4746 rm -f conftest*
4747
4748 fi
4749
4750 if test $ac_cv_header_stdc = yes; then
4751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 #include <stdlib.h>
4755
4756 _ACEOF
4757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4758 $EGREP "free" >/dev/null 2>&1; then :
4759
4760 else
4761 ac_cv_header_stdc=no
4762 fi
4763 rm -f conftest*
4764
4765 fi
4766
4767 if test $ac_cv_header_stdc = yes; then
4768 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4769 if test "$cross_compiling" = yes; then :
4770 :
4771 else
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774 #include <ctype.h>
4775 #include <stdlib.h>
4776 #if ((' ' & 0x0FF) == 0x020)
4777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4779 #else
4780 # define ISLOWER(c) \
4781 (('a' <= (c) && (c) <= 'i') \
4782 || ('j' <= (c) && (c) <= 'r') \
4783 || ('s' <= (c) && (c) <= 'z'))
4784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4785 #endif
4786
4787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4788 int
4789 main ()
4790 {
4791 int i;
4792 for (i = 0; i < 256; i++)
4793 if (XOR (islower (i), ISLOWER (i))
4794 || toupper (i) != TOUPPER (i))
4795 return 2;
4796 return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_c_try_run "$LINENO"; then :
4800
4801 else
4802 ac_cv_header_stdc=no
4803 fi
4804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4805 conftest.$ac_objext conftest.beam conftest.$ac_ext
4806 fi
4807
4808 fi
4809 fi
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4811 $as_echo "$ac_cv_header_stdc" >&6; }
4812 if test $ac_cv_header_stdc = yes; then
4813
4814 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4815
4816 fi
4817
4818 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4819 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4820 inttypes.h stdint.h unistd.h
4821 do :
4822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4823 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4824 "
4825 eval as_val=\$$as_ac_Header
4826 if test "x$as_val" = x""yes; then :
4827 cat >>confdefs.h <<_ACEOF
4828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4829 _ACEOF
4830
4831 fi
4832
4833 done
4834
4835
4836
4837 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4838 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4839 MINIX=yes
4840 else
4841 MINIX=
4842 fi
4843
4844
4845 if test "$MINIX" = yes; then
4846
4847 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4848
4849
4850 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4851
4852
4853 $as_echo "#define _MINIX 1" >>confdefs.h
4854
4855 fi
4856
4857
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4859 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4860 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4865
4866 # define __EXTENSIONS__ 1
4867 $ac_includes_default
4868 int
4869 main ()
4870 {
4871
4872 ;
4873 return 0;
4874 }
4875 _ACEOF
4876 if ac_fn_c_try_compile "$LINENO"; then :
4877 ac_cv_safe_to_define___extensions__=yes
4878 else
4879 ac_cv_safe_to_define___extensions__=no
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4884 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4885 test $ac_cv_safe_to_define___extensions__ = yes &&
4886 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4887
4888 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4889
4890 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4891
4892 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4893
4894 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4895
4896
4897
4898
4899
4900
4901 # The tests for host and target for $enable_largefile require
4902 # canonical names.
4903
4904
4905
4906 # As the $enable_largefile decision depends on --enable-plugins we must set it
4907 # even in directories otherwise not depending on the $plugins option.
4908
4909
4910 # Check whether --enable-plugins was given.
4911 if test "${enable_plugins+set}" = set; then :
4912 enableval=$enable_plugins; case "${enableval}" in
4913 yes | "") plugins=yes ;;
4914 no) plugins=no ;;
4915 *) plugins=yes ;;
4916 esac
4917 else
4918 plugins=no
4919 fi
4920
4921
4922
4923 case "${host}" in
4924 sparc-*-solaris*|i[3-7]86-*-solaris*)
4925 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4926 # are mutually exclusive; and without procfs support, the bfd/ elf module
4927 # cannot provide certain routines such as elfcore_write_prpsinfo
4928 # or elfcore_write_prstatus. So unless the user explicitly requested
4929 # large-file support through the --enable-largefile switch, disable
4930 # large-file support in favor of procfs support.
4931 test "${target}" = "${host}" -a "x$plugins" = xno \
4932 && : ${enable_largefile="no"}
4933 ;;
4934 esac
4935
4936 # Check whether --enable-largefile was given.
4937 if test "${enable_largefile+set}" = set; then :
4938 enableval=$enable_largefile;
4939 fi
4940
4941 if test "$enable_largefile" != no; then
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4944 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4945 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 ac_cv_sys_largefile_CC=no
4949 if test "$GCC" != yes; then
4950 ac_save_CC=$CC
4951 while :; do
4952 # IRIX 6.2 and later do not support large files by default,
4953 # so use the C compiler's -n32 option if that helps.
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956 #include <sys/types.h>
4957 /* Check that off_t can represent 2**63 - 1 correctly.
4958 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4959 since some C++ compilers masquerading as C compilers
4960 incorrectly reject 9223372036854775807. */
4961 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4962 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4963 && LARGE_OFF_T % 2147483647 == 1)
4964 ? 1 : -1];
4965 int
4966 main ()
4967 {
4968
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_c_try_compile "$LINENO"; then :
4974 break
4975 fi
4976 rm -f core conftest.err conftest.$ac_objext
4977 CC="$CC -n32"
4978 if ac_fn_c_try_compile "$LINENO"; then :
4979 ac_cv_sys_largefile_CC=' -n32'; break
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext
4982 break
4983 done
4984 CC=$ac_save_CC
4985 rm -f conftest.$ac_ext
4986 fi
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4989 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4990 if test "$ac_cv_sys_largefile_CC" != no; then
4991 CC=$CC$ac_cv_sys_largefile_CC
4992 fi
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4995 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4996 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 while :; do
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 #include <sys/types.h>
5003 /* Check that off_t can represent 2**63 - 1 correctly.
5004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5005 since some C++ compilers masquerading as C compilers
5006 incorrectly reject 9223372036854775807. */
5007 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5009 && LARGE_OFF_T % 2147483647 == 1)
5010 ? 1 : -1];
5011 int
5012 main ()
5013 {
5014
5015 ;
5016 return 0;
5017 }
5018 _ACEOF
5019 if ac_fn_c_try_compile "$LINENO"; then :
5020 ac_cv_sys_file_offset_bits=no; break
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025 #define _FILE_OFFSET_BITS 64
5026 #include <sys/types.h>
5027 /* Check that off_t can represent 2**63 - 1 correctly.
5028 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5029 since some C++ compilers masquerading as C compilers
5030 incorrectly reject 9223372036854775807. */
5031 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5032 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5033 && LARGE_OFF_T % 2147483647 == 1)
5034 ? 1 : -1];
5035 int
5036 main ()
5037 {
5038
5039 ;
5040 return 0;
5041 }
5042 _ACEOF
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044 ac_cv_sys_file_offset_bits=64; break
5045 fi
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 ac_cv_sys_file_offset_bits=unknown
5048 break
5049 done
5050 fi
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5052 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5053 case $ac_cv_sys_file_offset_bits in #(
5054 no | unknown) ;;
5055 *)
5056 cat >>confdefs.h <<_ACEOF
5057 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5058 _ACEOF
5059 ;;
5060 esac
5061 rm -rf conftest*
5062 if test $ac_cv_sys_file_offset_bits = unknown; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5064 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5065 if test "${ac_cv_sys_large_files+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 while :; do
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071 #include <sys/types.h>
5072 /* Check that off_t can represent 2**63 - 1 correctly.
5073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5074 since some C++ compilers masquerading as C compilers
5075 incorrectly reject 9223372036854775807. */
5076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5078 && LARGE_OFF_T % 2147483647 == 1)
5079 ? 1 : -1];
5080 int
5081 main ()
5082 {
5083
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 if ac_fn_c_try_compile "$LINENO"; then :
5089 ac_cv_sys_large_files=no; break
5090 fi
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #define _LARGE_FILES 1
5095 #include <sys/types.h>
5096 /* Check that off_t can represent 2**63 - 1 correctly.
5097 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5098 since some C++ compilers masquerading as C compilers
5099 incorrectly reject 9223372036854775807. */
5100 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5101 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5102 && LARGE_OFF_T % 2147483647 == 1)
5103 ? 1 : -1];
5104 int
5105 main ()
5106 {
5107
5108 ;
5109 return 0;
5110 }
5111 _ACEOF
5112 if ac_fn_c_try_compile "$LINENO"; then :
5113 ac_cv_sys_large_files=1; break
5114 fi
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 ac_cv_sys_large_files=unknown
5117 break
5118 done
5119 fi
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5121 $as_echo "$ac_cv_sys_large_files" >&6; }
5122 case $ac_cv_sys_large_files in #(
5123 no | unknown) ;;
5124 *)
5125 cat >>confdefs.h <<_ACEOF
5126 #define _LARGE_FILES $ac_cv_sys_large_files
5127 _ACEOF
5128 ;;
5129 esac
5130 rm -rf conftest*
5131 fi
5132 fi
5133
5134
5135 case `pwd` in
5136 *\ * | *\ *)
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5138 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5139 esac
5140
5141
5142
5143 macro_version='2.2.7a'
5144 macro_revision='1.3134'
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158 ltmain="$ac_aux_dir/ltmain.sh"
5159
5160 # Backslashify metacharacters that are still active within
5161 # double-quoted strings.
5162 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5163
5164 # Same as above, but do not quote variable references.
5165 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5166
5167 # Sed substitution to delay expansion of an escaped shell variable in a
5168 # double_quote_subst'ed string.
5169 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5170
5171 # Sed substitution to delay expansion of an escaped single quote.
5172 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5173
5174 # Sed substitution to avoid accidental globbing in evaled expressions
5175 no_glob_subst='s/\*/\\\*/g'
5176
5177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5178 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5179 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5180
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5182 $as_echo_n "checking how to print strings... " >&6; }
5183 # Test print first, because it will be a builtin if present.
5184 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5185 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5186 ECHO='print -r --'
5187 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5188 ECHO='printf %s\n'
5189 else
5190 # Use this function as a fallback that always works.
5191 func_fallback_echo ()
5192 {
5193 eval 'cat <<_LTECHO_EOF
5194 $1
5195 _LTECHO_EOF'
5196 }
5197 ECHO='func_fallback_echo'
5198 fi
5199
5200 # func_echo_all arg...
5201 # Invoke $ECHO with all args, space-separated.
5202 func_echo_all ()
5203 {
5204 $ECHO ""
5205 }
5206
5207 case "$ECHO" in
5208 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5209 $as_echo "printf" >&6; } ;;
5210 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5211 $as_echo "print -r" >&6; } ;;
5212 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5213 $as_echo "cat" >&6; } ;;
5214 esac
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5230 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5231 if test "${ac_cv_path_SED+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5235 for ac_i in 1 2 3 4 5 6 7; do
5236 ac_script="$ac_script$as_nl$ac_script"
5237 done
5238 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5239 { ac_script=; unset ac_script;}
5240 if test -z "$SED"; then
5241 ac_path_SED_found=false
5242 # Loop through the user's path and test for each of PROGNAME-LIST
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_prog in sed gsed; do
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5251 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5252 # Check for GNU ac_path_SED and select it if it is found.
5253 # Check for GNU $ac_path_SED
5254 case `"$ac_path_SED" --version 2>&1` in
5255 *GNU*)
5256 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5257 *)
5258 ac_count=0
5259 $as_echo_n 0123456789 >"conftest.in"
5260 while :
5261 do
5262 cat "conftest.in" "conftest.in" >"conftest.tmp"
5263 mv "conftest.tmp" "conftest.in"
5264 cp "conftest.in" "conftest.nl"
5265 $as_echo '' >> "conftest.nl"
5266 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5268 as_fn_arith $ac_count + 1 && ac_count=$as_val
5269 if test $ac_count -gt ${ac_path_SED_max-0}; then
5270 # Best one so far, save it but keep looking for a better one
5271 ac_cv_path_SED="$ac_path_SED"
5272 ac_path_SED_max=$ac_count
5273 fi
5274 # 10*(2^10) chars as input seems more than enough
5275 test $ac_count -gt 10 && break
5276 done
5277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5278 esac
5279
5280 $ac_path_SED_found && break 3
5281 done
5282 done
5283 done
5284 IFS=$as_save_IFS
5285 if test -z "$ac_cv_path_SED"; then
5286 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5287 fi
5288 else
5289 ac_cv_path_SED=$SED
5290 fi
5291
5292 fi
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5294 $as_echo "$ac_cv_path_SED" >&6; }
5295 SED="$ac_cv_path_SED"
5296 rm -f conftest.sed
5297
5298 test -z "$SED" && SED=sed
5299 Xsed="$SED -e 1s/^X//"
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5312 $as_echo_n "checking for fgrep... " >&6; }
5313 if test "${ac_cv_path_FGREP+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5317 then ac_cv_path_FGREP="$GREP -F"
5318 else
5319 if test -z "$FGREP"; then
5320 ac_path_FGREP_found=false
5321 # Loop through the user's path and test for each of PROGNAME-LIST
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5324 do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_prog in fgrep; do
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5330 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5331 # Check for GNU ac_path_FGREP and select it if it is found.
5332 # Check for GNU $ac_path_FGREP
5333 case `"$ac_path_FGREP" --version 2>&1` in
5334 *GNU*)
5335 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5336 *)
5337 ac_count=0
5338 $as_echo_n 0123456789 >"conftest.in"
5339 while :
5340 do
5341 cat "conftest.in" "conftest.in" >"conftest.tmp"
5342 mv "conftest.tmp" "conftest.in"
5343 cp "conftest.in" "conftest.nl"
5344 $as_echo 'FGREP' >> "conftest.nl"
5345 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5347 as_fn_arith $ac_count + 1 && ac_count=$as_val
5348 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5349 # Best one so far, save it but keep looking for a better one
5350 ac_cv_path_FGREP="$ac_path_FGREP"
5351 ac_path_FGREP_max=$ac_count
5352 fi
5353 # 10*(2^10) chars as input seems more than enough
5354 test $ac_count -gt 10 && break
5355 done
5356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5357 esac
5358
5359 $ac_path_FGREP_found && break 3
5360 done
5361 done
5362 done
5363 IFS=$as_save_IFS
5364 if test -z "$ac_cv_path_FGREP"; then
5365 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5366 fi
5367 else
5368 ac_cv_path_FGREP=$FGREP
5369 fi
5370
5371 fi
5372 fi
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5374 $as_echo "$ac_cv_path_FGREP" >&6; }
5375 FGREP="$ac_cv_path_FGREP"
5376
5377
5378 test -z "$GREP" && GREP=grep
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398 # Check whether --with-gnu-ld was given.
5399 if test "${with_gnu_ld+set}" = set; then :
5400 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5401 else
5402 with_gnu_ld=no
5403 fi
5404
5405 ac_prog=ld
5406 if test "$GCC" = yes; then
5407 # Check if gcc -print-prog-name=ld gives a path.
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5409 $as_echo_n "checking for ld used by $CC... " >&6; }
5410 case $host in
5411 *-*-mingw*)
5412 # gcc leaves a trailing carriage return which upsets mingw
5413 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5414 *)
5415 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5416 esac
5417 case $ac_prog in
5418 # Accept absolute paths.
5419 [\\/]* | ?:[\\/]*)
5420 re_direlt='/[^/][^/]*/\.\./'
5421 # Canonicalize the pathname of ld
5422 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5423 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5424 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5425 done
5426 test -z "$LD" && LD="$ac_prog"
5427 ;;
5428 "")
5429 # If it fails, then pretend we aren't using GCC.
5430 ac_prog=ld
5431 ;;
5432 *)
5433 # If it is relative, then search for the first ld in PATH.
5434 with_gnu_ld=unknown
5435 ;;
5436 esac
5437 elif test "$with_gnu_ld" = yes; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5439 $as_echo_n "checking for GNU ld... " >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5442 $as_echo_n "checking for non-GNU ld... " >&6; }
5443 fi
5444 if test "${lt_cv_path_LD+set}" = set; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 if test -z "$LD"; then
5448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5449 for ac_dir in $PATH; do
5450 IFS="$lt_save_ifs"
5451 test -z "$ac_dir" && ac_dir=.
5452 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5453 lt_cv_path_LD="$ac_dir/$ac_prog"
5454 # Check to see if the program is GNU ld. I'd rather use --version,
5455 # but apparently some variants of GNU ld only accept -v.
5456 # Break only if it was the GNU/non-GNU ld that we prefer.
5457 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5458 *GNU* | *'with BFD'*)
5459 test "$with_gnu_ld" != no && break
5460 ;;
5461 *)
5462 test "$with_gnu_ld" != yes && break
5463 ;;
5464 esac
5465 fi
5466 done
5467 IFS="$lt_save_ifs"
5468 else
5469 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5470 fi
5471 fi
5472
5473 LD="$lt_cv_path_LD"
5474 if test -n "$LD"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5476 $as_echo "$LD" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5480 fi
5481 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5483 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5484 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5488 case `$LD -v 2>&1 </dev/null` in
5489 *GNU* | *'with BFD'*)
5490 lt_cv_prog_gnu_ld=yes
5491 ;;
5492 *)
5493 lt_cv_prog_gnu_ld=no
5494 ;;
5495 esac
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5498 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5499 with_gnu_ld=$lt_cv_prog_gnu_ld
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5510 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5511 if test "${lt_cv_path_NM+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 if test -n "$NM"; then
5515 # Let the user override the test.
5516 lt_cv_path_NM="$NM"
5517 else
5518 lt_nm_to_check="${ac_tool_prefix}nm"
5519 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5520 lt_nm_to_check="$lt_nm_to_check nm"
5521 fi
5522 for lt_tmp_nm in $lt_nm_to_check; do
5523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5524 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5525 IFS="$lt_save_ifs"
5526 test -z "$ac_dir" && ac_dir=.
5527 tmp_nm="$ac_dir/$lt_tmp_nm"
5528 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5529 # Check to see if the nm accepts a BSD-compat flag.
5530 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5531 # nm: unknown option "B" ignored
5532 # Tru64's nm complains that /dev/null is an invalid object file
5533 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5534 */dev/null* | *'Invalid file or object type'*)
5535 lt_cv_path_NM="$tmp_nm -B"
5536 break
5537 ;;
5538 *)
5539 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5540 */dev/null*)
5541 lt_cv_path_NM="$tmp_nm -p"
5542 break
5543 ;;
5544 *)
5545 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5546 continue # so that we can try to find one that supports BSD flags
5547 ;;
5548 esac
5549 ;;
5550 esac
5551 fi
5552 done
5553 IFS="$lt_save_ifs"
5554 done
5555 : ${lt_cv_path_NM=no}
5556 fi
5557 fi
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5559 $as_echo "$lt_cv_path_NM" >&6; }
5560 if test "$lt_cv_path_NM" != "no"; then
5561 NM="$lt_cv_path_NM"
5562 else
5563 # Didn't find any BSD compatible name lister, look for dumpbin.
5564 if test -n "$DUMPBIN"; then :
5565 # Let the user override the test.
5566 else
5567 if test -n "$ac_tool_prefix"; then
5568 for ac_prog in dumpbin "link -dump"
5569 do
5570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 if test -n "$DUMPBIN"; then
5578 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591 done
5592 done
5593 IFS=$as_save_IFS
5594
5595 fi
5596 fi
5597 DUMPBIN=$ac_cv_prog_DUMPBIN
5598 if test -n "$DUMPBIN"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5600 $as_echo "$DUMPBIN" >&6; }
5601 else
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5604 fi
5605
5606
5607 test -n "$DUMPBIN" && break
5608 done
5609 fi
5610 if test -z "$DUMPBIN"; then
5611 ac_ct_DUMPBIN=$DUMPBIN
5612 for ac_prog in dumpbin "link -dump"
5613 do
5614 # Extract the first word of "$ac_prog", so it can be a program name with args.
5615 set dummy $ac_prog; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 if test -n "$ac_ct_DUMPBIN"; then
5622 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5634 fi
5635 done
5636 done
5637 IFS=$as_save_IFS
5638
5639 fi
5640 fi
5641 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5642 if test -n "$ac_ct_DUMPBIN"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5644 $as_echo "$ac_ct_DUMPBIN" >&6; }
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5648 fi
5649
5650
5651 test -n "$ac_ct_DUMPBIN" && break
5652 done
5653
5654 if test "x$ac_ct_DUMPBIN" = x; then
5655 DUMPBIN=":"
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658 yes:)
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661 ac_tool_warned=yes ;;
5662 esac
5663 DUMPBIN=$ac_ct_DUMPBIN
5664 fi
5665 fi
5666
5667 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5668 *COFF*)
5669 DUMPBIN="$DUMPBIN -symbols"
5670 ;;
5671 *)
5672 DUMPBIN=:
5673 ;;
5674 esac
5675 fi
5676
5677 if test "$DUMPBIN" != ":"; then
5678 NM="$DUMPBIN"
5679 fi
5680 fi
5681 test -z "$NM" && NM=nm
5682
5683
5684
5685
5686
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5689 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5690 if test "${lt_cv_nm_interface+set}" = set; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 lt_cv_nm_interface="BSD nm"
5694 echo "int some_variable = 0;" > conftest.$ac_ext
5695 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5696 (eval "$ac_compile" 2>conftest.err)
5697 cat conftest.err >&5
5698 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5699 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5700 cat conftest.err >&5
5701 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5702 cat conftest.out >&5
5703 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5704 lt_cv_nm_interface="MS dumpbin"
5705 fi
5706 rm -f conftest*
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5709 $as_echo "$lt_cv_nm_interface" >&6; }
5710
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5712 $as_echo_n "checking whether ln -s works... " >&6; }
5713 LN_S=$as_ln_s
5714 if test "$LN_S" = "ln -s"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5716 $as_echo "yes" >&6; }
5717 else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5719 $as_echo "no, using $LN_S" >&6; }
5720 fi
5721
5722 # find the maximum length of command line arguments
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5724 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5725 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 i=0
5729 teststring="ABCD"
5730
5731 case $build_os in
5732 msdosdjgpp*)
5733 # On DJGPP, this test can blow up pretty badly due to problems in libc
5734 # (any single argument exceeding 2000 bytes causes a buffer overrun
5735 # during glob expansion). Even if it were fixed, the result of this
5736 # check would be larger than it should be.
5737 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5738 ;;
5739
5740 gnu*)
5741 # Under GNU Hurd, this test is not required because there is
5742 # no limit to the length of command line arguments.
5743 # Libtool will interpret -1 as no limit whatsoever
5744 lt_cv_sys_max_cmd_len=-1;
5745 ;;
5746
5747 cygwin* | mingw* | cegcc*)
5748 # On Win9x/ME, this test blows up -- it succeeds, but takes
5749 # about 5 minutes as the teststring grows exponentially.
5750 # Worse, since 9x/ME are not pre-emptively multitasking,
5751 # you end up with a "frozen" computer, even though with patience
5752 # the test eventually succeeds (with a max line length of 256k).
5753 # Instead, let's just punt: use the minimum linelength reported by
5754 # all of the supported platforms: 8192 (on NT/2K/XP).
5755 lt_cv_sys_max_cmd_len=8192;
5756 ;;
5757
5758 mint*)
5759 # On MiNT this can take a long time and run out of memory.
5760 lt_cv_sys_max_cmd_len=8192;
5761 ;;
5762
5763 amigaos*)
5764 # On AmigaOS with pdksh, this test takes hours, literally.
5765 # So we just punt and use a minimum line length of 8192.
5766 lt_cv_sys_max_cmd_len=8192;
5767 ;;
5768
5769 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5770 # This has been around since 386BSD, at least. Likely further.
5771 if test -x /sbin/sysctl; then
5772 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5773 elif test -x /usr/sbin/sysctl; then
5774 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5775 else
5776 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5777 fi
5778 # And add a safety zone
5779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5781 ;;
5782
5783 interix*)
5784 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5785 lt_cv_sys_max_cmd_len=196608
5786 ;;
5787
5788 osf*)
5789 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5790 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5791 # nice to cause kernel panics so lets avoid the loop below.
5792 # First set a reasonable default.
5793 lt_cv_sys_max_cmd_len=16384
5794 #
5795 if test -x /sbin/sysconfig; then
5796 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5797 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5798 esac
5799 fi
5800 ;;
5801 sco3.2v5*)
5802 lt_cv_sys_max_cmd_len=102400
5803 ;;
5804 sysv5* | sco5v6* | sysv4.2uw2*)
5805 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5806 if test -n "$kargmax"; then
5807 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5808 else
5809 lt_cv_sys_max_cmd_len=32768
5810 fi
5811 ;;
5812 *)
5813 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5814 if test -n "$lt_cv_sys_max_cmd_len"; then
5815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5817 else
5818 # Make teststring a little bigger before we do anything with it.
5819 # a 1K string should be a reasonable start.
5820 for i in 1 2 3 4 5 6 7 8 ; do
5821 teststring=$teststring$teststring
5822 done
5823 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5824 # If test is not a shell built-in, we'll probably end up computing a
5825 # maximum length that is only half of the actual maximum length, but
5826 # we can't tell.
5827 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5828 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5829 test $i != 17 # 1/2 MB should be enough
5830 do
5831 i=`expr $i + 1`
5832 teststring=$teststring$teststring
5833 done
5834 # Only check the string length outside the loop.
5835 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5836 teststring=
5837 # Add a significant safety factor because C++ compilers can tack on
5838 # massive amounts of additional arguments before passing them to the
5839 # linker. It appears as though 1/2 is a usable value.
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5841 fi
5842 ;;
5843 esac
5844
5845 fi
5846
5847 if test -n $lt_cv_sys_max_cmd_len ; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5849 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5850 else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5852 $as_echo "none" >&6; }
5853 fi
5854 max_cmd_len=$lt_cv_sys_max_cmd_len
5855
5856
5857
5858
5859
5860
5861 : ${CP="cp -f"}
5862 : ${MV="mv -f"}
5863 : ${RM="rm -f"}
5864
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5866 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5867 # Try some XSI features
5868 xsi_shell=no
5869 ( _lt_dummy="a/b/c"
5870 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5871 = c,a/b,, \
5872 && eval 'test $(( 1 + 1 )) -eq 2 \
5873 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5874 && xsi_shell=yes
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5876 $as_echo "$xsi_shell" >&6; }
5877
5878
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5880 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5881 lt_shell_append=no
5882 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5883 >/dev/null 2>&1 \
5884 && lt_shell_append=yes
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5886 $as_echo "$lt_shell_append" >&6; }
5887
5888
5889 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5890 lt_unset=unset
5891 else
5892 lt_unset=false
5893 fi
5894
5895
5896
5897
5898
5899 # test EBCDIC or ASCII
5900 case `echo X|tr X '\101'` in
5901 A) # ASCII based system
5902 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5903 lt_SP2NL='tr \040 \012'
5904 lt_NL2SP='tr \015\012 \040\040'
5905 ;;
5906 *) # EBCDIC based system
5907 lt_SP2NL='tr \100 \n'
5908 lt_NL2SP='tr \r\n \100\100'
5909 ;;
5910 esac
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5921 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5922 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 lt_cv_ld_reload_flag='-r'
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5928 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5929 reload_flag=$lt_cv_ld_reload_flag
5930 case $reload_flag in
5931 "" | " "*) ;;
5932 *) reload_flag=" $reload_flag" ;;
5933 esac
5934 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5935 case $host_os in
5936 darwin*)
5937 if test "$GCC" = yes; then
5938 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5939 else
5940 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5941 fi
5942 ;;
5943 esac
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953 if test -n "$ac_tool_prefix"; then
5954 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5955 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if test -n "$OBJDUMP"; then
5962 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5974 fi
5975 done
5976 done
5977 IFS=$as_save_IFS
5978
5979 fi
5980 fi
5981 OBJDUMP=$ac_cv_prog_OBJDUMP
5982 if test -n "$OBJDUMP"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5984 $as_echo "$OBJDUMP" >&6; }
5985 else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5988 fi
5989
5990
5991 fi
5992 if test -z "$ac_cv_prog_OBJDUMP"; then
5993 ac_ct_OBJDUMP=$OBJDUMP
5994 # Extract the first word of "objdump", so it can be a program name with args.
5995 set dummy objdump; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if test -n "$ac_ct_OBJDUMP"; then
6002 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015 done
6016 done
6017 IFS=$as_save_IFS
6018
6019 fi
6020 fi
6021 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6022 if test -n "$ac_ct_OBJDUMP"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6024 $as_echo "$ac_ct_OBJDUMP" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6028 fi
6029
6030 if test "x$ac_ct_OBJDUMP" = x; then
6031 OBJDUMP="false"
6032 else
6033 case $cross_compiling:$ac_tool_warned in
6034 yes:)
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6037 ac_tool_warned=yes ;;
6038 esac
6039 OBJDUMP=$ac_ct_OBJDUMP
6040 fi
6041 else
6042 OBJDUMP="$ac_cv_prog_OBJDUMP"
6043 fi
6044
6045 test -z "$OBJDUMP" && OBJDUMP=objdump
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6056 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6057 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 lt_cv_file_magic_cmd='$MAGIC_CMD'
6061 lt_cv_file_magic_test_file=
6062 lt_cv_deplibs_check_method='unknown'
6063 # Need to set the preceding variable on all platforms that support
6064 # interlibrary dependencies.
6065 # 'none' -- dependencies not supported.
6066 # `unknown' -- same as none, but documents that we really don't know.
6067 # 'pass_all' -- all dependencies passed with no checks.
6068 # 'test_compile' -- check by making test program.
6069 # 'file_magic [[regex]]' -- check by looking for files in library path
6070 # which responds to the $file_magic_cmd with a given extended regex.
6071 # If you have `file' or equivalent on your system and you're not sure
6072 # whether `pass_all' will *always* work, you probably want this one.
6073
6074 case $host_os in
6075 aix[4-9]*)
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6078
6079 beos*)
6080 lt_cv_deplibs_check_method=pass_all
6081 ;;
6082
6083 bsdi[45]*)
6084 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6085 lt_cv_file_magic_cmd='/usr/bin/file -L'
6086 lt_cv_file_magic_test_file=/shlib/libc.so
6087 ;;
6088
6089 cygwin*)
6090 # func_win32_libid is a shell function defined in ltmain.sh
6091 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6092 lt_cv_file_magic_cmd='func_win32_libid'
6093 ;;
6094
6095 mingw* | pw32*)
6096 # Base MSYS/MinGW do not provide the 'file' command needed by
6097 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6098 # unless we find 'file', for example because we are cross-compiling.
6099 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6100 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6102 lt_cv_file_magic_cmd='func_win32_libid'
6103 else
6104 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6105 lt_cv_file_magic_cmd='$OBJDUMP -f'
6106 fi
6107 ;;
6108
6109 cegcc*)
6110 # use the weaker test based on 'objdump'. See mingw*.
6111 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6112 lt_cv_file_magic_cmd='$OBJDUMP -f'
6113 ;;
6114
6115 darwin* | rhapsody*)
6116 lt_cv_deplibs_check_method=pass_all
6117 ;;
6118
6119 freebsd* | dragonfly*)
6120 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6121 case $host_cpu in
6122 i*86 )
6123 # Not sure whether the presence of OpenBSD here was a mistake.
6124 # Let's accept both of them until this is cleared up.
6125 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6126 lt_cv_file_magic_cmd=/usr/bin/file
6127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6128 ;;
6129 esac
6130 else
6131 lt_cv_deplibs_check_method=pass_all
6132 fi
6133 ;;
6134
6135 gnu*)
6136 lt_cv_deplibs_check_method=pass_all
6137 ;;
6138
6139 haiku*)
6140 lt_cv_deplibs_check_method=pass_all
6141 ;;
6142
6143 hpux10.20* | hpux11*)
6144 lt_cv_file_magic_cmd=/usr/bin/file
6145 case $host_cpu in
6146 ia64*)
6147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6148 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6149 ;;
6150 hppa*64*)
6151 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]'
6152 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6153 ;;
6154 *)
6155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6156 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6157 ;;
6158 esac
6159 ;;
6160
6161 interix[3-9]*)
6162 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6164 ;;
6165
6166 irix5* | irix6* | nonstopux*)
6167 case $LD in
6168 *-32|*"-32 ") libmagic=32-bit;;
6169 *-n32|*"-n32 ") libmagic=N32;;
6170 *-64|*"-64 ") libmagic=64-bit;;
6171 *) libmagic=never-match;;
6172 esac
6173 lt_cv_deplibs_check_method=pass_all
6174 ;;
6175
6176 # This must be Linux ELF.
6177 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6178 lt_cv_deplibs_check_method=pass_all
6179 ;;
6180
6181 netbsd*)
6182 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6184 else
6185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6186 fi
6187 ;;
6188
6189 newos6*)
6190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6191 lt_cv_file_magic_cmd=/usr/bin/file
6192 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6193 ;;
6194
6195 *nto* | *qnx*)
6196 lt_cv_deplibs_check_method=pass_all
6197 ;;
6198
6199 openbsd*)
6200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6202 else
6203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6204 fi
6205 ;;
6206
6207 osf3* | osf4* | osf5*)
6208 lt_cv_deplibs_check_method=pass_all
6209 ;;
6210
6211 rdos*)
6212 lt_cv_deplibs_check_method=pass_all
6213 ;;
6214
6215 solaris*)
6216 lt_cv_deplibs_check_method=pass_all
6217 ;;
6218
6219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6220 lt_cv_deplibs_check_method=pass_all
6221 ;;
6222
6223 sysv4 | sysv4.3*)
6224 case $host_vendor in
6225 motorola)
6226 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]'
6227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6228 ;;
6229 ncr)
6230 lt_cv_deplibs_check_method=pass_all
6231 ;;
6232 sequent)
6233 lt_cv_file_magic_cmd='/bin/file'
6234 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6235 ;;
6236 sni)
6237 lt_cv_file_magic_cmd='/bin/file'
6238 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6239 lt_cv_file_magic_test_file=/lib/libc.so
6240 ;;
6241 siemens)
6242 lt_cv_deplibs_check_method=pass_all
6243 ;;
6244 pc)
6245 lt_cv_deplibs_check_method=pass_all
6246 ;;
6247 esac
6248 ;;
6249
6250 tpf*)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
6253 esac
6254
6255 fi
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6257 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6258 file_magic_cmd=$lt_cv_file_magic_cmd
6259 deplibs_check_method=$lt_cv_deplibs_check_method
6260 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273 if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}ar; 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 test "${ac_cv_prog_AR+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 if test -n "$AR"; then
6282 ac_cv_prog_AR="$AR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_AR="${ac_tool_prefix}ar"
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 AR=$ac_cv_prog_AR
6302 if test -n "$AR"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6304 $as_echo "$AR" >&6; }
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309
6310
6311 fi
6312 if test -z "$ac_cv_prog_AR"; then
6313 ac_ct_AR=$AR
6314 # Extract the first word of "ar", so it can be a program name with args.
6315 set dummy ar; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 if test -n "$ac_ct_AR"; then
6322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_ac_ct_AR="ar"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339 fi
6340 fi
6341 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6342 if test -n "$ac_ct_AR"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6344 $as_echo "$ac_ct_AR" >&6; }
6345 else
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349
6350 if test "x$ac_ct_AR" = x; then
6351 AR="false"
6352 else
6353 case $cross_compiling:$ac_tool_warned in
6354 yes:)
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6358 esac
6359 AR=$ac_ct_AR
6360 fi
6361 else
6362 AR="$ac_cv_prog_AR"
6363 fi
6364
6365 test -z "$AR" && AR=ar
6366 test -z "$AR_FLAGS" && AR_FLAGS=cru
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}strip; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if test "${ac_cv_prog_STRIP+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 if test -n "$STRIP"; then
6387 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6399 fi
6400 done
6401 done
6402 IFS=$as_save_IFS
6403
6404 fi
6405 fi
6406 STRIP=$ac_cv_prog_STRIP
6407 if test -n "$STRIP"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6409 $as_echo "$STRIP" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6413 fi
6414
6415
6416 fi
6417 if test -z "$ac_cv_prog_STRIP"; then
6418 ac_ct_STRIP=$STRIP
6419 # Extract the first word of "strip", so it can be a program name with args.
6420 set dummy strip; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$ac_ct_STRIP"; then
6427 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_ac_ct_STRIP="strip"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440 done
6441 done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6447 if test -n "$ac_ct_STRIP"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6449 $as_echo "$ac_ct_STRIP" >&6; }
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454
6455 if test "x$ac_ct_STRIP" = x; then
6456 STRIP=":"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464 STRIP=$ac_ct_STRIP
6465 fi
6466 else
6467 STRIP="$ac_cv_prog_STRIP"
6468 fi
6469
6470 test -z "$STRIP" && STRIP=:
6471
6472
6473
6474
6475
6476
6477 if test -n "$ac_tool_prefix"; then
6478 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6479 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 if test -n "$RANLIB"; then
6486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6498 fi
6499 done
6500 done
6501 IFS=$as_save_IFS
6502
6503 fi
6504 fi
6505 RANLIB=$ac_cv_prog_RANLIB
6506 if test -n "$RANLIB"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6508 $as_echo "$RANLIB" >&6; }
6509 else
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6512 fi
6513
6514
6515 fi
6516 if test -z "$ac_cv_prog_RANLIB"; then
6517 ac_ct_RANLIB=$RANLIB
6518 # Extract the first word of "ranlib", so it can be a program name with args.
6519 set dummy ranlib; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 if test -n "$ac_ct_RANLIB"; then
6526 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531 IFS=$as_save_IFS
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6535 ac_cv_prog_ac_ct_RANLIB="ranlib"
6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 break 2
6538 fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543 fi
6544 fi
6545 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6546 if test -n "$ac_ct_RANLIB"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6548 $as_echo "$ac_ct_RANLIB" >&6; }
6549 else
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6552 fi
6553
6554 if test "x$ac_ct_RANLIB" = x; then
6555 RANLIB=":"
6556 else
6557 case $cross_compiling:$ac_tool_warned in
6558 yes:)
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6561 ac_tool_warned=yes ;;
6562 esac
6563 RANLIB=$ac_ct_RANLIB
6564 fi
6565 else
6566 RANLIB="$ac_cv_prog_RANLIB"
6567 fi
6568
6569 test -z "$RANLIB" && RANLIB=:
6570
6571
6572
6573
6574
6575
6576 # Determine commands to create old-style static archives.
6577 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6578 old_postinstall_cmds='chmod 644 $oldlib'
6579 old_postuninstall_cmds=
6580
6581 if test -n "$RANLIB"; then
6582 case $host_os in
6583 openbsd*)
6584 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6585 ;;
6586 *)
6587 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6588 ;;
6589 esac
6590 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6591 fi
6592
6593 case $host_os in
6594 darwin*)
6595 lock_old_archive_extraction=yes ;;
6596 *)
6597 lock_old_archive_extraction=no ;;
6598 esac
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638 # If no C compiler was specified, use CC.
6639 LTCC=${LTCC-"$CC"}
6640
6641 # If no C compiler flags were specified, use CFLAGS.
6642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6643
6644 # Allow CC to be a program name with arguments.
6645 compiler=$CC
6646
6647
6648 # Check for command to grab the raw symbol name followed by C symbol from nm.
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6650 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6651 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654
6655 # These are sane defaults that work on at least a few old systems.
6656 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6657
6658 # Character class describing NM global symbol codes.
6659 symcode='[BCDEGRST]'
6660
6661 # Regexp to match symbols that can be accessed directly from C.
6662 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6663
6664 # Define system-specific variables.
6665 case $host_os in
6666 aix*)
6667 symcode='[BCDT]'
6668 ;;
6669 cygwin* | mingw* | pw32* | cegcc*)
6670 symcode='[ABCDGISTW]'
6671 ;;
6672 hpux*)
6673 if test "$host_cpu" = ia64; then
6674 symcode='[ABCDEGRST]'
6675 fi
6676 ;;
6677 irix* | nonstopux*)
6678 symcode='[BCDEGRST]'
6679 ;;
6680 osf*)
6681 symcode='[BCDEGQRST]'
6682 ;;
6683 solaris*)
6684 symcode='[BDRT]'
6685 ;;
6686 sco3.2v5*)
6687 symcode='[DT]'
6688 ;;
6689 sysv4.2uw2*)
6690 symcode='[DT]'
6691 ;;
6692 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6693 symcode='[ABDT]'
6694 ;;
6695 sysv4)
6696 symcode='[DFNSTU]'
6697 ;;
6698 esac
6699
6700 # If we're using GNU nm, then use its standard symbol codes.
6701 case `$NM -V 2>&1` in
6702 *GNU* | *'with BFD'*)
6703 symcode='[ABCDGIRSTW]' ;;
6704 esac
6705
6706 # Transform an extracted symbol line into a proper C declaration.
6707 # Some systems (esp. on ia64) link data and code symbols differently,
6708 # so use this general approach.
6709 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6710
6711 # Transform an extracted symbol line into symbol name and symbol address
6712 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6713 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'"
6714
6715 # Handle CRLF in mingw tool chain
6716 opt_cr=
6717 case $build_os in
6718 mingw*)
6719 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6720 ;;
6721 esac
6722
6723 # Try without a prefix underscore, then with it.
6724 for ac_symprfx in "" "_"; do
6725
6726 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6727 symxfrm="\\1 $ac_symprfx\\2 \\2"
6728
6729 # Write the raw and C identifiers.
6730 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6731 # Fake it for dumpbin and say T for any non-static function
6732 # and D for any global variable.
6733 # Also find C++ and __fastcall symbols from MSVC++,
6734 # which start with @ or ?.
6735 lt_cv_sys_global_symbol_pipe="$AWK '"\
6736 " {last_section=section; section=\$ 3};"\
6737 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6738 " \$ 0!~/External *\|/{next};"\
6739 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6740 " {if(hide[section]) next};"\
6741 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6742 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6743 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6744 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6745 " ' prfx=^$ac_symprfx"
6746 else
6747 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6748 fi
6749
6750 # Check to see that the pipe works correctly.
6751 pipe_works=no
6752
6753 rm -f conftest*
6754 cat > conftest.$ac_ext <<_LT_EOF
6755 #ifdef __cplusplus
6756 extern "C" {
6757 #endif
6758 char nm_test_var;
6759 void nm_test_func(void);
6760 void nm_test_func(void){}
6761 #ifdef __cplusplus
6762 }
6763 #endif
6764 int main(){nm_test_var='a';nm_test_func();return(0);}
6765 _LT_EOF
6766
6767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6768 (eval $ac_compile) 2>&5
6769 ac_status=$?
6770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6771 test $ac_status = 0; }; then
6772 # Now try to grab the symbols.
6773 nlist=conftest.nm
6774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6775 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6776 ac_status=$?
6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778 test $ac_status = 0; } && test -s "$nlist"; then
6779 # Try sorting and uniquifying the output.
6780 if sort "$nlist" | uniq > "$nlist"T; then
6781 mv -f "$nlist"T "$nlist"
6782 else
6783 rm -f "$nlist"T
6784 fi
6785
6786 # Make sure that we snagged all the symbols we need.
6787 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6788 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6789 cat <<_LT_EOF > conftest.$ac_ext
6790 #ifdef __cplusplus
6791 extern "C" {
6792 #endif
6793
6794 _LT_EOF
6795 # Now generate the symbol file.
6796 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6797
6798 cat <<_LT_EOF >> conftest.$ac_ext
6799
6800 /* The mapping between symbol names and symbols. */
6801 const struct {
6802 const char *name;
6803 void *address;
6804 }
6805 lt__PROGRAM__LTX_preloaded_symbols[] =
6806 {
6807 { "@PROGRAM@", (void *) 0 },
6808 _LT_EOF
6809 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6810 cat <<\_LT_EOF >> conftest.$ac_ext
6811 {0, (void *) 0}
6812 };
6813
6814 /* This works around a problem in FreeBSD linker */
6815 #ifdef FREEBSD_WORKAROUND
6816 static const void *lt_preloaded_setup() {
6817 return lt__PROGRAM__LTX_preloaded_symbols;
6818 }
6819 #endif
6820
6821 #ifdef __cplusplus
6822 }
6823 #endif
6824 _LT_EOF
6825 # Now try linking the two files.
6826 mv conftest.$ac_objext conftstm.$ac_objext
6827 lt_save_LIBS="$LIBS"
6828 lt_save_CFLAGS="$CFLAGS"
6829 LIBS="conftstm.$ac_objext"
6830 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6832 (eval $ac_link) 2>&5
6833 ac_status=$?
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6836 pipe_works=yes
6837 fi
6838 LIBS="$lt_save_LIBS"
6839 CFLAGS="$lt_save_CFLAGS"
6840 else
6841 echo "cannot find nm_test_func in $nlist" >&5
6842 fi
6843 else
6844 echo "cannot find nm_test_var in $nlist" >&5
6845 fi
6846 else
6847 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6848 fi
6849 else
6850 echo "$progname: failed program was:" >&5
6851 cat conftest.$ac_ext >&5
6852 fi
6853 rm -rf conftest* conftst*
6854
6855 # Do not use the global_symbol_pipe unless it works.
6856 if test "$pipe_works" = yes; then
6857 break
6858 else
6859 lt_cv_sys_global_symbol_pipe=
6860 fi
6861 done
6862
6863 fi
6864
6865 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6866 lt_cv_sys_global_symbol_to_cdecl=
6867 fi
6868 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6870 $as_echo "failed" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6873 $as_echo "ok" >&6; }
6874 fi
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897 # Check whether --enable-libtool-lock was given.
6898 if test "${enable_libtool_lock+set}" = set; then :
6899 enableval=$enable_libtool_lock;
6900 fi
6901
6902 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6903
6904 # Some flags need to be propagated to the compiler or linker for good
6905 # libtool support.
6906 case $host in
6907 ia64-*-hpux*)
6908 # Find out which ABI we are using.
6909 echo 'int i;' > conftest.$ac_ext
6910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6911 (eval $ac_compile) 2>&5
6912 ac_status=$?
6913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6914 test $ac_status = 0; }; then
6915 case `/usr/bin/file conftest.$ac_objext` in
6916 *ELF-32*)
6917 HPUX_IA64_MODE="32"
6918 ;;
6919 *ELF-64*)
6920 HPUX_IA64_MODE="64"
6921 ;;
6922 esac
6923 fi
6924 rm -rf conftest*
6925 ;;
6926 *-*-irix6*)
6927 # Find out which ABI we are using.
6928 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930 (eval $ac_compile) 2>&5
6931 ac_status=$?
6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933 test $ac_status = 0; }; then
6934 if test "$lt_cv_prog_gnu_ld" = yes; then
6935 case `/usr/bin/file conftest.$ac_objext` in
6936 *32-bit*)
6937 LD="${LD-ld} -melf32bsmip"
6938 ;;
6939 *N32*)
6940 LD="${LD-ld} -melf32bmipn32"
6941 ;;
6942 *64-bit*)
6943 LD="${LD-ld} -melf64bmip"
6944 ;;
6945 esac
6946 else
6947 case `/usr/bin/file conftest.$ac_objext` in
6948 *32-bit*)
6949 LD="${LD-ld} -32"
6950 ;;
6951 *N32*)
6952 LD="${LD-ld} -n32"
6953 ;;
6954 *64-bit*)
6955 LD="${LD-ld} -64"
6956 ;;
6957 esac
6958 fi
6959 fi
6960 rm -rf conftest*
6961 ;;
6962
6963 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6964 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6965 # Find out which ABI we are using.
6966 echo 'int i;' > conftest.$ac_ext
6967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6968 (eval $ac_compile) 2>&5
6969 ac_status=$?
6970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6971 test $ac_status = 0; }; then
6972 case `/usr/bin/file conftest.o` in
6973 *32-bit*)
6974 case $host in
6975 x86_64-*kfreebsd*-gnu)
6976 LD="${LD-ld} -m elf_i386_fbsd"
6977 ;;
6978 x86_64-*linux*)
6979 LD="${LD-ld} -m elf_i386"
6980 ;;
6981 ppc64-*linux*|powerpc64-*linux*)
6982 LD="${LD-ld} -m elf32ppclinux"
6983 ;;
6984 s390x-*linux*)
6985 LD="${LD-ld} -m elf_s390"
6986 ;;
6987 sparc64-*linux*)
6988 LD="${LD-ld} -m elf32_sparc"
6989 ;;
6990 esac
6991 ;;
6992 *64-bit*)
6993 case $host in
6994 x86_64-*kfreebsd*-gnu)
6995 LD="${LD-ld} -m elf_x86_64_fbsd"
6996 ;;
6997 x86_64-*linux*)
6998 LD="${LD-ld} -m elf_x86_64"
6999 ;;
7000 ppc*-*linux*|powerpc*-*linux*)
7001 LD="${LD-ld} -m elf64ppc"
7002 ;;
7003 s390*-*linux*|s390*-*tpf*)
7004 LD="${LD-ld} -m elf64_s390"
7005 ;;
7006 sparc*-*linux*)
7007 LD="${LD-ld} -m elf64_sparc"
7008 ;;
7009 esac
7010 ;;
7011 esac
7012 fi
7013 rm -rf conftest*
7014 ;;
7015
7016 *-*-sco3.2v5*)
7017 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7018 SAVE_CFLAGS="$CFLAGS"
7019 CFLAGS="$CFLAGS -belf"
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7021 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7022 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 ac_ext=c
7026 ac_cpp='$CPP $CPPFLAGS'
7027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7030
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7033
7034 int
7035 main ()
7036 {
7037
7038 ;
7039 return 0;
7040 }
7041 _ACEOF
7042 if ac_fn_c_try_link "$LINENO"; then :
7043 lt_cv_cc_needs_belf=yes
7044 else
7045 lt_cv_cc_needs_belf=no
7046 fi
7047 rm -f core conftest.err conftest.$ac_objext \
7048 conftest$ac_exeext conftest.$ac_ext
7049 ac_ext=c
7050 ac_cpp='$CPP $CPPFLAGS'
7051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7054
7055 fi
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7057 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7058 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7059 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7060 CFLAGS="$SAVE_CFLAGS"
7061 fi
7062 ;;
7063 sparc*-*solaris*)
7064 # Find out which ABI we are using.
7065 echo 'int i;' > conftest.$ac_ext
7066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7067 (eval $ac_compile) 2>&5
7068 ac_status=$?
7069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070 test $ac_status = 0; }; then
7071 case `/usr/bin/file conftest.o` in
7072 *64-bit*)
7073 case $lt_cv_prog_gnu_ld in
7074 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7075 *)
7076 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7077 LD="${LD-ld} -64"
7078 fi
7079 ;;
7080 esac
7081 ;;
7082 esac
7083 fi
7084 rm -rf conftest*
7085 ;;
7086 esac
7087
7088 need_locks="$enable_libtool_lock"
7089
7090
7091 case $host_os in
7092 rhapsody* | darwin*)
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 if test -n "$DSYMUTIL"; then
7102 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7114 fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7122 if test -n "$DSYMUTIL"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7124 $as_echo "$DSYMUTIL" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7128 fi
7129
7130
7131 fi
7132 if test -z "$ac_cv_prog_DSYMUTIL"; then
7133 ac_ct_DSYMUTIL=$DSYMUTIL
7134 # Extract the first word of "dsymutil", so it can be a program name with args.
7135 set dummy dsymutil; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$ac_ct_DSYMUTIL"; then
7142 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7162 if test -n "$ac_ct_DSYMUTIL"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7164 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169
7170 if test "x$ac_ct_DSYMUTIL" = x; then
7171 DSYMUTIL=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177 ac_tool_warned=yes ;;
7178 esac
7179 DSYMUTIL=$ac_ct_DSYMUTIL
7180 fi
7181 else
7182 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7183 fi
7184
7185 if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 if test -n "$NMEDIT"; then
7194 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207 done
7208 done
7209 IFS=$as_save_IFS
7210
7211 fi
7212 fi
7213 NMEDIT=$ac_cv_prog_NMEDIT
7214 if test -n "$NMEDIT"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7216 $as_echo "$NMEDIT" >&6; }
7217 else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7220 fi
7221
7222
7223 fi
7224 if test -z "$ac_cv_prog_NMEDIT"; then
7225 ac_ct_NMEDIT=$NMEDIT
7226 # Extract the first word of "nmedit", so it can be a program name with args.
7227 set dummy nmedit; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 if test -n "$ac_ct_NMEDIT"; then
7234 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247 done
7248 done
7249 IFS=$as_save_IFS
7250
7251 fi
7252 fi
7253 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7254 if test -n "$ac_ct_NMEDIT"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7256 $as_echo "$ac_ct_NMEDIT" >&6; }
7257 else
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7260 fi
7261
7262 if test "x$ac_ct_NMEDIT" = x; then
7263 NMEDIT=":"
7264 else
7265 case $cross_compiling:$ac_tool_warned in
7266 yes:)
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269 ac_tool_warned=yes ;;
7270 esac
7271 NMEDIT=$ac_ct_NMEDIT
7272 fi
7273 else
7274 NMEDIT="$ac_cv_prog_NMEDIT"
7275 fi
7276
7277 if test -n "$ac_tool_prefix"; then
7278 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7279 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if test "${ac_cv_prog_LIPO+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 if test -n "$LIPO"; then
7286 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299 done
7300 done
7301 IFS=$as_save_IFS
7302
7303 fi
7304 fi
7305 LIPO=$ac_cv_prog_LIPO
7306 if test -n "$LIPO"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7308 $as_echo "$LIPO" >&6; }
7309 else
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7312 fi
7313
7314
7315 fi
7316 if test -z "$ac_cv_prog_LIPO"; then
7317 ac_ct_LIPO=$LIPO
7318 # Extract the first word of "lipo", so it can be a program name with args.
7319 set dummy lipo; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 if test -n "$ac_ct_LIPO"; then
7326 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_ac_ct_LIPO="lipo"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7338 fi
7339 done
7340 done
7341 IFS=$as_save_IFS
7342
7343 fi
7344 fi
7345 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7346 if test -n "$ac_ct_LIPO"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7348 $as_echo "$ac_ct_LIPO" >&6; }
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353
7354 if test "x$ac_ct_LIPO" = x; then
7355 LIPO=":"
7356 else
7357 case $cross_compiling:$ac_tool_warned in
7358 yes:)
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361 ac_tool_warned=yes ;;
7362 esac
7363 LIPO=$ac_ct_LIPO
7364 fi
7365 else
7366 LIPO="$ac_cv_prog_LIPO"
7367 fi
7368
7369 if test -n "$ac_tool_prefix"; then
7370 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7371 set dummy ${ac_tool_prefix}otool; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 if test -n "$OTOOL"; then
7378 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7390 fi
7391 done
7392 done
7393 IFS=$as_save_IFS
7394
7395 fi
7396 fi
7397 OTOOL=$ac_cv_prog_OTOOL
7398 if test -n "$OTOOL"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7400 $as_echo "$OTOOL" >&6; }
7401 else
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405
7406
7407 fi
7408 if test -z "$ac_cv_prog_OTOOL"; then
7409 ac_ct_OTOOL=$OTOOL
7410 # Extract the first word of "otool", so it can be a program name with args.
7411 set dummy otool; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 if test -n "$ac_ct_OTOOL"; then
7418 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_prog_ac_ct_OTOOL="otool"
7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7430 fi
7431 done
7432 done
7433 IFS=$as_save_IFS
7434
7435 fi
7436 fi
7437 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7438 if test -n "$ac_ct_OTOOL"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7440 $as_echo "$ac_ct_OTOOL" >&6; }
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 fi
7445
7446 if test "x$ac_ct_OTOOL" = x; then
7447 OTOOL=":"
7448 else
7449 case $cross_compiling:$ac_tool_warned in
7450 yes:)
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453 ac_tool_warned=yes ;;
7454 esac
7455 OTOOL=$ac_ct_OTOOL
7456 fi
7457 else
7458 OTOOL="$ac_cv_prog_OTOOL"
7459 fi
7460
7461 if test -n "$ac_tool_prefix"; then
7462 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7463 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 if test -n "$OTOOL64"; then
7470 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7482 fi
7483 done
7484 done
7485 IFS=$as_save_IFS
7486
7487 fi
7488 fi
7489 OTOOL64=$ac_cv_prog_OTOOL64
7490 if test -n "$OTOOL64"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7492 $as_echo "$OTOOL64" >&6; }
7493 else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7496 fi
7497
7498
7499 fi
7500 if test -z "$ac_cv_prog_OTOOL64"; then
7501 ac_ct_OTOOL64=$OTOOL64
7502 # Extract the first word of "otool64", so it can be a program name with args.
7503 set dummy otool64; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509 if test -n "$ac_ct_OTOOL64"; then
7510 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7511 else
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7514 do
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_prog_ac_ct_OTOOL64="otool64"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7522 fi
7523 done
7524 done
7525 IFS=$as_save_IFS
7526
7527 fi
7528 fi
7529 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7530 if test -n "$ac_ct_OTOOL64"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7532 $as_echo "$ac_ct_OTOOL64" >&6; }
7533 else
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7536 fi
7537
7538 if test "x$ac_ct_OTOOL64" = x; then
7539 OTOOL64=":"
7540 else
7541 case $cross_compiling:$ac_tool_warned in
7542 yes:)
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545 ac_tool_warned=yes ;;
7546 esac
7547 OTOOL64=$ac_ct_OTOOL64
7548 fi
7549 else
7550 OTOOL64="$ac_cv_prog_OTOOL64"
7551 fi
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7580 $as_echo_n "checking for -single_module linker flag... " >&6; }
7581 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 lt_cv_apple_cc_single_mod=no
7585 if test -z "${LT_MULTI_MODULE}"; then
7586 # By default we will add the -single_module flag. You can override
7587 # by either setting the environment variable LT_MULTI_MODULE
7588 # non-empty at configure time, or by adding -multi_module to the
7589 # link flags.
7590 rm -rf libconftest.dylib*
7591 echo "int foo(void){return 1;}" > conftest.c
7592 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7593 -dynamiclib -Wl,-single_module conftest.c" >&5
7594 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7595 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7596 _lt_result=$?
7597 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7598 lt_cv_apple_cc_single_mod=yes
7599 else
7600 cat conftest.err >&5
7601 fi
7602 rm -rf libconftest.dylib*
7603 rm -f conftest.*
7604 fi
7605 fi
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7607 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7609 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7610 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 lt_cv_ld_exported_symbols_list=no
7614 save_LDFLAGS=$LDFLAGS
7615 echo "_main" > conftest.sym
7616 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619
7620 int
7621 main ()
7622 {
7623
7624 ;
7625 return 0;
7626 }
7627 _ACEOF
7628 if ac_fn_c_try_link "$LINENO"; then :
7629 lt_cv_ld_exported_symbols_list=yes
7630 else
7631 lt_cv_ld_exported_symbols_list=no
7632 fi
7633 rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635 LDFLAGS="$save_LDFLAGS"
7636
7637 fi
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7639 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7641 $as_echo_n "checking for -force_load linker flag... " >&6; }
7642 if test "${lt_cv_ld_force_load+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 lt_cv_ld_force_load=no
7646 cat > conftest.c << _LT_EOF
7647 int forced_loaded() { return 2;}
7648 _LT_EOF
7649 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7650 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7651 echo "$AR cru libconftest.a conftest.o" >&5
7652 $AR cru libconftest.a conftest.o 2>&5
7653 cat > conftest.c << _LT_EOF
7654 int main() { return 0;}
7655 _LT_EOF
7656 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7657 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7658 _lt_result=$?
7659 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7660 lt_cv_ld_force_load=yes
7661 else
7662 cat conftest.err >&5
7663 fi
7664 rm -f conftest.err libconftest.a conftest conftest.c
7665 rm -rf conftest.dSYM
7666
7667 fi
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7669 $as_echo "$lt_cv_ld_force_load" >&6; }
7670 case $host_os in
7671 rhapsody* | darwin1.[012])
7672 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7673 darwin1.*)
7674 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7675 darwin*) # darwin 5.x on
7676 # if running on 10.5 or later, the deployment target defaults
7677 # to the OS version, if on x86, and 10.4, the deployment
7678 # target defaults to 10.4. Don't you love it?
7679 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7680 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7681 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7682 10.[012]*)
7683 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7684 10.*)
7685 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7686 esac
7687 ;;
7688 esac
7689 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7690 _lt_dar_single_mod='$single_module'
7691 fi
7692 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7693 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7694 else
7695 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7696 fi
7697 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7698 _lt_dsymutil='~$DSYMUTIL $lib || :'
7699 else
7700 _lt_dsymutil=
7701 fi
7702 ;;
7703 esac
7704
7705 for ac_header in dlfcn.h
7706 do :
7707 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7708 "
7709 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7710 cat >>confdefs.h <<_ACEOF
7711 #define HAVE_DLFCN_H 1
7712 _ACEOF
7713
7714 fi
7715
7716 done
7717
7718
7719
7720
7721
7722 # Set options
7723
7724
7725
7726 enable_dlopen=no
7727
7728
7729 enable_win32_dll=no
7730
7731
7732 # Check whether --enable-shared was given.
7733 if test "${enable_shared+set}" = set; then :
7734 enableval=$enable_shared; p=${PACKAGE-default}
7735 case $enableval in
7736 yes) enable_shared=yes ;;
7737 no) enable_shared=no ;;
7738 *)
7739 enable_shared=no
7740 # Look at the argument we got. We use all the common list separators.
7741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7742 for pkg in $enableval; do
7743 IFS="$lt_save_ifs"
7744 if test "X$pkg" = "X$p"; then
7745 enable_shared=yes
7746 fi
7747 done
7748 IFS="$lt_save_ifs"
7749 ;;
7750 esac
7751 else
7752 enable_shared=yes
7753 fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763 # Check whether --enable-static was given.
7764 if test "${enable_static+set}" = set; then :
7765 enableval=$enable_static; p=${PACKAGE-default}
7766 case $enableval in
7767 yes) enable_static=yes ;;
7768 no) enable_static=no ;;
7769 *)
7770 enable_static=no
7771 # Look at the argument we got. We use all the common list separators.
7772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7773 for pkg in $enableval; do
7774 IFS="$lt_save_ifs"
7775 if test "X$pkg" = "X$p"; then
7776 enable_static=yes
7777 fi
7778 done
7779 IFS="$lt_save_ifs"
7780 ;;
7781 esac
7782 else
7783 enable_static=yes
7784 fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795 # Check whether --with-pic was given.
7796 if test "${with_pic+set}" = set; then :
7797 withval=$with_pic; pic_mode="$withval"
7798 else
7799 pic_mode=default
7800 fi
7801
7802
7803 test -z "$pic_mode" && pic_mode=default
7804
7805
7806
7807
7808
7809
7810
7811 # Check whether --enable-fast-install was given.
7812 if test "${enable_fast_install+set}" = set; then :
7813 enableval=$enable_fast_install; p=${PACKAGE-default}
7814 case $enableval in
7815 yes) enable_fast_install=yes ;;
7816 no) enable_fast_install=no ;;
7817 *)
7818 enable_fast_install=no
7819 # Look at the argument we got. We use all the common list separators.
7820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7821 for pkg in $enableval; do
7822 IFS="$lt_save_ifs"
7823 if test "X$pkg" = "X$p"; then
7824 enable_fast_install=yes
7825 fi
7826 done
7827 IFS="$lt_save_ifs"
7828 ;;
7829 esac
7830 else
7831 enable_fast_install=yes
7832 fi
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844 # This can be used to rebuild libtool when needed
7845 LIBTOOL_DEPS="$ltmain"
7846
7847 # Always use our own libtool.
7848 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875 test -z "$LN_S" && LN_S="ln -s"
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890 if test -n "${ZSH_VERSION+set}" ; then
7891 setopt NO_GLOB_SUBST
7892 fi
7893
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7895 $as_echo_n "checking for objdir... " >&6; }
7896 if test "${lt_cv_objdir+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899 rm -f .libs 2>/dev/null
7900 mkdir .libs 2>/dev/null
7901 if test -d .libs; then
7902 lt_cv_objdir=.libs
7903 else
7904 # MS-DOS does not allow filenames that begin with a dot.
7905 lt_cv_objdir=_libs
7906 fi
7907 rmdir .libs 2>/dev/null
7908 fi
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7910 $as_echo "$lt_cv_objdir" >&6; }
7911 objdir=$lt_cv_objdir
7912
7913
7914
7915
7916
7917 cat >>confdefs.h <<_ACEOF
7918 #define LT_OBJDIR "$lt_cv_objdir/"
7919 _ACEOF
7920
7921
7922
7923
7924 case $host_os in
7925 aix3*)
7926 # AIX sometimes has problems with the GCC collect2 program. For some
7927 # reason, if we set the COLLECT_NAMES environment variable, the problems
7928 # vanish in a puff of smoke.
7929 if test "X${COLLECT_NAMES+set}" != Xset; then
7930 COLLECT_NAMES=
7931 export COLLECT_NAMES
7932 fi
7933 ;;
7934 esac
7935
7936 # Global variables:
7937 ofile=libtool
7938 can_build_shared=yes
7939
7940 # All known linkers require a `.a' archive for static linking (except MSVC,
7941 # which needs '.lib').
7942 libext=a
7943
7944 with_gnu_ld="$lt_cv_prog_gnu_ld"
7945
7946 old_CC="$CC"
7947 old_CFLAGS="$CFLAGS"
7948
7949 # Set sane defaults for various variables
7950 test -z "$CC" && CC=cc
7951 test -z "$LTCC" && LTCC=$CC
7952 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7953 test -z "$LD" && LD=ld
7954 test -z "$ac_objext" && ac_objext=o
7955
7956 for cc_temp in $compiler""; do
7957 case $cc_temp in
7958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7960 \-*) ;;
7961 *) break;;
7962 esac
7963 done
7964 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7965
7966
7967 # Only perform the check for file, if the check method requires it
7968 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7969 case $deplibs_check_method in
7970 file_magic*)
7971 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7973 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7974 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 case $MAGIC_CMD in
7978 [\\/*] | ?:[\\/]*)
7979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7980 ;;
7981 *)
7982 lt_save_MAGIC_CMD="$MAGIC_CMD"
7983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7985 for ac_dir in $ac_dummy; do
7986 IFS="$lt_save_ifs"
7987 test -z "$ac_dir" && ac_dir=.
7988 if test -f $ac_dir/${ac_tool_prefix}file; then
7989 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7990 if test -n "$file_magic_test_file"; then
7991 case $deplibs_check_method in
7992 "file_magic "*)
7993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7996 $EGREP "$file_magic_regex" > /dev/null; then
7997 :
7998 else
7999 cat <<_LT_EOF 1>&2
8000
8001 *** Warning: the command libtool uses to detect shared libraries,
8002 *** $file_magic_cmd, produces output that libtool cannot recognize.
8003 *** The result is that libtool may fail to recognize shared libraries
8004 *** as such. This will affect the creation of libtool libraries that
8005 *** depend on shared libraries, but programs linked with such libtool
8006 *** libraries will work regardless of this problem. Nevertheless, you
8007 *** may want to report the problem to your system manager and/or to
8008 *** bug-libtool@gnu.org
8009
8010 _LT_EOF
8011 fi ;;
8012 esac
8013 fi
8014 break
8015 fi
8016 done
8017 IFS="$lt_save_ifs"
8018 MAGIC_CMD="$lt_save_MAGIC_CMD"
8019 ;;
8020 esac
8021 fi
8022
8023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8024 if test -n "$MAGIC_CMD"; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8026 $as_echo "$MAGIC_CMD" >&6; }
8027 else
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8030 fi
8031
8032
8033
8034
8035
8036 if test -z "$lt_cv_path_MAGIC_CMD"; then
8037 if test -n "$ac_tool_prefix"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8039 $as_echo_n "checking for file... " >&6; }
8040 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 case $MAGIC_CMD in
8044 [\\/*] | ?:[\\/]*)
8045 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8046 ;;
8047 *)
8048 lt_save_MAGIC_CMD="$MAGIC_CMD"
8049 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8050 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8051 for ac_dir in $ac_dummy; do
8052 IFS="$lt_save_ifs"
8053 test -z "$ac_dir" && ac_dir=.
8054 if test -f $ac_dir/file; then
8055 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8056 if test -n "$file_magic_test_file"; then
8057 case $deplibs_check_method in
8058 "file_magic "*)
8059 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8061 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8062 $EGREP "$file_magic_regex" > /dev/null; then
8063 :
8064 else
8065 cat <<_LT_EOF 1>&2
8066
8067 *** Warning: the command libtool uses to detect shared libraries,
8068 *** $file_magic_cmd, produces output that libtool cannot recognize.
8069 *** The result is that libtool may fail to recognize shared libraries
8070 *** as such. This will affect the creation of libtool libraries that
8071 *** depend on shared libraries, but programs linked with such libtool
8072 *** libraries will work regardless of this problem. Nevertheless, you
8073 *** may want to report the problem to your system manager and/or to
8074 *** bug-libtool@gnu.org
8075
8076 _LT_EOF
8077 fi ;;
8078 esac
8079 fi
8080 break
8081 fi
8082 done
8083 IFS="$lt_save_ifs"
8084 MAGIC_CMD="$lt_save_MAGIC_CMD"
8085 ;;
8086 esac
8087 fi
8088
8089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8090 if test -n "$MAGIC_CMD"; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8092 $as_echo "$MAGIC_CMD" >&6; }
8093 else
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 $as_echo "no" >&6; }
8096 fi
8097
8098
8099 else
8100 MAGIC_CMD=:
8101 fi
8102 fi
8103
8104 fi
8105 ;;
8106 esac
8107
8108 # Use C for the default configuration in the libtool script
8109
8110 lt_save_CC="$CC"
8111 ac_ext=c
8112 ac_cpp='$CPP $CPPFLAGS'
8113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8116
8117
8118 # Source file extension for C test sources.
8119 ac_ext=c
8120
8121 # Object file extension for compiled C test sources.
8122 objext=o
8123 objext=$objext
8124
8125 # Code to be used in simple compile tests
8126 lt_simple_compile_test_code="int some_variable = 0;"
8127
8128 # Code to be used in simple link tests
8129 lt_simple_link_test_code='int main(){return(0);}'
8130
8131
8132
8133
8134
8135
8136
8137 # If no C compiler was specified, use CC.
8138 LTCC=${LTCC-"$CC"}
8139
8140 # If no C compiler flags were specified, use CFLAGS.
8141 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8142
8143 # Allow CC to be a program name with arguments.
8144 compiler=$CC
8145
8146 # Save the default compiler, since it gets overwritten when the other
8147 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8148 compiler_DEFAULT=$CC
8149
8150 # save warnings/boilerplate of simple test code
8151 ac_outfile=conftest.$ac_objext
8152 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8154 _lt_compiler_boilerplate=`cat conftest.err`
8155 $RM conftest*
8156
8157 ac_outfile=conftest.$ac_objext
8158 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8160 _lt_linker_boilerplate=`cat conftest.err`
8161 $RM -r conftest*
8162
8163
8164 ## CAVEAT EMPTOR:
8165 ## There is no encapsulation within the following macros, do not change
8166 ## the running order or otherwise move them around unless you know exactly
8167 ## what you are doing...
8168 if test -n "$compiler"; then
8169
8170 lt_prog_compiler_no_builtin_flag=
8171
8172 if test "$GCC" = yes; then
8173 case $cc_basename in
8174 nvcc*)
8175 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8176 *)
8177 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8178 esac
8179
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8181 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8182 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
8184 else
8185 lt_cv_prog_compiler_rtti_exceptions=no
8186 ac_outfile=conftest.$ac_objext
8187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8188 lt_compiler_flag="-fno-rtti -fno-exceptions"
8189 # Insert the option either (1) after the last *FLAGS variable, or
8190 # (2) before a word containing "conftest.", or (3) at the end.
8191 # Note that $ac_compile itself does not contain backslashes and begins
8192 # with a dollar sign (not a hyphen), so the echo should work correctly.
8193 # The option is referenced via a variable to avoid confusing sed.
8194 lt_compile=`echo "$ac_compile" | $SED \
8195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8197 -e 's:$: $lt_compiler_flag:'`
8198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8199 (eval "$lt_compile" 2>conftest.err)
8200 ac_status=$?
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 if (exit $ac_status) && test -s "$ac_outfile"; then
8204 # The compiler can only warn and ignore the option if not recognized
8205 # So say no if there are warnings other than the usual output.
8206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8209 lt_cv_prog_compiler_rtti_exceptions=yes
8210 fi
8211 fi
8212 $RM conftest*
8213
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8216 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8217
8218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8219 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8220 else
8221 :
8222 fi
8223
8224 fi
8225
8226
8227
8228
8229
8230
8231 lt_prog_compiler_wl=
8232 lt_prog_compiler_pic=
8233 lt_prog_compiler_static=
8234
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8236 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8237
8238 if test "$GCC" = yes; then
8239 lt_prog_compiler_wl='-Wl,'
8240 lt_prog_compiler_static='-static'
8241
8242 case $host_os in
8243 aix*)
8244 # All AIX code is PIC.
8245 if test "$host_cpu" = ia64; then
8246 # AIX 5 now supports IA64 processor
8247 lt_prog_compiler_static='-Bstatic'
8248 fi
8249 ;;
8250
8251 amigaos*)
8252 case $host_cpu in
8253 powerpc)
8254 # see comment about AmigaOS4 .so support
8255 lt_prog_compiler_pic='-fPIC'
8256 ;;
8257 m68k)
8258 # FIXME: we need at least 68020 code to build shared libraries, but
8259 # adding the `-m68020' flag to GCC prevents building anything better,
8260 # like `-m68040'.
8261 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8262 ;;
8263 esac
8264 ;;
8265
8266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8267 # PIC is the default for these OSes.
8268 ;;
8269
8270 mingw* | cygwin* | pw32* | os2* | cegcc*)
8271 # This hack is so that the source file can tell whether it is being
8272 # built for inclusion in a dll (and should export symbols for example).
8273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8274 # (--disable-auto-import) libraries
8275 lt_prog_compiler_pic='-DDLL_EXPORT'
8276 ;;
8277
8278 darwin* | rhapsody*)
8279 # PIC is the default on this platform
8280 # Common symbols not allowed in MH_DYLIB files
8281 lt_prog_compiler_pic='-fno-common'
8282 ;;
8283
8284 haiku*)
8285 # PIC is the default for Haiku.
8286 # The "-static" flag exists, but is broken.
8287 lt_prog_compiler_static=
8288 ;;
8289
8290 hpux*)
8291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8293 # sets the default TLS model and affects inlining.
8294 case $host_cpu in
8295 hppa*64*)
8296 # +Z the default
8297 ;;
8298 *)
8299 lt_prog_compiler_pic='-fPIC'
8300 ;;
8301 esac
8302 ;;
8303
8304 interix[3-9]*)
8305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8306 # Instead, we relocate shared libraries at runtime.
8307 ;;
8308
8309 msdosdjgpp*)
8310 # Just because we use GCC doesn't mean we suddenly get shared libraries
8311 # on systems that don't support them.
8312 lt_prog_compiler_can_build_shared=no
8313 enable_shared=no
8314 ;;
8315
8316 *nto* | *qnx*)
8317 # QNX uses GNU C++, but need to define -shared option too, otherwise
8318 # it will coredump.
8319 lt_prog_compiler_pic='-fPIC -shared'
8320 ;;
8321
8322 sysv4*MP*)
8323 if test -d /usr/nec; then
8324 lt_prog_compiler_pic=-Kconform_pic
8325 fi
8326 ;;
8327
8328 *)
8329 lt_prog_compiler_pic='-fPIC'
8330 ;;
8331 esac
8332
8333 case $cc_basename in
8334 nvcc*) # Cuda Compiler Driver 2.2
8335 lt_prog_compiler_wl='-Xlinker '
8336 lt_prog_compiler_pic='-Xcompiler -fPIC'
8337 ;;
8338 esac
8339 else
8340 # PORTME Check for flag to pass linker flags through the system compiler.
8341 case $host_os in
8342 aix*)
8343 lt_prog_compiler_wl='-Wl,'
8344 if test "$host_cpu" = ia64; then
8345 # AIX 5 now supports IA64 processor
8346 lt_prog_compiler_static='-Bstatic'
8347 else
8348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8349 fi
8350 ;;
8351
8352 mingw* | cygwin* | pw32* | os2* | cegcc*)
8353 # This hack is so that the source file can tell whether it is being
8354 # built for inclusion in a dll (and should export symbols for example).
8355 lt_prog_compiler_pic='-DDLL_EXPORT'
8356 ;;
8357
8358 hpux9* | hpux10* | hpux11*)
8359 lt_prog_compiler_wl='-Wl,'
8360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8361 # not for PA HP-UX.
8362 case $host_cpu in
8363 hppa*64*|ia64*)
8364 # +Z the default
8365 ;;
8366 *)
8367 lt_prog_compiler_pic='+Z'
8368 ;;
8369 esac
8370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8371 lt_prog_compiler_static='${wl}-a ${wl}archive'
8372 ;;
8373
8374 irix5* | irix6* | nonstopux*)
8375 lt_prog_compiler_wl='-Wl,'
8376 # PIC (with -KPIC) is the default.
8377 lt_prog_compiler_static='-non_shared'
8378 ;;
8379
8380 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8381 case $cc_basename in
8382 # old Intel for x86_64 which still supported -KPIC.
8383 ecc*)
8384 lt_prog_compiler_wl='-Wl,'
8385 lt_prog_compiler_pic='-KPIC'
8386 lt_prog_compiler_static='-static'
8387 ;;
8388 # icc used to be incompatible with GCC.
8389 # ICC 10 doesn't accept -KPIC any more.
8390 icc* | ifort*)
8391 lt_prog_compiler_wl='-Wl,'
8392 lt_prog_compiler_pic='-fPIC'
8393 lt_prog_compiler_static='-static'
8394 ;;
8395 # Lahey Fortran 8.1.
8396 lf95*)
8397 lt_prog_compiler_wl='-Wl,'
8398 lt_prog_compiler_pic='--shared'
8399 lt_prog_compiler_static='--static'
8400 ;;
8401 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8402 # Portland Group compilers (*not* the Pentium gcc compiler,
8403 # which looks to be a dead project)
8404 lt_prog_compiler_wl='-Wl,'
8405 lt_prog_compiler_pic='-fpic'
8406 lt_prog_compiler_static='-Bstatic'
8407 ;;
8408 ccc*)
8409 lt_prog_compiler_wl='-Wl,'
8410 # All Alpha code is PIC.
8411 lt_prog_compiler_static='-non_shared'
8412 ;;
8413 xl* | bgxl* | bgf* | mpixl*)
8414 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_pic='-qpic'
8417 lt_prog_compiler_static='-qstaticlink'
8418 ;;
8419 *)
8420 case `$CC -V 2>&1 | sed 5q` in
8421 *Sun\ F* | *Sun*Fortran*)
8422 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8423 lt_prog_compiler_pic='-KPIC'
8424 lt_prog_compiler_static='-Bstatic'
8425 lt_prog_compiler_wl=''
8426 ;;
8427 *Sun\ C*)
8428 # Sun C 5.9
8429 lt_prog_compiler_pic='-KPIC'
8430 lt_prog_compiler_static='-Bstatic'
8431 lt_prog_compiler_wl='-Wl,'
8432 ;;
8433 esac
8434 ;;
8435 esac
8436 ;;
8437
8438 newsos6)
8439 lt_prog_compiler_pic='-KPIC'
8440 lt_prog_compiler_static='-Bstatic'
8441 ;;
8442
8443 *nto* | *qnx*)
8444 # QNX uses GNU C++, but need to define -shared option too, otherwise
8445 # it will coredump.
8446 lt_prog_compiler_pic='-fPIC -shared'
8447 ;;
8448
8449 osf3* | osf4* | osf5*)
8450 lt_prog_compiler_wl='-Wl,'
8451 # All OSF/1 code is PIC.
8452 lt_prog_compiler_static='-non_shared'
8453 ;;
8454
8455 rdos*)
8456 lt_prog_compiler_static='-non_shared'
8457 ;;
8458
8459 solaris*)
8460 lt_prog_compiler_pic='-KPIC'
8461 lt_prog_compiler_static='-Bstatic'
8462 case $cc_basename in
8463 f77* | f90* | f95*)
8464 lt_prog_compiler_wl='-Qoption ld ';;
8465 *)
8466 lt_prog_compiler_wl='-Wl,';;
8467 esac
8468 ;;
8469
8470 sunos4*)
8471 lt_prog_compiler_wl='-Qoption ld '
8472 lt_prog_compiler_pic='-PIC'
8473 lt_prog_compiler_static='-Bstatic'
8474 ;;
8475
8476 sysv4 | sysv4.2uw2* | sysv4.3*)
8477 lt_prog_compiler_wl='-Wl,'
8478 lt_prog_compiler_pic='-KPIC'
8479 lt_prog_compiler_static='-Bstatic'
8480 ;;
8481
8482 sysv4*MP*)
8483 if test -d /usr/nec ;then
8484 lt_prog_compiler_pic='-Kconform_pic'
8485 lt_prog_compiler_static='-Bstatic'
8486 fi
8487 ;;
8488
8489 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8490 lt_prog_compiler_wl='-Wl,'
8491 lt_prog_compiler_pic='-KPIC'
8492 lt_prog_compiler_static='-Bstatic'
8493 ;;
8494
8495 unicos*)
8496 lt_prog_compiler_wl='-Wl,'
8497 lt_prog_compiler_can_build_shared=no
8498 ;;
8499
8500 uts4*)
8501 lt_prog_compiler_pic='-pic'
8502 lt_prog_compiler_static='-Bstatic'
8503 ;;
8504
8505 *)
8506 lt_prog_compiler_can_build_shared=no
8507 ;;
8508 esac
8509 fi
8510
8511 case $host_os in
8512 # For platforms which do not support PIC, -DPIC is meaningless:
8513 *djgpp*)
8514 lt_prog_compiler_pic=
8515 ;;
8516 *)
8517 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8518 ;;
8519 esac
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8521 $as_echo "$lt_prog_compiler_pic" >&6; }
8522
8523
8524
8525
8526
8527
8528 #
8529 # Check to make sure the PIC flag actually works.
8530 #
8531 if test -n "$lt_prog_compiler_pic"; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8533 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8534 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 lt_cv_prog_compiler_pic_works=no
8538 ac_outfile=conftest.$ac_objext
8539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8540 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8541 # Insert the option either (1) after the last *FLAGS variable, or
8542 # (2) before a word containing "conftest.", or (3) at the end.
8543 # Note that $ac_compile itself does not contain backslashes and begins
8544 # with a dollar sign (not a hyphen), so the echo should work correctly.
8545 # The option is referenced via a variable to avoid confusing sed.
8546 lt_compile=`echo "$ac_compile" | $SED \
8547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8549 -e 's:$: $lt_compiler_flag:'`
8550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8551 (eval "$lt_compile" 2>conftest.err)
8552 ac_status=$?
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 if (exit $ac_status) && test -s "$ac_outfile"; then
8556 # The compiler can only warn and ignore the option if not recognized
8557 # So say no if there are warnings other than the usual output.
8558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8561 lt_cv_prog_compiler_pic_works=yes
8562 fi
8563 fi
8564 $RM conftest*
8565
8566 fi
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8568 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8569
8570 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8571 case $lt_prog_compiler_pic in
8572 "" | " "*) ;;
8573 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8574 esac
8575 else
8576 lt_prog_compiler_pic=
8577 lt_prog_compiler_can_build_shared=no
8578 fi
8579
8580 fi
8581
8582
8583
8584
8585
8586
8587 #
8588 # Check to make sure the static flag actually works.
8589 #
8590 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8592 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8593 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 lt_cv_prog_compiler_static_works=no
8597 save_LDFLAGS="$LDFLAGS"
8598 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8599 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8600 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8601 # The linker can only warn and ignore the option if not recognized
8602 # So say no if there are warnings
8603 if test -s conftest.err; then
8604 # Append any errors to the config.log.
8605 cat conftest.err 1>&5
8606 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8608 if diff conftest.exp conftest.er2 >/dev/null; then
8609 lt_cv_prog_compiler_static_works=yes
8610 fi
8611 else
8612 lt_cv_prog_compiler_static_works=yes
8613 fi
8614 fi
8615 $RM -r conftest*
8616 LDFLAGS="$save_LDFLAGS"
8617
8618 fi
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8620 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8621
8622 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8623 :
8624 else
8625 lt_prog_compiler_static=
8626 fi
8627
8628
8629
8630
8631
8632
8633
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8635 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8636 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 lt_cv_prog_compiler_c_o=no
8640 $RM -r conftest 2>/dev/null
8641 mkdir conftest
8642 cd conftest
8643 mkdir out
8644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8645
8646 lt_compiler_flag="-o out/conftest2.$ac_objext"
8647 # Insert the option either (1) after the last *FLAGS variable, or
8648 # (2) before a word containing "conftest.", or (3) at the end.
8649 # Note that $ac_compile itself does not contain backslashes and begins
8650 # with a dollar sign (not a hyphen), so the echo should work correctly.
8651 lt_compile=`echo "$ac_compile" | $SED \
8652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8654 -e 's:$: $lt_compiler_flag:'`
8655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8656 (eval "$lt_compile" 2>out/conftest.err)
8657 ac_status=$?
8658 cat out/conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8661 then
8662 # The compiler can only warn and ignore the option if not recognized
8663 # So say no if there are warnings
8664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8665 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8666 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8667 lt_cv_prog_compiler_c_o=yes
8668 fi
8669 fi
8670 chmod u+w . 2>&5
8671 $RM conftest*
8672 # SGI C++ compiler will create directory out/ii_files/ for
8673 # template instantiation
8674 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8675 $RM out/* && rmdir out
8676 cd ..
8677 $RM -r conftest
8678 $RM conftest*
8679
8680 fi
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8682 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8683
8684
8685
8686
8687
8688
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8690 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8691 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 lt_cv_prog_compiler_c_o=no
8695 $RM -r conftest 2>/dev/null
8696 mkdir conftest
8697 cd conftest
8698 mkdir out
8699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8700
8701 lt_compiler_flag="-o out/conftest2.$ac_objext"
8702 # Insert the option either (1) after the last *FLAGS variable, or
8703 # (2) before a word containing "conftest.", or (3) at the end.
8704 # Note that $ac_compile itself does not contain backslashes and begins
8705 # with a dollar sign (not a hyphen), so the echo should work correctly.
8706 lt_compile=`echo "$ac_compile" | $SED \
8707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8709 -e 's:$: $lt_compiler_flag:'`
8710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8711 (eval "$lt_compile" 2>out/conftest.err)
8712 ac_status=$?
8713 cat out/conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8716 then
8717 # The compiler can only warn and ignore the option if not recognized
8718 # So say no if there are warnings
8719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8720 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8721 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8722 lt_cv_prog_compiler_c_o=yes
8723 fi
8724 fi
8725 chmod u+w . 2>&5
8726 $RM conftest*
8727 # SGI C++ compiler will create directory out/ii_files/ for
8728 # template instantiation
8729 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8730 $RM out/* && rmdir out
8731 cd ..
8732 $RM -r conftest
8733 $RM conftest*
8734
8735 fi
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8737 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8738
8739
8740
8741
8742 hard_links="nottested"
8743 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8744 # do not overwrite the value of need_locks provided by the user
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8746 $as_echo_n "checking if we can lock with hard links... " >&6; }
8747 hard_links=yes
8748 $RM conftest*
8749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8750 touch conftest.a
8751 ln conftest.a conftest.b 2>&5 || hard_links=no
8752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8754 $as_echo "$hard_links" >&6; }
8755 if test "$hard_links" = no; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8757 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8758 need_locks=warn
8759 fi
8760 else
8761 need_locks=no
8762 fi
8763
8764
8765
8766
8767
8768
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8770 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8771
8772 runpath_var=
8773 allow_undefined_flag=
8774 always_export_symbols=no
8775 archive_cmds=
8776 archive_expsym_cmds=
8777 compiler_needs_object=no
8778 enable_shared_with_static_runtimes=no
8779 export_dynamic_flag_spec=
8780 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8781 hardcode_automatic=no
8782 hardcode_direct=no
8783 hardcode_direct_absolute=no
8784 hardcode_libdir_flag_spec=
8785 hardcode_libdir_flag_spec_ld=
8786 hardcode_libdir_separator=
8787 hardcode_minus_L=no
8788 hardcode_shlibpath_var=unsupported
8789 inherit_rpath=no
8790 link_all_deplibs=unknown
8791 module_cmds=
8792 module_expsym_cmds=
8793 old_archive_from_new_cmds=
8794 old_archive_from_expsyms_cmds=
8795 thread_safe_flag_spec=
8796 whole_archive_flag_spec=
8797 # include_expsyms should be a list of space-separated symbols to be *always*
8798 # included in the symbol list
8799 include_expsyms=
8800 # exclude_expsyms can be an extended regexp of symbols to exclude
8801 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8802 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8803 # as well as any symbol that contains `d'.
8804 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8805 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8806 # platforms (ab)use it in PIC code, but their linkers get confused if
8807 # the symbol is explicitly referenced. Since portable code cannot
8808 # rely on this symbol name, it's probably fine to never include it in
8809 # preloaded symbol tables.
8810 # Exclude shared library initialization/finalization symbols.
8811 extract_expsyms_cmds=
8812
8813 case $host_os in
8814 cygwin* | mingw* | pw32* | cegcc*)
8815 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8816 # When not using gcc, we currently assume that we are using
8817 # Microsoft Visual C++.
8818 if test "$GCC" != yes; then
8819 with_gnu_ld=no
8820 fi
8821 ;;
8822 interix*)
8823 # we just hope/assume this is gcc and not c89 (= MSVC++)
8824 with_gnu_ld=yes
8825 ;;
8826 openbsd*)
8827 with_gnu_ld=no
8828 ;;
8829 esac
8830
8831 ld_shlibs=yes
8832
8833 # On some targets, GNU ld is compatible enough with the native linker
8834 # that we're better off using the native interface for both.
8835 lt_use_gnu_ld_interface=no
8836 if test "$with_gnu_ld" = yes; then
8837 case $host_os in
8838 aix*)
8839 # The AIX port of GNU ld has always aspired to compatibility
8840 # with the native linker. However, as the warning in the GNU ld
8841 # block says, versions before 2.19.5* couldn't really create working
8842 # shared libraries, regardless of the interface used.
8843 case `$LD -v 2>&1` in
8844 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8845 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8846 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8847 *)
8848 lt_use_gnu_ld_interface=yes
8849 ;;
8850 esac
8851 ;;
8852 *)
8853 lt_use_gnu_ld_interface=yes
8854 ;;
8855 esac
8856 fi
8857
8858 if test "$lt_use_gnu_ld_interface" = yes; then
8859 # If archive_cmds runs LD, not CC, wlarc should be empty
8860 wlarc='${wl}'
8861
8862 # Set some defaults for GNU ld with shared library support. These
8863 # are reset later if shared libraries are not supported. Putting them
8864 # here allows them to be overridden if necessary.
8865 runpath_var=LD_RUN_PATH
8866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8867 export_dynamic_flag_spec='${wl}--export-dynamic'
8868 # ancient GNU ld didn't support --whole-archive et. al.
8869 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8870 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8871 else
8872 whole_archive_flag_spec=
8873 fi
8874 supports_anon_versioning=no
8875 case `$LD -v 2>&1` in
8876 *GNU\ gold*) supports_anon_versioning=yes ;;
8877 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8878 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8879 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8880 *\ 2.11.*) ;; # other 2.11 versions
8881 *) supports_anon_versioning=yes ;;
8882 esac
8883
8884 # See if GNU ld supports shared libraries.
8885 case $host_os in
8886 aix[3-9]*)
8887 # On AIX/PPC, the GNU linker is very broken
8888 if test "$host_cpu" != ia64; then
8889 ld_shlibs=no
8890 cat <<_LT_EOF 1>&2
8891
8892 *** Warning: the GNU linker, at least up to release 2.19, is reported
8893 *** to be unable to reliably create shared libraries on AIX.
8894 *** Therefore, libtool is disabling shared libraries support. If you
8895 *** really care for shared libraries, you may want to install binutils
8896 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8897 *** You will then need to restart the configuration process.
8898
8899 _LT_EOF
8900 fi
8901 ;;
8902
8903 amigaos*)
8904 case $host_cpu in
8905 powerpc)
8906 # see comment about AmigaOS4 .so support
8907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908 archive_expsym_cmds=''
8909 ;;
8910 m68k)
8911 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)'
8912 hardcode_libdir_flag_spec='-L$libdir'
8913 hardcode_minus_L=yes
8914 ;;
8915 esac
8916 ;;
8917
8918 beos*)
8919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8920 allow_undefined_flag=unsupported
8921 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8922 # support --undefined. This deserves some investigation. FIXME
8923 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924 else
8925 ld_shlibs=no
8926 fi
8927 ;;
8928
8929 cygwin* | mingw* | pw32* | cegcc*)
8930 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8931 # as there is no search path for DLLs.
8932 hardcode_libdir_flag_spec='-L$libdir'
8933 export_dynamic_flag_spec='${wl}--export-all-symbols'
8934 allow_undefined_flag=unsupported
8935 always_export_symbols=no
8936 enable_shared_with_static_runtimes=yes
8937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8938
8939 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8941 # If the export-symbols file already is a .def file (1st line
8942 # is EXPORTS), use it as is; otherwise, prepend...
8943 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8944 cp $export_symbols $output_objdir/$soname.def;
8945 else
8946 echo EXPORTS > $output_objdir/$soname.def;
8947 cat $export_symbols >> $output_objdir/$soname.def;
8948 fi~
8949 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8950 else
8951 ld_shlibs=no
8952 fi
8953 ;;
8954
8955 haiku*)
8956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957 link_all_deplibs=yes
8958 ;;
8959
8960 interix[3-9]*)
8961 hardcode_direct=no
8962 hardcode_shlibpath_var=no
8963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8964 export_dynamic_flag_spec='${wl}-E'
8965 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8966 # Instead, shared libraries are loaded at an image base (0x10000000 by
8967 # default) and relocated if they conflict, which is a slow very memory
8968 # consuming and fragmenting process. To avoid this, we pick a random,
8969 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8970 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8972 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'
8973 ;;
8974
8975 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8976 tmp_diet=no
8977 if test "$host_os" = linux-dietlibc; then
8978 case $cc_basename in
8979 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8980 esac
8981 fi
8982 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8983 && test "$tmp_diet" = no
8984 then
8985 tmp_addflag=
8986 tmp_sharedflag='-shared'
8987 case $cc_basename,$host_cpu in
8988 pgcc*) # Portland Group C compiler
8989 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'
8990 tmp_addflag=' $pic_flag'
8991 ;;
8992 pgf77* | pgf90* | pgf95* | pgfortran*)
8993 # Portland Group f77 and f90 compilers
8994 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'
8995 tmp_addflag=' $pic_flag -Mnomain' ;;
8996 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8997 tmp_addflag=' -i_dynamic' ;;
8998 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8999 tmp_addflag=' -i_dynamic -nofor_main' ;;
9000 ifc* | ifort*) # Intel Fortran compiler
9001 tmp_addflag=' -nofor_main' ;;
9002 lf95*) # Lahey Fortran 8.1
9003 whole_archive_flag_spec=
9004 tmp_sharedflag='--shared' ;;
9005 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9006 tmp_sharedflag='-qmkshrobj'
9007 tmp_addflag= ;;
9008 nvcc*) # Cuda Compiler Driver 2.2
9009 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'
9010 compiler_needs_object=yes
9011 ;;
9012 esac
9013 case `$CC -V 2>&1 | sed 5q` in
9014 *Sun\ C*) # Sun C 5.9
9015 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'
9016 compiler_needs_object=yes
9017 tmp_sharedflag='-G' ;;
9018 *Sun\ F*) # Sun Fortran 8.3
9019 tmp_sharedflag='-G' ;;
9020 esac
9021 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9022
9023 if test "x$supports_anon_versioning" = xyes; then
9024 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9025 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9026 echo "local: *; };" >> $output_objdir/$libname.ver~
9027 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9028 fi
9029
9030 case $cc_basename in
9031 xlf* | bgf* | bgxlf* | mpixlf*)
9032 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9033 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9034 hardcode_libdir_flag_spec=
9035 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9036 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9037 if test "x$supports_anon_versioning" = xyes; then
9038 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9040 echo "local: *; };" >> $output_objdir/$libname.ver~
9041 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9042 fi
9043 ;;
9044 esac
9045 else
9046 ld_shlibs=no
9047 fi
9048 ;;
9049
9050 netbsd*)
9051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9053 wlarc=
9054 else
9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9057 fi
9058 ;;
9059
9060 solaris*)
9061 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9062 ld_shlibs=no
9063 cat <<_LT_EOF 1>&2
9064
9065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9066 *** create shared libraries on Solaris systems. Therefore, libtool
9067 *** is disabling shared libraries support. We urge you to upgrade GNU
9068 *** binutils to release 2.9.1 or newer. Another option is to modify
9069 *** your PATH or compiler configuration so that the native linker is
9070 *** used, and then restart.
9071
9072 _LT_EOF
9073 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076 else
9077 ld_shlibs=no
9078 fi
9079 ;;
9080
9081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9082 case `$LD -v 2>&1` in
9083 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9084 ld_shlibs=no
9085 cat <<_LT_EOF 1>&2
9086
9087 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9088 *** reliably create shared libraries on SCO systems. Therefore, libtool
9089 *** is disabling shared libraries support. We urge you to upgrade GNU
9090 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9091 *** your PATH or compiler configuration so that the native linker is
9092 *** used, and then restart.
9093
9094 _LT_EOF
9095 ;;
9096 *)
9097 # For security reasons, it is highly recommended that you always
9098 # use absolute paths for naming shared libraries, and exclude the
9099 # DT_RUNPATH tag from executables and libraries. But doing so
9100 # requires that you compile everything twice, which is a pain.
9101 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9105 else
9106 ld_shlibs=no
9107 fi
9108 ;;
9109 esac
9110 ;;
9111
9112 sunos4*)
9113 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9114 wlarc=
9115 hardcode_direct=yes
9116 hardcode_shlibpath_var=no
9117 ;;
9118
9119 *)
9120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9123 else
9124 ld_shlibs=no
9125 fi
9126 ;;
9127 esac
9128
9129 if test "$ld_shlibs" = no; then
9130 runpath_var=
9131 hardcode_libdir_flag_spec=
9132 export_dynamic_flag_spec=
9133 whole_archive_flag_spec=
9134 fi
9135 else
9136 # PORTME fill in a description of your system's linker (not GNU ld)
9137 case $host_os in
9138 aix3*)
9139 allow_undefined_flag=unsupported
9140 always_export_symbols=yes
9141 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'
9142 # Note: this linker hardcodes the directories in LIBPATH if there
9143 # are no directories specified by -L.
9144 hardcode_minus_L=yes
9145 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9146 # Neither direct hardcoding nor static linking is supported with a
9147 # broken collect2.
9148 hardcode_direct=unsupported
9149 fi
9150 ;;
9151
9152 aix[4-9]*)
9153 if test "$host_cpu" = ia64; then
9154 # On IA64, the linker does run time linking by default, so we don't
9155 # have to do anything special.
9156 aix_use_runtimelinking=no
9157 exp_sym_flag='-Bexport'
9158 no_entry_flag=""
9159 else
9160 # If we're using GNU nm, then we don't want the "-C" option.
9161 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9162 # Also, AIX nm treats weak defined symbols like other global
9163 # defined symbols, whereas GNU nm marks them as "W".
9164 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9165 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'
9166 else
9167 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9168 fi
9169 aix_use_runtimelinking=no
9170
9171 # Test if we are trying to use run time linking or normal
9172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9173 # need to do runtime linking.
9174 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9175 for ld_flag in $LDFLAGS; do
9176 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9177 aix_use_runtimelinking=yes
9178 break
9179 fi
9180 done
9181 ;;
9182 esac
9183
9184 exp_sym_flag='-bexport'
9185 no_entry_flag='-bnoentry'
9186 fi
9187
9188 # When large executables or shared objects are built, AIX ld can
9189 # have problems creating the table of contents. If linking a library
9190 # or program results in "error TOC overflow" add -mminimal-toc to
9191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9193
9194 archive_cmds=''
9195 hardcode_direct=yes
9196 hardcode_direct_absolute=yes
9197 hardcode_libdir_separator=':'
9198 link_all_deplibs=yes
9199 file_list_spec='${wl}-f,'
9200
9201 if test "$GCC" = yes; then
9202 case $host_os in aix4.[012]|aix4.[012].*)
9203 # We only want to do this on AIX 4.2 and lower, the check
9204 # below for broken collect2 doesn't work under 4.3+
9205 collect2name=`${CC} -print-prog-name=collect2`
9206 if test -f "$collect2name" &&
9207 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9208 then
9209 # We have reworked collect2
9210 :
9211 else
9212 # We have old collect2
9213 hardcode_direct=unsupported
9214 # It fails to find uninstalled libraries when the uninstalled
9215 # path is not listed in the libpath. Setting hardcode_minus_L
9216 # to unsupported forces relinking
9217 hardcode_minus_L=yes
9218 hardcode_libdir_flag_spec='-L$libdir'
9219 hardcode_libdir_separator=
9220 fi
9221 ;;
9222 esac
9223 shared_flag='-shared'
9224 if test "$aix_use_runtimelinking" = yes; then
9225 shared_flag="$shared_flag "'${wl}-G'
9226 fi
9227 else
9228 # not using gcc
9229 if test "$host_cpu" = ia64; then
9230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9231 # chokes on -Wl,-G. The following line is correct:
9232 shared_flag='-G'
9233 else
9234 if test "$aix_use_runtimelinking" = yes; then
9235 shared_flag='${wl}-G'
9236 else
9237 shared_flag='${wl}-bM:SRE'
9238 fi
9239 fi
9240 fi
9241
9242 export_dynamic_flag_spec='${wl}-bexpall'
9243 # It seems that -bexpall does not export symbols beginning with
9244 # underscore (_), so it is better to generate a list of symbols to export.
9245 always_export_symbols=yes
9246 if test "$aix_use_runtimelinking" = yes; then
9247 # Warning - without using the other runtime loading flags (-brtl),
9248 # -berok will link without error, but may produce a broken library.
9249 allow_undefined_flag='-berok'
9250 # Determine the default libpath from the value encoded in an
9251 # empty executable.
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9254
9255 int
9256 main ()
9257 {
9258
9259 ;
9260 return 0;
9261 }
9262 _ACEOF
9263 if ac_fn_c_try_link "$LINENO"; then :
9264
9265 lt_aix_libpath_sed='
9266 /Import File Strings/,/^$/ {
9267 /^0/ {
9268 s/^0 *\(.*\)$/\1/
9269 p
9270 }
9271 }'
9272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9273 # Check for a 64-bit object if we didn't find anything.
9274 if test -z "$aix_libpath"; then
9275 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9276 fi
9277 fi
9278 rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9281
9282 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9283 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"
9284 else
9285 if test "$host_cpu" = ia64; then
9286 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9287 allow_undefined_flag="-z nodefs"
9288 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"
9289 else
9290 # Determine the default libpath from the value encoded in an
9291 # empty executable.
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9294
9295 int
9296 main ()
9297 {
9298
9299 ;
9300 return 0;
9301 }
9302 _ACEOF
9303 if ac_fn_c_try_link "$LINENO"; then :
9304
9305 lt_aix_libpath_sed='
9306 /Import File Strings/,/^$/ {
9307 /^0/ {
9308 s/^0 *\(.*\)$/\1/
9309 p
9310 }
9311 }'
9312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9313 # Check for a 64-bit object if we didn't find anything.
9314 if test -z "$aix_libpath"; then
9315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9316 fi
9317 fi
9318 rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9321
9322 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9323 # Warning - without using the other run time loading flags,
9324 # -berok will link without error, but may produce a broken library.
9325 no_undefined_flag=' ${wl}-bernotok'
9326 allow_undefined_flag=' ${wl}-berok'
9327 if test "$with_gnu_ld" = yes; then
9328 # We only use this code for GNU lds that support --whole-archive.
9329 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9330 else
9331 # Exported symbols can be pulled into shared objects from archives
9332 whole_archive_flag_spec='$convenience'
9333 fi
9334 archive_cmds_need_lc=yes
9335 # This is similar to how AIX traditionally builds its shared libraries.
9336 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'
9337 fi
9338 fi
9339 ;;
9340
9341 amigaos*)
9342 case $host_cpu in
9343 powerpc)
9344 # see comment about AmigaOS4 .so support
9345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346 archive_expsym_cmds=''
9347 ;;
9348 m68k)
9349 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)'
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 hardcode_minus_L=yes
9352 ;;
9353 esac
9354 ;;
9355
9356 bsdi[45]*)
9357 export_dynamic_flag_spec=-rdynamic
9358 ;;
9359
9360 cygwin* | mingw* | pw32* | cegcc*)
9361 # When not using gcc, we currently assume that we are using
9362 # Microsoft Visual C++.
9363 # hardcode_libdir_flag_spec is actually meaningless, as there is
9364 # no search path for DLLs.
9365 hardcode_libdir_flag_spec=' '
9366 allow_undefined_flag=unsupported
9367 # Tell ltmain to make .lib files, not .a files.
9368 libext=lib
9369 # Tell ltmain to make .dll files, not .so files.
9370 shrext_cmds=".dll"
9371 # FIXME: Setting linknames here is a bad hack.
9372 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9373 # The linker will automatically build a .lib file if we build a DLL.
9374 old_archive_from_new_cmds='true'
9375 # FIXME: Should let the user specify the lib program.
9376 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9377 fix_srcfile_path='`cygpath -w "$srcfile"`'
9378 enable_shared_with_static_runtimes=yes
9379 ;;
9380
9381 darwin* | rhapsody*)
9382
9383
9384 archive_cmds_need_lc=no
9385 hardcode_direct=no
9386 hardcode_automatic=yes
9387 hardcode_shlibpath_var=unsupported
9388 if test "$lt_cv_ld_force_load" = "yes"; then
9389 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\"`'
9390 else
9391 whole_archive_flag_spec=''
9392 fi
9393 link_all_deplibs=yes
9394 allow_undefined_flag="$_lt_dar_allow_undefined"
9395 case $cc_basename in
9396 ifort*) _lt_dar_can_shared=yes ;;
9397 *) _lt_dar_can_shared=$GCC ;;
9398 esac
9399 if test "$_lt_dar_can_shared" = "yes"; then
9400 output_verbose_link_cmd=func_echo_all
9401 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9402 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9403 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}"
9404 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}"
9405
9406 else
9407 ld_shlibs=no
9408 fi
9409
9410 ;;
9411
9412 dgux*)
9413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414 hardcode_libdir_flag_spec='-L$libdir'
9415 hardcode_shlibpath_var=no
9416 ;;
9417
9418 freebsd1*)
9419 ld_shlibs=no
9420 ;;
9421
9422 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9423 # support. Future versions do this automatically, but an explicit c++rt0.o
9424 # does not break anything, and helps significantly (at the cost of a little
9425 # extra space).
9426 freebsd2.2*)
9427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9428 hardcode_libdir_flag_spec='-R$libdir'
9429 hardcode_direct=yes
9430 hardcode_shlibpath_var=no
9431 ;;
9432
9433 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9434 freebsd2*)
9435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9436 hardcode_direct=yes
9437 hardcode_minus_L=yes
9438 hardcode_shlibpath_var=no
9439 ;;
9440
9441 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9442 freebsd* | dragonfly*)
9443 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9444 hardcode_libdir_flag_spec='-R$libdir'
9445 hardcode_direct=yes
9446 hardcode_shlibpath_var=no
9447 ;;
9448
9449 hpux9*)
9450 if test "$GCC" = yes; then
9451 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'
9452 else
9453 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'
9454 fi
9455 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9456 hardcode_libdir_separator=:
9457 hardcode_direct=yes
9458
9459 # hardcode_minus_L: Not really in the search PATH,
9460 # but as the default location of the library.
9461 hardcode_minus_L=yes
9462 export_dynamic_flag_spec='${wl}-E'
9463 ;;
9464
9465 hpux10*)
9466 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9467 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9468 else
9469 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9470 fi
9471 if test "$with_gnu_ld" = no; then
9472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9473 hardcode_libdir_flag_spec_ld='+b $libdir'
9474 hardcode_libdir_separator=:
9475 hardcode_direct=yes
9476 hardcode_direct_absolute=yes
9477 export_dynamic_flag_spec='${wl}-E'
9478 # hardcode_minus_L: Not really in the search PATH,
9479 # but as the default location of the library.
9480 hardcode_minus_L=yes
9481 fi
9482 ;;
9483
9484 hpux11*)
9485 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9486 case $host_cpu in
9487 hppa*64*)
9488 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9489 ;;
9490 ia64*)
9491 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9492 ;;
9493 *)
9494 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9495 ;;
9496 esac
9497 else
9498 case $host_cpu in
9499 hppa*64*)
9500 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9501 ;;
9502 ia64*)
9503 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9504 ;;
9505 *)
9506
9507 # Older versions of the 11.00 compiler do not understand -b yet
9508 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9510 $as_echo_n "checking if $CC understands -b... " >&6; }
9511 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 lt_cv_prog_compiler__b=no
9515 save_LDFLAGS="$LDFLAGS"
9516 LDFLAGS="$LDFLAGS -b"
9517 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9518 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9519 # The linker can only warn and ignore the option if not recognized
9520 # So say no if there are warnings
9521 if test -s conftest.err; then
9522 # Append any errors to the config.log.
9523 cat conftest.err 1>&5
9524 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9526 if diff conftest.exp conftest.er2 >/dev/null; then
9527 lt_cv_prog_compiler__b=yes
9528 fi
9529 else
9530 lt_cv_prog_compiler__b=yes
9531 fi
9532 fi
9533 $RM -r conftest*
9534 LDFLAGS="$save_LDFLAGS"
9535
9536 fi
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9538 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9539
9540 if test x"$lt_cv_prog_compiler__b" = xyes; then
9541 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9542 else
9543 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9544 fi
9545
9546 ;;
9547 esac
9548 fi
9549 if test "$with_gnu_ld" = no; then
9550 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9551 hardcode_libdir_separator=:
9552
9553 case $host_cpu in
9554 hppa*64*|ia64*)
9555 hardcode_direct=no
9556 hardcode_shlibpath_var=no
9557 ;;
9558 *)
9559 hardcode_direct=yes
9560 hardcode_direct_absolute=yes
9561 export_dynamic_flag_spec='${wl}-E'
9562
9563 # hardcode_minus_L: Not really in the search PATH,
9564 # but as the default location of the library.
9565 hardcode_minus_L=yes
9566 ;;
9567 esac
9568 fi
9569 ;;
9570
9571 irix5* | irix6* | nonstopux*)
9572 if test "$GCC" = yes; then
9573 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'
9574 # Try to use the -exported_symbol ld option, if it does not
9575 # work, assume that -exports_file does not work either and
9576 # implicitly export all symbols.
9577 save_LDFLAGS="$LDFLAGS"
9578 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 int foo(void) {}
9582 _ACEOF
9583 if ac_fn_c_try_link "$LINENO"; then :
9584 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'
9585
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589 LDFLAGS="$save_LDFLAGS"
9590 else
9591 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'
9592 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'
9593 fi
9594 archive_cmds_need_lc='no'
9595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9596 hardcode_libdir_separator=:
9597 inherit_rpath=yes
9598 link_all_deplibs=yes
9599 ;;
9600
9601 netbsd*)
9602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9604 else
9605 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9606 fi
9607 hardcode_libdir_flag_spec='-R$libdir'
9608 hardcode_direct=yes
9609 hardcode_shlibpath_var=no
9610 ;;
9611
9612 newsos6)
9613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614 hardcode_direct=yes
9615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9616 hardcode_libdir_separator=:
9617 hardcode_shlibpath_var=no
9618 ;;
9619
9620 *nto* | *qnx*)
9621 ;;
9622
9623 openbsd*)
9624 if test -f /usr/libexec/ld.so; then
9625 hardcode_direct=yes
9626 hardcode_shlibpath_var=no
9627 hardcode_direct_absolute=yes
9628 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9629 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9631 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9632 export_dynamic_flag_spec='${wl}-E'
9633 else
9634 case $host_os in
9635 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_libdir_flag_spec='-R$libdir'
9638 ;;
9639 *)
9640 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9641 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9642 ;;
9643 esac
9644 fi
9645 else
9646 ld_shlibs=no
9647 fi
9648 ;;
9649
9650 os2*)
9651 hardcode_libdir_flag_spec='-L$libdir'
9652 hardcode_minus_L=yes
9653 allow_undefined_flag=unsupported
9654 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'
9655 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9656 ;;
9657
9658 osf3*)
9659 if test "$GCC" = yes; then
9660 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9661 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'
9662 else
9663 allow_undefined_flag=' -expect_unresolved \*'
9664 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'
9665 fi
9666 archive_cmds_need_lc='no'
9667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9668 hardcode_libdir_separator=:
9669 ;;
9670
9671 osf4* | osf5*) # as osf3* with the addition of -msym flag
9672 if test "$GCC" = yes; then
9673 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9674 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'
9675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9676 else
9677 allow_undefined_flag=' -expect_unresolved \*'
9678 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'
9679 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~
9680 $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'
9681
9682 # Both c and cxx compiler support -rpath directly
9683 hardcode_libdir_flag_spec='-rpath $libdir'
9684 fi
9685 archive_cmds_need_lc='no'
9686 hardcode_libdir_separator=:
9687 ;;
9688
9689 solaris*)
9690 no_undefined_flag=' -z defs'
9691 if test "$GCC" = yes; then
9692 wlarc='${wl}'
9693 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9695 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9696 else
9697 case `$CC -V 2>&1` in
9698 *"Compilers 5.0"*)
9699 wlarc=''
9700 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9702 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9703 ;;
9704 *)
9705 wlarc='${wl}'
9706 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9707 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9708 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9709 ;;
9710 esac
9711 fi
9712 hardcode_libdir_flag_spec='-R$libdir'
9713 hardcode_shlibpath_var=no
9714 case $host_os in
9715 solaris2.[0-5] | solaris2.[0-5].*) ;;
9716 *)
9717 # The compiler driver will combine and reorder linker options,
9718 # but understands `-z linker_flag'. GCC discards it without `$wl',
9719 # but is careful enough not to reorder.
9720 # Supported since Solaris 2.6 (maybe 2.5.1?)
9721 if test "$GCC" = yes; then
9722 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9723 else
9724 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9725 fi
9726 ;;
9727 esac
9728 link_all_deplibs=yes
9729 ;;
9730
9731 sunos4*)
9732 if test "x$host_vendor" = xsequent; then
9733 # Use $CC to link under sequent, because it throws in some extra .o
9734 # files that make .init and .fini sections work.
9735 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9736 else
9737 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9738 fi
9739 hardcode_libdir_flag_spec='-L$libdir'
9740 hardcode_direct=yes
9741 hardcode_minus_L=yes
9742 hardcode_shlibpath_var=no
9743 ;;
9744
9745 sysv4)
9746 case $host_vendor in
9747 sni)
9748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9749 hardcode_direct=yes # is this really true???
9750 ;;
9751 siemens)
9752 ## LD is ld it makes a PLAMLIB
9753 ## CC just makes a GrossModule.
9754 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9755 reload_cmds='$CC -r -o $output$reload_objs'
9756 hardcode_direct=no
9757 ;;
9758 motorola)
9759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9761 ;;
9762 esac
9763 runpath_var='LD_RUN_PATH'
9764 hardcode_shlibpath_var=no
9765 ;;
9766
9767 sysv4.3*)
9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_shlibpath_var=no
9770 export_dynamic_flag_spec='-Bexport'
9771 ;;
9772
9773 sysv4*MP*)
9774 if test -d /usr/nec; then
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_shlibpath_var=no
9777 runpath_var=LD_RUN_PATH
9778 hardcode_runpath_var=yes
9779 ld_shlibs=yes
9780 fi
9781 ;;
9782
9783 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9784 no_undefined_flag='${wl}-z,text'
9785 archive_cmds_need_lc=no
9786 hardcode_shlibpath_var=no
9787 runpath_var='LD_RUN_PATH'
9788
9789 if test "$GCC" = yes; then
9790 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9791 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 else
9793 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9794 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9795 fi
9796 ;;
9797
9798 sysv5* | sco3.2v5* | sco5v6*)
9799 # Note: We can NOT use -z defs as we might desire, because we do not
9800 # link with -lc, and that would cause any symbols used from libc to
9801 # always be unresolved, which means just about no library would
9802 # ever link correctly. If we're not using GNU ld we use -z text
9803 # though, which does catch some bad symbols but isn't as heavy-handed
9804 # as -z defs.
9805 no_undefined_flag='${wl}-z,text'
9806 allow_undefined_flag='${wl}-z,nodefs'
9807 archive_cmds_need_lc=no
9808 hardcode_shlibpath_var=no
9809 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9810 hardcode_libdir_separator=':'
9811 link_all_deplibs=yes
9812 export_dynamic_flag_spec='${wl}-Bexport'
9813 runpath_var='LD_RUN_PATH'
9814
9815 if test "$GCC" = yes; then
9816 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9817 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818 else
9819 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9820 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9821 fi
9822 ;;
9823
9824 uts4*)
9825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826 hardcode_libdir_flag_spec='-L$libdir'
9827 hardcode_shlibpath_var=no
9828 ;;
9829
9830 *)
9831 ld_shlibs=no
9832 ;;
9833 esac
9834
9835 if test x$host_vendor = xsni; then
9836 case $host in
9837 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9838 export_dynamic_flag_spec='${wl}-Blargedynsym'
9839 ;;
9840 esac
9841 fi
9842 fi
9843
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9845 $as_echo "$ld_shlibs" >&6; }
9846 test "$ld_shlibs" = no && can_build_shared=no
9847
9848 with_gnu_ld=$with_gnu_ld
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864 #
9865 # Do we need to explicitly link libc?
9866 #
9867 case "x$archive_cmds_need_lc" in
9868 x|xyes)
9869 # Assume -lc should be added
9870 archive_cmds_need_lc=yes
9871
9872 if test "$enable_shared" = yes && test "$GCC" = yes; then
9873 case $archive_cmds in
9874 *'~'*)
9875 # FIXME: we may have to deal with multi-command sequences.
9876 ;;
9877 '$CC '*)
9878 # Test whether the compiler implicitly links with -lc since on some
9879 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9880 # to ld, don't add -lc before -lgcc.
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9882 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9883 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 $RM conftest*
9887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9888
9889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9890 (eval $ac_compile) 2>&5
9891 ac_status=$?
9892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9893 test $ac_status = 0; } 2>conftest.err; then
9894 soname=conftest
9895 lib=conftest
9896 libobjs=conftest.$ac_objext
9897 deplibs=
9898 wl=$lt_prog_compiler_wl
9899 pic_flag=$lt_prog_compiler_pic
9900 compiler_flags=-v
9901 linker_flags=-v
9902 verstring=
9903 output_objdir=.
9904 libname=conftest
9905 lt_save_allow_undefined_flag=$allow_undefined_flag
9906 allow_undefined_flag=
9907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9908 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9909 ac_status=$?
9910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9911 test $ac_status = 0; }
9912 then
9913 lt_cv_archive_cmds_need_lc=no
9914 else
9915 lt_cv_archive_cmds_need_lc=yes
9916 fi
9917 allow_undefined_flag=$lt_save_allow_undefined_flag
9918 else
9919 cat conftest.err 1>&5
9920 fi
9921 $RM conftest*
9922
9923 fi
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9925 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9926 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9927 ;;
9928 esac
9929 fi
9930 ;;
9931 esac
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
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10090 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10091
10092 if test "$GCC" = yes; then
10093 case $host_os in
10094 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10095 *) lt_awk_arg="/^libraries:/" ;;
10096 esac
10097 case $host_os in
10098 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10099 *) lt_sed_strip_eq="s,=/,/,g" ;;
10100 esac
10101 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10102 case $lt_search_path_spec in
10103 *\;*)
10104 # if the path contains ";" then we assume it to be the separator
10105 # otherwise default to the standard path separator (i.e. ":") - it is
10106 # assumed that no part of a normal pathname contains ";" but that should
10107 # okay in the real world where ";" in dirpaths is itself problematic.
10108 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10109 ;;
10110 *)
10111 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10112 ;;
10113 esac
10114 # Ok, now we have the path, separated by spaces, we can step through it
10115 # and add multilib dir if necessary.
10116 lt_tmp_lt_search_path_spec=
10117 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10118 for lt_sys_path in $lt_search_path_spec; do
10119 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10120 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10121 else
10122 test -d "$lt_sys_path" && \
10123 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10124 fi
10125 done
10126 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10127 BEGIN {RS=" "; FS="/|\n";} {
10128 lt_foo="";
10129 lt_count=0;
10130 for (lt_i = NF; lt_i > 0; lt_i--) {
10131 if ($lt_i != "" && $lt_i != ".") {
10132 if ($lt_i == "..") {
10133 lt_count++;
10134 } else {
10135 if (lt_count == 0) {
10136 lt_foo="/" $lt_i lt_foo;
10137 } else {
10138 lt_count--;
10139 }
10140 }
10141 }
10142 }
10143 if (lt_foo != "") { lt_freq[lt_foo]++; }
10144 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10145 }'`
10146 # AWK program above erroneously prepends '/' to C:/dos/paths
10147 # for these hosts.
10148 case $host_os in
10149 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10150 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10151 esac
10152 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10153 else
10154 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10155 fi
10156 library_names_spec=
10157 libname_spec='lib$name'
10158 soname_spec=
10159 shrext_cmds=".so"
10160 postinstall_cmds=
10161 postuninstall_cmds=
10162 finish_cmds=
10163 finish_eval=
10164 shlibpath_var=
10165 shlibpath_overrides_runpath=unknown
10166 version_type=none
10167 dynamic_linker="$host_os ld.so"
10168 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10169 need_lib_prefix=unknown
10170 hardcode_into_libs=no
10171
10172 # when you set need_version to no, make sure it does not cause -set_version
10173 # flags to be left without arguments
10174 need_version=unknown
10175
10176 case $host_os in
10177 aix3*)
10178 version_type=linux
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10180 shlibpath_var=LIBPATH
10181
10182 # AIX 3 has no versioning support, so we append a major version to the name.
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 ;;
10185
10186 aix[4-9]*)
10187 version_type=linux
10188 need_lib_prefix=no
10189 need_version=no
10190 hardcode_into_libs=yes
10191 if test "$host_cpu" = ia64; then
10192 # AIX 5 supports IA64
10193 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10194 shlibpath_var=LD_LIBRARY_PATH
10195 else
10196 # With GCC up to 2.95.x, collect2 would create an import file
10197 # for dependence libraries. The import file would start with
10198 # the line `#! .'. This would cause the generated library to
10199 # depend on `.', always an invalid library. This was fixed in
10200 # development snapshots of GCC prior to 3.0.
10201 case $host_os in
10202 aix4 | aix4.[01] | aix4.[01].*)
10203 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10204 echo ' yes '
10205 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10206 :
10207 else
10208 can_build_shared=no
10209 fi
10210 ;;
10211 esac
10212 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10213 # soname into executable. Probably we can add versioning support to
10214 # collect2, so additional links can be useful in future.
10215 if test "$aix_use_runtimelinking" = yes; then
10216 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10217 # instead of lib<name>.a to let people know that these are not
10218 # typical AIX shared libraries.
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 else
10221 # We preserve .a as extension for shared libraries through AIX4.2
10222 # and later when we are not doing run time linking.
10223 library_names_spec='${libname}${release}.a $libname.a'
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 fi
10226 shlibpath_var=LIBPATH
10227 fi
10228 ;;
10229
10230 amigaos*)
10231 case $host_cpu in
10232 powerpc)
10233 # Since July 2007 AmigaOS4 officially supports .so libraries.
10234 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 ;;
10237 m68k)
10238 library_names_spec='$libname.ixlibrary $libname.a'
10239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10240 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'
10241 ;;
10242 esac
10243 ;;
10244
10245 beos*)
10246 library_names_spec='${libname}${shared_ext}'
10247 dynamic_linker="$host_os ld.so"
10248 shlibpath_var=LIBRARY_PATH
10249 ;;
10250
10251 bsdi[45]*)
10252 version_type=linux
10253 need_version=no
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10257 shlibpath_var=LD_LIBRARY_PATH
10258 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10259 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10260 # the default ld.so.conf also contains /usr/contrib/lib and
10261 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10262 # libtool to hard-code these into programs
10263 ;;
10264
10265 cygwin* | mingw* | pw32* | cegcc*)
10266 version_type=windows
10267 shrext_cmds=".dll"
10268 need_version=no
10269 need_lib_prefix=no
10270
10271 case $GCC,$host_os in
10272 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10273 library_names_spec='$libname.dll.a'
10274 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10275 postinstall_cmds='base_file=`basename \${file}`~
10276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10277 dldir=$destdir/`dirname \$dlpath`~
10278 test -d \$dldir || mkdir -p \$dldir~
10279 $install_prog $dir/$dlname \$dldir/$dlname~
10280 chmod a+x \$dldir/$dlname~
10281 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10282 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10283 fi'
10284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10285 dlpath=$dir/\$dldll~
10286 $RM \$dlpath'
10287 shlibpath_overrides_runpath=yes
10288
10289 case $host_os in
10290 cygwin*)
10291 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10292 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10293
10294 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10295 ;;
10296 mingw* | cegcc*)
10297 # MinGW DLLs use traditional 'lib' prefix
10298 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10299 ;;
10300 pw32*)
10301 # pw32 DLLs use 'pw' prefix rather than 'lib'
10302 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10303 ;;
10304 esac
10305 ;;
10306
10307 *)
10308 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10309 ;;
10310 esac
10311 dynamic_linker='Win32 ld.exe'
10312 # FIXME: first we should search . and the directory the executable is in
10313 shlibpath_var=PATH
10314 ;;
10315
10316 darwin* | rhapsody*)
10317 dynamic_linker="$host_os dyld"
10318 version_type=darwin
10319 need_lib_prefix=no
10320 need_version=no
10321 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10322 soname_spec='${libname}${release}${major}$shared_ext'
10323 shlibpath_overrides_runpath=yes
10324 shlibpath_var=DYLD_LIBRARY_PATH
10325 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10326
10327 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10328 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10329 ;;
10330
10331 dgux*)
10332 version_type=linux
10333 need_lib_prefix=no
10334 need_version=no
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 ;;
10339
10340 freebsd1*)
10341 dynamic_linker=no
10342 ;;
10343
10344 freebsd* | dragonfly*)
10345 # DragonFly does not have aout. When/if they implement a new
10346 # versioning mechanism, adjust this.
10347 if test -x /usr/bin/objformat; then
10348 objformat=`/usr/bin/objformat`
10349 else
10350 case $host_os in
10351 freebsd[123]*) objformat=aout ;;
10352 *) objformat=elf ;;
10353 esac
10354 fi
10355 version_type=freebsd-$objformat
10356 case $version_type in
10357 freebsd-elf*)
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10359 need_version=no
10360 need_lib_prefix=no
10361 ;;
10362 freebsd-*)
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10364 need_version=yes
10365 ;;
10366 esac
10367 shlibpath_var=LD_LIBRARY_PATH
10368 case $host_os in
10369 freebsd2*)
10370 shlibpath_overrides_runpath=yes
10371 ;;
10372 freebsd3.[01]* | freebsdelf3.[01]*)
10373 shlibpath_overrides_runpath=yes
10374 hardcode_into_libs=yes
10375 ;;
10376 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10377 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10378 shlibpath_overrides_runpath=no
10379 hardcode_into_libs=yes
10380 ;;
10381 *) # from 4.6 on, and DragonFly
10382 shlibpath_overrides_runpath=yes
10383 hardcode_into_libs=yes
10384 ;;
10385 esac
10386 ;;
10387
10388 gnu*)
10389 version_type=linux
10390 need_lib_prefix=no
10391 need_version=no
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 hardcode_into_libs=yes
10396 ;;
10397
10398 haiku*)
10399 version_type=linux
10400 need_lib_prefix=no
10401 need_version=no
10402 dynamic_linker="$host_os runtime_loader"
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 shlibpath_var=LIBRARY_PATH
10406 shlibpath_overrides_runpath=yes
10407 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10408 hardcode_into_libs=yes
10409 ;;
10410
10411 hpux9* | hpux10* | hpux11*)
10412 # Give a soname corresponding to the major version so that dld.sl refuses to
10413 # link against other versions.
10414 version_type=sunos
10415 need_lib_prefix=no
10416 need_version=no
10417 case $host_cpu in
10418 ia64*)
10419 shrext_cmds='.so'
10420 hardcode_into_libs=yes
10421 dynamic_linker="$host_os dld.so"
10422 shlibpath_var=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 if test "X$HPUX_IA64_MODE" = X32; then
10427 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10428 else
10429 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10430 fi
10431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10432 ;;
10433 hppa*64*)
10434 shrext_cmds='.sl'
10435 hardcode_into_libs=yes
10436 dynamic_linker="$host_os dld.sl"
10437 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10443 ;;
10444 *)
10445 shrext_cmds='.sl'
10446 dynamic_linker="$host_os dld.sl"
10447 shlibpath_var=SHLIB_PATH
10448 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 ;;
10452 esac
10453 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10454 postinstall_cmds='chmod 555 $lib'
10455 # or fails outright, so override atomically:
10456 install_override_mode=555
10457 ;;
10458
10459 interix[3-9]*)
10460 version_type=linux
10461 need_lib_prefix=no
10462 need_version=no
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=no
10468 hardcode_into_libs=yes
10469 ;;
10470
10471 irix5* | irix6* | nonstopux*)
10472 case $host_os in
10473 nonstopux*) version_type=nonstopux ;;
10474 *)
10475 if test "$lt_cv_prog_gnu_ld" = yes; then
10476 version_type=linux
10477 else
10478 version_type=irix
10479 fi ;;
10480 esac
10481 need_lib_prefix=no
10482 need_version=no
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10485 case $host_os in
10486 irix5* | nonstopux*)
10487 libsuff= shlibsuff=
10488 ;;
10489 *)
10490 case $LD in # libtool.m4 will add one of these switches to LD
10491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10492 libsuff= shlibsuff= libmagic=32-bit;;
10493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10494 libsuff=32 shlibsuff=N32 libmagic=N32;;
10495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10497 *) libsuff= shlibsuff= libmagic=never-match;;
10498 esac
10499 ;;
10500 esac
10501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10502 shlibpath_overrides_runpath=no
10503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10505 hardcode_into_libs=yes
10506 ;;
10507
10508 # No shared lib support for Linux oldld, aout, or coff.
10509 linux*oldld* | linux*aout* | linux*coff*)
10510 dynamic_linker=no
10511 ;;
10512
10513 # This must be Linux ELF.
10514 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10515 version_type=linux
10516 need_lib_prefix=no
10517 need_version=no
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=no
10523
10524 # Some binutils ld are patched to set DT_RUNPATH
10525 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 lt_cv_shlibpath_overrides_runpath=no
10529 save_LDFLAGS=$LDFLAGS
10530 save_libdir=$libdir
10531 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10532 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534 /* end confdefs.h. */
10535
10536 int
10537 main ()
10538 {
10539
10540 ;
10541 return 0;
10542 }
10543 _ACEOF
10544 if ac_fn_c_try_link "$LINENO"; then :
10545 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10546 lt_cv_shlibpath_overrides_runpath=yes
10547 fi
10548 fi
10549 rm -f core conftest.err conftest.$ac_objext \
10550 conftest$ac_exeext conftest.$ac_ext
10551 LDFLAGS=$save_LDFLAGS
10552 libdir=$save_libdir
10553
10554 fi
10555
10556 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10557
10558 # This implies no fast_install, which is unacceptable.
10559 # Some rework will be needed to allow for fast_install
10560 # before this can be enabled.
10561 hardcode_into_libs=yes
10562
10563 # Append ld.so.conf contents to the search path
10564 if test -f /etc/ld.so.conf; then
10565 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' ' '`
10566 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10567 fi
10568
10569 # We used to test for /lib/ld.so.1 and disable shared libraries on
10570 # powerpc, because MkLinux only supported shared libraries with the
10571 # GNU dynamic linker. Since this was broken with cross compilers,
10572 # most powerpc-linux boxes support dynamic linking these days and
10573 # people can always --disable-shared, the test was removed, and we
10574 # assume the GNU/Linux dynamic linker is in use.
10575 dynamic_linker='GNU/Linux ld.so'
10576 ;;
10577
10578 netbsd*)
10579 version_type=sunos
10580 need_lib_prefix=no
10581 need_version=no
10582 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10585 dynamic_linker='NetBSD (a.out) ld.so'
10586 else
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 dynamic_linker='NetBSD ld.elf_so'
10590 fi
10591 shlibpath_var=LD_LIBRARY_PATH
10592 shlibpath_overrides_runpath=yes
10593 hardcode_into_libs=yes
10594 ;;
10595
10596 newsos6)
10597 version_type=linux
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10601 ;;
10602
10603 *nto* | *qnx*)
10604 version_type=qnx
10605 need_lib_prefix=no
10606 need_version=no
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 soname_spec='${libname}${release}${shared_ext}$major'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 shlibpath_overrides_runpath=no
10611 hardcode_into_libs=yes
10612 dynamic_linker='ldqnx.so'
10613 ;;
10614
10615 openbsd*)
10616 version_type=sunos
10617 sys_lib_dlsearch_path_spec="/usr/lib"
10618 need_lib_prefix=no
10619 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10620 case $host_os in
10621 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10622 *) need_version=no ;;
10623 esac
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10628 case $host_os in
10629 openbsd2.[89] | openbsd2.[89].*)
10630 shlibpath_overrides_runpath=no
10631 ;;
10632 *)
10633 shlibpath_overrides_runpath=yes
10634 ;;
10635 esac
10636 else
10637 shlibpath_overrides_runpath=yes
10638 fi
10639 ;;
10640
10641 os2*)
10642 libname_spec='$name'
10643 shrext_cmds=".dll"
10644 need_lib_prefix=no
10645 library_names_spec='$libname${shared_ext} $libname.a'
10646 dynamic_linker='OS/2 ld.exe'
10647 shlibpath_var=LIBPATH
10648 ;;
10649
10650 osf3* | osf4* | osf5*)
10651 version_type=osf
10652 need_lib_prefix=no
10653 need_version=no
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10658 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10659 ;;
10660
10661 rdos*)
10662 dynamic_linker=no
10663 ;;
10664
10665 solaris*)
10666 version_type=linux
10667 need_lib_prefix=no
10668 need_version=no
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=yes
10673 hardcode_into_libs=yes
10674 # ldd complains unless libraries are executable
10675 postinstall_cmds='chmod +x $lib'
10676 ;;
10677
10678 sunos4*)
10679 version_type=sunos
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10681 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 shlibpath_overrides_runpath=yes
10684 if test "$with_gnu_ld" = yes; then
10685 need_lib_prefix=no
10686 fi
10687 need_version=yes
10688 ;;
10689
10690 sysv4 | sysv4.3*)
10691 version_type=linux
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693 soname_spec='${libname}${release}${shared_ext}$major'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 case $host_vendor in
10696 sni)
10697 shlibpath_overrides_runpath=no
10698 need_lib_prefix=no
10699 runpath_var=LD_RUN_PATH
10700 ;;
10701 siemens)
10702 need_lib_prefix=no
10703 ;;
10704 motorola)
10705 need_lib_prefix=no
10706 need_version=no
10707 shlibpath_overrides_runpath=no
10708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10709 ;;
10710 esac
10711 ;;
10712
10713 sysv4*MP*)
10714 if test -d /usr/nec ;then
10715 version_type=linux
10716 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10717 soname_spec='$libname${shared_ext}.$major'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 fi
10720 ;;
10721
10722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10723 version_type=freebsd-elf
10724 need_lib_prefix=no
10725 need_version=no
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10727 soname_spec='${libname}${release}${shared_ext}$major'
10728 shlibpath_var=LD_LIBRARY_PATH
10729 shlibpath_overrides_runpath=yes
10730 hardcode_into_libs=yes
10731 if test "$with_gnu_ld" = yes; then
10732 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10733 else
10734 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10735 case $host_os in
10736 sco3.2v5*)
10737 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10738 ;;
10739 esac
10740 fi
10741 sys_lib_dlsearch_path_spec='/usr/lib'
10742 ;;
10743
10744 tpf*)
10745 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10746 version_type=linux
10747 need_lib_prefix=no
10748 need_version=no
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750 shlibpath_var=LD_LIBRARY_PATH
10751 shlibpath_overrides_runpath=no
10752 hardcode_into_libs=yes
10753 ;;
10754
10755 uts4*)
10756 version_type=linux
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 ;;
10761
10762 *)
10763 dynamic_linker=no
10764 ;;
10765 esac
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10767 $as_echo "$dynamic_linker" >&6; }
10768 test "$dynamic_linker" = no && can_build_shared=no
10769
10770 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10771 if test "$GCC" = yes; then
10772 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10773 fi
10774
10775 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10776 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10777 fi
10778 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10779 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10780 fi
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10874 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10875 hardcode_action=
10876 if test -n "$hardcode_libdir_flag_spec" ||
10877 test -n "$runpath_var" ||
10878 test "X$hardcode_automatic" = "Xyes" ; then
10879
10880 # We can hardcode non-existent directories.
10881 if test "$hardcode_direct" != no &&
10882 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10883 # have to relink, otherwise we might link with an installed library
10884 # when we should be linking with a yet-to-be-installed one
10885 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10886 test "$hardcode_minus_L" != no; then
10887 # Linking always hardcodes the temporary library directory.
10888 hardcode_action=relink
10889 else
10890 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10891 hardcode_action=immediate
10892 fi
10893 else
10894 # We cannot hardcode anything, or else we can only hardcode existing
10895 # directories.
10896 hardcode_action=unsupported
10897 fi
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10899 $as_echo "$hardcode_action" >&6; }
10900
10901 if test "$hardcode_action" = relink ||
10902 test "$inherit_rpath" = yes; then
10903 # Fast installation is not supported
10904 enable_fast_install=no
10905 elif test "$shlibpath_overrides_runpath" = yes ||
10906 test "$enable_shared" = no; then
10907 # Fast installation is not necessary
10908 enable_fast_install=needless
10909 fi
10910
10911
10912
10913
10914
10915
10916 if test "x$enable_dlopen" != xyes; then
10917 enable_dlopen=unknown
10918 enable_dlopen_self=unknown
10919 enable_dlopen_self_static=unknown
10920 else
10921 lt_cv_dlopen=no
10922 lt_cv_dlopen_libs=
10923
10924 case $host_os in
10925 beos*)
10926 lt_cv_dlopen="load_add_on"
10927 lt_cv_dlopen_libs=
10928 lt_cv_dlopen_self=yes
10929 ;;
10930
10931 mingw* | pw32* | cegcc*)
10932 lt_cv_dlopen="LoadLibrary"
10933 lt_cv_dlopen_libs=
10934 ;;
10935
10936 cygwin*)
10937 lt_cv_dlopen="dlopen"
10938 lt_cv_dlopen_libs=
10939 ;;
10940
10941 darwin*)
10942 # if libdl is installed we need to link against it
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10944 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10945 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 ac_check_lib_save_LIBS=$LIBS
10949 LIBS="-ldl $LIBS"
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10952
10953 /* Override any GCC internal prototype to avoid an error.
10954 Use char because int might match the return type of a GCC
10955 builtin and then its argument prototype would still apply. */
10956 #ifdef __cplusplus
10957 extern "C"
10958 #endif
10959 char dlopen ();
10960 int
10961 main ()
10962 {
10963 return dlopen ();
10964 ;
10965 return 0;
10966 }
10967 _ACEOF
10968 if ac_fn_c_try_link "$LINENO"; then :
10969 ac_cv_lib_dl_dlopen=yes
10970 else
10971 ac_cv_lib_dl_dlopen=no
10972 fi
10973 rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10976 fi
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10978 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10979 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10981 else
10982
10983 lt_cv_dlopen="dyld"
10984 lt_cv_dlopen_libs=
10985 lt_cv_dlopen_self=yes
10986
10987 fi
10988
10989 ;;
10990
10991 *)
10992 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10993 if test "x$ac_cv_func_shl_load" = x""yes; then :
10994 lt_cv_dlopen="shl_load"
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10997 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10998 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-ldld $LIBS"
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 char shl_load ();
11013 int
11014 main ()
11015 {
11016 return shl_load ();
11017 ;
11018 return 0;
11019 }
11020 _ACEOF
11021 if ac_fn_c_try_link "$LINENO"; then :
11022 ac_cv_lib_dld_shl_load=yes
11023 else
11024 ac_cv_lib_dld_shl_load=no
11025 fi
11026 rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS
11029 fi
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11031 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11032 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11033 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11034 else
11035 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11036 if test "x$ac_cv_func_dlopen" = x""yes; then :
11037 lt_cv_dlopen="dlopen"
11038 else
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11040 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11041 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11043 else
11044 ac_check_lib_save_LIBS=$LIBS
11045 LIBS="-ldl $LIBS"
11046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11048
11049 /* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
11052 #ifdef __cplusplus
11053 extern "C"
11054 #endif
11055 char dlopen ();
11056 int
11057 main ()
11058 {
11059 return dlopen ();
11060 ;
11061 return 0;
11062 }
11063 _ACEOF
11064 if ac_fn_c_try_link "$LINENO"; then :
11065 ac_cv_lib_dl_dlopen=yes
11066 else
11067 ac_cv_lib_dl_dlopen=no
11068 fi
11069 rm -f core conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext conftest.$ac_ext
11071 LIBS=$ac_check_lib_save_LIBS
11072 fi
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11074 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11075 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11077 else
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11079 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11080 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 ac_check_lib_save_LIBS=$LIBS
11084 LIBS="-lsvld $LIBS"
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11087
11088 /* Override any GCC internal prototype to avoid an error.
11089 Use char because int might match the return type of a GCC
11090 builtin and then its argument prototype would still apply. */
11091 #ifdef __cplusplus
11092 extern "C"
11093 #endif
11094 char dlopen ();
11095 int
11096 main ()
11097 {
11098 return dlopen ();
11099 ;
11100 return 0;
11101 }
11102 _ACEOF
11103 if ac_fn_c_try_link "$LINENO"; then :
11104 ac_cv_lib_svld_dlopen=yes
11105 else
11106 ac_cv_lib_svld_dlopen=no
11107 fi
11108 rm -f core conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
11110 LIBS=$ac_check_lib_save_LIBS
11111 fi
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11113 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11114 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11115 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11116 else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11118 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11119 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
11121 else
11122 ac_check_lib_save_LIBS=$LIBS
11123 LIBS="-ldld $LIBS"
11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11126
11127 /* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
11130 #ifdef __cplusplus
11131 extern "C"
11132 #endif
11133 char dld_link ();
11134 int
11135 main ()
11136 {
11137 return dld_link ();
11138 ;
11139 return 0;
11140 }
11141 _ACEOF
11142 if ac_fn_c_try_link "$LINENO"; then :
11143 ac_cv_lib_dld_dld_link=yes
11144 else
11145 ac_cv_lib_dld_dld_link=no
11146 fi
11147 rm -f core conftest.err conftest.$ac_objext \
11148 conftest$ac_exeext conftest.$ac_ext
11149 LIBS=$ac_check_lib_save_LIBS
11150 fi
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11152 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11153 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11154 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11155 fi
11156
11157
11158 fi
11159
11160
11161 fi
11162
11163
11164 fi
11165
11166
11167 fi
11168
11169
11170 fi
11171
11172 ;;
11173 esac
11174
11175 if test "x$lt_cv_dlopen" != xno; then
11176 enable_dlopen=yes
11177 else
11178 enable_dlopen=no
11179 fi
11180
11181 case $lt_cv_dlopen in
11182 dlopen)
11183 save_CPPFLAGS="$CPPFLAGS"
11184 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11185
11186 save_LDFLAGS="$LDFLAGS"
11187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11188
11189 save_LIBS="$LIBS"
11190 LIBS="$lt_cv_dlopen_libs $LIBS"
11191
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11193 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11194 if test "${lt_cv_dlopen_self+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197 if test "$cross_compiling" = yes; then :
11198 lt_cv_dlopen_self=cross
11199 else
11200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11201 lt_status=$lt_dlunknown
11202 cat > conftest.$ac_ext <<_LT_EOF
11203 #line 11203 "configure"
11204 #include "confdefs.h"
11205
11206 #if HAVE_DLFCN_H
11207 #include <dlfcn.h>
11208 #endif
11209
11210 #include <stdio.h>
11211
11212 #ifdef RTLD_GLOBAL
11213 # define LT_DLGLOBAL RTLD_GLOBAL
11214 #else
11215 # ifdef DL_GLOBAL
11216 # define LT_DLGLOBAL DL_GLOBAL
11217 # else
11218 # define LT_DLGLOBAL 0
11219 # endif
11220 #endif
11221
11222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11223 find out it does not work in some platform. */
11224 #ifndef LT_DLLAZY_OR_NOW
11225 # ifdef RTLD_LAZY
11226 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11227 # else
11228 # ifdef DL_LAZY
11229 # define LT_DLLAZY_OR_NOW DL_LAZY
11230 # else
11231 # ifdef RTLD_NOW
11232 # define LT_DLLAZY_OR_NOW RTLD_NOW
11233 # else
11234 # ifdef DL_NOW
11235 # define LT_DLLAZY_OR_NOW DL_NOW
11236 # else
11237 # define LT_DLLAZY_OR_NOW 0
11238 # endif
11239 # endif
11240 # endif
11241 # endif
11242 #endif
11243
11244 /* When -fvisbility=hidden is used, assume the code has been annotated
11245 correspondingly for the symbols needed. */
11246 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11247 void fnord () __attribute__((visibility("default")));
11248 #endif
11249
11250 void fnord () { int i=42; }
11251 int main ()
11252 {
11253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11254 int status = $lt_dlunknown;
11255
11256 if (self)
11257 {
11258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11259 else
11260 {
11261 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11262 else puts (dlerror ());
11263 }
11264 /* dlclose (self); */
11265 }
11266 else
11267 puts (dlerror ());
11268
11269 return status;
11270 }
11271 _LT_EOF
11272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11273 (eval $ac_link) 2>&5
11274 ac_status=$?
11275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11277 (./conftest; exit; ) >&5 2>/dev/null
11278 lt_status=$?
11279 case x$lt_status in
11280 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11281 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11282 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11283 esac
11284 else :
11285 # compilation failed
11286 lt_cv_dlopen_self=no
11287 fi
11288 fi
11289 rm -fr conftest*
11290
11291
11292 fi
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11294 $as_echo "$lt_cv_dlopen_self" >&6; }
11295
11296 if test "x$lt_cv_dlopen_self" = xyes; then
11297 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11299 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11300 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 if test "$cross_compiling" = yes; then :
11304 lt_cv_dlopen_self_static=cross
11305 else
11306 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11307 lt_status=$lt_dlunknown
11308 cat > conftest.$ac_ext <<_LT_EOF
11309 #line 11309 "configure"
11310 #include "confdefs.h"
11311
11312 #if HAVE_DLFCN_H
11313 #include <dlfcn.h>
11314 #endif
11315
11316 #include <stdio.h>
11317
11318 #ifdef RTLD_GLOBAL
11319 # define LT_DLGLOBAL RTLD_GLOBAL
11320 #else
11321 # ifdef DL_GLOBAL
11322 # define LT_DLGLOBAL DL_GLOBAL
11323 # else
11324 # define LT_DLGLOBAL 0
11325 # endif
11326 #endif
11327
11328 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11329 find out it does not work in some platform. */
11330 #ifndef LT_DLLAZY_OR_NOW
11331 # ifdef RTLD_LAZY
11332 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11333 # else
11334 # ifdef DL_LAZY
11335 # define LT_DLLAZY_OR_NOW DL_LAZY
11336 # else
11337 # ifdef RTLD_NOW
11338 # define LT_DLLAZY_OR_NOW RTLD_NOW
11339 # else
11340 # ifdef DL_NOW
11341 # define LT_DLLAZY_OR_NOW DL_NOW
11342 # else
11343 # define LT_DLLAZY_OR_NOW 0
11344 # endif
11345 # endif
11346 # endif
11347 # endif
11348 #endif
11349
11350 /* When -fvisbility=hidden is used, assume the code has been annotated
11351 correspondingly for the symbols needed. */
11352 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11353 void fnord () __attribute__((visibility("default")));
11354 #endif
11355
11356 void fnord () { int i=42; }
11357 int main ()
11358 {
11359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11360 int status = $lt_dlunknown;
11361
11362 if (self)
11363 {
11364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11365 else
11366 {
11367 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11368 else puts (dlerror ());
11369 }
11370 /* dlclose (self); */
11371 }
11372 else
11373 puts (dlerror ());
11374
11375 return status;
11376 }
11377 _LT_EOF
11378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11379 (eval $ac_link) 2>&5
11380 ac_status=$?
11381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11382 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11383 (./conftest; exit; ) >&5 2>/dev/null
11384 lt_status=$?
11385 case x$lt_status in
11386 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11387 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11388 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11389 esac
11390 else :
11391 # compilation failed
11392 lt_cv_dlopen_self_static=no
11393 fi
11394 fi
11395 rm -fr conftest*
11396
11397
11398 fi
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11400 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11401 fi
11402
11403 CPPFLAGS="$save_CPPFLAGS"
11404 LDFLAGS="$save_LDFLAGS"
11405 LIBS="$save_LIBS"
11406 ;;
11407 esac
11408
11409 case $lt_cv_dlopen_self in
11410 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11411 *) enable_dlopen_self=unknown ;;
11412 esac
11413
11414 case $lt_cv_dlopen_self_static in
11415 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11416 *) enable_dlopen_self_static=unknown ;;
11417 esac
11418 fi
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436 striplib=
11437 old_striplib=
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11439 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11440 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11441 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11442 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11444 $as_echo "yes" >&6; }
11445 else
11446 # FIXME - insert some real tests, host_os isn't really good enough
11447 case $host_os in
11448 darwin*)
11449 if test -n "$STRIP" ; then
11450 striplib="$STRIP -x"
11451 old_striplib="$STRIP -S"
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11453 $as_echo "yes" >&6; }
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 fi
11458 ;;
11459 *)
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11462 ;;
11463 esac
11464 fi
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477 # Report which library types will actually be built
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11479 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11481 $as_echo "$can_build_shared" >&6; }
11482
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11484 $as_echo_n "checking whether to build shared libraries... " >&6; }
11485 test "$can_build_shared" = "no" && enable_shared=no
11486
11487 # On AIX, shared libraries and static libraries use the same namespace, and
11488 # are all built from PIC.
11489 case $host_os in
11490 aix3*)
11491 test "$enable_shared" = yes && enable_static=no
11492 if test -n "$RANLIB"; then
11493 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11494 postinstall_cmds='$RANLIB $lib'
11495 fi
11496 ;;
11497
11498 aix[4-9]*)
11499 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11500 test "$enable_shared" = yes && enable_static=no
11501 fi
11502 ;;
11503 esac
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11505 $as_echo "$enable_shared" >&6; }
11506
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11508 $as_echo_n "checking whether to build static libraries... " >&6; }
11509 # Make sure either enable_shared or enable_static is yes.
11510 test "$enable_shared" = yes || enable_static=yes
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11512 $as_echo "$enable_static" >&6; }
11513
11514
11515
11516
11517 fi
11518 ac_ext=c
11519 ac_cpp='$CPP $CPPFLAGS'
11520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11523
11524 CC="$lt_save_CC"
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538 ac_config_commands="$ac_config_commands libtool"
11539
11540
11541
11542
11543 # Only expand once:
11544
11545
11546
11547 # Check whether --enable-targets was given.
11548 if test "${enable_targets+set}" = set; then :
11549 enableval=$enable_targets; case "${enableval}" in
11550 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11551 ;;
11552 no) enable_targets= ;;
11553 *) enable_targets=$enableval ;;
11554 esac
11555 fi
11556
11557
11558 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561 __GNUC__
11562 _ACEOF
11563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11564 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11565
11566 else
11567 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11568 fi
11569 rm -f conftest*
11570
11571
11572 # Check whether --enable-werror was given.
11573 if test "${enable_werror+set}" = set; then :
11574 enableval=$enable_werror; case "${enableval}" in
11575 yes | y) ERROR_ON_WARNING="yes" ;;
11576 no | n) ERROR_ON_WARNING="no" ;;
11577 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11578 esac
11579 fi
11580
11581
11582 # Disable -Wformat by default when using gcc on mingw
11583 case "${host}" in
11584 *-*-mingw32*)
11585 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11586 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11587 fi
11588 ;;
11589 *) ;;
11590 esac
11591
11592 # Enable -Werror by default when using gcc
11593 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11594 ERROR_ON_WARNING=yes
11595 fi
11596
11597 NO_WERROR=
11598 if test "${ERROR_ON_WARNING}" = yes ; then
11599 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11600 NO_WERROR="-Wno-error"
11601 fi
11602
11603 if test "${GCC}" = yes ; then
11604 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11605 fi
11606
11607 # Check whether --enable-build-warnings was given.
11608 if test "${enable_build_warnings+set}" = set; then :
11609 enableval=$enable_build_warnings; case "${enableval}" in
11610 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11611 no) if test "${GCC}" = yes ; then
11612 WARN_CFLAGS="-w"
11613 fi;;
11614 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11615 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11616 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11617 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11618 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11619 esac
11620 fi
11621
11622
11623 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11624 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11625 fi
11626
11627
11628
11629
11630
11631 ac_config_headers="$ac_config_headers config.h:config.in"
11632
11633
11634 if test -z "$target" ; then
11635 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
11636 fi
11637 if test -z "$host" ; then
11638 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
11639 fi
11640
11641 for ac_prog in 'bison -y' byacc
11642 do
11643 # Extract the first word of "$ac_prog", so it can be a program name with args.
11644 set dummy $ac_prog; ac_word=$2
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11646 $as_echo_n "checking for $ac_word... " >&6; }
11647 if test "${ac_cv_prog_YACC+set}" = set; then :
11648 $as_echo_n "(cached) " >&6
11649 else
11650 if test -n "$YACC"; then
11651 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11652 else
11653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11654 for as_dir in $PATH
11655 do
11656 IFS=$as_save_IFS
11657 test -z "$as_dir" && as_dir=.
11658 for ac_exec_ext in '' $ac_executable_extensions; do
11659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11660 ac_cv_prog_YACC="$ac_prog"
11661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11662 break 2
11663 fi
11664 done
11665 done
11666 IFS=$as_save_IFS
11667
11668 fi
11669 fi
11670 YACC=$ac_cv_prog_YACC
11671 if test -n "$YACC"; then
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11673 $as_echo "$YACC" >&6; }
11674 else
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11677 fi
11678
11679
11680 test -n "$YACC" && break
11681 done
11682 test -n "$YACC" || YACC="yacc"
11683
11684 for ac_prog in flex lex
11685 do
11686 # Extract the first word of "$ac_prog", so it can be a program name with args.
11687 set dummy $ac_prog; ac_word=$2
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11689 $as_echo_n "checking for $ac_word... " >&6; }
11690 if test "${ac_cv_prog_LEX+set}" = set; then :
11691 $as_echo_n "(cached) " >&6
11692 else
11693 if test -n "$LEX"; then
11694 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11695 else
11696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697 for as_dir in $PATH
11698 do
11699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11703 ac_cv_prog_LEX="$ac_prog"
11704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11705 break 2
11706 fi
11707 done
11708 done
11709 IFS=$as_save_IFS
11710
11711 fi
11712 fi
11713 LEX=$ac_cv_prog_LEX
11714 if test -n "$LEX"; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11716 $as_echo "$LEX" >&6; }
11717 else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 $as_echo "no" >&6; }
11720 fi
11721
11722
11723 test -n "$LEX" && break
11724 done
11725 test -n "$LEX" || LEX=":"
11726
11727 if test "x$LEX" != "x:"; then
11728 cat >conftest.l <<_ACEOF
11729 %%
11730 a { ECHO; }
11731 b { REJECT; }
11732 c { yymore (); }
11733 d { yyless (1); }
11734 e { yyless (input () != 0); }
11735 f { unput (yytext[0]); }
11736 . { BEGIN INITIAL; }
11737 %%
11738 #ifdef YYTEXT_POINTER
11739 extern char *yytext;
11740 #endif
11741 int
11742 main (void)
11743 {
11744 return ! yylex () + ! yywrap ();
11745 }
11746 _ACEOF
11747 { { ac_try="$LEX conftest.l"
11748 case "(($ac_try" in
11749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750 *) ac_try_echo=$ac_try;;
11751 esac
11752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11753 $as_echo "$ac_try_echo"; } >&5
11754 (eval "$LEX conftest.l") 2>&5
11755 ac_status=$?
11756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11757 test $ac_status = 0; }
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
11759 $as_echo_n "checking lex output file root... " >&6; }
11760 if test "${ac_cv_prog_lex_root+set}" = set; then :
11761 $as_echo_n "(cached) " >&6
11762 else
11763
11764 if test -f lex.yy.c; then
11765 ac_cv_prog_lex_root=lex.yy
11766 elif test -f lexyy.c; then
11767 ac_cv_prog_lex_root=lexyy
11768 else
11769 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
11770 fi
11771 fi
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11773 $as_echo "$ac_cv_prog_lex_root" >&6; }
11774 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11775
11776 if test -z "${LEXLIB+set}"; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
11778 $as_echo_n "checking lex library... " >&6; }
11779 if test "${ac_cv_lib_lex+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782
11783 ac_save_LIBS=$LIBS
11784 ac_cv_lib_lex='none needed'
11785 for ac_lib in '' -lfl -ll; do
11786 LIBS="$ac_lib $ac_save_LIBS"
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11789 `cat $LEX_OUTPUT_ROOT.c`
11790 _ACEOF
11791 if ac_fn_c_try_link "$LINENO"; then :
11792 ac_cv_lib_lex=$ac_lib
11793 fi
11794 rm -f core conftest.err conftest.$ac_objext \
11795 conftest$ac_exeext conftest.$ac_ext
11796 test "$ac_cv_lib_lex" != 'none needed' && break
11797 done
11798 LIBS=$ac_save_LIBS
11799
11800 fi
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11802 $as_echo "$ac_cv_lib_lex" >&6; }
11803 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
11804 fi
11805
11806
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11808 $as_echo_n "checking whether yytext is a pointer... " >&6; }
11809 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
11810 $as_echo_n "(cached) " >&6
11811 else
11812 # POSIX says lex can declare yytext either as a pointer or an array; the
11813 # default is implementation-dependent. Figure out which it is, since
11814 # not all implementations provide the %pointer and %array declarations.
11815 ac_cv_prog_lex_yytext_pointer=no
11816 ac_save_LIBS=$LIBS
11817 LIBS="$LEXLIB $ac_save_LIBS"
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11820 #define YYTEXT_POINTER 1
11821 `cat $LEX_OUTPUT_ROOT.c`
11822 _ACEOF
11823 if ac_fn_c_try_link "$LINENO"; then :
11824 ac_cv_prog_lex_yytext_pointer=yes
11825 fi
11826 rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11828 LIBS=$ac_save_LIBS
11829
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11832 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
11833 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11834
11835 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
11836
11837 fi
11838 rm -f conftest.l $LEX_OUTPUT_ROOT.c
11839
11840 fi
11841 if test "$LEX" = :; then
11842 LEX=${am_missing_run}flex
11843 fi
11844
11845 ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW"
11846 # If we haven't got the data from the intl directory,
11847 # assume NLS is disabled.
11848 USE_NLS=no
11849 LIBINTL=
11850 LIBINTL_DEP=
11851 INCINTL=
11852 XGETTEXT=
11853 GMSGFMT=
11854 POSUB=
11855
11856 if test -f ../intl/config.intl; then
11857 . ../intl/config.intl
11858 fi
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11860 $as_echo_n "checking whether NLS is requested... " >&6; }
11861 if test x"$USE_NLS" != xyes; then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11866 $as_echo "yes" >&6; }
11867
11868 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11869
11870
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11872 $as_echo_n "checking for catalogs to be installed... " >&6; }
11873 # Look for .po and .gmo files in the source directory.
11874 CATALOGS=
11875 XLINGUAS=
11876 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11877 # If there aren't any .gmo files the shell will give us the
11878 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11879 # weeded out.
11880 case "$cat" in *\**)
11881 continue;;
11882 esac
11883 # The quadruple backslash is collapsed to a double backslash
11884 # by the backticks, then collapsed again by the double quotes,
11885 # leaving us with one backslash in the sed expression (right
11886 # before the dot that mustn't act as a wildcard).
11887 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11888 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11889 # The user is allowed to set LINGUAS to a list of languages to
11890 # install catalogs for. If it's empty that means "all of them."
11891 if test "x$LINGUAS" = x; then
11892 CATALOGS="$CATALOGS $cat"
11893 XLINGUAS="$XLINGUAS $lang"
11894 else
11895 case "$LINGUAS" in *$lang*)
11896 CATALOGS="$CATALOGS $cat"
11897 XLINGUAS="$XLINGUAS $lang"
11898 ;;
11899 esac
11900 fi
11901 done
11902 LINGUAS="$XLINGUAS"
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11904 $as_echo "$LINGUAS" >&6; }
11905
11906
11907 DATADIRNAME=share
11908
11909 INSTOBJEXT=.mo
11910
11911 GENCAT=gencat
11912
11913 CATOBJEXT=.gmo
11914
11915 fi
11916
11917 MKINSTALLDIRS=
11918 if test -n "$ac_aux_dir"; then
11919 case "$ac_aux_dir" in
11920 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11921 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11922 esac
11923 fi
11924 if test -z "$MKINSTALLDIRS"; then
11925 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11926 fi
11927
11928
11929
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11931 $as_echo_n "checking whether NLS is requested... " >&6; }
11932 # Check whether --enable-nls was given.
11933 if test "${enable_nls+set}" = set; then :
11934 enableval=$enable_nls; USE_NLS=$enableval
11935 else
11936 USE_NLS=yes
11937 fi
11938
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11940 $as_echo "$USE_NLS" >&6; }
11941
11942
11943
11944
11945
11946
11947 # Prepare PATH_SEPARATOR.
11948 # The user is always right.
11949 if test "${PATH_SEPARATOR+set}" != set; then
11950 echo "#! /bin/sh" >conf$$.sh
11951 echo "exit 0" >>conf$$.sh
11952 chmod +x conf$$.sh
11953 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11954 PATH_SEPARATOR=';'
11955 else
11956 PATH_SEPARATOR=:
11957 fi
11958 rm -f conf$$.sh
11959 fi
11960
11961 # Find out how to test for executable files. Don't use a zero-byte file,
11962 # as systems may use methods other than mode bits to determine executability.
11963 cat >conf$$.file <<_ASEOF
11964 #! /bin/sh
11965 exit 0
11966 _ASEOF
11967 chmod +x conf$$.file
11968 if test -x conf$$.file >/dev/null 2>&1; then
11969 ac_executable_p="test -x"
11970 else
11971 ac_executable_p="test -f"
11972 fi
11973 rm -f conf$$.file
11974
11975 # Extract the first word of "msgfmt", so it can be a program name with args.
11976 set dummy msgfmt; ac_word=$2
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11978 $as_echo_n "checking for $ac_word... " >&6; }
11979 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 case "$MSGFMT" in
11983 [\\/]* | ?:[\\/]*)
11984 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11985 ;;
11986 *)
11987 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11988 for ac_dir in $PATH; do
11989 IFS="$ac_save_IFS"
11990 test -z "$ac_dir" && ac_dir=.
11991 for ac_exec_ext in '' $ac_executable_extensions; do
11992 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11993 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11994 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11995 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11996 break 2
11997 fi
11998 fi
11999 done
12000 done
12001 IFS="$ac_save_IFS"
12002 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12003 ;;
12004 esac
12005 fi
12006 MSGFMT="$ac_cv_path_MSGFMT"
12007 if test "$MSGFMT" != ":"; then
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12009 $as_echo "$MSGFMT" >&6; }
12010 else
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12013 fi
12014
12015 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12016 set dummy gmsgfmt; ac_word=$2
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018 $as_echo_n "checking for $ac_word... " >&6; }
12019 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 case $GMSGFMT in
12023 [\\/]* | ?:[\\/]*)
12024 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12025 ;;
12026 *)
12027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028 for as_dir in $PATH
12029 do
12030 IFS=$as_save_IFS
12031 test -z "$as_dir" && as_dir=.
12032 for ac_exec_ext in '' $ac_executable_extensions; do
12033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12034 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 break 2
12037 fi
12038 done
12039 done
12040 IFS=$as_save_IFS
12041
12042 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12043 ;;
12044 esac
12045 fi
12046 GMSGFMT=$ac_cv_path_GMSGFMT
12047 if test -n "$GMSGFMT"; then
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12049 $as_echo "$GMSGFMT" >&6; }
12050 else
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12053 fi
12054
12055
12056
12057
12058 # Prepare PATH_SEPARATOR.
12059 # The user is always right.
12060 if test "${PATH_SEPARATOR+set}" != set; then
12061 echo "#! /bin/sh" >conf$$.sh
12062 echo "exit 0" >>conf$$.sh
12063 chmod +x conf$$.sh
12064 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12065 PATH_SEPARATOR=';'
12066 else
12067 PATH_SEPARATOR=:
12068 fi
12069 rm -f conf$$.sh
12070 fi
12071
12072 # Find out how to test for executable files. Don't use a zero-byte file,
12073 # as systems may use methods other than mode bits to determine executability.
12074 cat >conf$$.file <<_ASEOF
12075 #! /bin/sh
12076 exit 0
12077 _ASEOF
12078 chmod +x conf$$.file
12079 if test -x conf$$.file >/dev/null 2>&1; then
12080 ac_executable_p="test -x"
12081 else
12082 ac_executable_p="test -f"
12083 fi
12084 rm -f conf$$.file
12085
12086 # Extract the first word of "xgettext", so it can be a program name with args.
12087 set dummy xgettext; ac_word=$2
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12089 $as_echo_n "checking for $ac_word... " >&6; }
12090 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12091 $as_echo_n "(cached) " >&6
12092 else
12093 case "$XGETTEXT" in
12094 [\\/]* | ?:[\\/]*)
12095 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12096 ;;
12097 *)
12098 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12099 for ac_dir in $PATH; do
12100 IFS="$ac_save_IFS"
12101 test -z "$ac_dir" && ac_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12104 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12105 (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
12106 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12107 break 2
12108 fi
12109 fi
12110 done
12111 done
12112 IFS="$ac_save_IFS"
12113 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12114 ;;
12115 esac
12116 fi
12117 XGETTEXT="$ac_cv_path_XGETTEXT"
12118 if test "$XGETTEXT" != ":"; then
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12120 $as_echo "$XGETTEXT" >&6; }
12121 else
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12124 fi
12125
12126 rm -f messages.po
12127
12128
12129 # Prepare PATH_SEPARATOR.
12130 # The user is always right.
12131 if test "${PATH_SEPARATOR+set}" != set; then
12132 echo "#! /bin/sh" >conf$$.sh
12133 echo "exit 0" >>conf$$.sh
12134 chmod +x conf$$.sh
12135 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12136 PATH_SEPARATOR=';'
12137 else
12138 PATH_SEPARATOR=:
12139 fi
12140 rm -f conf$$.sh
12141 fi
12142
12143 # Find out how to test for executable files. Don't use a zero-byte file,
12144 # as systems may use methods other than mode bits to determine executability.
12145 cat >conf$$.file <<_ASEOF
12146 #! /bin/sh
12147 exit 0
12148 _ASEOF
12149 chmod +x conf$$.file
12150 if test -x conf$$.file >/dev/null 2>&1; then
12151 ac_executable_p="test -x"
12152 else
12153 ac_executable_p="test -f"
12154 fi
12155 rm -f conf$$.file
12156
12157 # Extract the first word of "msgmerge", so it can be a program name with args.
12158 set dummy msgmerge; ac_word=$2
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 case "$MSGMERGE" in
12165 [\\/]* | ?:[\\/]*)
12166 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12167 ;;
12168 *)
12169 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12170 for ac_dir in $PATH; do
12171 IFS="$ac_save_IFS"
12172 test -z "$ac_dir" && ac_dir=.
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12175 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12176 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12177 break 2
12178 fi
12179 fi
12180 done
12181 done
12182 IFS="$ac_save_IFS"
12183 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12184 ;;
12185 esac
12186 fi
12187 MSGMERGE="$ac_cv_path_MSGMERGE"
12188 if test "$MSGMERGE" != ":"; then
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12190 $as_echo "$MSGMERGE" >&6; }
12191 else
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12194 fi
12195
12196
12197 if test "$GMSGFMT" != ":"; then
12198 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12199 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12200 : ;
12201 else
12202 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12204 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12205 GMSGFMT=":"
12206 fi
12207 fi
12208
12209 if test "$XGETTEXT" != ":"; then
12210 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12211 (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
12212 : ;
12213 else
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12215 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12216 XGETTEXT=":"
12217 fi
12218 rm -f messages.po
12219 fi
12220
12221 ac_config_commands="$ac_config_commands default-1"
12222
12223
12224
12225
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12227 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12228 # Check whether --enable-maintainer-mode was given.
12229 if test "${enable_maintainer_mode+set}" = set; then :
12230 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12231 else
12232 USE_MAINTAINER_MODE=no
12233 fi
12234
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12236 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12237 if test $USE_MAINTAINER_MODE = yes; then
12238 MAINTAINER_MODE_TRUE=
12239 MAINTAINER_MODE_FALSE='#'
12240 else
12241 MAINTAINER_MODE_TRUE='#'
12242 MAINTAINER_MODE_FALSE=
12243 fi
12244
12245 MAINT=$MAINTAINER_MODE_TRUE
12246
12247
12248 if false; then
12249 GENINSRC_NEVER_TRUE=
12250 GENINSRC_NEVER_FALSE='#'
12251 else
12252 GENINSRC_NEVER_TRUE='#'
12253 GENINSRC_NEVER_FALSE=
12254 fi
12255
12256
12257 if test -n "$EXEEXT"; then
12258
12259 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
12260
12261 fi
12262
12263 cat >>confdefs.h <<_ACEOF
12264 #define EXECUTABLE_SUFFIX "${EXEEXT}"
12265 _ACEOF
12266
12267
12268 # host-specific stuff:
12269
12270 HDEFINES=
12271
12272 . ${srcdir}/../bfd/configure.host
12273
12274
12275 AR=${AR-ar}
12276
12277 if test -n "$ac_tool_prefix"; then
12278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 if test -n "$RANLIB"; then
12286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12287 else
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in $PATH
12290 do
12291 IFS=$as_save_IFS
12292 test -z "$as_dir" && as_dir=.
12293 for ac_exec_ext in '' $ac_executable_extensions; do
12294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 break 2
12298 fi
12299 done
12300 done
12301 IFS=$as_save_IFS
12302
12303 fi
12304 fi
12305 RANLIB=$ac_cv_prog_RANLIB
12306 if test -n "$RANLIB"; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12308 $as_echo "$RANLIB" >&6; }
12309 else
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12312 fi
12313
12314
12315 fi
12316 if test -z "$ac_cv_prog_RANLIB"; then
12317 ac_ct_RANLIB=$RANLIB
12318 # Extract the first word of "ranlib", so it can be a program name with args.
12319 set dummy ranlib; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 if test -n "$ac_ct_RANLIB"; then
12326 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12327 else
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12330 do
12331 IFS=$as_save_IFS
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335 ac_cv_prog_ac_ct_RANLIB="ranlib"
12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337 break 2
12338 fi
12339 done
12340 done
12341 IFS=$as_save_IFS
12342
12343 fi
12344 fi
12345 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12346 if test -n "$ac_ct_RANLIB"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12348 $as_echo "$ac_ct_RANLIB" >&6; }
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12352 fi
12353
12354 if test "x$ac_ct_RANLIB" = x; then
12355 RANLIB=":"
12356 else
12357 case $cross_compiling:$ac_tool_warned in
12358 yes:)
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12361 ac_tool_warned=yes ;;
12362 esac
12363 RANLIB=$ac_ct_RANLIB
12364 fi
12365 else
12366 RANLIB="$ac_cv_prog_RANLIB"
12367 fi
12368
12369
12370
12371 # Put a plausible default for CC_FOR_BUILD in Makefile.
12372 if test -z "$CC_FOR_BUILD"; then
12373 if test "x$cross_compiling" = "xno"; then
12374 CC_FOR_BUILD='$(CC)'
12375 else
12376 CC_FOR_BUILD=gcc
12377 fi
12378 fi
12379
12380 # Also set EXEEXT_FOR_BUILD.
12381 if test "x$cross_compiling" = "xno"; then
12382 EXEEXT_FOR_BUILD='$(EXEEXT)'
12383 else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12385 $as_echo_n "checking for build system executable suffix... " >&6; }
12386 if test "${bfd_cv_build_exeext+set}" = set; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 rm -f conftest*
12390 echo 'int main () { return 0; }' > conftest.c
12391 bfd_cv_build_exeext=
12392 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12393 for file in conftest.*; do
12394 case $file in
12395 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12396 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12397 esac
12398 done
12399 rm -f conftest*
12400 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12401 fi
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12403 $as_echo "$bfd_cv_build_exeext" >&6; }
12404 EXEEXT_FOR_BUILD=""
12405 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12406 fi
12407
12408
12409 DEMANGLER_NAME=c++filt
12410 case "${host}" in
12411 *-*-go32* | *-*-msdos*)
12412 DEMANGLER_NAME=cxxfilt
12413 esac
12414
12415
12416 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
12417 do :
12418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12419 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12420 eval as_val=\$$as_ac_Header
12421 if test "x$as_val" = x""yes; then :
12422 cat >>confdefs.h <<_ACEOF
12423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12424 _ACEOF
12425
12426 fi
12427
12428 done
12429
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12431 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12432 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12437 #include <sys/types.h>
12438 #include <sys/wait.h>
12439 #ifndef WEXITSTATUS
12440 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12441 #endif
12442 #ifndef WIFEXITED
12443 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12444 #endif
12445
12446 int
12447 main ()
12448 {
12449 int s;
12450 wait (&s);
12451 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12452 ;
12453 return 0;
12454 }
12455 _ACEOF
12456 if ac_fn_c_try_compile "$LINENO"; then :
12457 ac_cv_header_sys_wait_h=yes
12458 else
12459 ac_cv_header_sys_wait_h=no
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12462 fi
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12464 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12465 if test $ac_cv_header_sys_wait_h = yes; then
12466
12467 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12468
12469 fi
12470
12471 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12472 # for constant arguments. Useless!
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12474 $as_echo_n "checking for working alloca.h... " >&6; }
12475 if test "${ac_cv_working_alloca_h+set}" = set; then :
12476 $as_echo_n "(cached) " >&6
12477 else
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12480 #include <alloca.h>
12481 int
12482 main ()
12483 {
12484 char *p = (char *) alloca (2 * sizeof (int));
12485 if (p) return 0;
12486 ;
12487 return 0;
12488 }
12489 _ACEOF
12490 if ac_fn_c_try_link "$LINENO"; then :
12491 ac_cv_working_alloca_h=yes
12492 else
12493 ac_cv_working_alloca_h=no
12494 fi
12495 rm -f core conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12497 fi
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12499 $as_echo "$ac_cv_working_alloca_h" >&6; }
12500 if test $ac_cv_working_alloca_h = yes; then
12501
12502 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12503
12504 fi
12505
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12507 $as_echo_n "checking for alloca... " >&6; }
12508 if test "${ac_cv_func_alloca_works+set}" = set; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h. */
12513 #ifdef __GNUC__
12514 # define alloca __builtin_alloca
12515 #else
12516 # ifdef _MSC_VER
12517 # include <malloc.h>
12518 # define alloca _alloca
12519 # else
12520 # ifdef HAVE_ALLOCA_H
12521 # include <alloca.h>
12522 # else
12523 # ifdef _AIX
12524 #pragma alloca
12525 # else
12526 # ifndef alloca /* predefined by HP cc +Olibcalls */
12527 char *alloca ();
12528 # endif
12529 # endif
12530 # endif
12531 # endif
12532 #endif
12533
12534 int
12535 main ()
12536 {
12537 char *p = (char *) alloca (1);
12538 if (p) return 0;
12539 ;
12540 return 0;
12541 }
12542 _ACEOF
12543 if ac_fn_c_try_link "$LINENO"; then :
12544 ac_cv_func_alloca_works=yes
12545 else
12546 ac_cv_func_alloca_works=no
12547 fi
12548 rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12550 fi
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12552 $as_echo "$ac_cv_func_alloca_works" >&6; }
12553
12554 if test $ac_cv_func_alloca_works = yes; then
12555
12556 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12557
12558 else
12559 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12560 # that cause trouble. Some versions do not even contain alloca or
12561 # contain a buggy version. If you still want to use their alloca,
12562 # use ar to extract alloca.o from them instead of compiling alloca.c.
12563
12564 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12565
12566 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12567
12568
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12570 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12571 if test "${ac_cv_os_cray+set}" = set; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12576 #if defined CRAY && ! defined CRAY2
12577 webecray
12578 #else
12579 wenotbecray
12580 #endif
12581
12582 _ACEOF
12583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12584 $EGREP "webecray" >/dev/null 2>&1; then :
12585 ac_cv_os_cray=yes
12586 else
12587 ac_cv_os_cray=no
12588 fi
12589 rm -f conftest*
12590
12591 fi
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12593 $as_echo "$ac_cv_os_cray" >&6; }
12594 if test $ac_cv_os_cray = yes; then
12595 for ac_func in _getb67 GETB67 getb67; do
12596 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12597 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12598 eval as_val=\$$as_ac_var
12599 if test "x$as_val" = x""yes; then :
12600
12601 cat >>confdefs.h <<_ACEOF
12602 #define CRAY_STACKSEG_END $ac_func
12603 _ACEOF
12604
12605 break
12606 fi
12607
12608 done
12609 fi
12610
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12612 $as_echo_n "checking stack direction for C alloca... " >&6; }
12613 if test "${ac_cv_c_stack_direction+set}" = set; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616 if test "$cross_compiling" = yes; then :
12617 ac_cv_c_stack_direction=0
12618 else
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12621 $ac_includes_default
12622 int
12623 find_stack_direction ()
12624 {
12625 static char *addr = 0;
12626 auto char dummy;
12627 if (addr == 0)
12628 {
12629 addr = &dummy;
12630 return find_stack_direction ();
12631 }
12632 else
12633 return (&dummy > addr) ? 1 : -1;
12634 }
12635
12636 int
12637 main ()
12638 {
12639 return find_stack_direction () < 0;
12640 }
12641 _ACEOF
12642 if ac_fn_c_try_run "$LINENO"; then :
12643 ac_cv_c_stack_direction=1
12644 else
12645 ac_cv_c_stack_direction=-1
12646 fi
12647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12648 conftest.$ac_objext conftest.beam conftest.$ac_ext
12649 fi
12650
12651 fi
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12653 $as_echo "$ac_cv_c_stack_direction" >&6; }
12654 cat >>confdefs.h <<_ACEOF
12655 #define STACK_DIRECTION $ac_cv_c_stack_direction
12656 _ACEOF
12657
12658
12659 fi
12660
12661 for ac_func in sbrk utimes setmode getc_unlocked strcoll
12662 do :
12663 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12664 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12665 eval as_val=\$$as_ac_var
12666 if test "x$as_val" = x""yes; then :
12667 cat >>confdefs.h <<_ACEOF
12668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12669 _ACEOF
12670
12671 fi
12672 done
12673
12674 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12675 if test "x$ac_cv_func_mkstemp" = x""yes; then :
12676
12677 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
12678
12679 fi
12680
12681 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
12682 if test "x$ac_cv_func_mkdtemp" = x""yes; then :
12683
12684 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
12685
12686 fi
12687
12688
12689 # Some systems have frexp only in -lm, not in -lc.
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
12691 $as_echo_n "checking for library containing frexp... " >&6; }
12692 if test "${ac_cv_search_frexp+set}" = set; then :
12693 $as_echo_n "(cached) " >&6
12694 else
12695 ac_func_search_save_LIBS=$LIBS
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12698
12699 /* Override any GCC internal prototype to avoid an error.
12700 Use char because int might match the return type of a GCC
12701 builtin and then its argument prototype would still apply. */
12702 #ifdef __cplusplus
12703 extern "C"
12704 #endif
12705 char frexp ();
12706 int
12707 main ()
12708 {
12709 return frexp ();
12710 ;
12711 return 0;
12712 }
12713 _ACEOF
12714 for ac_lib in '' m; do
12715 if test -z "$ac_lib"; then
12716 ac_res="none required"
12717 else
12718 ac_res=-l$ac_lib
12719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12720 fi
12721 if ac_fn_c_try_link "$LINENO"; then :
12722 ac_cv_search_frexp=$ac_res
12723 fi
12724 rm -f core conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext
12726 if test "${ac_cv_search_frexp+set}" = set; then :
12727 break
12728 fi
12729 done
12730 if test "${ac_cv_search_frexp+set}" = set; then :
12731
12732 else
12733 ac_cv_search_frexp=no
12734 fi
12735 rm conftest.$ac_ext
12736 LIBS=$ac_func_search_save_LIBS
12737 fi
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
12739 $as_echo "$ac_cv_search_frexp" >&6; }
12740 ac_res=$ac_cv_search_frexp
12741 if test "$ac_res" != no; then :
12742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12743
12744 fi
12745
12746
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
12748 $as_echo_n "checking for time_t in time.h... " >&6; }
12749 if test "${bu_cv_decl_time_t_time_h+set}" = set; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h. */
12754 #include <time.h>
12755 int
12756 main ()
12757 {
12758 time_t i;
12759 ;
12760 return 0;
12761 }
12762 _ACEOF
12763 if ac_fn_c_try_compile "$LINENO"; then :
12764 bu_cv_decl_time_t_time_h=yes
12765 else
12766 bu_cv_decl_time_t_time_h=no
12767 fi
12768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12769 fi
12770
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
12772 $as_echo "$bu_cv_decl_time_t_time_h" >&6; }
12773 if test $bu_cv_decl_time_t_time_h = yes; then
12774
12775 $as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
12776
12777 fi
12778
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
12780 $as_echo_n "checking for time_t in sys/types.h... " >&6; }
12781 if test "${bu_cv_decl_time_t_types_h+set}" = set; then :
12782 $as_echo_n "(cached) " >&6
12783 else
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786 #include <sys/types.h>
12787 int
12788 main ()
12789 {
12790 time_t i;
12791 ;
12792 return 0;
12793 }
12794 _ACEOF
12795 if ac_fn_c_try_compile "$LINENO"; then :
12796 bu_cv_decl_time_t_types_h=yes
12797 else
12798 bu_cv_decl_time_t_types_h=no
12799 fi
12800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12801 fi
12802
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
12804 $as_echo "$bu_cv_decl_time_t_types_h" >&6; }
12805 if test $bu_cv_decl_time_t_types_h = yes; then
12806
12807 $as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
12808
12809 fi
12810
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12812 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12813 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then :
12814 $as_echo_n "(cached) " >&6
12815 else
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818 #include <unistd.h>
12819 int
12820 main ()
12821 {
12822 extern int getopt (int, char *const*, const char *);
12823 ;
12824 return 0;
12825 }
12826 _ACEOF
12827 if ac_fn_c_try_compile "$LINENO"; then :
12828 bu_cv_decl_getopt_unistd_h=yes
12829 else
12830 bu_cv_decl_getopt_unistd_h=no
12831 fi
12832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833 fi
12834
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
12836 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
12837 if test $bu_cv_decl_getopt_unistd_h = yes; then
12838
12839 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
12840
12841 fi
12842
12843 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
12844 # by default.
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
12846 $as_echo_n "checking for utime.h... " >&6; }
12847 if test "${bu_cv_header_utime_h+set}" = set; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12852 #include <sys/types.h>
12853 #ifdef HAVE_TIME_H
12854 #include <time.h>
12855 #endif
12856 #include <utime.h>
12857 int
12858 main ()
12859 {
12860 struct utimbuf s;
12861 ;
12862 return 0;
12863 }
12864 _ACEOF
12865 if ac_fn_c_try_compile "$LINENO"; then :
12866 bu_cv_header_utime_h=yes
12867 else
12868 bu_cv_header_utime_h=no
12869 fi
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 fi
12872
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
12874 $as_echo "$bu_cv_header_utime_h" >&6; }
12875 if test $bu_cv_header_utime_h = yes; then
12876
12877 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
12878
12879 fi
12880
12881 ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
12882 if test "x$ac_cv_have_decl_fprintf" = x""yes; then :
12883 ac_have_decl=1
12884 else
12885 ac_have_decl=0
12886 fi
12887
12888 cat >>confdefs.h <<_ACEOF
12889 #define HAVE_DECL_FPRINTF $ac_have_decl
12890 _ACEOF
12891 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
12892 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
12893 ac_have_decl=1
12894 else
12895 ac_have_decl=0
12896 fi
12897
12898 cat >>confdefs.h <<_ACEOF
12899 #define HAVE_DECL_STPCPY $ac_have_decl
12900 _ACEOF
12901 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12902 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12903 ac_have_decl=1
12904 else
12905 ac_have_decl=0
12906 fi
12907
12908 cat >>confdefs.h <<_ACEOF
12909 #define HAVE_DECL_STRSTR $ac_have_decl
12910 _ACEOF
12911 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
12912 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
12913 ac_have_decl=1
12914 else
12915 ac_have_decl=0
12916 fi
12917
12918 cat >>confdefs.h <<_ACEOF
12919 #define HAVE_DECL_SBRK $ac_have_decl
12920 _ACEOF
12921 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
12922 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
12923 ac_have_decl=1
12924 else
12925 ac_have_decl=0
12926 fi
12927
12928 cat >>confdefs.h <<_ACEOF
12929 #define HAVE_DECL_GETENV $ac_have_decl
12930 _ACEOF
12931 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
12932 if test "x$ac_cv_have_decl_environ" = x""yes; then :
12933 ac_have_decl=1
12934 else
12935 ac_have_decl=0
12936 fi
12937
12938 cat >>confdefs.h <<_ACEOF
12939 #define HAVE_DECL_ENVIRON $ac_have_decl
12940 _ACEOF
12941 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
12942 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
12943 ac_have_decl=1
12944 else
12945 ac_have_decl=0
12946 fi
12947
12948 cat >>confdefs.h <<_ACEOF
12949 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
12950 _ACEOF
12951 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12952 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
12953 ac_have_decl=1
12954 else
12955 ac_have_decl=0
12956 fi
12957
12958 cat >>confdefs.h <<_ACEOF
12959 #define HAVE_DECL_SNPRINTF $ac_have_decl
12960 _ACEOF
12961 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12962 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
12963 ac_have_decl=1
12964 else
12965 ac_have_decl=0
12966 fi
12967
12968 cat >>confdefs.h <<_ACEOF
12969 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12970 _ACEOF
12971
12972
12973 # Link in zlib if we can. This allows us to read compressed debug
12974 # sections. This is used only by readelf.c (objdump uses bfd for
12975 # reading compressed sections).
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
12977 $as_echo_n "checking for library containing zlibVersion... " >&6; }
12978 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12979 $as_echo_n "(cached) " >&6
12980 else
12981 ac_func_search_save_LIBS=$LIBS
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12984
12985 /* Override any GCC internal prototype to avoid an error.
12986 Use char because int might match the return type of a GCC
12987 builtin and then its argument prototype would still apply. */
12988 #ifdef __cplusplus
12989 extern "C"
12990 #endif
12991 char zlibVersion ();
12992 int
12993 main ()
12994 {
12995 return zlibVersion ();
12996 ;
12997 return 0;
12998 }
12999 _ACEOF
13000 for ac_lib in '' z; do
13001 if test -z "$ac_lib"; then
13002 ac_res="none required"
13003 else
13004 ac_res=-l$ac_lib
13005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13006 fi
13007 if ac_fn_c_try_link "$LINENO"; then :
13008 ac_cv_search_zlibVersion=$ac_res
13009 fi
13010 rm -f core conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext
13012 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13013 break
13014 fi
13015 done
13016 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13017
13018 else
13019 ac_cv_search_zlibVersion=no
13020 fi
13021 rm conftest.$ac_ext
13022 LIBS=$ac_func_search_save_LIBS
13023 fi
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13025 $as_echo "$ac_cv_search_zlibVersion" >&6; }
13026 ac_res=$ac_cv_search_zlibVersion
13027 if test "$ac_res" != no; then :
13028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13029 for ac_header in zlib.h
13030 do :
13031 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13032 if test "x$ac_cv_header_zlib_h" = x""yes; then :
13033 cat >>confdefs.h <<_ACEOF
13034 #define HAVE_ZLIB_H 1
13035 _ACEOF
13036
13037 fi
13038
13039 done
13040
13041 fi
13042
13043
13044
13045 case "${host}" in
13046 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13047
13048 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13049 ;;
13050 esac
13051
13052 # target-specific stuff:
13053
13054 # Canonicalize the secondary target names.
13055 if test -n "$enable_targets"; then
13056 for targ in `echo $enable_targets | sed 's/,/ /g'`
13057 do
13058 result=`$ac_config_sub $targ 2>/dev/null`
13059 if test -n "$result"; then
13060 canon_targets="$canon_targets $result"
13061 else
13062 # Allow targets that config.sub doesn't recognize, like "all".
13063 canon_targets="$canon_targets $targ"
13064 fi
13065 done
13066 fi
13067
13068 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13069 if test "x$ac_cv_header_iconv_h" = x""yes; then :
13070
13071 fi
13072
13073
13074
13075 if test "X$prefix" = "XNONE"; then
13076 acl_final_prefix="$ac_default_prefix"
13077 else
13078 acl_final_prefix="$prefix"
13079 fi
13080 if test "X$exec_prefix" = "XNONE"; then
13081 acl_final_exec_prefix='${prefix}'
13082 else
13083 acl_final_exec_prefix="$exec_prefix"
13084 fi
13085 acl_save_prefix="$prefix"
13086 prefix="$acl_final_prefix"
13087 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13088 prefix="$acl_save_prefix"
13089
13090
13091 # Check whether --with-gnu-ld was given.
13092 if test "${with_gnu_ld+set}" = set; then :
13093 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13094 else
13095 with_gnu_ld=no
13096 fi
13097
13098 # Prepare PATH_SEPARATOR.
13099 # The user is always right.
13100 if test "${PATH_SEPARATOR+set}" != set; then
13101 echo "#! /bin/sh" >conf$$.sh
13102 echo "exit 0" >>conf$$.sh
13103 chmod +x conf$$.sh
13104 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13105 PATH_SEPARATOR=';'
13106 else
13107 PATH_SEPARATOR=:
13108 fi
13109 rm -f conf$$.sh
13110 fi
13111 ac_prog=ld
13112 if test "$GCC" = yes; then
13113 # Check if gcc -print-prog-name=ld gives a path.
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13115 $as_echo_n "checking for ld used by GCC... " >&6; }
13116 case $host in
13117 *-*-mingw*)
13118 # gcc leaves a trailing carriage return which upsets mingw
13119 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13120 *)
13121 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13122 esac
13123 case $ac_prog in
13124 # Accept absolute paths.
13125 [\\/]* | [A-Za-z]:[\\/]*)
13126 re_direlt='/[^/][^/]*/\.\./'
13127 # Canonicalize the path of ld
13128 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13129 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13130 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13131 done
13132 test -z "$LD" && LD="$ac_prog"
13133 ;;
13134 "")
13135 # If it fails, then pretend we aren't using GCC.
13136 ac_prog=ld
13137 ;;
13138 *)
13139 # If it is relative, then search for the first ld in PATH.
13140 with_gnu_ld=unknown
13141 ;;
13142 esac
13143 elif test "$with_gnu_ld" = yes; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13145 $as_echo_n "checking for GNU ld... " >&6; }
13146 else
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13148 $as_echo_n "checking for non-GNU ld... " >&6; }
13149 fi
13150 if test "${acl_cv_path_LD+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 if test -z "$LD"; then
13154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13155 for ac_dir in $PATH; do
13156 test -z "$ac_dir" && ac_dir=.
13157 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13158 acl_cv_path_LD="$ac_dir/$ac_prog"
13159 # Check to see if the program is GNU ld. I'd rather use --version,
13160 # but apparently some GNU ld's only accept -v.
13161 # Break only if it was the GNU/non-GNU ld that we prefer.
13162 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13163 test "$with_gnu_ld" != no && break
13164 else
13165 test "$with_gnu_ld" != yes && break
13166 fi
13167 fi
13168 done
13169 IFS="$ac_save_ifs"
13170 else
13171 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13172 fi
13173 fi
13174
13175 LD="$acl_cv_path_LD"
13176 if test -n "$LD"; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13178 $as_echo "$LD" >&6; }
13179 else
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13182 fi
13183 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13185 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13186 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13190 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13191 acl_cv_prog_gnu_ld=yes
13192 else
13193 acl_cv_prog_gnu_ld=no
13194 fi
13195 fi
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13197 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13198 with_gnu_ld=$acl_cv_prog_gnu_ld
13199
13200
13201
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13203 $as_echo_n "checking for shared library run path origin... " >&6; }
13204 if test "${acl_cv_rpath+set}" = set; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207
13208 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13209 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13210 . ./conftest.sh
13211 rm -f ./conftest.sh
13212 acl_cv_rpath=done
13213
13214 fi
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13216 $as_echo "$acl_cv_rpath" >&6; }
13217 wl="$acl_cv_wl"
13218 libext="$acl_cv_libext"
13219 shlibext="$acl_cv_shlibext"
13220 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13221 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13222 hardcode_direct="$acl_cv_hardcode_direct"
13223 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13224 # Check whether --enable-rpath was given.
13225 if test "${enable_rpath+set}" = set; then :
13226 enableval=$enable_rpath; :
13227 else
13228 enable_rpath=yes
13229 fi
13230
13231
13232
13233
13234
13235
13236
13237
13238 use_additional=yes
13239
13240 acl_save_prefix="$prefix"
13241 prefix="$acl_final_prefix"
13242 acl_save_exec_prefix="$exec_prefix"
13243 exec_prefix="$acl_final_exec_prefix"
13244
13245 eval additional_includedir=\"$includedir\"
13246 eval additional_libdir=\"$libdir\"
13247
13248 exec_prefix="$acl_save_exec_prefix"
13249 prefix="$acl_save_prefix"
13250
13251
13252 # Check whether --with-libiconv-prefix was given.
13253 if test "${with_libiconv_prefix+set}" = set; then :
13254 withval=$with_libiconv_prefix;
13255 if test "X$withval" = "Xno"; then
13256 use_additional=no
13257 else
13258 if test "X$withval" = "X"; then
13259
13260 acl_save_prefix="$prefix"
13261 prefix="$acl_final_prefix"
13262 acl_save_exec_prefix="$exec_prefix"
13263 exec_prefix="$acl_final_exec_prefix"
13264
13265 eval additional_includedir=\"$includedir\"
13266 eval additional_libdir=\"$libdir\"
13267
13268 exec_prefix="$acl_save_exec_prefix"
13269 prefix="$acl_save_prefix"
13270
13271 else
13272 additional_includedir="$withval/include"
13273 additional_libdir="$withval/lib"
13274 fi
13275 fi
13276
13277 fi
13278
13279 LIBICONV=
13280 LTLIBICONV=
13281 INCICONV=
13282 rpathdirs=
13283 ltrpathdirs=
13284 names_already_handled=
13285 names_next_round='iconv '
13286 while test -n "$names_next_round"; do
13287 names_this_round="$names_next_round"
13288 names_next_round=
13289 for name in $names_this_round; do
13290 already_handled=
13291 for n in $names_already_handled; do
13292 if test "$n" = "$name"; then
13293 already_handled=yes
13294 break
13295 fi
13296 done
13297 if test -z "$already_handled"; then
13298 names_already_handled="$names_already_handled $name"
13299 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13300 eval value=\"\$HAVE_LIB$uppername\"
13301 if test -n "$value"; then
13302 if test "$value" = yes; then
13303 eval value=\"\$LIB$uppername\"
13304 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13305 eval value=\"\$LTLIB$uppername\"
13306 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13307 else
13308 :
13309 fi
13310 else
13311 found_dir=
13312 found_la=
13313 found_so=
13314 found_a=
13315 if test $use_additional = yes; then
13316 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13317 found_dir="$additional_libdir"
13318 found_so="$additional_libdir/lib$name.$shlibext"
13319 if test -f "$additional_libdir/lib$name.la"; then
13320 found_la="$additional_libdir/lib$name.la"
13321 fi
13322 else
13323 if test -f "$additional_libdir/lib$name.$libext"; then
13324 found_dir="$additional_libdir"
13325 found_a="$additional_libdir/lib$name.$libext"
13326 if test -f "$additional_libdir/lib$name.la"; then
13327 found_la="$additional_libdir/lib$name.la"
13328 fi
13329 fi
13330 fi
13331 fi
13332 if test "X$found_dir" = "X"; then
13333 for x in $LDFLAGS $LTLIBICONV; do
13334
13335 acl_save_prefix="$prefix"
13336 prefix="$acl_final_prefix"
13337 acl_save_exec_prefix="$exec_prefix"
13338 exec_prefix="$acl_final_exec_prefix"
13339 eval x=\"$x\"
13340 exec_prefix="$acl_save_exec_prefix"
13341 prefix="$acl_save_prefix"
13342
13343 case "$x" in
13344 -L*)
13345 dir=`echo "X$x" | sed -e 's/^X-L//'`
13346 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13347 found_dir="$dir"
13348 found_so="$dir/lib$name.$shlibext"
13349 if test -f "$dir/lib$name.la"; then
13350 found_la="$dir/lib$name.la"
13351 fi
13352 else
13353 if test -f "$dir/lib$name.$libext"; then
13354 found_dir="$dir"
13355 found_a="$dir/lib$name.$libext"
13356 if test -f "$dir/lib$name.la"; then
13357 found_la="$dir/lib$name.la"
13358 fi
13359 fi
13360 fi
13361 ;;
13362 esac
13363 if test "X$found_dir" != "X"; then
13364 break
13365 fi
13366 done
13367 fi
13368 if test "X$found_dir" != "X"; then
13369 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13370 if test "X$found_so" != "X"; then
13371 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13372 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13373 else
13374 haveit=
13375 for x in $ltrpathdirs; do
13376 if test "X$x" = "X$found_dir"; then
13377 haveit=yes
13378 break
13379 fi
13380 done
13381 if test -z "$haveit"; then
13382 ltrpathdirs="$ltrpathdirs $found_dir"
13383 fi
13384 if test "$hardcode_direct" = yes; then
13385 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13386 else
13387 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13388 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13389 haveit=
13390 for x in $rpathdirs; do
13391 if test "X$x" = "X$found_dir"; then
13392 haveit=yes
13393 break
13394 fi
13395 done
13396 if test -z "$haveit"; then
13397 rpathdirs="$rpathdirs $found_dir"
13398 fi
13399 else
13400 haveit=
13401 for x in $LDFLAGS $LIBICONV; do
13402
13403 acl_save_prefix="$prefix"
13404 prefix="$acl_final_prefix"
13405 acl_save_exec_prefix="$exec_prefix"
13406 exec_prefix="$acl_final_exec_prefix"
13407 eval x=\"$x\"
13408 exec_prefix="$acl_save_exec_prefix"
13409 prefix="$acl_save_prefix"
13410
13411 if test "X$x" = "X-L$found_dir"; then
13412 haveit=yes
13413 break
13414 fi
13415 done
13416 if test -z "$haveit"; then
13417 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13418 fi
13419 if test "$hardcode_minus_L" != no; then
13420 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13421 else
13422 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13423 fi
13424 fi
13425 fi
13426 fi
13427 else
13428 if test "X$found_a" != "X"; then
13429 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13430 else
13431 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13432 fi
13433 fi
13434 additional_includedir=
13435 case "$found_dir" in
13436 */lib | */lib/)
13437 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13438 additional_includedir="$basedir/include"
13439 ;;
13440 esac
13441 if test "X$additional_includedir" != "X"; then
13442 if test "X$additional_includedir" != "X/usr/include"; then
13443 haveit=
13444 if test "X$additional_includedir" = "X/usr/local/include"; then
13445 if test -n "$GCC"; then
13446 case $host_os in
13447 linux*) haveit=yes;;
13448 esac
13449 fi
13450 fi
13451 if test -z "$haveit"; then
13452 for x in $CPPFLAGS $INCICONV; do
13453
13454 acl_save_prefix="$prefix"
13455 prefix="$acl_final_prefix"
13456 acl_save_exec_prefix="$exec_prefix"
13457 exec_prefix="$acl_final_exec_prefix"
13458 eval x=\"$x\"
13459 exec_prefix="$acl_save_exec_prefix"
13460 prefix="$acl_save_prefix"
13461
13462 if test "X$x" = "X-I$additional_includedir"; then
13463 haveit=yes
13464 break
13465 fi
13466 done
13467 if test -z "$haveit"; then
13468 if test -d "$additional_includedir"; then
13469 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13470 fi
13471 fi
13472 fi
13473 fi
13474 fi
13475 if test -n "$found_la"; then
13476 save_libdir="$libdir"
13477 case "$found_la" in
13478 */* | *\\*) . "$found_la" ;;
13479 *) . "./$found_la" ;;
13480 esac
13481 libdir="$save_libdir"
13482 for dep in $dependency_libs; do
13483 case "$dep" in
13484 -L*)
13485 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13486 if test "X$additional_libdir" != "X/usr/lib"; then
13487 haveit=
13488 if test "X$additional_libdir" = "X/usr/local/lib"; then
13489 if test -n "$GCC"; then
13490 case $host_os in
13491 linux*) haveit=yes;;
13492 esac
13493 fi
13494 fi
13495 if test -z "$haveit"; then
13496 haveit=
13497 for x in $LDFLAGS $LIBICONV; do
13498
13499 acl_save_prefix="$prefix"
13500 prefix="$acl_final_prefix"
13501 acl_save_exec_prefix="$exec_prefix"
13502 exec_prefix="$acl_final_exec_prefix"
13503 eval x=\"$x\"
13504 exec_prefix="$acl_save_exec_prefix"
13505 prefix="$acl_save_prefix"
13506
13507 if test "X$x" = "X-L$additional_libdir"; then
13508 haveit=yes
13509 break
13510 fi
13511 done
13512 if test -z "$haveit"; then
13513 if test -d "$additional_libdir"; then
13514 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13515 fi
13516 fi
13517 haveit=
13518 for x in $LDFLAGS $LTLIBICONV; do
13519
13520 acl_save_prefix="$prefix"
13521 prefix="$acl_final_prefix"
13522 acl_save_exec_prefix="$exec_prefix"
13523 exec_prefix="$acl_final_exec_prefix"
13524 eval x=\"$x\"
13525 exec_prefix="$acl_save_exec_prefix"
13526 prefix="$acl_save_prefix"
13527
13528 if test "X$x" = "X-L$additional_libdir"; then
13529 haveit=yes
13530 break
13531 fi
13532 done
13533 if test -z "$haveit"; then
13534 if test -d "$additional_libdir"; then
13535 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13536 fi
13537 fi
13538 fi
13539 fi
13540 ;;
13541 -R*)
13542 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13543 if test "$enable_rpath" != no; then
13544 haveit=
13545 for x in $rpathdirs; do
13546 if test "X$x" = "X$dir"; then
13547 haveit=yes
13548 break
13549 fi
13550 done
13551 if test -z "$haveit"; then
13552 rpathdirs="$rpathdirs $dir"
13553 fi
13554 haveit=
13555 for x in $ltrpathdirs; do
13556 if test "X$x" = "X$dir"; then
13557 haveit=yes
13558 break
13559 fi
13560 done
13561 if test -z "$haveit"; then
13562 ltrpathdirs="$ltrpathdirs $dir"
13563 fi
13564 fi
13565 ;;
13566 -l*)
13567 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13568 ;;
13569 *.la)
13570 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13571 ;;
13572 *)
13573 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13574 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13575 ;;
13576 esac
13577 done
13578 fi
13579 else
13580 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13581 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13582 fi
13583 fi
13584 fi
13585 done
13586 done
13587 if test "X$rpathdirs" != "X"; then
13588 if test -n "$hardcode_libdir_separator"; then
13589 alldirs=
13590 for found_dir in $rpathdirs; do
13591 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13592 done
13593 acl_save_libdir="$libdir"
13594 libdir="$alldirs"
13595 eval flag=\"$hardcode_libdir_flag_spec\"
13596 libdir="$acl_save_libdir"
13597 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13598 else
13599 for found_dir in $rpathdirs; do
13600 acl_save_libdir="$libdir"
13601 libdir="$found_dir"
13602 eval flag=\"$hardcode_libdir_flag_spec\"
13603 libdir="$acl_save_libdir"
13604 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13605 done
13606 fi
13607 fi
13608 if test "X$ltrpathdirs" != "X"; then
13609 for found_dir in $ltrpathdirs; do
13610 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13611 done
13612 fi
13613
13614
13615
13616
13617
13618
13619
13620 am_save_CPPFLAGS="$CPPFLAGS"
13621
13622 for element in $INCICONV; do
13623 haveit=
13624 for x in $CPPFLAGS; do
13625
13626 acl_save_prefix="$prefix"
13627 prefix="$acl_final_prefix"
13628 acl_save_exec_prefix="$exec_prefix"
13629 exec_prefix="$acl_final_exec_prefix"
13630 eval x=\"$x\"
13631 exec_prefix="$acl_save_exec_prefix"
13632 prefix="$acl_save_prefix"
13633
13634 if test "X$x" = "X$element"; then
13635 haveit=yes
13636 break
13637 fi
13638 done
13639 if test -z "$haveit"; then
13640 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13641 fi
13642 done
13643
13644
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13646 $as_echo_n "checking for iconv... " >&6; }
13647 if test "${am_cv_func_iconv+set}" = set; then :
13648 $as_echo_n "(cached) " >&6
13649 else
13650
13651 am_cv_func_iconv="no, consider installing GNU libiconv"
13652 am_cv_lib_iconv=no
13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h. */
13655 #include <stdlib.h>
13656 #include <iconv.h>
13657 int
13658 main ()
13659 {
13660 iconv_t cd = iconv_open("","");
13661 iconv(cd,NULL,NULL,NULL,NULL);
13662 iconv_close(cd);
13663 ;
13664 return 0;
13665 }
13666 _ACEOF
13667 if ac_fn_c_try_link "$LINENO"; then :
13668 am_cv_func_iconv=yes
13669 fi
13670 rm -f core conftest.err conftest.$ac_objext \
13671 conftest$ac_exeext conftest.$ac_ext
13672 if test "$am_cv_func_iconv" != yes; then
13673 am_save_LIBS="$LIBS"
13674 LIBS="$LIBS $LIBICONV"
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677 #include <stdlib.h>
13678 #include <iconv.h>
13679 int
13680 main ()
13681 {
13682 iconv_t cd = iconv_open("","");
13683 iconv(cd,NULL,NULL,NULL,NULL);
13684 iconv_close(cd);
13685 ;
13686 return 0;
13687 }
13688 _ACEOF
13689 if ac_fn_c_try_link "$LINENO"; then :
13690 am_cv_lib_iconv=yes
13691 am_cv_func_iconv=yes
13692 fi
13693 rm -f core conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13695 LIBS="$am_save_LIBS"
13696 fi
13697
13698 fi
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13700 $as_echo "$am_cv_func_iconv" >&6; }
13701 if test "$am_cv_func_iconv" = yes; then
13702
13703 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13704
13705 fi
13706 if test "$am_cv_lib_iconv" = yes; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13708 $as_echo_n "checking how to link with libiconv... " >&6; }
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13710 $as_echo "$LIBICONV" >&6; }
13711 else
13712 CPPFLAGS="$am_save_CPPFLAGS"
13713 LIBICONV=
13714 LTLIBICONV=
13715 fi
13716
13717
13718
13719 if test "$am_cv_func_iconv" = yes; then
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13721 $as_echo_n "checking for iconv declaration... " >&6; }
13722 if test "${am_cv_proto_iconv+set}" = set; then :
13723 $as_echo_n "(cached) " >&6
13724 else
13725
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728
13729 #include <stdlib.h>
13730 #include <iconv.h>
13731 extern
13732 #ifdef __cplusplus
13733 "C"
13734 #endif
13735 #if defined(__STDC__) || defined(__cplusplus)
13736 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13737 #else
13738 size_t iconv();
13739 #endif
13740
13741 int
13742 main ()
13743 {
13744
13745 ;
13746 return 0;
13747 }
13748 _ACEOF
13749 if ac_fn_c_try_compile "$LINENO"; then :
13750 am_cv_proto_iconv_arg1=""
13751 else
13752 am_cv_proto_iconv_arg1="const"
13753 fi
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13756 fi
13757
13758 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
13760 }$am_cv_proto_iconv" >&5
13761 $as_echo "${ac_t:-
13762 }$am_cv_proto_iconv" >&6; }
13763
13764 cat >>confdefs.h <<_ACEOF
13765 #define ICONV_CONST $am_cv_proto_iconv_arg1
13766 _ACEOF
13767
13768 fi
13769
13770
13771 all_targets=false
13772 BUILD_NLMCONV=
13773 NLMCONV_DEFS=
13774 BUILD_SRCONV=
13775 BUILD_DLLTOOL=
13776 DLLTOOL_DEFS=
13777 DLLTOOL_DEFAULT=
13778 BUILD_WINDRES=
13779 BUILD_WINDMC=
13780 BUILD_DLLWRAP=
13781 BUILD_MISC=
13782 BUILD_INSTALL_MISC=
13783 OBJDUMP_DEFS=
13784
13785 for targ in $target $canon_targets
13786 do
13787 if test "x$targ" = "xall"; then
13788 all_targets=true
13789 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13790 BUILD_SRCONV='$(SRCONV_PROG)'
13791 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
13792 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
13793 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13794 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13795 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13796 if test -z "$DLLTOOL_DEFAULT"; then
13797 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13798 fi
13799 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13800 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
13801 else
13802 case $targ in
13803 i[3-7]86*-*-netware*)
13804 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13805 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
13806 ;;
13807 alpha*-*-netware*)
13808 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13809 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
13810 ;;
13811 powerpc*-*-netware*)
13812 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13813 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
13814 ;;
13815 sparc*-*-netware*)
13816 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13817 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
13818 ;;
13819 esac
13820 case $targ in
13821 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
13822 esac
13823 case $targ in
13824 arm-epoc-pe*)
13825 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13826 if test -z "$DLLTOOL_DEFAULT"; then
13827 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
13828 fi
13829 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
13830 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13831 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13832 ;;
13833 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
13834 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13835 if test -z "$DLLTOOL_DEFAULT"; then
13836 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
13837 fi
13838 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
13839 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13840 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13841 ;;
13842 arm-*-pe*)
13843 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13844 if test -z "$DLLTOOL_DEFAULT"; then
13845 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
13846 fi
13847 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
13848 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13849 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13850 ;;
13851 thumb-*-pe*)
13852 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13853 if test -z "$DLLTOOL_DEFAULT"; then
13854 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
13855 fi
13856 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
13857 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13858 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13859 ;;
13860 x86_64-*-mingw*)
13861 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13862 if test -z "$DLLTOOL_DEFAULT"; then
13863 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
13864 fi
13865 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
13866 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13867 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13868 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
13869 ;;
13870 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
13871 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13872 if test -z "$DLLTOOL_DEFAULT"; then
13873 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13874 fi
13875 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13876 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13877 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13878 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
13879 ;;
13880 i[3-7]86-*-interix)
13881 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
13882 if test -z "$DLLTOOL_DEFAULT"; then
13883 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13884 fi
13885 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13886 ;;
13887 powerpc*-aix5.[01])
13888 ;;
13889 powerpc*-aix[5-9].*)
13890 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
13891 ;;
13892 powerpc*-*-pe* | powerpc*-*-cygwin*)
13893 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13894 if test -z "$DLLTOOL_DEFAULT"; then
13895 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
13896 fi
13897 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
13898 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13899 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13900 ;;
13901 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
13902 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
13903 ;;
13904 sh*-*-pe)
13905 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13906 if test -z "$DLLTOOL_DEFAULT"; then
13907 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
13908 fi
13909 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
13910 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13911 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13912 ;;
13913 spu-*-*)
13914 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
13915 ;;
13916 mips*-*-pe)
13917 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13918 if test -z "$DLLTOOL_DEFAULT"; then
13919 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
13920 fi
13921 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
13922 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13923 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13924 ;;
13925 mcore-*-pe)
13926 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13927 if test -z "$DLLTOOL_DEFAULT"; then
13928 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
13929 fi
13930 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
13931 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13932 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13933 ;;
13934 mcore-*-elf)
13935 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13936 if test -z "$DLLTOOL_DEFAULT"; then
13937 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
13938 fi
13939 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
13940 ;;
13941 mep-*)
13942 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
13943 ;;
13944 esac
13945 fi
13946 done
13947
13948 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
13949
13950 if test "${with_windres+set}" = set; then
13951 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13952 fi
13953
13954 if test "${with_windmc+set}" = set; then
13955 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13956 fi
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971 cat >>confdefs.h <<_ACEOF
13972 #define TARGET "${target}"
13973 _ACEOF
13974
13975
13976 targ=$target
13977 . $srcdir/../bfd/config.bfd
13978 if test "x$targ_underscore" = "xyes"; then
13979 UNDERSCORE=1
13980 else
13981 UNDERSCORE=0
13982 fi
13983
13984 cat >>confdefs.h <<_ACEOF
13985 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
13986 _ACEOF
13987
13988
13989 # Emulation
13990 targ=$target
13991 . ${srcdir}/configure.tgt
13992 EMULATION=$targ_emul
13993 EMULATION_VECTOR=$targ_emul_vector
13994
13995
13996
13997
13998 # Required for html and install-html
13999
14000
14001
14002
14003
14004 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14005
14006 cat >confcache <<\_ACEOF
14007 # This file is a shell script that caches the results of configure
14008 # tests run on this system so they can be shared between configure
14009 # scripts and configure runs, see configure's option --config-cache.
14010 # It is not useful on other systems. If it contains results you don't
14011 # want to keep, you may remove or edit it.
14012 #
14013 # config.status only pays attention to the cache file if you give it
14014 # the --recheck option to rerun configure.
14015 #
14016 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14017 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14018 # following values.
14019
14020 _ACEOF
14021
14022 # The following way of writing the cache mishandles newlines in values,
14023 # but we know of no workaround that is simple, portable, and efficient.
14024 # So, we kill variables containing newlines.
14025 # Ultrix sh set writes to stderr and can't be redirected directly,
14026 # and sets the high bit in the cache file unless we assign to the vars.
14027 (
14028 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14029 eval ac_val=\$$ac_var
14030 case $ac_val in #(
14031 *${as_nl}*)
14032 case $ac_var in #(
14033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14034 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14035 esac
14036 case $ac_var in #(
14037 _ | IFS | as_nl) ;; #(
14038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14039 *) { eval $ac_var=; unset $ac_var;} ;;
14040 esac ;;
14041 esac
14042 done
14043
14044 (set) 2>&1 |
14045 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14046 *${as_nl}ac_space=\ *)
14047 # `set' does not quote correctly, so add quotes: double-quote
14048 # substitution turns \\\\ into \\, and sed turns \\ into \.
14049 sed -n \
14050 "s/'/'\\\\''/g;
14051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14052 ;; #(
14053 *)
14054 # `set' quotes correctly as required by POSIX, so do not add quotes.
14055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14056 ;;
14057 esac |
14058 sort
14059 ) |
14060 sed '
14061 /^ac_cv_env_/b end
14062 t clear
14063 :clear
14064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14065 t end
14066 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14067 :end' >>confcache
14068 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14069 if test -w "$cache_file"; then
14070 test "x$cache_file" != "x/dev/null" &&
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14072 $as_echo "$as_me: updating cache $cache_file" >&6;}
14073 cat confcache >$cache_file
14074 else
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14076 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14077 fi
14078 fi
14079 rm -f confcache
14080
14081 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14082 # Let make expand exec_prefix.
14083 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14084
14085 DEFS=-DHAVE_CONFIG_H
14086
14087 ac_libobjs=
14088 ac_ltlibobjs=
14089 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14090 # 1. Remove the extension, and $U if already installed.
14091 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14092 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14093 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14094 # will be set to the directory where LIBOBJS objects are built.
14095 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14096 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14097 done
14098 LIBOBJS=$ac_libobjs
14099
14100 LTLIBOBJS=$ac_ltlibobjs
14101
14102
14103 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14104 as_fn_error "conditional \"AMDEP\" was never defined.
14105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14106 fi
14107 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14108 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14110 fi
14111 if test -n "$EXEEXT"; then
14112 am__EXEEXT_TRUE=
14113 am__EXEEXT_FALSE='#'
14114 else
14115 am__EXEEXT_TRUE='#'
14116 am__EXEEXT_FALSE=
14117 fi
14118
14119 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14120 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14122 fi
14123 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14124 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14126 fi
14127
14128 : ${CONFIG_STATUS=./config.status}
14129 ac_write_fail=0
14130 ac_clean_files_save=$ac_clean_files
14131 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14133 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14134 as_write_fail=0
14135 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14136 #! $SHELL
14137 # Generated by $as_me.
14138 # Run this file to recreate the current configuration.
14139 # Compiler output produced by configure, useful for debugging
14140 # configure, is in config.log if it exists.
14141
14142 debug=false
14143 ac_cs_recheck=false
14144 ac_cs_silent=false
14145
14146 SHELL=\${CONFIG_SHELL-$SHELL}
14147 export SHELL
14148 _ASEOF
14149 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14150 ## -------------------- ##
14151 ## M4sh Initialization. ##
14152 ## -------------------- ##
14153
14154 # Be more Bourne compatible
14155 DUALCASE=1; export DUALCASE # for MKS sh
14156 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14157 emulate sh
14158 NULLCMD=:
14159 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14160 # is contrary to our usage. Disable this feature.
14161 alias -g '${1+"$@"}'='"$@"'
14162 setopt NO_GLOB_SUBST
14163 else
14164 case `(set -o) 2>/dev/null` in #(
14165 *posix*) :
14166 set -o posix ;; #(
14167 *) :
14168 ;;
14169 esac
14170 fi
14171
14172
14173 as_nl='
14174 '
14175 export as_nl
14176 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14177 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14178 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14179 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14180 # Prefer a ksh shell builtin over an external printf program on Solaris,
14181 # but without wasting forks for bash or zsh.
14182 if test -z "$BASH_VERSION$ZSH_VERSION" \
14183 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14184 as_echo='print -r --'
14185 as_echo_n='print -rn --'
14186 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14187 as_echo='printf %s\n'
14188 as_echo_n='printf %s'
14189 else
14190 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14191 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14192 as_echo_n='/usr/ucb/echo -n'
14193 else
14194 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14195 as_echo_n_body='eval
14196 arg=$1;
14197 case $arg in #(
14198 *"$as_nl"*)
14199 expr "X$arg" : "X\\(.*\\)$as_nl";
14200 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14201 esac;
14202 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14203 '
14204 export as_echo_n_body
14205 as_echo_n='sh -c $as_echo_n_body as_echo'
14206 fi
14207 export as_echo_body
14208 as_echo='sh -c $as_echo_body as_echo'
14209 fi
14210
14211 # The user is always right.
14212 if test "${PATH_SEPARATOR+set}" != set; then
14213 PATH_SEPARATOR=:
14214 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14215 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14216 PATH_SEPARATOR=';'
14217 }
14218 fi
14219
14220
14221 # IFS
14222 # We need space, tab and new line, in precisely that order. Quoting is
14223 # there to prevent editors from complaining about space-tab.
14224 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14225 # splitting by setting IFS to empty value.)
14226 IFS=" "" $as_nl"
14227
14228 # Find who we are. Look in the path if we contain no directory separator.
14229 case $0 in #((
14230 *[\\/]* ) as_myself=$0 ;;
14231 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14232 for as_dir in $PATH
14233 do
14234 IFS=$as_save_IFS
14235 test -z "$as_dir" && as_dir=.
14236 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14237 done
14238 IFS=$as_save_IFS
14239
14240 ;;
14241 esac
14242 # We did not find ourselves, most probably we were run as `sh COMMAND'
14243 # in which case we are not to be found in the path.
14244 if test "x$as_myself" = x; then
14245 as_myself=$0
14246 fi
14247 if test ! -f "$as_myself"; then
14248 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14249 exit 1
14250 fi
14251
14252 # Unset variables that we do not need and which cause bugs (e.g. in
14253 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14254 # suppresses any "Segmentation fault" message there. '((' could
14255 # trigger a bug in pdksh 5.2.14.
14256 for as_var in BASH_ENV ENV MAIL MAILPATH
14257 do eval test x\${$as_var+set} = xset \
14258 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14259 done
14260 PS1='$ '
14261 PS2='> '
14262 PS4='+ '
14263
14264 # NLS nuisances.
14265 LC_ALL=C
14266 export LC_ALL
14267 LANGUAGE=C
14268 export LANGUAGE
14269
14270 # CDPATH.
14271 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14272
14273
14274 # as_fn_error ERROR [LINENO LOG_FD]
14275 # ---------------------------------
14276 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14277 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14278 # script with status $?, using 1 if that was 0.
14279 as_fn_error ()
14280 {
14281 as_status=$?; test $as_status -eq 0 && as_status=1
14282 if test "$3"; then
14283 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14284 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14285 fi
14286 $as_echo "$as_me: error: $1" >&2
14287 as_fn_exit $as_status
14288 } # as_fn_error
14289
14290
14291 # as_fn_set_status STATUS
14292 # -----------------------
14293 # Set $? to STATUS, without forking.
14294 as_fn_set_status ()
14295 {
14296 return $1
14297 } # as_fn_set_status
14298
14299 # as_fn_exit STATUS
14300 # -----------------
14301 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14302 as_fn_exit ()
14303 {
14304 set +e
14305 as_fn_set_status $1
14306 exit $1
14307 } # as_fn_exit
14308
14309 # as_fn_unset VAR
14310 # ---------------
14311 # Portably unset VAR.
14312 as_fn_unset ()
14313 {
14314 { eval $1=; unset $1;}
14315 }
14316 as_unset=as_fn_unset
14317 # as_fn_append VAR VALUE
14318 # ----------------------
14319 # Append the text in VALUE to the end of the definition contained in VAR. Take
14320 # advantage of any shell optimizations that allow amortized linear growth over
14321 # repeated appends, instead of the typical quadratic growth present in naive
14322 # implementations.
14323 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14324 eval 'as_fn_append ()
14325 {
14326 eval $1+=\$2
14327 }'
14328 else
14329 as_fn_append ()
14330 {
14331 eval $1=\$$1\$2
14332 }
14333 fi # as_fn_append
14334
14335 # as_fn_arith ARG...
14336 # ------------------
14337 # Perform arithmetic evaluation on the ARGs, and store the result in the
14338 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14339 # must be portable across $(()) and expr.
14340 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14341 eval 'as_fn_arith ()
14342 {
14343 as_val=$(( $* ))
14344 }'
14345 else
14346 as_fn_arith ()
14347 {
14348 as_val=`expr "$@" || test $? -eq 1`
14349 }
14350 fi # as_fn_arith
14351
14352
14353 if expr a : '\(a\)' >/dev/null 2>&1 &&
14354 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14355 as_expr=expr
14356 else
14357 as_expr=false
14358 fi
14359
14360 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14361 as_basename=basename
14362 else
14363 as_basename=false
14364 fi
14365
14366 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14367 as_dirname=dirname
14368 else
14369 as_dirname=false
14370 fi
14371
14372 as_me=`$as_basename -- "$0" ||
14373 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14374 X"$0" : 'X\(//\)$' \| \
14375 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14376 $as_echo X/"$0" |
14377 sed '/^.*\/\([^/][^/]*\)\/*$/{
14378 s//\1/
14379 q
14380 }
14381 /^X\/\(\/\/\)$/{
14382 s//\1/
14383 q
14384 }
14385 /^X\/\(\/\).*/{
14386 s//\1/
14387 q
14388 }
14389 s/.*/./; q'`
14390
14391 # Avoid depending upon Character Ranges.
14392 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14393 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14394 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14395 as_cr_digits='0123456789'
14396 as_cr_alnum=$as_cr_Letters$as_cr_digits
14397
14398 ECHO_C= ECHO_N= ECHO_T=
14399 case `echo -n x` in #(((((
14400 -n*)
14401 case `echo 'xy\c'` in
14402 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14403 xy) ECHO_C='\c';;
14404 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14405 ECHO_T=' ';;
14406 esac;;
14407 *)
14408 ECHO_N='-n';;
14409 esac
14410
14411 rm -f conf$$ conf$$.exe conf$$.file
14412 if test -d conf$$.dir; then
14413 rm -f conf$$.dir/conf$$.file
14414 else
14415 rm -f conf$$.dir
14416 mkdir conf$$.dir 2>/dev/null
14417 fi
14418 if (echo >conf$$.file) 2>/dev/null; then
14419 if ln -s conf$$.file conf$$ 2>/dev/null; then
14420 as_ln_s='ln -s'
14421 # ... but there are two gotchas:
14422 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14423 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14424 # In both cases, we have to default to `cp -p'.
14425 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14426 as_ln_s='cp -p'
14427 elif ln conf$$.file conf$$ 2>/dev/null; then
14428 as_ln_s=ln
14429 else
14430 as_ln_s='cp -p'
14431 fi
14432 else
14433 as_ln_s='cp -p'
14434 fi
14435 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14436 rmdir conf$$.dir 2>/dev/null
14437
14438
14439 # as_fn_mkdir_p
14440 # -------------
14441 # Create "$as_dir" as a directory, including parents if necessary.
14442 as_fn_mkdir_p ()
14443 {
14444
14445 case $as_dir in #(
14446 -*) as_dir=./$as_dir;;
14447 esac
14448 test -d "$as_dir" || eval $as_mkdir_p || {
14449 as_dirs=
14450 while :; do
14451 case $as_dir in #(
14452 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14453 *) as_qdir=$as_dir;;
14454 esac
14455 as_dirs="'$as_qdir' $as_dirs"
14456 as_dir=`$as_dirname -- "$as_dir" ||
14457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14458 X"$as_dir" : 'X\(//\)[^/]' \| \
14459 X"$as_dir" : 'X\(//\)$' \| \
14460 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14461 $as_echo X"$as_dir" |
14462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14463 s//\1/
14464 q
14465 }
14466 /^X\(\/\/\)[^/].*/{
14467 s//\1/
14468 q
14469 }
14470 /^X\(\/\/\)$/{
14471 s//\1/
14472 q
14473 }
14474 /^X\(\/\).*/{
14475 s//\1/
14476 q
14477 }
14478 s/.*/./; q'`
14479 test -d "$as_dir" && break
14480 done
14481 test -z "$as_dirs" || eval "mkdir $as_dirs"
14482 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14483
14484
14485 } # as_fn_mkdir_p
14486 if mkdir -p . 2>/dev/null; then
14487 as_mkdir_p='mkdir -p "$as_dir"'
14488 else
14489 test -d ./-p && rmdir ./-p
14490 as_mkdir_p=false
14491 fi
14492
14493 if test -x / >/dev/null 2>&1; then
14494 as_test_x='test -x'
14495 else
14496 if ls -dL / >/dev/null 2>&1; then
14497 as_ls_L_option=L
14498 else
14499 as_ls_L_option=
14500 fi
14501 as_test_x='
14502 eval sh -c '\''
14503 if test -d "$1"; then
14504 test -d "$1/.";
14505 else
14506 case $1 in #(
14507 -*)set "./$1";;
14508 esac;
14509 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14510 ???[sx]*):;;*)false;;esac;fi
14511 '\'' sh
14512 '
14513 fi
14514 as_executable_p=$as_test_x
14515
14516 # Sed expression to map a string onto a valid CPP name.
14517 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14518
14519 # Sed expression to map a string onto a valid variable name.
14520 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14521
14522
14523 exec 6>&1
14524 ## ----------------------------------- ##
14525 ## Main body of $CONFIG_STATUS script. ##
14526 ## ----------------------------------- ##
14527 _ASEOF
14528 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14529
14530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14531 # Save the log message, to keep $0 and so on meaningful, and to
14532 # report actual input values of CONFIG_FILES etc. instead of their
14533 # values after options handling.
14534 ac_log="
14535 This file was extended by $as_me, which was
14536 generated by GNU Autoconf 2.64. Invocation command line was
14537
14538 CONFIG_FILES = $CONFIG_FILES
14539 CONFIG_HEADERS = $CONFIG_HEADERS
14540 CONFIG_LINKS = $CONFIG_LINKS
14541 CONFIG_COMMANDS = $CONFIG_COMMANDS
14542 $ $0 $@
14543
14544 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14545 "
14546
14547 _ACEOF
14548
14549 case $ac_config_files in *"
14550 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14551 esac
14552
14553 case $ac_config_headers in *"
14554 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14555 esac
14556
14557
14558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14559 # Files that config.status was made for.
14560 config_files="$ac_config_files"
14561 config_headers="$ac_config_headers"
14562 config_commands="$ac_config_commands"
14563
14564 _ACEOF
14565
14566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14567 ac_cs_usage="\
14568 \`$as_me' instantiates files and other configuration actions
14569 from templates according to the current configuration. Unless the files
14570 and actions are specified as TAGs, all are instantiated by default.
14571
14572 Usage: $0 [OPTION]... [TAG]...
14573
14574 -h, --help print this help, then exit
14575 -V, --version print version number and configuration settings, then exit
14576 -q, --quiet, --silent
14577 do not print progress messages
14578 -d, --debug don't remove temporary files
14579 --recheck update $as_me by reconfiguring in the same conditions
14580 --file=FILE[:TEMPLATE]
14581 instantiate the configuration file FILE
14582 --header=FILE[:TEMPLATE]
14583 instantiate the configuration header FILE
14584
14585 Configuration files:
14586 $config_files
14587
14588 Configuration headers:
14589 $config_headers
14590
14591 Configuration commands:
14592 $config_commands
14593
14594 Report bugs to the package provider."
14595
14596 _ACEOF
14597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14598 ac_cs_version="\\
14599 config.status
14600 configured by $0, generated by GNU Autoconf 2.64,
14601 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14602
14603 Copyright (C) 2009 Free Software Foundation, Inc.
14604 This config.status script is free software; the Free Software Foundation
14605 gives unlimited permission to copy, distribute and modify it."
14606
14607 ac_pwd='$ac_pwd'
14608 srcdir='$srcdir'
14609 INSTALL='$INSTALL'
14610 MKDIR_P='$MKDIR_P'
14611 AWK='$AWK'
14612 test -n "\$AWK" || AWK=awk
14613 _ACEOF
14614
14615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14616 # The default lists apply if the user does not specify any file.
14617 ac_need_defaults=:
14618 while test $# != 0
14619 do
14620 case $1 in
14621 --*=*)
14622 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14623 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14624 ac_shift=:
14625 ;;
14626 *)
14627 ac_option=$1
14628 ac_optarg=$2
14629 ac_shift=shift
14630 ;;
14631 esac
14632
14633 case $ac_option in
14634 # Handling of the options.
14635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14636 ac_cs_recheck=: ;;
14637 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14638 $as_echo "$ac_cs_version"; exit ;;
14639 --debug | --debu | --deb | --de | --d | -d )
14640 debug=: ;;
14641 --file | --fil | --fi | --f )
14642 $ac_shift
14643 case $ac_optarg in
14644 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14645 esac
14646 as_fn_append CONFIG_FILES " '$ac_optarg'"
14647 ac_need_defaults=false;;
14648 --header | --heade | --head | --hea )
14649 $ac_shift
14650 case $ac_optarg in
14651 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14652 esac
14653 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14654 ac_need_defaults=false;;
14655 --he | --h)
14656 # Conflict between --help and --header
14657 as_fn_error "ambiguous option: \`$1'
14658 Try \`$0 --help' for more information.";;
14659 --help | --hel | -h )
14660 $as_echo "$ac_cs_usage"; exit ;;
14661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14662 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14663 ac_cs_silent=: ;;
14664
14665 # This is an error.
14666 -*) as_fn_error "unrecognized option: \`$1'
14667 Try \`$0 --help' for more information." ;;
14668
14669 *) as_fn_append ac_config_targets " $1"
14670 ac_need_defaults=false ;;
14671
14672 esac
14673 shift
14674 done
14675
14676 ac_configure_extra_args=
14677
14678 if $ac_cs_silent; then
14679 exec 6>/dev/null
14680 ac_configure_extra_args="$ac_configure_extra_args --silent"
14681 fi
14682
14683 _ACEOF
14684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14685 if \$ac_cs_recheck; then
14686 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14687 shift
14688 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14689 CONFIG_SHELL='$SHELL'
14690 export CONFIG_SHELL
14691 exec "\$@"
14692 fi
14693
14694 _ACEOF
14695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14696 exec 5>>config.log
14697 {
14698 echo
14699 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14700 ## Running $as_me. ##
14701 _ASBOX
14702 $as_echo "$ac_log"
14703 } >&5
14704
14705 _ACEOF
14706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14707 #
14708 # INIT-COMMANDS
14709 #
14710 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14711
14712
14713 # The HP-UX ksh and POSIX shell print the target directory to stdout
14714 # if CDPATH is set.
14715 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14716
14717 sed_quote_subst='$sed_quote_subst'
14718 double_quote_subst='$double_quote_subst'
14719 delay_variable_subst='$delay_variable_subst'
14720 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14721 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14722 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14723 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14724 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14725 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14726 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14727 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14728 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14729 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14730 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14731 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14732 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14733 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14734 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14735 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14736 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14737 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14738 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14739 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14740 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14741 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14742 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14743 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14744 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14745 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14746 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14747 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14748 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14749 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14750 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14751 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14752 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14753 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14754 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14755 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14756 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14757 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14758 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14759 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14760 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14761 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14762 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14763 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14764 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14765 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14766 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14767 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14768 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"`'
14769 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14770 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14771 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14772 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14773 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14774 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14775 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14776 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14777 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14778 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14779 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14780 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14781 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14782 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14783 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14784 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14785 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14786 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14787 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14788 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14789 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14790 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14791 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14792 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14793 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14794 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14795 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14796 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14797 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14798 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14799 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14800 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14801 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14802 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14803 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14804 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14805 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14806 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14807 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14808 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14809 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14810 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14811 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14812 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14813 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14814 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14815 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14816 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14817 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14818 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14819 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14820 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14821 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14822 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14823 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14824 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14825 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14826 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14827 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14828 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14829 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14830 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14831 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14832 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14833 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14834 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14835 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14836 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14837 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14838 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14839 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14840
14841 LTCC='$LTCC'
14842 LTCFLAGS='$LTCFLAGS'
14843 compiler='$compiler_DEFAULT'
14844
14845 # A function that is used when there is no print builtin or printf.
14846 func_fallback_echo ()
14847 {
14848 eval 'cat <<_LTECHO_EOF
14849 \$1
14850 _LTECHO_EOF'
14851 }
14852
14853 # Quote evaled strings.
14854 for var in SHELL \
14855 ECHO \
14856 SED \
14857 GREP \
14858 EGREP \
14859 FGREP \
14860 LD \
14861 NM \
14862 LN_S \
14863 lt_SP2NL \
14864 lt_NL2SP \
14865 reload_flag \
14866 OBJDUMP \
14867 deplibs_check_method \
14868 file_magic_cmd \
14869 AR \
14870 AR_FLAGS \
14871 STRIP \
14872 RANLIB \
14873 CC \
14874 CFLAGS \
14875 compiler \
14876 lt_cv_sys_global_symbol_pipe \
14877 lt_cv_sys_global_symbol_to_cdecl \
14878 lt_cv_sys_global_symbol_to_c_name_address \
14879 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14880 lt_prog_compiler_no_builtin_flag \
14881 lt_prog_compiler_wl \
14882 lt_prog_compiler_pic \
14883 lt_prog_compiler_static \
14884 lt_cv_prog_compiler_c_o \
14885 need_locks \
14886 DSYMUTIL \
14887 NMEDIT \
14888 LIPO \
14889 OTOOL \
14890 OTOOL64 \
14891 shrext_cmds \
14892 export_dynamic_flag_spec \
14893 whole_archive_flag_spec \
14894 compiler_needs_object \
14895 with_gnu_ld \
14896 allow_undefined_flag \
14897 no_undefined_flag \
14898 hardcode_libdir_flag_spec \
14899 hardcode_libdir_flag_spec_ld \
14900 hardcode_libdir_separator \
14901 fix_srcfile_path \
14902 exclude_expsyms \
14903 include_expsyms \
14904 file_list_spec \
14905 variables_saved_for_relink \
14906 libname_spec \
14907 library_names_spec \
14908 soname_spec \
14909 install_override_mode \
14910 finish_eval \
14911 old_striplib \
14912 striplib; do
14913 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14914 *[\\\\\\\`\\"\\\$]*)
14915 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14916 ;;
14917 *)
14918 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14919 ;;
14920 esac
14921 done
14922
14923 # Double-quote double-evaled strings.
14924 for var in reload_cmds \
14925 old_postinstall_cmds \
14926 old_postuninstall_cmds \
14927 old_archive_cmds \
14928 extract_expsyms_cmds \
14929 old_archive_from_new_cmds \
14930 old_archive_from_expsyms_cmds \
14931 archive_cmds \
14932 archive_expsym_cmds \
14933 module_cmds \
14934 module_expsym_cmds \
14935 export_symbols_cmds \
14936 prelink_cmds \
14937 postinstall_cmds \
14938 postuninstall_cmds \
14939 finish_cmds \
14940 sys_lib_search_path_spec \
14941 sys_lib_dlsearch_path_spec; do
14942 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14943 *[\\\\\\\`\\"\\\$]*)
14944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14945 ;;
14946 *)
14947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14948 ;;
14949 esac
14950 done
14951
14952 ac_aux_dir='$ac_aux_dir'
14953 xsi_shell='$xsi_shell'
14954 lt_shell_append='$lt_shell_append'
14955
14956 # See if we are running on zsh, and set the options which allow our
14957 # commands through without removal of \ escapes INIT.
14958 if test -n "\${ZSH_VERSION+set}" ; then
14959 setopt NO_GLOB_SUBST
14960 fi
14961
14962
14963 PACKAGE='$PACKAGE'
14964 VERSION='$VERSION'
14965 TIMESTAMP='$TIMESTAMP'
14966 RM='$RM'
14967 ofile='$ofile'
14968
14969
14970
14971 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14972 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14973 # from automake.
14974 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14975 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14976 LINGUAS="${LINGUAS-%UNSET%}"
14977
14978
14979 _ACEOF
14980
14981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14982
14983 # Handling of arguments.
14984 for ac_config_target in $ac_config_targets
14985 do
14986 case $ac_config_target in
14987 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14988 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14989 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14990 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14991 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14992 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14993 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14994
14995 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14996 esac
14997 done
14998
14999
15000 # If the user did not use the arguments to specify the items to instantiate,
15001 # then the envvar interface is used. Set only those that are not.
15002 # We use the long form for the default assignment because of an extremely
15003 # bizarre bug on SunOS 4.1.3.
15004 if $ac_need_defaults; then
15005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15006 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15007 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15008 fi
15009
15010 # Have a temporary directory for convenience. Make it in the build tree
15011 # simply because there is no reason against having it here, and in addition,
15012 # creating and moving files from /tmp can sometimes cause problems.
15013 # Hook for its removal unless debugging.
15014 # Note that there is a small window in which the directory will not be cleaned:
15015 # after its creation but before its name has been assigned to `$tmp'.
15016 $debug ||
15017 {
15018 tmp=
15019 trap 'exit_status=$?
15020 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15021 ' 0
15022 trap 'as_fn_exit 1' 1 2 13 15
15023 }
15024 # Create a (secure) tmp directory for tmp files.
15025
15026 {
15027 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15028 test -n "$tmp" && test -d "$tmp"
15029 } ||
15030 {
15031 tmp=./conf$$-$RANDOM
15032 (umask 077 && mkdir "$tmp")
15033 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15034
15035 # Set up the scripts for CONFIG_FILES section.
15036 # No need to generate them if there are no CONFIG_FILES.
15037 # This happens for instance with `./config.status config.h'.
15038 if test -n "$CONFIG_FILES"; then
15039
15040
15041 ac_cr=`echo X | tr X '\015'`
15042 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15043 # But we know of no other shell where ac_cr would be empty at this
15044 # point, so we can use a bashism as a fallback.
15045 if test "x$ac_cr" = x; then
15046 eval ac_cr=\$\'\\r\'
15047 fi
15048 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15049 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15050 ac_cs_awk_cr='\r'
15051 else
15052 ac_cs_awk_cr=$ac_cr
15053 fi
15054
15055 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15056 _ACEOF
15057
15058
15059 {
15060 echo "cat >conf$$subs.awk <<_ACEOF" &&
15061 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15062 echo "_ACEOF"
15063 } >conf$$subs.sh ||
15064 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15065 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15066 ac_delim='%!_!# '
15067 for ac_last_try in false false false false false :; do
15068 . ./conf$$subs.sh ||
15069 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15070
15071 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15072 if test $ac_delim_n = $ac_delim_num; then
15073 break
15074 elif $ac_last_try; then
15075 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15076 else
15077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15078 fi
15079 done
15080 rm -f conf$$subs.sh
15081
15082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15083 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15084 _ACEOF
15085 sed -n '
15086 h
15087 s/^/S["/; s/!.*/"]=/
15088 p
15089 g
15090 s/^[^!]*!//
15091 :repl
15092 t repl
15093 s/'"$ac_delim"'$//
15094 t delim
15095 :nl
15096 h
15097 s/\(.\{148\}\).*/\1/
15098 t more1
15099 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15100 p
15101 n
15102 b repl
15103 :more1
15104 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15105 p
15106 g
15107 s/.\{148\}//
15108 t nl
15109 :delim
15110 h
15111 s/\(.\{148\}\).*/\1/
15112 t more2
15113 s/["\\]/\\&/g; s/^/"/; s/$/"/
15114 p
15115 b
15116 :more2
15117 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15118 p
15119 g
15120 s/.\{148\}//
15121 t delim
15122 ' <conf$$subs.awk | sed '
15123 /^[^""]/{
15124 N
15125 s/\n//
15126 }
15127 ' >>$CONFIG_STATUS || ac_write_fail=1
15128 rm -f conf$$subs.awk
15129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15130 _ACAWK
15131 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15132 for (key in S) S_is_set[key] = 1
15133 FS = "\a"
15134
15135 }
15136 {
15137 line = $ 0
15138 nfields = split(line, field, "@")
15139 substed = 0
15140 len = length(field[1])
15141 for (i = 2; i < nfields; i++) {
15142 key = field[i]
15143 keylen = length(key)
15144 if (S_is_set[key]) {
15145 value = S[key]
15146 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15147 len += length(value) + length(field[++i])
15148 substed = 1
15149 } else
15150 len += 1 + keylen
15151 }
15152
15153 print line
15154 }
15155
15156 _ACAWK
15157 _ACEOF
15158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15159 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15160 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15161 else
15162 cat
15163 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15164 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15165 _ACEOF
15166
15167 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15168 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15169 # trailing colons and then remove the whole line if VPATH becomes empty
15170 # (actually we leave an empty line to preserve line numbers).
15171 if test "x$srcdir" = x.; then
15172 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15173 s/:*\$(srcdir):*/:/
15174 s/:*\${srcdir}:*/:/
15175 s/:*@srcdir@:*/:/
15176 s/^\([^=]*=[ ]*\):*/\1/
15177 s/:*$//
15178 s/^[^=]*=[ ]*$//
15179 }'
15180 fi
15181
15182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15183 fi # test -n "$CONFIG_FILES"
15184
15185 # Set up the scripts for CONFIG_HEADERS section.
15186 # No need to generate them if there are no CONFIG_HEADERS.
15187 # This happens for instance with `./config.status Makefile'.
15188 if test -n "$CONFIG_HEADERS"; then
15189 cat >"$tmp/defines.awk" <<\_ACAWK ||
15190 BEGIN {
15191 _ACEOF
15192
15193 # Transform confdefs.h into an awk script `defines.awk', embedded as
15194 # here-document in config.status, that substitutes the proper values into
15195 # config.h.in to produce config.h.
15196
15197 # Create a delimiter string that does not exist in confdefs.h, to ease
15198 # handling of long lines.
15199 ac_delim='%!_!# '
15200 for ac_last_try in false false :; do
15201 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15202 if test -z "$ac_t"; then
15203 break
15204 elif $ac_last_try; then
15205 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15206 else
15207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15208 fi
15209 done
15210
15211 # For the awk script, D is an array of macro values keyed by name,
15212 # likewise P contains macro parameters if any. Preserve backslash
15213 # newline sequences.
15214
15215 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15216 sed -n '
15217 s/.\{148\}/&'"$ac_delim"'/g
15218 t rset
15219 :rset
15220 s/^[ ]*#[ ]*define[ ][ ]*/ /
15221 t def
15222 d
15223 :def
15224 s/\\$//
15225 t bsnl
15226 s/["\\]/\\&/g
15227 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15228 D["\1"]=" \3"/p
15229 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15230 d
15231 :bsnl
15232 s/["\\]/\\&/g
15233 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15234 D["\1"]=" \3\\\\\\n"\\/p
15235 t cont
15236 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15237 t cont
15238 d
15239 :cont
15240 n
15241 s/.\{148\}/&'"$ac_delim"'/g
15242 t clear
15243 :clear
15244 s/\\$//
15245 t bsnlc
15246 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15247 d
15248 :bsnlc
15249 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15250 b cont
15251 ' <confdefs.h | sed '
15252 s/'"$ac_delim"'/"\\\
15253 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15254
15255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15256 for (key in D) D_is_set[key] = 1
15257 FS = "\a"
15258 }
15259 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15260 line = \$ 0
15261 split(line, arg, " ")
15262 if (arg[1] == "#") {
15263 defundef = arg[2]
15264 mac1 = arg[3]
15265 } else {
15266 defundef = substr(arg[1], 2)
15267 mac1 = arg[2]
15268 }
15269 split(mac1, mac2, "(") #)
15270 macro = mac2[1]
15271 prefix = substr(line, 1, index(line, defundef) - 1)
15272 if (D_is_set[macro]) {
15273 # Preserve the white space surrounding the "#".
15274 print prefix "define", macro P[macro] D[macro]
15275 next
15276 } else {
15277 # Replace #undef with comments. This is necessary, for example,
15278 # in the case of _POSIX_SOURCE, which is predefined and required
15279 # on some systems where configure will not decide to define it.
15280 if (defundef == "undef") {
15281 print "/*", prefix defundef, macro, "*/"
15282 next
15283 }
15284 }
15285 }
15286 { print }
15287 _ACAWK
15288 _ACEOF
15289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15290 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15291 fi # test -n "$CONFIG_HEADERS"
15292
15293
15294 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15295 shift
15296 for ac_tag
15297 do
15298 case $ac_tag in
15299 :[FHLC]) ac_mode=$ac_tag; continue;;
15300 esac
15301 case $ac_mode$ac_tag in
15302 :[FHL]*:*);;
15303 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15304 :[FH]-) ac_tag=-:-;;
15305 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15306 esac
15307 ac_save_IFS=$IFS
15308 IFS=:
15309 set x $ac_tag
15310 IFS=$ac_save_IFS
15311 shift
15312 ac_file=$1
15313 shift
15314
15315 case $ac_mode in
15316 :L) ac_source=$1;;
15317 :[FH])
15318 ac_file_inputs=
15319 for ac_f
15320 do
15321 case $ac_f in
15322 -) ac_f="$tmp/stdin";;
15323 *) # Look for the file first in the build tree, then in the source tree
15324 # (if the path is not absolute). The absolute path cannot be DOS-style,
15325 # because $ac_f cannot contain `:'.
15326 test -f "$ac_f" ||
15327 case $ac_f in
15328 [\\/$]*) false;;
15329 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15330 esac ||
15331 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15332 esac
15333 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15334 as_fn_append ac_file_inputs " '$ac_f'"
15335 done
15336
15337 # Let's still pretend it is `configure' which instantiates (i.e., don't
15338 # use $as_me), people would be surprised to read:
15339 # /* config.h. Generated by config.status. */
15340 configure_input='Generated from '`
15341 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15342 `' by configure.'
15343 if test x"$ac_file" != x-; then
15344 configure_input="$ac_file. $configure_input"
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15346 $as_echo "$as_me: creating $ac_file" >&6;}
15347 fi
15348 # Neutralize special characters interpreted by sed in replacement strings.
15349 case $configure_input in #(
15350 *\&* | *\|* | *\\* )
15351 ac_sed_conf_input=`$as_echo "$configure_input" |
15352 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15353 *) ac_sed_conf_input=$configure_input;;
15354 esac
15355
15356 case $ac_tag in
15357 *:-:* | *:-) cat >"$tmp/stdin" \
15358 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15359 esac
15360 ;;
15361 esac
15362
15363 ac_dir=`$as_dirname -- "$ac_file" ||
15364 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15365 X"$ac_file" : 'X\(//\)[^/]' \| \
15366 X"$ac_file" : 'X\(//\)$' \| \
15367 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15368 $as_echo X"$ac_file" |
15369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15370 s//\1/
15371 q
15372 }
15373 /^X\(\/\/\)[^/].*/{
15374 s//\1/
15375 q
15376 }
15377 /^X\(\/\/\)$/{
15378 s//\1/
15379 q
15380 }
15381 /^X\(\/\).*/{
15382 s//\1/
15383 q
15384 }
15385 s/.*/./; q'`
15386 as_dir="$ac_dir"; as_fn_mkdir_p
15387 ac_builddir=.
15388
15389 case "$ac_dir" in
15390 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15391 *)
15392 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15393 # A ".." for each directory in $ac_dir_suffix.
15394 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15395 case $ac_top_builddir_sub in
15396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15398 esac ;;
15399 esac
15400 ac_abs_top_builddir=$ac_pwd
15401 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15402 # for backward compatibility:
15403 ac_top_builddir=$ac_top_build_prefix
15404
15405 case $srcdir in
15406 .) # We are building in place.
15407 ac_srcdir=.
15408 ac_top_srcdir=$ac_top_builddir_sub
15409 ac_abs_top_srcdir=$ac_pwd ;;
15410 [\\/]* | ?:[\\/]* ) # Absolute name.
15411 ac_srcdir=$srcdir$ac_dir_suffix;
15412 ac_top_srcdir=$srcdir
15413 ac_abs_top_srcdir=$srcdir ;;
15414 *) # Relative name.
15415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15416 ac_top_srcdir=$ac_top_build_prefix$srcdir
15417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15418 esac
15419 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15420
15421
15422 case $ac_mode in
15423 :F)
15424 #
15425 # CONFIG_FILE
15426 #
15427
15428 case $INSTALL in
15429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15430 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15431 esac
15432 ac_MKDIR_P=$MKDIR_P
15433 case $MKDIR_P in
15434 [\\/$]* | ?:[\\/]* ) ;;
15435 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15436 esac
15437 _ACEOF
15438
15439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15440 # If the template does not know about datarootdir, expand it.
15441 # FIXME: This hack should be removed a few years after 2.60.
15442 ac_datarootdir_hack=; ac_datarootdir_seen=
15443 ac_sed_dataroot='
15444 /datarootdir/ {
15445 p
15446 q
15447 }
15448 /@datadir@/p
15449 /@docdir@/p
15450 /@infodir@/p
15451 /@localedir@/p
15452 /@mandir@/p'
15453 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15454 *datarootdir*) ac_datarootdir_seen=yes;;
15455 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15457 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15458 _ACEOF
15459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15460 ac_datarootdir_hack='
15461 s&@datadir@&$datadir&g
15462 s&@docdir@&$docdir&g
15463 s&@infodir@&$infodir&g
15464 s&@localedir@&$localedir&g
15465 s&@mandir@&$mandir&g
15466 s&\\\${datarootdir}&$datarootdir&g' ;;
15467 esac
15468 _ACEOF
15469
15470 # Neutralize VPATH when `$srcdir' = `.'.
15471 # Shell code in configure.ac might set extrasub.
15472 # FIXME: do we really want to maintain this feature?
15473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15474 ac_sed_extra="$ac_vpsub
15475 $extrasub
15476 _ACEOF
15477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15478 :t
15479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15480 s|@configure_input@|$ac_sed_conf_input|;t t
15481 s&@top_builddir@&$ac_top_builddir_sub&;t t
15482 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15483 s&@srcdir@&$ac_srcdir&;t t
15484 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15485 s&@top_srcdir@&$ac_top_srcdir&;t t
15486 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15487 s&@builddir@&$ac_builddir&;t t
15488 s&@abs_builddir@&$ac_abs_builddir&;t t
15489 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15490 s&@INSTALL@&$ac_INSTALL&;t t
15491 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15492 $ac_datarootdir_hack
15493 "
15494 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15495 || as_fn_error "could not create $ac_file" "$LINENO" 5
15496
15497 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15498 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15499 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15501 which seems to be undefined. Please make sure it is defined." >&5
15502 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15503 which seems to be undefined. Please make sure it is defined." >&2;}
15504
15505 rm -f "$tmp/stdin"
15506 case $ac_file in
15507 -) cat "$tmp/out" && rm -f "$tmp/out";;
15508 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15509 esac \
15510 || as_fn_error "could not create $ac_file" "$LINENO" 5
15511 ;;
15512 :H)
15513 #
15514 # CONFIG_HEADER
15515 #
15516 if test x"$ac_file" != x-; then
15517 {
15518 $as_echo "/* $configure_input */" \
15519 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15520 } >"$tmp/config.h" \
15521 || as_fn_error "could not create $ac_file" "$LINENO" 5
15522 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15524 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15525 else
15526 rm -f "$ac_file"
15527 mv "$tmp/config.h" "$ac_file" \
15528 || as_fn_error "could not create $ac_file" "$LINENO" 5
15529 fi
15530 else
15531 $as_echo "/* $configure_input */" \
15532 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15533 || as_fn_error "could not create -" "$LINENO" 5
15534 fi
15535 # Compute "$ac_file"'s index in $config_headers.
15536 _am_arg="$ac_file"
15537 _am_stamp_count=1
15538 for _am_header in $config_headers :; do
15539 case $_am_header in
15540 $_am_arg | $_am_arg:* )
15541 break ;;
15542 * )
15543 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15544 esac
15545 done
15546 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15547 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15548 X"$_am_arg" : 'X\(//\)[^/]' \| \
15549 X"$_am_arg" : 'X\(//\)$' \| \
15550 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15551 $as_echo X"$_am_arg" |
15552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15553 s//\1/
15554 q
15555 }
15556 /^X\(\/\/\)[^/].*/{
15557 s//\1/
15558 q
15559 }
15560 /^X\(\/\/\)$/{
15561 s//\1/
15562 q
15563 }
15564 /^X\(\/\).*/{
15565 s//\1/
15566 q
15567 }
15568 s/.*/./; q'`/stamp-h$_am_stamp_count
15569 ;;
15570
15571 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15572 $as_echo "$as_me: executing $ac_file commands" >&6;}
15573 ;;
15574 esac
15575
15576
15577 case $ac_file$ac_mode in
15578 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15579 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15580 # are listed without --file. Let's play safe and only enable the eval
15581 # if we detect the quoting.
15582 case $CONFIG_FILES in
15583 *\'*) eval set x "$CONFIG_FILES" ;;
15584 *) set x $CONFIG_FILES ;;
15585 esac
15586 shift
15587 for mf
15588 do
15589 # Strip MF so we end up with the name of the file.
15590 mf=`echo "$mf" | sed -e 's/:.*$//'`
15591 # Check whether this is an Automake generated Makefile or not.
15592 # We used to match only the files named `Makefile.in', but
15593 # some people rename them; so instead we look at the file content.
15594 # Grep'ing the first line is not enough: some people post-process
15595 # each Makefile.in and add a new line on top of each file to say so.
15596 # Grep'ing the whole file is not good either: AIX grep has a line
15597 # limit of 2048, but all sed's we know have understand at least 4000.
15598 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15599 dirpart=`$as_dirname -- "$mf" ||
15600 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15601 X"$mf" : 'X\(//\)[^/]' \| \
15602 X"$mf" : 'X\(//\)$' \| \
15603 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15604 $as_echo X"$mf" |
15605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15606 s//\1/
15607 q
15608 }
15609 /^X\(\/\/\)[^/].*/{
15610 s//\1/
15611 q
15612 }
15613 /^X\(\/\/\)$/{
15614 s//\1/
15615 q
15616 }
15617 /^X\(\/\).*/{
15618 s//\1/
15619 q
15620 }
15621 s/.*/./; q'`
15622 else
15623 continue
15624 fi
15625 # Extract the definition of DEPDIR, am__include, and am__quote
15626 # from the Makefile without running `make'.
15627 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15628 test -z "$DEPDIR" && continue
15629 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15630 test -z "am__include" && continue
15631 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15632 # When using ansi2knr, U may be empty or an underscore; expand it
15633 U=`sed -n 's/^U = //p' < "$mf"`
15634 # Find all dependency output files, they are included files with
15635 # $(DEPDIR) in their names. We invoke sed twice because it is the
15636 # simplest approach to changing $(DEPDIR) to its actual value in the
15637 # expansion.
15638 for file in `sed -n "
15639 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15640 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15641 # Make sure the directory exists.
15642 test -f "$dirpart/$file" && continue
15643 fdir=`$as_dirname -- "$file" ||
15644 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15645 X"$file" : 'X\(//\)[^/]' \| \
15646 X"$file" : 'X\(//\)$' \| \
15647 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15648 $as_echo X"$file" |
15649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15650 s//\1/
15651 q
15652 }
15653 /^X\(\/\/\)[^/].*/{
15654 s//\1/
15655 q
15656 }
15657 /^X\(\/\/\)$/{
15658 s//\1/
15659 q
15660 }
15661 /^X\(\/\).*/{
15662 s//\1/
15663 q
15664 }
15665 s/.*/./; q'`
15666 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15667 # echo "creating $dirpart/$file"
15668 echo '# dummy' > "$dirpart/$file"
15669 done
15670 done
15671 }
15672 ;;
15673 "libtool":C)
15674
15675 # See if we are running on zsh, and set the options which allow our
15676 # commands through without removal of \ escapes.
15677 if test -n "${ZSH_VERSION+set}" ; then
15678 setopt NO_GLOB_SUBST
15679 fi
15680
15681 cfgfile="${ofile}T"
15682 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15683 $RM "$cfgfile"
15684
15685 cat <<_LT_EOF >> "$cfgfile"
15686 #! $SHELL
15687
15688 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15689 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15690 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15691 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15692 #
15693 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15694 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15695 # Written by Gordon Matzigkeit, 1996
15696 #
15697 # This file is part of GNU Libtool.
15698 #
15699 # GNU Libtool is free software; you can redistribute it and/or
15700 # modify it under the terms of the GNU General Public License as
15701 # published by the Free Software Foundation; either version 2 of
15702 # the License, or (at your option) any later version.
15703 #
15704 # As a special exception to the GNU General Public License,
15705 # if you distribute this file as part of a program or library that
15706 # is built using GNU Libtool, you may include this file under the
15707 # same distribution terms that you use for the rest of that program.
15708 #
15709 # GNU Libtool is distributed in the hope that it will be useful,
15710 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15711 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15712 # GNU General Public License for more details.
15713 #
15714 # You should have received a copy of the GNU General Public License
15715 # along with GNU Libtool; see the file COPYING. If not, a copy
15716 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15717 # obtained by writing to the Free Software Foundation, Inc.,
15718 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15719
15720
15721 # The names of the tagged configurations supported by this script.
15722 available_tags=""
15723
15724 # ### BEGIN LIBTOOL CONFIG
15725
15726 # Which release of libtool.m4 was used?
15727 macro_version=$macro_version
15728 macro_revision=$macro_revision
15729
15730 # Whether or not to build shared libraries.
15731 build_libtool_libs=$enable_shared
15732
15733 # Whether or not to build static libraries.
15734 build_old_libs=$enable_static
15735
15736 # What type of objects to build.
15737 pic_mode=$pic_mode
15738
15739 # Whether or not to optimize for fast installation.
15740 fast_install=$enable_fast_install
15741
15742 # Shell to use when invoking shell scripts.
15743 SHELL=$lt_SHELL
15744
15745 # An echo program that protects backslashes.
15746 ECHO=$lt_ECHO
15747
15748 # The host system.
15749 host_alias=$host_alias
15750 host=$host
15751 host_os=$host_os
15752
15753 # The build system.
15754 build_alias=$build_alias
15755 build=$build
15756 build_os=$build_os
15757
15758 # A sed program that does not truncate output.
15759 SED=$lt_SED
15760
15761 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15762 Xsed="\$SED -e 1s/^X//"
15763
15764 # A grep program that handles long lines.
15765 GREP=$lt_GREP
15766
15767 # An ERE matcher.
15768 EGREP=$lt_EGREP
15769
15770 # A literal string matcher.
15771 FGREP=$lt_FGREP
15772
15773 # A BSD- or MS-compatible name lister.
15774 NM=$lt_NM
15775
15776 # Whether we need soft or hard links.
15777 LN_S=$lt_LN_S
15778
15779 # What is the maximum length of a command?
15780 max_cmd_len=$max_cmd_len
15781
15782 # Object file suffix (normally "o").
15783 objext=$ac_objext
15784
15785 # Executable file suffix (normally "").
15786 exeext=$exeext
15787
15788 # whether the shell understands "unset".
15789 lt_unset=$lt_unset
15790
15791 # turn spaces into newlines.
15792 SP2NL=$lt_lt_SP2NL
15793
15794 # turn newlines into spaces.
15795 NL2SP=$lt_lt_NL2SP
15796
15797 # An object symbol dumper.
15798 OBJDUMP=$lt_OBJDUMP
15799
15800 # Method to check whether dependent libraries are shared objects.
15801 deplibs_check_method=$lt_deplibs_check_method
15802
15803 # Command to use when deplibs_check_method == "file_magic".
15804 file_magic_cmd=$lt_file_magic_cmd
15805
15806 # The archiver.
15807 AR=$lt_AR
15808 AR_FLAGS=$lt_AR_FLAGS
15809
15810 # A symbol stripping program.
15811 STRIP=$lt_STRIP
15812
15813 # Commands used to install an old-style archive.
15814 RANLIB=$lt_RANLIB
15815 old_postinstall_cmds=$lt_old_postinstall_cmds
15816 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15817
15818 # Whether to use a lock for old archive extraction.
15819 lock_old_archive_extraction=$lock_old_archive_extraction
15820
15821 # A C compiler.
15822 LTCC=$lt_CC
15823
15824 # LTCC compiler flags.
15825 LTCFLAGS=$lt_CFLAGS
15826
15827 # Take the output of nm and produce a listing of raw symbols and C names.
15828 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15829
15830 # Transform the output of nm in a proper C declaration.
15831 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15832
15833 # Transform the output of nm in a C name address pair.
15834 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15835
15836 # Transform the output of nm in a C name address pair when lib prefix is needed.
15837 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15838
15839 # The name of the directory that contains temporary libtool files.
15840 objdir=$objdir
15841
15842 # Used to examine libraries when file_magic_cmd begins with "file".
15843 MAGIC_CMD=$MAGIC_CMD
15844
15845 # Must we lock files when doing compilation?
15846 need_locks=$lt_need_locks
15847
15848 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15849 DSYMUTIL=$lt_DSYMUTIL
15850
15851 # Tool to change global to local symbols on Mac OS X.
15852 NMEDIT=$lt_NMEDIT
15853
15854 # Tool to manipulate fat objects and archives on Mac OS X.
15855 LIPO=$lt_LIPO
15856
15857 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15858 OTOOL=$lt_OTOOL
15859
15860 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15861 OTOOL64=$lt_OTOOL64
15862
15863 # Old archive suffix (normally "a").
15864 libext=$libext
15865
15866 # Shared library suffix (normally ".so").
15867 shrext_cmds=$lt_shrext_cmds
15868
15869 # The commands to extract the exported symbol list from a shared archive.
15870 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15871
15872 # Variables whose values should be saved in libtool wrapper scripts and
15873 # restored at link time.
15874 variables_saved_for_relink=$lt_variables_saved_for_relink
15875
15876 # Do we need the "lib" prefix for modules?
15877 need_lib_prefix=$need_lib_prefix
15878
15879 # Do we need a version for libraries?
15880 need_version=$need_version
15881
15882 # Library versioning type.
15883 version_type=$version_type
15884
15885 # Shared library runtime path variable.
15886 runpath_var=$runpath_var
15887
15888 # Shared library path variable.
15889 shlibpath_var=$shlibpath_var
15890
15891 # Is shlibpath searched before the hard-coded library search path?
15892 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15893
15894 # Format of library name prefix.
15895 libname_spec=$lt_libname_spec
15896
15897 # List of archive names. First name is the real one, the rest are links.
15898 # The last name is the one that the linker finds with -lNAME
15899 library_names_spec=$lt_library_names_spec
15900
15901 # The coded name of the library, if different from the real name.
15902 soname_spec=$lt_soname_spec
15903
15904 # Permission mode override for installation of shared libraries.
15905 install_override_mode=$lt_install_override_mode
15906
15907 # Command to use after installation of a shared archive.
15908 postinstall_cmds=$lt_postinstall_cmds
15909
15910 # Command to use after uninstallation of a shared archive.
15911 postuninstall_cmds=$lt_postuninstall_cmds
15912
15913 # Commands used to finish a libtool library installation in a directory.
15914 finish_cmds=$lt_finish_cmds
15915
15916 # As "finish_cmds", except a single script fragment to be evaled but
15917 # not shown.
15918 finish_eval=$lt_finish_eval
15919
15920 # Whether we should hardcode library paths into libraries.
15921 hardcode_into_libs=$hardcode_into_libs
15922
15923 # Compile-time system search path for libraries.
15924 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15925
15926 # Run-time system search path for libraries.
15927 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15928
15929 # Whether dlopen is supported.
15930 dlopen_support=$enable_dlopen
15931
15932 # Whether dlopen of programs is supported.
15933 dlopen_self=$enable_dlopen_self
15934
15935 # Whether dlopen of statically linked programs is supported.
15936 dlopen_self_static=$enable_dlopen_self_static
15937
15938 # Commands to strip libraries.
15939 old_striplib=$lt_old_striplib
15940 striplib=$lt_striplib
15941
15942
15943 # The linker used to build libraries.
15944 LD=$lt_LD
15945
15946 # How to create reloadable object files.
15947 reload_flag=$lt_reload_flag
15948 reload_cmds=$lt_reload_cmds
15949
15950 # Commands used to build an old-style archive.
15951 old_archive_cmds=$lt_old_archive_cmds
15952
15953 # A language specific compiler.
15954 CC=$lt_compiler
15955
15956 # Is the compiler the GNU compiler?
15957 with_gcc=$GCC
15958
15959 # Compiler flag to turn off builtin functions.
15960 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15961
15962 # How to pass a linker flag through the compiler.
15963 wl=$lt_lt_prog_compiler_wl
15964
15965 # Additional compiler flags for building library objects.
15966 pic_flag=$lt_lt_prog_compiler_pic
15967
15968 # Compiler flag to prevent dynamic linking.
15969 link_static_flag=$lt_lt_prog_compiler_static
15970
15971 # Does compiler simultaneously support -c and -o options?
15972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15973
15974 # Whether or not to add -lc for building shared libraries.
15975 build_libtool_need_lc=$archive_cmds_need_lc
15976
15977 # Whether or not to disallow shared libs when runtime libs are static.
15978 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15979
15980 # Compiler flag to allow reflexive dlopens.
15981 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15982
15983 # Compiler flag to generate shared objects directly from archives.
15984 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15985
15986 # Whether the compiler copes with passing no objects directly.
15987 compiler_needs_object=$lt_compiler_needs_object
15988
15989 # Create an old-style archive from a shared archive.
15990 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15991
15992 # Create a temporary old-style archive to link instead of a shared archive.
15993 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15994
15995 # Commands used to build a shared archive.
15996 archive_cmds=$lt_archive_cmds
15997 archive_expsym_cmds=$lt_archive_expsym_cmds
15998
15999 # Commands used to build a loadable module if different from building
16000 # a shared archive.
16001 module_cmds=$lt_module_cmds
16002 module_expsym_cmds=$lt_module_expsym_cmds
16003
16004 # Whether we are building with GNU ld or not.
16005 with_gnu_ld=$lt_with_gnu_ld
16006
16007 # Flag that allows shared libraries with undefined symbols to be built.
16008 allow_undefined_flag=$lt_allow_undefined_flag
16009
16010 # Flag that enforces no undefined symbols.
16011 no_undefined_flag=$lt_no_undefined_flag
16012
16013 # Flag to hardcode \$libdir into a binary during linking.
16014 # This must work even if \$libdir does not exist
16015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16016
16017 # If ld is used when linking, flag to hardcode \$libdir into a binary
16018 # during linking. This must work even if \$libdir does not exist.
16019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16020
16021 # Whether we need a single "-rpath" flag with a separated argument.
16022 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16023
16024 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16025 # DIR into the resulting binary.
16026 hardcode_direct=$hardcode_direct
16027
16028 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16029 # DIR into the resulting binary and the resulting library dependency is
16030 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16031 # library is relocated.
16032 hardcode_direct_absolute=$hardcode_direct_absolute
16033
16034 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16035 # into the resulting binary.
16036 hardcode_minus_L=$hardcode_minus_L
16037
16038 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16039 # into the resulting binary.
16040 hardcode_shlibpath_var=$hardcode_shlibpath_var
16041
16042 # Set to "yes" if building a shared library automatically hardcodes DIR
16043 # into the library and all subsequent libraries and executables linked
16044 # against it.
16045 hardcode_automatic=$hardcode_automatic
16046
16047 # Set to yes if linker adds runtime paths of dependent libraries
16048 # to runtime path list.
16049 inherit_rpath=$inherit_rpath
16050
16051 # Whether libtool must link a program against all its dependency libraries.
16052 link_all_deplibs=$link_all_deplibs
16053
16054 # Fix the shell variable \$srcfile for the compiler.
16055 fix_srcfile_path=$lt_fix_srcfile_path
16056
16057 # Set to "yes" if exported symbols are required.
16058 always_export_symbols=$always_export_symbols
16059
16060 # The commands to list exported symbols.
16061 export_symbols_cmds=$lt_export_symbols_cmds
16062
16063 # Symbols that should not be listed in the preloaded symbols.
16064 exclude_expsyms=$lt_exclude_expsyms
16065
16066 # Symbols that must always be exported.
16067 include_expsyms=$lt_include_expsyms
16068
16069 # Commands necessary for linking programs (against libraries) with templates.
16070 prelink_cmds=$lt_prelink_cmds
16071
16072 # Specify filename containing input files.
16073 file_list_spec=$lt_file_list_spec
16074
16075 # How to hardcode a shared library path into an executable.
16076 hardcode_action=$hardcode_action
16077
16078 # ### END LIBTOOL CONFIG
16079
16080 _LT_EOF
16081
16082 case $host_os in
16083 aix3*)
16084 cat <<\_LT_EOF >> "$cfgfile"
16085 # AIX sometimes has problems with the GCC collect2 program. For some
16086 # reason, if we set the COLLECT_NAMES environment variable, the problems
16087 # vanish in a puff of smoke.
16088 if test "X${COLLECT_NAMES+set}" != Xset; then
16089 COLLECT_NAMES=
16090 export COLLECT_NAMES
16091 fi
16092 _LT_EOF
16093 ;;
16094 esac
16095
16096
16097 ltmain="$ac_aux_dir/ltmain.sh"
16098
16099
16100 # We use sed instead of cat because bash on DJGPP gets confused if
16101 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16102 # text mode, it properly converts lines to CR/LF. This bash problem
16103 # is reportedly fixed, but why not run on old versions too?
16104 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16105 || (rm -f "$cfgfile"; exit 1)
16106
16107 case $xsi_shell in
16108 yes)
16109 cat << \_LT_EOF >> "$cfgfile"
16110
16111 # func_dirname file append nondir_replacement
16112 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16113 # otherwise set result to NONDIR_REPLACEMENT.
16114 func_dirname ()
16115 {
16116 case ${1} in
16117 */*) func_dirname_result="${1%/*}${2}" ;;
16118 * ) func_dirname_result="${3}" ;;
16119 esac
16120 }
16121
16122 # func_basename file
16123 func_basename ()
16124 {
16125 func_basename_result="${1##*/}"
16126 }
16127
16128 # func_dirname_and_basename file append nondir_replacement
16129 # perform func_basename and func_dirname in a single function
16130 # call:
16131 # dirname: Compute the dirname of FILE. If nonempty,
16132 # add APPEND to the result, otherwise set result
16133 # to NONDIR_REPLACEMENT.
16134 # value returned in "$func_dirname_result"
16135 # basename: Compute filename of FILE.
16136 # value retuned in "$func_basename_result"
16137 # Implementation must be kept synchronized with func_dirname
16138 # and func_basename. For efficiency, we do not delegate to
16139 # those functions but instead duplicate the functionality here.
16140 func_dirname_and_basename ()
16141 {
16142 case ${1} in
16143 */*) func_dirname_result="${1%/*}${2}" ;;
16144 * ) func_dirname_result="${3}" ;;
16145 esac
16146 func_basename_result="${1##*/}"
16147 }
16148
16149 # func_stripname prefix suffix name
16150 # strip PREFIX and SUFFIX off of NAME.
16151 # PREFIX and SUFFIX must not contain globbing or regex special
16152 # characters, hashes, percent signs, but SUFFIX may contain a leading
16153 # dot (in which case that matches only a dot).
16154 func_stripname ()
16155 {
16156 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16157 # positional parameters, so assign one to ordinary parameter first.
16158 func_stripname_result=${3}
16159 func_stripname_result=${func_stripname_result#"${1}"}
16160 func_stripname_result=${func_stripname_result%"${2}"}
16161 }
16162
16163 # func_opt_split
16164 func_opt_split ()
16165 {
16166 func_opt_split_opt=${1%%=*}
16167 func_opt_split_arg=${1#*=}
16168 }
16169
16170 # func_lo2o object
16171 func_lo2o ()
16172 {
16173 case ${1} in
16174 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16175 *) func_lo2o_result=${1} ;;
16176 esac
16177 }
16178
16179 # func_xform libobj-or-source
16180 func_xform ()
16181 {
16182 func_xform_result=${1%.*}.lo
16183 }
16184
16185 # func_arith arithmetic-term...
16186 func_arith ()
16187 {
16188 func_arith_result=$(( $* ))
16189 }
16190
16191 # func_len string
16192 # STRING may not start with a hyphen.
16193 func_len ()
16194 {
16195 func_len_result=${#1}
16196 }
16197
16198 _LT_EOF
16199 ;;
16200 *) # Bourne compatible functions.
16201 cat << \_LT_EOF >> "$cfgfile"
16202
16203 # func_dirname file append nondir_replacement
16204 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16205 # otherwise set result to NONDIR_REPLACEMENT.
16206 func_dirname ()
16207 {
16208 # Extract subdirectory from the argument.
16209 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16210 if test "X$func_dirname_result" = "X${1}"; then
16211 func_dirname_result="${3}"
16212 else
16213 func_dirname_result="$func_dirname_result${2}"
16214 fi
16215 }
16216
16217 # func_basename file
16218 func_basename ()
16219 {
16220 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16221 }
16222
16223
16224 # func_stripname prefix suffix name
16225 # strip PREFIX and SUFFIX off of NAME.
16226 # PREFIX and SUFFIX must not contain globbing or regex special
16227 # characters, hashes, percent signs, but SUFFIX may contain a leading
16228 # dot (in which case that matches only a dot).
16229 # func_strip_suffix prefix name
16230 func_stripname ()
16231 {
16232 case ${2} in
16233 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16234 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16235 esac
16236 }
16237
16238 # sed scripts:
16239 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16240 my_sed_long_arg='1s/^-[^=]*=//'
16241
16242 # func_opt_split
16243 func_opt_split ()
16244 {
16245 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16246 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16247 }
16248
16249 # func_lo2o object
16250 func_lo2o ()
16251 {
16252 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16253 }
16254
16255 # func_xform libobj-or-source
16256 func_xform ()
16257 {
16258 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16259 }
16260
16261 # func_arith arithmetic-term...
16262 func_arith ()
16263 {
16264 func_arith_result=`expr "$@"`
16265 }
16266
16267 # func_len string
16268 # STRING may not start with a hyphen.
16269 func_len ()
16270 {
16271 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16272 }
16273
16274 _LT_EOF
16275 esac
16276
16277 case $lt_shell_append in
16278 yes)
16279 cat << \_LT_EOF >> "$cfgfile"
16280
16281 # func_append var value
16282 # Append VALUE to the end of shell variable VAR.
16283 func_append ()
16284 {
16285 eval "$1+=\$2"
16286 }
16287 _LT_EOF
16288 ;;
16289 *)
16290 cat << \_LT_EOF >> "$cfgfile"
16291
16292 # func_append var value
16293 # Append VALUE to the end of shell variable VAR.
16294 func_append ()
16295 {
16296 eval "$1=\$$1\$2"
16297 }
16298
16299 _LT_EOF
16300 ;;
16301 esac
16302
16303
16304 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16305 || (rm -f "$cfgfile"; exit 1)
16306
16307 mv -f "$cfgfile" "$ofile" ||
16308 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16309 chmod +x "$ofile"
16310
16311 ;;
16312 "default-1":C)
16313 for ac_file in $CONFIG_FILES; do
16314 # Support "outfile[:infile[:infile...]]"
16315 case "$ac_file" in
16316 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16317 esac
16318 # PO directories have a Makefile.in generated from Makefile.in.in.
16319 case "$ac_file" in */Makefile.in)
16320 # Adjust a relative srcdir.
16321 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16322 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16323 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16324 # In autoconf-2.13 it is called $ac_given_srcdir.
16325 # In autoconf-2.50 it is called $srcdir.
16326 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16327 case "$ac_given_srcdir" in
16328 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16329 /*) top_srcdir="$ac_given_srcdir" ;;
16330 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16331 esac
16332 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16333 rm -f "$ac_dir/POTFILES"
16334 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16335 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16336 POMAKEFILEDEPS="POTFILES.in"
16337 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16338 # on $ac_dir but don't depend on user-specified configuration
16339 # parameters.
16340 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16341 # The LINGUAS file contains the set of available languages.
16342 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16343 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16344 fi
16345 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16346 # Hide the ALL_LINGUAS assigment from automake.
16347 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16348 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16349 else
16350 # The set of available languages was given in configure.in.
16351 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16352 fi
16353 case "$ac_given_srcdir" in
16354 .) srcdirpre= ;;
16355 *) srcdirpre='$(srcdir)/' ;;
16356 esac
16357 POFILES=
16358 GMOFILES=
16359 UPDATEPOFILES=
16360 DUMMYPOFILES=
16361 for lang in $ALL_LINGUAS; do
16362 POFILES="$POFILES $srcdirpre$lang.po"
16363 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16364 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16365 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16366 done
16367 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16368 # environment variable.
16369 INST_LINGUAS=
16370 if test -n "$ALL_LINGUAS"; then
16371 for presentlang in $ALL_LINGUAS; do
16372 useit=no
16373 if test "%UNSET%" != "$LINGUAS"; then
16374 desiredlanguages="$LINGUAS"
16375 else
16376 desiredlanguages="$ALL_LINGUAS"
16377 fi
16378 for desiredlang in $desiredlanguages; do
16379 # Use the presentlang catalog if desiredlang is
16380 # a. equal to presentlang, or
16381 # b. a variant of presentlang (because in this case,
16382 # presentlang can be used as a fallback for messages
16383 # which are not translated in the desiredlang catalog).
16384 case "$desiredlang" in
16385 "$presentlang"*) useit=yes;;
16386 esac
16387 done
16388 if test $useit = yes; then
16389 INST_LINGUAS="$INST_LINGUAS $presentlang"
16390 fi
16391 done
16392 fi
16393 CATALOGS=
16394 if test -n "$INST_LINGUAS"; then
16395 for lang in $INST_LINGUAS; do
16396 CATALOGS="$CATALOGS $lang.gmo"
16397 done
16398 fi
16399 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16400 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"
16401 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16402 if test -f "$f"; then
16403 case "$f" in
16404 *.orig | *.bak | *~) ;;
16405 *) cat "$f" >> "$ac_dir/Makefile" ;;
16406 esac
16407 fi
16408 done
16409 fi
16410 ;;
16411 esac
16412 done ;;
16413
16414 esac
16415 done # for ac_tag
16416
16417
16418 as_fn_exit 0
16419 _ACEOF
16420 ac_clean_files=$ac_clean_files_save
16421
16422 test $ac_write_fail = 0 ||
16423 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16424
16425
16426 # configure is writing to config.log, and then calls config.status.
16427 # config.status does its own redirection, appending to config.log.
16428 # Unfortunately, on DOS this fails, as config.log is still kept open
16429 # by configure, so config.status won't be able to write to it; its
16430 # output is simply discarded. So we exec the FD to /dev/null,
16431 # effectively closing config.log, so it can be properly (re)opened and
16432 # appended to by config.status. When coming back to configure, we
16433 # need to make the FD available again.
16434 if test "$no_create" != yes; then
16435 ac_cs_success=:
16436 ac_config_status_args=
16437 test "$silent" = yes &&
16438 ac_config_status_args="$ac_config_status_args --quiet"
16439 exec 5>/dev/null
16440 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16441 exec 5>>config.log
16442 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16443 # would make configure fail if this is the last instruction.
16444 $ac_cs_success || as_fn_exit $?
16445 fi
16446 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16448 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16449 fi
16450
This page took 0.587258 seconds and 5 git commands to generate.