Normalize on PATH_MAX instead of MAXPATHLEN throughout.
[deliverable/binutils-gdb.git] / ld / 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="ldmain.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 TESTBFDLIB
606 EMULATION_LIBPATH
607 LIB_PATH
608 EMUL_EXTRA_OFILES
609 EMULATION_OFILES
610 EMUL
611 STRINGIFY
612 enable_initfini_array
613 ENABLE_PLUGINS_FALSE
614 ENABLE_PLUGINS_TRUE
615 NATIVE_LIB_DIRS
616 HOSTING_LIBS
617 HOSTING_SCRT0
618 HOSTING_CRT0
619 HDEFINES
620 do_compare
621 GENINSRC_NEVER_FALSE
622 GENINSRC_NEVER_TRUE
623 LEXLIB
624 LEX_OUTPUT_ROOT
625 LEX
626 YFLAGS
627 YACC
628 MSGMERGE
629 MSGFMT
630 MKINSTALLDIRS
631 CATOBJEXT
632 GENCAT
633 INSTOBJEXT
634 DATADIRNAME
635 CATALOGS
636 POSUB
637 GMSGFMT
638 XGETTEXT
639 INCINTL
640 LIBINTL_DEP
641 LIBINTL
642 USE_NLS
643 CXXCPP
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
649 RANLIB
650 AR
651 OBJDUMP
652 LN_S
653 NM
654 ac_ct_DUMPBIN
655 DUMPBIN
656 LD
657 FGREP
658 SED
659 LIBTOOL
660 am__fastdepCXX_FALSE
661 am__fastdepCXX_TRUE
662 CXXDEPMODE
663 ac_ct_CXX
664 CXXFLAGS
665 CXX
666 NO_WERROR
667 WARN_CFLAGS
668 EGREP
669 GREP
670 CPP
671 installed_linker
672 install_as_default
673 TARGET_SYSTEM_ROOT_DEFINE
674 TARGET_SYSTEM_ROOT
675 use_sysroot
676 MAINT
677 MAINTAINER_MODE_FALSE
678 MAINTAINER_MODE_TRUE
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 am__untar
689 am__tar
690 AMTAR
691 am__leading_dot
692 SET_MAKE
693 AWK
694 mkdir_p
695 MKDIR_P
696 INSTALL_STRIP_PROGRAM
697 STRIP
698 install_sh
699 MAKEINFO
700 AUTOHEADER
701 AUTOMAKE
702 AUTOCONF
703 ACLOCAL
704 VERSION
705 PACKAGE
706 CYGPATH_W
707 am__isrc
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
717 CC
718 target_os
719 target_vendor
720 target_cpu
721 target
722 host_os
723 host_vendor
724 host_cpu
725 host
726 build_os
727 build_vendor
728 build_cpu
729 build
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files='TDIRS'
769 ac_user_opts='
770 enable_option_checking
771 enable_dependency_tracking
772 enable_maintainer_mode
773 with_lib_path
774 enable_targets
775 enable_64_bit_bfd
776 with_sysroot
777 enable_gold
778 enable_got
779 enable_werror
780 enable_build_warnings
781 enable_plugins
782 enable_largefile
783 enable_shared
784 enable_static
785 with_pic
786 enable_fast_install
787 with_gnu_ld
788 enable_libtool_lock
789 enable_nls
790 enable_initfini_array
791 with_zlib
792 '
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 CPP
802 CXX
803 CXXFLAGS
804 CCC
805 CXXCPP
806 YACC
807 YFLAGS'
808
809
810 # Initialize some variables set by options.
811 ac_init_help=
812 ac_init_version=false
813 ac_unrecognized_opts=
814 ac_unrecognized_sep=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
817 cache_file=/dev/null
818 exec_prefix=NONE
819 no_create=
820 no_recursion=
821 prefix=NONE
822 program_prefix=NONE
823 program_suffix=NONE
824 program_transform_name=s,x,x,
825 silent=
826 site=
827 srcdir=
828 verbose=
829 x_includes=NONE
830 x_libraries=NONE
831
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE}'
849 infodir='${datarootdir}/info'
850 htmldir='${docdir}'
851 dvidir='${docdir}'
852 pdfdir='${docdir}'
853 psdir='${docdir}'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
857
858 ac_prev=
859 ac_dashdash=
860 for ac_option
861 do
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\$ac_option
865 ac_prev=
866 continue
867 fi
868
869 case $ac_option in
870 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 *) ac_optarg=yes ;;
872 esac
873
874 # Accept the important Cygnus configure options, so we can diagnose typos.
875
876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
884
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
899
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
904
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
937
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
953
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
962
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
966
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
973
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
978
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
984
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
991
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
996
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1001
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1008
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1013
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1020
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1025
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1029
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1033
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1037
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1046
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1051
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1058
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1065
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1082
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1087
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1092
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information."
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1212 ;;
1213
1214 esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1235 do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1263 If a cross compiler is detected then cross compile mode will be used." >&2
1264 elif test "x$build_alias" != "x$host_alias"; then
1265 cross_compiling=yes
1266 fi
1267 fi
1268
1269 ac_tool_prefix=
1270 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272 test "$silent" = yes && exec 6>/dev/null
1273
1274
1275 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276 ac_ls_di=`ls -di .` &&
1277 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278 as_fn_error "working directory cannot be determined"
1279 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280 as_fn_error "pwd does not report name of working directory"
1281
1282
1283 # Find the source files, if location was not specified.
1284 if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292 $as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\).*/{
1306 s//\1/
1307 q
1308 }
1309 s/.*/./; q'`
1310 srcdir=$ac_confdir
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 srcdir=..
1313 fi
1314 else
1315 ac_srcdir_defaulted=no
1316 fi
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1320 fi
1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 ac_abs_confdir=`(
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1324 pwd)`
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1328 fi
1329 # Remove unnecessary trailing slashes from srcdir.
1330 # Double slashes in file names in object file debugging info
1331 # mess up M-x gdb in Emacs.
1332 case $srcdir in
1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 esac
1335 for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340 done
1341
1342 #
1343 # Report the --help message.
1344 #
1345 if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349 \`configure' configures this package to adapt to many kinds of systems.
1350
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354 VAR=VALUE. See below for descriptions of some of the useful variables.
1355
1356 Defaults for the options are specified in brackets.
1357
1358 Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
1369 Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 [PREFIX]
1374
1375 By default, \`make install' will install all the files in
1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378 for instance \`--prefix=\$HOME'.
1379
1380 For better control, use the options below.
1381
1382 Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402 _ACEOF
1403
1404 cat <<\_ACEOF
1405
1406 Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410
1411 System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 --target=TARGET configure for building compilers for TARGET [HOST]
1415 _ACEOF
1416 fi
1417
1418 if test -n "$ac_init_help"; then
1419
1420 cat <<\_ACEOF
1421
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --disable-dependency-tracking speeds up one-time build
1427 --enable-dependency-tracking do not reject slow dependency extractors
1428 --enable-maintainer-mode enable make rules and dependencies not useful
1429 (and sometimes confusing) to the casual installer
1430 --enable-targets alternative target configurations
1431 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1432 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1433 --enable-got=<type> GOT handling scheme (target, single, negative,
1434 multigot)
1435 --enable-werror treat compile warnings as errors
1436 --enable-build-warnings enable build-time compiler warnings
1437 --enable-plugins Enable support for plugins (defaults no)
1438 --disable-largefile omit support for large files
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --disable-libtool-lock avoid locking (might break parallel builds)
1444 --disable-nls do not use Native Language Support
1445 --enable-initfini-array use .init_array/.fini_array sections
1446
1447 Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-lib-path=dir1:dir2... set default LIB_PATH
1451 --with-sysroot=DIR Search for usr/lib et al within DIR.
1452 --with-pic try to use only PIC/non-PIC objects [default=use
1453 both]
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1455 --with-zlib include zlib support (auto/yes/no) default=auto
1456
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CPP C preprocessor
1466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
1468 CXXCPP C++ preprocessor
1469 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1470 the first program found out of: `bison -y', `byacc', `yacc'.
1471 YFLAGS The list of arguments that will be passed by default to $YACC.
1472 This script will default YFLAGS to the empty string to avoid a
1473 default value of `-d' given by some make applications.
1474
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1477
1478 Report bugs to the package provider.
1479 _ACEOF
1480 ac_status=$?
1481 fi
1482
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488 continue
1489 ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508 .) # We are building in place.
1509 ac_srcdir=.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1531 else
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1535 done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540 cat <<\_ACEOF
1541 configure
1542 generated by GNU Autoconf 2.64
1543
1544 Copyright (C) 2009 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548 exit
1549 fi
1550
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1554
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1559 {
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=1
1587 fi
1588 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1589 return $ac_retval
1590
1591 } # ac_fn_c_try_compile
1592
1593 # ac_fn_c_try_link LINENO
1594 # -----------------------
1595 # Try to link conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_link ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext conftest$ac_exeext
1600 if { { ac_try="$ac_link"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_link") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest$ac_exeext && {
1619 test "$cross_compiling" = yes ||
1620 $as_test_x conftest$ac_exeext
1621 }; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627 ac_retval=1
1628 fi
1629 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1630 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1631 # interfere with the next link command; also delete a directory that is
1632 # left behind by Apple's compiler. We do this before executing the actions.
1633 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635 return $ac_retval
1636
1637 } # ac_fn_c_try_link
1638
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_cpp ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } >/dev/null && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 }; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670 fi
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 return $ac_retval
1673
1674 } # ac_fn_c_try_cpp
1675
1676 # ac_fn_cxx_try_compile LINENO
1677 # ----------------------------
1678 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_cxx_try_compile ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext
1683 if { { ac_try="$ac_compile"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_compile") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_cxx_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest.$ac_objext; then :
1702 ac_retval=0
1703 else
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1
1708 fi
1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710 return $ac_retval
1711
1712 } # ac_fn_cxx_try_compile
1713
1714 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1715 # -------------------------------------------------------
1716 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1717 # the include files in INCLUDES and setting the cache variable VAR
1718 # accordingly.
1719 ac_fn_c_check_header_mongrel ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1726 $as_echo_n "(cached) " >&6
1727 fi
1728 eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 else
1732 # Is the header compilable?
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1734 $as_echo_n "checking $2 usability... " >&6; }
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 $4
1738 #include <$2>
1739 _ACEOF
1740 if ac_fn_c_try_compile "$LINENO"; then :
1741 ac_header_compiler=yes
1742 else
1743 ac_header_compiler=no
1744 fi
1745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1747 $as_echo "$ac_header_compiler" >&6; }
1748
1749 # Is the header present?
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1751 $as_echo_n "checking $2 presence... " >&6; }
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1754 #include <$2>
1755 _ACEOF
1756 if ac_fn_c_try_cpp "$LINENO"; then :
1757 ac_header_preproc=yes
1758 else
1759 ac_header_preproc=no
1760 fi
1761 rm -f conftest.err conftest.$ac_ext
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1763 $as_echo "$ac_header_preproc" >&6; }
1764
1765 # So? What about this header?
1766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1767 yes:no: )
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1769 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1771 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1772 ;;
1773 no:yes:* )
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1775 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1777 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1779 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1781 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1783 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1784 ;;
1785 esac
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 eval "$3=\$ac_header_compiler"
1792 fi
1793 eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 fi
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798
1799 } # ac_fn_c_check_header_mongrel
1800
1801 # ac_fn_c_try_run LINENO
1802 # ----------------------
1803 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1804 # that executables *can* be run.
1805 ac_fn_c_try_run ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { { ac_try="$ac_link"
1809 case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_link") 2>&5
1816 ac_status=$?
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1819 { { case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_try") 2>&5
1826 ac_status=$?
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; }; }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: program exited with status $ac_status" >&5
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=$ac_status
1836 fi
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839 return $ac_retval
1840
1841 } # ac_fn_c_try_run
1842
1843 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists and can be compiled using the include files in
1846 # INCLUDES, setting the cache variable VAR accordingly.
1847 ac_fn_c_check_header_compile ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1853 $as_echo_n "(cached) " >&6
1854 else
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 $4
1858 #include <$2>
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861 eval "$3=yes"
1862 else
1863 eval "$3=no"
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 fi
1867 eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871
1872 } # ac_fn_c_check_header_compile
1873
1874 # ac_fn_c_check_func LINENO FUNC VAR
1875 # ----------------------------------
1876 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1877 ac_fn_c_check_func ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 $as_echo_n "(cached) " >&6
1884 else
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1889 #define $2 innocuous_$2
1890
1891 /* System header to define __stub macros and hopefully few prototypes,
1892 which can conflict with char $2 (); below.
1893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894 <limits.h> exists even on freestanding compilers. */
1895
1896 #ifdef __STDC__
1897 # include <limits.h>
1898 #else
1899 # include <assert.h>
1900 #endif
1901
1902 #undef $2
1903
1904 /* Override any GCC internal prototype to avoid an error.
1905 Use char because int might match the return type of a GCC
1906 builtin and then its argument prototype would still apply. */
1907 #ifdef __cplusplus
1908 extern "C"
1909 #endif
1910 char $2 ();
1911 /* The GNU C library defines this for functions which it implements
1912 to always fail with ENOSYS. Some functions are actually named
1913 something starting with __ and the normal name is an alias. */
1914 #if defined __stub_$2 || defined __stub___$2
1915 choke me
1916 #endif
1917
1918 int
1919 main ()
1920 {
1921 return $2 ();
1922 ;
1923 return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_link "$LINENO"; then :
1927 eval "$3=yes"
1928 else
1929 eval "$3=no"
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext \
1932 conftest$ac_exeext conftest.$ac_ext
1933 fi
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938
1939 } # ac_fn_c_check_func
1940
1941 # ac_fn_cxx_try_cpp LINENO
1942 # ------------------------
1943 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_cxx_try_cpp ()
1945 {
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 if { { ac_try="$ac_cpp conftest.$ac_ext"
1948 case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1955 ac_status=$?
1956 if test -s conftest.err; then
1957 grep -v '^ *+' conftest.err >conftest.er1
1958 cat conftest.er1 >&5
1959 mv -f conftest.er1 conftest.err
1960 fi
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } >/dev/null && {
1963 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1964 test ! -s conftest.err
1965 }; then :
1966 ac_retval=0
1967 else
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1970
1971 ac_retval=1
1972 fi
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 return $ac_retval
1975
1976 } # ac_fn_cxx_try_cpp
1977
1978 # ac_fn_cxx_try_link LINENO
1979 # -------------------------
1980 # Try to link conftest.$ac_ext, and return whether this succeeded.
1981 ac_fn_cxx_try_link ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 rm -f conftest.$ac_objext conftest$ac_exeext
1985 if { { ac_try="$ac_link"
1986 case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_link") 2>conftest.err
1993 ac_status=$?
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
1998 fi
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && {
2001 test -z "$ac_cxx_werror_flag" ||
2002 test ! -s conftest.err
2003 } && test -s conftest$ac_exeext && {
2004 test "$cross_compiling" = yes ||
2005 $as_test_x conftest$ac_exeext
2006 }; then :
2007 ac_retval=0
2008 else
2009 $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2011
2012 ac_retval=1
2013 fi
2014 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2015 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2016 # interfere with the next link command; also delete a directory that is
2017 # left behind by Apple's compiler. We do this before executing the actions.
2018 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2019 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2020 return $ac_retval
2021
2022 } # ac_fn_cxx_try_link
2023
2024 # ac_fn_c_check_decl LINENO SYMBOL VAR
2025 # ------------------------------------
2026 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2027 ac_fn_c_check_decl ()
2028 {
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 as_decl_name=`echo $2|sed 's/ *(.*//'`
2031 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2033 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2034 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2039 $4
2040 int
2041 main ()
2042 {
2043 #ifndef $as_decl_name
2044 #ifdef __cplusplus
2045 (void) $as_decl_use;
2046 #else
2047 (void) $as_decl_name;
2048 #endif
2049 #endif
2050
2051 ;
2052 return 0;
2053 }
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 eval "$3=yes"
2057 else
2058 eval "$3=no"
2059 fi
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 fi
2062 eval ac_res=\$$3
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066
2067 } # ac_fn_c_check_decl
2068
2069 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2070 # --------------------------------------------
2071 # Tries to find the compile-time value of EXPR in a program that includes
2072 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2073 # computed
2074 ac_fn_c_compute_int ()
2075 {
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 if test "$cross_compiling" = yes; then
2078 # Depending upon the size, compute the lo and hi bounds.
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 $4
2082 int
2083 main ()
2084 {
2085 static int test_array [1 - 2 * !(($2) >= 0)];
2086 test_array [0] = 0
2087
2088 ;
2089 return 0;
2090 }
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093 ac_lo=0 ac_mid=0
2094 while :; do
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2097 $4
2098 int
2099 main ()
2100 {
2101 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2102 test_array [0] = 0
2103
2104 ;
2105 return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109 ac_hi=$ac_mid; break
2110 else
2111 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2112 if test $ac_lo -le $ac_mid; then
2113 ac_lo= ac_hi=
2114 break
2115 fi
2116 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2117 fi
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 done
2120 else
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2123 $4
2124 int
2125 main ()
2126 {
2127 static int test_array [1 - 2 * !(($2) < 0)];
2128 test_array [0] = 0
2129
2130 ;
2131 return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135 ac_hi=-1 ac_mid=-1
2136 while :; do
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2139 $4
2140 int
2141 main ()
2142 {
2143 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2144 test_array [0] = 0
2145
2146 ;
2147 return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151 ac_lo=$ac_mid; break
2152 else
2153 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2154 if test $ac_mid -le $ac_hi; then
2155 ac_lo= ac_hi=
2156 break
2157 fi
2158 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 done
2162 else
2163 ac_lo= ac_hi=
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 fi
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 # Binary search between lo and hi bounds.
2169 while test "x$ac_lo" != "x$ac_hi"; do
2170 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2173 $4
2174 int
2175 main ()
2176 {
2177 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2178 test_array [0] = 0
2179
2180 ;
2181 return 0;
2182 }
2183 _ACEOF
2184 if ac_fn_c_try_compile "$LINENO"; then :
2185 ac_hi=$ac_mid
2186 else
2187 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2188 fi
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 done
2191 case $ac_lo in #((
2192 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2193 '') ac_retval=1 ;;
2194 esac
2195 else
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2198 $4
2199 static long int longval () { return $2; }
2200 static unsigned long int ulongval () { return $2; }
2201 #include <stdio.h>
2202 #include <stdlib.h>
2203 int
2204 main ()
2205 {
2206
2207 FILE *f = fopen ("conftest.val", "w");
2208 if (! f)
2209 return 1;
2210 if (($2) < 0)
2211 {
2212 long int i = longval ();
2213 if (i != ($2))
2214 return 1;
2215 fprintf (f, "%ld", i);
2216 }
2217 else
2218 {
2219 unsigned long int i = ulongval ();
2220 if (i != ($2))
2221 return 1;
2222 fprintf (f, "%lu", i);
2223 }
2224 /* Do not output a trailing newline, as this causes \r\n confusion
2225 on some platforms. */
2226 return ferror (f) || fclose (f) != 0;
2227
2228 ;
2229 return 0;
2230 }
2231 _ACEOF
2232 if ac_fn_c_try_run "$LINENO"; then :
2233 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2234 else
2235 ac_retval=1
2236 fi
2237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2238 conftest.$ac_objext conftest.beam conftest.$ac_ext
2239 rm -f conftest.val
2240
2241 fi
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2243 return $ac_retval
2244
2245 } # ac_fn_c_compute_int
2246 cat >config.log <<_ACEOF
2247 This file contains any messages produced by compilers while
2248 running configure, to aid debugging if configure makes a mistake.
2249
2250 It was created by $as_me, which was
2251 generated by GNU Autoconf 2.64. Invocation command line was
2252
2253 $ $0 $@
2254
2255 _ACEOF
2256 exec 5>>config.log
2257 {
2258 cat <<_ASUNAME
2259 ## --------- ##
2260 ## Platform. ##
2261 ## --------- ##
2262
2263 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2264 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2265 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2266 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2267 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2268
2269 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2270 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2271
2272 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2273 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2274 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2275 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2276 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2277 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2278 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2279
2280 _ASUNAME
2281
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2284 do
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 $as_echo "PATH: $as_dir"
2288 done
2289 IFS=$as_save_IFS
2290
2291 } >&5
2292
2293 cat >&5 <<_ACEOF
2294
2295
2296 ## ----------- ##
2297 ## Core tests. ##
2298 ## ----------- ##
2299
2300 _ACEOF
2301
2302
2303 # Keep a trace of the command line.
2304 # Strip out --no-create and --no-recursion so they do not pile up.
2305 # Strip out --silent because we don't want to record it for future runs.
2306 # Also quote any args containing shell meta-characters.
2307 # Make two passes to allow for proper duplicate-argument suppression.
2308 ac_configure_args=
2309 ac_configure_args0=
2310 ac_configure_args1=
2311 ac_must_keep_next=false
2312 for ac_pass in 1 2
2313 do
2314 for ac_arg
2315 do
2316 case $ac_arg in
2317 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2319 | -silent | --silent | --silen | --sile | --sil)
2320 continue ;;
2321 *\'*)
2322 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2323 esac
2324 case $ac_pass in
2325 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2326 2)
2327 as_fn_append ac_configure_args1 " '$ac_arg'"
2328 if test $ac_must_keep_next = true; then
2329 ac_must_keep_next=false # Got value, back to normal.
2330 else
2331 case $ac_arg in
2332 *=* | --config-cache | -C | -disable-* | --disable-* \
2333 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2334 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2335 | -with-* | --with-* | -without-* | --without-* | --x)
2336 case "$ac_configure_args0 " in
2337 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2338 esac
2339 ;;
2340 -* ) ac_must_keep_next=true ;;
2341 esac
2342 fi
2343 as_fn_append ac_configure_args " '$ac_arg'"
2344 ;;
2345 esac
2346 done
2347 done
2348 { ac_configure_args0=; unset ac_configure_args0;}
2349 { ac_configure_args1=; unset ac_configure_args1;}
2350
2351 # When interrupted or exit'd, cleanup temporary files, and complete
2352 # config.log. We remove comments because anyway the quotes in there
2353 # would cause problems or look ugly.
2354 # WARNING: Use '\'' to represent an apostrophe within the trap.
2355 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2356 trap 'exit_status=$?
2357 # Save into config.log some information that might help in debugging.
2358 {
2359 echo
2360
2361 cat <<\_ASBOX
2362 ## ---------------- ##
2363 ## Cache variables. ##
2364 ## ---------------- ##
2365 _ASBOX
2366 echo
2367 # The following way of writing the cache mishandles newlines in values,
2368 (
2369 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2370 eval ac_val=\$$ac_var
2371 case $ac_val in #(
2372 *${as_nl}*)
2373 case $ac_var in #(
2374 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2375 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2376 esac
2377 case $ac_var in #(
2378 _ | IFS | as_nl) ;; #(
2379 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2380 *) { eval $ac_var=; unset $ac_var;} ;;
2381 esac ;;
2382 esac
2383 done
2384 (set) 2>&1 |
2385 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2386 *${as_nl}ac_space=\ *)
2387 sed -n \
2388 "s/'\''/'\''\\\\'\'''\''/g;
2389 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2390 ;; #(
2391 *)
2392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2393 ;;
2394 esac |
2395 sort
2396 )
2397 echo
2398
2399 cat <<\_ASBOX
2400 ## ----------------- ##
2401 ## Output variables. ##
2402 ## ----------------- ##
2403 _ASBOX
2404 echo
2405 for ac_var in $ac_subst_vars
2406 do
2407 eval ac_val=\$$ac_var
2408 case $ac_val in
2409 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 esac
2411 $as_echo "$ac_var='\''$ac_val'\''"
2412 done | sort
2413 echo
2414
2415 if test -n "$ac_subst_files"; then
2416 cat <<\_ASBOX
2417 ## ------------------- ##
2418 ## File substitutions. ##
2419 ## ------------------- ##
2420 _ASBOX
2421 echo
2422 for ac_var in $ac_subst_files
2423 do
2424 eval ac_val=\$$ac_var
2425 case $ac_val in
2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 esac
2428 $as_echo "$ac_var='\''$ac_val'\''"
2429 done | sort
2430 echo
2431 fi
2432
2433 if test -s confdefs.h; then
2434 cat <<\_ASBOX
2435 ## ----------- ##
2436 ## confdefs.h. ##
2437 ## ----------- ##
2438 _ASBOX
2439 echo
2440 cat confdefs.h
2441 echo
2442 fi
2443 test "$ac_signal" != 0 &&
2444 $as_echo "$as_me: caught signal $ac_signal"
2445 $as_echo "$as_me: exit $exit_status"
2446 } >&5
2447 rm -f core *.core core.conftest.* &&
2448 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2449 exit $exit_status
2450 ' 0
2451 for ac_signal in 1 2 13 15; do
2452 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2453 done
2454 ac_signal=0
2455
2456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2457 rm -f -r conftest* confdefs.h
2458
2459 $as_echo "/* confdefs.h */" > confdefs.h
2460
2461 # Predefined preprocessor variables.
2462
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_NAME "$PACKAGE_NAME"
2465 _ACEOF
2466
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2469 _ACEOF
2470
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2473 _ACEOF
2474
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_STRING "$PACKAGE_STRING"
2477 _ACEOF
2478
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2481 _ACEOF
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_URL "$PACKAGE_URL"
2485 _ACEOF
2486
2487
2488 # Let the site file select an alternate cache file if it wants to.
2489 # Prefer an explicitly selected file to automatically selected ones.
2490 ac_site_file1=NONE
2491 ac_site_file2=NONE
2492 if test -n "$CONFIG_SITE"; then
2493 ac_site_file1=$CONFIG_SITE
2494 elif test "x$prefix" != xNONE; then
2495 ac_site_file1=$prefix/share/config.site
2496 ac_site_file2=$prefix/etc/config.site
2497 else
2498 ac_site_file1=$ac_default_prefix/share/config.site
2499 ac_site_file2=$ac_default_prefix/etc/config.site
2500 fi
2501 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2502 do
2503 test "x$ac_site_file" = xNONE && continue
2504 if test -r "$ac_site_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2506 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2507 sed 's/^/| /' "$ac_site_file" >&5
2508 . "$ac_site_file"
2509 fi
2510 done
2511
2512 if test -r "$cache_file"; then
2513 # Some versions of bash will fail to source /dev/null (special
2514 # files actually), so we avoid doing that.
2515 if test -f "$cache_file"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2517 $as_echo "$as_me: loading cache $cache_file" >&6;}
2518 case $cache_file in
2519 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2520 *) . "./$cache_file";;
2521 esac
2522 fi
2523 else
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2525 $as_echo "$as_me: creating cache $cache_file" >&6;}
2526 >$cache_file
2527 fi
2528
2529 # Check that the precious variables saved in the cache have kept the same
2530 # value.
2531 ac_cache_corrupted=false
2532 for ac_var in $ac_precious_vars; do
2533 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2534 eval ac_new_set=\$ac_env_${ac_var}_set
2535 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2536 eval ac_new_val=\$ac_env_${ac_var}_value
2537 case $ac_old_set,$ac_new_set in
2538 set,)
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2540 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2541 ac_cache_corrupted=: ;;
2542 ,set)
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2544 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2546 ,);;
2547 *)
2548 if test "x$ac_old_val" != "x$ac_new_val"; then
2549 # differences in whitespace do not lead to failure.
2550 ac_old_val_w=`echo x $ac_old_val`
2551 ac_new_val_w=`echo x $ac_new_val`
2552 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2554 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2555 ac_cache_corrupted=:
2556 else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2558 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2559 eval $ac_var=\$ac_old_val
2560 fi
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2562 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2564 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2565 fi;;
2566 esac
2567 # Pass precious variables to config.status.
2568 if test "$ac_new_set" = set; then
2569 case $ac_new_val in
2570 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2571 *) ac_arg=$ac_var=$ac_new_val ;;
2572 esac
2573 case " $ac_configure_args " in
2574 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2575 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2576 esac
2577 fi
2578 done
2579 if $ac_cache_corrupted; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2583 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2584 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2585 fi
2586 ## -------------------- ##
2587 ## Main body of script. ##
2588 ## -------------------- ##
2589
2590 ac_ext=c
2591 ac_cpp='$CPP $CPPFLAGS'
2592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595
2596
2597
2598
2599
2600
2601
2602 ac_aux_dir=
2603 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2604 for ac_t in install-sh install.sh shtool; do
2605 if test -f "$ac_dir/$ac_t"; then
2606 ac_aux_dir=$ac_dir
2607 ac_install_sh="$ac_aux_dir/$ac_t -c"
2608 break 2
2609 fi
2610 done
2611 done
2612 if test -z "$ac_aux_dir"; then
2613 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2614 fi
2615
2616 # These three variables are undocumented and unsupported,
2617 # and are intended to be withdrawn in a future Autoconf release.
2618 # They can cause serious problems if a builder's source tree is in a directory
2619 # whose full name contains unusual characters.
2620 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2621 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2622 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2623
2624
2625 # Make sure we can run config.sub.
2626 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2627 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2628
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2630 $as_echo_n "checking build system type... " >&6; }
2631 if test "${ac_cv_build+set}" = set; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 ac_build_alias=$build_alias
2635 test "x$ac_build_alias" = x &&
2636 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2637 test "x$ac_build_alias" = x &&
2638 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2639 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2640 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2641
2642 fi
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2644 $as_echo "$ac_cv_build" >&6; }
2645 case $ac_cv_build in
2646 *-*-*) ;;
2647 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2648 esac
2649 build=$ac_cv_build
2650 ac_save_IFS=$IFS; IFS='-'
2651 set x $ac_cv_build
2652 shift
2653 build_cpu=$1
2654 build_vendor=$2
2655 shift; shift
2656 # Remember, the first character of IFS is used to create $*,
2657 # except with old shells:
2658 build_os=$*
2659 IFS=$ac_save_IFS
2660 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2661
2662
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2664 $as_echo_n "checking host system type... " >&6; }
2665 if test "${ac_cv_host+set}" = set; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test "x$host_alias" = x; then
2669 ac_cv_host=$ac_cv_build
2670 else
2671 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2672 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2673 fi
2674
2675 fi
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2677 $as_echo "$ac_cv_host" >&6; }
2678 case $ac_cv_host in
2679 *-*-*) ;;
2680 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2681 esac
2682 host=$ac_cv_host
2683 ac_save_IFS=$IFS; IFS='-'
2684 set x $ac_cv_host
2685 shift
2686 host_cpu=$1
2687 host_vendor=$2
2688 shift; shift
2689 # Remember, the first character of IFS is used to create $*,
2690 # except with old shells:
2691 host_os=$*
2692 IFS=$ac_save_IFS
2693 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2694
2695
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2697 $as_echo_n "checking target system type... " >&6; }
2698 if test "${ac_cv_target+set}" = set; then :
2699 $as_echo_n "(cached) " >&6
2700 else
2701 if test "x$target_alias" = x; then
2702 ac_cv_target=$ac_cv_host
2703 else
2704 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2705 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2706 fi
2707
2708 fi
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2710 $as_echo "$ac_cv_target" >&6; }
2711 case $ac_cv_target in
2712 *-*-*) ;;
2713 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2714 esac
2715 target=$ac_cv_target
2716 ac_save_IFS=$IFS; IFS='-'
2717 set x $ac_cv_target
2718 shift
2719 target_cpu=$1
2720 target_vendor=$2
2721 shift; shift
2722 # Remember, the first character of IFS is used to create $*,
2723 # except with old shells:
2724 target_os=$*
2725 IFS=$ac_save_IFS
2726 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2727
2728
2729 # The aliases save the names the user supplied, while $host etc.
2730 # will get canonicalized.
2731 test -n "$target_alias" &&
2732 test "$program_prefix$program_suffix$program_transform_name" = \
2733 NONENONEs,x,x, &&
2734 program_prefix=${target_alias}-
2735
2736 ac_ext=c
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 if test -n "$ac_tool_prefix"; then
2742 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if test "${ac_cv_prog_CC+set}" = set; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC="$CC" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2762 fi
2763 done
2764 done
2765 IFS=$as_save_IFS
2766
2767 fi
2768 fi
2769 CC=$ac_cv_prog_CC
2770 if test -n "$CC"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772 $as_echo "$CC" >&6; }
2773 else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2776 fi
2777
2778
2779 fi
2780 if test -z "$ac_cv_prog_CC"; then
2781 ac_ct_CC=$CC
2782 # Extract the first word of "gcc", so it can be a program name with args.
2783 set dummy gcc; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_ac_ct_CC="gcc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2812 $as_echo "$ac_ct_CC" >&6; }
2813 else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818 if test "x$ac_ct_CC" = x; then
2819 CC=""
2820 else
2821 case $cross_compiling:$ac_tool_warned in
2822 yes:)
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825 ac_tool_warned=yes ;;
2826 esac
2827 CC=$ac_ct_CC
2828 fi
2829 else
2830 CC="$ac_cv_prog_CC"
2831 fi
2832
2833 if test -z "$CC"; then
2834 if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2836 set dummy ${ac_tool_prefix}cc; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if test "${ac_cv_prog_CC+set}" = set; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_CC="${ac_tool_prefix}cc"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871
2872 fi
2873 fi
2874 if test -z "$CC"; then
2875 # Extract the first word of "cc", so it can be a program name with args.
2876 set dummy cc; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_CC+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 ac_prog_rejected=no
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2894 ac_prog_rejected=yes
2895 continue
2896 fi
2897 ac_cv_prog_CC="cc"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 if test $ac_prog_rejected = yes; then
2906 # We found a bogon in the path, so make sure we never use it.
2907 set dummy $ac_cv_prog_CC
2908 shift
2909 if test $# != 0; then
2910 # We chose a different compiler from the bogus one.
2911 # However, it has the same basename, so the bogon will be chosen
2912 # first if we set CC to just the basename; use the full file name.
2913 shift
2914 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2915 fi
2916 fi
2917 fi
2918 fi
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922 $as_echo "$CC" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2926 fi
2927
2928
2929 fi
2930 if test -z "$CC"; then
2931 if test -n "$ac_tool_prefix"; then
2932 for ac_prog in cl.exe
2933 do
2934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2954 fi
2955 done
2956 done
2957 IFS=$as_save_IFS
2958
2959 fi
2960 fi
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971 test -n "$CC" && break
2972 done
2973 fi
2974 if test -z "$CC"; then
2975 ac_ct_CC=$CC
2976 for ac_prog in cl.exe
2977 do
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995 ac_cv_prog_ac_ct_CC="$ac_prog"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999 done
3000 done
3001 IFS=$as_save_IFS
3002
3003 fi
3004 fi
3005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3008 $as_echo "$ac_ct_CC" >&6; }
3009 else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3012 fi
3013
3014
3015 test -n "$ac_ct_CC" && break
3016 done
3017
3018 if test "x$ac_ct_CC" = x; then
3019 CC=""
3020 else
3021 case $cross_compiling:$ac_tool_warned in
3022 yes:)
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025 ac_tool_warned=yes ;;
3026 esac
3027 CC=$ac_ct_CC
3028 fi
3029 fi
3030
3031 fi
3032
3033
3034 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036 as_fn_error "no acceptable C compiler found in \$PATH
3037 See \`config.log' for more details." "$LINENO" 5; }
3038
3039 # Provide some information about the compiler.
3040 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3041 set X $ac_compile
3042 ac_compiler=$2
3043 for ac_option in --version -v -V -qversion; do
3044 { { ac_try="$ac_compiler $ac_option >&5"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3052 ac_status=$?
3053 if test -s conftest.err; then
3054 sed '10a\
3055 ... rest of stderr output deleted ...
3056 10q' conftest.err >conftest.er1
3057 cat conftest.er1 >&5
3058 rm -f conftest.er1 conftest.err
3059 fi
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }
3062 done
3063
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3066
3067 int
3068 main ()
3069 {
3070
3071 ;
3072 return 0;
3073 }
3074 _ACEOF
3075 ac_clean_files_save=$ac_clean_files
3076 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3077 # Try to create an executable without -o first, disregard a.out.
3078 # It will help us diagnose broken compilers, and finding out an intuition
3079 # of exeext.
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3081 $as_echo_n "checking for C compiler default output file name... " >&6; }
3082 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3083
3084 # The possible output files:
3085 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3086
3087 ac_rmfiles=
3088 for ac_file in $ac_files
3089 do
3090 case $ac_file in
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3092 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3093 esac
3094 done
3095 rm -f $ac_rmfiles
3096
3097 if { { ac_try="$ac_link_default"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link_default") 2>&5
3105 ac_status=$?
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; then :
3108 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3109 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3110 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3111 # so that the user can short-circuit this test for compilers unknown to
3112 # Autoconf.
3113 for ac_file in $ac_files ''
3114 do
3115 test -f "$ac_file" || continue
3116 case $ac_file in
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3118 ;;
3119 [ab].out )
3120 # We found the default executable, but exeext='' is most
3121 # certainly right.
3122 break;;
3123 *.* )
3124 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3125 then :; else
3126 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 fi
3128 # We set ac_cv_exeext here because the later test for it is not
3129 # safe: cross compilers may not add the suffix if given an `-o'
3130 # argument, so we may need to know it at that point already.
3131 # Even if this section looks crufty: it has the advantage of
3132 # actually working.
3133 break;;
3134 * )
3135 break;;
3136 esac
3137 done
3138 test "$ac_cv_exeext" = no && ac_cv_exeext=
3139
3140 else
3141 ac_file=''
3142 fi
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3144 $as_echo "$ac_file" >&6; }
3145 if test -z "$ac_file"; then :
3146 $as_echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151 { as_fn_set_status 77
3152 as_fn_error "C compiler cannot create executables
3153 See \`config.log' for more details." "$LINENO" 5; }; }
3154 fi
3155 ac_exeext=$ac_cv_exeext
3156
3157 # Check that the compiler produces executables we can run. If not, either
3158 # the compiler is broken, or we cross compile.
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3160 $as_echo_n "checking whether the C compiler works... " >&6; }
3161 # If not cross compiling, check that we can run a simple program.
3162 if test "$cross_compiling" != yes; then
3163 if { ac_try='./$ac_file'
3164 { { case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_try") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; }; then
3174 cross_compiling=no
3175 else
3176 if test "$cross_compiling" = maybe; then
3177 cross_compiling=yes
3178 else
3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error "cannot run C compiled programs.
3182 If you meant to cross compile, use \`--host'.
3183 See \`config.log' for more details." "$LINENO" 5; }
3184 fi
3185 fi
3186 fi
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3188 $as_echo "yes" >&6; }
3189
3190 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3191 ac_clean_files=$ac_clean_files_save
3192 # Check that the compiler produces executables we can run. If not, either
3193 # the compiler is broken, or we cross compile.
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3195 $as_echo_n "checking whether we are cross compiling... " >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3197 $as_echo "$cross_compiling" >&6; }
3198
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3200 $as_echo_n "checking for suffix of executables... " >&6; }
3201 if { { ac_try="$ac_link"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_link") 2>&5
3209 ac_status=$?
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }; then :
3212 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3213 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3214 # work properly (i.e., refer to `conftest.exe'), while it won't with
3215 # `rm'.
3216 for ac_file in conftest.exe conftest conftest.*; do
3217 test -f "$ac_file" || continue
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3220 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3221 break;;
3222 * ) break;;
3223 esac
3224 done
3225 else
3226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228 as_fn_error "cannot compute suffix of executables: cannot compile and link
3229 See \`config.log' for more details." "$LINENO" 5; }
3230 fi
3231 rm -f conftest$ac_cv_exeext
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3233 $as_echo "$ac_cv_exeext" >&6; }
3234
3235 rm -f conftest.$ac_ext
3236 EXEEXT=$ac_cv_exeext
3237 ac_exeext=$EXEEXT
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3239 $as_echo_n "checking for suffix of object files... " >&6; }
3240 if test "${ac_cv_objext+set}" = set; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h. */
3245
3246 int
3247 main ()
3248 {
3249
3250 ;
3251 return 0;
3252 }
3253 _ACEOF
3254 rm -f conftest.o conftest.obj
3255 if { { ac_try="$ac_compile"
3256 case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259 esac
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262 (eval "$ac_compile") 2>&5
3263 ac_status=$?
3264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265 test $ac_status = 0; }; then :
3266 for ac_file in conftest.o conftest.obj conftest.*; do
3267 test -f "$ac_file" || continue;
3268 case $ac_file in
3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3270 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3271 break;;
3272 esac
3273 done
3274 else
3275 $as_echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280 as_fn_error "cannot compute suffix of object files: cannot compile
3281 See \`config.log' for more details." "$LINENO" 5; }
3282 fi
3283 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3286 $as_echo "$ac_cv_objext" >&6; }
3287 OBJEXT=$ac_cv_objext
3288 ac_objext=$OBJEXT
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3290 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3291 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3292 $as_echo_n "(cached) " >&6
3293 else
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3296
3297 int
3298 main ()
3299 {
3300 #ifndef __GNUC__
3301 choke me
3302 #endif
3303
3304 ;
3305 return 0;
3306 }
3307 _ACEOF
3308 if ac_fn_c_try_compile "$LINENO"; then :
3309 ac_compiler_gnu=yes
3310 else
3311 ac_compiler_gnu=no
3312 fi
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3315
3316 fi
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3318 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3319 if test $ac_compiler_gnu = yes; then
3320 GCC=yes
3321 else
3322 GCC=
3323 fi
3324 ac_test_CFLAGS=${CFLAGS+set}
3325 ac_save_CFLAGS=$CFLAGS
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3327 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3328 if test "${ac_cv_prog_cc_g+set}" = set; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 ac_save_c_werror_flag=$ac_c_werror_flag
3332 ac_c_werror_flag=yes
3333 ac_cv_prog_cc_g=no
3334 CFLAGS="-g"
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3337
3338 int
3339 main ()
3340 {
3341
3342 ;
3343 return 0;
3344 }
3345 _ACEOF
3346 if ac_fn_c_try_compile "$LINENO"; then :
3347 ac_cv_prog_cc_g=yes
3348 else
3349 CFLAGS=""
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3352
3353 int
3354 main ()
3355 {
3356
3357 ;
3358 return 0;
3359 }
3360 _ACEOF
3361 if ac_fn_c_try_compile "$LINENO"; then :
3362
3363 else
3364 ac_c_werror_flag=$ac_save_c_werror_flag
3365 CFLAGS="-g"
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3368
3369 int
3370 main ()
3371 {
3372
3373 ;
3374 return 0;
3375 }
3376 _ACEOF
3377 if ac_fn_c_try_compile "$LINENO"; then :
3378 ac_cv_prog_cc_g=yes
3379 fi
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 fi
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 fi
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 ac_c_werror_flag=$ac_save_c_werror_flag
3386 fi
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3388 $as_echo "$ac_cv_prog_cc_g" >&6; }
3389 if test "$ac_test_CFLAGS" = set; then
3390 CFLAGS=$ac_save_CFLAGS
3391 elif test $ac_cv_prog_cc_g = yes; then
3392 if test "$GCC" = yes; then
3393 CFLAGS="-g -O2"
3394 else
3395 CFLAGS="-g"
3396 fi
3397 else
3398 if test "$GCC" = yes; then
3399 CFLAGS="-O2"
3400 else
3401 CFLAGS=
3402 fi
3403 fi
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3405 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3406 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 ac_cv_prog_cc_c89=no
3410 ac_save_CC=$CC
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413 #include <stdarg.h>
3414 #include <stdio.h>
3415 #include <sys/types.h>
3416 #include <sys/stat.h>
3417 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3418 struct buf { int x; };
3419 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3420 static char *e (p, i)
3421 char **p;
3422 int i;
3423 {
3424 return p[i];
3425 }
3426 static char *f (char * (*g) (char **, int), char **p, ...)
3427 {
3428 char *s;
3429 va_list v;
3430 va_start (v,p);
3431 s = g (p, va_arg (v,int));
3432 va_end (v);
3433 return s;
3434 }
3435
3436 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3437 function prototypes and stuff, but not '\xHH' hex character constants.
3438 These don't provoke an error unfortunately, instead are silently treated
3439 as 'x'. The following induces an error, until -std is added to get
3440 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3441 array size at least. It's necessary to write '\x00'==0 to get something
3442 that's true only with -std. */
3443 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3444
3445 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3446 inside strings and character constants. */
3447 #define FOO(x) 'x'
3448 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3449
3450 int test (int i, double x);
3451 struct s1 {int (*f) (int a);};
3452 struct s2 {int (*f) (double a);};
3453 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3454 int argc;
3455 char **argv;
3456 int
3457 main ()
3458 {
3459 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3460 ;
3461 return 0;
3462 }
3463 _ACEOF
3464 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3465 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3466 do
3467 CC="$ac_save_CC $ac_arg"
3468 if ac_fn_c_try_compile "$LINENO"; then :
3469 ac_cv_prog_cc_c89=$ac_arg
3470 fi
3471 rm -f core conftest.err conftest.$ac_objext
3472 test "x$ac_cv_prog_cc_c89" != "xno" && break
3473 done
3474 rm -f conftest.$ac_ext
3475 CC=$ac_save_CC
3476
3477 fi
3478 # AC_CACHE_VAL
3479 case "x$ac_cv_prog_cc_c89" in
3480 x)
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3482 $as_echo "none needed" >&6; } ;;
3483 xno)
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3485 $as_echo "unsupported" >&6; } ;;
3486 *)
3487 CC="$CC $ac_cv_prog_cc_c89"
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3489 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3490 esac
3491 if test "x$ac_cv_prog_cc_c89" != xno; then :
3492
3493 fi
3494
3495 ac_ext=c
3496 ac_cpp='$CPP $CPPFLAGS'
3497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500
3501
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3503 $as_echo_n "checking for library containing strerror... " >&6; }
3504 if test "${ac_cv_search_strerror+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 ac_func_search_save_LIBS=$LIBS
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510
3511 /* Override any GCC internal prototype to avoid an error.
3512 Use char because int might match the return type of a GCC
3513 builtin and then its argument prototype would still apply. */
3514 #ifdef __cplusplus
3515 extern "C"
3516 #endif
3517 char strerror ();
3518 int
3519 main ()
3520 {
3521 return strerror ();
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 for ac_lib in '' cposix; do
3527 if test -z "$ac_lib"; then
3528 ac_res="none required"
3529 else
3530 ac_res=-l$ac_lib
3531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3532 fi
3533 if ac_fn_c_try_link "$LINENO"; then :
3534 ac_cv_search_strerror=$ac_res
3535 fi
3536 rm -f core conftest.err conftest.$ac_objext \
3537 conftest$ac_exeext
3538 if test "${ac_cv_search_strerror+set}" = set; then :
3539 break
3540 fi
3541 done
3542 if test "${ac_cv_search_strerror+set}" = set; then :
3543
3544 else
3545 ac_cv_search_strerror=no
3546 fi
3547 rm conftest.$ac_ext
3548 LIBS=$ac_func_search_save_LIBS
3549 fi
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3551 $as_echo "$ac_cv_search_strerror" >&6; }
3552 ac_res=$ac_cv_search_strerror
3553 if test "$ac_res" != no; then :
3554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3555
3556 fi
3557
3558
3559 BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
3560 am__api_version='1.11'
3561
3562 # Find a good install program. We prefer a C program (faster),
3563 # so one script is as good as another. But avoid the broken or
3564 # incompatible versions:
3565 # SysV /etc/install, /usr/sbin/install
3566 # SunOS /usr/etc/install
3567 # IRIX /sbin/install
3568 # AIX /bin/install
3569 # AmigaOS /C/install, which installs bootblocks on floppy discs
3570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3573 # OS/2's system install, which has a completely different semantic
3574 # ./install, which can be erroneously created by make from ./install.sh.
3575 # Reject install programs that cannot install multiple files.
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3577 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3578 if test -z "$INSTALL"; then
3579 if test "${ac_cv_path_install+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 # Account for people who put trailing slashes in PATH elements.
3588 case $as_dir/ in #((
3589 ./ | .// | /[cC]/* | \
3590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3591 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3592 /usr/ucb/* ) ;;
3593 *)
3594 # OSF1 and SCO ODT 3.0 have their own names for install.
3595 # Don't use installbsd from OSF since it installs stuff as root
3596 # by default.
3597 for ac_prog in ginstall scoinst install; do
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3600 if test $ac_prog = install &&
3601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3602 # AIX install. It has an incompatible calling convention.
3603 :
3604 elif test $ac_prog = install &&
3605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3606 # program-specific install script used by HP pwplus--don't use.
3607 :
3608 else
3609 rm -rf conftest.one conftest.two conftest.dir
3610 echo one > conftest.one
3611 echo two > conftest.two
3612 mkdir conftest.dir
3613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3614 test -s conftest.one && test -s conftest.two &&
3615 test -s conftest.dir/conftest.one &&
3616 test -s conftest.dir/conftest.two
3617 then
3618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3619 break 3
3620 fi
3621 fi
3622 fi
3623 done
3624 done
3625 ;;
3626 esac
3627
3628 done
3629 IFS=$as_save_IFS
3630
3631 rm -rf conftest.one conftest.two conftest.dir
3632
3633 fi
3634 if test "${ac_cv_path_install+set}" = set; then
3635 INSTALL=$ac_cv_path_install
3636 else
3637 # As a last resort, use the slow shell script. Don't cache a
3638 # value for INSTALL within a source directory, because that will
3639 # break other packages using the cache if that directory is
3640 # removed, or if the value is a relative name.
3641 INSTALL=$ac_install_sh
3642 fi
3643 fi
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3645 $as_echo "$INSTALL" >&6; }
3646
3647 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3648 # It thinks the first close brace ends the variable substitution.
3649 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3650
3651 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3652
3653 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3654
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3656 $as_echo_n "checking whether build environment is sane... " >&6; }
3657 # Just in case
3658 sleep 1
3659 echo timestamp > conftest.file
3660 # Reject unsafe characters in $srcdir or the absolute working directory
3661 # name. Accept space and tab only in the latter.
3662 am_lf='
3663 '
3664 case `pwd` in
3665 *[\\\"\#\$\&\'\`$am_lf]*)
3666 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3667 esac
3668 case $srcdir in
3669 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3670 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3671 esac
3672
3673 # Do `set' in a subshell so we don't clobber the current shell's
3674 # arguments. Must try -L first in case configure is actually a
3675 # symlink; some systems play weird games with the mod time of symlinks
3676 # (eg FreeBSD returns the mod time of the symlink's containing
3677 # directory).
3678 if (
3679 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3680 if test "$*" = "X"; then
3681 # -L didn't work.
3682 set X `ls -t "$srcdir/configure" conftest.file`
3683 fi
3684 rm -f conftest.file
3685 if test "$*" != "X $srcdir/configure conftest.file" \
3686 && test "$*" != "X conftest.file $srcdir/configure"; then
3687
3688 # If neither matched, then we have a broken ls. This can happen
3689 # if, for instance, CONFIG_SHELL is bash and it inherits a
3690 # broken ls alias from the environment. This has actually
3691 # happened. Such a system could not be considered "sane".
3692 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3693 alias in your environment" "$LINENO" 5
3694 fi
3695
3696 test "$2" = conftest.file
3697 )
3698 then
3699 # Ok.
3700 :
3701 else
3702 as_fn_error "newly created file is older than distributed files!
3703 Check your system clock" "$LINENO" 5
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3706 $as_echo "yes" >&6; }
3707 test "$program_prefix" != NONE &&
3708 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3709 # Use a double $ so make ignores it.
3710 test "$program_suffix" != NONE &&
3711 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3712 # Double any \ or $.
3713 # By default was `s,x,x', remove it if useless.
3714 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3715 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3716
3717 # expand $ac_aux_dir to an absolute path
3718 am_aux_dir=`cd $ac_aux_dir && pwd`
3719
3720 if test x"${MISSING+set}" != xset; then
3721 case $am_aux_dir in
3722 *\ * | *\ *)
3723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3724 *)
3725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3726 esac
3727 fi
3728 # Use eval to expand $SHELL
3729 if eval "$MISSING --run true"; then
3730 am_missing_run="$MISSING --run "
3731 else
3732 am_missing_run=
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3734 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3735 fi
3736
3737 if test x"${install_sh}" != xset; then
3738 case $am_aux_dir in
3739 *\ * | *\ *)
3740 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3741 *)
3742 install_sh="\${SHELL} $am_aux_dir/install-sh"
3743 esac
3744 fi
3745
3746 # Installed binaries are usually stripped using `strip' when the user
3747 # run `make install-strip'. However `strip' might not be the right
3748 # tool to use in cross-compilation environments, therefore Automake
3749 # will honor the `STRIP' environment variable to overrule this program.
3750 if test "$cross_compiling" != no; then
3751 if test -n "$ac_tool_prefix"; then
3752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3753 set dummy ${ac_tool_prefix}strip; ac_word=$2
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 $as_echo_n "checking for $ac_word... " >&6; }
3756 if test "${ac_cv_prog_STRIP+set}" = set; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 if test -n "$STRIP"; then
3760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773 done
3774 done
3775 IFS=$as_save_IFS
3776
3777 fi
3778 fi
3779 STRIP=$ac_cv_prog_STRIP
3780 if test -n "$STRIP"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3782 $as_echo "$STRIP" >&6; }
3783 else
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3786 fi
3787
3788
3789 fi
3790 if test -z "$ac_cv_prog_STRIP"; then
3791 ac_ct_STRIP=$STRIP
3792 # Extract the first word of "strip", so it can be a program name with args.
3793 set dummy strip; ac_word=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 if test -n "$ac_ct_STRIP"; then
3800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3801 else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3804 do
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809 ac_cv_prog_ac_ct_STRIP="strip"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 break 2
3812 fi
3813 done
3814 done
3815 IFS=$as_save_IFS
3816
3817 fi
3818 fi
3819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3820 if test -n "$ac_ct_STRIP"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3822 $as_echo "$ac_ct_STRIP" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3826 fi
3827
3828 if test "x$ac_ct_STRIP" = x; then
3829 STRIP=":"
3830 else
3831 case $cross_compiling:$ac_tool_warned in
3832 yes:)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835 ac_tool_warned=yes ;;
3836 esac
3837 STRIP=$ac_ct_STRIP
3838 fi
3839 else
3840 STRIP="$ac_cv_prog_STRIP"
3841 fi
3842
3843 fi
3844 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3845
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3847 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3848 if test -z "$MKDIR_P"; then
3849 if test "${ac_cv_path_mkdir+set}" = set; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3854 do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_prog in mkdir gmkdir; do
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3860 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3861 'mkdir (GNU coreutils) '* | \
3862 'mkdir (coreutils) '* | \
3863 'mkdir (fileutils) '4.1*)
3864 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3865 break 3;;
3866 esac
3867 done
3868 done
3869 done
3870 IFS=$as_save_IFS
3871
3872 fi
3873
3874 if test "${ac_cv_path_mkdir+set}" = set; then
3875 MKDIR_P="$ac_cv_path_mkdir -p"
3876 else
3877 # As a last resort, use the slow shell script. Don't cache a
3878 # value for MKDIR_P within a source directory, because that will
3879 # break other packages using the cache if that directory is
3880 # removed, or if the value is a relative name.
3881 test -d ./--version && rmdir ./--version
3882 MKDIR_P="$ac_install_sh -d"
3883 fi
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3886 $as_echo "$MKDIR_P" >&6; }
3887
3888 mkdir_p="$MKDIR_P"
3889 case $mkdir_p in
3890 [\\/$]* | ?:[\\/]*) ;;
3891 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3892 esac
3893
3894 for ac_prog in gawk mawk nawk awk
3895 do
3896 # Extract the first word of "$ac_prog", so it can be a program name with args.
3897 set dummy $ac_prog; ac_word=$2
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899 $as_echo_n "checking for $ac_word... " >&6; }
3900 if test "${ac_cv_prog_AWK+set}" = set; then :
3901 $as_echo_n "(cached) " >&6
3902 else
3903 if test -n "$AWK"; then
3904 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913 ac_cv_prog_AWK="$ac_prog"
3914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 break 2
3916 fi
3917 done
3918 done
3919 IFS=$as_save_IFS
3920
3921 fi
3922 fi
3923 AWK=$ac_cv_prog_AWK
3924 if test -n "$AWK"; then
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3926 $as_echo "$AWK" >&6; }
3927 else
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 $as_echo "no" >&6; }
3930 fi
3931
3932
3933 test -n "$AWK" && break
3934 done
3935
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3937 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3938 set x ${MAKE-make}
3939 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3940 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 cat >conftest.make <<\_ACEOF
3944 SHELL = /bin/sh
3945 all:
3946 @echo '@@@%%%=$(MAKE)=@@@%%%'
3947 _ACEOF
3948 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3949 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3950 *@@@%%%=?*=@@@%%%*)
3951 eval ac_cv_prog_make_${ac_make}_set=yes;;
3952 *)
3953 eval ac_cv_prog_make_${ac_make}_set=no;;
3954 esac
3955 rm -f conftest.make
3956 fi
3957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3959 $as_echo "yes" >&6; }
3960 SET_MAKE=
3961 else
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963 $as_echo "no" >&6; }
3964 SET_MAKE="MAKE=${MAKE-make}"
3965 fi
3966
3967 rm -rf .tst 2>/dev/null
3968 mkdir .tst 2>/dev/null
3969 if test -d .tst; then
3970 am__leading_dot=.
3971 else
3972 am__leading_dot=_
3973 fi
3974 rmdir .tst 2>/dev/null
3975
3976 DEPDIR="${am__leading_dot}deps"
3977
3978 ac_config_commands="$ac_config_commands depfiles"
3979
3980
3981 am_make=${MAKE-make}
3982 cat > confinc << 'END'
3983 am__doit:
3984 @echo this is the am__doit target
3985 .PHONY: am__doit
3986 END
3987 # If we don't find an include directive, just comment out the code.
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3989 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3990 am__include="#"
3991 am__quote=
3992 _am_result=none
3993 # First try GNU make style include.
3994 echo "include confinc" > confmf
3995 # Ignore all kinds of additional output from `make'.
3996 case `$am_make -s -f confmf 2> /dev/null` in #(
3997 *the\ am__doit\ target*)
3998 am__include=include
3999 am__quote=
4000 _am_result=GNU
4001 ;;
4002 esac
4003 # Now try BSD make style include.
4004 if test "$am__include" = "#"; then
4005 echo '.include "confinc"' > confmf
4006 case `$am_make -s -f confmf 2> /dev/null` in #(
4007 *the\ am__doit\ target*)
4008 am__include=.include
4009 am__quote="\""
4010 _am_result=BSD
4011 ;;
4012 esac
4013 fi
4014
4015
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4017 $as_echo "$_am_result" >&6; }
4018 rm -f confinc confmf
4019
4020 # Check whether --enable-dependency-tracking was given.
4021 if test "${enable_dependency_tracking+set}" = set; then :
4022 enableval=$enable_dependency_tracking;
4023 fi
4024
4025 if test "x$enable_dependency_tracking" != xno; then
4026 am_depcomp="$ac_aux_dir/depcomp"
4027 AMDEPBACKSLASH='\'
4028 fi
4029 if test "x$enable_dependency_tracking" != xno; then
4030 AMDEP_TRUE=
4031 AMDEP_FALSE='#'
4032 else
4033 AMDEP_TRUE='#'
4034 AMDEP_FALSE=
4035 fi
4036
4037
4038 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4039 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4040 # is not polluted with repeated "-I."
4041 am__isrc=' -I$(srcdir)'
4042 # test to see if srcdir already configured
4043 if test -f $srcdir/config.status; then
4044 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4045 fi
4046 fi
4047
4048 # test whether we have cygpath
4049 if test -z "$CYGPATH_W"; then
4050 if (cygpath --version) >/dev/null 2>/dev/null; then
4051 CYGPATH_W='cygpath -w'
4052 else
4053 CYGPATH_W=echo
4054 fi
4055 fi
4056
4057
4058 # Define the identity of the package.
4059 PACKAGE=ld
4060 VERSION=${BFD_VERSION}
4061
4062
4063 cat >>confdefs.h <<_ACEOF
4064 #define PACKAGE "$PACKAGE"
4065 _ACEOF
4066
4067
4068 cat >>confdefs.h <<_ACEOF
4069 #define VERSION "$VERSION"
4070 _ACEOF
4071
4072 # Some tools Automake needs.
4073
4074 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4075
4076
4077 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4078
4079
4080 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4081
4082
4083 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4084
4085
4086 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4087
4088 # We need awk for the "check" target. The system "awk" is bad on
4089 # some platforms.
4090 # Always define AMTAR for backward compatibility.
4091
4092 AMTAR=${AMTAR-"${am_missing_run}tar"}
4093
4094 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4095
4096
4097
4098
4099 depcc="$CC" am_compiler_list=
4100
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4102 $as_echo_n "checking dependency style of $depcc... " >&6; }
4103 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4107 # We make a subdir and do the tests there. Otherwise we can end up
4108 # making bogus files that we don't know about and never remove. For
4109 # instance it was reported that on HP-UX the gcc test will end up
4110 # making a dummy file named `D' -- because `-MD' means `put the output
4111 # in D'.
4112 mkdir conftest.dir
4113 # Copy depcomp to subdir because otherwise we won't find it if we're
4114 # using a relative directory.
4115 cp "$am_depcomp" conftest.dir
4116 cd conftest.dir
4117 # We will build objects and dependencies in a subdirectory because
4118 # it helps to detect inapplicable dependency modes. For instance
4119 # both Tru64's cc and ICC support -MD to output dependencies as a
4120 # side effect of compilation, but ICC will put the dependencies in
4121 # the current directory while Tru64 will put them in the object
4122 # directory.
4123 mkdir sub
4124
4125 am_cv_CC_dependencies_compiler_type=none
4126 if test "$am_compiler_list" = ""; then
4127 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4128 fi
4129 am__universal=false
4130 case " $depcc " in #(
4131 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4132 esac
4133
4134 for depmode in $am_compiler_list; do
4135 # Setup a source with many dependencies, because some compilers
4136 # like to wrap large dependency lists on column 80 (with \), and
4137 # we should not choose a depcomp mode which is confused by this.
4138 #
4139 # We need to recreate these files for each test, as the compiler may
4140 # overwrite some of them when testing with obscure command lines.
4141 # This happens at least with the AIX C compiler.
4142 : > sub/conftest.c
4143 for i in 1 2 3 4 5 6; do
4144 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4145 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4146 # Solaris 8's {/usr,}/bin/sh.
4147 touch sub/conftst$i.h
4148 done
4149 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4150
4151 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4152 # mode. It turns out that the SunPro C++ compiler does not properly
4153 # handle `-M -o', and we need to detect this. Also, some Intel
4154 # versions had trouble with output in subdirs
4155 am__obj=sub/conftest.${OBJEXT-o}
4156 am__minus_obj="-o $am__obj"
4157 case $depmode in
4158 gcc)
4159 # This depmode causes a compiler race in universal mode.
4160 test "$am__universal" = false || continue
4161 ;;
4162 nosideeffect)
4163 # after this tag, mechanisms are not by side-effect, so they'll
4164 # only be used when explicitly requested
4165 if test "x$enable_dependency_tracking" = xyes; then
4166 continue
4167 else
4168 break
4169 fi
4170 ;;
4171 msvisualcpp | msvcmsys)
4172 # This compiler won't grok `-c -o', but also, the minuso test has
4173 # not run yet. These depmodes are late enough in the game, and
4174 # so weak that their functioning should not be impacted.
4175 am__obj=conftest.${OBJEXT-o}
4176 am__minus_obj=
4177 ;;
4178 none) break ;;
4179 esac
4180 if depmode=$depmode \
4181 source=sub/conftest.c object=$am__obj \
4182 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4183 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4184 >/dev/null 2>conftest.err &&
4185 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4186 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4187 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4188 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4189 # icc doesn't choke on unknown options, it will just issue warnings
4190 # or remarks (even with -Werror). So we grep stderr for any message
4191 # that says an option was ignored or not supported.
4192 # When given -MP, icc 7.0 and 7.1 complain thusly:
4193 # icc: Command line warning: ignoring option '-M'; no argument required
4194 # The diagnosis changed in icc 8.0:
4195 # icc: Command line remark: option '-MP' not supported
4196 if (grep 'ignoring option' conftest.err ||
4197 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4198 am_cv_CC_dependencies_compiler_type=$depmode
4199 break
4200 fi
4201 fi
4202 done
4203
4204 cd ..
4205 rm -rf conftest.dir
4206 else
4207 am_cv_CC_dependencies_compiler_type=none
4208 fi
4209
4210 fi
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4212 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4213 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4214
4215 if
4216 test "x$enable_dependency_tracking" != xno \
4217 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4218 am__fastdepCC_TRUE=
4219 am__fastdepCC_FALSE='#'
4220 else
4221 am__fastdepCC_TRUE='#'
4222 am__fastdepCC_FALSE=
4223 fi
4224
4225
4226
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4229 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4230 # Check whether --enable-maintainer-mode was given.
4231 if test "${enable_maintainer_mode+set}" = set; then :
4232 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4233 else
4234 USE_MAINTAINER_MODE=no
4235 fi
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4238 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4239 if test $USE_MAINTAINER_MODE = yes; then
4240 MAINTAINER_MODE_TRUE=
4241 MAINTAINER_MODE_FALSE='#'
4242 else
4243 MAINTAINER_MODE_TRUE='#'
4244 MAINTAINER_MODE_FALSE=
4245 fi
4246
4247 MAINT=$MAINTAINER_MODE_TRUE
4248
4249
4250
4251
4252 # Check whether --with-lib-path was given.
4253 if test "${with_lib_path+set}" = set; then :
4254 withval=$with_lib_path; LIB_PATH=$withval
4255 fi
4256
4257 # Check whether --enable-targets was given.
4258 if test "${enable_targets+set}" = set; then :
4259 enableval=$enable_targets; case "${enableval}" in
4260 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
4261 ;;
4262 no) enable_targets= ;;
4263 *) enable_targets=$enableval ;;
4264 esac
4265 fi
4266 # Check whether --enable-64-bit-bfd was given.
4267 if test "${enable_64_bit_bfd+set}" = set; then :
4268 enableval=$enable_64_bit_bfd; case "${enableval}" in
4269 yes) want64=true ;;
4270 no) want64=false ;;
4271 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
4272 esac
4273 else
4274 want64=false
4275 fi
4276
4277
4278 # Check whether --with-sysroot was given.
4279 if test "${with_sysroot+set}" = set; then :
4280 withval=$with_sysroot;
4281 case ${with_sysroot} in
4282 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4283 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4284 esac
4285
4286 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4287 use_sysroot=yes
4288
4289 if test "x$prefix" = xNONE; then
4290 test_prefix=/usr/local
4291 else
4292 test_prefix=$prefix
4293 fi
4294 if test "x$exec_prefix" = xNONE; then
4295 test_exec_prefix=$test_prefix
4296 else
4297 test_exec_prefix=$exec_prefix
4298 fi
4299 case ${TARGET_SYSTEM_ROOT} in
4300 "${test_prefix}"|"${test_prefix}/"*|\
4301 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4302 '${prefix}'|'${prefix}/'*|\
4303 '${exec_prefix}'|'${exec_prefix}/'*)
4304 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4305 TARGET_SYSTEM_ROOT_DEFINE="$t"
4306 ;;
4307 esac
4308
4309 else
4310
4311 use_sysroot=no
4312 TARGET_SYSTEM_ROOT=
4313 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4314
4315 fi
4316
4317
4318
4319
4320
4321 # Check whether --enable-gold was given.
4322 if test "${enable_gold+set}" = set; then :
4323 enableval=$enable_gold; case "${enableval}" in
4324 default)
4325 install_as_default=no
4326 installed_linker=ld.bfd
4327 ;;
4328 yes|no)
4329 install_as_default=yes
4330 installed_linker=ld.bfd
4331 ;;
4332 *)
4333 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
4334 ;;
4335 esac
4336 else
4337 install_as_default=yes
4338 installed_linker=ld.bfd
4339 fi
4340
4341
4342
4343
4344 # Check whether --enable-got was given.
4345 if test "${enable_got+set}" = set; then :
4346 enableval=$enable_got; case "${enableval}" in
4347 target | single | negative | multigot) got_handling=$enableval ;;
4348 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
4349 esac
4350 else
4351 got_handling=target
4352 fi
4353
4354
4355 case "${got_handling}" in
4356 target)
4357
4358 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
4359 ;;
4360 single)
4361
4362 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
4363 ;;
4364 negative)
4365
4366 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
4367 ;;
4368 multigot)
4369
4370 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
4371 ;;
4372 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
4373 esac
4374
4375 ac_ext=c
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4381 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4382 # On Suns, sometimes $CPP names a directory.
4383 if test -n "$CPP" && test -d "$CPP"; then
4384 CPP=
4385 fi
4386 if test -z "$CPP"; then
4387 if test "${ac_cv_prog_CPP+set}" = set; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 # Double quotes because CPP needs to be expanded
4391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4392 do
4393 ac_preproc_ok=false
4394 for ac_c_preproc_warn_flag in '' yes
4395 do
4396 # Use a header file that comes with gcc, so configuring glibc
4397 # with a fresh cross-compiler works.
4398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4399 # <limits.h> exists even on freestanding compilers.
4400 # On the NeXT, cc -E runs the code through the compiler's parser,
4401 # not just through cpp. "Syntax error" is here to catch this case.
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4404 #ifdef __STDC__
4405 # include <limits.h>
4406 #else
4407 # include <assert.h>
4408 #endif
4409 Syntax error
4410 _ACEOF
4411 if ac_fn_c_try_cpp "$LINENO"; then :
4412
4413 else
4414 # Broken: fails on valid input.
4415 continue
4416 fi
4417 rm -f conftest.err conftest.$ac_ext
4418
4419 # OK, works on sane cases. Now check whether nonexistent headers
4420 # can be detected and how.
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4423 #include <ac_nonexistent.h>
4424 _ACEOF
4425 if ac_fn_c_try_cpp "$LINENO"; then :
4426 # Broken: success on invalid input.
4427 continue
4428 else
4429 # Passes both tests.
4430 ac_preproc_ok=:
4431 break
4432 fi
4433 rm -f conftest.err conftest.$ac_ext
4434
4435 done
4436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4437 rm -f conftest.err conftest.$ac_ext
4438 if $ac_preproc_ok; then :
4439 break
4440 fi
4441
4442 done
4443 ac_cv_prog_CPP=$CPP
4444
4445 fi
4446 CPP=$ac_cv_prog_CPP
4447 else
4448 ac_cv_prog_CPP=$CPP
4449 fi
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4451 $as_echo "$CPP" >&6; }
4452 ac_preproc_ok=false
4453 for ac_c_preproc_warn_flag in '' yes
4454 do
4455 # Use a header file that comes with gcc, so configuring glibc
4456 # with a fresh cross-compiler works.
4457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4458 # <limits.h> exists even on freestanding compilers.
4459 # On the NeXT, cc -E runs the code through the compiler's parser,
4460 # not just through cpp. "Syntax error" is here to catch this case.
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463 #ifdef __STDC__
4464 # include <limits.h>
4465 #else
4466 # include <assert.h>
4467 #endif
4468 Syntax error
4469 _ACEOF
4470 if ac_fn_c_try_cpp "$LINENO"; then :
4471
4472 else
4473 # Broken: fails on valid input.
4474 continue
4475 fi
4476 rm -f conftest.err conftest.$ac_ext
4477
4478 # OK, works on sane cases. Now check whether nonexistent headers
4479 # can be detected and how.
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4482 #include <ac_nonexistent.h>
4483 _ACEOF
4484 if ac_fn_c_try_cpp "$LINENO"; then :
4485 # Broken: success on invalid input.
4486 continue
4487 else
4488 # Passes both tests.
4489 ac_preproc_ok=:
4490 break
4491 fi
4492 rm -f conftest.err conftest.$ac_ext
4493
4494 done
4495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4496 rm -f conftest.err conftest.$ac_ext
4497 if $ac_preproc_ok; then :
4498
4499 else
4500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4502 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4503 See \`config.log' for more details." "$LINENO" 5; }
4504 fi
4505
4506 ac_ext=c
4507 ac_cpp='$CPP $CPPFLAGS'
4508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4511
4512
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4514 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4515 if test "${ac_cv_path_GREP+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -z "$GREP"; then
4519 ac_path_GREP_found=false
4520 # Loop through the user's path and test for each of PROGNAME-LIST
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4523 do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_prog in grep ggrep; do
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4529 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4530 # Check for GNU ac_path_GREP and select it if it is found.
4531 # Check for GNU $ac_path_GREP
4532 case `"$ac_path_GREP" --version 2>&1` in
4533 *GNU*)
4534 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4535 *)
4536 ac_count=0
4537 $as_echo_n 0123456789 >"conftest.in"
4538 while :
4539 do
4540 cat "conftest.in" "conftest.in" >"conftest.tmp"
4541 mv "conftest.tmp" "conftest.in"
4542 cp "conftest.in" "conftest.nl"
4543 $as_echo 'GREP' >> "conftest.nl"
4544 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4546 as_fn_arith $ac_count + 1 && ac_count=$as_val
4547 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4548 # Best one so far, save it but keep looking for a better one
4549 ac_cv_path_GREP="$ac_path_GREP"
4550 ac_path_GREP_max=$ac_count
4551 fi
4552 # 10*(2^10) chars as input seems more than enough
4553 test $ac_count -gt 10 && break
4554 done
4555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4556 esac
4557
4558 $ac_path_GREP_found && break 3
4559 done
4560 done
4561 done
4562 IFS=$as_save_IFS
4563 if test -z "$ac_cv_path_GREP"; then
4564 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4565 fi
4566 else
4567 ac_cv_path_GREP=$GREP
4568 fi
4569
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4572 $as_echo "$ac_cv_path_GREP" >&6; }
4573 GREP="$ac_cv_path_GREP"
4574
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4577 $as_echo_n "checking for egrep... " >&6; }
4578 if test "${ac_cv_path_EGREP+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4582 then ac_cv_path_EGREP="$GREP -E"
4583 else
4584 if test -z "$EGREP"; then
4585 ac_path_EGREP_found=false
4586 # Loop through the user's path and test for each of PROGNAME-LIST
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4589 do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_prog in egrep; do
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4595 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4596 # Check for GNU ac_path_EGREP and select it if it is found.
4597 # Check for GNU $ac_path_EGREP
4598 case `"$ac_path_EGREP" --version 2>&1` in
4599 *GNU*)
4600 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4601 *)
4602 ac_count=0
4603 $as_echo_n 0123456789 >"conftest.in"
4604 while :
4605 do
4606 cat "conftest.in" "conftest.in" >"conftest.tmp"
4607 mv "conftest.tmp" "conftest.in"
4608 cp "conftest.in" "conftest.nl"
4609 $as_echo 'EGREP' >> "conftest.nl"
4610 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4612 as_fn_arith $ac_count + 1 && ac_count=$as_val
4613 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4614 # Best one so far, save it but keep looking for a better one
4615 ac_cv_path_EGREP="$ac_path_EGREP"
4616 ac_path_EGREP_max=$ac_count
4617 fi
4618 # 10*(2^10) chars as input seems more than enough
4619 test $ac_count -gt 10 && break
4620 done
4621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4622 esac
4623
4624 $ac_path_EGREP_found && break 3
4625 done
4626 done
4627 done
4628 IFS=$as_save_IFS
4629 if test -z "$ac_cv_path_EGREP"; then
4630 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4631 fi
4632 else
4633 ac_cv_path_EGREP=$EGREP
4634 fi
4635
4636 fi
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4639 $as_echo "$ac_cv_path_EGREP" >&6; }
4640 EGREP="$ac_cv_path_EGREP"
4641
4642
4643
4644 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4647 __GNUC__
4648 _ACEOF
4649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4650 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
4651
4652 else
4653 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
4654 fi
4655 rm -f conftest*
4656
4657
4658 # Check whether --enable-werror was given.
4659 if test "${enable_werror+set}" = set; then :
4660 enableval=$enable_werror; case "${enableval}" in
4661 yes | y) ERROR_ON_WARNING="yes" ;;
4662 no | n) ERROR_ON_WARNING="no" ;;
4663 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4664 esac
4665 fi
4666
4667
4668 # Disable -Wformat by default when using gcc on mingw
4669 case "${host}" in
4670 *-*-mingw32*)
4671 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4672 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4673 fi
4674 ;;
4675 *) ;;
4676 esac
4677
4678 # Enable -Werror by default when using gcc
4679 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4680 ERROR_ON_WARNING=yes
4681 fi
4682
4683 NO_WERROR=
4684 if test "${ERROR_ON_WARNING}" = yes ; then
4685 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4686 NO_WERROR="-Wno-error"
4687 fi
4688
4689 if test "${GCC}" = yes ; then
4690 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4691 fi
4692
4693 # Check whether --enable-build-warnings was given.
4694 if test "${enable_build_warnings+set}" = set; then :
4695 enableval=$enable_build_warnings; case "${enableval}" in
4696 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4697 no) if test "${GCC}" = yes ; then
4698 WARN_CFLAGS="-w"
4699 fi;;
4700 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4701 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4702 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4703 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4704 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4705 esac
4706 fi
4707
4708
4709 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4710 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4711 fi
4712
4713
4714
4715
4716
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
4719 $as_echo_n "checking for LC_MESSAGES... " >&6; }
4720 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725 #include <locale.h>
4726 int
4727 main ()
4728 {
4729 return LC_MESSAGES
4730 ;
4731 return 0;
4732 }
4733 _ACEOF
4734 if ac_fn_c_try_link "$LINENO"; then :
4735 am_cv_val_LC_MESSAGES=yes
4736 else
4737 am_cv_val_LC_MESSAGES=no
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext \
4740 conftest$ac_exeext conftest.$ac_ext
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
4743 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
4744 if test $am_cv_val_LC_MESSAGES = yes; then
4745
4746 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
4747
4748 fi
4749
4750
4751 ac_config_headers="$ac_config_headers config.h:config.in"
4752
4753
4754 # PR 14072
4755
4756
4757 if test -z "$target" ; then
4758 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4759 fi
4760 if test -z "$host" ; then
4761 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4762 fi
4763
4764 # host-specific stuff:
4765
4766 ac_ext=c
4767 ac_cpp='$CPP $CPPFLAGS'
4768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4771 if test -n "$ac_tool_prefix"; then
4772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4773 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 $as_echo_n "checking for $ac_word... " >&6; }
4776 if test "${ac_cv_prog_CC+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if test -n "$CC"; then
4780 ac_cv_prog_CC="$CC" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793 done
4794 done
4795 IFS=$as_save_IFS
4796
4797 fi
4798 fi
4799 CC=$ac_cv_prog_CC
4800 if test -n "$CC"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4802 $as_echo "$CC" >&6; }
4803 else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4806 fi
4807
4808
4809 fi
4810 if test -z "$ac_cv_prog_CC"; then
4811 ac_ct_CC=$CC
4812 # Extract the first word of "gcc", so it can be a program name with args.
4813 set dummy gcc; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$ac_ct_CC"; then
4820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_ac_ct_CC="gcc"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4832 fi
4833 done
4834 done
4835 IFS=$as_save_IFS
4836
4837 fi
4838 fi
4839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4840 if test -n "$ac_ct_CC"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4842 $as_echo "$ac_ct_CC" >&6; }
4843 else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4846 fi
4847
4848 if test "x$ac_ct_CC" = x; then
4849 CC=""
4850 else
4851 case $cross_compiling:$ac_tool_warned in
4852 yes:)
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4855 ac_tool_warned=yes ;;
4856 esac
4857 CC=$ac_ct_CC
4858 fi
4859 else
4860 CC="$ac_cv_prog_CC"
4861 fi
4862
4863 if test -z "$CC"; then
4864 if test -n "$ac_tool_prefix"; then
4865 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4866 set dummy ${ac_tool_prefix}cc; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if test "${ac_cv_prog_CC+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 if test -n "$CC"; then
4873 ac_cv_prog_CC="$CC" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 ac_cv_prog_CC="${ac_tool_prefix}cc"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4885 fi
4886 done
4887 done
4888 IFS=$as_save_IFS
4889
4890 fi
4891 fi
4892 CC=$ac_cv_prog_CC
4893 if test -n "$CC"; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4895 $as_echo "$CC" >&6; }
4896 else
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4899 fi
4900
4901
4902 fi
4903 fi
4904 if test -z "$CC"; then
4905 # Extract the first word of "cc", so it can be a program name with args.
4906 set dummy cc; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if test "${ac_cv_prog_CC+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 if test -n "$CC"; then
4913 ac_cv_prog_CC="$CC" # Let the user override the test.
4914 else
4915 ac_prog_rejected=no
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4924 ac_prog_rejected=yes
4925 continue
4926 fi
4927 ac_cv_prog_CC="cc"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4930 fi
4931 done
4932 done
4933 IFS=$as_save_IFS
4934
4935 if test $ac_prog_rejected = yes; then
4936 # We found a bogon in the path, so make sure we never use it.
4937 set dummy $ac_cv_prog_CC
4938 shift
4939 if test $# != 0; then
4940 # We chose a different compiler from the bogus one.
4941 # However, it has the same basename, so the bogon will be chosen
4942 # first if we set CC to just the basename; use the full file name.
4943 shift
4944 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4945 fi
4946 fi
4947 fi
4948 fi
4949 CC=$ac_cv_prog_CC
4950 if test -n "$CC"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4952 $as_echo "$CC" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957
4958
4959 fi
4960 if test -z "$CC"; then
4961 if test -n "$ac_tool_prefix"; then
4962 for ac_prog in cl.exe
4963 do
4964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if test "${ac_cv_prog_CC+set}" = set; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 if test -n "$CC"; then
4972 ac_cv_prog_CC="$CC" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4984 fi
4985 done
4986 done
4987 IFS=$as_save_IFS
4988
4989 fi
4990 fi
4991 CC=$ac_cv_prog_CC
4992 if test -n "$CC"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4994 $as_echo "$CC" >&6; }
4995 else
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
4998 fi
4999
5000
5001 test -n "$CC" && break
5002 done
5003 fi
5004 if test -z "$CC"; then
5005 ac_ct_CC=$CC
5006 for ac_prog in cl.exe
5007 do
5008 # Extract the first word of "$ac_prog", so it can be a program name with args.
5009 set dummy $ac_prog; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 if test -n "$ac_ct_CC"; then
5016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025 ac_cv_prog_ac_ct_CC="$ac_prog"
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
5035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5036 if test -n "$ac_ct_CC"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5038 $as_echo "$ac_ct_CC" >&6; }
5039 else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5042 fi
5043
5044
5045 test -n "$ac_ct_CC" && break
5046 done
5047
5048 if test "x$ac_ct_CC" = x; then
5049 CC=""
5050 else
5051 case $cross_compiling:$ac_tool_warned in
5052 yes:)
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5055 ac_tool_warned=yes ;;
5056 esac
5057 CC=$ac_ct_CC
5058 fi
5059 fi
5060
5061 fi
5062
5063
5064 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5066 as_fn_error "no acceptable C compiler found in \$PATH
5067 See \`config.log' for more details." "$LINENO" 5; }
5068
5069 # Provide some information about the compiler.
5070 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5071 set X $ac_compile
5072 ac_compiler=$2
5073 for ac_option in --version -v -V -qversion; do
5074 { { ac_try="$ac_compiler $ac_option >&5"
5075 case "(($ac_try" in
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5078 esac
5079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5080 $as_echo "$ac_try_echo"; } >&5
5081 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5082 ac_status=$?
5083 if test -s conftest.err; then
5084 sed '10a\
5085 ... rest of stderr output deleted ...
5086 10q' conftest.err >conftest.er1
5087 cat conftest.er1 >&5
5088 rm -f conftest.er1 conftest.err
5089 fi
5090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5091 test $ac_status = 0; }
5092 done
5093
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5095 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5096 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5101
5102 int
5103 main ()
5104 {
5105 #ifndef __GNUC__
5106 choke me
5107 #endif
5108
5109 ;
5110 return 0;
5111 }
5112 _ACEOF
5113 if ac_fn_c_try_compile "$LINENO"; then :
5114 ac_compiler_gnu=yes
5115 else
5116 ac_compiler_gnu=no
5117 fi
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5120
5121 fi
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5123 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5124 if test $ac_compiler_gnu = yes; then
5125 GCC=yes
5126 else
5127 GCC=
5128 fi
5129 ac_test_CFLAGS=${CFLAGS+set}
5130 ac_save_CFLAGS=$CFLAGS
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5132 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5133 if test "${ac_cv_prog_cc_g+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 ac_save_c_werror_flag=$ac_c_werror_flag
5137 ac_c_werror_flag=yes
5138 ac_cv_prog_cc_g=no
5139 CFLAGS="-g"
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5142
5143 int
5144 main ()
5145 {
5146
5147 ;
5148 return 0;
5149 }
5150 _ACEOF
5151 if ac_fn_c_try_compile "$LINENO"; then :
5152 ac_cv_prog_cc_g=yes
5153 else
5154 CFLAGS=""
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157
5158 int
5159 main ()
5160 {
5161
5162 ;
5163 return 0;
5164 }
5165 _ACEOF
5166 if ac_fn_c_try_compile "$LINENO"; then :
5167
5168 else
5169 ac_c_werror_flag=$ac_save_c_werror_flag
5170 CFLAGS="-g"
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173
5174 int
5175 main ()
5176 {
5177
5178 ;
5179 return 0;
5180 }
5181 _ACEOF
5182 if ac_fn_c_try_compile "$LINENO"; then :
5183 ac_cv_prog_cc_g=yes
5184 fi
5185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186 fi
5187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 fi
5189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190 ac_c_werror_flag=$ac_save_c_werror_flag
5191 fi
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5193 $as_echo "$ac_cv_prog_cc_g" >&6; }
5194 if test "$ac_test_CFLAGS" = set; then
5195 CFLAGS=$ac_save_CFLAGS
5196 elif test $ac_cv_prog_cc_g = yes; then
5197 if test "$GCC" = yes; then
5198 CFLAGS="-g -O2"
5199 else
5200 CFLAGS="-g"
5201 fi
5202 else
5203 if test "$GCC" = yes; then
5204 CFLAGS="-O2"
5205 else
5206 CFLAGS=
5207 fi
5208 fi
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5210 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5211 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 ac_cv_prog_cc_c89=no
5215 ac_save_CC=$CC
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5218 #include <stdarg.h>
5219 #include <stdio.h>
5220 #include <sys/types.h>
5221 #include <sys/stat.h>
5222 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5223 struct buf { int x; };
5224 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5225 static char *e (p, i)
5226 char **p;
5227 int i;
5228 {
5229 return p[i];
5230 }
5231 static char *f (char * (*g) (char **, int), char **p, ...)
5232 {
5233 char *s;
5234 va_list v;
5235 va_start (v,p);
5236 s = g (p, va_arg (v,int));
5237 va_end (v);
5238 return s;
5239 }
5240
5241 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5242 function prototypes and stuff, but not '\xHH' hex character constants.
5243 These don't provoke an error unfortunately, instead are silently treated
5244 as 'x'. The following induces an error, until -std is added to get
5245 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5246 array size at least. It's necessary to write '\x00'==0 to get something
5247 that's true only with -std. */
5248 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5249
5250 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5251 inside strings and character constants. */
5252 #define FOO(x) 'x'
5253 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5254
5255 int test (int i, double x);
5256 struct s1 {int (*f) (int a);};
5257 struct s2 {int (*f) (double a);};
5258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5259 int argc;
5260 char **argv;
5261 int
5262 main ()
5263 {
5264 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5265 ;
5266 return 0;
5267 }
5268 _ACEOF
5269 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5270 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5271 do
5272 CC="$ac_save_CC $ac_arg"
5273 if ac_fn_c_try_compile "$LINENO"; then :
5274 ac_cv_prog_cc_c89=$ac_arg
5275 fi
5276 rm -f core conftest.err conftest.$ac_objext
5277 test "x$ac_cv_prog_cc_c89" != "xno" && break
5278 done
5279 rm -f conftest.$ac_ext
5280 CC=$ac_save_CC
5281
5282 fi
5283 # AC_CACHE_VAL
5284 case "x$ac_cv_prog_cc_c89" in
5285 x)
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5287 $as_echo "none needed" >&6; } ;;
5288 xno)
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5290 $as_echo "unsupported" >&6; } ;;
5291 *)
5292 CC="$CC $ac_cv_prog_cc_c89"
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5294 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5295 esac
5296 if test "x$ac_cv_prog_cc_c89" != xno; then :
5297
5298 fi
5299
5300 ac_ext=c
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305
5306 ac_ext=cpp
5307 ac_cpp='$CXXCPP $CPPFLAGS'
5308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5311 if test -z "$CXX"; then
5312 if test -n "$CCC"; then
5313 CXX=$CCC
5314 else
5315 if test -n "$ac_tool_prefix"; then
5316 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5317 do
5318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if test "${ac_cv_prog_CXX+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 if test -n "$CXX"; then
5326 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5327 else
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 break 2
5338 fi
5339 done
5340 done
5341 IFS=$as_save_IFS
5342
5343 fi
5344 fi
5345 CXX=$ac_cv_prog_CXX
5346 if test -n "$CXX"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5348 $as_echo "$CXX" >&6; }
5349 else
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5352 fi
5353
5354
5355 test -n "$CXX" && break
5356 done
5357 fi
5358 if test -z "$CXX"; then
5359 ac_ct_CXX=$CXX
5360 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5361 do
5362 # Extract the first word of "$ac_prog", so it can be a program name with args.
5363 set dummy $ac_prog; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 if test -n "$ac_ct_CXX"; then
5370 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_prog_ac_ct_CXX="$ac_prog"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383 done
5384 done
5385 IFS=$as_save_IFS
5386
5387 fi
5388 fi
5389 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5390 if test -n "$ac_ct_CXX"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5392 $as_echo "$ac_ct_CXX" >&6; }
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397
5398
5399 test -n "$ac_ct_CXX" && break
5400 done
5401
5402 if test "x$ac_ct_CXX" = x; then
5403 CXX="g++"
5404 else
5405 case $cross_compiling:$ac_tool_warned in
5406 yes:)
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5409 ac_tool_warned=yes ;;
5410 esac
5411 CXX=$ac_ct_CXX
5412 fi
5413 fi
5414
5415 fi
5416 fi
5417 # Provide some information about the compiler.
5418 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5419 set X $ac_compile
5420 ac_compiler=$2
5421 for ac_option in --version -v -V -qversion; do
5422 { { ac_try="$ac_compiler $ac_option >&5"
5423 case "(($ac_try" in
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5426 esac
5427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5428 $as_echo "$ac_try_echo"; } >&5
5429 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5430 ac_status=$?
5431 if test -s conftest.err; then
5432 sed '10a\
5433 ... rest of stderr output deleted ...
5434 10q' conftest.err >conftest.er1
5435 cat conftest.er1 >&5
5436 rm -f conftest.er1 conftest.err
5437 fi
5438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5439 test $ac_status = 0; }
5440 done
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5443 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5444 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449
5450 int
5451 main ()
5452 {
5453 #ifndef __GNUC__
5454 choke me
5455 #endif
5456
5457 ;
5458 return 0;
5459 }
5460 _ACEOF
5461 if ac_fn_cxx_try_compile "$LINENO"; then :
5462 ac_compiler_gnu=yes
5463 else
5464 ac_compiler_gnu=no
5465 fi
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5468
5469 fi
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5471 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5472 if test $ac_compiler_gnu = yes; then
5473 GXX=yes
5474 else
5475 GXX=
5476 fi
5477 ac_test_CXXFLAGS=${CXXFLAGS+set}
5478 ac_save_CXXFLAGS=$CXXFLAGS
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5480 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5481 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5485 ac_cxx_werror_flag=yes
5486 ac_cv_prog_cxx_g=no
5487 CXXFLAGS="-g"
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490
5491 int
5492 main ()
5493 {
5494
5495 ;
5496 return 0;
5497 }
5498 _ACEOF
5499 if ac_fn_cxx_try_compile "$LINENO"; then :
5500 ac_cv_prog_cxx_g=yes
5501 else
5502 CXXFLAGS=""
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5505
5506 int
5507 main ()
5508 {
5509
5510 ;
5511 return 0;
5512 }
5513 _ACEOF
5514 if ac_fn_cxx_try_compile "$LINENO"; then :
5515
5516 else
5517 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5518 CXXFLAGS="-g"
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521
5522 int
5523 main ()
5524 {
5525
5526 ;
5527 return 0;
5528 }
5529 _ACEOF
5530 if ac_fn_cxx_try_compile "$LINENO"; then :
5531 ac_cv_prog_cxx_g=yes
5532 fi
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 fi
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5539 fi
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5541 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5542 if test "$ac_test_CXXFLAGS" = set; then
5543 CXXFLAGS=$ac_save_CXXFLAGS
5544 elif test $ac_cv_prog_cxx_g = yes; then
5545 if test "$GXX" = yes; then
5546 CXXFLAGS="-g -O2"
5547 else
5548 CXXFLAGS="-g"
5549 fi
5550 else
5551 if test "$GXX" = yes; then
5552 CXXFLAGS="-O2"
5553 else
5554 CXXFLAGS=
5555 fi
5556 fi
5557 ac_ext=c
5558 ac_cpp='$CPP $CPPFLAGS'
5559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5562
5563 depcc="$CXX" am_compiler_list=
5564
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5566 $as_echo_n "checking dependency style of $depcc... " >&6; }
5567 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5571 # We make a subdir and do the tests there. Otherwise we can end up
5572 # making bogus files that we don't know about and never remove. For
5573 # instance it was reported that on HP-UX the gcc test will end up
5574 # making a dummy file named `D' -- because `-MD' means `put the output
5575 # in D'.
5576 mkdir conftest.dir
5577 # Copy depcomp to subdir because otherwise we won't find it if we're
5578 # using a relative directory.
5579 cp "$am_depcomp" conftest.dir
5580 cd conftest.dir
5581 # We will build objects and dependencies in a subdirectory because
5582 # it helps to detect inapplicable dependency modes. For instance
5583 # both Tru64's cc and ICC support -MD to output dependencies as a
5584 # side effect of compilation, but ICC will put the dependencies in
5585 # the current directory while Tru64 will put them in the object
5586 # directory.
5587 mkdir sub
5588
5589 am_cv_CXX_dependencies_compiler_type=none
5590 if test "$am_compiler_list" = ""; then
5591 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5592 fi
5593 am__universal=false
5594 case " $depcc " in #(
5595 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5596 esac
5597
5598 for depmode in $am_compiler_list; do
5599 # Setup a source with many dependencies, because some compilers
5600 # like to wrap large dependency lists on column 80 (with \), and
5601 # we should not choose a depcomp mode which is confused by this.
5602 #
5603 # We need to recreate these files for each test, as the compiler may
5604 # overwrite some of them when testing with obscure command lines.
5605 # This happens at least with the AIX C compiler.
5606 : > sub/conftest.c
5607 for i in 1 2 3 4 5 6; do
5608 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5609 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5610 # Solaris 8's {/usr,}/bin/sh.
5611 touch sub/conftst$i.h
5612 done
5613 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5614
5615 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5616 # mode. It turns out that the SunPro C++ compiler does not properly
5617 # handle `-M -o', and we need to detect this. Also, some Intel
5618 # versions had trouble with output in subdirs
5619 am__obj=sub/conftest.${OBJEXT-o}
5620 am__minus_obj="-o $am__obj"
5621 case $depmode in
5622 gcc)
5623 # This depmode causes a compiler race in universal mode.
5624 test "$am__universal" = false || continue
5625 ;;
5626 nosideeffect)
5627 # after this tag, mechanisms are not by side-effect, so they'll
5628 # only be used when explicitly requested
5629 if test "x$enable_dependency_tracking" = xyes; then
5630 continue
5631 else
5632 break
5633 fi
5634 ;;
5635 msvisualcpp | msvcmsys)
5636 # This compiler won't grok `-c -o', but also, the minuso test has
5637 # not run yet. These depmodes are late enough in the game, and
5638 # so weak that their functioning should not be impacted.
5639 am__obj=conftest.${OBJEXT-o}
5640 am__minus_obj=
5641 ;;
5642 none) break ;;
5643 esac
5644 if depmode=$depmode \
5645 source=sub/conftest.c object=$am__obj \
5646 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5647 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5648 >/dev/null 2>conftest.err &&
5649 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5650 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5651 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5652 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5653 # icc doesn't choke on unknown options, it will just issue warnings
5654 # or remarks (even with -Werror). So we grep stderr for any message
5655 # that says an option was ignored or not supported.
5656 # When given -MP, icc 7.0 and 7.1 complain thusly:
5657 # icc: Command line warning: ignoring option '-M'; no argument required
5658 # The diagnosis changed in icc 8.0:
5659 # icc: Command line remark: option '-MP' not supported
5660 if (grep 'ignoring option' conftest.err ||
5661 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5662 am_cv_CXX_dependencies_compiler_type=$depmode
5663 break
5664 fi
5665 fi
5666 done
5667
5668 cd ..
5669 rm -rf conftest.dir
5670 else
5671 am_cv_CXX_dependencies_compiler_type=none
5672 fi
5673
5674 fi
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5676 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5677 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5678
5679 if
5680 test "x$enable_dependency_tracking" != xno \
5681 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5682 am__fastdepCXX_TRUE=
5683 am__fastdepCXX_FALSE='#'
5684 else
5685 am__fastdepCXX_TRUE='#'
5686 am__fastdepCXX_FALSE=
5687 fi
5688
5689
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5691 $as_echo_n "checking for ANSI C header files... " >&6; }
5692 if test "${ac_cv_header_stdc+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #include <stdlib.h>
5698 #include <stdarg.h>
5699 #include <string.h>
5700 #include <float.h>
5701
5702 int
5703 main ()
5704 {
5705
5706 ;
5707 return 0;
5708 }
5709 _ACEOF
5710 if ac_fn_c_try_compile "$LINENO"; then :
5711 ac_cv_header_stdc=yes
5712 else
5713 ac_cv_header_stdc=no
5714 fi
5715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716
5717 if test $ac_cv_header_stdc = yes; then
5718 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5721 #include <string.h>
5722
5723 _ACEOF
5724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5725 $EGREP "memchr" >/dev/null 2>&1; then :
5726
5727 else
5728 ac_cv_header_stdc=no
5729 fi
5730 rm -f conftest*
5731
5732 fi
5733
5734 if test $ac_cv_header_stdc = yes; then
5735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <stdlib.h>
5739
5740 _ACEOF
5741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5742 $EGREP "free" >/dev/null 2>&1; then :
5743
5744 else
5745 ac_cv_header_stdc=no
5746 fi
5747 rm -f conftest*
5748
5749 fi
5750
5751 if test $ac_cv_header_stdc = yes; then
5752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5753 if test "$cross_compiling" = yes; then :
5754 :
5755 else
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 #include <ctype.h>
5759 #include <stdlib.h>
5760 #if ((' ' & 0x0FF) == 0x020)
5761 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5762 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5763 #else
5764 # define ISLOWER(c) \
5765 (('a' <= (c) && (c) <= 'i') \
5766 || ('j' <= (c) && (c) <= 'r') \
5767 || ('s' <= (c) && (c) <= 'z'))
5768 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5769 #endif
5770
5771 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5772 int
5773 main ()
5774 {
5775 int i;
5776 for (i = 0; i < 256; i++)
5777 if (XOR (islower (i), ISLOWER (i))
5778 || toupper (i) != TOUPPER (i))
5779 return 2;
5780 return 0;
5781 }
5782 _ACEOF
5783 if ac_fn_c_try_run "$LINENO"; then :
5784
5785 else
5786 ac_cv_header_stdc=no
5787 fi
5788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5789 conftest.$ac_objext conftest.beam conftest.$ac_ext
5790 fi
5791
5792 fi
5793 fi
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5795 $as_echo "$ac_cv_header_stdc" >&6; }
5796 if test $ac_cv_header_stdc = yes; then
5797
5798 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5799
5800 fi
5801
5802 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5803 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5804 inttypes.h stdint.h unistd.h
5805 do :
5806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5807 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5808 "
5809 eval as_val=\$$as_ac_Header
5810 if test "x$as_val" = x""yes; then :
5811 cat >>confdefs.h <<_ACEOF
5812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5813 _ACEOF
5814
5815 fi
5816
5817 done
5818
5819
5820
5821 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5822 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5823 MINIX=yes
5824 else
5825 MINIX=
5826 fi
5827
5828
5829 if test "$MINIX" = yes; then
5830
5831 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5832
5833
5834 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5835
5836
5837 $as_echo "#define _MINIX 1" >>confdefs.h
5838
5839 fi
5840
5841
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5843 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5844 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5849
5850 # define __EXTENSIONS__ 1
5851 $ac_includes_default
5852 int
5853 main ()
5854 {
5855
5856 ;
5857 return 0;
5858 }
5859 _ACEOF
5860 if ac_fn_c_try_compile "$LINENO"; then :
5861 ac_cv_safe_to_define___extensions__=yes
5862 else
5863 ac_cv_safe_to_define___extensions__=no
5864 fi
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 fi
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5868 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5869 test $ac_cv_safe_to_define___extensions__ = yes &&
5870 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5871
5872 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5873
5874 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5875
5876 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5877
5878 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5879
5880
5881
5882
5883
5884 # The tests for host and target for $enable_largefile require
5885 # canonical names.
5886
5887
5888
5889 # As the $enable_largefile decision depends on --enable-plugins we must set it
5890 # even in directories otherwise not depending on the $plugins option.
5891
5892
5893 # Check whether --enable-plugins was given.
5894 if test "${enable_plugins+set}" = set; then :
5895 enableval=$enable_plugins; case "${enableval}" in
5896 yes | "") plugins=yes ;;
5897 no) plugins=no ;;
5898 *) plugins=yes ;;
5899 esac
5900 else
5901 plugins=no
5902 fi
5903
5904
5905
5906 case "${host}" in
5907 sparc-*-solaris*|i[3-7]86-*-solaris*)
5908 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5909 # are mutually exclusive; and without procfs support, the bfd/ elf module
5910 # cannot provide certain routines such as elfcore_write_prpsinfo
5911 # or elfcore_write_prstatus. So unless the user explicitly requested
5912 # large-file support through the --enable-largefile switch, disable
5913 # large-file support in favor of procfs support.
5914 test "${target}" = "${host}" -a "x$plugins" = xno \
5915 && : ${enable_largefile="no"}
5916 ;;
5917 esac
5918
5919 # Check whether --enable-largefile was given.
5920 if test "${enable_largefile+set}" = set; then :
5921 enableval=$enable_largefile;
5922 fi
5923
5924 if test "$enable_largefile" != no; then
5925
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5927 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5928 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 ac_cv_sys_largefile_CC=no
5932 if test "$GCC" != yes; then
5933 ac_save_CC=$CC
5934 while :; do
5935 # IRIX 6.2 and later do not support large files by default,
5936 # so use the C compiler's -n32 option if that helps.
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939 #include <sys/types.h>
5940 /* Check that off_t can represent 2**63 - 1 correctly.
5941 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5942 since some C++ compilers masquerading as C compilers
5943 incorrectly reject 9223372036854775807. */
5944 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5945 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5946 && LARGE_OFF_T % 2147483647 == 1)
5947 ? 1 : -1];
5948 int
5949 main ()
5950 {
5951
5952 ;
5953 return 0;
5954 }
5955 _ACEOF
5956 if ac_fn_c_try_compile "$LINENO"; then :
5957 break
5958 fi
5959 rm -f core conftest.err conftest.$ac_objext
5960 CC="$CC -n32"
5961 if ac_fn_c_try_compile "$LINENO"; then :
5962 ac_cv_sys_largefile_CC=' -n32'; break
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext
5965 break
5966 done
5967 CC=$ac_save_CC
5968 rm -f conftest.$ac_ext
5969 fi
5970 fi
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5972 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5973 if test "$ac_cv_sys_largefile_CC" != no; then
5974 CC=$CC$ac_cv_sys_largefile_CC
5975 fi
5976
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5978 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5979 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 while :; do
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 #include <sys/types.h>
5986 /* Check that off_t can represent 2**63 - 1 correctly.
5987 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5988 since some C++ compilers masquerading as C compilers
5989 incorrectly reject 9223372036854775807. */
5990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5991 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5992 && LARGE_OFF_T % 2147483647 == 1)
5993 ? 1 : -1];
5994 int
5995 main ()
5996 {
5997
5998 ;
5999 return 0;
6000 }
6001 _ACEOF
6002 if ac_fn_c_try_compile "$LINENO"; then :
6003 ac_cv_sys_file_offset_bits=no; break
6004 fi
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008 #define _FILE_OFFSET_BITS 64
6009 #include <sys/types.h>
6010 /* Check that off_t can represent 2**63 - 1 correctly.
6011 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6012 since some C++ compilers masquerading as C compilers
6013 incorrectly reject 9223372036854775807. */
6014 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6015 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6016 && LARGE_OFF_T % 2147483647 == 1)
6017 ? 1 : -1];
6018 int
6019 main ()
6020 {
6021
6022 ;
6023 return 0;
6024 }
6025 _ACEOF
6026 if ac_fn_c_try_compile "$LINENO"; then :
6027 ac_cv_sys_file_offset_bits=64; break
6028 fi
6029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 ac_cv_sys_file_offset_bits=unknown
6031 break
6032 done
6033 fi
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6035 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6036 case $ac_cv_sys_file_offset_bits in #(
6037 no | unknown) ;;
6038 *)
6039 cat >>confdefs.h <<_ACEOF
6040 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6041 _ACEOF
6042 ;;
6043 esac
6044 rm -rf conftest*
6045 if test $ac_cv_sys_file_offset_bits = unknown; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6047 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6048 if test "${ac_cv_sys_large_files+set}" = set; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 while :; do
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #include <sys/types.h>
6055 /* Check that off_t can represent 2**63 - 1 correctly.
6056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6057 since some C++ compilers masquerading as C compilers
6058 incorrectly reject 9223372036854775807. */
6059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6061 && LARGE_OFF_T % 2147483647 == 1)
6062 ? 1 : -1];
6063 int
6064 main ()
6065 {
6066
6067 ;
6068 return 0;
6069 }
6070 _ACEOF
6071 if ac_fn_c_try_compile "$LINENO"; then :
6072 ac_cv_sys_large_files=no; break
6073 fi
6074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6077 #define _LARGE_FILES 1
6078 #include <sys/types.h>
6079 /* Check that off_t can represent 2**63 - 1 correctly.
6080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6081 since some C++ compilers masquerading as C compilers
6082 incorrectly reject 9223372036854775807. */
6083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6085 && LARGE_OFF_T % 2147483647 == 1)
6086 ? 1 : -1];
6087 int
6088 main ()
6089 {
6090
6091 ;
6092 return 0;
6093 }
6094 _ACEOF
6095 if ac_fn_c_try_compile "$LINENO"; then :
6096 ac_cv_sys_large_files=1; break
6097 fi
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 ac_cv_sys_large_files=unknown
6100 break
6101 done
6102 fi
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6104 $as_echo "$ac_cv_sys_large_files" >&6; }
6105 case $ac_cv_sys_large_files in #(
6106 no | unknown) ;;
6107 *)
6108 cat >>confdefs.h <<_ACEOF
6109 #define _LARGE_FILES $ac_cv_sys_large_files
6110 _ACEOF
6111 ;;
6112 esac
6113 rm -rf conftest*
6114 fi
6115 fi
6116
6117
6118
6119
6120 case `pwd` in
6121 *\ * | *\ *)
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6123 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6124 esac
6125
6126
6127
6128 macro_version='2.2.7a'
6129 macro_revision='1.3134'
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143 ltmain="$ac_aux_dir/ltmain.sh"
6144
6145 # Backslashify metacharacters that are still active within
6146 # double-quoted strings.
6147 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6148
6149 # Same as above, but do not quote variable references.
6150 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6151
6152 # Sed substitution to delay expansion of an escaped shell variable in a
6153 # double_quote_subst'ed string.
6154 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6155
6156 # Sed substitution to delay expansion of an escaped single quote.
6157 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6158
6159 # Sed substitution to avoid accidental globbing in evaled expressions
6160 no_glob_subst='s/\*/\\\*/g'
6161
6162 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6163 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6164 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6165
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6167 $as_echo_n "checking how to print strings... " >&6; }
6168 # Test print first, because it will be a builtin if present.
6169 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6170 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6171 ECHO='print -r --'
6172 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6173 ECHO='printf %s\n'
6174 else
6175 # Use this function as a fallback that always works.
6176 func_fallback_echo ()
6177 {
6178 eval 'cat <<_LTECHO_EOF
6179 $1
6180 _LTECHO_EOF'
6181 }
6182 ECHO='func_fallback_echo'
6183 fi
6184
6185 # func_echo_all arg...
6186 # Invoke $ECHO with all args, space-separated.
6187 func_echo_all ()
6188 {
6189 $ECHO ""
6190 }
6191
6192 case "$ECHO" in
6193 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6194 $as_echo "printf" >&6; } ;;
6195 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6196 $as_echo "print -r" >&6; } ;;
6197 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6198 $as_echo "cat" >&6; } ;;
6199 esac
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6215 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6216 if test "${ac_cv_path_SED+set}" = set; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6220 for ac_i in 1 2 3 4 5 6 7; do
6221 ac_script="$ac_script$as_nl$ac_script"
6222 done
6223 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6224 { ac_script=; unset ac_script;}
6225 if test -z "$SED"; then
6226 ac_path_SED_found=false
6227 # Loop through the user's path and test for each of PROGNAME-LIST
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6230 do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
6233 for ac_prog in sed gsed; do
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6236 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6237 # Check for GNU ac_path_SED and select it if it is found.
6238 # Check for GNU $ac_path_SED
6239 case `"$ac_path_SED" --version 2>&1` in
6240 *GNU*)
6241 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6242 *)
6243 ac_count=0
6244 $as_echo_n 0123456789 >"conftest.in"
6245 while :
6246 do
6247 cat "conftest.in" "conftest.in" >"conftest.tmp"
6248 mv "conftest.tmp" "conftest.in"
6249 cp "conftest.in" "conftest.nl"
6250 $as_echo '' >> "conftest.nl"
6251 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6253 as_fn_arith $ac_count + 1 && ac_count=$as_val
6254 if test $ac_count -gt ${ac_path_SED_max-0}; then
6255 # Best one so far, save it but keep looking for a better one
6256 ac_cv_path_SED="$ac_path_SED"
6257 ac_path_SED_max=$ac_count
6258 fi
6259 # 10*(2^10) chars as input seems more than enough
6260 test $ac_count -gt 10 && break
6261 done
6262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6263 esac
6264
6265 $ac_path_SED_found && break 3
6266 done
6267 done
6268 done
6269 IFS=$as_save_IFS
6270 if test -z "$ac_cv_path_SED"; then
6271 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6272 fi
6273 else
6274 ac_cv_path_SED=$SED
6275 fi
6276
6277 fi
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6279 $as_echo "$ac_cv_path_SED" >&6; }
6280 SED="$ac_cv_path_SED"
6281 rm -f conftest.sed
6282
6283 test -z "$SED" && SED=sed
6284 Xsed="$SED -e 1s/^X//"
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6297 $as_echo_n "checking for fgrep... " >&6; }
6298 if test "${ac_cv_path_FGREP+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6302 then ac_cv_path_FGREP="$GREP -F"
6303 else
6304 if test -z "$FGREP"; then
6305 ac_path_FGREP_found=false
6306 # Loop through the user's path and test for each of PROGNAME-LIST
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6309 do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_prog in fgrep; do
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6315 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6316 # Check for GNU ac_path_FGREP and select it if it is found.
6317 # Check for GNU $ac_path_FGREP
6318 case `"$ac_path_FGREP" --version 2>&1` in
6319 *GNU*)
6320 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6321 *)
6322 ac_count=0
6323 $as_echo_n 0123456789 >"conftest.in"
6324 while :
6325 do
6326 cat "conftest.in" "conftest.in" >"conftest.tmp"
6327 mv "conftest.tmp" "conftest.in"
6328 cp "conftest.in" "conftest.nl"
6329 $as_echo 'FGREP' >> "conftest.nl"
6330 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6332 as_fn_arith $ac_count + 1 && ac_count=$as_val
6333 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6334 # Best one so far, save it but keep looking for a better one
6335 ac_cv_path_FGREP="$ac_path_FGREP"
6336 ac_path_FGREP_max=$ac_count
6337 fi
6338 # 10*(2^10) chars as input seems more than enough
6339 test $ac_count -gt 10 && break
6340 done
6341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6342 esac
6343
6344 $ac_path_FGREP_found && break 3
6345 done
6346 done
6347 done
6348 IFS=$as_save_IFS
6349 if test -z "$ac_cv_path_FGREP"; then
6350 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6351 fi
6352 else
6353 ac_cv_path_FGREP=$FGREP
6354 fi
6355
6356 fi
6357 fi
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6359 $as_echo "$ac_cv_path_FGREP" >&6; }
6360 FGREP="$ac_cv_path_FGREP"
6361
6362
6363 test -z "$GREP" && GREP=grep
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383 # Check whether --with-gnu-ld was given.
6384 if test "${with_gnu_ld+set}" = set; then :
6385 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6386 else
6387 with_gnu_ld=no
6388 fi
6389
6390 ac_prog=ld
6391 if test "$GCC" = yes; then
6392 # Check if gcc -print-prog-name=ld gives a path.
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6394 $as_echo_n "checking for ld used by $CC... " >&6; }
6395 case $host in
6396 *-*-mingw*)
6397 # gcc leaves a trailing carriage return which upsets mingw
6398 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6399 *)
6400 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6401 esac
6402 case $ac_prog in
6403 # Accept absolute paths.
6404 [\\/]* | ?:[\\/]*)
6405 re_direlt='/[^/][^/]*/\.\./'
6406 # Canonicalize the pathname of ld
6407 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6408 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6409 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6410 done
6411 test -z "$LD" && LD="$ac_prog"
6412 ;;
6413 "")
6414 # If it fails, then pretend we aren't using GCC.
6415 ac_prog=ld
6416 ;;
6417 *)
6418 # If it is relative, then search for the first ld in PATH.
6419 with_gnu_ld=unknown
6420 ;;
6421 esac
6422 elif test "$with_gnu_ld" = yes; then
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6424 $as_echo_n "checking for GNU ld... " >&6; }
6425 else
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6427 $as_echo_n "checking for non-GNU ld... " >&6; }
6428 fi
6429 if test "${lt_cv_path_LD+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 if test -z "$LD"; then
6433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6434 for ac_dir in $PATH; do
6435 IFS="$lt_save_ifs"
6436 test -z "$ac_dir" && ac_dir=.
6437 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6438 lt_cv_path_LD="$ac_dir/$ac_prog"
6439 # Check to see if the program is GNU ld. I'd rather use --version,
6440 # but apparently some variants of GNU ld only accept -v.
6441 # Break only if it was the GNU/non-GNU ld that we prefer.
6442 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6443 *GNU* | *'with BFD'*)
6444 test "$with_gnu_ld" != no && break
6445 ;;
6446 *)
6447 test "$with_gnu_ld" != yes && break
6448 ;;
6449 esac
6450 fi
6451 done
6452 IFS="$lt_save_ifs"
6453 else
6454 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6455 fi
6456 fi
6457
6458 LD="$lt_cv_path_LD"
6459 if test -n "$LD"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6461 $as_echo "$LD" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6465 fi
6466 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6468 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6469 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6473 case `$LD -v 2>&1 </dev/null` in
6474 *GNU* | *'with BFD'*)
6475 lt_cv_prog_gnu_ld=yes
6476 ;;
6477 *)
6478 lt_cv_prog_gnu_ld=no
6479 ;;
6480 esac
6481 fi
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6483 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6484 with_gnu_ld=$lt_cv_prog_gnu_ld
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6495 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6496 if test "${lt_cv_path_NM+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 if test -n "$NM"; then
6500 # Let the user override the test.
6501 lt_cv_path_NM="$NM"
6502 else
6503 lt_nm_to_check="${ac_tool_prefix}nm"
6504 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6505 lt_nm_to_check="$lt_nm_to_check nm"
6506 fi
6507 for lt_tmp_nm in $lt_nm_to_check; do
6508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6509 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6510 IFS="$lt_save_ifs"
6511 test -z "$ac_dir" && ac_dir=.
6512 tmp_nm="$ac_dir/$lt_tmp_nm"
6513 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6514 # Check to see if the nm accepts a BSD-compat flag.
6515 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6516 # nm: unknown option "B" ignored
6517 # Tru64's nm complains that /dev/null is an invalid object file
6518 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6519 */dev/null* | *'Invalid file or object type'*)
6520 lt_cv_path_NM="$tmp_nm -B"
6521 break
6522 ;;
6523 *)
6524 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6525 */dev/null*)
6526 lt_cv_path_NM="$tmp_nm -p"
6527 break
6528 ;;
6529 *)
6530 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6531 continue # so that we can try to find one that supports BSD flags
6532 ;;
6533 esac
6534 ;;
6535 esac
6536 fi
6537 done
6538 IFS="$lt_save_ifs"
6539 done
6540 : ${lt_cv_path_NM=no}
6541 fi
6542 fi
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6544 $as_echo "$lt_cv_path_NM" >&6; }
6545 if test "$lt_cv_path_NM" != "no"; then
6546 NM="$lt_cv_path_NM"
6547 else
6548 # Didn't find any BSD compatible name lister, look for dumpbin.
6549 if test -n "$DUMPBIN"; then :
6550 # Let the user override the test.
6551 else
6552 if test -n "$ac_tool_prefix"; then
6553 for ac_prog in dumpbin "link -dump"
6554 do
6555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 if test -n "$DUMPBIN"; then
6563 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 DUMPBIN=$ac_cv_prog_DUMPBIN
6583 if test -n "$DUMPBIN"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6585 $as_echo "$DUMPBIN" >&6; }
6586 else
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591
6592 test -n "$DUMPBIN" && break
6593 done
6594 fi
6595 if test -z "$DUMPBIN"; then
6596 ac_ct_DUMPBIN=$DUMPBIN
6597 for ac_prog in dumpbin "link -dump"
6598 do
6599 # Extract the first word of "$ac_prog", so it can be a program name with args.
6600 set dummy $ac_prog; ac_word=$2
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 if test -n "$ac_ct_DUMPBIN"; then
6607 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6616 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 break 2
6619 fi
6620 done
6621 done
6622 IFS=$as_save_IFS
6623
6624 fi
6625 fi
6626 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6627 if test -n "$ac_ct_DUMPBIN"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6629 $as_echo "$ac_ct_DUMPBIN" >&6; }
6630 else
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634
6635
6636 test -n "$ac_ct_DUMPBIN" && break
6637 done
6638
6639 if test "x$ac_ct_DUMPBIN" = x; then
6640 DUMPBIN=":"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643 yes:)
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646 ac_tool_warned=yes ;;
6647 esac
6648 DUMPBIN=$ac_ct_DUMPBIN
6649 fi
6650 fi
6651
6652 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6653 *COFF*)
6654 DUMPBIN="$DUMPBIN -symbols"
6655 ;;
6656 *)
6657 DUMPBIN=:
6658 ;;
6659 esac
6660 fi
6661
6662 if test "$DUMPBIN" != ":"; then
6663 NM="$DUMPBIN"
6664 fi
6665 fi
6666 test -z "$NM" && NM=nm
6667
6668
6669
6670
6671
6672
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6674 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6675 if test "${lt_cv_nm_interface+set}" = set; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 lt_cv_nm_interface="BSD nm"
6679 echo "int some_variable = 0;" > conftest.$ac_ext
6680 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6681 (eval "$ac_compile" 2>conftest.err)
6682 cat conftest.err >&5
6683 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6684 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6685 cat conftest.err >&5
6686 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6687 cat conftest.out >&5
6688 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6689 lt_cv_nm_interface="MS dumpbin"
6690 fi
6691 rm -f conftest*
6692 fi
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6694 $as_echo "$lt_cv_nm_interface" >&6; }
6695
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6697 $as_echo_n "checking whether ln -s works... " >&6; }
6698 LN_S=$as_ln_s
6699 if test "$LN_S" = "ln -s"; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6701 $as_echo "yes" >&6; }
6702 else
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6704 $as_echo "no, using $LN_S" >&6; }
6705 fi
6706
6707 # find the maximum length of command line arguments
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6709 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6710 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 i=0
6714 teststring="ABCD"
6715
6716 case $build_os in
6717 msdosdjgpp*)
6718 # On DJGPP, this test can blow up pretty badly due to problems in libc
6719 # (any single argument exceeding 2000 bytes causes a buffer overrun
6720 # during glob expansion). Even if it were fixed, the result of this
6721 # check would be larger than it should be.
6722 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6723 ;;
6724
6725 gnu*)
6726 # Under GNU Hurd, this test is not required because there is
6727 # no limit to the length of command line arguments.
6728 # Libtool will interpret -1 as no limit whatsoever
6729 lt_cv_sys_max_cmd_len=-1;
6730 ;;
6731
6732 cygwin* | mingw* | cegcc*)
6733 # On Win9x/ME, this test blows up -- it succeeds, but takes
6734 # about 5 minutes as the teststring grows exponentially.
6735 # Worse, since 9x/ME are not pre-emptively multitasking,
6736 # you end up with a "frozen" computer, even though with patience
6737 # the test eventually succeeds (with a max line length of 256k).
6738 # Instead, let's just punt: use the minimum linelength reported by
6739 # all of the supported platforms: 8192 (on NT/2K/XP).
6740 lt_cv_sys_max_cmd_len=8192;
6741 ;;
6742
6743 mint*)
6744 # On MiNT this can take a long time and run out of memory.
6745 lt_cv_sys_max_cmd_len=8192;
6746 ;;
6747
6748 amigaos*)
6749 # On AmigaOS with pdksh, this test takes hours, literally.
6750 # So we just punt and use a minimum line length of 8192.
6751 lt_cv_sys_max_cmd_len=8192;
6752 ;;
6753
6754 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6755 # This has been around since 386BSD, at least. Likely further.
6756 if test -x /sbin/sysctl; then
6757 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6758 elif test -x /usr/sbin/sysctl; then
6759 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6760 else
6761 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6762 fi
6763 # And add a safety zone
6764 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6766 ;;
6767
6768 interix*)
6769 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6770 lt_cv_sys_max_cmd_len=196608
6771 ;;
6772
6773 osf*)
6774 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6775 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6776 # nice to cause kernel panics so lets avoid the loop below.
6777 # First set a reasonable default.
6778 lt_cv_sys_max_cmd_len=16384
6779 #
6780 if test -x /sbin/sysconfig; then
6781 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6782 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6783 esac
6784 fi
6785 ;;
6786 sco3.2v5*)
6787 lt_cv_sys_max_cmd_len=102400
6788 ;;
6789 sysv5* | sco5v6* | sysv4.2uw2*)
6790 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6791 if test -n "$kargmax"; then
6792 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6793 else
6794 lt_cv_sys_max_cmd_len=32768
6795 fi
6796 ;;
6797 *)
6798 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6799 if test -n "$lt_cv_sys_max_cmd_len"; then
6800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6802 else
6803 # Make teststring a little bigger before we do anything with it.
6804 # a 1K string should be a reasonable start.
6805 for i in 1 2 3 4 5 6 7 8 ; do
6806 teststring=$teststring$teststring
6807 done
6808 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6809 # If test is not a shell built-in, we'll probably end up computing a
6810 # maximum length that is only half of the actual maximum length, but
6811 # we can't tell.
6812 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6813 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6814 test $i != 17 # 1/2 MB should be enough
6815 do
6816 i=`expr $i + 1`
6817 teststring=$teststring$teststring
6818 done
6819 # Only check the string length outside the loop.
6820 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6821 teststring=
6822 # Add a significant safety factor because C++ compilers can tack on
6823 # massive amounts of additional arguments before passing them to the
6824 # linker. It appears as though 1/2 is a usable value.
6825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6826 fi
6827 ;;
6828 esac
6829
6830 fi
6831
6832 if test -n $lt_cv_sys_max_cmd_len ; then
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6834 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6835 else
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6837 $as_echo "none" >&6; }
6838 fi
6839 max_cmd_len=$lt_cv_sys_max_cmd_len
6840
6841
6842
6843
6844
6845
6846 : ${CP="cp -f"}
6847 : ${MV="mv -f"}
6848 : ${RM="rm -f"}
6849
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6851 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6852 # Try some XSI features
6853 xsi_shell=no
6854 ( _lt_dummy="a/b/c"
6855 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6856 = c,a/b,, \
6857 && eval 'test $(( 1 + 1 )) -eq 2 \
6858 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6859 && xsi_shell=yes
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6861 $as_echo "$xsi_shell" >&6; }
6862
6863
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6865 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6866 lt_shell_append=no
6867 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6868 >/dev/null 2>&1 \
6869 && lt_shell_append=yes
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6871 $as_echo "$lt_shell_append" >&6; }
6872
6873
6874 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6875 lt_unset=unset
6876 else
6877 lt_unset=false
6878 fi
6879
6880
6881
6882
6883
6884 # test EBCDIC or ASCII
6885 case `echo X|tr X '\101'` in
6886 A) # ASCII based system
6887 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6888 lt_SP2NL='tr \040 \012'
6889 lt_NL2SP='tr \015\012 \040\040'
6890 ;;
6891 *) # EBCDIC based system
6892 lt_SP2NL='tr \100 \n'
6893 lt_NL2SP='tr \r\n \100\100'
6894 ;;
6895 esac
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6906 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6907 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 lt_cv_ld_reload_flag='-r'
6911 fi
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6913 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6914 reload_flag=$lt_cv_ld_reload_flag
6915 case $reload_flag in
6916 "" | " "*) ;;
6917 *) reload_flag=" $reload_flag" ;;
6918 esac
6919 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6920 case $host_os in
6921 darwin*)
6922 if test "$GCC" = yes; then
6923 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6924 else
6925 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6926 fi
6927 ;;
6928 esac
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938 if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6940 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$OBJDUMP"; then
6947 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6963
6964 fi
6965 fi
6966 OBJDUMP=$ac_cv_prog_OBJDUMP
6967 if test -n "$OBJDUMP"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6969 $as_echo "$OBJDUMP" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6973 fi
6974
6975
6976 fi
6977 if test -z "$ac_cv_prog_OBJDUMP"; then
6978 ac_ct_OBJDUMP=$OBJDUMP
6979 # Extract the first word of "objdump", so it can be a program name with args.
6980 set dummy objdump; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 if test -n "$ac_ct_OBJDUMP"; then
6987 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000 done
7001 done
7002 IFS=$as_save_IFS
7003
7004 fi
7005 fi
7006 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7007 if test -n "$ac_ct_OBJDUMP"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7009 $as_echo "$ac_ct_OBJDUMP" >&6; }
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7013 fi
7014
7015 if test "x$ac_ct_OBJDUMP" = x; then
7016 OBJDUMP="false"
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019 yes:)
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022 ac_tool_warned=yes ;;
7023 esac
7024 OBJDUMP=$ac_ct_OBJDUMP
7025 fi
7026 else
7027 OBJDUMP="$ac_cv_prog_OBJDUMP"
7028 fi
7029
7030 test -z "$OBJDUMP" && OBJDUMP=objdump
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7041 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7042 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 lt_cv_file_magic_cmd='$MAGIC_CMD'
7046 lt_cv_file_magic_test_file=
7047 lt_cv_deplibs_check_method='unknown'
7048 # Need to set the preceding variable on all platforms that support
7049 # interlibrary dependencies.
7050 # 'none' -- dependencies not supported.
7051 # `unknown' -- same as none, but documents that we really don't know.
7052 # 'pass_all' -- all dependencies passed with no checks.
7053 # 'test_compile' -- check by making test program.
7054 # 'file_magic [[regex]]' -- check by looking for files in library path
7055 # which responds to the $file_magic_cmd with a given extended regex.
7056 # If you have `file' or equivalent on your system and you're not sure
7057 # whether `pass_all' will *always* work, you probably want this one.
7058
7059 case $host_os in
7060 aix[4-9]*)
7061 lt_cv_deplibs_check_method=pass_all
7062 ;;
7063
7064 beos*)
7065 lt_cv_deplibs_check_method=pass_all
7066 ;;
7067
7068 bsdi[45]*)
7069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7070 lt_cv_file_magic_cmd='/usr/bin/file -L'
7071 lt_cv_file_magic_test_file=/shlib/libc.so
7072 ;;
7073
7074 cygwin*)
7075 # func_win32_libid is a shell function defined in ltmain.sh
7076 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7077 lt_cv_file_magic_cmd='func_win32_libid'
7078 ;;
7079
7080 mingw* | pw32*)
7081 # Base MSYS/MinGW do not provide the 'file' command needed by
7082 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7083 # unless we find 'file', for example because we are cross-compiling.
7084 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7085 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7086 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7087 lt_cv_file_magic_cmd='func_win32_libid'
7088 else
7089 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7090 lt_cv_file_magic_cmd='$OBJDUMP -f'
7091 fi
7092 ;;
7093
7094 cegcc*)
7095 # use the weaker test based on 'objdump'. See mingw*.
7096 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7097 lt_cv_file_magic_cmd='$OBJDUMP -f'
7098 ;;
7099
7100 darwin* | rhapsody*)
7101 lt_cv_deplibs_check_method=pass_all
7102 ;;
7103
7104 freebsd* | dragonfly*)
7105 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7106 case $host_cpu in
7107 i*86 )
7108 # Not sure whether the presence of OpenBSD here was a mistake.
7109 # Let's accept both of them until this is cleared up.
7110 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7111 lt_cv_file_magic_cmd=/usr/bin/file
7112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7113 ;;
7114 esac
7115 else
7116 lt_cv_deplibs_check_method=pass_all
7117 fi
7118 ;;
7119
7120 gnu*)
7121 lt_cv_deplibs_check_method=pass_all
7122 ;;
7123
7124 haiku*)
7125 lt_cv_deplibs_check_method=pass_all
7126 ;;
7127
7128 hpux10.20* | hpux11*)
7129 lt_cv_file_magic_cmd=/usr/bin/file
7130 case $host_cpu in
7131 ia64*)
7132 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7133 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7134 ;;
7135 hppa*64*)
7136 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]'
7137 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7138 ;;
7139 *)
7140 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7141 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7142 ;;
7143 esac
7144 ;;
7145
7146 interix[3-9]*)
7147 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7149 ;;
7150
7151 irix5* | irix6* | nonstopux*)
7152 case $LD in
7153 *-32|*"-32 ") libmagic=32-bit;;
7154 *-n32|*"-n32 ") libmagic=N32;;
7155 *-64|*"-64 ") libmagic=64-bit;;
7156 *) libmagic=never-match;;
7157 esac
7158 lt_cv_deplibs_check_method=pass_all
7159 ;;
7160
7161 # This must be Linux ELF.
7162 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7163 lt_cv_deplibs_check_method=pass_all
7164 ;;
7165
7166 netbsd*)
7167 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7169 else
7170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7171 fi
7172 ;;
7173
7174 newos6*)
7175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7176 lt_cv_file_magic_cmd=/usr/bin/file
7177 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7178 ;;
7179
7180 *nto* | *qnx*)
7181 lt_cv_deplibs_check_method=pass_all
7182 ;;
7183
7184 openbsd*)
7185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7187 else
7188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7189 fi
7190 ;;
7191
7192 osf3* | osf4* | osf5*)
7193 lt_cv_deplibs_check_method=pass_all
7194 ;;
7195
7196 rdos*)
7197 lt_cv_deplibs_check_method=pass_all
7198 ;;
7199
7200 solaris*)
7201 lt_cv_deplibs_check_method=pass_all
7202 ;;
7203
7204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7205 lt_cv_deplibs_check_method=pass_all
7206 ;;
7207
7208 sysv4 | sysv4.3*)
7209 case $host_vendor in
7210 motorola)
7211 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]'
7212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7213 ;;
7214 ncr)
7215 lt_cv_deplibs_check_method=pass_all
7216 ;;
7217 sequent)
7218 lt_cv_file_magic_cmd='/bin/file'
7219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7220 ;;
7221 sni)
7222 lt_cv_file_magic_cmd='/bin/file'
7223 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7224 lt_cv_file_magic_test_file=/lib/libc.so
7225 ;;
7226 siemens)
7227 lt_cv_deplibs_check_method=pass_all
7228 ;;
7229 pc)
7230 lt_cv_deplibs_check_method=pass_all
7231 ;;
7232 esac
7233 ;;
7234
7235 tpf*)
7236 lt_cv_deplibs_check_method=pass_all
7237 ;;
7238 esac
7239
7240 fi
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7242 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7243 file_magic_cmd=$lt_cv_file_magic_cmd
7244 deplibs_check_method=$lt_cv_deplibs_check_method
7245 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258 if test -n "$ac_tool_prefix"; then
7259 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7260 set dummy ${ac_tool_prefix}ar; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if test "${ac_cv_prog_AR+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 if test -n "$AR"; then
7267 ac_cv_prog_AR="$AR" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276 ac_cv_prog_AR="${ac_tool_prefix}ar"
7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7279 fi
7280 done
7281 done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 AR=$ac_cv_prog_AR
7287 if test -n "$AR"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7289 $as_echo "$AR" >&6; }
7290 else
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295
7296 fi
7297 if test -z "$ac_cv_prog_AR"; then
7298 ac_ct_AR=$AR
7299 # Extract the first word of "ar", so it can be a program name with args.
7300 set dummy ar; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 if test -n "$ac_ct_AR"; then
7307 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_prog_ac_ct_AR="ar"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7319 fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7323
7324 fi
7325 fi
7326 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7327 if test -n "$ac_ct_AR"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7329 $as_echo "$ac_ct_AR" >&6; }
7330 else
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333 fi
7334
7335 if test "x$ac_ct_AR" = x; then
7336 AR="false"
7337 else
7338 case $cross_compiling:$ac_tool_warned in
7339 yes:)
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7342 ac_tool_warned=yes ;;
7343 esac
7344 AR=$ac_ct_AR
7345 fi
7346 else
7347 AR="$ac_cv_prog_AR"
7348 fi
7349
7350 test -z "$AR" && AR=ar
7351 test -z "$AR_FLAGS" && AR_FLAGS=cru
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363 if test -n "$ac_tool_prefix"; then
7364 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7365 set dummy ${ac_tool_prefix}strip; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_STRIP+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test -n "$STRIP"; then
7372 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 break 2
7384 fi
7385 done
7386 done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 STRIP=$ac_cv_prog_STRIP
7392 if test -n "$STRIP"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7394 $as_echo "$STRIP" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400
7401 fi
7402 if test -z "$ac_cv_prog_STRIP"; then
7403 ac_ct_STRIP=$STRIP
7404 # Extract the first word of "strip", so it can be a program name with args.
7405 set dummy strip; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$ac_ct_STRIP"; then
7412 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_prog_ac_ct_STRIP="strip"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7432 if test -n "$ac_ct_STRIP"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7434 $as_echo "$ac_ct_STRIP" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 fi
7439
7440 if test "x$ac_ct_STRIP" = x; then
7441 STRIP=":"
7442 else
7443 case $cross_compiling:$ac_tool_warned in
7444 yes:)
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447 ac_tool_warned=yes ;;
7448 esac
7449 STRIP=$ac_ct_STRIP
7450 fi
7451 else
7452 STRIP="$ac_cv_prog_STRIP"
7453 fi
7454
7455 test -z "$STRIP" && STRIP=:
7456
7457
7458
7459
7460
7461
7462 if test -n "$ac_tool_prefix"; then
7463 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7464 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 $as_echo_n "checking for $ac_word... " >&6; }
7467 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 if test -n "$RANLIB"; then
7471 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7472 else
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 break 2
7483 fi
7484 done
7485 done
7486 IFS=$as_save_IFS
7487
7488 fi
7489 fi
7490 RANLIB=$ac_cv_prog_RANLIB
7491 if test -n "$RANLIB"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7493 $as_echo "$RANLIB" >&6; }
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7497 fi
7498
7499
7500 fi
7501 if test -z "$ac_cv_prog_RANLIB"; then
7502 ac_ct_RANLIB=$RANLIB
7503 # Extract the first word of "ranlib", so it can be a program name with args.
7504 set dummy ranlib; ac_word=$2
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 if test -n "$ac_ct_RANLIB"; then
7511 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520 ac_cv_prog_ac_ct_RANLIB="ranlib"
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7523 fi
7524 done
7525 done
7526 IFS=$as_save_IFS
7527
7528 fi
7529 fi
7530 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7531 if test -n "$ac_ct_RANLIB"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7533 $as_echo "$ac_ct_RANLIB" >&6; }
7534 else
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7537 fi
7538
7539 if test "x$ac_ct_RANLIB" = x; then
7540 RANLIB=":"
7541 else
7542 case $cross_compiling:$ac_tool_warned in
7543 yes:)
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7546 ac_tool_warned=yes ;;
7547 esac
7548 RANLIB=$ac_ct_RANLIB
7549 fi
7550 else
7551 RANLIB="$ac_cv_prog_RANLIB"
7552 fi
7553
7554 test -z "$RANLIB" && RANLIB=:
7555
7556
7557
7558
7559
7560
7561 # Determine commands to create old-style static archives.
7562 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7563 old_postinstall_cmds='chmod 644 $oldlib'
7564 old_postuninstall_cmds=
7565
7566 if test -n "$RANLIB"; then
7567 case $host_os in
7568 openbsd*)
7569 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7570 ;;
7571 *)
7572 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7573 ;;
7574 esac
7575 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7576 fi
7577
7578 case $host_os in
7579 darwin*)
7580 lock_old_archive_extraction=yes ;;
7581 *)
7582 lock_old_archive_extraction=no ;;
7583 esac
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623 # If no C compiler was specified, use CC.
7624 LTCC=${LTCC-"$CC"}
7625
7626 # If no C compiler flags were specified, use CFLAGS.
7627 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7628
7629 # Allow CC to be a program name with arguments.
7630 compiler=$CC
7631
7632
7633 # Check for command to grab the raw symbol name followed by C symbol from nm.
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7635 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7636 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639
7640 # These are sane defaults that work on at least a few old systems.
7641 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7642
7643 # Character class describing NM global symbol codes.
7644 symcode='[BCDEGRST]'
7645
7646 # Regexp to match symbols that can be accessed directly from C.
7647 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7648
7649 # Define system-specific variables.
7650 case $host_os in
7651 aix*)
7652 symcode='[BCDT]'
7653 ;;
7654 cygwin* | mingw* | pw32* | cegcc*)
7655 symcode='[ABCDGISTW]'
7656 ;;
7657 hpux*)
7658 if test "$host_cpu" = ia64; then
7659 symcode='[ABCDEGRST]'
7660 fi
7661 ;;
7662 irix* | nonstopux*)
7663 symcode='[BCDEGRST]'
7664 ;;
7665 osf*)
7666 symcode='[BCDEGQRST]'
7667 ;;
7668 solaris*)
7669 symcode='[BDRT]'
7670 ;;
7671 sco3.2v5*)
7672 symcode='[DT]'
7673 ;;
7674 sysv4.2uw2*)
7675 symcode='[DT]'
7676 ;;
7677 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7678 symcode='[ABDT]'
7679 ;;
7680 sysv4)
7681 symcode='[DFNSTU]'
7682 ;;
7683 esac
7684
7685 # If we're using GNU nm, then use its standard symbol codes.
7686 case `$NM -V 2>&1` in
7687 *GNU* | *'with BFD'*)
7688 symcode='[ABCDGIRSTW]' ;;
7689 esac
7690
7691 # Transform an extracted symbol line into a proper C declaration.
7692 # Some systems (esp. on ia64) link data and code symbols differently,
7693 # so use this general approach.
7694 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7695
7696 # Transform an extracted symbol line into symbol name and symbol address
7697 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7698 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'"
7699
7700 # Handle CRLF in mingw tool chain
7701 opt_cr=
7702 case $build_os in
7703 mingw*)
7704 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7705 ;;
7706 esac
7707
7708 # Try without a prefix underscore, then with it.
7709 for ac_symprfx in "" "_"; do
7710
7711 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7712 symxfrm="\\1 $ac_symprfx\\2 \\2"
7713
7714 # Write the raw and C identifiers.
7715 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7716 # Fake it for dumpbin and say T for any non-static function
7717 # and D for any global variable.
7718 # Also find C++ and __fastcall symbols from MSVC++,
7719 # which start with @ or ?.
7720 lt_cv_sys_global_symbol_pipe="$AWK '"\
7721 " {last_section=section; section=\$ 3};"\
7722 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7723 " \$ 0!~/External *\|/{next};"\
7724 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7725 " {if(hide[section]) next};"\
7726 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7727 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7728 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7729 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7730 " ' prfx=^$ac_symprfx"
7731 else
7732 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7733 fi
7734
7735 # Check to see that the pipe works correctly.
7736 pipe_works=no
7737
7738 rm -f conftest*
7739 cat > conftest.$ac_ext <<_LT_EOF
7740 #ifdef __cplusplus
7741 extern "C" {
7742 #endif
7743 char nm_test_var;
7744 void nm_test_func(void);
7745 void nm_test_func(void){}
7746 #ifdef __cplusplus
7747 }
7748 #endif
7749 int main(){nm_test_var='a';nm_test_func();return(0);}
7750 _LT_EOF
7751
7752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7753 (eval $ac_compile) 2>&5
7754 ac_status=$?
7755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7756 test $ac_status = 0; }; then
7757 # Now try to grab the symbols.
7758 nlist=conftest.nm
7759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7760 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7761 ac_status=$?
7762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7763 test $ac_status = 0; } && test -s "$nlist"; then
7764 # Try sorting and uniquifying the output.
7765 if sort "$nlist" | uniq > "$nlist"T; then
7766 mv -f "$nlist"T "$nlist"
7767 else
7768 rm -f "$nlist"T
7769 fi
7770
7771 # Make sure that we snagged all the symbols we need.
7772 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7773 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7774 cat <<_LT_EOF > conftest.$ac_ext
7775 #ifdef __cplusplus
7776 extern "C" {
7777 #endif
7778
7779 _LT_EOF
7780 # Now generate the symbol file.
7781 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7782
7783 cat <<_LT_EOF >> conftest.$ac_ext
7784
7785 /* The mapping between symbol names and symbols. */
7786 const struct {
7787 const char *name;
7788 void *address;
7789 }
7790 lt__PROGRAM__LTX_preloaded_symbols[] =
7791 {
7792 { "@PROGRAM@", (void *) 0 },
7793 _LT_EOF
7794 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7795 cat <<\_LT_EOF >> conftest.$ac_ext
7796 {0, (void *) 0}
7797 };
7798
7799 /* This works around a problem in FreeBSD linker */
7800 #ifdef FREEBSD_WORKAROUND
7801 static const void *lt_preloaded_setup() {
7802 return lt__PROGRAM__LTX_preloaded_symbols;
7803 }
7804 #endif
7805
7806 #ifdef __cplusplus
7807 }
7808 #endif
7809 _LT_EOF
7810 # Now try linking the two files.
7811 mv conftest.$ac_objext conftstm.$ac_objext
7812 lt_save_LIBS="$LIBS"
7813 lt_save_CFLAGS="$CFLAGS"
7814 LIBS="conftstm.$ac_objext"
7815 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7817 (eval $ac_link) 2>&5
7818 ac_status=$?
7819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7820 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7821 pipe_works=yes
7822 fi
7823 LIBS="$lt_save_LIBS"
7824 CFLAGS="$lt_save_CFLAGS"
7825 else
7826 echo "cannot find nm_test_func in $nlist" >&5
7827 fi
7828 else
7829 echo "cannot find nm_test_var in $nlist" >&5
7830 fi
7831 else
7832 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7833 fi
7834 else
7835 echo "$progname: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7837 fi
7838 rm -rf conftest* conftst*
7839
7840 # Do not use the global_symbol_pipe unless it works.
7841 if test "$pipe_works" = yes; then
7842 break
7843 else
7844 lt_cv_sys_global_symbol_pipe=
7845 fi
7846 done
7847
7848 fi
7849
7850 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7851 lt_cv_sys_global_symbol_to_cdecl=
7852 fi
7853 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7855 $as_echo "failed" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7858 $as_echo "ok" >&6; }
7859 fi
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882 # Check whether --enable-libtool-lock was given.
7883 if test "${enable_libtool_lock+set}" = set; then :
7884 enableval=$enable_libtool_lock;
7885 fi
7886
7887 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7888
7889 # Some flags need to be propagated to the compiler or linker for good
7890 # libtool support.
7891 case $host in
7892 ia64-*-hpux*)
7893 # Find out which ABI we are using.
7894 echo 'int i;' > conftest.$ac_ext
7895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7896 (eval $ac_compile) 2>&5
7897 ac_status=$?
7898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7899 test $ac_status = 0; }; then
7900 case `/usr/bin/file conftest.$ac_objext` in
7901 *ELF-32*)
7902 HPUX_IA64_MODE="32"
7903 ;;
7904 *ELF-64*)
7905 HPUX_IA64_MODE="64"
7906 ;;
7907 esac
7908 fi
7909 rm -rf conftest*
7910 ;;
7911 *-*-irix6*)
7912 # Find out which ABI we are using.
7913 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7915 (eval $ac_compile) 2>&5
7916 ac_status=$?
7917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7918 test $ac_status = 0; }; then
7919 if test "$lt_cv_prog_gnu_ld" = yes; then
7920 case `/usr/bin/file conftest.$ac_objext` in
7921 *32-bit*)
7922 LD="${LD-ld} -melf32bsmip"
7923 ;;
7924 *N32*)
7925 LD="${LD-ld} -melf32bmipn32"
7926 ;;
7927 *64-bit*)
7928 LD="${LD-ld} -melf64bmip"
7929 ;;
7930 esac
7931 else
7932 case `/usr/bin/file conftest.$ac_objext` in
7933 *32-bit*)
7934 LD="${LD-ld} -32"
7935 ;;
7936 *N32*)
7937 LD="${LD-ld} -n32"
7938 ;;
7939 *64-bit*)
7940 LD="${LD-ld} -64"
7941 ;;
7942 esac
7943 fi
7944 fi
7945 rm -rf conftest*
7946 ;;
7947
7948 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7949 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7950 # Find out which ABI we are using.
7951 echo 'int i;' > conftest.$ac_ext
7952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7953 (eval $ac_compile) 2>&5
7954 ac_status=$?
7955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7956 test $ac_status = 0; }; then
7957 case `/usr/bin/file conftest.o` in
7958 *32-bit*)
7959 case $host in
7960 x86_64-*kfreebsd*-gnu)
7961 LD="${LD-ld} -m elf_i386_fbsd"
7962 ;;
7963 x86_64-*linux*)
7964 case `/usr/bin/file conftest.o` in
7965 *x86-64*)
7966 LD="${LD-ld} -m elf32_x86_64"
7967 ;;
7968 *)
7969 LD="${LD-ld} -m elf_i386"
7970 ;;
7971 esac
7972 ;;
7973 ppc64-*linux*|powerpc64-*linux*)
7974 LD="${LD-ld} -m elf32ppclinux"
7975 ;;
7976 s390x-*linux*)
7977 LD="${LD-ld} -m elf_s390"
7978 ;;
7979 sparc64-*linux*)
7980 LD="${LD-ld} -m elf32_sparc"
7981 ;;
7982 esac
7983 ;;
7984 *64-bit*)
7985 case $host in
7986 x86_64-*kfreebsd*-gnu)
7987 LD="${LD-ld} -m elf_x86_64_fbsd"
7988 ;;
7989 x86_64-*linux*)
7990 LD="${LD-ld} -m elf_x86_64"
7991 ;;
7992 ppc*-*linux*|powerpc*-*linux*)
7993 LD="${LD-ld} -m elf64ppc"
7994 ;;
7995 s390*-*linux*|s390*-*tpf*)
7996 LD="${LD-ld} -m elf64_s390"
7997 ;;
7998 sparc*-*linux*)
7999 LD="${LD-ld} -m elf64_sparc"
8000 ;;
8001 esac
8002 ;;
8003 esac
8004 fi
8005 rm -rf conftest*
8006 ;;
8007
8008 *-*-sco3.2v5*)
8009 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8010 SAVE_CFLAGS="$CFLAGS"
8011 CFLAGS="$CFLAGS -belf"
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8013 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8014 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8017 ac_ext=c
8018 ac_cpp='$CPP $CPPFLAGS'
8019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8022
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8025
8026 int
8027 main ()
8028 {
8029
8030 ;
8031 return 0;
8032 }
8033 _ACEOF
8034 if ac_fn_c_try_link "$LINENO"; then :
8035 lt_cv_cc_needs_belf=yes
8036 else
8037 lt_cv_cc_needs_belf=no
8038 fi
8039 rm -f core conftest.err conftest.$ac_objext \
8040 conftest$ac_exeext conftest.$ac_ext
8041 ac_ext=c
8042 ac_cpp='$CPP $CPPFLAGS'
8043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046
8047 fi
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8049 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8050 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8051 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8052 CFLAGS="$SAVE_CFLAGS"
8053 fi
8054 ;;
8055 sparc*-*solaris*)
8056 # Find out which ABI we are using.
8057 echo 'int i;' > conftest.$ac_ext
8058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8059 (eval $ac_compile) 2>&5
8060 ac_status=$?
8061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8062 test $ac_status = 0; }; then
8063 case `/usr/bin/file conftest.o` in
8064 *64-bit*)
8065 case $lt_cv_prog_gnu_ld in
8066 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8067 *)
8068 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8069 LD="${LD-ld} -64"
8070 fi
8071 ;;
8072 esac
8073 ;;
8074 esac
8075 fi
8076 rm -rf conftest*
8077 ;;
8078 esac
8079
8080 need_locks="$enable_libtool_lock"
8081
8082
8083 case $host_os in
8084 rhapsody* | darwin*)
8085 if test -n "$ac_tool_prefix"; then
8086 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8087 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 if test -n "$DSYMUTIL"; then
8094 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8103 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8106 fi
8107 done
8108 done
8109 IFS=$as_save_IFS
8110
8111 fi
8112 fi
8113 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8114 if test -n "$DSYMUTIL"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8116 $as_echo "$DSYMUTIL" >&6; }
8117 else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8121
8122
8123 fi
8124 if test -z "$ac_cv_prog_DSYMUTIL"; then
8125 ac_ct_DSYMUTIL=$DSYMUTIL
8126 # Extract the first word of "dsymutil", so it can be a program name with args.
8127 set dummy dsymutil; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 if test -n "$ac_ct_DSYMUTIL"; then
8134 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8135 else
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8138 do
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8143 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8145 break 2
8146 fi
8147 done
8148 done
8149 IFS=$as_save_IFS
8150
8151 fi
8152 fi
8153 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8154 if test -n "$ac_ct_DSYMUTIL"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8156 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8157 else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8160 fi
8161
8162 if test "x$ac_ct_DSYMUTIL" = x; then
8163 DSYMUTIL=":"
8164 else
8165 case $cross_compiling:$ac_tool_warned in
8166 yes:)
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8169 ac_tool_warned=yes ;;
8170 esac
8171 DSYMUTIL=$ac_ct_DSYMUTIL
8172 fi
8173 else
8174 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8175 fi
8176
8177 if test -n "$ac_tool_prefix"; then
8178 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8179 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
8184 else
8185 if test -n "$NMEDIT"; then
8186 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8187 else
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8190 do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8195 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8198 fi
8199 done
8200 done
8201 IFS=$as_save_IFS
8202
8203 fi
8204 fi
8205 NMEDIT=$ac_cv_prog_NMEDIT
8206 if test -n "$NMEDIT"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8208 $as_echo "$NMEDIT" >&6; }
8209 else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8212 fi
8213
8214
8215 fi
8216 if test -z "$ac_cv_prog_NMEDIT"; then
8217 ac_ct_NMEDIT=$NMEDIT
8218 # Extract the first word of "nmedit", so it can be a program name with args.
8219 set dummy nmedit; ac_word=$2
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221 $as_echo_n "checking for $ac_word... " >&6; }
8222 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 if test -n "$ac_ct_NMEDIT"; then
8226 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8227 else
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8235 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 break 2
8238 fi
8239 done
8240 done
8241 IFS=$as_save_IFS
8242
8243 fi
8244 fi
8245 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8246 if test -n "$ac_ct_NMEDIT"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8248 $as_echo "$ac_ct_NMEDIT" >&6; }
8249 else
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8252 fi
8253
8254 if test "x$ac_ct_NMEDIT" = x; then
8255 NMEDIT=":"
8256 else
8257 case $cross_compiling:$ac_tool_warned in
8258 yes:)
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8261 ac_tool_warned=yes ;;
8262 esac
8263 NMEDIT=$ac_ct_NMEDIT
8264 fi
8265 else
8266 NMEDIT="$ac_cv_prog_NMEDIT"
8267 fi
8268
8269 if test -n "$ac_tool_prefix"; then
8270 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8271 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_prog_LIPO+set}" = set; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 if test -n "$LIPO"; then
8278 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8287 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291 done
8292 done
8293 IFS=$as_save_IFS
8294
8295 fi
8296 fi
8297 LIPO=$ac_cv_prog_LIPO
8298 if test -n "$LIPO"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8300 $as_echo "$LIPO" >&6; }
8301 else
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8304 fi
8305
8306
8307 fi
8308 if test -z "$ac_cv_prog_LIPO"; then
8309 ac_ct_LIPO=$LIPO
8310 # Extract the first word of "lipo", so it can be a program name with args.
8311 set dummy lipo; ac_word=$2
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 if test -n "$ac_ct_LIPO"; then
8318 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8319 else
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 for as_dir in $PATH
8322 do
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8327 ac_cv_prog_ac_ct_LIPO="lipo"
8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 break 2
8330 fi
8331 done
8332 done
8333 IFS=$as_save_IFS
8334
8335 fi
8336 fi
8337 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8338 if test -n "$ac_ct_LIPO"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8340 $as_echo "$ac_ct_LIPO" >&6; }
8341 else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8344 fi
8345
8346 if test "x$ac_ct_LIPO" = x; then
8347 LIPO=":"
8348 else
8349 case $cross_compiling:$ac_tool_warned in
8350 yes:)
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8353 ac_tool_warned=yes ;;
8354 esac
8355 LIPO=$ac_ct_LIPO
8356 fi
8357 else
8358 LIPO="$ac_cv_prog_LIPO"
8359 fi
8360
8361 if test -n "$ac_tool_prefix"; then
8362 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8363 set dummy ${ac_tool_prefix}otool; ac_word=$2
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8367 $as_echo_n "(cached) " >&6
8368 else
8369 if test -n "$OTOOL"; then
8370 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8374 do
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 break 2
8382 fi
8383 done
8384 done
8385 IFS=$as_save_IFS
8386
8387 fi
8388 fi
8389 OTOOL=$ac_cv_prog_OTOOL
8390 if test -n "$OTOOL"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8392 $as_echo "$OTOOL" >&6; }
8393 else
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8396 fi
8397
8398
8399 fi
8400 if test -z "$ac_cv_prog_OTOOL"; then
8401 ac_ct_OTOOL=$OTOOL
8402 # Extract the first word of "otool", so it can be a program name with args.
8403 set dummy otool; ac_word=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 if test -n "$ac_ct_OTOOL"; then
8410 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8411 else
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8414 do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419 ac_cv_prog_ac_ct_OTOOL="otool"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8422 fi
8423 done
8424 done
8425 IFS=$as_save_IFS
8426
8427 fi
8428 fi
8429 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8430 if test -n "$ac_ct_OTOOL"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8432 $as_echo "$ac_ct_OTOOL" >&6; }
8433 else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8436 fi
8437
8438 if test "x$ac_ct_OTOOL" = x; then
8439 OTOOL=":"
8440 else
8441 case $cross_compiling:$ac_tool_warned in
8442 yes:)
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8445 ac_tool_warned=yes ;;
8446 esac
8447 OTOOL=$ac_ct_OTOOL
8448 fi
8449 else
8450 OTOOL="$ac_cv_prog_OTOOL"
8451 fi
8452
8453 if test -n "$ac_tool_prefix"; then
8454 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8455 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457 $as_echo_n "checking for $ac_word... " >&6; }
8458 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8460 else
8461 if test -n "$OTOOL64"; then
8462 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8463 else
8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 for as_dir in $PATH
8466 do
8467 IFS=$as_save_IFS
8468 test -z "$as_dir" && as_dir=.
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8471 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473 break 2
8474 fi
8475 done
8476 done
8477 IFS=$as_save_IFS
8478
8479 fi
8480 fi
8481 OTOOL64=$ac_cv_prog_OTOOL64
8482 if test -n "$OTOOL64"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8484 $as_echo "$OTOOL64" >&6; }
8485 else
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8488 fi
8489
8490
8491 fi
8492 if test -z "$ac_cv_prog_OTOOL64"; then
8493 ac_ct_OTOOL64=$OTOOL64
8494 # Extract the first word of "otool64", so it can be a program name with args.
8495 set dummy otool64; ac_word=$2
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497 $as_echo_n "checking for $ac_word... " >&6; }
8498 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 if test -n "$ac_ct_OTOOL64"; then
8502 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8503 else
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 for as_dir in $PATH
8506 do
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8511 ac_cv_prog_ac_ct_OTOOL64="otool64"
8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8514 fi
8515 done
8516 done
8517 IFS=$as_save_IFS
8518
8519 fi
8520 fi
8521 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8522 if test -n "$ac_ct_OTOOL64"; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8524 $as_echo "$ac_ct_OTOOL64" >&6; }
8525 else
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527 $as_echo "no" >&6; }
8528 fi
8529
8530 if test "x$ac_ct_OTOOL64" = x; then
8531 OTOOL64=":"
8532 else
8533 case $cross_compiling:$ac_tool_warned in
8534 yes:)
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8537 ac_tool_warned=yes ;;
8538 esac
8539 OTOOL64=$ac_ct_OTOOL64
8540 fi
8541 else
8542 OTOOL64="$ac_cv_prog_OTOOL64"
8543 fi
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8572 $as_echo_n "checking for -single_module linker flag... " >&6; }
8573 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 lt_cv_apple_cc_single_mod=no
8577 if test -z "${LT_MULTI_MODULE}"; then
8578 # By default we will add the -single_module flag. You can override
8579 # by either setting the environment variable LT_MULTI_MODULE
8580 # non-empty at configure time, or by adding -multi_module to the
8581 # link flags.
8582 rm -rf libconftest.dylib*
8583 echo "int foo(void){return 1;}" > conftest.c
8584 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8585 -dynamiclib -Wl,-single_module conftest.c" >&5
8586 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8587 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8588 _lt_result=$?
8589 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8590 lt_cv_apple_cc_single_mod=yes
8591 else
8592 cat conftest.err >&5
8593 fi
8594 rm -rf libconftest.dylib*
8595 rm -f conftest.*
8596 fi
8597 fi
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8599 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8601 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8602 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8603 $as_echo_n "(cached) " >&6
8604 else
8605 lt_cv_ld_exported_symbols_list=no
8606 save_LDFLAGS=$LDFLAGS
8607 echo "_main" > conftest.sym
8608 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611
8612 int
8613 main ()
8614 {
8615
8616 ;
8617 return 0;
8618 }
8619 _ACEOF
8620 if ac_fn_c_try_link "$LINENO"; then :
8621 lt_cv_ld_exported_symbols_list=yes
8622 else
8623 lt_cv_ld_exported_symbols_list=no
8624 fi
8625 rm -f core conftest.err conftest.$ac_objext \
8626 conftest$ac_exeext conftest.$ac_ext
8627 LDFLAGS="$save_LDFLAGS"
8628
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8631 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8633 $as_echo_n "checking for -force_load linker flag... " >&6; }
8634 if test "${lt_cv_ld_force_load+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 lt_cv_ld_force_load=no
8638 cat > conftest.c << _LT_EOF
8639 int forced_loaded() { return 2;}
8640 _LT_EOF
8641 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8642 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8643 echo "$AR cru libconftest.a conftest.o" >&5
8644 $AR cru libconftest.a conftest.o 2>&5
8645 cat > conftest.c << _LT_EOF
8646 int main() { return 0;}
8647 _LT_EOF
8648 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8649 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8650 _lt_result=$?
8651 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8652 lt_cv_ld_force_load=yes
8653 else
8654 cat conftest.err >&5
8655 fi
8656 rm -f conftest.err libconftest.a conftest conftest.c
8657 rm -rf conftest.dSYM
8658
8659 fi
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8661 $as_echo "$lt_cv_ld_force_load" >&6; }
8662 case $host_os in
8663 rhapsody* | darwin1.[012])
8664 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8665 darwin1.*)
8666 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8667 darwin*) # darwin 5.x on
8668 # if running on 10.5 or later, the deployment target defaults
8669 # to the OS version, if on x86, and 10.4, the deployment
8670 # target defaults to 10.4. Don't you love it?
8671 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8672 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8673 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8674 10.[012]*)
8675 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8676 10.*)
8677 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8678 esac
8679 ;;
8680 esac
8681 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8682 _lt_dar_single_mod='$single_module'
8683 fi
8684 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8685 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8686 else
8687 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8688 fi
8689 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8690 _lt_dsymutil='~$DSYMUTIL $lib || :'
8691 else
8692 _lt_dsymutil=
8693 fi
8694 ;;
8695 esac
8696
8697 for ac_header in dlfcn.h
8698 do :
8699 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8700 "
8701 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8702 cat >>confdefs.h <<_ACEOF
8703 #define HAVE_DLFCN_H 1
8704 _ACEOF
8705
8706 fi
8707
8708 done
8709
8710
8711
8712
8713
8714
8715 # Set options
8716
8717
8718
8719 enable_dlopen=no
8720
8721
8722 enable_win32_dll=no
8723
8724
8725 # Check whether --enable-shared was given.
8726 if test "${enable_shared+set}" = set; then :
8727 enableval=$enable_shared; p=${PACKAGE-default}
8728 case $enableval in
8729 yes) enable_shared=yes ;;
8730 no) enable_shared=no ;;
8731 *)
8732 enable_shared=no
8733 # Look at the argument we got. We use all the common list separators.
8734 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8735 for pkg in $enableval; do
8736 IFS="$lt_save_ifs"
8737 if test "X$pkg" = "X$p"; then
8738 enable_shared=yes
8739 fi
8740 done
8741 IFS="$lt_save_ifs"
8742 ;;
8743 esac
8744 else
8745 enable_shared=yes
8746 fi
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756 # Check whether --enable-static was given.
8757 if test "${enable_static+set}" = set; then :
8758 enableval=$enable_static; p=${PACKAGE-default}
8759 case $enableval in
8760 yes) enable_static=yes ;;
8761 no) enable_static=no ;;
8762 *)
8763 enable_static=no
8764 # Look at the argument we got. We use all the common list separators.
8765 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8766 for pkg in $enableval; do
8767 IFS="$lt_save_ifs"
8768 if test "X$pkg" = "X$p"; then
8769 enable_static=yes
8770 fi
8771 done
8772 IFS="$lt_save_ifs"
8773 ;;
8774 esac
8775 else
8776 enable_static=yes
8777 fi
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788 # Check whether --with-pic was given.
8789 if test "${with_pic+set}" = set; then :
8790 withval=$with_pic; pic_mode="$withval"
8791 else
8792 pic_mode=default
8793 fi
8794
8795
8796 test -z "$pic_mode" && pic_mode=default
8797
8798
8799
8800
8801
8802
8803
8804 # Check whether --enable-fast-install was given.
8805 if test "${enable_fast_install+set}" = set; then :
8806 enableval=$enable_fast_install; p=${PACKAGE-default}
8807 case $enableval in
8808 yes) enable_fast_install=yes ;;
8809 no) enable_fast_install=no ;;
8810 *)
8811 enable_fast_install=no
8812 # Look at the argument we got. We use all the common list separators.
8813 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8814 for pkg in $enableval; do
8815 IFS="$lt_save_ifs"
8816 if test "X$pkg" = "X$p"; then
8817 enable_fast_install=yes
8818 fi
8819 done
8820 IFS="$lt_save_ifs"
8821 ;;
8822 esac
8823 else
8824 enable_fast_install=yes
8825 fi
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837 # This can be used to rebuild libtool when needed
8838 LIBTOOL_DEPS="$ltmain"
8839
8840 # Always use our own libtool.
8841 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868 test -z "$LN_S" && LN_S="ln -s"
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883 if test -n "${ZSH_VERSION+set}" ; then
8884 setopt NO_GLOB_SUBST
8885 fi
8886
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8888 $as_echo_n "checking for objdir... " >&6; }
8889 if test "${lt_cv_objdir+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 rm -f .libs 2>/dev/null
8893 mkdir .libs 2>/dev/null
8894 if test -d .libs; then
8895 lt_cv_objdir=.libs
8896 else
8897 # MS-DOS does not allow filenames that begin with a dot.
8898 lt_cv_objdir=_libs
8899 fi
8900 rmdir .libs 2>/dev/null
8901 fi
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8903 $as_echo "$lt_cv_objdir" >&6; }
8904 objdir=$lt_cv_objdir
8905
8906
8907
8908
8909
8910 cat >>confdefs.h <<_ACEOF
8911 #define LT_OBJDIR "$lt_cv_objdir/"
8912 _ACEOF
8913
8914
8915
8916
8917 case $host_os in
8918 aix3*)
8919 # AIX sometimes has problems with the GCC collect2 program. For some
8920 # reason, if we set the COLLECT_NAMES environment variable, the problems
8921 # vanish in a puff of smoke.
8922 if test "X${COLLECT_NAMES+set}" != Xset; then
8923 COLLECT_NAMES=
8924 export COLLECT_NAMES
8925 fi
8926 ;;
8927 esac
8928
8929 # Global variables:
8930 ofile=libtool
8931 can_build_shared=yes
8932
8933 # All known linkers require a `.a' archive for static linking (except MSVC,
8934 # which needs '.lib').
8935 libext=a
8936
8937 with_gnu_ld="$lt_cv_prog_gnu_ld"
8938
8939 old_CC="$CC"
8940 old_CFLAGS="$CFLAGS"
8941
8942 # Set sane defaults for various variables
8943 test -z "$CC" && CC=cc
8944 test -z "$LTCC" && LTCC=$CC
8945 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8946 test -z "$LD" && LD=ld
8947 test -z "$ac_objext" && ac_objext=o
8948
8949 for cc_temp in $compiler""; do
8950 case $cc_temp in
8951 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8952 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8953 \-*) ;;
8954 *) break;;
8955 esac
8956 done
8957 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8958
8959
8960 # Only perform the check for file, if the check method requires it
8961 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8962 case $deplibs_check_method in
8963 file_magic*)
8964 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8966 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 case $MAGIC_CMD in
8971 [\\/*] | ?:[\\/]*)
8972 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8973 ;;
8974 *)
8975 lt_save_MAGIC_CMD="$MAGIC_CMD"
8976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8977 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8978 for ac_dir in $ac_dummy; do
8979 IFS="$lt_save_ifs"
8980 test -z "$ac_dir" && ac_dir=.
8981 if test -f $ac_dir/${ac_tool_prefix}file; then
8982 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8983 if test -n "$file_magic_test_file"; then
8984 case $deplibs_check_method in
8985 "file_magic "*)
8986 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8988 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8989 $EGREP "$file_magic_regex" > /dev/null; then
8990 :
8991 else
8992 cat <<_LT_EOF 1>&2
8993
8994 *** Warning: the command libtool uses to detect shared libraries,
8995 *** $file_magic_cmd, produces output that libtool cannot recognize.
8996 *** The result is that libtool may fail to recognize shared libraries
8997 *** as such. This will affect the creation of libtool libraries that
8998 *** depend on shared libraries, but programs linked with such libtool
8999 *** libraries will work regardless of this problem. Nevertheless, you
9000 *** may want to report the problem to your system manager and/or to
9001 *** bug-libtool@gnu.org
9002
9003 _LT_EOF
9004 fi ;;
9005 esac
9006 fi
9007 break
9008 fi
9009 done
9010 IFS="$lt_save_ifs"
9011 MAGIC_CMD="$lt_save_MAGIC_CMD"
9012 ;;
9013 esac
9014 fi
9015
9016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9017 if test -n "$MAGIC_CMD"; then
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9019 $as_echo "$MAGIC_CMD" >&6; }
9020 else
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022 $as_echo "no" >&6; }
9023 fi
9024
9025
9026
9027
9028
9029 if test -z "$lt_cv_path_MAGIC_CMD"; then
9030 if test -n "$ac_tool_prefix"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9032 $as_echo_n "checking for file... " >&6; }
9033 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9034 $as_echo_n "(cached) " >&6
9035 else
9036 case $MAGIC_CMD in
9037 [\\/*] | ?:[\\/]*)
9038 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9039 ;;
9040 *)
9041 lt_save_MAGIC_CMD="$MAGIC_CMD"
9042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9043 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9044 for ac_dir in $ac_dummy; do
9045 IFS="$lt_save_ifs"
9046 test -z "$ac_dir" && ac_dir=.
9047 if test -f $ac_dir/file; then
9048 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9049 if test -n "$file_magic_test_file"; then
9050 case $deplibs_check_method in
9051 "file_magic "*)
9052 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9054 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9055 $EGREP "$file_magic_regex" > /dev/null; then
9056 :
9057 else
9058 cat <<_LT_EOF 1>&2
9059
9060 *** Warning: the command libtool uses to detect shared libraries,
9061 *** $file_magic_cmd, produces output that libtool cannot recognize.
9062 *** The result is that libtool may fail to recognize shared libraries
9063 *** as such. This will affect the creation of libtool libraries that
9064 *** depend on shared libraries, but programs linked with such libtool
9065 *** libraries will work regardless of this problem. Nevertheless, you
9066 *** may want to report the problem to your system manager and/or to
9067 *** bug-libtool@gnu.org
9068
9069 _LT_EOF
9070 fi ;;
9071 esac
9072 fi
9073 break
9074 fi
9075 done
9076 IFS="$lt_save_ifs"
9077 MAGIC_CMD="$lt_save_MAGIC_CMD"
9078 ;;
9079 esac
9080 fi
9081
9082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9083 if test -n "$MAGIC_CMD"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9085 $as_echo "$MAGIC_CMD" >&6; }
9086 else
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9089 fi
9090
9091
9092 else
9093 MAGIC_CMD=:
9094 fi
9095 fi
9096
9097 fi
9098 ;;
9099 esac
9100
9101 # Use C for the default configuration in the libtool script
9102
9103 lt_save_CC="$CC"
9104 ac_ext=c
9105 ac_cpp='$CPP $CPPFLAGS'
9106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9109
9110
9111 # Source file extension for C test sources.
9112 ac_ext=c
9113
9114 # Object file extension for compiled C test sources.
9115 objext=o
9116 objext=$objext
9117
9118 # Code to be used in simple compile tests
9119 lt_simple_compile_test_code="int some_variable = 0;"
9120
9121 # Code to be used in simple link tests
9122 lt_simple_link_test_code='int main(){return(0);}'
9123
9124
9125
9126
9127
9128
9129
9130 # If no C compiler was specified, use CC.
9131 LTCC=${LTCC-"$CC"}
9132
9133 # If no C compiler flags were specified, use CFLAGS.
9134 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9135
9136 # Allow CC to be a program name with arguments.
9137 compiler=$CC
9138
9139 # Save the default compiler, since it gets overwritten when the other
9140 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9141 compiler_DEFAULT=$CC
9142
9143 # save warnings/boilerplate of simple test code
9144 ac_outfile=conftest.$ac_objext
9145 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9146 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9147 _lt_compiler_boilerplate=`cat conftest.err`
9148 $RM conftest*
9149
9150 ac_outfile=conftest.$ac_objext
9151 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9152 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9153 _lt_linker_boilerplate=`cat conftest.err`
9154 $RM -r conftest*
9155
9156
9157 ## CAVEAT EMPTOR:
9158 ## There is no encapsulation within the following macros, do not change
9159 ## the running order or otherwise move them around unless you know exactly
9160 ## what you are doing...
9161 if test -n "$compiler"; then
9162
9163 lt_prog_compiler_no_builtin_flag=
9164
9165 if test "$GCC" = yes; then
9166 case $cc_basename in
9167 nvcc*)
9168 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9169 *)
9170 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9171 esac
9172
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9174 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9175 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9176 $as_echo_n "(cached) " >&6
9177 else
9178 lt_cv_prog_compiler_rtti_exceptions=no
9179 ac_outfile=conftest.$ac_objext
9180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9181 lt_compiler_flag="-fno-rtti -fno-exceptions"
9182 # Insert the option either (1) after the last *FLAGS variable, or
9183 # (2) before a word containing "conftest.", or (3) at the end.
9184 # Note that $ac_compile itself does not contain backslashes and begins
9185 # with a dollar sign (not a hyphen), so the echo should work correctly.
9186 # The option is referenced via a variable to avoid confusing sed.
9187 lt_compile=`echo "$ac_compile" | $SED \
9188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9190 -e 's:$: $lt_compiler_flag:'`
9191 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9192 (eval "$lt_compile" 2>conftest.err)
9193 ac_status=$?
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 if (exit $ac_status) && test -s "$ac_outfile"; then
9197 # The compiler can only warn and ignore the option if not recognized
9198 # So say no if there are warnings other than the usual output.
9199 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9202 lt_cv_prog_compiler_rtti_exceptions=yes
9203 fi
9204 fi
9205 $RM conftest*
9206
9207 fi
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9209 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9210
9211 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9212 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9213 else
9214 :
9215 fi
9216
9217 fi
9218
9219
9220
9221
9222
9223
9224 lt_prog_compiler_wl=
9225 lt_prog_compiler_pic=
9226 lt_prog_compiler_static=
9227
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9229 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9230
9231 if test "$GCC" = yes; then
9232 lt_prog_compiler_wl='-Wl,'
9233 lt_prog_compiler_static='-static'
9234
9235 case $host_os in
9236 aix*)
9237 # All AIX code is PIC.
9238 if test "$host_cpu" = ia64; then
9239 # AIX 5 now supports IA64 processor
9240 lt_prog_compiler_static='-Bstatic'
9241 fi
9242 lt_prog_compiler_pic='-fPIC'
9243 ;;
9244
9245 amigaos*)
9246 case $host_cpu in
9247 powerpc)
9248 # see comment about AmigaOS4 .so support
9249 lt_prog_compiler_pic='-fPIC'
9250 ;;
9251 m68k)
9252 # FIXME: we need at least 68020 code to build shared libraries, but
9253 # adding the `-m68020' flag to GCC prevents building anything better,
9254 # like `-m68040'.
9255 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9256 ;;
9257 esac
9258 ;;
9259
9260 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9261 # PIC is the default for these OSes.
9262 ;;
9263
9264 mingw* | cygwin* | pw32* | os2* | cegcc*)
9265 # This hack is so that the source file can tell whether it is being
9266 # built for inclusion in a dll (and should export symbols for example).
9267 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9268 # (--disable-auto-import) libraries
9269 lt_prog_compiler_pic='-DDLL_EXPORT'
9270 ;;
9271
9272 darwin* | rhapsody*)
9273 # PIC is the default on this platform
9274 # Common symbols not allowed in MH_DYLIB files
9275 lt_prog_compiler_pic='-fno-common'
9276 ;;
9277
9278 haiku*)
9279 # PIC is the default for Haiku.
9280 # The "-static" flag exists, but is broken.
9281 lt_prog_compiler_static=
9282 ;;
9283
9284 hpux*)
9285 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9286 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9287 # sets the default TLS model and affects inlining.
9288 case $host_cpu in
9289 hppa*64*)
9290 # +Z the default
9291 ;;
9292 *)
9293 lt_prog_compiler_pic='-fPIC'
9294 ;;
9295 esac
9296 ;;
9297
9298 interix[3-9]*)
9299 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9300 # Instead, we relocate shared libraries at runtime.
9301 ;;
9302
9303 msdosdjgpp*)
9304 # Just because we use GCC doesn't mean we suddenly get shared libraries
9305 # on systems that don't support them.
9306 lt_prog_compiler_can_build_shared=no
9307 enable_shared=no
9308 ;;
9309
9310 *nto* | *qnx*)
9311 # QNX uses GNU C++, but need to define -shared option too, otherwise
9312 # it will coredump.
9313 lt_prog_compiler_pic='-fPIC -shared'
9314 ;;
9315
9316 sysv4*MP*)
9317 if test -d /usr/nec; then
9318 lt_prog_compiler_pic=-Kconform_pic
9319 fi
9320 ;;
9321
9322 *)
9323 lt_prog_compiler_pic='-fPIC'
9324 ;;
9325 esac
9326
9327 case $cc_basename in
9328 nvcc*) # Cuda Compiler Driver 2.2
9329 lt_prog_compiler_wl='-Xlinker '
9330 lt_prog_compiler_pic='-Xcompiler -fPIC'
9331 ;;
9332 esac
9333 else
9334 # PORTME Check for flag to pass linker flags through the system compiler.
9335 case $host_os in
9336 aix*)
9337 lt_prog_compiler_wl='-Wl,'
9338 if test "$host_cpu" = ia64; then
9339 # AIX 5 now supports IA64 processor
9340 lt_prog_compiler_static='-Bstatic'
9341 else
9342 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9343 fi
9344 ;;
9345
9346 mingw* | cygwin* | pw32* | os2* | cegcc*)
9347 # This hack is so that the source file can tell whether it is being
9348 # built for inclusion in a dll (and should export symbols for example).
9349 lt_prog_compiler_pic='-DDLL_EXPORT'
9350 ;;
9351
9352 hpux9* | hpux10* | hpux11*)
9353 lt_prog_compiler_wl='-Wl,'
9354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9355 # not for PA HP-UX.
9356 case $host_cpu in
9357 hppa*64*|ia64*)
9358 # +Z the default
9359 ;;
9360 *)
9361 lt_prog_compiler_pic='+Z'
9362 ;;
9363 esac
9364 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9365 lt_prog_compiler_static='${wl}-a ${wl}archive'
9366 ;;
9367
9368 irix5* | irix6* | nonstopux*)
9369 lt_prog_compiler_wl='-Wl,'
9370 # PIC (with -KPIC) is the default.
9371 lt_prog_compiler_static='-non_shared'
9372 ;;
9373
9374 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9375 case $cc_basename in
9376 # old Intel for x86_64 which still supported -KPIC.
9377 ecc*)
9378 lt_prog_compiler_wl='-Wl,'
9379 lt_prog_compiler_pic='-KPIC'
9380 lt_prog_compiler_static='-static'
9381 ;;
9382 # icc used to be incompatible with GCC.
9383 # ICC 10 doesn't accept -KPIC any more.
9384 icc* | ifort*)
9385 lt_prog_compiler_wl='-Wl,'
9386 lt_prog_compiler_pic='-fPIC'
9387 lt_prog_compiler_static='-static'
9388 ;;
9389 # Lahey Fortran 8.1.
9390 lf95*)
9391 lt_prog_compiler_wl='-Wl,'
9392 lt_prog_compiler_pic='--shared'
9393 lt_prog_compiler_static='--static'
9394 ;;
9395 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9396 # Portland Group compilers (*not* the Pentium gcc compiler,
9397 # which looks to be a dead project)
9398 lt_prog_compiler_wl='-Wl,'
9399 lt_prog_compiler_pic='-fpic'
9400 lt_prog_compiler_static='-Bstatic'
9401 ;;
9402 ccc*)
9403 lt_prog_compiler_wl='-Wl,'
9404 # All Alpha code is PIC.
9405 lt_prog_compiler_static='-non_shared'
9406 ;;
9407 xl* | bgxl* | bgf* | mpixl*)
9408 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9409 lt_prog_compiler_wl='-Wl,'
9410 lt_prog_compiler_pic='-qpic'
9411 lt_prog_compiler_static='-qstaticlink'
9412 ;;
9413 *)
9414 case `$CC -V 2>&1 | sed 5q` in
9415 *Sun\ F* | *Sun*Fortran*)
9416 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9417 lt_prog_compiler_pic='-KPIC'
9418 lt_prog_compiler_static='-Bstatic'
9419 lt_prog_compiler_wl=''
9420 ;;
9421 *Sun\ C*)
9422 # Sun C 5.9
9423 lt_prog_compiler_pic='-KPIC'
9424 lt_prog_compiler_static='-Bstatic'
9425 lt_prog_compiler_wl='-Wl,'
9426 ;;
9427 esac
9428 ;;
9429 esac
9430 ;;
9431
9432 newsos6)
9433 lt_prog_compiler_pic='-KPIC'
9434 lt_prog_compiler_static='-Bstatic'
9435 ;;
9436
9437 *nto* | *qnx*)
9438 # QNX uses GNU C++, but need to define -shared option too, otherwise
9439 # it will coredump.
9440 lt_prog_compiler_pic='-fPIC -shared'
9441 ;;
9442
9443 osf3* | osf4* | osf5*)
9444 lt_prog_compiler_wl='-Wl,'
9445 # All OSF/1 code is PIC.
9446 lt_prog_compiler_static='-non_shared'
9447 ;;
9448
9449 rdos*)
9450 lt_prog_compiler_static='-non_shared'
9451 ;;
9452
9453 solaris*)
9454 lt_prog_compiler_pic='-KPIC'
9455 lt_prog_compiler_static='-Bstatic'
9456 case $cc_basename in
9457 f77* | f90* | f95*)
9458 lt_prog_compiler_wl='-Qoption ld ';;
9459 *)
9460 lt_prog_compiler_wl='-Wl,';;
9461 esac
9462 ;;
9463
9464 sunos4*)
9465 lt_prog_compiler_wl='-Qoption ld '
9466 lt_prog_compiler_pic='-PIC'
9467 lt_prog_compiler_static='-Bstatic'
9468 ;;
9469
9470 sysv4 | sysv4.2uw2* | sysv4.3*)
9471 lt_prog_compiler_wl='-Wl,'
9472 lt_prog_compiler_pic='-KPIC'
9473 lt_prog_compiler_static='-Bstatic'
9474 ;;
9475
9476 sysv4*MP*)
9477 if test -d /usr/nec ;then
9478 lt_prog_compiler_pic='-Kconform_pic'
9479 lt_prog_compiler_static='-Bstatic'
9480 fi
9481 ;;
9482
9483 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9484 lt_prog_compiler_wl='-Wl,'
9485 lt_prog_compiler_pic='-KPIC'
9486 lt_prog_compiler_static='-Bstatic'
9487 ;;
9488
9489 unicos*)
9490 lt_prog_compiler_wl='-Wl,'
9491 lt_prog_compiler_can_build_shared=no
9492 ;;
9493
9494 uts4*)
9495 lt_prog_compiler_pic='-pic'
9496 lt_prog_compiler_static='-Bstatic'
9497 ;;
9498
9499 *)
9500 lt_prog_compiler_can_build_shared=no
9501 ;;
9502 esac
9503 fi
9504
9505 case $host_os in
9506 # For platforms which do not support PIC, -DPIC is meaningless:
9507 *djgpp*)
9508 lt_prog_compiler_pic=
9509 ;;
9510 *)
9511 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9512 ;;
9513 esac
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9515 $as_echo "$lt_prog_compiler_pic" >&6; }
9516
9517
9518
9519
9520
9521
9522 #
9523 # Check to make sure the PIC flag actually works.
9524 #
9525 if test -n "$lt_prog_compiler_pic"; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9527 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9528 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9529 $as_echo_n "(cached) " >&6
9530 else
9531 lt_cv_prog_compiler_pic_works=no
9532 ac_outfile=conftest.$ac_objext
9533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9534 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9535 # Insert the option either (1) after the last *FLAGS variable, or
9536 # (2) before a word containing "conftest.", or (3) at the end.
9537 # Note that $ac_compile itself does not contain backslashes and begins
9538 # with a dollar sign (not a hyphen), so the echo should work correctly.
9539 # The option is referenced via a variable to avoid confusing sed.
9540 lt_compile=`echo "$ac_compile" | $SED \
9541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9543 -e 's:$: $lt_compiler_flag:'`
9544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9545 (eval "$lt_compile" 2>conftest.err)
9546 ac_status=$?
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 if (exit $ac_status) && test -s "$ac_outfile"; then
9550 # The compiler can only warn and ignore the option if not recognized
9551 # So say no if there are warnings other than the usual output.
9552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9554 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9555 lt_cv_prog_compiler_pic_works=yes
9556 fi
9557 fi
9558 $RM conftest*
9559
9560 fi
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9562 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9563
9564 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9565 case $lt_prog_compiler_pic in
9566 "" | " "*) ;;
9567 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9568 esac
9569 else
9570 lt_prog_compiler_pic=
9571 lt_prog_compiler_can_build_shared=no
9572 fi
9573
9574 fi
9575
9576
9577
9578
9579
9580
9581 #
9582 # Check to make sure the static flag actually works.
9583 #
9584 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9586 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9587 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 lt_cv_prog_compiler_static_works=no
9591 save_LDFLAGS="$LDFLAGS"
9592 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9593 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9594 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9595 # The linker can only warn and ignore the option if not recognized
9596 # So say no if there are warnings
9597 if test -s conftest.err; then
9598 # Append any errors to the config.log.
9599 cat conftest.err 1>&5
9600 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9602 if diff conftest.exp conftest.er2 >/dev/null; then
9603 lt_cv_prog_compiler_static_works=yes
9604 fi
9605 else
9606 lt_cv_prog_compiler_static_works=yes
9607 fi
9608 fi
9609 $RM -r conftest*
9610 LDFLAGS="$save_LDFLAGS"
9611
9612 fi
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9614 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9615
9616 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9617 :
9618 else
9619 lt_prog_compiler_static=
9620 fi
9621
9622
9623
9624
9625
9626
9627
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9629 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9630 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 lt_cv_prog_compiler_c_o=no
9634 $RM -r conftest 2>/dev/null
9635 mkdir conftest
9636 cd conftest
9637 mkdir out
9638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9639
9640 lt_compiler_flag="-o out/conftest2.$ac_objext"
9641 # Insert the option either (1) after the last *FLAGS variable, or
9642 # (2) before a word containing "conftest.", or (3) at the end.
9643 # Note that $ac_compile itself does not contain backslashes and begins
9644 # with a dollar sign (not a hyphen), so the echo should work correctly.
9645 lt_compile=`echo "$ac_compile" | $SED \
9646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9648 -e 's:$: $lt_compiler_flag:'`
9649 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9650 (eval "$lt_compile" 2>out/conftest.err)
9651 ac_status=$?
9652 cat out/conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9655 then
9656 # The compiler can only warn and ignore the option if not recognized
9657 # So say no if there are warnings
9658 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9659 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9660 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9661 lt_cv_prog_compiler_c_o=yes
9662 fi
9663 fi
9664 chmod u+w . 2>&5
9665 $RM conftest*
9666 # SGI C++ compiler will create directory out/ii_files/ for
9667 # template instantiation
9668 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9669 $RM out/* && rmdir out
9670 cd ..
9671 $RM -r conftest
9672 $RM conftest*
9673
9674 fi
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9676 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9677
9678
9679
9680
9681
9682
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9684 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9685 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 lt_cv_prog_compiler_c_o=no
9689 $RM -r conftest 2>/dev/null
9690 mkdir conftest
9691 cd conftest
9692 mkdir out
9693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9694
9695 lt_compiler_flag="-o out/conftest2.$ac_objext"
9696 # Insert the option either (1) after the last *FLAGS variable, or
9697 # (2) before a word containing "conftest.", or (3) at the end.
9698 # Note that $ac_compile itself does not contain backslashes and begins
9699 # with a dollar sign (not a hyphen), so the echo should work correctly.
9700 lt_compile=`echo "$ac_compile" | $SED \
9701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9703 -e 's:$: $lt_compiler_flag:'`
9704 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9705 (eval "$lt_compile" 2>out/conftest.err)
9706 ac_status=$?
9707 cat out/conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9710 then
9711 # The compiler can only warn and ignore the option if not recognized
9712 # So say no if there are warnings
9713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9714 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9715 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9716 lt_cv_prog_compiler_c_o=yes
9717 fi
9718 fi
9719 chmod u+w . 2>&5
9720 $RM conftest*
9721 # SGI C++ compiler will create directory out/ii_files/ for
9722 # template instantiation
9723 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9724 $RM out/* && rmdir out
9725 cd ..
9726 $RM -r conftest
9727 $RM conftest*
9728
9729 fi
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9731 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9732
9733
9734
9735
9736 hard_links="nottested"
9737 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9738 # do not overwrite the value of need_locks provided by the user
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9740 $as_echo_n "checking if we can lock with hard links... " >&6; }
9741 hard_links=yes
9742 $RM conftest*
9743 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9744 touch conftest.a
9745 ln conftest.a conftest.b 2>&5 || hard_links=no
9746 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9748 $as_echo "$hard_links" >&6; }
9749 if test "$hard_links" = no; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9751 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9752 need_locks=warn
9753 fi
9754 else
9755 need_locks=no
9756 fi
9757
9758
9759
9760
9761
9762
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9764 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9765
9766 runpath_var=
9767 allow_undefined_flag=
9768 always_export_symbols=no
9769 archive_cmds=
9770 archive_expsym_cmds=
9771 compiler_needs_object=no
9772 enable_shared_with_static_runtimes=no
9773 export_dynamic_flag_spec=
9774 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9775 hardcode_automatic=no
9776 hardcode_direct=no
9777 hardcode_direct_absolute=no
9778 hardcode_libdir_flag_spec=
9779 hardcode_libdir_flag_spec_ld=
9780 hardcode_libdir_separator=
9781 hardcode_minus_L=no
9782 hardcode_shlibpath_var=unsupported
9783 inherit_rpath=no
9784 link_all_deplibs=unknown
9785 module_cmds=
9786 module_expsym_cmds=
9787 old_archive_from_new_cmds=
9788 old_archive_from_expsyms_cmds=
9789 thread_safe_flag_spec=
9790 whole_archive_flag_spec=
9791 # include_expsyms should be a list of space-separated symbols to be *always*
9792 # included in the symbol list
9793 include_expsyms=
9794 # exclude_expsyms can be an extended regexp of symbols to exclude
9795 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9796 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9797 # as well as any symbol that contains `d'.
9798 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9799 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9800 # platforms (ab)use it in PIC code, but their linkers get confused if
9801 # the symbol is explicitly referenced. Since portable code cannot
9802 # rely on this symbol name, it's probably fine to never include it in
9803 # preloaded symbol tables.
9804 # Exclude shared library initialization/finalization symbols.
9805 extract_expsyms_cmds=
9806
9807 case $host_os in
9808 cygwin* | mingw* | pw32* | cegcc*)
9809 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9810 # When not using gcc, we currently assume that we are using
9811 # Microsoft Visual C++.
9812 if test "$GCC" != yes; then
9813 with_gnu_ld=no
9814 fi
9815 ;;
9816 interix*)
9817 # we just hope/assume this is gcc and not c89 (= MSVC++)
9818 with_gnu_ld=yes
9819 ;;
9820 openbsd*)
9821 with_gnu_ld=no
9822 ;;
9823 esac
9824
9825 ld_shlibs=yes
9826
9827 # On some targets, GNU ld is compatible enough with the native linker
9828 # that we're better off using the native interface for both.
9829 lt_use_gnu_ld_interface=no
9830 if test "$with_gnu_ld" = yes; then
9831 case $host_os in
9832 aix*)
9833 # The AIX port of GNU ld has always aspired to compatibility
9834 # with the native linker. However, as the warning in the GNU ld
9835 # block says, versions before 2.19.5* couldn't really create working
9836 # shared libraries, regardless of the interface used.
9837 case `$LD -v 2>&1` in
9838 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9839 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9840 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9841 *)
9842 lt_use_gnu_ld_interface=yes
9843 ;;
9844 esac
9845 ;;
9846 *)
9847 lt_use_gnu_ld_interface=yes
9848 ;;
9849 esac
9850 fi
9851
9852 if test "$lt_use_gnu_ld_interface" = yes; then
9853 # If archive_cmds runs LD, not CC, wlarc should be empty
9854 wlarc='${wl}'
9855
9856 # Set some defaults for GNU ld with shared library support. These
9857 # are reset later if shared libraries are not supported. Putting them
9858 # here allows them to be overridden if necessary.
9859 runpath_var=LD_RUN_PATH
9860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9861 export_dynamic_flag_spec='${wl}--export-dynamic'
9862 # ancient GNU ld didn't support --whole-archive et. al.
9863 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9864 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9865 else
9866 whole_archive_flag_spec=
9867 fi
9868 supports_anon_versioning=no
9869 case `$LD -v 2>&1` in
9870 *GNU\ gold*) supports_anon_versioning=yes ;;
9871 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9872 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9873 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9874 *\ 2.11.*) ;; # other 2.11 versions
9875 *) supports_anon_versioning=yes ;;
9876 esac
9877
9878 # See if GNU ld supports shared libraries.
9879 case $host_os in
9880 aix[3-9]*)
9881 # On AIX/PPC, the GNU linker is very broken
9882 if test "$host_cpu" != ia64; then
9883 ld_shlibs=no
9884 cat <<_LT_EOF 1>&2
9885
9886 *** Warning: the GNU linker, at least up to release 2.19, is reported
9887 *** to be unable to reliably create shared libraries on AIX.
9888 *** Therefore, libtool is disabling shared libraries support. If you
9889 *** really care for shared libraries, you may want to install binutils
9890 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9891 *** You will then need to restart the configuration process.
9892
9893 _LT_EOF
9894 fi
9895 ;;
9896
9897 amigaos*)
9898 case $host_cpu in
9899 powerpc)
9900 # see comment about AmigaOS4 .so support
9901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9902 archive_expsym_cmds=''
9903 ;;
9904 m68k)
9905 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)'
9906 hardcode_libdir_flag_spec='-L$libdir'
9907 hardcode_minus_L=yes
9908 ;;
9909 esac
9910 ;;
9911
9912 beos*)
9913 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9914 allow_undefined_flag=unsupported
9915 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9916 # support --undefined. This deserves some investigation. FIXME
9917 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9918 else
9919 ld_shlibs=no
9920 fi
9921 ;;
9922
9923 cygwin* | mingw* | pw32* | cegcc*)
9924 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9925 # as there is no search path for DLLs.
9926 hardcode_libdir_flag_spec='-L$libdir'
9927 export_dynamic_flag_spec='${wl}--export-all-symbols'
9928 allow_undefined_flag=unsupported
9929 always_export_symbols=no
9930 enable_shared_with_static_runtimes=yes
9931 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9932
9933 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9935 # If the export-symbols file already is a .def file (1st line
9936 # is EXPORTS), use it as is; otherwise, prepend...
9937 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9938 cp $export_symbols $output_objdir/$soname.def;
9939 else
9940 echo EXPORTS > $output_objdir/$soname.def;
9941 cat $export_symbols >> $output_objdir/$soname.def;
9942 fi~
9943 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9944 else
9945 ld_shlibs=no
9946 fi
9947 ;;
9948
9949 haiku*)
9950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9951 link_all_deplibs=yes
9952 ;;
9953
9954 interix[3-9]*)
9955 hardcode_direct=no
9956 hardcode_shlibpath_var=no
9957 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9958 export_dynamic_flag_spec='${wl}-E'
9959 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9960 # Instead, shared libraries are loaded at an image base (0x10000000 by
9961 # default) and relocated if they conflict, which is a slow very memory
9962 # consuming and fragmenting process. To avoid this, we pick a random,
9963 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9964 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9965 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9966 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'
9967 ;;
9968
9969 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9970 tmp_diet=no
9971 if test "$host_os" = linux-dietlibc; then
9972 case $cc_basename in
9973 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9974 esac
9975 fi
9976 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9977 && test "$tmp_diet" = no
9978 then
9979 tmp_addflag=
9980 tmp_sharedflag='-shared'
9981 case $cc_basename,$host_cpu in
9982 pgcc*) # Portland Group C compiler
9983 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'
9984 tmp_addflag=' $pic_flag'
9985 ;;
9986 pgf77* | pgf90* | pgf95* | pgfortran*)
9987 # Portland Group f77 and f90 compilers
9988 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'
9989 tmp_addflag=' $pic_flag -Mnomain' ;;
9990 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9991 tmp_addflag=' -i_dynamic' ;;
9992 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9993 tmp_addflag=' -i_dynamic -nofor_main' ;;
9994 ifc* | ifort*) # Intel Fortran compiler
9995 tmp_addflag=' -nofor_main' ;;
9996 lf95*) # Lahey Fortran 8.1
9997 whole_archive_flag_spec=
9998 tmp_sharedflag='--shared' ;;
9999 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10000 tmp_sharedflag='-qmkshrobj'
10001 tmp_addflag= ;;
10002 nvcc*) # Cuda Compiler Driver 2.2
10003 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'
10004 compiler_needs_object=yes
10005 ;;
10006 esac
10007 case `$CC -V 2>&1 | sed 5q` in
10008 *Sun\ C*) # Sun C 5.9
10009 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'
10010 compiler_needs_object=yes
10011 tmp_sharedflag='-G' ;;
10012 *Sun\ F*) # Sun Fortran 8.3
10013 tmp_sharedflag='-G' ;;
10014 esac
10015 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10016
10017 if test "x$supports_anon_versioning" = xyes; then
10018 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10019 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10020 echo "local: *; };" >> $output_objdir/$libname.ver~
10021 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10022 fi
10023
10024 case $cc_basename in
10025 xlf* | bgf* | bgxlf* | mpixlf*)
10026 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10027 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10028 hardcode_libdir_flag_spec=
10029 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10030 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10031 if test "x$supports_anon_versioning" = xyes; then
10032 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10034 echo "local: *; };" >> $output_objdir/$libname.ver~
10035 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10036 fi
10037 ;;
10038 esac
10039 else
10040 ld_shlibs=no
10041 fi
10042 ;;
10043
10044 netbsd*)
10045 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10046 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10047 wlarc=
10048 else
10049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10050 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10051 fi
10052 ;;
10053
10054 solaris*)
10055 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10056 ld_shlibs=no
10057 cat <<_LT_EOF 1>&2
10058
10059 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10060 *** create shared libraries on Solaris systems. Therefore, libtool
10061 *** is disabling shared libraries support. We urge you to upgrade GNU
10062 *** binutils to release 2.9.1 or newer. Another option is to modify
10063 *** your PATH or compiler configuration so that the native linker is
10064 *** used, and then restart.
10065
10066 _LT_EOF
10067 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10069 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10070 else
10071 ld_shlibs=no
10072 fi
10073 ;;
10074
10075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10076 case `$LD -v 2>&1` in
10077 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10078 ld_shlibs=no
10079 cat <<_LT_EOF 1>&2
10080
10081 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10082 *** reliably create shared libraries on SCO systems. Therefore, libtool
10083 *** is disabling shared libraries support. We urge you to upgrade GNU
10084 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10085 *** your PATH or compiler configuration so that the native linker is
10086 *** used, and then restart.
10087
10088 _LT_EOF
10089 ;;
10090 *)
10091 # For security reasons, it is highly recommended that you always
10092 # use absolute paths for naming shared libraries, and exclude the
10093 # DT_RUNPATH tag from executables and libraries. But doing so
10094 # requires that you compile everything twice, which is a pain.
10095 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10096 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10098 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10099 else
10100 ld_shlibs=no
10101 fi
10102 ;;
10103 esac
10104 ;;
10105
10106 sunos4*)
10107 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10108 wlarc=
10109 hardcode_direct=yes
10110 hardcode_shlibpath_var=no
10111 ;;
10112
10113 *)
10114 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10117 else
10118 ld_shlibs=no
10119 fi
10120 ;;
10121 esac
10122
10123 if test "$ld_shlibs" = no; then
10124 runpath_var=
10125 hardcode_libdir_flag_spec=
10126 export_dynamic_flag_spec=
10127 whole_archive_flag_spec=
10128 fi
10129 else
10130 # PORTME fill in a description of your system's linker (not GNU ld)
10131 case $host_os in
10132 aix3*)
10133 allow_undefined_flag=unsupported
10134 always_export_symbols=yes
10135 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'
10136 # Note: this linker hardcodes the directories in LIBPATH if there
10137 # are no directories specified by -L.
10138 hardcode_minus_L=yes
10139 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10140 # Neither direct hardcoding nor static linking is supported with a
10141 # broken collect2.
10142 hardcode_direct=unsupported
10143 fi
10144 ;;
10145
10146 aix[4-9]*)
10147 if test "$host_cpu" = ia64; then
10148 # On IA64, the linker does run time linking by default, so we don't
10149 # have to do anything special.
10150 aix_use_runtimelinking=no
10151 exp_sym_flag='-Bexport'
10152 no_entry_flag=""
10153 else
10154 # If we're using GNU nm, then we don't want the "-C" option.
10155 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10156 # Also, AIX nm treats weak defined symbols like other global
10157 # defined symbols, whereas GNU nm marks them as "W".
10158 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10159 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'
10160 else
10161 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'
10162 fi
10163 aix_use_runtimelinking=no
10164
10165 # Test if we are trying to use run time linking or normal
10166 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10167 # need to do runtime linking.
10168 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10169 for ld_flag in $LDFLAGS; do
10170 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10171 aix_use_runtimelinking=yes
10172 break
10173 fi
10174 done
10175 ;;
10176 esac
10177
10178 exp_sym_flag='-bexport'
10179 no_entry_flag='-bnoentry'
10180 fi
10181
10182 # When large executables or shared objects are built, AIX ld can
10183 # have problems creating the table of contents. If linking a library
10184 # or program results in "error TOC overflow" add -mminimal-toc to
10185 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10186 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10187
10188 archive_cmds=''
10189 hardcode_direct=yes
10190 hardcode_direct_absolute=yes
10191 hardcode_libdir_separator=':'
10192 link_all_deplibs=yes
10193 file_list_spec='${wl}-f,'
10194
10195 if test "$GCC" = yes; then
10196 case $host_os in aix4.[012]|aix4.[012].*)
10197 # We only want to do this on AIX 4.2 and lower, the check
10198 # below for broken collect2 doesn't work under 4.3+
10199 collect2name=`${CC} -print-prog-name=collect2`
10200 if test -f "$collect2name" &&
10201 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10202 then
10203 # We have reworked collect2
10204 :
10205 else
10206 # We have old collect2
10207 hardcode_direct=unsupported
10208 # It fails to find uninstalled libraries when the uninstalled
10209 # path is not listed in the libpath. Setting hardcode_minus_L
10210 # to unsupported forces relinking
10211 hardcode_minus_L=yes
10212 hardcode_libdir_flag_spec='-L$libdir'
10213 hardcode_libdir_separator=
10214 fi
10215 ;;
10216 esac
10217 shared_flag='-shared'
10218 if test "$aix_use_runtimelinking" = yes; then
10219 shared_flag="$shared_flag "'${wl}-G'
10220 fi
10221 else
10222 # not using gcc
10223 if test "$host_cpu" = ia64; then
10224 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10225 # chokes on -Wl,-G. The following line is correct:
10226 shared_flag='-G'
10227 else
10228 if test "$aix_use_runtimelinking" = yes; then
10229 shared_flag='${wl}-G'
10230 else
10231 shared_flag='${wl}-bM:SRE'
10232 fi
10233 fi
10234 fi
10235
10236 export_dynamic_flag_spec='${wl}-bexpall'
10237 # It seems that -bexpall does not export symbols beginning with
10238 # underscore (_), so it is better to generate a list of symbols to export.
10239 always_export_symbols=yes
10240 if test "$aix_use_runtimelinking" = yes; then
10241 # Warning - without using the other runtime loading flags (-brtl),
10242 # -berok will link without error, but may produce a broken library.
10243 allow_undefined_flag='-berok'
10244 # Determine the default libpath from the value encoded in an
10245 # empty executable.
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10248
10249 int
10250 main ()
10251 {
10252
10253 ;
10254 return 0;
10255 }
10256 _ACEOF
10257 if ac_fn_c_try_link "$LINENO"; then :
10258
10259 lt_aix_libpath_sed='
10260 /Import File Strings/,/^$/ {
10261 /^0/ {
10262 s/^0 *\(.*\)$/\1/
10263 p
10264 }
10265 }'
10266 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10267 # Check for a 64-bit object if we didn't find anything.
10268 if test -z "$aix_libpath"; then
10269 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10270 fi
10271 fi
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10275
10276 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10277 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"
10278 else
10279 if test "$host_cpu" = ia64; then
10280 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10281 allow_undefined_flag="-z nodefs"
10282 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"
10283 else
10284 # Determine the default libpath from the value encoded in an
10285 # empty executable.
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288
10289 int
10290 main ()
10291 {
10292
10293 ;
10294 return 0;
10295 }
10296 _ACEOF
10297 if ac_fn_c_try_link "$LINENO"; then :
10298
10299 lt_aix_libpath_sed='
10300 /Import File Strings/,/^$/ {
10301 /^0/ {
10302 s/^0 *\(.*\)$/\1/
10303 p
10304 }
10305 }'
10306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10307 # Check for a 64-bit object if we didn't find anything.
10308 if test -z "$aix_libpath"; then
10309 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10310 fi
10311 fi
10312 rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10315
10316 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10317 # Warning - without using the other run time loading flags,
10318 # -berok will link without error, but may produce a broken library.
10319 no_undefined_flag=' ${wl}-bernotok'
10320 allow_undefined_flag=' ${wl}-berok'
10321 if test "$with_gnu_ld" = yes; then
10322 # We only use this code for GNU lds that support --whole-archive.
10323 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10324 else
10325 # Exported symbols can be pulled into shared objects from archives
10326 whole_archive_flag_spec='$convenience'
10327 fi
10328 archive_cmds_need_lc=yes
10329 # This is similar to how AIX traditionally builds its shared libraries.
10330 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'
10331 fi
10332 fi
10333 ;;
10334
10335 amigaos*)
10336 case $host_cpu in
10337 powerpc)
10338 # see comment about AmigaOS4 .so support
10339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10340 archive_expsym_cmds=''
10341 ;;
10342 m68k)
10343 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)'
10344 hardcode_libdir_flag_spec='-L$libdir'
10345 hardcode_minus_L=yes
10346 ;;
10347 esac
10348 ;;
10349
10350 bsdi[45]*)
10351 export_dynamic_flag_spec=-rdynamic
10352 ;;
10353
10354 cygwin* | mingw* | pw32* | cegcc*)
10355 # When not using gcc, we currently assume that we are using
10356 # Microsoft Visual C++.
10357 # hardcode_libdir_flag_spec is actually meaningless, as there is
10358 # no search path for DLLs.
10359 hardcode_libdir_flag_spec=' '
10360 allow_undefined_flag=unsupported
10361 # Tell ltmain to make .lib files, not .a files.
10362 libext=lib
10363 # Tell ltmain to make .dll files, not .so files.
10364 shrext_cmds=".dll"
10365 # FIXME: Setting linknames here is a bad hack.
10366 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10367 # The linker will automatically build a .lib file if we build a DLL.
10368 old_archive_from_new_cmds='true'
10369 # FIXME: Should let the user specify the lib program.
10370 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10371 fix_srcfile_path='`cygpath -w "$srcfile"`'
10372 enable_shared_with_static_runtimes=yes
10373 ;;
10374
10375 darwin* | rhapsody*)
10376
10377
10378 archive_cmds_need_lc=no
10379 hardcode_direct=no
10380 hardcode_automatic=yes
10381 hardcode_shlibpath_var=unsupported
10382 if test "$lt_cv_ld_force_load" = "yes"; then
10383 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\"`'
10384 else
10385 whole_archive_flag_spec=''
10386 fi
10387 link_all_deplibs=yes
10388 allow_undefined_flag="$_lt_dar_allow_undefined"
10389 case $cc_basename in
10390 ifort*) _lt_dar_can_shared=yes ;;
10391 *) _lt_dar_can_shared=$GCC ;;
10392 esac
10393 if test "$_lt_dar_can_shared" = "yes"; then
10394 output_verbose_link_cmd=func_echo_all
10395 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10396 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10397 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}"
10398 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}"
10399
10400 else
10401 ld_shlibs=no
10402 fi
10403
10404 ;;
10405
10406 dgux*)
10407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10408 hardcode_libdir_flag_spec='-L$libdir'
10409 hardcode_shlibpath_var=no
10410 ;;
10411
10412 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10413 # support. Future versions do this automatically, but an explicit c++rt0.o
10414 # does not break anything, and helps significantly (at the cost of a little
10415 # extra space).
10416 freebsd2.2*)
10417 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10418 hardcode_libdir_flag_spec='-R$libdir'
10419 hardcode_direct=yes
10420 hardcode_shlibpath_var=no
10421 ;;
10422
10423 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10424 freebsd2.*)
10425 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10426 hardcode_direct=yes
10427 hardcode_minus_L=yes
10428 hardcode_shlibpath_var=no
10429 ;;
10430
10431 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10432 freebsd* | dragonfly*)
10433 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10434 hardcode_libdir_flag_spec='-R$libdir'
10435 hardcode_direct=yes
10436 hardcode_shlibpath_var=no
10437 ;;
10438
10439 hpux9*)
10440 if test "$GCC" = yes; then
10441 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'
10442 else
10443 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'
10444 fi
10445 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10446 hardcode_libdir_separator=:
10447 hardcode_direct=yes
10448
10449 # hardcode_minus_L: Not really in the search PATH,
10450 # but as the default location of the library.
10451 hardcode_minus_L=yes
10452 export_dynamic_flag_spec='${wl}-E'
10453 ;;
10454
10455 hpux10*)
10456 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10457 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10458 else
10459 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10460 fi
10461 if test "$with_gnu_ld" = no; then
10462 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10463 hardcode_libdir_flag_spec_ld='+b $libdir'
10464 hardcode_libdir_separator=:
10465 hardcode_direct=yes
10466 hardcode_direct_absolute=yes
10467 export_dynamic_flag_spec='${wl}-E'
10468 # hardcode_minus_L: Not really in the search PATH,
10469 # but as the default location of the library.
10470 hardcode_minus_L=yes
10471 fi
10472 ;;
10473
10474 hpux11*)
10475 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10476 case $host_cpu in
10477 hppa*64*)
10478 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10479 ;;
10480 ia64*)
10481 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10482 ;;
10483 *)
10484 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10485 ;;
10486 esac
10487 else
10488 case $host_cpu in
10489 hppa*64*)
10490 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10491 ;;
10492 ia64*)
10493 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10494 ;;
10495 *)
10496
10497 # Older versions of the 11.00 compiler do not understand -b yet
10498 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10500 $as_echo_n "checking if $CC understands -b... " >&6; }
10501 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10502 $as_echo_n "(cached) " >&6
10503 else
10504 lt_cv_prog_compiler__b=no
10505 save_LDFLAGS="$LDFLAGS"
10506 LDFLAGS="$LDFLAGS -b"
10507 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10509 # The linker can only warn and ignore the option if not recognized
10510 # So say no if there are warnings
10511 if test -s conftest.err; then
10512 # Append any errors to the config.log.
10513 cat conftest.err 1>&5
10514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10516 if diff conftest.exp conftest.er2 >/dev/null; then
10517 lt_cv_prog_compiler__b=yes
10518 fi
10519 else
10520 lt_cv_prog_compiler__b=yes
10521 fi
10522 fi
10523 $RM -r conftest*
10524 LDFLAGS="$save_LDFLAGS"
10525
10526 fi
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10528 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10529
10530 if test x"$lt_cv_prog_compiler__b" = xyes; then
10531 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10532 else
10533 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10534 fi
10535
10536 ;;
10537 esac
10538 fi
10539 if test "$with_gnu_ld" = no; then
10540 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10541 hardcode_libdir_separator=:
10542
10543 case $host_cpu in
10544 hppa*64*|ia64*)
10545 hardcode_direct=no
10546 hardcode_shlibpath_var=no
10547 ;;
10548 *)
10549 hardcode_direct=yes
10550 hardcode_direct_absolute=yes
10551 export_dynamic_flag_spec='${wl}-E'
10552
10553 # hardcode_minus_L: Not really in the search PATH,
10554 # but as the default location of the library.
10555 hardcode_minus_L=yes
10556 ;;
10557 esac
10558 fi
10559 ;;
10560
10561 irix5* | irix6* | nonstopux*)
10562 if test "$GCC" = yes; then
10563 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'
10564 # Try to use the -exported_symbol ld option, if it does not
10565 # work, assume that -exports_file does not work either and
10566 # implicitly export all symbols.
10567 save_LDFLAGS="$LDFLAGS"
10568 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10571 int foo(void) {}
10572 _ACEOF
10573 if ac_fn_c_try_link "$LINENO"; then :
10574 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'
10575
10576 fi
10577 rm -f core conftest.err conftest.$ac_objext \
10578 conftest$ac_exeext conftest.$ac_ext
10579 LDFLAGS="$save_LDFLAGS"
10580 else
10581 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'
10582 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'
10583 fi
10584 archive_cmds_need_lc='no'
10585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10586 hardcode_libdir_separator=:
10587 inherit_rpath=yes
10588 link_all_deplibs=yes
10589 ;;
10590
10591 netbsd*)
10592 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10594 else
10595 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10596 fi
10597 hardcode_libdir_flag_spec='-R$libdir'
10598 hardcode_direct=yes
10599 hardcode_shlibpath_var=no
10600 ;;
10601
10602 newsos6)
10603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10604 hardcode_direct=yes
10605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10606 hardcode_libdir_separator=:
10607 hardcode_shlibpath_var=no
10608 ;;
10609
10610 *nto* | *qnx*)
10611 ;;
10612
10613 openbsd*)
10614 if test -f /usr/libexec/ld.so; then
10615 hardcode_direct=yes
10616 hardcode_shlibpath_var=no
10617 hardcode_direct_absolute=yes
10618 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10619 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10620 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10621 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10622 export_dynamic_flag_spec='${wl}-E'
10623 else
10624 case $host_os in
10625 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10627 hardcode_libdir_flag_spec='-R$libdir'
10628 ;;
10629 *)
10630 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10631 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10632 ;;
10633 esac
10634 fi
10635 else
10636 ld_shlibs=no
10637 fi
10638 ;;
10639
10640 os2*)
10641 hardcode_libdir_flag_spec='-L$libdir'
10642 hardcode_minus_L=yes
10643 allow_undefined_flag=unsupported
10644 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'
10645 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10646 ;;
10647
10648 osf3*)
10649 if test "$GCC" = yes; then
10650 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10651 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'
10652 else
10653 allow_undefined_flag=' -expect_unresolved \*'
10654 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'
10655 fi
10656 archive_cmds_need_lc='no'
10657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10658 hardcode_libdir_separator=:
10659 ;;
10660
10661 osf4* | osf5*) # as osf3* with the addition of -msym flag
10662 if test "$GCC" = yes; then
10663 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10664 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'
10665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10666 else
10667 allow_undefined_flag=' -expect_unresolved \*'
10668 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'
10669 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~
10670 $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'
10671
10672 # Both c and cxx compiler support -rpath directly
10673 hardcode_libdir_flag_spec='-rpath $libdir'
10674 fi
10675 archive_cmds_need_lc='no'
10676 hardcode_libdir_separator=:
10677 ;;
10678
10679 solaris*)
10680 no_undefined_flag=' -z defs'
10681 if test "$GCC" = yes; then
10682 wlarc='${wl}'
10683 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10684 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10685 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10686 else
10687 case `$CC -V 2>&1` in
10688 *"Compilers 5.0"*)
10689 wlarc=''
10690 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10692 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10693 ;;
10694 *)
10695 wlarc='${wl}'
10696 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10697 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10698 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10699 ;;
10700 esac
10701 fi
10702 hardcode_libdir_flag_spec='-R$libdir'
10703 hardcode_shlibpath_var=no
10704 case $host_os in
10705 solaris2.[0-5] | solaris2.[0-5].*) ;;
10706 *)
10707 # The compiler driver will combine and reorder linker options,
10708 # but understands `-z linker_flag'. GCC discards it without `$wl',
10709 # but is careful enough not to reorder.
10710 # Supported since Solaris 2.6 (maybe 2.5.1?)
10711 if test "$GCC" = yes; then
10712 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10713 else
10714 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10715 fi
10716 ;;
10717 esac
10718 link_all_deplibs=yes
10719 ;;
10720
10721 sunos4*)
10722 if test "x$host_vendor" = xsequent; then
10723 # Use $CC to link under sequent, because it throws in some extra .o
10724 # files that make .init and .fini sections work.
10725 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10726 else
10727 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10728 fi
10729 hardcode_libdir_flag_spec='-L$libdir'
10730 hardcode_direct=yes
10731 hardcode_minus_L=yes
10732 hardcode_shlibpath_var=no
10733 ;;
10734
10735 sysv4)
10736 case $host_vendor in
10737 sni)
10738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10739 hardcode_direct=yes # is this really true???
10740 ;;
10741 siemens)
10742 ## LD is ld it makes a PLAMLIB
10743 ## CC just makes a GrossModule.
10744 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10745 reload_cmds='$CC -r -o $output$reload_objs'
10746 hardcode_direct=no
10747 ;;
10748 motorola)
10749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10750 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10751 ;;
10752 esac
10753 runpath_var='LD_RUN_PATH'
10754 hardcode_shlibpath_var=no
10755 ;;
10756
10757 sysv4.3*)
10758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10759 hardcode_shlibpath_var=no
10760 export_dynamic_flag_spec='-Bexport'
10761 ;;
10762
10763 sysv4*MP*)
10764 if test -d /usr/nec; then
10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_shlibpath_var=no
10767 runpath_var=LD_RUN_PATH
10768 hardcode_runpath_var=yes
10769 ld_shlibs=yes
10770 fi
10771 ;;
10772
10773 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10774 no_undefined_flag='${wl}-z,text'
10775 archive_cmds_need_lc=no
10776 hardcode_shlibpath_var=no
10777 runpath_var='LD_RUN_PATH'
10778
10779 if test "$GCC" = yes; then
10780 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10781 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10782 else
10783 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10784 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10785 fi
10786 ;;
10787
10788 sysv5* | sco3.2v5* | sco5v6*)
10789 # Note: We can NOT use -z defs as we might desire, because we do not
10790 # link with -lc, and that would cause any symbols used from libc to
10791 # always be unresolved, which means just about no library would
10792 # ever link correctly. If we're not using GNU ld we use -z text
10793 # though, which does catch some bad symbols but isn't as heavy-handed
10794 # as -z defs.
10795 no_undefined_flag='${wl}-z,text'
10796 allow_undefined_flag='${wl}-z,nodefs'
10797 archive_cmds_need_lc=no
10798 hardcode_shlibpath_var=no
10799 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10800 hardcode_libdir_separator=':'
10801 link_all_deplibs=yes
10802 export_dynamic_flag_spec='${wl}-Bexport'
10803 runpath_var='LD_RUN_PATH'
10804
10805 if test "$GCC" = yes; then
10806 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10807 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10808 else
10809 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10810 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10811 fi
10812 ;;
10813
10814 uts4*)
10815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10816 hardcode_libdir_flag_spec='-L$libdir'
10817 hardcode_shlibpath_var=no
10818 ;;
10819
10820 *)
10821 ld_shlibs=no
10822 ;;
10823 esac
10824
10825 if test x$host_vendor = xsni; then
10826 case $host in
10827 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10828 export_dynamic_flag_spec='${wl}-Blargedynsym'
10829 ;;
10830 esac
10831 fi
10832 fi
10833
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10835 $as_echo "$ld_shlibs" >&6; }
10836 test "$ld_shlibs" = no && can_build_shared=no
10837
10838 with_gnu_ld=$with_gnu_ld
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854 #
10855 # Do we need to explicitly link libc?
10856 #
10857 case "x$archive_cmds_need_lc" in
10858 x|xyes)
10859 # Assume -lc should be added
10860 archive_cmds_need_lc=yes
10861
10862 if test "$enable_shared" = yes && test "$GCC" = yes; then
10863 case $archive_cmds in
10864 *'~'*)
10865 # FIXME: we may have to deal with multi-command sequences.
10866 ;;
10867 '$CC '*)
10868 # Test whether the compiler implicitly links with -lc since on some
10869 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10870 # to ld, don't add -lc before -lgcc.
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10872 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10873 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10874 $as_echo_n "(cached) " >&6
10875 else
10876 $RM conftest*
10877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10878
10879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10880 (eval $ac_compile) 2>&5
10881 ac_status=$?
10882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10883 test $ac_status = 0; } 2>conftest.err; then
10884 soname=conftest
10885 lib=conftest
10886 libobjs=conftest.$ac_objext
10887 deplibs=
10888 wl=$lt_prog_compiler_wl
10889 pic_flag=$lt_prog_compiler_pic
10890 compiler_flags=-v
10891 linker_flags=-v
10892 verstring=
10893 output_objdir=.
10894 libname=conftest
10895 lt_save_allow_undefined_flag=$allow_undefined_flag
10896 allow_undefined_flag=
10897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10898 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10899 ac_status=$?
10900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10901 test $ac_status = 0; }
10902 then
10903 lt_cv_archive_cmds_need_lc=no
10904 else
10905 lt_cv_archive_cmds_need_lc=yes
10906 fi
10907 allow_undefined_flag=$lt_save_allow_undefined_flag
10908 else
10909 cat conftest.err 1>&5
10910 fi
10911 $RM conftest*
10912
10913 fi
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10915 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10916 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10917 ;;
10918 esac
10919 fi
10920 ;;
10921 esac
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11080 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11081
11082 if test "$GCC" = yes; then
11083 case $host_os in
11084 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11085 *) lt_awk_arg="/^libraries:/" ;;
11086 esac
11087 case $host_os in
11088 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11089 *) lt_sed_strip_eq="s,=/,/,g" ;;
11090 esac
11091 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11092 case $lt_search_path_spec in
11093 *\;*)
11094 # if the path contains ";" then we assume it to be the separator
11095 # otherwise default to the standard path separator (i.e. ":") - it is
11096 # assumed that no part of a normal pathname contains ";" but that should
11097 # okay in the real world where ";" in dirpaths is itself problematic.
11098 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11099 ;;
11100 *)
11101 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11102 ;;
11103 esac
11104 # Ok, now we have the path, separated by spaces, we can step through it
11105 # and add multilib dir if necessary.
11106 lt_tmp_lt_search_path_spec=
11107 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11108 for lt_sys_path in $lt_search_path_spec; do
11109 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11110 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11111 else
11112 test -d "$lt_sys_path" && \
11113 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11114 fi
11115 done
11116 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11117 BEGIN {RS=" "; FS="/|\n";} {
11118 lt_foo="";
11119 lt_count=0;
11120 for (lt_i = NF; lt_i > 0; lt_i--) {
11121 if ($lt_i != "" && $lt_i != ".") {
11122 if ($lt_i == "..") {
11123 lt_count++;
11124 } else {
11125 if (lt_count == 0) {
11126 lt_foo="/" $lt_i lt_foo;
11127 } else {
11128 lt_count--;
11129 }
11130 }
11131 }
11132 }
11133 if (lt_foo != "") { lt_freq[lt_foo]++; }
11134 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11135 }'`
11136 # AWK program above erroneously prepends '/' to C:/dos/paths
11137 # for these hosts.
11138 case $host_os in
11139 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11140 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11141 esac
11142 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11143 else
11144 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11145 fi
11146 library_names_spec=
11147 libname_spec='lib$name'
11148 soname_spec=
11149 shrext_cmds=".so"
11150 postinstall_cmds=
11151 postuninstall_cmds=
11152 finish_cmds=
11153 finish_eval=
11154 shlibpath_var=
11155 shlibpath_overrides_runpath=unknown
11156 version_type=none
11157 dynamic_linker="$host_os ld.so"
11158 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11159 need_lib_prefix=unknown
11160 hardcode_into_libs=no
11161
11162 # when you set need_version to no, make sure it does not cause -set_version
11163 # flags to be left without arguments
11164 need_version=unknown
11165
11166 case $host_os in
11167 aix3*)
11168 version_type=linux
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11170 shlibpath_var=LIBPATH
11171
11172 # AIX 3 has no versioning support, so we append a major version to the name.
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 ;;
11175
11176 aix[4-9]*)
11177 version_type=linux
11178 need_lib_prefix=no
11179 need_version=no
11180 hardcode_into_libs=yes
11181 if test "$host_cpu" = ia64; then
11182 # AIX 5 supports IA64
11183 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11184 shlibpath_var=LD_LIBRARY_PATH
11185 else
11186 # With GCC up to 2.95.x, collect2 would create an import file
11187 # for dependence libraries. The import file would start with
11188 # the line `#! .'. This would cause the generated library to
11189 # depend on `.', always an invalid library. This was fixed in
11190 # development snapshots of GCC prior to 3.0.
11191 case $host_os in
11192 aix4 | aix4.[01] | aix4.[01].*)
11193 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11194 echo ' yes '
11195 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11196 :
11197 else
11198 can_build_shared=no
11199 fi
11200 ;;
11201 esac
11202 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11203 # soname into executable. Probably we can add versioning support to
11204 # collect2, so additional links can be useful in future.
11205 if test "$aix_use_runtimelinking" = yes; then
11206 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11207 # instead of lib<name>.a to let people know that these are not
11208 # typical AIX shared libraries.
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 else
11211 # We preserve .a as extension for shared libraries through AIX4.2
11212 # and later when we are not doing run time linking.
11213 library_names_spec='${libname}${release}.a $libname.a'
11214 soname_spec='${libname}${release}${shared_ext}$major'
11215 fi
11216 shlibpath_var=LIBPATH
11217 fi
11218 ;;
11219
11220 amigaos*)
11221 case $host_cpu in
11222 powerpc)
11223 # Since July 2007 AmigaOS4 officially supports .so libraries.
11224 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11226 ;;
11227 m68k)
11228 library_names_spec='$libname.ixlibrary $libname.a'
11229 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11230 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'
11231 ;;
11232 esac
11233 ;;
11234
11235 beos*)
11236 library_names_spec='${libname}${shared_ext}'
11237 dynamic_linker="$host_os ld.so"
11238 shlibpath_var=LIBRARY_PATH
11239 ;;
11240
11241 bsdi[45]*)
11242 version_type=linux
11243 need_version=no
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11247 shlibpath_var=LD_LIBRARY_PATH
11248 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11249 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11250 # the default ld.so.conf also contains /usr/contrib/lib and
11251 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11252 # libtool to hard-code these into programs
11253 ;;
11254
11255 cygwin* | mingw* | pw32* | cegcc*)
11256 version_type=windows
11257 shrext_cmds=".dll"
11258 need_version=no
11259 need_lib_prefix=no
11260
11261 case $GCC,$host_os in
11262 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11263 library_names_spec='$libname.dll.a'
11264 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11265 postinstall_cmds='base_file=`basename \${file}`~
11266 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11267 dldir=$destdir/`dirname \$dlpath`~
11268 test -d \$dldir || mkdir -p \$dldir~
11269 $install_prog $dir/$dlname \$dldir/$dlname~
11270 chmod a+x \$dldir/$dlname~
11271 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11272 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11273 fi'
11274 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11275 dlpath=$dir/\$dldll~
11276 $RM \$dlpath'
11277 shlibpath_overrides_runpath=yes
11278
11279 case $host_os in
11280 cygwin*)
11281 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11282 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11283
11284 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11285 ;;
11286 mingw* | cegcc*)
11287 # MinGW DLLs use traditional 'lib' prefix
11288 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11289 ;;
11290 pw32*)
11291 # pw32 DLLs use 'pw' prefix rather than 'lib'
11292 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11293 ;;
11294 esac
11295 ;;
11296
11297 *)
11298 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11299 ;;
11300 esac
11301 dynamic_linker='Win32 ld.exe'
11302 # FIXME: first we should search . and the directory the executable is in
11303 shlibpath_var=PATH
11304 ;;
11305
11306 darwin* | rhapsody*)
11307 dynamic_linker="$host_os dyld"
11308 version_type=darwin
11309 need_lib_prefix=no
11310 need_version=no
11311 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11312 soname_spec='${libname}${release}${major}$shared_ext'
11313 shlibpath_overrides_runpath=yes
11314 shlibpath_var=DYLD_LIBRARY_PATH
11315 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11316
11317 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11318 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11319 ;;
11320
11321 dgux*)
11322 version_type=linux
11323 need_lib_prefix=no
11324 need_version=no
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11326 soname_spec='${libname}${release}${shared_ext}$major'
11327 shlibpath_var=LD_LIBRARY_PATH
11328 ;;
11329
11330 freebsd* | dragonfly*)
11331 # DragonFly does not have aout. When/if they implement a new
11332 # versioning mechanism, adjust this.
11333 if test -x /usr/bin/objformat; then
11334 objformat=`/usr/bin/objformat`
11335 else
11336 case $host_os in
11337 freebsd[23].*) objformat=aout ;;
11338 *) objformat=elf ;;
11339 esac
11340 fi
11341 version_type=freebsd-$objformat
11342 case $version_type in
11343 freebsd-elf*)
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11345 need_version=no
11346 need_lib_prefix=no
11347 ;;
11348 freebsd-*)
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11350 need_version=yes
11351 ;;
11352 esac
11353 shlibpath_var=LD_LIBRARY_PATH
11354 case $host_os in
11355 freebsd2.*)
11356 shlibpath_overrides_runpath=yes
11357 ;;
11358 freebsd3.[01]* | freebsdelf3.[01]*)
11359 shlibpath_overrides_runpath=yes
11360 hardcode_into_libs=yes
11361 ;;
11362 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11363 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11364 shlibpath_overrides_runpath=no
11365 hardcode_into_libs=yes
11366 ;;
11367 *) # from 4.6 on, and DragonFly
11368 shlibpath_overrides_runpath=yes
11369 hardcode_into_libs=yes
11370 ;;
11371 esac
11372 ;;
11373
11374 gnu*)
11375 version_type=linux
11376 need_lib_prefix=no
11377 need_version=no
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 shlibpath_var=LD_LIBRARY_PATH
11381 hardcode_into_libs=yes
11382 ;;
11383
11384 haiku*)
11385 version_type=linux
11386 need_lib_prefix=no
11387 need_version=no
11388 dynamic_linker="$host_os runtime_loader"
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 shlibpath_var=LIBRARY_PATH
11392 shlibpath_overrides_runpath=yes
11393 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11394 hardcode_into_libs=yes
11395 ;;
11396
11397 hpux9* | hpux10* | hpux11*)
11398 # Give a soname corresponding to the major version so that dld.sl refuses to
11399 # link against other versions.
11400 version_type=sunos
11401 need_lib_prefix=no
11402 need_version=no
11403 case $host_cpu in
11404 ia64*)
11405 shrext_cmds='.so'
11406 hardcode_into_libs=yes
11407 dynamic_linker="$host_os dld.so"
11408 shlibpath_var=LD_LIBRARY_PATH
11409 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11411 soname_spec='${libname}${release}${shared_ext}$major'
11412 if test "X$HPUX_IA64_MODE" = X32; then
11413 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11414 else
11415 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11416 fi
11417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11418 ;;
11419 hppa*64*)
11420 shrext_cmds='.sl'
11421 hardcode_into_libs=yes
11422 dynamic_linker="$host_os dld.sl"
11423 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11424 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426 soname_spec='${libname}${release}${shared_ext}$major'
11427 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11428 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11429 ;;
11430 *)
11431 shrext_cmds='.sl'
11432 dynamic_linker="$host_os dld.sl"
11433 shlibpath_var=SHLIB_PATH
11434 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436 soname_spec='${libname}${release}${shared_ext}$major'
11437 ;;
11438 esac
11439 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11440 postinstall_cmds='chmod 555 $lib'
11441 # or fails outright, so override atomically:
11442 install_override_mode=555
11443 ;;
11444
11445 interix[3-9]*)
11446 version_type=linux
11447 need_lib_prefix=no
11448 need_version=no
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11450 soname_spec='${libname}${release}${shared_ext}$major'
11451 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11452 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=no
11454 hardcode_into_libs=yes
11455 ;;
11456
11457 irix5* | irix6* | nonstopux*)
11458 case $host_os in
11459 nonstopux*) version_type=nonstopux ;;
11460 *)
11461 if test "$lt_cv_prog_gnu_ld" = yes; then
11462 version_type=linux
11463 else
11464 version_type=irix
11465 fi ;;
11466 esac
11467 need_lib_prefix=no
11468 need_version=no
11469 soname_spec='${libname}${release}${shared_ext}$major'
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11471 case $host_os in
11472 irix5* | nonstopux*)
11473 libsuff= shlibsuff=
11474 ;;
11475 *)
11476 case $LD in # libtool.m4 will add one of these switches to LD
11477 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11478 libsuff= shlibsuff= libmagic=32-bit;;
11479 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11480 libsuff=32 shlibsuff=N32 libmagic=N32;;
11481 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11482 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11483 *) libsuff= shlibsuff= libmagic=never-match;;
11484 esac
11485 ;;
11486 esac
11487 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11488 shlibpath_overrides_runpath=no
11489 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11490 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11491 hardcode_into_libs=yes
11492 ;;
11493
11494 # No shared lib support for Linux oldld, aout, or coff.
11495 linux*oldld* | linux*aout* | linux*coff*)
11496 dynamic_linker=no
11497 ;;
11498
11499 # This must be Linux ELF.
11500 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11501 version_type=linux
11502 need_lib_prefix=no
11503 need_version=no
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 shlibpath_overrides_runpath=no
11509
11510 # Some binutils ld are patched to set DT_RUNPATH
11511 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11512 $as_echo_n "(cached) " >&6
11513 else
11514 lt_cv_shlibpath_overrides_runpath=no
11515 save_LDFLAGS=$LDFLAGS
11516 save_libdir=$libdir
11517 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11518 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11521
11522 int
11523 main ()
11524 {
11525
11526 ;
11527 return 0;
11528 }
11529 _ACEOF
11530 if ac_fn_c_try_link "$LINENO"; then :
11531 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11532 lt_cv_shlibpath_overrides_runpath=yes
11533 fi
11534 fi
11535 rm -f core conftest.err conftest.$ac_objext \
11536 conftest$ac_exeext conftest.$ac_ext
11537 LDFLAGS=$save_LDFLAGS
11538 libdir=$save_libdir
11539
11540 fi
11541
11542 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11543
11544 # This implies no fast_install, which is unacceptable.
11545 # Some rework will be needed to allow for fast_install
11546 # before this can be enabled.
11547 hardcode_into_libs=yes
11548
11549 # Append ld.so.conf contents to the search path
11550 if test -f /etc/ld.so.conf; then
11551 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' ' '`
11552 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11553 fi
11554
11555 # We used to test for /lib/ld.so.1 and disable shared libraries on
11556 # powerpc, because MkLinux only supported shared libraries with the
11557 # GNU dynamic linker. Since this was broken with cross compilers,
11558 # most powerpc-linux boxes support dynamic linking these days and
11559 # people can always --disable-shared, the test was removed, and we
11560 # assume the GNU/Linux dynamic linker is in use.
11561 dynamic_linker='GNU/Linux ld.so'
11562 ;;
11563
11564 netbsd*)
11565 version_type=sunos
11566 need_lib_prefix=no
11567 need_version=no
11568 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11571 dynamic_linker='NetBSD (a.out) ld.so'
11572 else
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11574 soname_spec='${libname}${release}${shared_ext}$major'
11575 dynamic_linker='NetBSD ld.elf_so'
11576 fi
11577 shlibpath_var=LD_LIBRARY_PATH
11578 shlibpath_overrides_runpath=yes
11579 hardcode_into_libs=yes
11580 ;;
11581
11582 newsos6)
11583 version_type=linux
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 shlibpath_overrides_runpath=yes
11587 ;;
11588
11589 *nto* | *qnx*)
11590 version_type=qnx
11591 need_lib_prefix=no
11592 need_version=no
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594 soname_spec='${libname}${release}${shared_ext}$major'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=no
11597 hardcode_into_libs=yes
11598 dynamic_linker='ldqnx.so'
11599 ;;
11600
11601 openbsd*)
11602 version_type=sunos
11603 sys_lib_dlsearch_path_spec="/usr/lib"
11604 need_lib_prefix=no
11605 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11606 case $host_os in
11607 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11608 *) need_version=no ;;
11609 esac
11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11612 shlibpath_var=LD_LIBRARY_PATH
11613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11614 case $host_os in
11615 openbsd2.[89] | openbsd2.[89].*)
11616 shlibpath_overrides_runpath=no
11617 ;;
11618 *)
11619 shlibpath_overrides_runpath=yes
11620 ;;
11621 esac
11622 else
11623 shlibpath_overrides_runpath=yes
11624 fi
11625 ;;
11626
11627 os2*)
11628 libname_spec='$name'
11629 shrext_cmds=".dll"
11630 need_lib_prefix=no
11631 library_names_spec='$libname${shared_ext} $libname.a'
11632 dynamic_linker='OS/2 ld.exe'
11633 shlibpath_var=LIBPATH
11634 ;;
11635
11636 osf3* | osf4* | osf5*)
11637 version_type=osf
11638 need_lib_prefix=no
11639 need_version=no
11640 soname_spec='${libname}${release}${shared_ext}$major'
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11642 shlibpath_var=LD_LIBRARY_PATH
11643 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11644 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11645 ;;
11646
11647 rdos*)
11648 dynamic_linker=no
11649 ;;
11650
11651 solaris*)
11652 version_type=linux
11653 need_lib_prefix=no
11654 need_version=no
11655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11656 soname_spec='${libname}${release}${shared_ext}$major'
11657 shlibpath_var=LD_LIBRARY_PATH
11658 shlibpath_overrides_runpath=yes
11659 hardcode_into_libs=yes
11660 # ldd complains unless libraries are executable
11661 postinstall_cmds='chmod +x $lib'
11662 ;;
11663
11664 sunos4*)
11665 version_type=sunos
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11667 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11668 shlibpath_var=LD_LIBRARY_PATH
11669 shlibpath_overrides_runpath=yes
11670 if test "$with_gnu_ld" = yes; then
11671 need_lib_prefix=no
11672 fi
11673 need_version=yes
11674 ;;
11675
11676 sysv4 | sysv4.3*)
11677 version_type=linux
11678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11679 soname_spec='${libname}${release}${shared_ext}$major'
11680 shlibpath_var=LD_LIBRARY_PATH
11681 case $host_vendor in
11682 sni)
11683 shlibpath_overrides_runpath=no
11684 need_lib_prefix=no
11685 runpath_var=LD_RUN_PATH
11686 ;;
11687 siemens)
11688 need_lib_prefix=no
11689 ;;
11690 motorola)
11691 need_lib_prefix=no
11692 need_version=no
11693 shlibpath_overrides_runpath=no
11694 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11695 ;;
11696 esac
11697 ;;
11698
11699 sysv4*MP*)
11700 if test -d /usr/nec ;then
11701 version_type=linux
11702 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11703 soname_spec='$libname${shared_ext}.$major'
11704 shlibpath_var=LD_LIBRARY_PATH
11705 fi
11706 ;;
11707
11708 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11709 version_type=freebsd-elf
11710 need_lib_prefix=no
11711 need_version=no
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11713 soname_spec='${libname}${release}${shared_ext}$major'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 shlibpath_overrides_runpath=yes
11716 hardcode_into_libs=yes
11717 if test "$with_gnu_ld" = yes; then
11718 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11719 else
11720 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11721 case $host_os in
11722 sco3.2v5*)
11723 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11724 ;;
11725 esac
11726 fi
11727 sys_lib_dlsearch_path_spec='/usr/lib'
11728 ;;
11729
11730 tpf*)
11731 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11732 version_type=linux
11733 need_lib_prefix=no
11734 need_version=no
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736 shlibpath_var=LD_LIBRARY_PATH
11737 shlibpath_overrides_runpath=no
11738 hardcode_into_libs=yes
11739 ;;
11740
11741 uts4*)
11742 version_type=linux
11743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11744 soname_spec='${libname}${release}${shared_ext}$major'
11745 shlibpath_var=LD_LIBRARY_PATH
11746 ;;
11747
11748 *)
11749 dynamic_linker=no
11750 ;;
11751 esac
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11753 $as_echo "$dynamic_linker" >&6; }
11754 test "$dynamic_linker" = no && can_build_shared=no
11755
11756 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11757 if test "$GCC" = yes; then
11758 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11759 fi
11760
11761 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11762 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11763 fi
11764 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11765 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11766 fi
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11860 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11861 hardcode_action=
11862 if test -n "$hardcode_libdir_flag_spec" ||
11863 test -n "$runpath_var" ||
11864 test "X$hardcode_automatic" = "Xyes" ; then
11865
11866 # We can hardcode non-existent directories.
11867 if test "$hardcode_direct" != no &&
11868 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11869 # have to relink, otherwise we might link with an installed library
11870 # when we should be linking with a yet-to-be-installed one
11871 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11872 test "$hardcode_minus_L" != no; then
11873 # Linking always hardcodes the temporary library directory.
11874 hardcode_action=relink
11875 else
11876 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11877 hardcode_action=immediate
11878 fi
11879 else
11880 # We cannot hardcode anything, or else we can only hardcode existing
11881 # directories.
11882 hardcode_action=unsupported
11883 fi
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11885 $as_echo "$hardcode_action" >&6; }
11886
11887 if test "$hardcode_action" = relink ||
11888 test "$inherit_rpath" = yes; then
11889 # Fast installation is not supported
11890 enable_fast_install=no
11891 elif test "$shlibpath_overrides_runpath" = yes ||
11892 test "$enable_shared" = no; then
11893 # Fast installation is not necessary
11894 enable_fast_install=needless
11895 fi
11896
11897
11898
11899
11900
11901
11902 if test "x$enable_dlopen" != xyes; then
11903 enable_dlopen=unknown
11904 enable_dlopen_self=unknown
11905 enable_dlopen_self_static=unknown
11906 else
11907 lt_cv_dlopen=no
11908 lt_cv_dlopen_libs=
11909
11910 case $host_os in
11911 beos*)
11912 lt_cv_dlopen="load_add_on"
11913 lt_cv_dlopen_libs=
11914 lt_cv_dlopen_self=yes
11915 ;;
11916
11917 mingw* | pw32* | cegcc*)
11918 lt_cv_dlopen="LoadLibrary"
11919 lt_cv_dlopen_libs=
11920 ;;
11921
11922 cygwin*)
11923 lt_cv_dlopen="dlopen"
11924 lt_cv_dlopen_libs=
11925 ;;
11926
11927 darwin*)
11928 # if libdl is installed we need to link against it
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11930 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11931 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 ac_check_lib_save_LIBS=$LIBS
11935 LIBS="-ldl $LIBS"
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11938
11939 /* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11942 #ifdef __cplusplus
11943 extern "C"
11944 #endif
11945 char dlopen ();
11946 int
11947 main ()
11948 {
11949 return dlopen ();
11950 ;
11951 return 0;
11952 }
11953 _ACEOF
11954 if ac_fn_c_try_link "$LINENO"; then :
11955 ac_cv_lib_dl_dlopen=yes
11956 else
11957 ac_cv_lib_dl_dlopen=no
11958 fi
11959 rm -f core conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11961 LIBS=$ac_check_lib_save_LIBS
11962 fi
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11964 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11965 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11967 else
11968
11969 lt_cv_dlopen="dyld"
11970 lt_cv_dlopen_libs=
11971 lt_cv_dlopen_self=yes
11972
11973 fi
11974
11975 ;;
11976
11977 *)
11978 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11979 if test "x$ac_cv_func_shl_load" = x""yes; then :
11980 lt_cv_dlopen="shl_load"
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11983 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11984 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11985 $as_echo_n "(cached) " >&6
11986 else
11987 ac_check_lib_save_LIBS=$LIBS
11988 LIBS="-ldld $LIBS"
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
11991
11992 /* Override any GCC internal prototype to avoid an error.
11993 Use char because int might match the return type of a GCC
11994 builtin and then its argument prototype would still apply. */
11995 #ifdef __cplusplus
11996 extern "C"
11997 #endif
11998 char shl_load ();
11999 int
12000 main ()
12001 {
12002 return shl_load ();
12003 ;
12004 return 0;
12005 }
12006 _ACEOF
12007 if ac_fn_c_try_link "$LINENO"; then :
12008 ac_cv_lib_dld_shl_load=yes
12009 else
12010 ac_cv_lib_dld_shl_load=no
12011 fi
12012 rm -f core conftest.err conftest.$ac_objext \
12013 conftest$ac_exeext conftest.$ac_ext
12014 LIBS=$ac_check_lib_save_LIBS
12015 fi
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12017 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12018 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12019 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12020 else
12021 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12022 if test "x$ac_cv_func_dlopen" = x""yes; then :
12023 lt_cv_dlopen="dlopen"
12024 else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12026 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12027 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12028 $as_echo_n "(cached) " >&6
12029 else
12030 ac_check_lib_save_LIBS=$LIBS
12031 LIBS="-ldl $LIBS"
12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h. */
12034
12035 /* Override any GCC internal prototype to avoid an error.
12036 Use char because int might match the return type of a GCC
12037 builtin and then its argument prototype would still apply. */
12038 #ifdef __cplusplus
12039 extern "C"
12040 #endif
12041 char dlopen ();
12042 int
12043 main ()
12044 {
12045 return dlopen ();
12046 ;
12047 return 0;
12048 }
12049 _ACEOF
12050 if ac_fn_c_try_link "$LINENO"; then :
12051 ac_cv_lib_dl_dlopen=yes
12052 else
12053 ac_cv_lib_dl_dlopen=no
12054 fi
12055 rm -f core conftest.err conftest.$ac_objext \
12056 conftest$ac_exeext conftest.$ac_ext
12057 LIBS=$ac_check_lib_save_LIBS
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12060 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12061 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12062 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12063 else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12065 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12066 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 ac_check_lib_save_LIBS=$LIBS
12070 LIBS="-lsvld $LIBS"
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12073
12074 /* Override any GCC internal prototype to avoid an error.
12075 Use char because int might match the return type of a GCC
12076 builtin and then its argument prototype would still apply. */
12077 #ifdef __cplusplus
12078 extern "C"
12079 #endif
12080 char dlopen ();
12081 int
12082 main ()
12083 {
12084 return dlopen ();
12085 ;
12086 return 0;
12087 }
12088 _ACEOF
12089 if ac_fn_c_try_link "$LINENO"; then :
12090 ac_cv_lib_svld_dlopen=yes
12091 else
12092 ac_cv_lib_svld_dlopen=no
12093 fi
12094 rm -f core conftest.err conftest.$ac_objext \
12095 conftest$ac_exeext conftest.$ac_ext
12096 LIBS=$ac_check_lib_save_LIBS
12097 fi
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12099 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12100 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12102 else
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12104 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12105 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 ac_check_lib_save_LIBS=$LIBS
12109 LIBS="-ldld $LIBS"
12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h. */
12112
12113 /* Override any GCC internal prototype to avoid an error.
12114 Use char because int might match the return type of a GCC
12115 builtin and then its argument prototype would still apply. */
12116 #ifdef __cplusplus
12117 extern "C"
12118 #endif
12119 char dld_link ();
12120 int
12121 main ()
12122 {
12123 return dld_link ();
12124 ;
12125 return 0;
12126 }
12127 _ACEOF
12128 if ac_fn_c_try_link "$LINENO"; then :
12129 ac_cv_lib_dld_dld_link=yes
12130 else
12131 ac_cv_lib_dld_dld_link=no
12132 fi
12133 rm -f core conftest.err conftest.$ac_objext \
12134 conftest$ac_exeext conftest.$ac_ext
12135 LIBS=$ac_check_lib_save_LIBS
12136 fi
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12138 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12139 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12140 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12141 fi
12142
12143
12144 fi
12145
12146
12147 fi
12148
12149
12150 fi
12151
12152
12153 fi
12154
12155
12156 fi
12157
12158 ;;
12159 esac
12160
12161 if test "x$lt_cv_dlopen" != xno; then
12162 enable_dlopen=yes
12163 else
12164 enable_dlopen=no
12165 fi
12166
12167 case $lt_cv_dlopen in
12168 dlopen)
12169 save_CPPFLAGS="$CPPFLAGS"
12170 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12171
12172 save_LDFLAGS="$LDFLAGS"
12173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12174
12175 save_LIBS="$LIBS"
12176 LIBS="$lt_cv_dlopen_libs $LIBS"
12177
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12179 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12180 if test "${lt_cv_dlopen_self+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 if test "$cross_compiling" = yes; then :
12184 lt_cv_dlopen_self=cross
12185 else
12186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12187 lt_status=$lt_dlunknown
12188 cat > conftest.$ac_ext <<_LT_EOF
12189 #line 12189 "configure"
12190 #include "confdefs.h"
12191
12192 #if HAVE_DLFCN_H
12193 #include <dlfcn.h>
12194 #endif
12195
12196 #include <stdio.h>
12197
12198 #ifdef RTLD_GLOBAL
12199 # define LT_DLGLOBAL RTLD_GLOBAL
12200 #else
12201 # ifdef DL_GLOBAL
12202 # define LT_DLGLOBAL DL_GLOBAL
12203 # else
12204 # define LT_DLGLOBAL 0
12205 # endif
12206 #endif
12207
12208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12209 find out it does not work in some platform. */
12210 #ifndef LT_DLLAZY_OR_NOW
12211 # ifdef RTLD_LAZY
12212 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12213 # else
12214 # ifdef DL_LAZY
12215 # define LT_DLLAZY_OR_NOW DL_LAZY
12216 # else
12217 # ifdef RTLD_NOW
12218 # define LT_DLLAZY_OR_NOW RTLD_NOW
12219 # else
12220 # ifdef DL_NOW
12221 # define LT_DLLAZY_OR_NOW DL_NOW
12222 # else
12223 # define LT_DLLAZY_OR_NOW 0
12224 # endif
12225 # endif
12226 # endif
12227 # endif
12228 #endif
12229
12230 /* When -fvisbility=hidden is used, assume the code has been annotated
12231 correspondingly for the symbols needed. */
12232 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12233 void fnord () __attribute__((visibility("default")));
12234 #endif
12235
12236 void fnord () { int i=42; }
12237 int main ()
12238 {
12239 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12240 int status = $lt_dlunknown;
12241
12242 if (self)
12243 {
12244 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12245 else
12246 {
12247 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12248 else puts (dlerror ());
12249 }
12250 /* dlclose (self); */
12251 }
12252 else
12253 puts (dlerror ());
12254
12255 return status;
12256 }
12257 _LT_EOF
12258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12259 (eval $ac_link) 2>&5
12260 ac_status=$?
12261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12262 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12263 (./conftest; exit; ) >&5 2>/dev/null
12264 lt_status=$?
12265 case x$lt_status in
12266 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12267 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12268 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12269 esac
12270 else :
12271 # compilation failed
12272 lt_cv_dlopen_self=no
12273 fi
12274 fi
12275 rm -fr conftest*
12276
12277
12278 fi
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12280 $as_echo "$lt_cv_dlopen_self" >&6; }
12281
12282 if test "x$lt_cv_dlopen_self" = xyes; then
12283 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12285 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12286 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 if test "$cross_compiling" = yes; then :
12290 lt_cv_dlopen_self_static=cross
12291 else
12292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12293 lt_status=$lt_dlunknown
12294 cat > conftest.$ac_ext <<_LT_EOF
12295 #line 12295 "configure"
12296 #include "confdefs.h"
12297
12298 #if HAVE_DLFCN_H
12299 #include <dlfcn.h>
12300 #endif
12301
12302 #include <stdio.h>
12303
12304 #ifdef RTLD_GLOBAL
12305 # define LT_DLGLOBAL RTLD_GLOBAL
12306 #else
12307 # ifdef DL_GLOBAL
12308 # define LT_DLGLOBAL DL_GLOBAL
12309 # else
12310 # define LT_DLGLOBAL 0
12311 # endif
12312 #endif
12313
12314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12315 find out it does not work in some platform. */
12316 #ifndef LT_DLLAZY_OR_NOW
12317 # ifdef RTLD_LAZY
12318 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12319 # else
12320 # ifdef DL_LAZY
12321 # define LT_DLLAZY_OR_NOW DL_LAZY
12322 # else
12323 # ifdef RTLD_NOW
12324 # define LT_DLLAZY_OR_NOW RTLD_NOW
12325 # else
12326 # ifdef DL_NOW
12327 # define LT_DLLAZY_OR_NOW DL_NOW
12328 # else
12329 # define LT_DLLAZY_OR_NOW 0
12330 # endif
12331 # endif
12332 # endif
12333 # endif
12334 #endif
12335
12336 /* When -fvisbility=hidden is used, assume the code has been annotated
12337 correspondingly for the symbols needed. */
12338 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12339 void fnord () __attribute__((visibility("default")));
12340 #endif
12341
12342 void fnord () { int i=42; }
12343 int main ()
12344 {
12345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12346 int status = $lt_dlunknown;
12347
12348 if (self)
12349 {
12350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12351 else
12352 {
12353 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12354 else puts (dlerror ());
12355 }
12356 /* dlclose (self); */
12357 }
12358 else
12359 puts (dlerror ());
12360
12361 return status;
12362 }
12363 _LT_EOF
12364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12365 (eval $ac_link) 2>&5
12366 ac_status=$?
12367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12368 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12369 (./conftest; exit; ) >&5 2>/dev/null
12370 lt_status=$?
12371 case x$lt_status in
12372 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12373 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12374 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12375 esac
12376 else :
12377 # compilation failed
12378 lt_cv_dlopen_self_static=no
12379 fi
12380 fi
12381 rm -fr conftest*
12382
12383
12384 fi
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12386 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12387 fi
12388
12389 CPPFLAGS="$save_CPPFLAGS"
12390 LDFLAGS="$save_LDFLAGS"
12391 LIBS="$save_LIBS"
12392 ;;
12393 esac
12394
12395 case $lt_cv_dlopen_self in
12396 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12397 *) enable_dlopen_self=unknown ;;
12398 esac
12399
12400 case $lt_cv_dlopen_self_static in
12401 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12402 *) enable_dlopen_self_static=unknown ;;
12403 esac
12404 fi
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422 striplib=
12423 old_striplib=
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12425 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12426 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12427 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12428 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12430 $as_echo "yes" >&6; }
12431 else
12432 # FIXME - insert some real tests, host_os isn't really good enough
12433 case $host_os in
12434 darwin*)
12435 if test -n "$STRIP" ; then
12436 striplib="$STRIP -x"
12437 old_striplib="$STRIP -S"
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12439 $as_echo "yes" >&6; }
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12443 fi
12444 ;;
12445 *)
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447 $as_echo "no" >&6; }
12448 ;;
12449 esac
12450 fi
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463 # Report which library types will actually be built
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12465 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12467 $as_echo "$can_build_shared" >&6; }
12468
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12470 $as_echo_n "checking whether to build shared libraries... " >&6; }
12471 test "$can_build_shared" = "no" && enable_shared=no
12472
12473 # On AIX, shared libraries and static libraries use the same namespace, and
12474 # are all built from PIC.
12475 case $host_os in
12476 aix3*)
12477 test "$enable_shared" = yes && enable_static=no
12478 if test -n "$RANLIB"; then
12479 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12480 postinstall_cmds='$RANLIB $lib'
12481 fi
12482 ;;
12483
12484 aix[4-9]*)
12485 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12486 test "$enable_shared" = yes && enable_static=no
12487 fi
12488 ;;
12489 esac
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12491 $as_echo "$enable_shared" >&6; }
12492
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12494 $as_echo_n "checking whether to build static libraries... " >&6; }
12495 # Make sure either enable_shared or enable_static is yes.
12496 test "$enable_shared" = yes || enable_static=yes
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12498 $as_echo "$enable_static" >&6; }
12499
12500
12501
12502
12503 fi
12504 ac_ext=c
12505 ac_cpp='$CPP $CPPFLAGS'
12506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12509
12510 CC="$lt_save_CC"
12511
12512 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12513 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12514 (test "X$CXX" != "Xg++"))) ; then
12515 ac_ext=cpp
12516 ac_cpp='$CXXCPP $CPPFLAGS'
12517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12521 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12522 if test -z "$CXXCPP"; then
12523 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12524 $as_echo_n "(cached) " >&6
12525 else
12526 # Double quotes because CXXCPP needs to be expanded
12527 for CXXCPP in "$CXX -E" "/lib/cpp"
12528 do
12529 ac_preproc_ok=false
12530 for ac_cxx_preproc_warn_flag in '' yes
12531 do
12532 # Use a header file that comes with gcc, so configuring glibc
12533 # with a fresh cross-compiler works.
12534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12535 # <limits.h> exists even on freestanding compilers.
12536 # On the NeXT, cc -E runs the code through the compiler's parser,
12537 # not just through cpp. "Syntax error" is here to catch this case.
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h. */
12540 #ifdef __STDC__
12541 # include <limits.h>
12542 #else
12543 # include <assert.h>
12544 #endif
12545 Syntax error
12546 _ACEOF
12547 if ac_fn_cxx_try_cpp "$LINENO"; then :
12548
12549 else
12550 # Broken: fails on valid input.
12551 continue
12552 fi
12553 rm -f conftest.err conftest.$ac_ext
12554
12555 # OK, works on sane cases. Now check whether nonexistent headers
12556 # can be detected and how.
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559 #include <ac_nonexistent.h>
12560 _ACEOF
12561 if ac_fn_cxx_try_cpp "$LINENO"; then :
12562 # Broken: success on invalid input.
12563 continue
12564 else
12565 # Passes both tests.
12566 ac_preproc_ok=:
12567 break
12568 fi
12569 rm -f conftest.err conftest.$ac_ext
12570
12571 done
12572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12573 rm -f conftest.err conftest.$ac_ext
12574 if $ac_preproc_ok; then :
12575 break
12576 fi
12577
12578 done
12579 ac_cv_prog_CXXCPP=$CXXCPP
12580
12581 fi
12582 CXXCPP=$ac_cv_prog_CXXCPP
12583 else
12584 ac_cv_prog_CXXCPP=$CXXCPP
12585 fi
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12587 $as_echo "$CXXCPP" >&6; }
12588 ac_preproc_ok=false
12589 for ac_cxx_preproc_warn_flag in '' yes
12590 do
12591 # Use a header file that comes with gcc, so configuring glibc
12592 # with a fresh cross-compiler works.
12593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12594 # <limits.h> exists even on freestanding compilers.
12595 # On the NeXT, cc -E runs the code through the compiler's parser,
12596 # not just through cpp. "Syntax error" is here to catch this case.
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12599 #ifdef __STDC__
12600 # include <limits.h>
12601 #else
12602 # include <assert.h>
12603 #endif
12604 Syntax error
12605 _ACEOF
12606 if ac_fn_cxx_try_cpp "$LINENO"; then :
12607
12608 else
12609 # Broken: fails on valid input.
12610 continue
12611 fi
12612 rm -f conftest.err conftest.$ac_ext
12613
12614 # OK, works on sane cases. Now check whether nonexistent headers
12615 # can be detected and how.
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12618 #include <ac_nonexistent.h>
12619 _ACEOF
12620 if ac_fn_cxx_try_cpp "$LINENO"; then :
12621 # Broken: success on invalid input.
12622 continue
12623 else
12624 # Passes both tests.
12625 ac_preproc_ok=:
12626 break
12627 fi
12628 rm -f conftest.err conftest.$ac_ext
12629
12630 done
12631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12632 rm -f conftest.err conftest.$ac_ext
12633 if $ac_preproc_ok; then :
12634
12635 else
12636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12638 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12639 See \`config.log' for more details." "$LINENO" 5; }
12640 fi
12641
12642 ac_ext=c
12643 ac_cpp='$CPP $CPPFLAGS'
12644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12647
12648 else
12649 _lt_caught_CXX_error=yes
12650 fi
12651
12652 ac_ext=cpp
12653 ac_cpp='$CXXCPP $CPPFLAGS'
12654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12657
12658 archive_cmds_need_lc_CXX=no
12659 allow_undefined_flag_CXX=
12660 always_export_symbols_CXX=no
12661 archive_expsym_cmds_CXX=
12662 compiler_needs_object_CXX=no
12663 export_dynamic_flag_spec_CXX=
12664 hardcode_direct_CXX=no
12665 hardcode_direct_absolute_CXX=no
12666 hardcode_libdir_flag_spec_CXX=
12667 hardcode_libdir_flag_spec_ld_CXX=
12668 hardcode_libdir_separator_CXX=
12669 hardcode_minus_L_CXX=no
12670 hardcode_shlibpath_var_CXX=unsupported
12671 hardcode_automatic_CXX=no
12672 inherit_rpath_CXX=no
12673 module_cmds_CXX=
12674 module_expsym_cmds_CXX=
12675 link_all_deplibs_CXX=unknown
12676 old_archive_cmds_CXX=$old_archive_cmds
12677 reload_flag_CXX=$reload_flag
12678 reload_cmds_CXX=$reload_cmds
12679 no_undefined_flag_CXX=
12680 whole_archive_flag_spec_CXX=
12681 enable_shared_with_static_runtimes_CXX=no
12682
12683 # Source file extension for C++ test sources.
12684 ac_ext=cpp
12685
12686 # Object file extension for compiled C++ test sources.
12687 objext=o
12688 objext_CXX=$objext
12689
12690 # No sense in running all these tests if we already determined that
12691 # the CXX compiler isn't working. Some variables (like enable_shared)
12692 # are currently assumed to apply to all compilers on this platform,
12693 # and will be corrupted by setting them based on a non-working compiler.
12694 if test "$_lt_caught_CXX_error" != yes; then
12695 # Code to be used in simple compile tests
12696 lt_simple_compile_test_code="int some_variable = 0;"
12697
12698 # Code to be used in simple link tests
12699 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12700
12701 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12702
12703
12704
12705
12706
12707
12708 # If no C compiler was specified, use CC.
12709 LTCC=${LTCC-"$CC"}
12710
12711 # If no C compiler flags were specified, use CFLAGS.
12712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12713
12714 # Allow CC to be a program name with arguments.
12715 compiler=$CC
12716
12717
12718 # save warnings/boilerplate of simple test code
12719 ac_outfile=conftest.$ac_objext
12720 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12721 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12722 _lt_compiler_boilerplate=`cat conftest.err`
12723 $RM conftest*
12724
12725 ac_outfile=conftest.$ac_objext
12726 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12727 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12728 _lt_linker_boilerplate=`cat conftest.err`
12729 $RM -r conftest*
12730
12731
12732 # Allow CC to be a program name with arguments.
12733 lt_save_CC=$CC
12734 lt_save_LD=$LD
12735 lt_save_GCC=$GCC
12736 GCC=$GXX
12737 lt_save_with_gnu_ld=$with_gnu_ld
12738 lt_save_path_LD=$lt_cv_path_LD
12739 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12740 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12741 else
12742 $as_unset lt_cv_prog_gnu_ld
12743 fi
12744 if test -n "${lt_cv_path_LDCXX+set}"; then
12745 lt_cv_path_LD=$lt_cv_path_LDCXX
12746 else
12747 $as_unset lt_cv_path_LD
12748 fi
12749 test -z "${LDCXX+set}" || LD=$LDCXX
12750 CC=${CXX-"c++"}
12751 compiler=$CC
12752 compiler_CXX=$CC
12753 for cc_temp in $compiler""; do
12754 case $cc_temp in
12755 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12756 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12757 \-*) ;;
12758 *) break;;
12759 esac
12760 done
12761 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12762
12763
12764 if test -n "$compiler"; then
12765 # We don't want -fno-exception when compiling C++ code, so set the
12766 # no_builtin_flag separately
12767 if test "$GXX" = yes; then
12768 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12769 else
12770 lt_prog_compiler_no_builtin_flag_CXX=
12771 fi
12772
12773 if test "$GXX" = yes; then
12774 # Set up default GNU C++ configuration
12775
12776
12777
12778 # Check whether --with-gnu-ld was given.
12779 if test "${with_gnu_ld+set}" = set; then :
12780 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12781 else
12782 with_gnu_ld=no
12783 fi
12784
12785 ac_prog=ld
12786 if test "$GCC" = yes; then
12787 # Check if gcc -print-prog-name=ld gives a path.
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12789 $as_echo_n "checking for ld used by $CC... " >&6; }
12790 case $host in
12791 *-*-mingw*)
12792 # gcc leaves a trailing carriage return which upsets mingw
12793 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12794 *)
12795 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12796 esac
12797 case $ac_prog in
12798 # Accept absolute paths.
12799 [\\/]* | ?:[\\/]*)
12800 re_direlt='/[^/][^/]*/\.\./'
12801 # Canonicalize the pathname of ld
12802 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12803 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12804 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12805 done
12806 test -z "$LD" && LD="$ac_prog"
12807 ;;
12808 "")
12809 # If it fails, then pretend we aren't using GCC.
12810 ac_prog=ld
12811 ;;
12812 *)
12813 # If it is relative, then search for the first ld in PATH.
12814 with_gnu_ld=unknown
12815 ;;
12816 esac
12817 elif test "$with_gnu_ld" = yes; then
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12819 $as_echo_n "checking for GNU ld... " >&6; }
12820 else
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12822 $as_echo_n "checking for non-GNU ld... " >&6; }
12823 fi
12824 if test "${lt_cv_path_LD+set}" = set; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 if test -z "$LD"; then
12828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12829 for ac_dir in $PATH; do
12830 IFS="$lt_save_ifs"
12831 test -z "$ac_dir" && ac_dir=.
12832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12833 lt_cv_path_LD="$ac_dir/$ac_prog"
12834 # Check to see if the program is GNU ld. I'd rather use --version,
12835 # but apparently some variants of GNU ld only accept -v.
12836 # Break only if it was the GNU/non-GNU ld that we prefer.
12837 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12838 *GNU* | *'with BFD'*)
12839 test "$with_gnu_ld" != no && break
12840 ;;
12841 *)
12842 test "$with_gnu_ld" != yes && break
12843 ;;
12844 esac
12845 fi
12846 done
12847 IFS="$lt_save_ifs"
12848 else
12849 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12850 fi
12851 fi
12852
12853 LD="$lt_cv_path_LD"
12854 if test -n "$LD"; then
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12856 $as_echo "$LD" >&6; }
12857 else
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859 $as_echo "no" >&6; }
12860 fi
12861 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12863 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12864 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
12866 else
12867 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12868 case `$LD -v 2>&1 </dev/null` in
12869 *GNU* | *'with BFD'*)
12870 lt_cv_prog_gnu_ld=yes
12871 ;;
12872 *)
12873 lt_cv_prog_gnu_ld=no
12874 ;;
12875 esac
12876 fi
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12878 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12879 with_gnu_ld=$lt_cv_prog_gnu_ld
12880
12881
12882
12883
12884
12885
12886
12887 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12888 # archiving commands below assume that GNU ld is being used.
12889 if test "$with_gnu_ld" = yes; then
12890 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12891 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12892
12893 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12895
12896 # If archive_cmds runs LD, not CC, wlarc should be empty
12897 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12898 # investigate it a little bit more. (MM)
12899 wlarc='${wl}'
12900
12901 # ancient GNU ld didn't support --whole-archive et. al.
12902 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12903 $GREP 'no-whole-archive' > /dev/null; then
12904 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12905 else
12906 whole_archive_flag_spec_CXX=
12907 fi
12908 else
12909 with_gnu_ld=no
12910 wlarc=
12911
12912 # A generic and very simple default shared library creation
12913 # command for GNU C++ for the case where it uses the native
12914 # linker, instead of GNU ld. If possible, this setting should
12915 # overridden to take advantage of the native linker features on
12916 # the platform it is being used on.
12917 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12918 fi
12919
12920 # Commands to make compiler produce verbose output that lists
12921 # what "hidden" libraries, object files and flags are used when
12922 # linking a shared library.
12923 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12924
12925 else
12926 GXX=no
12927 with_gnu_ld=no
12928 wlarc=
12929 fi
12930
12931 # PORTME: fill in a description of your system's C++ link characteristics
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12933 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12934 ld_shlibs_CXX=yes
12935 case $host_os in
12936 aix3*)
12937 # FIXME: insert proper C++ library support
12938 ld_shlibs_CXX=no
12939 ;;
12940 aix[4-9]*)
12941 if test "$host_cpu" = ia64; then
12942 # On IA64, the linker does run time linking by default, so we don't
12943 # have to do anything special.
12944 aix_use_runtimelinking=no
12945 exp_sym_flag='-Bexport'
12946 no_entry_flag=""
12947 else
12948 aix_use_runtimelinking=no
12949
12950 # Test if we are trying to use run time linking or normal
12951 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12952 # need to do runtime linking.
12953 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12954 for ld_flag in $LDFLAGS; do
12955 case $ld_flag in
12956 *-brtl*)
12957 aix_use_runtimelinking=yes
12958 break
12959 ;;
12960 esac
12961 done
12962 ;;
12963 esac
12964
12965 exp_sym_flag='-bexport'
12966 no_entry_flag='-bnoentry'
12967 fi
12968
12969 # When large executables or shared objects are built, AIX ld can
12970 # have problems creating the table of contents. If linking a library
12971 # or program results in "error TOC overflow" add -mminimal-toc to
12972 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12973 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12974
12975 archive_cmds_CXX=''
12976 hardcode_direct_CXX=yes
12977 hardcode_direct_absolute_CXX=yes
12978 hardcode_libdir_separator_CXX=':'
12979 link_all_deplibs_CXX=yes
12980 file_list_spec_CXX='${wl}-f,'
12981
12982 if test "$GXX" = yes; then
12983 case $host_os in aix4.[012]|aix4.[012].*)
12984 # We only want to do this on AIX 4.2 and lower, the check
12985 # below for broken collect2 doesn't work under 4.3+
12986 collect2name=`${CC} -print-prog-name=collect2`
12987 if test -f "$collect2name" &&
12988 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12989 then
12990 # We have reworked collect2
12991 :
12992 else
12993 # We have old collect2
12994 hardcode_direct_CXX=unsupported
12995 # It fails to find uninstalled libraries when the uninstalled
12996 # path is not listed in the libpath. Setting hardcode_minus_L
12997 # to unsupported forces relinking
12998 hardcode_minus_L_CXX=yes
12999 hardcode_libdir_flag_spec_CXX='-L$libdir'
13000 hardcode_libdir_separator_CXX=
13001 fi
13002 esac
13003 shared_flag='-shared'
13004 if test "$aix_use_runtimelinking" = yes; then
13005 shared_flag="$shared_flag "'${wl}-G'
13006 fi
13007 else
13008 # not using gcc
13009 if test "$host_cpu" = ia64; then
13010 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13011 # chokes on -Wl,-G. The following line is correct:
13012 shared_flag='-G'
13013 else
13014 if test "$aix_use_runtimelinking" = yes; then
13015 shared_flag='${wl}-G'
13016 else
13017 shared_flag='${wl}-bM:SRE'
13018 fi
13019 fi
13020 fi
13021
13022 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13023 # It seems that -bexpall does not export symbols beginning with
13024 # underscore (_), so it is better to generate a list of symbols to
13025 # export.
13026 always_export_symbols_CXX=yes
13027 if test "$aix_use_runtimelinking" = yes; then
13028 # Warning - without using the other runtime loading flags (-brtl),
13029 # -berok will link without error, but may produce a broken library.
13030 allow_undefined_flag_CXX='-berok'
13031 # Determine the default libpath from the value encoded in an empty
13032 # executable.
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13035
13036 int
13037 main ()
13038 {
13039
13040 ;
13041 return 0;
13042 }
13043 _ACEOF
13044 if ac_fn_cxx_try_link "$LINENO"; then :
13045
13046 lt_aix_libpath_sed='
13047 /Import File Strings/,/^$/ {
13048 /^0/ {
13049 s/^0 *\(.*\)$/\1/
13050 p
13051 }
13052 }'
13053 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13054 # Check for a 64-bit object if we didn't find anything.
13055 if test -z "$aix_libpath"; then
13056 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13057 fi
13058 fi
13059 rm -f core conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
13061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13062
13063 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13064
13065 archive_expsym_cmds_CXX='$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"
13066 else
13067 if test "$host_cpu" = ia64; then
13068 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13069 allow_undefined_flag_CXX="-z nodefs"
13070 archive_expsym_cmds_CXX="\$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"
13071 else
13072 # Determine the default libpath from the value encoded in an
13073 # empty executable.
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13076
13077 int
13078 main ()
13079 {
13080
13081 ;
13082 return 0;
13083 }
13084 _ACEOF
13085 if ac_fn_cxx_try_link "$LINENO"; then :
13086
13087 lt_aix_libpath_sed='
13088 /Import File Strings/,/^$/ {
13089 /^0/ {
13090 s/^0 *\(.*\)$/\1/
13091 p
13092 }
13093 }'
13094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13095 # Check for a 64-bit object if we didn't find anything.
13096 if test -z "$aix_libpath"; then
13097 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13098 fi
13099 fi
13100 rm -f core conftest.err conftest.$ac_objext \
13101 conftest$ac_exeext conftest.$ac_ext
13102 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13103
13104 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13105 # Warning - without using the other run time loading flags,
13106 # -berok will link without error, but may produce a broken library.
13107 no_undefined_flag_CXX=' ${wl}-bernotok'
13108 allow_undefined_flag_CXX=' ${wl}-berok'
13109 if test "$with_gnu_ld" = yes; then
13110 # We only use this code for GNU lds that support --whole-archive.
13111 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13112 else
13113 # Exported symbols can be pulled into shared objects from archives
13114 whole_archive_flag_spec_CXX='$convenience'
13115 fi
13116 archive_cmds_need_lc_CXX=yes
13117 # This is similar to how AIX traditionally builds its shared
13118 # libraries.
13119 archive_expsym_cmds_CXX="\$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'
13120 fi
13121 fi
13122 ;;
13123
13124 beos*)
13125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13126 allow_undefined_flag_CXX=unsupported
13127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13128 # support --undefined. This deserves some investigation. FIXME
13129 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13130 else
13131 ld_shlibs_CXX=no
13132 fi
13133 ;;
13134
13135 chorus*)
13136 case $cc_basename in
13137 *)
13138 # FIXME: insert proper C++ library support
13139 ld_shlibs_CXX=no
13140 ;;
13141 esac
13142 ;;
13143
13144 cygwin* | mingw* | pw32* | cegcc*)
13145 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13146 # as there is no search path for DLLs.
13147 hardcode_libdir_flag_spec_CXX='-L$libdir'
13148 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13149 allow_undefined_flag_CXX=unsupported
13150 always_export_symbols_CXX=no
13151 enable_shared_with_static_runtimes_CXX=yes
13152
13153 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13154 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13155 # If the export-symbols file already is a .def file (1st line
13156 # is EXPORTS), use it as is; otherwise, prepend...
13157 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13158 cp $export_symbols $output_objdir/$soname.def;
13159 else
13160 echo EXPORTS > $output_objdir/$soname.def;
13161 cat $export_symbols >> $output_objdir/$soname.def;
13162 fi~
13163 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13164 else
13165 ld_shlibs_CXX=no
13166 fi
13167 ;;
13168 darwin* | rhapsody*)
13169
13170
13171 archive_cmds_need_lc_CXX=no
13172 hardcode_direct_CXX=no
13173 hardcode_automatic_CXX=yes
13174 hardcode_shlibpath_var_CXX=unsupported
13175 if test "$lt_cv_ld_force_load" = "yes"; then
13176 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13177 else
13178 whole_archive_flag_spec_CXX=''
13179 fi
13180 link_all_deplibs_CXX=yes
13181 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13182 case $cc_basename in
13183 ifort*) _lt_dar_can_shared=yes ;;
13184 *) _lt_dar_can_shared=$GCC ;;
13185 esac
13186 if test "$_lt_dar_can_shared" = "yes"; then
13187 output_verbose_link_cmd=func_echo_all
13188 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13189 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13190 archive_expsym_cmds_CXX="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}"
13191 module_expsym_cmds_CXX="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}"
13192 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13193 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13194 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13195 fi
13196
13197 else
13198 ld_shlibs_CXX=no
13199 fi
13200
13201 ;;
13202
13203 dgux*)
13204 case $cc_basename in
13205 ec++*)
13206 # FIXME: insert proper C++ library support
13207 ld_shlibs_CXX=no
13208 ;;
13209 ghcx*)
13210 # Green Hills C++ Compiler
13211 # FIXME: insert proper C++ library support
13212 ld_shlibs_CXX=no
13213 ;;
13214 *)
13215 # FIXME: insert proper C++ library support
13216 ld_shlibs_CXX=no
13217 ;;
13218 esac
13219 ;;
13220
13221 freebsd2.*)
13222 # C++ shared libraries reported to be fairly broken before
13223 # switch to ELF
13224 ld_shlibs_CXX=no
13225 ;;
13226
13227 freebsd-elf*)
13228 archive_cmds_need_lc_CXX=no
13229 ;;
13230
13231 freebsd* | dragonfly*)
13232 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13233 # conventions
13234 ld_shlibs_CXX=yes
13235 ;;
13236
13237 gnu*)
13238 ;;
13239
13240 haiku*)
13241 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13242 link_all_deplibs_CXX=yes
13243 ;;
13244
13245 hpux9*)
13246 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13247 hardcode_libdir_separator_CXX=:
13248 export_dynamic_flag_spec_CXX='${wl}-E'
13249 hardcode_direct_CXX=yes
13250 hardcode_minus_L_CXX=yes # Not in the search PATH,
13251 # but as the default
13252 # location of the library.
13253
13254 case $cc_basename in
13255 CC*)
13256 # FIXME: insert proper C++ library support
13257 ld_shlibs_CXX=no
13258 ;;
13259 aCC*)
13260 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13261 # Commands to make compiler produce verbose output that lists
13262 # what "hidden" libraries, object files and flags are used when
13263 # linking a shared library.
13264 #
13265 # There doesn't appear to be a way to prevent this compiler from
13266 # explicitly linking system object files so we need to strip them
13267 # from the output so that they don't get included in the library
13268 # dependencies.
13269 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13270 ;;
13271 *)
13272 if test "$GXX" = yes; then
13273 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13274 else
13275 # FIXME: insert proper C++ library support
13276 ld_shlibs_CXX=no
13277 fi
13278 ;;
13279 esac
13280 ;;
13281
13282 hpux10*|hpux11*)
13283 if test $with_gnu_ld = no; then
13284 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13285 hardcode_libdir_separator_CXX=:
13286
13287 case $host_cpu in
13288 hppa*64*|ia64*)
13289 ;;
13290 *)
13291 export_dynamic_flag_spec_CXX='${wl}-E'
13292 ;;
13293 esac
13294 fi
13295 case $host_cpu in
13296 hppa*64*|ia64*)
13297 hardcode_direct_CXX=no
13298 hardcode_shlibpath_var_CXX=no
13299 ;;
13300 *)
13301 hardcode_direct_CXX=yes
13302 hardcode_direct_absolute_CXX=yes
13303 hardcode_minus_L_CXX=yes # Not in the search PATH,
13304 # but as the default
13305 # location of the library.
13306 ;;
13307 esac
13308
13309 case $cc_basename in
13310 CC*)
13311 # FIXME: insert proper C++ library support
13312 ld_shlibs_CXX=no
13313 ;;
13314 aCC*)
13315 case $host_cpu in
13316 hppa*64*)
13317 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13318 ;;
13319 ia64*)
13320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13321 ;;
13322 *)
13323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13324 ;;
13325 esac
13326 # Commands to make compiler produce verbose output that lists
13327 # what "hidden" libraries, object files and flags are used when
13328 # linking a shared library.
13329 #
13330 # There doesn't appear to be a way to prevent this compiler from
13331 # explicitly linking system object files so we need to strip them
13332 # from the output so that they don't get included in the library
13333 # dependencies.
13334 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13335 ;;
13336 *)
13337 if test "$GXX" = yes; then
13338 if test $with_gnu_ld = no; then
13339 case $host_cpu in
13340 hppa*64*)
13341 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13342 ;;
13343 ia64*)
13344 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13345 ;;
13346 *)
13347 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13348 ;;
13349 esac
13350 fi
13351 else
13352 # FIXME: insert proper C++ library support
13353 ld_shlibs_CXX=no
13354 fi
13355 ;;
13356 esac
13357 ;;
13358
13359 interix[3-9]*)
13360 hardcode_direct_CXX=no
13361 hardcode_shlibpath_var_CXX=no
13362 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13363 export_dynamic_flag_spec_CXX='${wl}-E'
13364 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13365 # Instead, shared libraries are loaded at an image base (0x10000000 by
13366 # default) and relocated if they conflict, which is a slow very memory
13367 # consuming and fragmenting process. To avoid this, we pick a random,
13368 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13369 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13370 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13371 archive_expsym_cmds_CXX='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'
13372 ;;
13373 irix5* | irix6*)
13374 case $cc_basename in
13375 CC*)
13376 # SGI C++
13377 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13378
13379 # Archives containing C++ object files must be created using
13380 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13381 # necessary to make sure instantiated templates are included
13382 # in the archive.
13383 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13384 ;;
13385 *)
13386 if test "$GXX" = yes; then
13387 if test "$with_gnu_ld" = no; then
13388 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13389 else
13390 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13391 fi
13392 fi
13393 link_all_deplibs_CXX=yes
13394 ;;
13395 esac
13396 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13397 hardcode_libdir_separator_CXX=:
13398 inherit_rpath_CXX=yes
13399 ;;
13400
13401 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13402 case $cc_basename in
13403 KCC*)
13404 # Kuck and Associates, Inc. (KAI) C++ Compiler
13405
13406 # KCC will only create a shared library if the output file
13407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13408 # to its proper name (with version) after linking.
13409 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13410 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13411 # Commands to make compiler produce verbose output that lists
13412 # what "hidden" libraries, object files and flags are used when
13413 # linking a shared library.
13414 #
13415 # There doesn't appear to be a way to prevent this compiler from
13416 # explicitly linking system object files so we need to strip them
13417 # from the output so that they don't get included in the library
13418 # dependencies.
13419 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13420
13421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13423
13424 # Archives containing C++ object files must be created using
13425 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13426 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13427 ;;
13428 icpc* | ecpc* )
13429 # Intel C++
13430 with_gnu_ld=yes
13431 # version 8.0 and above of icpc choke on multiply defined symbols
13432 # if we add $predep_objects and $postdep_objects, however 7.1 and
13433 # earlier do not add the objects themselves.
13434 case `$CC -V 2>&1` in
13435 *"Version 7."*)
13436 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13437 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13438 ;;
13439 *) # Version 8.0 or newer
13440 tmp_idyn=
13441 case $host_cpu in
13442 ia64*) tmp_idyn=' -i_dynamic';;
13443 esac
13444 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13445 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13446 ;;
13447 esac
13448 archive_cmds_need_lc_CXX=no
13449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13451 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13452 ;;
13453 pgCC* | pgcpp*)
13454 # Portland Group C++ compiler
13455 case `$CC -V` in
13456 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13457 prelink_cmds_CXX='tpldir=Template.dir~
13458 rm -rf $tpldir~
13459 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13460 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13461 old_archive_cmds_CXX='tpldir=Template.dir~
13462 rm -rf $tpldir~
13463 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13464 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13465 $RANLIB $oldlib'
13466 archive_cmds_CXX='tpldir=Template.dir~
13467 rm -rf $tpldir~
13468 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13469 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13470 archive_expsym_cmds_CXX='tpldir=Template.dir~
13471 rm -rf $tpldir~
13472 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13473 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13474 ;;
13475 *) # Version 6 and above use weak symbols
13476 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13477 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13478 ;;
13479 esac
13480
13481 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13482 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13483 whole_archive_flag_spec_CXX='${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'
13484 ;;
13485 cxx*)
13486 # Compaq C++
13487 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13488 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13489
13490 runpath_var=LD_RUN_PATH
13491 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13492 hardcode_libdir_separator_CXX=:
13493
13494 # Commands to make compiler produce verbose output that lists
13495 # what "hidden" libraries, object files and flags are used when
13496 # linking a shared library.
13497 #
13498 # There doesn't appear to be a way to prevent this compiler from
13499 # explicitly linking system object files so we need to strip them
13500 # from the output so that they don't get included in the library
13501 # dependencies.
13502 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13503 ;;
13504 xl* | mpixl* | bgxl*)
13505 # IBM XL 8.0 on PPC, with GNU ld
13506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13507 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13508 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13509 if test "x$supports_anon_versioning" = xyes; then
13510 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13511 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13512 echo "local: *; };" >> $output_objdir/$libname.ver~
13513 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13514 fi
13515 ;;
13516 *)
13517 case `$CC -V 2>&1 | sed 5q` in
13518 *Sun\ C*)
13519 # Sun C++ 5.9
13520 no_undefined_flag_CXX=' -zdefs'
13521 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13522 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13523 hardcode_libdir_flag_spec_CXX='-R$libdir'
13524 whole_archive_flag_spec_CXX='${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'
13525 compiler_needs_object_CXX=yes
13526
13527 # Not sure whether something based on
13528 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13529 # would be better.
13530 output_verbose_link_cmd='func_echo_all'
13531
13532 # Archives containing C++ object files must be created using
13533 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13534 # necessary to make sure instantiated templates are included
13535 # in the archive.
13536 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13537 ;;
13538 esac
13539 ;;
13540 esac
13541 ;;
13542
13543 lynxos*)
13544 # FIXME: insert proper C++ library support
13545 ld_shlibs_CXX=no
13546 ;;
13547
13548 m88k*)
13549 # FIXME: insert proper C++ library support
13550 ld_shlibs_CXX=no
13551 ;;
13552
13553 mvs*)
13554 case $cc_basename in
13555 cxx*)
13556 # FIXME: insert proper C++ library support
13557 ld_shlibs_CXX=no
13558 ;;
13559 *)
13560 # FIXME: insert proper C++ library support
13561 ld_shlibs_CXX=no
13562 ;;
13563 esac
13564 ;;
13565
13566 netbsd*)
13567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13568 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13569 wlarc=
13570 hardcode_libdir_flag_spec_CXX='-R$libdir'
13571 hardcode_direct_CXX=yes
13572 hardcode_shlibpath_var_CXX=no
13573 fi
13574 # Workaround some broken pre-1.5 toolchains
13575 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13576 ;;
13577
13578 *nto* | *qnx*)
13579 ld_shlibs_CXX=yes
13580 ;;
13581
13582 openbsd2*)
13583 # C++ shared libraries are fairly broken
13584 ld_shlibs_CXX=no
13585 ;;
13586
13587 openbsd*)
13588 if test -f /usr/libexec/ld.so; then
13589 hardcode_direct_CXX=yes
13590 hardcode_shlibpath_var_CXX=no
13591 hardcode_direct_absolute_CXX=yes
13592 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13593 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13595 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13596 export_dynamic_flag_spec_CXX='${wl}-E'
13597 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13598 fi
13599 output_verbose_link_cmd=func_echo_all
13600 else
13601 ld_shlibs_CXX=no
13602 fi
13603 ;;
13604
13605 osf3* | osf4* | osf5*)
13606 case $cc_basename in
13607 KCC*)
13608 # Kuck and Associates, Inc. (KAI) C++ Compiler
13609
13610 # KCC will only create a shared library if the output file
13611 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13612 # to its proper name (with version) after linking.
13613 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13614
13615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13616 hardcode_libdir_separator_CXX=:
13617
13618 # Archives containing C++ object files must be created using
13619 # the KAI C++ compiler.
13620 case $host in
13621 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13622 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13623 esac
13624 ;;
13625 RCC*)
13626 # Rational C++ 2.4.1
13627 # FIXME: insert proper C++ library support
13628 ld_shlibs_CXX=no
13629 ;;
13630 cxx*)
13631 case $host in
13632 osf3*)
13633 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13634 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13635 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13636 ;;
13637 *)
13638 allow_undefined_flag_CXX=' -expect_unresolved \*'
13639 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13640 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13641 echo "-hidden">> $lib.exp~
13642 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13643 $RM $lib.exp'
13644 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13645 ;;
13646 esac
13647
13648 hardcode_libdir_separator_CXX=:
13649
13650 # Commands to make compiler produce verbose output that lists
13651 # what "hidden" libraries, object files and flags are used when
13652 # linking a shared library.
13653 #
13654 # There doesn't appear to be a way to prevent this compiler from
13655 # explicitly linking system object files so we need to strip them
13656 # from the output so that they don't get included in the library
13657 # dependencies.
13658 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13659 ;;
13660 *)
13661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13662 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13663 case $host in
13664 osf3*)
13665 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13666 ;;
13667 *)
13668 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13669 ;;
13670 esac
13671
13672 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13673 hardcode_libdir_separator_CXX=:
13674
13675 # Commands to make compiler produce verbose output that lists
13676 # what "hidden" libraries, object files and flags are used when
13677 # linking a shared library.
13678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13679
13680 else
13681 # FIXME: insert proper C++ library support
13682 ld_shlibs_CXX=no
13683 fi
13684 ;;
13685 esac
13686 ;;
13687
13688 psos*)
13689 # FIXME: insert proper C++ library support
13690 ld_shlibs_CXX=no
13691 ;;
13692
13693 sunos4*)
13694 case $cc_basename in
13695 CC*)
13696 # Sun C++ 4.x
13697 # FIXME: insert proper C++ library support
13698 ld_shlibs_CXX=no
13699 ;;
13700 lcc*)
13701 # Lucid
13702 # FIXME: insert proper C++ library support
13703 ld_shlibs_CXX=no
13704 ;;
13705 *)
13706 # FIXME: insert proper C++ library support
13707 ld_shlibs_CXX=no
13708 ;;
13709 esac
13710 ;;
13711
13712 solaris*)
13713 case $cc_basename in
13714 CC*)
13715 # Sun C++ 4.2, 5.x and Centerline C++
13716 archive_cmds_need_lc_CXX=yes
13717 no_undefined_flag_CXX=' -zdefs'
13718 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13719 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13720 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13721
13722 hardcode_libdir_flag_spec_CXX='-R$libdir'
13723 hardcode_shlibpath_var_CXX=no
13724 case $host_os in
13725 solaris2.[0-5] | solaris2.[0-5].*) ;;
13726 *)
13727 # The compiler driver will combine and reorder linker options,
13728 # but understands `-z linker_flag'.
13729 # Supported since Solaris 2.6 (maybe 2.5.1?)
13730 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13731 ;;
13732 esac
13733 link_all_deplibs_CXX=yes
13734
13735 output_verbose_link_cmd='func_echo_all'
13736
13737 # Archives containing C++ object files must be created using
13738 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13739 # necessary to make sure instantiated templates are included
13740 # in the archive.
13741 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13742 ;;
13743 gcx*)
13744 # Green Hills C++ Compiler
13745 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13746
13747 # The C++ compiler must be used to create the archive.
13748 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13749 ;;
13750 *)
13751 # GNU C++ compiler with Solaris linker
13752 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13753 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13754 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13755 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13756 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13757 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13758
13759 # Commands to make compiler produce verbose output that lists
13760 # what "hidden" libraries, object files and flags are used when
13761 # linking a shared library.
13762 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13763 else
13764 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13765 # platform.
13766 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13767 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13768 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13769
13770 # Commands to make compiler produce verbose output that lists
13771 # what "hidden" libraries, object files and flags are used when
13772 # linking a shared library.
13773 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13774 fi
13775
13776 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13777 case $host_os in
13778 solaris2.[0-5] | solaris2.[0-5].*) ;;
13779 *)
13780 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13781 ;;
13782 esac
13783 fi
13784 ;;
13785 esac
13786 ;;
13787
13788 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13789 no_undefined_flag_CXX='${wl}-z,text'
13790 archive_cmds_need_lc_CXX=no
13791 hardcode_shlibpath_var_CXX=no
13792 runpath_var='LD_RUN_PATH'
13793
13794 case $cc_basename in
13795 CC*)
13796 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13797 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13798 ;;
13799 *)
13800 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13802 ;;
13803 esac
13804 ;;
13805
13806 sysv5* | sco3.2v5* | sco5v6*)
13807 # Note: We can NOT use -z defs as we might desire, because we do not
13808 # link with -lc, and that would cause any symbols used from libc to
13809 # always be unresolved, which means just about no library would
13810 # ever link correctly. If we're not using GNU ld we use -z text
13811 # though, which does catch some bad symbols but isn't as heavy-handed
13812 # as -z defs.
13813 no_undefined_flag_CXX='${wl}-z,text'
13814 allow_undefined_flag_CXX='${wl}-z,nodefs'
13815 archive_cmds_need_lc_CXX=no
13816 hardcode_shlibpath_var_CXX=no
13817 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13818 hardcode_libdir_separator_CXX=':'
13819 link_all_deplibs_CXX=yes
13820 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13821 runpath_var='LD_RUN_PATH'
13822
13823 case $cc_basename in
13824 CC*)
13825 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13826 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13827 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13828 '"$old_archive_cmds_CXX"
13829 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13830 '"$reload_cmds_CXX"
13831 ;;
13832 *)
13833 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13834 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13835 ;;
13836 esac
13837 ;;
13838
13839 tandem*)
13840 case $cc_basename in
13841 NCC*)
13842 # NonStop-UX NCC 3.20
13843 # FIXME: insert proper C++ library support
13844 ld_shlibs_CXX=no
13845 ;;
13846 *)
13847 # FIXME: insert proper C++ library support
13848 ld_shlibs_CXX=no
13849 ;;
13850 esac
13851 ;;
13852
13853 vxworks*)
13854 # FIXME: insert proper C++ library support
13855 ld_shlibs_CXX=no
13856 ;;
13857
13858 *)
13859 # FIXME: insert proper C++ library support
13860 ld_shlibs_CXX=no
13861 ;;
13862 esac
13863
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13865 $as_echo "$ld_shlibs_CXX" >&6; }
13866 test "$ld_shlibs_CXX" = no && can_build_shared=no
13867
13868 GCC_CXX="$GXX"
13869 LD_CXX="$LD"
13870
13871 ## CAVEAT EMPTOR:
13872 ## There is no encapsulation within the following macros, do not change
13873 ## the running order or otherwise move them around unless you know exactly
13874 ## what you are doing...
13875 # Dependencies to place before and after the object being linked:
13876 predep_objects_CXX=
13877 postdep_objects_CXX=
13878 predeps_CXX=
13879 postdeps_CXX=
13880 compiler_lib_search_path_CXX=
13881
13882 cat > conftest.$ac_ext <<_LT_EOF
13883 class Foo
13884 {
13885 public:
13886 Foo (void) { a = 0; }
13887 private:
13888 int a;
13889 };
13890 _LT_EOF
13891
13892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13893 (eval $ac_compile) 2>&5
13894 ac_status=$?
13895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13896 test $ac_status = 0; }; then
13897 # Parse the compiler output and extract the necessary
13898 # objects, libraries and library flags.
13899
13900 # Sentinel used to keep track of whether or not we are before
13901 # the conftest object file.
13902 pre_test_object_deps_done=no
13903
13904 for p in `eval "$output_verbose_link_cmd"`; do
13905 case $p in
13906
13907 -L* | -R* | -l*)
13908 # Some compilers place space between "-{L,R}" and the path.
13909 # Remove the space.
13910 if test $p = "-L" ||
13911 test $p = "-R"; then
13912 prev=$p
13913 continue
13914 else
13915 prev=
13916 fi
13917
13918 if test "$pre_test_object_deps_done" = no; then
13919 case $p in
13920 -L* | -R*)
13921 # Internal compiler library paths should come after those
13922 # provided the user. The postdeps already come after the
13923 # user supplied libs so there is no need to process them.
13924 if test -z "$compiler_lib_search_path_CXX"; then
13925 compiler_lib_search_path_CXX="${prev}${p}"
13926 else
13927 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13928 fi
13929 ;;
13930 # The "-l" case would never come before the object being
13931 # linked, so don't bother handling this case.
13932 esac
13933 else
13934 if test -z "$postdeps_CXX"; then
13935 postdeps_CXX="${prev}${p}"
13936 else
13937 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13938 fi
13939 fi
13940 ;;
13941
13942 *.$objext)
13943 # This assumes that the test object file only shows up
13944 # once in the compiler output.
13945 if test "$p" = "conftest.$objext"; then
13946 pre_test_object_deps_done=yes
13947 continue
13948 fi
13949
13950 if test "$pre_test_object_deps_done" = no; then
13951 if test -z "$predep_objects_CXX"; then
13952 predep_objects_CXX="$p"
13953 else
13954 predep_objects_CXX="$predep_objects_CXX $p"
13955 fi
13956 else
13957 if test -z "$postdep_objects_CXX"; then
13958 postdep_objects_CXX="$p"
13959 else
13960 postdep_objects_CXX="$postdep_objects_CXX $p"
13961 fi
13962 fi
13963 ;;
13964
13965 *) ;; # Ignore the rest.
13966
13967 esac
13968 done
13969
13970 # Clean up.
13971 rm -f a.out a.exe
13972 else
13973 echo "libtool.m4: error: problem compiling CXX test program"
13974 fi
13975
13976 $RM -f confest.$objext
13977
13978 # PORTME: override above test on systems where it is broken
13979 case $host_os in
13980 interix[3-9]*)
13981 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13982 # hack all around it, let's just trust "g++" to DTRT.
13983 predep_objects_CXX=
13984 postdep_objects_CXX=
13985 postdeps_CXX=
13986 ;;
13987
13988 linux*)
13989 case `$CC -V 2>&1 | sed 5q` in
13990 *Sun\ C*)
13991 # Sun C++ 5.9
13992
13993 # The more standards-conforming stlport4 library is
13994 # incompatible with the Cstd library. Avoid specifying
13995 # it if it's in CXXFLAGS. Ignore libCrun as
13996 # -library=stlport4 depends on it.
13997 case " $CXX $CXXFLAGS " in
13998 *" -library=stlport4 "*)
13999 solaris_use_stlport4=yes
14000 ;;
14001 esac
14002
14003 if test "$solaris_use_stlport4" != yes; then
14004 postdeps_CXX='-library=Cstd -library=Crun'
14005 fi
14006 ;;
14007 esac
14008 ;;
14009
14010 solaris*)
14011 case $cc_basename in
14012 CC*)
14013 # The more standards-conforming stlport4 library is
14014 # incompatible with the Cstd library. Avoid specifying
14015 # it if it's in CXXFLAGS. Ignore libCrun as
14016 # -library=stlport4 depends on it.
14017 case " $CXX $CXXFLAGS " in
14018 *" -library=stlport4 "*)
14019 solaris_use_stlport4=yes
14020 ;;
14021 esac
14022
14023 # Adding this requires a known-good setup of shared libraries for
14024 # Sun compiler versions before 5.6, else PIC objects from an old
14025 # archive will be linked into the output, leading to subtle bugs.
14026 if test "$solaris_use_stlport4" != yes; then
14027 postdeps_CXX='-library=Cstd -library=Crun'
14028 fi
14029 ;;
14030 esac
14031 ;;
14032 esac
14033
14034
14035 case " $postdeps_CXX " in
14036 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14037 esac
14038 compiler_lib_search_dirs_CXX=
14039 if test -n "${compiler_lib_search_path_CXX}"; then
14040 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14041 fi
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073 lt_prog_compiler_wl_CXX=
14074 lt_prog_compiler_pic_CXX=
14075 lt_prog_compiler_static_CXX=
14076
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14078 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14079
14080 # C++ specific cases for pic, static, wl, etc.
14081 if test "$GXX" = yes; then
14082 lt_prog_compiler_wl_CXX='-Wl,'
14083 lt_prog_compiler_static_CXX='-static'
14084
14085 case $host_os in
14086 aix*)
14087 # All AIX code is PIC.
14088 if test "$host_cpu" = ia64; then
14089 # AIX 5 now supports IA64 processor
14090 lt_prog_compiler_static_CXX='-Bstatic'
14091 fi
14092 lt_prog_compiler_pic_CXX='-fPIC'
14093 ;;
14094
14095 amigaos*)
14096 case $host_cpu in
14097 powerpc)
14098 # see comment about AmigaOS4 .so support
14099 lt_prog_compiler_pic_CXX='-fPIC'
14100 ;;
14101 m68k)
14102 # FIXME: we need at least 68020 code to build shared libraries, but
14103 # adding the `-m68020' flag to GCC prevents building anything better,
14104 # like `-m68040'.
14105 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14106 ;;
14107 esac
14108 ;;
14109
14110 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14111 # PIC is the default for these OSes.
14112 ;;
14113 mingw* | cygwin* | os2* | pw32* | cegcc*)
14114 # This hack is so that the source file can tell whether it is being
14115 # built for inclusion in a dll (and should export symbols for example).
14116 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14117 # (--disable-auto-import) libraries
14118 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14119 ;;
14120 darwin* | rhapsody*)
14121 # PIC is the default on this platform
14122 # Common symbols not allowed in MH_DYLIB files
14123 lt_prog_compiler_pic_CXX='-fno-common'
14124 ;;
14125 *djgpp*)
14126 # DJGPP does not support shared libraries at all
14127 lt_prog_compiler_pic_CXX=
14128 ;;
14129 haiku*)
14130 # PIC is the default for Haiku.
14131 # The "-static" flag exists, but is broken.
14132 lt_prog_compiler_static_CXX=
14133 ;;
14134 interix[3-9]*)
14135 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14136 # Instead, we relocate shared libraries at runtime.
14137 ;;
14138 sysv4*MP*)
14139 if test -d /usr/nec; then
14140 lt_prog_compiler_pic_CXX=-Kconform_pic
14141 fi
14142 ;;
14143 hpux*)
14144 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14145 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14146 # sets the default TLS model and affects inlining.
14147 case $host_cpu in
14148 hppa*64*)
14149 ;;
14150 *)
14151 lt_prog_compiler_pic_CXX='-fPIC'
14152 ;;
14153 esac
14154 ;;
14155 *qnx* | *nto*)
14156 # QNX uses GNU C++, but need to define -shared option too, otherwise
14157 # it will coredump.
14158 lt_prog_compiler_pic_CXX='-fPIC -shared'
14159 ;;
14160 *)
14161 lt_prog_compiler_pic_CXX='-fPIC'
14162 ;;
14163 esac
14164 else
14165 case $host_os in
14166 aix[4-9]*)
14167 # All AIX code is PIC.
14168 if test "$host_cpu" = ia64; then
14169 # AIX 5 now supports IA64 processor
14170 lt_prog_compiler_static_CXX='-Bstatic'
14171 else
14172 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14173 fi
14174 ;;
14175 chorus*)
14176 case $cc_basename in
14177 cxch68*)
14178 # Green Hills C++ Compiler
14179 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14180 ;;
14181 esac
14182 ;;
14183 dgux*)
14184 case $cc_basename in
14185 ec++*)
14186 lt_prog_compiler_pic_CXX='-KPIC'
14187 ;;
14188 ghcx*)
14189 # Green Hills C++ Compiler
14190 lt_prog_compiler_pic_CXX='-pic'
14191 ;;
14192 *)
14193 ;;
14194 esac
14195 ;;
14196 freebsd* | dragonfly*)
14197 # FreeBSD uses GNU C++
14198 ;;
14199 hpux9* | hpux10* | hpux11*)
14200 case $cc_basename in
14201 CC*)
14202 lt_prog_compiler_wl_CXX='-Wl,'
14203 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14204 if test "$host_cpu" != ia64; then
14205 lt_prog_compiler_pic_CXX='+Z'
14206 fi
14207 ;;
14208 aCC*)
14209 lt_prog_compiler_wl_CXX='-Wl,'
14210 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14211 case $host_cpu in
14212 hppa*64*|ia64*)
14213 # +Z the default
14214 ;;
14215 *)
14216 lt_prog_compiler_pic_CXX='+Z'
14217 ;;
14218 esac
14219 ;;
14220 *)
14221 ;;
14222 esac
14223 ;;
14224 interix*)
14225 # This is c89, which is MS Visual C++ (no shared libs)
14226 # Anyone wants to do a port?
14227 ;;
14228 irix5* | irix6* | nonstopux*)
14229 case $cc_basename in
14230 CC*)
14231 lt_prog_compiler_wl_CXX='-Wl,'
14232 lt_prog_compiler_static_CXX='-non_shared'
14233 # CC pic flag -KPIC is the default.
14234 ;;
14235 *)
14236 ;;
14237 esac
14238 ;;
14239 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14240 case $cc_basename in
14241 KCC*)
14242 # KAI C++ Compiler
14243 lt_prog_compiler_wl_CXX='--backend -Wl,'
14244 lt_prog_compiler_pic_CXX='-fPIC'
14245 ;;
14246 ecpc* )
14247 # old Intel C++ for x86_64 which still supported -KPIC.
14248 lt_prog_compiler_wl_CXX='-Wl,'
14249 lt_prog_compiler_pic_CXX='-KPIC'
14250 lt_prog_compiler_static_CXX='-static'
14251 ;;
14252 icpc* )
14253 # Intel C++, used to be incompatible with GCC.
14254 # ICC 10 doesn't accept -KPIC any more.
14255 lt_prog_compiler_wl_CXX='-Wl,'
14256 lt_prog_compiler_pic_CXX='-fPIC'
14257 lt_prog_compiler_static_CXX='-static'
14258 ;;
14259 pgCC* | pgcpp*)
14260 # Portland Group C++ compiler
14261 lt_prog_compiler_wl_CXX='-Wl,'
14262 lt_prog_compiler_pic_CXX='-fpic'
14263 lt_prog_compiler_static_CXX='-Bstatic'
14264 ;;
14265 cxx*)
14266 # Compaq C++
14267 # Make sure the PIC flag is empty. It appears that all Alpha
14268 # Linux and Compaq Tru64 Unix objects are PIC.
14269 lt_prog_compiler_pic_CXX=
14270 lt_prog_compiler_static_CXX='-non_shared'
14271 ;;
14272 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14273 # IBM XL 8.0, 9.0 on PPC and BlueGene
14274 lt_prog_compiler_wl_CXX='-Wl,'
14275 lt_prog_compiler_pic_CXX='-qpic'
14276 lt_prog_compiler_static_CXX='-qstaticlink'
14277 ;;
14278 *)
14279 case `$CC -V 2>&1 | sed 5q` in
14280 *Sun\ C*)
14281 # Sun C++ 5.9
14282 lt_prog_compiler_pic_CXX='-KPIC'
14283 lt_prog_compiler_static_CXX='-Bstatic'
14284 lt_prog_compiler_wl_CXX='-Qoption ld '
14285 ;;
14286 esac
14287 ;;
14288 esac
14289 ;;
14290 lynxos*)
14291 ;;
14292 m88k*)
14293 ;;
14294 mvs*)
14295 case $cc_basename in
14296 cxx*)
14297 lt_prog_compiler_pic_CXX='-W c,exportall'
14298 ;;
14299 *)
14300 ;;
14301 esac
14302 ;;
14303 netbsd*)
14304 ;;
14305 *qnx* | *nto*)
14306 # QNX uses GNU C++, but need to define -shared option too, otherwise
14307 # it will coredump.
14308 lt_prog_compiler_pic_CXX='-fPIC -shared'
14309 ;;
14310 osf3* | osf4* | osf5*)
14311 case $cc_basename in
14312 KCC*)
14313 lt_prog_compiler_wl_CXX='--backend -Wl,'
14314 ;;
14315 RCC*)
14316 # Rational C++ 2.4.1
14317 lt_prog_compiler_pic_CXX='-pic'
14318 ;;
14319 cxx*)
14320 # Digital/Compaq C++
14321 lt_prog_compiler_wl_CXX='-Wl,'
14322 # Make sure the PIC flag is empty. It appears that all Alpha
14323 # Linux and Compaq Tru64 Unix objects are PIC.
14324 lt_prog_compiler_pic_CXX=
14325 lt_prog_compiler_static_CXX='-non_shared'
14326 ;;
14327 *)
14328 ;;
14329 esac
14330 ;;
14331 psos*)
14332 ;;
14333 solaris*)
14334 case $cc_basename in
14335 CC*)
14336 # Sun C++ 4.2, 5.x and Centerline C++
14337 lt_prog_compiler_pic_CXX='-KPIC'
14338 lt_prog_compiler_static_CXX='-Bstatic'
14339 lt_prog_compiler_wl_CXX='-Qoption ld '
14340 ;;
14341 gcx*)
14342 # Green Hills C++ Compiler
14343 lt_prog_compiler_pic_CXX='-PIC'
14344 ;;
14345 *)
14346 ;;
14347 esac
14348 ;;
14349 sunos4*)
14350 case $cc_basename in
14351 CC*)
14352 # Sun C++ 4.x
14353 lt_prog_compiler_pic_CXX='-pic'
14354 lt_prog_compiler_static_CXX='-Bstatic'
14355 ;;
14356 lcc*)
14357 # Lucid
14358 lt_prog_compiler_pic_CXX='-pic'
14359 ;;
14360 *)
14361 ;;
14362 esac
14363 ;;
14364 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14365 case $cc_basename in
14366 CC*)
14367 lt_prog_compiler_wl_CXX='-Wl,'
14368 lt_prog_compiler_pic_CXX='-KPIC'
14369 lt_prog_compiler_static_CXX='-Bstatic'
14370 ;;
14371 esac
14372 ;;
14373 tandem*)
14374 case $cc_basename in
14375 NCC*)
14376 # NonStop-UX NCC 3.20
14377 lt_prog_compiler_pic_CXX='-KPIC'
14378 ;;
14379 *)
14380 ;;
14381 esac
14382 ;;
14383 vxworks*)
14384 ;;
14385 *)
14386 lt_prog_compiler_can_build_shared_CXX=no
14387 ;;
14388 esac
14389 fi
14390
14391 case $host_os in
14392 # For platforms which do not support PIC, -DPIC is meaningless:
14393 *djgpp*)
14394 lt_prog_compiler_pic_CXX=
14395 ;;
14396 *)
14397 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14398 ;;
14399 esac
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14401 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14402
14403
14404
14405 #
14406 # Check to make sure the PIC flag actually works.
14407 #
14408 if test -n "$lt_prog_compiler_pic_CXX"; then
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14410 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14411 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14412 $as_echo_n "(cached) " >&6
14413 else
14414 lt_cv_prog_compiler_pic_works_CXX=no
14415 ac_outfile=conftest.$ac_objext
14416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14417 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14418 # Insert the option either (1) after the last *FLAGS variable, or
14419 # (2) before a word containing "conftest.", or (3) at the end.
14420 # Note that $ac_compile itself does not contain backslashes and begins
14421 # with a dollar sign (not a hyphen), so the echo should work correctly.
14422 # The option is referenced via a variable to avoid confusing sed.
14423 lt_compile=`echo "$ac_compile" | $SED \
14424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14426 -e 's:$: $lt_compiler_flag:'`
14427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14428 (eval "$lt_compile" 2>conftest.err)
14429 ac_status=$?
14430 cat conftest.err >&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 if (exit $ac_status) && test -s "$ac_outfile"; then
14433 # The compiler can only warn and ignore the option if not recognized
14434 # So say no if there are warnings other than the usual output.
14435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14438 lt_cv_prog_compiler_pic_works_CXX=yes
14439 fi
14440 fi
14441 $RM conftest*
14442
14443 fi
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14445 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14446
14447 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14448 case $lt_prog_compiler_pic_CXX in
14449 "" | " "*) ;;
14450 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14451 esac
14452 else
14453 lt_prog_compiler_pic_CXX=
14454 lt_prog_compiler_can_build_shared_CXX=no
14455 fi
14456
14457 fi
14458
14459
14460
14461 #
14462 # Check to make sure the static flag actually works.
14463 #
14464 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14466 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14467 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14468 $as_echo_n "(cached) " >&6
14469 else
14470 lt_cv_prog_compiler_static_works_CXX=no
14471 save_LDFLAGS="$LDFLAGS"
14472 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14473 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14474 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14475 # The linker can only warn and ignore the option if not recognized
14476 # So say no if there are warnings
14477 if test -s conftest.err; then
14478 # Append any errors to the config.log.
14479 cat conftest.err 1>&5
14480 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14482 if diff conftest.exp conftest.er2 >/dev/null; then
14483 lt_cv_prog_compiler_static_works_CXX=yes
14484 fi
14485 else
14486 lt_cv_prog_compiler_static_works_CXX=yes
14487 fi
14488 fi
14489 $RM -r conftest*
14490 LDFLAGS="$save_LDFLAGS"
14491
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14494 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14495
14496 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14497 :
14498 else
14499 lt_prog_compiler_static_CXX=
14500 fi
14501
14502
14503
14504
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14506 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14507 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14508 $as_echo_n "(cached) " >&6
14509 else
14510 lt_cv_prog_compiler_c_o_CXX=no
14511 $RM -r conftest 2>/dev/null
14512 mkdir conftest
14513 cd conftest
14514 mkdir out
14515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14516
14517 lt_compiler_flag="-o out/conftest2.$ac_objext"
14518 # Insert the option either (1) after the last *FLAGS variable, or
14519 # (2) before a word containing "conftest.", or (3) at the end.
14520 # Note that $ac_compile itself does not contain backslashes and begins
14521 # with a dollar sign (not a hyphen), so the echo should work correctly.
14522 lt_compile=`echo "$ac_compile" | $SED \
14523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14525 -e 's:$: $lt_compiler_flag:'`
14526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14527 (eval "$lt_compile" 2>out/conftest.err)
14528 ac_status=$?
14529 cat out/conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14532 then
14533 # The compiler can only warn and ignore the option if not recognized
14534 # So say no if there are warnings
14535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14536 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14537 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14538 lt_cv_prog_compiler_c_o_CXX=yes
14539 fi
14540 fi
14541 chmod u+w . 2>&5
14542 $RM conftest*
14543 # SGI C++ compiler will create directory out/ii_files/ for
14544 # template instantiation
14545 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14546 $RM out/* && rmdir out
14547 cd ..
14548 $RM -r conftest
14549 $RM conftest*
14550
14551 fi
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14553 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14554
14555
14556
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14558 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14559 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14560 $as_echo_n "(cached) " >&6
14561 else
14562 lt_cv_prog_compiler_c_o_CXX=no
14563 $RM -r conftest 2>/dev/null
14564 mkdir conftest
14565 cd conftest
14566 mkdir out
14567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14568
14569 lt_compiler_flag="-o out/conftest2.$ac_objext"
14570 # Insert the option either (1) after the last *FLAGS variable, or
14571 # (2) before a word containing "conftest.", or (3) at the end.
14572 # Note that $ac_compile itself does not contain backslashes and begins
14573 # with a dollar sign (not a hyphen), so the echo should work correctly.
14574 lt_compile=`echo "$ac_compile" | $SED \
14575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14577 -e 's:$: $lt_compiler_flag:'`
14578 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14579 (eval "$lt_compile" 2>out/conftest.err)
14580 ac_status=$?
14581 cat out/conftest.err >&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14584 then
14585 # The compiler can only warn and ignore the option if not recognized
14586 # So say no if there are warnings
14587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14588 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14589 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14590 lt_cv_prog_compiler_c_o_CXX=yes
14591 fi
14592 fi
14593 chmod u+w . 2>&5
14594 $RM conftest*
14595 # SGI C++ compiler will create directory out/ii_files/ for
14596 # template instantiation
14597 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14598 $RM out/* && rmdir out
14599 cd ..
14600 $RM -r conftest
14601 $RM conftest*
14602
14603 fi
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14605 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14606
14607
14608
14609
14610 hard_links="nottested"
14611 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14612 # do not overwrite the value of need_locks provided by the user
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14614 $as_echo_n "checking if we can lock with hard links... " >&6; }
14615 hard_links=yes
14616 $RM conftest*
14617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14618 touch conftest.a
14619 ln conftest.a conftest.b 2>&5 || hard_links=no
14620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14622 $as_echo "$hard_links" >&6; }
14623 if test "$hard_links" = no; then
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14625 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14626 need_locks=warn
14627 fi
14628 else
14629 need_locks=no
14630 fi
14631
14632
14633
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14635 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14636
14637 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14638 case $host_os in
14639 aix[4-9]*)
14640 # If we're using GNU nm, then we don't want the "-C" option.
14641 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14642 # Also, AIX nm treats weak defined symbols like other global defined
14643 # symbols, whereas GNU nm marks them as "W".
14644 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14645 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14646 else
14647 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14648 fi
14649 ;;
14650 pw32*)
14651 export_symbols_cmds_CXX="$ltdll_cmds"
14652 ;;
14653 cygwin* | mingw* | cegcc*)
14654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14655 ;;
14656 *)
14657 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14658 ;;
14659 esac
14660 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14661
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14663 $as_echo "$ld_shlibs_CXX" >&6; }
14664 test "$ld_shlibs_CXX" = no && can_build_shared=no
14665
14666 with_gnu_ld_CXX=$with_gnu_ld
14667
14668
14669
14670
14671
14672
14673 #
14674 # Do we need to explicitly link libc?
14675 #
14676 case "x$archive_cmds_need_lc_CXX" in
14677 x|xyes)
14678 # Assume -lc should be added
14679 archive_cmds_need_lc_CXX=yes
14680
14681 if test "$enable_shared" = yes && test "$GCC" = yes; then
14682 case $archive_cmds_CXX in
14683 *'~'*)
14684 # FIXME: we may have to deal with multi-command sequences.
14685 ;;
14686 '$CC '*)
14687 # Test whether the compiler implicitly links with -lc since on some
14688 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14689 # to ld, don't add -lc before -lgcc.
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14691 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14692 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14693 $as_echo_n "(cached) " >&6
14694 else
14695 $RM conftest*
14696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14697
14698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14699 (eval $ac_compile) 2>&5
14700 ac_status=$?
14701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14702 test $ac_status = 0; } 2>conftest.err; then
14703 soname=conftest
14704 lib=conftest
14705 libobjs=conftest.$ac_objext
14706 deplibs=
14707 wl=$lt_prog_compiler_wl_CXX
14708 pic_flag=$lt_prog_compiler_pic_CXX
14709 compiler_flags=-v
14710 linker_flags=-v
14711 verstring=
14712 output_objdir=.
14713 libname=conftest
14714 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14715 allow_undefined_flag_CXX=
14716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14717 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14718 ac_status=$?
14719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14720 test $ac_status = 0; }
14721 then
14722 lt_cv_archive_cmds_need_lc_CXX=no
14723 else
14724 lt_cv_archive_cmds_need_lc_CXX=yes
14725 fi
14726 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14727 else
14728 cat conftest.err 1>&5
14729 fi
14730 $RM conftest*
14731
14732 fi
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14734 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14735 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14736 ;;
14737 esac
14738 fi
14739 ;;
14740 esac
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14806 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14807
14808 library_names_spec=
14809 libname_spec='lib$name'
14810 soname_spec=
14811 shrext_cmds=".so"
14812 postinstall_cmds=
14813 postuninstall_cmds=
14814 finish_cmds=
14815 finish_eval=
14816 shlibpath_var=
14817 shlibpath_overrides_runpath=unknown
14818 version_type=none
14819 dynamic_linker="$host_os ld.so"
14820 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14821 need_lib_prefix=unknown
14822 hardcode_into_libs=no
14823
14824 # when you set need_version to no, make sure it does not cause -set_version
14825 # flags to be left without arguments
14826 need_version=unknown
14827
14828 case $host_os in
14829 aix3*)
14830 version_type=linux
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14832 shlibpath_var=LIBPATH
14833
14834 # AIX 3 has no versioning support, so we append a major version to the name.
14835 soname_spec='${libname}${release}${shared_ext}$major'
14836 ;;
14837
14838 aix[4-9]*)
14839 version_type=linux
14840 need_lib_prefix=no
14841 need_version=no
14842 hardcode_into_libs=yes
14843 if test "$host_cpu" = ia64; then
14844 # AIX 5 supports IA64
14845 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 else
14848 # With GCC up to 2.95.x, collect2 would create an import file
14849 # for dependence libraries. The import file would start with
14850 # the line `#! .'. This would cause the generated library to
14851 # depend on `.', always an invalid library. This was fixed in
14852 # development snapshots of GCC prior to 3.0.
14853 case $host_os in
14854 aix4 | aix4.[01] | aix4.[01].*)
14855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14856 echo ' yes '
14857 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14858 :
14859 else
14860 can_build_shared=no
14861 fi
14862 ;;
14863 esac
14864 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14865 # soname into executable. Probably we can add versioning support to
14866 # collect2, so additional links can be useful in future.
14867 if test "$aix_use_runtimelinking" = yes; then
14868 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14869 # instead of lib<name>.a to let people know that these are not
14870 # typical AIX shared libraries.
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872 else
14873 # We preserve .a as extension for shared libraries through AIX4.2
14874 # and later when we are not doing run time linking.
14875 library_names_spec='${libname}${release}.a $libname.a'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14877 fi
14878 shlibpath_var=LIBPATH
14879 fi
14880 ;;
14881
14882 amigaos*)
14883 case $host_cpu in
14884 powerpc)
14885 # Since July 2007 AmigaOS4 officially supports .so libraries.
14886 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888 ;;
14889 m68k)
14890 library_names_spec='$libname.ixlibrary $libname.a'
14891 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14892 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'
14893 ;;
14894 esac
14895 ;;
14896
14897 beos*)
14898 library_names_spec='${libname}${shared_ext}'
14899 dynamic_linker="$host_os ld.so"
14900 shlibpath_var=LIBRARY_PATH
14901 ;;
14902
14903 bsdi[45]*)
14904 version_type=linux
14905 need_version=no
14906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14907 soname_spec='${libname}${release}${shared_ext}$major'
14908 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14909 shlibpath_var=LD_LIBRARY_PATH
14910 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14911 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14912 # the default ld.so.conf also contains /usr/contrib/lib and
14913 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14914 # libtool to hard-code these into programs
14915 ;;
14916
14917 cygwin* | mingw* | pw32* | cegcc*)
14918 version_type=windows
14919 shrext_cmds=".dll"
14920 need_version=no
14921 need_lib_prefix=no
14922
14923 case $GCC,$host_os in
14924 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14925 library_names_spec='$libname.dll.a'
14926 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14927 postinstall_cmds='base_file=`basename \${file}`~
14928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14929 dldir=$destdir/`dirname \$dlpath`~
14930 test -d \$dldir || mkdir -p \$dldir~
14931 $install_prog $dir/$dlname \$dldir/$dlname~
14932 chmod a+x \$dldir/$dlname~
14933 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14934 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14935 fi'
14936 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14937 dlpath=$dir/\$dldll~
14938 $RM \$dlpath'
14939 shlibpath_overrides_runpath=yes
14940
14941 case $host_os in
14942 cygwin*)
14943 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14944 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14945
14946 ;;
14947 mingw* | cegcc*)
14948 # MinGW DLLs use traditional 'lib' prefix
14949 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14950 ;;
14951 pw32*)
14952 # pw32 DLLs use 'pw' prefix rather than 'lib'
14953 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14954 ;;
14955 esac
14956 ;;
14957
14958 *)
14959 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14960 ;;
14961 esac
14962 dynamic_linker='Win32 ld.exe'
14963 # FIXME: first we should search . and the directory the executable is in
14964 shlibpath_var=PATH
14965 ;;
14966
14967 darwin* | rhapsody*)
14968 dynamic_linker="$host_os dyld"
14969 version_type=darwin
14970 need_lib_prefix=no
14971 need_version=no
14972 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14973 soname_spec='${libname}${release}${major}$shared_ext'
14974 shlibpath_overrides_runpath=yes
14975 shlibpath_var=DYLD_LIBRARY_PATH
14976 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14977
14978 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14979 ;;
14980
14981 dgux*)
14982 version_type=linux
14983 need_lib_prefix=no
14984 need_version=no
14985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14986 soname_spec='${libname}${release}${shared_ext}$major'
14987 shlibpath_var=LD_LIBRARY_PATH
14988 ;;
14989
14990 freebsd* | dragonfly*)
14991 # DragonFly does not have aout. When/if they implement a new
14992 # versioning mechanism, adjust this.
14993 if test -x /usr/bin/objformat; then
14994 objformat=`/usr/bin/objformat`
14995 else
14996 case $host_os in
14997 freebsd[23].*) objformat=aout ;;
14998 *) objformat=elf ;;
14999 esac
15000 fi
15001 version_type=freebsd-$objformat
15002 case $version_type in
15003 freebsd-elf*)
15004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15005 need_version=no
15006 need_lib_prefix=no
15007 ;;
15008 freebsd-*)
15009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15010 need_version=yes
15011 ;;
15012 esac
15013 shlibpath_var=LD_LIBRARY_PATH
15014 case $host_os in
15015 freebsd2.*)
15016 shlibpath_overrides_runpath=yes
15017 ;;
15018 freebsd3.[01]* | freebsdelf3.[01]*)
15019 shlibpath_overrides_runpath=yes
15020 hardcode_into_libs=yes
15021 ;;
15022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15024 shlibpath_overrides_runpath=no
15025 hardcode_into_libs=yes
15026 ;;
15027 *) # from 4.6 on, and DragonFly
15028 shlibpath_overrides_runpath=yes
15029 hardcode_into_libs=yes
15030 ;;
15031 esac
15032 ;;
15033
15034 gnu*)
15035 version_type=linux
15036 need_lib_prefix=no
15037 need_version=no
15038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15039 soname_spec='${libname}${release}${shared_ext}$major'
15040 shlibpath_var=LD_LIBRARY_PATH
15041 hardcode_into_libs=yes
15042 ;;
15043
15044 haiku*)
15045 version_type=linux
15046 need_lib_prefix=no
15047 need_version=no
15048 dynamic_linker="$host_os runtime_loader"
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15050 soname_spec='${libname}${release}${shared_ext}$major'
15051 shlibpath_var=LIBRARY_PATH
15052 shlibpath_overrides_runpath=yes
15053 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15054 hardcode_into_libs=yes
15055 ;;
15056
15057 hpux9* | hpux10* | hpux11*)
15058 # Give a soname corresponding to the major version so that dld.sl refuses to
15059 # link against other versions.
15060 version_type=sunos
15061 need_lib_prefix=no
15062 need_version=no
15063 case $host_cpu in
15064 ia64*)
15065 shrext_cmds='.so'
15066 hardcode_into_libs=yes
15067 dynamic_linker="$host_os dld.so"
15068 shlibpath_var=LD_LIBRARY_PATH
15069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071 soname_spec='${libname}${release}${shared_ext}$major'
15072 if test "X$HPUX_IA64_MODE" = X32; then
15073 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15074 else
15075 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15076 fi
15077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15078 ;;
15079 hppa*64*)
15080 shrext_cmds='.sl'
15081 hardcode_into_libs=yes
15082 dynamic_linker="$host_os dld.sl"
15083 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15086 soname_spec='${libname}${release}${shared_ext}$major'
15087 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15089 ;;
15090 *)
15091 shrext_cmds='.sl'
15092 dynamic_linker="$host_os dld.sl"
15093 shlibpath_var=SHLIB_PATH
15094 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096 soname_spec='${libname}${release}${shared_ext}$major'
15097 ;;
15098 esac
15099 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15100 postinstall_cmds='chmod 555 $lib'
15101 # or fails outright, so override atomically:
15102 install_override_mode=555
15103 ;;
15104
15105 interix[3-9]*)
15106 version_type=linux
15107 need_lib_prefix=no
15108 need_version=no
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15110 soname_spec='${libname}${release}${shared_ext}$major'
15111 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15112 shlibpath_var=LD_LIBRARY_PATH
15113 shlibpath_overrides_runpath=no
15114 hardcode_into_libs=yes
15115 ;;
15116
15117 irix5* | irix6* | nonstopux*)
15118 case $host_os in
15119 nonstopux*) version_type=nonstopux ;;
15120 *)
15121 if test "$lt_cv_prog_gnu_ld" = yes; then
15122 version_type=linux
15123 else
15124 version_type=irix
15125 fi ;;
15126 esac
15127 need_lib_prefix=no
15128 need_version=no
15129 soname_spec='${libname}${release}${shared_ext}$major'
15130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15131 case $host_os in
15132 irix5* | nonstopux*)
15133 libsuff= shlibsuff=
15134 ;;
15135 *)
15136 case $LD in # libtool.m4 will add one of these switches to LD
15137 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15138 libsuff= shlibsuff= libmagic=32-bit;;
15139 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15140 libsuff=32 shlibsuff=N32 libmagic=N32;;
15141 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15142 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15143 *) libsuff= shlibsuff= libmagic=never-match;;
15144 esac
15145 ;;
15146 esac
15147 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15148 shlibpath_overrides_runpath=no
15149 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15150 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15151 hardcode_into_libs=yes
15152 ;;
15153
15154 # No shared lib support for Linux oldld, aout, or coff.
15155 linux*oldld* | linux*aout* | linux*coff*)
15156 dynamic_linker=no
15157 ;;
15158
15159 # This must be Linux ELF.
15160 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15161 version_type=linux
15162 need_lib_prefix=no
15163 need_version=no
15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165 soname_spec='${libname}${release}${shared_ext}$major'
15166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15167 shlibpath_var=LD_LIBRARY_PATH
15168 shlibpath_overrides_runpath=no
15169
15170 # Some binutils ld are patched to set DT_RUNPATH
15171 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15172 $as_echo_n "(cached) " >&6
15173 else
15174 lt_cv_shlibpath_overrides_runpath=no
15175 save_LDFLAGS=$LDFLAGS
15176 save_libdir=$libdir
15177 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15178 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h. */
15181
15182 int
15183 main ()
15184 {
15185
15186 ;
15187 return 0;
15188 }
15189 _ACEOF
15190 if ac_fn_cxx_try_link "$LINENO"; then :
15191 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15192 lt_cv_shlibpath_overrides_runpath=yes
15193 fi
15194 fi
15195 rm -f core conftest.err conftest.$ac_objext \
15196 conftest$ac_exeext conftest.$ac_ext
15197 LDFLAGS=$save_LDFLAGS
15198 libdir=$save_libdir
15199
15200 fi
15201
15202 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15203
15204 # This implies no fast_install, which is unacceptable.
15205 # Some rework will be needed to allow for fast_install
15206 # before this can be enabled.
15207 hardcode_into_libs=yes
15208
15209 # Append ld.so.conf contents to the search path
15210 if test -f /etc/ld.so.conf; then
15211 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' ' '`
15212 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15213 fi
15214
15215 # We used to test for /lib/ld.so.1 and disable shared libraries on
15216 # powerpc, because MkLinux only supported shared libraries with the
15217 # GNU dynamic linker. Since this was broken with cross compilers,
15218 # most powerpc-linux boxes support dynamic linking these days and
15219 # people can always --disable-shared, the test was removed, and we
15220 # assume the GNU/Linux dynamic linker is in use.
15221 dynamic_linker='GNU/Linux ld.so'
15222 ;;
15223
15224 netbsd*)
15225 version_type=sunos
15226 need_lib_prefix=no
15227 need_version=no
15228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15231 dynamic_linker='NetBSD (a.out) ld.so'
15232 else
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15234 soname_spec='${libname}${release}${shared_ext}$major'
15235 dynamic_linker='NetBSD ld.elf_so'
15236 fi
15237 shlibpath_var=LD_LIBRARY_PATH
15238 shlibpath_overrides_runpath=yes
15239 hardcode_into_libs=yes
15240 ;;
15241
15242 newsos6)
15243 version_type=linux
15244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15245 shlibpath_var=LD_LIBRARY_PATH
15246 shlibpath_overrides_runpath=yes
15247 ;;
15248
15249 *nto* | *qnx*)
15250 version_type=qnx
15251 need_lib_prefix=no
15252 need_version=no
15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 soname_spec='${libname}${release}${shared_ext}$major'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 shlibpath_overrides_runpath=no
15257 hardcode_into_libs=yes
15258 dynamic_linker='ldqnx.so'
15259 ;;
15260
15261 openbsd*)
15262 version_type=sunos
15263 sys_lib_dlsearch_path_spec="/usr/lib"
15264 need_lib_prefix=no
15265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15266 case $host_os in
15267 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15268 *) need_version=no ;;
15269 esac
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15272 shlibpath_var=LD_LIBRARY_PATH
15273 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15274 case $host_os in
15275 openbsd2.[89] | openbsd2.[89].*)
15276 shlibpath_overrides_runpath=no
15277 ;;
15278 *)
15279 shlibpath_overrides_runpath=yes
15280 ;;
15281 esac
15282 else
15283 shlibpath_overrides_runpath=yes
15284 fi
15285 ;;
15286
15287 os2*)
15288 libname_spec='$name'
15289 shrext_cmds=".dll"
15290 need_lib_prefix=no
15291 library_names_spec='$libname${shared_ext} $libname.a'
15292 dynamic_linker='OS/2 ld.exe'
15293 shlibpath_var=LIBPATH
15294 ;;
15295
15296 osf3* | osf4* | osf5*)
15297 version_type=osf
15298 need_lib_prefix=no
15299 need_version=no
15300 soname_spec='${libname}${release}${shared_ext}$major'
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15302 shlibpath_var=LD_LIBRARY_PATH
15303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15304 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15305 ;;
15306
15307 rdos*)
15308 dynamic_linker=no
15309 ;;
15310
15311 solaris*)
15312 version_type=linux
15313 need_lib_prefix=no
15314 need_version=no
15315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15316 soname_spec='${libname}${release}${shared_ext}$major'
15317 shlibpath_var=LD_LIBRARY_PATH
15318 shlibpath_overrides_runpath=yes
15319 hardcode_into_libs=yes
15320 # ldd complains unless libraries are executable
15321 postinstall_cmds='chmod +x $lib'
15322 ;;
15323
15324 sunos4*)
15325 version_type=sunos
15326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15327 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15328 shlibpath_var=LD_LIBRARY_PATH
15329 shlibpath_overrides_runpath=yes
15330 if test "$with_gnu_ld" = yes; then
15331 need_lib_prefix=no
15332 fi
15333 need_version=yes
15334 ;;
15335
15336 sysv4 | sysv4.3*)
15337 version_type=linux
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 case $host_vendor in
15342 sni)
15343 shlibpath_overrides_runpath=no
15344 need_lib_prefix=no
15345 runpath_var=LD_RUN_PATH
15346 ;;
15347 siemens)
15348 need_lib_prefix=no
15349 ;;
15350 motorola)
15351 need_lib_prefix=no
15352 need_version=no
15353 shlibpath_overrides_runpath=no
15354 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15355 ;;
15356 esac
15357 ;;
15358
15359 sysv4*MP*)
15360 if test -d /usr/nec ;then
15361 version_type=linux
15362 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15363 soname_spec='$libname${shared_ext}.$major'
15364 shlibpath_var=LD_LIBRARY_PATH
15365 fi
15366 ;;
15367
15368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15369 version_type=freebsd-elf
15370 need_lib_prefix=no
15371 need_version=no
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 shlibpath_overrides_runpath=yes
15376 hardcode_into_libs=yes
15377 if test "$with_gnu_ld" = yes; then
15378 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15379 else
15380 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15381 case $host_os in
15382 sco3.2v5*)
15383 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15384 ;;
15385 esac
15386 fi
15387 sys_lib_dlsearch_path_spec='/usr/lib'
15388 ;;
15389
15390 tpf*)
15391 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15392 version_type=linux
15393 need_lib_prefix=no
15394 need_version=no
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15396 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=no
15398 hardcode_into_libs=yes
15399 ;;
15400
15401 uts4*)
15402 version_type=linux
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404 soname_spec='${libname}${release}${shared_ext}$major'
15405 shlibpath_var=LD_LIBRARY_PATH
15406 ;;
15407
15408 *)
15409 dynamic_linker=no
15410 ;;
15411 esac
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15413 $as_echo "$dynamic_linker" >&6; }
15414 test "$dynamic_linker" = no && can_build_shared=no
15415
15416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15417 if test "$GCC" = yes; then
15418 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15419 fi
15420
15421 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15422 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15423 fi
15424 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15425 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15426 fi
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15466 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15467 hardcode_action_CXX=
15468 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15469 test -n "$runpath_var_CXX" ||
15470 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15471
15472 # We can hardcode non-existent directories.
15473 if test "$hardcode_direct_CXX" != no &&
15474 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15475 # have to relink, otherwise we might link with an installed library
15476 # when we should be linking with a yet-to-be-installed one
15477 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15478 test "$hardcode_minus_L_CXX" != no; then
15479 # Linking always hardcodes the temporary library directory.
15480 hardcode_action_CXX=relink
15481 else
15482 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15483 hardcode_action_CXX=immediate
15484 fi
15485 else
15486 # We cannot hardcode anything, or else we can only hardcode existing
15487 # directories.
15488 hardcode_action_CXX=unsupported
15489 fi
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15491 $as_echo "$hardcode_action_CXX" >&6; }
15492
15493 if test "$hardcode_action_CXX" = relink ||
15494 test "$inherit_rpath_CXX" = yes; then
15495 # Fast installation is not supported
15496 enable_fast_install=no
15497 elif test "$shlibpath_overrides_runpath" = yes ||
15498 test "$enable_shared" = no; then
15499 # Fast installation is not necessary
15500 enable_fast_install=needless
15501 fi
15502
15503
15504
15505
15506
15507
15508
15509 fi # test -n "$compiler"
15510
15511 CC=$lt_save_CC
15512 LDCXX=$LD
15513 LD=$lt_save_LD
15514 GCC=$lt_save_GCC
15515 with_gnu_ld=$lt_save_with_gnu_ld
15516 lt_cv_path_LDCXX=$lt_cv_path_LD
15517 lt_cv_path_LD=$lt_save_path_LD
15518 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15519 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15520 fi # test "$_lt_caught_CXX_error" != yes
15521
15522 ac_ext=c
15523 ac_cpp='$CPP $CPPFLAGS'
15524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540 ac_config_commands="$ac_config_commands libtool"
15541
15542
15543
15544
15545 # Only expand once:
15546
15547
15548
15549 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
15550 # If we haven't got the data from the intl directory,
15551 # assume NLS is disabled.
15552 USE_NLS=no
15553 LIBINTL=
15554 LIBINTL_DEP=
15555 INCINTL=
15556 XGETTEXT=
15557 GMSGFMT=
15558 POSUB=
15559
15560 if test -f ../intl/config.intl; then
15561 . ../intl/config.intl
15562 fi
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15564 $as_echo_n "checking whether NLS is requested... " >&6; }
15565 if test x"$USE_NLS" != xyes; then
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15567 $as_echo "no" >&6; }
15568 else
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15570 $as_echo "yes" >&6; }
15571
15572 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15573
15574
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15576 $as_echo_n "checking for catalogs to be installed... " >&6; }
15577 # Look for .po and .gmo files in the source directory.
15578 CATALOGS=
15579 XLINGUAS=
15580 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15581 # If there aren't any .gmo files the shell will give us the
15582 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15583 # weeded out.
15584 case "$cat" in *\**)
15585 continue;;
15586 esac
15587 # The quadruple backslash is collapsed to a double backslash
15588 # by the backticks, then collapsed again by the double quotes,
15589 # leaving us with one backslash in the sed expression (right
15590 # before the dot that mustn't act as a wildcard).
15591 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15592 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15593 # The user is allowed to set LINGUAS to a list of languages to
15594 # install catalogs for. If it's empty that means "all of them."
15595 if test "x$LINGUAS" = x; then
15596 CATALOGS="$CATALOGS $cat"
15597 XLINGUAS="$XLINGUAS $lang"
15598 else
15599 case "$LINGUAS" in *$lang*)
15600 CATALOGS="$CATALOGS $cat"
15601 XLINGUAS="$XLINGUAS $lang"
15602 ;;
15603 esac
15604 fi
15605 done
15606 LINGUAS="$XLINGUAS"
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15608 $as_echo "$LINGUAS" >&6; }
15609
15610
15611 DATADIRNAME=share
15612
15613 INSTOBJEXT=.mo
15614
15615 GENCAT=gencat
15616
15617 CATOBJEXT=.gmo
15618
15619 fi
15620
15621 MKINSTALLDIRS=
15622 if test -n "$ac_aux_dir"; then
15623 case "$ac_aux_dir" in
15624 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15625 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15626 esac
15627 fi
15628 if test -z "$MKINSTALLDIRS"; then
15629 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15630 fi
15631
15632
15633
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15635 $as_echo_n "checking whether NLS is requested... " >&6; }
15636 # Check whether --enable-nls was given.
15637 if test "${enable_nls+set}" = set; then :
15638 enableval=$enable_nls; USE_NLS=$enableval
15639 else
15640 USE_NLS=yes
15641 fi
15642
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15644 $as_echo "$USE_NLS" >&6; }
15645
15646
15647
15648
15649
15650
15651 # Prepare PATH_SEPARATOR.
15652 # The user is always right.
15653 if test "${PATH_SEPARATOR+set}" != set; then
15654 echo "#! /bin/sh" >conf$$.sh
15655 echo "exit 0" >>conf$$.sh
15656 chmod +x conf$$.sh
15657 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15658 PATH_SEPARATOR=';'
15659 else
15660 PATH_SEPARATOR=:
15661 fi
15662 rm -f conf$$.sh
15663 fi
15664
15665 # Find out how to test for executable files. Don't use a zero-byte file,
15666 # as systems may use methods other than mode bits to determine executability.
15667 cat >conf$$.file <<_ASEOF
15668 #! /bin/sh
15669 exit 0
15670 _ASEOF
15671 chmod +x conf$$.file
15672 if test -x conf$$.file >/dev/null 2>&1; then
15673 ac_executable_p="test -x"
15674 else
15675 ac_executable_p="test -f"
15676 fi
15677 rm -f conf$$.file
15678
15679 # Extract the first word of "msgfmt", so it can be a program name with args.
15680 set dummy msgfmt; ac_word=$2
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15682 $as_echo_n "checking for $ac_word... " >&6; }
15683 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15684 $as_echo_n "(cached) " >&6
15685 else
15686 case "$MSGFMT" in
15687 [\\/]* | ?:[\\/]*)
15688 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15689 ;;
15690 *)
15691 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15692 for ac_dir in $PATH; do
15693 IFS="$ac_save_IFS"
15694 test -z "$ac_dir" && ac_dir=.
15695 for ac_exec_ext in '' $ac_executable_extensions; do
15696 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15697 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15698 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15699 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15700 break 2
15701 fi
15702 fi
15703 done
15704 done
15705 IFS="$ac_save_IFS"
15706 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15707 ;;
15708 esac
15709 fi
15710 MSGFMT="$ac_cv_path_MSGFMT"
15711 if test "$MSGFMT" != ":"; then
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15713 $as_echo "$MSGFMT" >&6; }
15714 else
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15716 $as_echo "no" >&6; }
15717 fi
15718
15719 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15720 set dummy gmsgfmt; ac_word=$2
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15722 $as_echo_n "checking for $ac_word... " >&6; }
15723 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15724 $as_echo_n "(cached) " >&6
15725 else
15726 case $GMSGFMT in
15727 [\\/]* | ?:[\\/]*)
15728 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15729 ;;
15730 *)
15731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15732 for as_dir in $PATH
15733 do
15734 IFS=$as_save_IFS
15735 test -z "$as_dir" && as_dir=.
15736 for ac_exec_ext in '' $ac_executable_extensions; do
15737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15738 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15740 break 2
15741 fi
15742 done
15743 done
15744 IFS=$as_save_IFS
15745
15746 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15747 ;;
15748 esac
15749 fi
15750 GMSGFMT=$ac_cv_path_GMSGFMT
15751 if test -n "$GMSGFMT"; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15753 $as_echo "$GMSGFMT" >&6; }
15754 else
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15756 $as_echo "no" >&6; }
15757 fi
15758
15759
15760
15761
15762 # Prepare PATH_SEPARATOR.
15763 # The user is always right.
15764 if test "${PATH_SEPARATOR+set}" != set; then
15765 echo "#! /bin/sh" >conf$$.sh
15766 echo "exit 0" >>conf$$.sh
15767 chmod +x conf$$.sh
15768 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15769 PATH_SEPARATOR=';'
15770 else
15771 PATH_SEPARATOR=:
15772 fi
15773 rm -f conf$$.sh
15774 fi
15775
15776 # Find out how to test for executable files. Don't use a zero-byte file,
15777 # as systems may use methods other than mode bits to determine executability.
15778 cat >conf$$.file <<_ASEOF
15779 #! /bin/sh
15780 exit 0
15781 _ASEOF
15782 chmod +x conf$$.file
15783 if test -x conf$$.file >/dev/null 2>&1; then
15784 ac_executable_p="test -x"
15785 else
15786 ac_executable_p="test -f"
15787 fi
15788 rm -f conf$$.file
15789
15790 # Extract the first word of "xgettext", so it can be a program name with args.
15791 set dummy xgettext; ac_word=$2
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15793 $as_echo_n "checking for $ac_word... " >&6; }
15794 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15795 $as_echo_n "(cached) " >&6
15796 else
15797 case "$XGETTEXT" in
15798 [\\/]* | ?:[\\/]*)
15799 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15800 ;;
15801 *)
15802 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15803 for ac_dir in $PATH; do
15804 IFS="$ac_save_IFS"
15805 test -z "$ac_dir" && ac_dir=.
15806 for ac_exec_ext in '' $ac_executable_extensions; do
15807 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15808 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15809 (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
15810 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15811 break 2
15812 fi
15813 fi
15814 done
15815 done
15816 IFS="$ac_save_IFS"
15817 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15818 ;;
15819 esac
15820 fi
15821 XGETTEXT="$ac_cv_path_XGETTEXT"
15822 if test "$XGETTEXT" != ":"; then
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15824 $as_echo "$XGETTEXT" >&6; }
15825 else
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15827 $as_echo "no" >&6; }
15828 fi
15829
15830 rm -f messages.po
15831
15832
15833 # Prepare PATH_SEPARATOR.
15834 # The user is always right.
15835 if test "${PATH_SEPARATOR+set}" != set; then
15836 echo "#! /bin/sh" >conf$$.sh
15837 echo "exit 0" >>conf$$.sh
15838 chmod +x conf$$.sh
15839 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15840 PATH_SEPARATOR=';'
15841 else
15842 PATH_SEPARATOR=:
15843 fi
15844 rm -f conf$$.sh
15845 fi
15846
15847 # Find out how to test for executable files. Don't use a zero-byte file,
15848 # as systems may use methods other than mode bits to determine executability.
15849 cat >conf$$.file <<_ASEOF
15850 #! /bin/sh
15851 exit 0
15852 _ASEOF
15853 chmod +x conf$$.file
15854 if test -x conf$$.file >/dev/null 2>&1; then
15855 ac_executable_p="test -x"
15856 else
15857 ac_executable_p="test -f"
15858 fi
15859 rm -f conf$$.file
15860
15861 # Extract the first word of "msgmerge", so it can be a program name with args.
15862 set dummy msgmerge; ac_word=$2
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15864 $as_echo_n "checking for $ac_word... " >&6; }
15865 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 case "$MSGMERGE" in
15869 [\\/]* | ?:[\\/]*)
15870 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15871 ;;
15872 *)
15873 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15874 for ac_dir in $PATH; do
15875 IFS="$ac_save_IFS"
15876 test -z "$ac_dir" && ac_dir=.
15877 for ac_exec_ext in '' $ac_executable_extensions; do
15878 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15879 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15880 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15881 break 2
15882 fi
15883 fi
15884 done
15885 done
15886 IFS="$ac_save_IFS"
15887 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15888 ;;
15889 esac
15890 fi
15891 MSGMERGE="$ac_cv_path_MSGMERGE"
15892 if test "$MSGMERGE" != ":"; then
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15894 $as_echo "$MSGMERGE" >&6; }
15895 else
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15897 $as_echo "no" >&6; }
15898 fi
15899
15900
15901 if test "$GMSGFMT" != ":"; then
15902 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15903 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15904 : ;
15905 else
15906 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15908 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
15909 GMSGFMT=":"
15910 fi
15911 fi
15912
15913 if test "$XGETTEXT" != ":"; then
15914 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15915 (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
15916 : ;
15917 else
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15919 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15920 XGETTEXT=":"
15921 fi
15922 rm -f messages.po
15923 fi
15924
15925 ac_config_commands="$ac_config_commands default-1"
15926
15927
15928
15929
15930
15931 for ac_prog in 'bison -y' byacc
15932 do
15933 # Extract the first word of "$ac_prog", so it can be a program name with args.
15934 set dummy $ac_prog; ac_word=$2
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15936 $as_echo_n "checking for $ac_word... " >&6; }
15937 if test "${ac_cv_prog_YACC+set}" = set; then :
15938 $as_echo_n "(cached) " >&6
15939 else
15940 if test -n "$YACC"; then
15941 ac_cv_prog_YACC="$YACC" # Let the user override the test.
15942 else
15943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15944 for as_dir in $PATH
15945 do
15946 IFS=$as_save_IFS
15947 test -z "$as_dir" && as_dir=.
15948 for ac_exec_ext in '' $ac_executable_extensions; do
15949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15950 ac_cv_prog_YACC="$ac_prog"
15951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15952 break 2
15953 fi
15954 done
15955 done
15956 IFS=$as_save_IFS
15957
15958 fi
15959 fi
15960 YACC=$ac_cv_prog_YACC
15961 if test -n "$YACC"; then
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
15963 $as_echo "$YACC" >&6; }
15964 else
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15966 $as_echo "no" >&6; }
15967 fi
15968
15969
15970 test -n "$YACC" && break
15971 done
15972 test -n "$YACC" || YACC="yacc"
15973
15974 for ac_prog in flex lex
15975 do
15976 # Extract the first word of "$ac_prog", so it can be a program name with args.
15977 set dummy $ac_prog; ac_word=$2
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15979 $as_echo_n "checking for $ac_word... " >&6; }
15980 if test "${ac_cv_prog_LEX+set}" = set; then :
15981 $as_echo_n "(cached) " >&6
15982 else
15983 if test -n "$LEX"; then
15984 ac_cv_prog_LEX="$LEX" # Let the user override the test.
15985 else
15986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15987 for as_dir in $PATH
15988 do
15989 IFS=$as_save_IFS
15990 test -z "$as_dir" && as_dir=.
15991 for ac_exec_ext in '' $ac_executable_extensions; do
15992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15993 ac_cv_prog_LEX="$ac_prog"
15994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15995 break 2
15996 fi
15997 done
15998 done
15999 IFS=$as_save_IFS
16000
16001 fi
16002 fi
16003 LEX=$ac_cv_prog_LEX
16004 if test -n "$LEX"; then
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16006 $as_echo "$LEX" >&6; }
16007 else
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16009 $as_echo "no" >&6; }
16010 fi
16011
16012
16013 test -n "$LEX" && break
16014 done
16015 test -n "$LEX" || LEX=":"
16016
16017 if test "x$LEX" != "x:"; then
16018 cat >conftest.l <<_ACEOF
16019 %%
16020 a { ECHO; }
16021 b { REJECT; }
16022 c { yymore (); }
16023 d { yyless (1); }
16024 e { yyless (input () != 0); }
16025 f { unput (yytext[0]); }
16026 . { BEGIN INITIAL; }
16027 %%
16028 #ifdef YYTEXT_POINTER
16029 extern char *yytext;
16030 #endif
16031 int
16032 main (void)
16033 {
16034 return ! yylex () + ! yywrap ();
16035 }
16036 _ACEOF
16037 { { ac_try="$LEX conftest.l"
16038 case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16041 esac
16042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16043 $as_echo "$ac_try_echo"; } >&5
16044 (eval "$LEX conftest.l") 2>&5
16045 ac_status=$?
16046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16047 test $ac_status = 0; }
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16049 $as_echo_n "checking lex output file root... " >&6; }
16050 if test "${ac_cv_prog_lex_root+set}" = set; then :
16051 $as_echo_n "(cached) " >&6
16052 else
16053
16054 if test -f lex.yy.c; then
16055 ac_cv_prog_lex_root=lex.yy
16056 elif test -f lexyy.c; then
16057 ac_cv_prog_lex_root=lexyy
16058 else
16059 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16060 fi
16061 fi
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16063 $as_echo "$ac_cv_prog_lex_root" >&6; }
16064 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16065
16066 if test -z "${LEXLIB+set}"; then
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16068 $as_echo_n "checking lex library... " >&6; }
16069 if test "${ac_cv_lib_lex+set}" = set; then :
16070 $as_echo_n "(cached) " >&6
16071 else
16072
16073 ac_save_LIBS=$LIBS
16074 ac_cv_lib_lex='none needed'
16075 for ac_lib in '' -lfl -ll; do
16076 LIBS="$ac_lib $ac_save_LIBS"
16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h. */
16079 `cat $LEX_OUTPUT_ROOT.c`
16080 _ACEOF
16081 if ac_fn_c_try_link "$LINENO"; then :
16082 ac_cv_lib_lex=$ac_lib
16083 fi
16084 rm -f core conftest.err conftest.$ac_objext \
16085 conftest$ac_exeext conftest.$ac_ext
16086 test "$ac_cv_lib_lex" != 'none needed' && break
16087 done
16088 LIBS=$ac_save_LIBS
16089
16090 fi
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16092 $as_echo "$ac_cv_lib_lex" >&6; }
16093 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16094 fi
16095
16096
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16098 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16099 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16100 $as_echo_n "(cached) " >&6
16101 else
16102 # POSIX says lex can declare yytext either as a pointer or an array; the
16103 # default is implementation-dependent. Figure out which it is, since
16104 # not all implementations provide the %pointer and %array declarations.
16105 ac_cv_prog_lex_yytext_pointer=no
16106 ac_save_LIBS=$LIBS
16107 LIBS="$LEXLIB $ac_save_LIBS"
16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16110 #define YYTEXT_POINTER 1
16111 `cat $LEX_OUTPUT_ROOT.c`
16112 _ACEOF
16113 if ac_fn_c_try_link "$LINENO"; then :
16114 ac_cv_prog_lex_yytext_pointer=yes
16115 fi
16116 rm -f core conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16118 LIBS=$ac_save_LIBS
16119
16120 fi
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16122 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16123 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16124
16125 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16126
16127 fi
16128 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16129
16130 fi
16131 if test "$LEX" = :; then
16132 LEX=${am_missing_run}flex
16133 fi
16134
16135
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16137 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16138 # Check whether --enable-maintainer-mode was given.
16139 if test "${enable_maintainer_mode+set}" = set; then :
16140 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16141 else
16142 USE_MAINTAINER_MODE=no
16143 fi
16144
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16146 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16147 if test $USE_MAINTAINER_MODE = yes; then
16148 MAINTAINER_MODE_TRUE=
16149 MAINTAINER_MODE_FALSE='#'
16150 else
16151 MAINTAINER_MODE_TRUE='#'
16152 MAINTAINER_MODE_FALSE=
16153 fi
16154
16155 MAINT=$MAINTAINER_MODE_TRUE
16156
16157
16158 if false; then
16159 GENINSRC_NEVER_TRUE=
16160 GENINSRC_NEVER_FALSE='#'
16161 else
16162 GENINSRC_NEVER_TRUE='#'
16163 GENINSRC_NEVER_FALSE=
16164 fi
16165
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16167 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16168 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16169 $as_echo_n "(cached) " >&6
16170 else
16171 echo abfoo >t1
16172 echo cdfoo >t2
16173 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16174 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16175 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16176 :
16177 else
16178 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16179 fi
16180 fi
16181 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16182 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16183 :
16184 else
16185 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16186 fi
16187 fi
16188 rm t1 t2
16189
16190 fi
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16192 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16193 do_compare="$gcc_cv_prog_cmp_skip"
16194
16195
16196
16197 . ${srcdir}/configure.host
16198
16199
16200
16201
16202
16203
16204
16205 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
16206 do :
16207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16208 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16209 eval as_val=\$$as_ac_Header
16210 if test "x$as_val" = x""yes; then :
16211 cat >>confdefs.h <<_ACEOF
16212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16213 _ACEOF
16214
16215 fi
16216
16217 done
16218
16219 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16220 do :
16221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16222 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16223 eval as_val=\$$as_ac_Header
16224 if test "x$as_val" = x""yes; then :
16225 cat >>confdefs.h <<_ACEOF
16226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16227 _ACEOF
16228
16229 fi
16230
16231 done
16232
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16234 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16235 if test "${gcc_cv_header_string+set}" = set; then :
16236 $as_echo_n "(cached) " >&6
16237 else
16238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239 /* end confdefs.h. */
16240 #include <string.h>
16241 #include <strings.h>
16242 int
16243 main ()
16244 {
16245
16246 ;
16247 return 0;
16248 }
16249 _ACEOF
16250 if ac_fn_c_try_compile "$LINENO"; then :
16251 gcc_cv_header_string=yes
16252 else
16253 gcc_cv_header_string=no
16254 fi
16255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256 fi
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16258 $as_echo "$gcc_cv_header_string" >&6; }
16259 if test $gcc_cv_header_string = yes; then
16260
16261 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16262
16263 fi
16264
16265 for ac_func in glob mkstemp realpath sbrk setlocale waitpid
16266 do :
16267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16268 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16269 eval as_val=\$$as_ac_var
16270 if test "x$as_val" = x""yes; then :
16271 cat >>confdefs.h <<_ACEOF
16272 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16273 _ACEOF
16274
16275 fi
16276 done
16277
16278 for ac_func in open lseek close
16279 do :
16280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16281 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16282 eval as_val=\$$as_ac_var
16283 if test "x$as_val" = x""yes; then :
16284 cat >>confdefs.h <<_ACEOF
16285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16286 _ACEOF
16287
16288 fi
16289 done
16290
16291 ac_header_dirent=no
16292 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16293 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16295 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16297 $as_echo_n "(cached) " >&6
16298 else
16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16300 /* end confdefs.h. */
16301 #include <sys/types.h>
16302 #include <$ac_hdr>
16303
16304 int
16305 main ()
16306 {
16307 if ((DIR *) 0)
16308 return 0;
16309 ;
16310 return 0;
16311 }
16312 _ACEOF
16313 if ac_fn_c_try_compile "$LINENO"; then :
16314 eval "$as_ac_Header=yes"
16315 else
16316 eval "$as_ac_Header=no"
16317 fi
16318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16319 fi
16320 eval ac_res=\$$as_ac_Header
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16322 $as_echo "$ac_res" >&6; }
16323 eval as_val=\$$as_ac_Header
16324 if test "x$as_val" = x""yes; then :
16325 cat >>confdefs.h <<_ACEOF
16326 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16327 _ACEOF
16328
16329 ac_header_dirent=$ac_hdr; break
16330 fi
16331
16332 done
16333 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16334 if test $ac_header_dirent = dirent.h; then
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16336 $as_echo_n "checking for library containing opendir... " >&6; }
16337 if test "${ac_cv_search_opendir+set}" = set; then :
16338 $as_echo_n "(cached) " >&6
16339 else
16340 ac_func_search_save_LIBS=$LIBS
16341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342 /* end confdefs.h. */
16343
16344 /* Override any GCC internal prototype to avoid an error.
16345 Use char because int might match the return type of a GCC
16346 builtin and then its argument prototype would still apply. */
16347 #ifdef __cplusplus
16348 extern "C"
16349 #endif
16350 char opendir ();
16351 int
16352 main ()
16353 {
16354 return opendir ();
16355 ;
16356 return 0;
16357 }
16358 _ACEOF
16359 for ac_lib in '' dir; do
16360 if test -z "$ac_lib"; then
16361 ac_res="none required"
16362 else
16363 ac_res=-l$ac_lib
16364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16365 fi
16366 if ac_fn_c_try_link "$LINENO"; then :
16367 ac_cv_search_opendir=$ac_res
16368 fi
16369 rm -f core conftest.err conftest.$ac_objext \
16370 conftest$ac_exeext
16371 if test "${ac_cv_search_opendir+set}" = set; then :
16372 break
16373 fi
16374 done
16375 if test "${ac_cv_search_opendir+set}" = set; then :
16376
16377 else
16378 ac_cv_search_opendir=no
16379 fi
16380 rm conftest.$ac_ext
16381 LIBS=$ac_func_search_save_LIBS
16382 fi
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16384 $as_echo "$ac_cv_search_opendir" >&6; }
16385 ac_res=$ac_cv_search_opendir
16386 if test "$ac_res" != no; then :
16387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16388
16389 fi
16390
16391 else
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16393 $as_echo_n "checking for library containing opendir... " >&6; }
16394 if test "${ac_cv_search_opendir+set}" = set; then :
16395 $as_echo_n "(cached) " >&6
16396 else
16397 ac_func_search_save_LIBS=$LIBS
16398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399 /* end confdefs.h. */
16400
16401 /* Override any GCC internal prototype to avoid an error.
16402 Use char because int might match the return type of a GCC
16403 builtin and then its argument prototype would still apply. */
16404 #ifdef __cplusplus
16405 extern "C"
16406 #endif
16407 char opendir ();
16408 int
16409 main ()
16410 {
16411 return opendir ();
16412 ;
16413 return 0;
16414 }
16415 _ACEOF
16416 for ac_lib in '' x; do
16417 if test -z "$ac_lib"; then
16418 ac_res="none required"
16419 else
16420 ac_res=-l$ac_lib
16421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16422 fi
16423 if ac_fn_c_try_link "$LINENO"; then :
16424 ac_cv_search_opendir=$ac_res
16425 fi
16426 rm -f core conftest.err conftest.$ac_objext \
16427 conftest$ac_exeext
16428 if test "${ac_cv_search_opendir+set}" = set; then :
16429 break
16430 fi
16431 done
16432 if test "${ac_cv_search_opendir+set}" = set; then :
16433
16434 else
16435 ac_cv_search_opendir=no
16436 fi
16437 rm conftest.$ac_ext
16438 LIBS=$ac_func_search_save_LIBS
16439 fi
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16441 $as_echo "$ac_cv_search_opendir" >&6; }
16442 ac_res=$ac_cv_search_opendir
16443 if test "$ac_res" != no; then :
16444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16445
16446 fi
16447
16448 fi
16449
16450
16451 # Check for dlopen support and enable plugins if possible.
16452 enable_plugins=yes
16453 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
16454 "
16455 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
16456
16457 else
16458 enable_plugins=no
16459 fi
16460
16461
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16463 $as_echo_n "checking for library containing dlopen... " >&6; }
16464 if test "${ac_cv_search_dlopen+set}" = set; then :
16465 $as_echo_n "(cached) " >&6
16466 else
16467 ac_func_search_save_LIBS=$LIBS
16468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16469 /* end confdefs.h. */
16470
16471 /* Override any GCC internal prototype to avoid an error.
16472 Use char because int might match the return type of a GCC
16473 builtin and then its argument prototype would still apply. */
16474 #ifdef __cplusplus
16475 extern "C"
16476 #endif
16477 char dlopen ();
16478 int
16479 main ()
16480 {
16481 return dlopen ();
16482 ;
16483 return 0;
16484 }
16485 _ACEOF
16486 for ac_lib in '' dl; do
16487 if test -z "$ac_lib"; then
16488 ac_res="none required"
16489 else
16490 ac_res=-l$ac_lib
16491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16492 fi
16493 if ac_fn_c_try_link "$LINENO"; then :
16494 ac_cv_search_dlopen=$ac_res
16495 fi
16496 rm -f core conftest.err conftest.$ac_objext \
16497 conftest$ac_exeext
16498 if test "${ac_cv_search_dlopen+set}" = set; then :
16499 break
16500 fi
16501 done
16502 if test "${ac_cv_search_dlopen+set}" = set; then :
16503
16504 else
16505 ac_cv_search_dlopen=no
16506 fi
16507 rm conftest.$ac_ext
16508 LIBS=$ac_func_search_save_LIBS
16509 fi
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16511 $as_echo "$ac_cv_search_dlopen" >&6; }
16512 ac_res=$ac_cv_search_dlopen
16513 if test "$ac_res" != no; then :
16514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16515
16516 else
16517 enable_plugins=no
16518 fi
16519
16520 for ac_func in dlopen dlsym dlclose
16521 do :
16522 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16523 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16524 eval as_val=\$$as_ac_var
16525 if test "x$as_val" = x""yes; then :
16526 cat >>confdefs.h <<_ACEOF
16527 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16528 _ACEOF
16529
16530 else
16531 enable_plugins=no
16532 fi
16533 done
16534
16535 # We also support plugins on Windows (MinGW).
16536 if test x$enable_plugins = xno ; then
16537 for ac_header in windows.h
16538 do :
16539 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16540 "
16541 if test "x$ac_cv_header_windows_h" = x""yes; then :
16542 cat >>confdefs.h <<_ACEOF
16543 #define HAVE_WINDOWS_H 1
16544 _ACEOF
16545 enable_plugins=yes
16546 fi
16547
16548 done
16549
16550 fi
16551 if test x$enable_plugins = xyes; then
16552 ENABLE_PLUGINS_TRUE=
16553 ENABLE_PLUGINS_FALSE='#'
16554 else
16555 ENABLE_PLUGINS_TRUE='#'
16556 ENABLE_PLUGINS_FALSE=
16557 fi
16558
16559
16560 # Check whether --enable-initfini-array was given.
16561 if test "${enable_initfini_array+set}" = set; then :
16562 enableval=$enable_initfini_array;
16563 else
16564
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
16566 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
16567 if test "${gcc_cv_initfini_array+set}" = set; then :
16568 $as_echo_n "(cached) " >&6
16569 else
16570 if test "x${build}" = "x${target}" ; then
16571 if test "$cross_compiling" = yes; then :
16572 gcc_cv_initfini_array=no
16573 else
16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575 /* end confdefs.h. */
16576
16577 static int x = -1;
16578 int main (void) { return x; }
16579 int foo (void) { x = 0; }
16580 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
16581 _ACEOF
16582 if ac_fn_c_try_run "$LINENO"; then :
16583 gcc_cv_initfini_array=yes
16584 else
16585 gcc_cv_initfini_array=no
16586 fi
16587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16588 conftest.$ac_objext conftest.beam conftest.$ac_ext
16589 fi
16590
16591 else
16592 gcc_cv_initfini_array=no
16593 fi
16594 fi
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
16596 $as_echo "$gcc_cv_initfini_array" >&6; }
16597 enable_initfini_array=$gcc_cv_initfini_array
16598
16599 fi
16600
16601
16602 if test $enable_initfini_array = yes; then
16603
16604 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16605
16606 fi
16607
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16609 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16610 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16611 $as_echo_n "(cached) " >&6
16612 else
16613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16614 /* end confdefs.h. */
16615 #include <unistd.h>
16616 int
16617 main ()
16618 {
16619 extern int getopt (int, char *const*, const char *);
16620 ;
16621 return 0;
16622 }
16623 _ACEOF
16624 if ac_fn_c_try_compile "$LINENO"; then :
16625 ld_cv_decl_getopt_unistd_h=yes
16626 else
16627 ld_cv_decl_getopt_unistd_h=no
16628 fi
16629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16630 fi
16631
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16633 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
16634 if test $ld_cv_decl_getopt_unistd_h = yes; then
16635
16636 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16637
16638 fi
16639
16640
16641 case "${host}" in
16642 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16643
16644 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16645 ;;
16646 esac
16647
16648 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16649 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16650 ac_have_decl=1
16651 else
16652 ac_have_decl=0
16653 fi
16654
16655 cat >>confdefs.h <<_ACEOF
16656 #define HAVE_DECL_STRSTR $ac_have_decl
16657 _ACEOF
16658 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16659 if test "x$ac_cv_have_decl_free" = x""yes; then :
16660 ac_have_decl=1
16661 else
16662 ac_have_decl=0
16663 fi
16664
16665 cat >>confdefs.h <<_ACEOF
16666 #define HAVE_DECL_FREE $ac_have_decl
16667 _ACEOF
16668 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16669 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16670 ac_have_decl=1
16671 else
16672 ac_have_decl=0
16673 fi
16674
16675 cat >>confdefs.h <<_ACEOF
16676 #define HAVE_DECL_SBRK $ac_have_decl
16677 _ACEOF
16678 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16679 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16680 ac_have_decl=1
16681 else
16682 ac_have_decl=0
16683 fi
16684
16685 cat >>confdefs.h <<_ACEOF
16686 #define HAVE_DECL_GETENV $ac_have_decl
16687 _ACEOF
16688 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16689 if test "x$ac_cv_have_decl_environ" = x""yes; then :
16690 ac_have_decl=1
16691 else
16692 ac_have_decl=0
16693 fi
16694
16695 cat >>confdefs.h <<_ACEOF
16696 #define HAVE_DECL_ENVIRON $ac_have_decl
16697 _ACEOF
16698
16699
16700 # Link in zlib if we can. This is needed only for the bootstrap tests
16701 # right now, since those tests use libbfd, which depends on zlib.
16702
16703 # See if the user specified whether he wants zlib support or not.
16704
16705 # Check whether --with-zlib was given.
16706 if test "${with_zlib+set}" = set; then :
16707 withval=$with_zlib;
16708 else
16709 with_zlib=auto
16710 fi
16711
16712
16713 if test "$with_zlib" != "no"; then
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
16715 $as_echo_n "checking for library containing zlibVersion... " >&6; }
16716 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16717 $as_echo_n "(cached) " >&6
16718 else
16719 ac_func_search_save_LIBS=$LIBS
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h. */
16722
16723 /* Override any GCC internal prototype to avoid an error.
16724 Use char because int might match the return type of a GCC
16725 builtin and then its argument prototype would still apply. */
16726 #ifdef __cplusplus
16727 extern "C"
16728 #endif
16729 char zlibVersion ();
16730 int
16731 main ()
16732 {
16733 return zlibVersion ();
16734 ;
16735 return 0;
16736 }
16737 _ACEOF
16738 for ac_lib in '' z; do
16739 if test -z "$ac_lib"; then
16740 ac_res="none required"
16741 else
16742 ac_res=-l$ac_lib
16743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16744 fi
16745 if ac_fn_c_try_link "$LINENO"; then :
16746 ac_cv_search_zlibVersion=$ac_res
16747 fi
16748 rm -f core conftest.err conftest.$ac_objext \
16749 conftest$ac_exeext
16750 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16751 break
16752 fi
16753 done
16754 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16755
16756 else
16757 ac_cv_search_zlibVersion=no
16758 fi
16759 rm conftest.$ac_ext
16760 LIBS=$ac_func_search_save_LIBS
16761 fi
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
16763 $as_echo "$ac_cv_search_zlibVersion" >&6; }
16764 ac_res=$ac_cv_search_zlibVersion
16765 if test "$ac_res" != no; then :
16766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16767 for ac_header in zlib.h
16768 do :
16769 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16770 if test "x$ac_cv_header_zlib_h" = x""yes; then :
16771 cat >>confdefs.h <<_ACEOF
16772 #define HAVE_ZLIB_H 1
16773 _ACEOF
16774
16775 fi
16776
16777 done
16778
16779 fi
16780
16781 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
16782 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
16783 fi
16784 fi
16785
16786
16787 # When converting linker scripts into strings for use in emulation
16788 # files, use astring.sed if the compiler supports ANSI string
16789 # concatenation, or ostring.sed otherwise. This is to support the
16790 # broken Microsoft MSVC compiler, which limits the length of string
16791 # constants, while still supporting pre-ANSI compilers which do not
16792 # support string concatenation.
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16794 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16795 if test "${ld_cv_string_concatenation+set}" = set; then :
16796 $as_echo_n "(cached) " >&6
16797 else
16798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799 /* end confdefs.h. */
16800
16801 int
16802 main ()
16803 {
16804 char *a = "a" "a";
16805 ;
16806 return 0;
16807 }
16808 _ACEOF
16809 if ac_fn_c_try_compile "$LINENO"; then :
16810 ld_cv_string_concatenation=yes
16811 else
16812 ld_cv_string_concatenation=no
16813 fi
16814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16815 fi
16816
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16818 $as_echo "$ld_cv_string_concatenation" >&6; }
16819 if test "$ld_cv_string_concatenation" = "yes"; then
16820 STRINGIFY=astring.sed
16821 else
16822 STRINGIFY=ostring.sed
16823 fi
16824
16825
16826 # target-specific stuff:
16827
16828 all_targets=
16829 EMUL=
16830 all_emuls=
16831 all_emul_extras=
16832 all_libpath=
16833
16834 rm -f tdirs
16835
16836 # If the host is 64-bit, then we enable 64-bit targets by default.
16837 # This is consistent with what ../bfd/configure.in does.
16838 if test x${want64} = xfalse; then
16839 # The cast to long int works around a bug in the HP C Compiler
16840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16842 # This bug is HP SR number 8606223364.
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16844 $as_echo_n "checking size of void *... " >&6; }
16845 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16846 $as_echo_n "(cached) " >&6
16847 else
16848 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16849
16850 else
16851 if test "$ac_cv_type_void_p" = yes; then
16852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16854 { as_fn_set_status 77
16855 as_fn_error "cannot compute sizeof (void *)
16856 See \`config.log' for more details." "$LINENO" 5; }; }
16857 else
16858 ac_cv_sizeof_void_p=0
16859 fi
16860 fi
16861
16862 fi
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16864 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16865
16866
16867
16868 cat >>confdefs.h <<_ACEOF
16869 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16870 _ACEOF
16871
16872
16873 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
16874 want64=true
16875 fi
16876 fi
16877
16878 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16879 do
16880 if test "$targ_alias" = "all"; then
16881 all_targets=true
16882 else
16883 # Canonicalize the secondary target names.
16884 result=`$ac_config_sub $targ_alias 2>/dev/null`
16885 if test -n "$result"; then
16886 targ=$result
16887 else
16888 targ=$targ_alias
16889 fi
16890
16891 . ${srcdir}/configure.tgt
16892
16893 if test "$targ" = "$target"; then
16894 EMUL=$targ_emul
16895 fi
16896
16897 if test x${want64} = xfalse; then
16898 . ${srcdir}/../bfd/config.bfd
16899 fi
16900
16901 if test x${want64} = xtrue; then
16902 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
16903 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
16904 fi
16905
16906 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
16907 case " $all_emuls " in
16908 *" e${i}.o "*) ;;
16909 *)
16910 all_emuls="$all_emuls e${i}.o"
16911 eval result=\$tdir_$i
16912 test -z "$result" && result=$targ_alias
16913 echo tdir_$i=$result >> tdirs
16914 ;;
16915 esac
16916 done
16917
16918 for i in $targ_emul $targ_extra_libpath; do
16919 case " $all_libpath " in
16920 *" ${i} "*) ;;
16921 *)
16922 if test -z "$all_libpath"; then
16923 all_libpath=${i}
16924 else
16925 all_libpath="$all_libpath ${i}"
16926 fi
16927 ;;
16928 esac
16929 done
16930
16931 for i in $targ_extra_ofiles; do
16932 case " $all_emul_extras " in
16933 *" ${i} "*) ;;
16934 *)
16935 all_emul_extras="$all_emul_extras ${i}"
16936 ;;
16937 esac
16938 done
16939 fi
16940 done
16941
16942
16943
16944 TDIRS=tdirs
16945
16946
16947 if test x${all_targets} = xtrue; then
16948 if test x${want64} = xtrue; then
16949 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
16950 else
16951 EMULATION_OFILES='$(ALL_EMULATIONS)'
16952 fi
16953 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
16954 else
16955 EMULATION_OFILES=$all_emuls
16956 EMUL_EXTRA_OFILES=$all_emul_extras
16957 fi
16958
16959
16960
16961
16962 EMULATION_LIBPATH=$all_libpath
16963
16964
16965 if test x${enable_static} = xno; then
16966 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
16967 else
16968 TESTBFDLIB="../bfd/.libs/libbfd.a"
16969 fi
16970
16971
16972 target_vendor=${target_vendor=$host_vendor}
16973 case "$target_vendor" in
16974 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
16975 *) EXTRA_SHLIB_EXTENSION= ;;
16976 esac
16977
16978 case "$target_os" in
16979 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
16980 esac
16981
16982 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
16983
16984 cat >>confdefs.h <<_ACEOF
16985 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
16986 _ACEOF
16987
16988 fi
16989
16990
16991
16992
16993
16994
16995 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
16996
16997 cat >confcache <<\_ACEOF
16998 # This file is a shell script that caches the results of configure
16999 # tests run on this system so they can be shared between configure
17000 # scripts and configure runs, see configure's option --config-cache.
17001 # It is not useful on other systems. If it contains results you don't
17002 # want to keep, you may remove or edit it.
17003 #
17004 # config.status only pays attention to the cache file if you give it
17005 # the --recheck option to rerun configure.
17006 #
17007 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17008 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17009 # following values.
17010
17011 _ACEOF
17012
17013 # The following way of writing the cache mishandles newlines in values,
17014 # but we know of no workaround that is simple, portable, and efficient.
17015 # So, we kill variables containing newlines.
17016 # Ultrix sh set writes to stderr and can't be redirected directly,
17017 # and sets the high bit in the cache file unless we assign to the vars.
17018 (
17019 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17020 eval ac_val=\$$ac_var
17021 case $ac_val in #(
17022 *${as_nl}*)
17023 case $ac_var in #(
17024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17026 esac
17027 case $ac_var in #(
17028 _ | IFS | as_nl) ;; #(
17029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17030 *) { eval $ac_var=; unset $ac_var;} ;;
17031 esac ;;
17032 esac
17033 done
17034
17035 (set) 2>&1 |
17036 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17037 *${as_nl}ac_space=\ *)
17038 # `set' does not quote correctly, so add quotes: double-quote
17039 # substitution turns \\\\ into \\, and sed turns \\ into \.
17040 sed -n \
17041 "s/'/'\\\\''/g;
17042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17043 ;; #(
17044 *)
17045 # `set' quotes correctly as required by POSIX, so do not add quotes.
17046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17047 ;;
17048 esac |
17049 sort
17050 ) |
17051 sed '
17052 /^ac_cv_env_/b end
17053 t clear
17054 :clear
17055 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17056 t end
17057 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17058 :end' >>confcache
17059 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17060 if test -w "$cache_file"; then
17061 test "x$cache_file" != "x/dev/null" &&
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17063 $as_echo "$as_me: updating cache $cache_file" >&6;}
17064 cat confcache >$cache_file
17065 else
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17067 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17068 fi
17069 fi
17070 rm -f confcache
17071
17072 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17073 # Let make expand exec_prefix.
17074 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17075
17076 DEFS=-DHAVE_CONFIG_H
17077
17078 ac_libobjs=
17079 ac_ltlibobjs=
17080 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17081 # 1. Remove the extension, and $U if already installed.
17082 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17083 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17084 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17085 # will be set to the directory where LIBOBJS objects are built.
17086 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17087 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17088 done
17089 LIBOBJS=$ac_libobjs
17090
17091 LTLIBOBJS=$ac_ltlibobjs
17092
17093
17094 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17095 as_fn_error "conditional \"AMDEP\" was never defined.
17096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17097 fi
17098 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17099 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17101 fi
17102 if test -n "$EXEEXT"; then
17103 am__EXEEXT_TRUE=
17104 am__EXEEXT_FALSE='#'
17105 else
17106 am__EXEEXT_TRUE='#'
17107 am__EXEEXT_FALSE=
17108 fi
17109
17110 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17111 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17113 fi
17114 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17115 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17117 fi
17118 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17119 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17121 fi
17122 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17123 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17125 fi
17126 if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17127 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17129 fi
17130
17131 : ${CONFIG_STATUS=./config.status}
17132 ac_write_fail=0
17133 ac_clean_files_save=$ac_clean_files
17134 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17136 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17137 as_write_fail=0
17138 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17139 #! $SHELL
17140 # Generated by $as_me.
17141 # Run this file to recreate the current configuration.
17142 # Compiler output produced by configure, useful for debugging
17143 # configure, is in config.log if it exists.
17144
17145 debug=false
17146 ac_cs_recheck=false
17147 ac_cs_silent=false
17148
17149 SHELL=\${CONFIG_SHELL-$SHELL}
17150 export SHELL
17151 _ASEOF
17152 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17153 ## -------------------- ##
17154 ## M4sh Initialization. ##
17155 ## -------------------- ##
17156
17157 # Be more Bourne compatible
17158 DUALCASE=1; export DUALCASE # for MKS sh
17159 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17160 emulate sh
17161 NULLCMD=:
17162 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17163 # is contrary to our usage. Disable this feature.
17164 alias -g '${1+"$@"}'='"$@"'
17165 setopt NO_GLOB_SUBST
17166 else
17167 case `(set -o) 2>/dev/null` in #(
17168 *posix*) :
17169 set -o posix ;; #(
17170 *) :
17171 ;;
17172 esac
17173 fi
17174
17175
17176 as_nl='
17177 '
17178 export as_nl
17179 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17180 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17181 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17182 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17183 # Prefer a ksh shell builtin over an external printf program on Solaris,
17184 # but without wasting forks for bash or zsh.
17185 if test -z "$BASH_VERSION$ZSH_VERSION" \
17186 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17187 as_echo='print -r --'
17188 as_echo_n='print -rn --'
17189 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17190 as_echo='printf %s\n'
17191 as_echo_n='printf %s'
17192 else
17193 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17194 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17195 as_echo_n='/usr/ucb/echo -n'
17196 else
17197 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17198 as_echo_n_body='eval
17199 arg=$1;
17200 case $arg in #(
17201 *"$as_nl"*)
17202 expr "X$arg" : "X\\(.*\\)$as_nl";
17203 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17204 esac;
17205 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17206 '
17207 export as_echo_n_body
17208 as_echo_n='sh -c $as_echo_n_body as_echo'
17209 fi
17210 export as_echo_body
17211 as_echo='sh -c $as_echo_body as_echo'
17212 fi
17213
17214 # The user is always right.
17215 if test "${PATH_SEPARATOR+set}" != set; then
17216 PATH_SEPARATOR=:
17217 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17218 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17219 PATH_SEPARATOR=';'
17220 }
17221 fi
17222
17223
17224 # IFS
17225 # We need space, tab and new line, in precisely that order. Quoting is
17226 # there to prevent editors from complaining about space-tab.
17227 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17228 # splitting by setting IFS to empty value.)
17229 IFS=" "" $as_nl"
17230
17231 # Find who we are. Look in the path if we contain no directory separator.
17232 case $0 in #((
17233 *[\\/]* ) as_myself=$0 ;;
17234 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17235 for as_dir in $PATH
17236 do
17237 IFS=$as_save_IFS
17238 test -z "$as_dir" && as_dir=.
17239 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17240 done
17241 IFS=$as_save_IFS
17242
17243 ;;
17244 esac
17245 # We did not find ourselves, most probably we were run as `sh COMMAND'
17246 # in which case we are not to be found in the path.
17247 if test "x$as_myself" = x; then
17248 as_myself=$0
17249 fi
17250 if test ! -f "$as_myself"; then
17251 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17252 exit 1
17253 fi
17254
17255 # Unset variables that we do not need and which cause bugs (e.g. in
17256 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17257 # suppresses any "Segmentation fault" message there. '((' could
17258 # trigger a bug in pdksh 5.2.14.
17259 for as_var in BASH_ENV ENV MAIL MAILPATH
17260 do eval test x\${$as_var+set} = xset \
17261 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17262 done
17263 PS1='$ '
17264 PS2='> '
17265 PS4='+ '
17266
17267 # NLS nuisances.
17268 LC_ALL=C
17269 export LC_ALL
17270 LANGUAGE=C
17271 export LANGUAGE
17272
17273 # CDPATH.
17274 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17275
17276
17277 # as_fn_error ERROR [LINENO LOG_FD]
17278 # ---------------------------------
17279 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17280 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17281 # script with status $?, using 1 if that was 0.
17282 as_fn_error ()
17283 {
17284 as_status=$?; test $as_status -eq 0 && as_status=1
17285 if test "$3"; then
17286 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17287 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17288 fi
17289 $as_echo "$as_me: error: $1" >&2
17290 as_fn_exit $as_status
17291 } # as_fn_error
17292
17293
17294 # as_fn_set_status STATUS
17295 # -----------------------
17296 # Set $? to STATUS, without forking.
17297 as_fn_set_status ()
17298 {
17299 return $1
17300 } # as_fn_set_status
17301
17302 # as_fn_exit STATUS
17303 # -----------------
17304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17305 as_fn_exit ()
17306 {
17307 set +e
17308 as_fn_set_status $1
17309 exit $1
17310 } # as_fn_exit
17311
17312 # as_fn_unset VAR
17313 # ---------------
17314 # Portably unset VAR.
17315 as_fn_unset ()
17316 {
17317 { eval $1=; unset $1;}
17318 }
17319 as_unset=as_fn_unset
17320 # as_fn_append VAR VALUE
17321 # ----------------------
17322 # Append the text in VALUE to the end of the definition contained in VAR. Take
17323 # advantage of any shell optimizations that allow amortized linear growth over
17324 # repeated appends, instead of the typical quadratic growth present in naive
17325 # implementations.
17326 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17327 eval 'as_fn_append ()
17328 {
17329 eval $1+=\$2
17330 }'
17331 else
17332 as_fn_append ()
17333 {
17334 eval $1=\$$1\$2
17335 }
17336 fi # as_fn_append
17337
17338 # as_fn_arith ARG...
17339 # ------------------
17340 # Perform arithmetic evaluation on the ARGs, and store the result in the
17341 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17342 # must be portable across $(()) and expr.
17343 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17344 eval 'as_fn_arith ()
17345 {
17346 as_val=$(( $* ))
17347 }'
17348 else
17349 as_fn_arith ()
17350 {
17351 as_val=`expr "$@" || test $? -eq 1`
17352 }
17353 fi # as_fn_arith
17354
17355
17356 if expr a : '\(a\)' >/dev/null 2>&1 &&
17357 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17358 as_expr=expr
17359 else
17360 as_expr=false
17361 fi
17362
17363 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17364 as_basename=basename
17365 else
17366 as_basename=false
17367 fi
17368
17369 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17370 as_dirname=dirname
17371 else
17372 as_dirname=false
17373 fi
17374
17375 as_me=`$as_basename -- "$0" ||
17376 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17377 X"$0" : 'X\(//\)$' \| \
17378 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17379 $as_echo X/"$0" |
17380 sed '/^.*\/\([^/][^/]*\)\/*$/{
17381 s//\1/
17382 q
17383 }
17384 /^X\/\(\/\/\)$/{
17385 s//\1/
17386 q
17387 }
17388 /^X\/\(\/\).*/{
17389 s//\1/
17390 q
17391 }
17392 s/.*/./; q'`
17393
17394 # Avoid depending upon Character Ranges.
17395 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17396 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17397 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17398 as_cr_digits='0123456789'
17399 as_cr_alnum=$as_cr_Letters$as_cr_digits
17400
17401 ECHO_C= ECHO_N= ECHO_T=
17402 case `echo -n x` in #(((((
17403 -n*)
17404 case `echo 'xy\c'` in
17405 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17406 xy) ECHO_C='\c';;
17407 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17408 ECHO_T=' ';;
17409 esac;;
17410 *)
17411 ECHO_N='-n';;
17412 esac
17413
17414 rm -f conf$$ conf$$.exe conf$$.file
17415 if test -d conf$$.dir; then
17416 rm -f conf$$.dir/conf$$.file
17417 else
17418 rm -f conf$$.dir
17419 mkdir conf$$.dir 2>/dev/null
17420 fi
17421 if (echo >conf$$.file) 2>/dev/null; then
17422 if ln -s conf$$.file conf$$ 2>/dev/null; then
17423 as_ln_s='ln -s'
17424 # ... but there are two gotchas:
17425 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17426 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17427 # In both cases, we have to default to `cp -p'.
17428 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17429 as_ln_s='cp -p'
17430 elif ln conf$$.file conf$$ 2>/dev/null; then
17431 as_ln_s=ln
17432 else
17433 as_ln_s='cp -p'
17434 fi
17435 else
17436 as_ln_s='cp -p'
17437 fi
17438 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17439 rmdir conf$$.dir 2>/dev/null
17440
17441
17442 # as_fn_mkdir_p
17443 # -------------
17444 # Create "$as_dir" as a directory, including parents if necessary.
17445 as_fn_mkdir_p ()
17446 {
17447
17448 case $as_dir in #(
17449 -*) as_dir=./$as_dir;;
17450 esac
17451 test -d "$as_dir" || eval $as_mkdir_p || {
17452 as_dirs=
17453 while :; do
17454 case $as_dir in #(
17455 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17456 *) as_qdir=$as_dir;;
17457 esac
17458 as_dirs="'$as_qdir' $as_dirs"
17459 as_dir=`$as_dirname -- "$as_dir" ||
17460 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17461 X"$as_dir" : 'X\(//\)[^/]' \| \
17462 X"$as_dir" : 'X\(//\)$' \| \
17463 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17464 $as_echo X"$as_dir" |
17465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17466 s//\1/
17467 q
17468 }
17469 /^X\(\/\/\)[^/].*/{
17470 s//\1/
17471 q
17472 }
17473 /^X\(\/\/\)$/{
17474 s//\1/
17475 q
17476 }
17477 /^X\(\/\).*/{
17478 s//\1/
17479 q
17480 }
17481 s/.*/./; q'`
17482 test -d "$as_dir" && break
17483 done
17484 test -z "$as_dirs" || eval "mkdir $as_dirs"
17485 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17486
17487
17488 } # as_fn_mkdir_p
17489 if mkdir -p . 2>/dev/null; then
17490 as_mkdir_p='mkdir -p "$as_dir"'
17491 else
17492 test -d ./-p && rmdir ./-p
17493 as_mkdir_p=false
17494 fi
17495
17496 if test -x / >/dev/null 2>&1; then
17497 as_test_x='test -x'
17498 else
17499 if ls -dL / >/dev/null 2>&1; then
17500 as_ls_L_option=L
17501 else
17502 as_ls_L_option=
17503 fi
17504 as_test_x='
17505 eval sh -c '\''
17506 if test -d "$1"; then
17507 test -d "$1/.";
17508 else
17509 case $1 in #(
17510 -*)set "./$1";;
17511 esac;
17512 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17513 ???[sx]*):;;*)false;;esac;fi
17514 '\'' sh
17515 '
17516 fi
17517 as_executable_p=$as_test_x
17518
17519 # Sed expression to map a string onto a valid CPP name.
17520 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17521
17522 # Sed expression to map a string onto a valid variable name.
17523 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17524
17525
17526 exec 6>&1
17527 ## ----------------------------------- ##
17528 ## Main body of $CONFIG_STATUS script. ##
17529 ## ----------------------------------- ##
17530 _ASEOF
17531 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17532
17533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17534 # Save the log message, to keep $0 and so on meaningful, and to
17535 # report actual input values of CONFIG_FILES etc. instead of their
17536 # values after options handling.
17537 ac_log="
17538 This file was extended by $as_me, which was
17539 generated by GNU Autoconf 2.64. Invocation command line was
17540
17541 CONFIG_FILES = $CONFIG_FILES
17542 CONFIG_HEADERS = $CONFIG_HEADERS
17543 CONFIG_LINKS = $CONFIG_LINKS
17544 CONFIG_COMMANDS = $CONFIG_COMMANDS
17545 $ $0 $@
17546
17547 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17548 "
17549
17550 _ACEOF
17551
17552 case $ac_config_files in *"
17553 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17554 esac
17555
17556 case $ac_config_headers in *"
17557 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17558 esac
17559
17560
17561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17562 # Files that config.status was made for.
17563 config_files="$ac_config_files"
17564 config_headers="$ac_config_headers"
17565 config_commands="$ac_config_commands"
17566
17567 _ACEOF
17568
17569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17570 ac_cs_usage="\
17571 \`$as_me' instantiates files and other configuration actions
17572 from templates according to the current configuration. Unless the files
17573 and actions are specified as TAGs, all are instantiated by default.
17574
17575 Usage: $0 [OPTION]... [TAG]...
17576
17577 -h, --help print this help, then exit
17578 -V, --version print version number and configuration settings, then exit
17579 -q, --quiet, --silent
17580 do not print progress messages
17581 -d, --debug don't remove temporary files
17582 --recheck update $as_me by reconfiguring in the same conditions
17583 --file=FILE[:TEMPLATE]
17584 instantiate the configuration file FILE
17585 --header=FILE[:TEMPLATE]
17586 instantiate the configuration header FILE
17587
17588 Configuration files:
17589 $config_files
17590
17591 Configuration headers:
17592 $config_headers
17593
17594 Configuration commands:
17595 $config_commands
17596
17597 Report bugs to the package provider."
17598
17599 _ACEOF
17600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17601 ac_cs_version="\\
17602 config.status
17603 configured by $0, generated by GNU Autoconf 2.64,
17604 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17605
17606 Copyright (C) 2009 Free Software Foundation, Inc.
17607 This config.status script is free software; the Free Software Foundation
17608 gives unlimited permission to copy, distribute and modify it."
17609
17610 ac_pwd='$ac_pwd'
17611 srcdir='$srcdir'
17612 INSTALL='$INSTALL'
17613 MKDIR_P='$MKDIR_P'
17614 AWK='$AWK'
17615 test -n "\$AWK" || AWK=awk
17616 _ACEOF
17617
17618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17619 # The default lists apply if the user does not specify any file.
17620 ac_need_defaults=:
17621 while test $# != 0
17622 do
17623 case $1 in
17624 --*=*)
17625 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17626 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17627 ac_shift=:
17628 ;;
17629 *)
17630 ac_option=$1
17631 ac_optarg=$2
17632 ac_shift=shift
17633 ;;
17634 esac
17635
17636 case $ac_option in
17637 # Handling of the options.
17638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17639 ac_cs_recheck=: ;;
17640 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17641 $as_echo "$ac_cs_version"; exit ;;
17642 --debug | --debu | --deb | --de | --d | -d )
17643 debug=: ;;
17644 --file | --fil | --fi | --f )
17645 $ac_shift
17646 case $ac_optarg in
17647 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17648 esac
17649 as_fn_append CONFIG_FILES " '$ac_optarg'"
17650 ac_need_defaults=false;;
17651 --header | --heade | --head | --hea )
17652 $ac_shift
17653 case $ac_optarg in
17654 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17655 esac
17656 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17657 ac_need_defaults=false;;
17658 --he | --h)
17659 # Conflict between --help and --header
17660 as_fn_error "ambiguous option: \`$1'
17661 Try \`$0 --help' for more information.";;
17662 --help | --hel | -h )
17663 $as_echo "$ac_cs_usage"; exit ;;
17664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17665 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17666 ac_cs_silent=: ;;
17667
17668 # This is an error.
17669 -*) as_fn_error "unrecognized option: \`$1'
17670 Try \`$0 --help' for more information." ;;
17671
17672 *) as_fn_append ac_config_targets " $1"
17673 ac_need_defaults=false ;;
17674
17675 esac
17676 shift
17677 done
17678
17679 ac_configure_extra_args=
17680
17681 if $ac_cs_silent; then
17682 exec 6>/dev/null
17683 ac_configure_extra_args="$ac_configure_extra_args --silent"
17684 fi
17685
17686 _ACEOF
17687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17688 if \$ac_cs_recheck; then
17689 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17690 shift
17691 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17692 CONFIG_SHELL='$SHELL'
17693 export CONFIG_SHELL
17694 exec "\$@"
17695 fi
17696
17697 _ACEOF
17698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17699 exec 5>>config.log
17700 {
17701 echo
17702 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17703 ## Running $as_me. ##
17704 _ASBOX
17705 $as_echo "$ac_log"
17706 } >&5
17707
17708 _ACEOF
17709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17710 #
17711 # INIT-COMMANDS
17712 #
17713 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17714
17715
17716 # The HP-UX ksh and POSIX shell print the target directory to stdout
17717 # if CDPATH is set.
17718 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17719
17720 sed_quote_subst='$sed_quote_subst'
17721 double_quote_subst='$double_quote_subst'
17722 delay_variable_subst='$delay_variable_subst'
17723 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17724 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17725 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17726 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17727 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17728 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17729 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17730 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17731 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17732 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17733 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17734 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17735 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17736 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17737 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17738 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17739 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17740 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17741 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17742 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17743 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17744 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17745 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17746 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17747 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17748 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17749 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17750 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17751 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17752 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17753 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17754 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17755 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17756 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17757 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17758 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17759 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17760 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17761 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17762 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17763 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17764 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17765 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17766 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17767 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17768 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17769 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17770 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17771 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"`'
17772 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17773 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17774 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17775 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17776 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17777 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17778 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17779 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17780 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17781 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17782 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17783 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17784 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17785 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17786 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17787 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17788 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17789 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17790 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17791 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17792 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17793 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17794 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17795 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17796 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17797 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17798 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17799 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17800 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17801 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17802 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17803 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17804 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17805 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17806 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17807 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17808 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17809 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17810 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17811 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17812 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17813 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17814 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17815 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17816 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17817 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17818 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17819 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17820 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17821 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17822 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17823 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17824 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17825 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17826 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17827 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17828 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17829 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17830 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17831 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17832 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17833 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17834 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17835 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17836 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17837 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17838 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17839 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17840 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17841 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17842 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17843 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17844 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17845 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17846 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17847 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17848 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17849 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17850 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17851 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17852 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17853 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17854 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17855 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17856 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17857 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17858 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17859 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17860 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17861 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17862 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17863 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17864 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17865 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17866 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17867 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17868 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17869 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17870 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17871 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17872 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17873 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17874 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17875 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17876 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17877 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17878 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17879 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17880 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17881 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17882 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17883 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17884 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17885 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17886 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17887 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17888 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17889 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17890 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17891 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17892 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17893 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17894 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17895 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17896 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17897 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17898
17899 LTCC='$LTCC'
17900 LTCFLAGS='$LTCFLAGS'
17901 compiler='$compiler_DEFAULT'
17902
17903 # A function that is used when there is no print builtin or printf.
17904 func_fallback_echo ()
17905 {
17906 eval 'cat <<_LTECHO_EOF
17907 \$1
17908 _LTECHO_EOF'
17909 }
17910
17911 # Quote evaled strings.
17912 for var in SHELL \
17913 ECHO \
17914 SED \
17915 GREP \
17916 EGREP \
17917 FGREP \
17918 LD \
17919 NM \
17920 LN_S \
17921 lt_SP2NL \
17922 lt_NL2SP \
17923 reload_flag \
17924 OBJDUMP \
17925 deplibs_check_method \
17926 file_magic_cmd \
17927 AR \
17928 AR_FLAGS \
17929 STRIP \
17930 RANLIB \
17931 CC \
17932 CFLAGS \
17933 compiler \
17934 lt_cv_sys_global_symbol_pipe \
17935 lt_cv_sys_global_symbol_to_cdecl \
17936 lt_cv_sys_global_symbol_to_c_name_address \
17937 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17938 lt_prog_compiler_no_builtin_flag \
17939 lt_prog_compiler_wl \
17940 lt_prog_compiler_pic \
17941 lt_prog_compiler_static \
17942 lt_cv_prog_compiler_c_o \
17943 need_locks \
17944 DSYMUTIL \
17945 NMEDIT \
17946 LIPO \
17947 OTOOL \
17948 OTOOL64 \
17949 shrext_cmds \
17950 export_dynamic_flag_spec \
17951 whole_archive_flag_spec \
17952 compiler_needs_object \
17953 with_gnu_ld \
17954 allow_undefined_flag \
17955 no_undefined_flag \
17956 hardcode_libdir_flag_spec \
17957 hardcode_libdir_flag_spec_ld \
17958 hardcode_libdir_separator \
17959 fix_srcfile_path \
17960 exclude_expsyms \
17961 include_expsyms \
17962 file_list_spec \
17963 variables_saved_for_relink \
17964 libname_spec \
17965 library_names_spec \
17966 soname_spec \
17967 install_override_mode \
17968 finish_eval \
17969 old_striplib \
17970 striplib \
17971 compiler_lib_search_dirs \
17972 predep_objects \
17973 postdep_objects \
17974 predeps \
17975 postdeps \
17976 compiler_lib_search_path \
17977 LD_CXX \
17978 reload_flag_CXX \
17979 compiler_CXX \
17980 lt_prog_compiler_no_builtin_flag_CXX \
17981 lt_prog_compiler_wl_CXX \
17982 lt_prog_compiler_pic_CXX \
17983 lt_prog_compiler_static_CXX \
17984 lt_cv_prog_compiler_c_o_CXX \
17985 export_dynamic_flag_spec_CXX \
17986 whole_archive_flag_spec_CXX \
17987 compiler_needs_object_CXX \
17988 with_gnu_ld_CXX \
17989 allow_undefined_flag_CXX \
17990 no_undefined_flag_CXX \
17991 hardcode_libdir_flag_spec_CXX \
17992 hardcode_libdir_flag_spec_ld_CXX \
17993 hardcode_libdir_separator_CXX \
17994 fix_srcfile_path_CXX \
17995 exclude_expsyms_CXX \
17996 include_expsyms_CXX \
17997 file_list_spec_CXX \
17998 compiler_lib_search_dirs_CXX \
17999 predep_objects_CXX \
18000 postdep_objects_CXX \
18001 predeps_CXX \
18002 postdeps_CXX \
18003 compiler_lib_search_path_CXX; do
18004 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18005 *[\\\\\\\`\\"\\\$]*)
18006 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18007 ;;
18008 *)
18009 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18010 ;;
18011 esac
18012 done
18013
18014 # Double-quote double-evaled strings.
18015 for var in reload_cmds \
18016 old_postinstall_cmds \
18017 old_postuninstall_cmds \
18018 old_archive_cmds \
18019 extract_expsyms_cmds \
18020 old_archive_from_new_cmds \
18021 old_archive_from_expsyms_cmds \
18022 archive_cmds \
18023 archive_expsym_cmds \
18024 module_cmds \
18025 module_expsym_cmds \
18026 export_symbols_cmds \
18027 prelink_cmds \
18028 postinstall_cmds \
18029 postuninstall_cmds \
18030 finish_cmds \
18031 sys_lib_search_path_spec \
18032 sys_lib_dlsearch_path_spec \
18033 reload_cmds_CXX \
18034 old_archive_cmds_CXX \
18035 old_archive_from_new_cmds_CXX \
18036 old_archive_from_expsyms_cmds_CXX \
18037 archive_cmds_CXX \
18038 archive_expsym_cmds_CXX \
18039 module_cmds_CXX \
18040 module_expsym_cmds_CXX \
18041 export_symbols_cmds_CXX \
18042 prelink_cmds_CXX; do
18043 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18044 *[\\\\\\\`\\"\\\$]*)
18045 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18046 ;;
18047 *)
18048 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18049 ;;
18050 esac
18051 done
18052
18053 ac_aux_dir='$ac_aux_dir'
18054 xsi_shell='$xsi_shell'
18055 lt_shell_append='$lt_shell_append'
18056
18057 # See if we are running on zsh, and set the options which allow our
18058 # commands through without removal of \ escapes INIT.
18059 if test -n "\${ZSH_VERSION+set}" ; then
18060 setopt NO_GLOB_SUBST
18061 fi
18062
18063
18064 PACKAGE='$PACKAGE'
18065 VERSION='$VERSION'
18066 TIMESTAMP='$TIMESTAMP'
18067 RM='$RM'
18068 ofile='$ofile'
18069
18070
18071
18072
18073
18074 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18075 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18076 # from automake.
18077 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18078 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18079 LINGUAS="${LINGUAS-%UNSET%}"
18080
18081
18082 _ACEOF
18083
18084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18085
18086 # Handling of arguments.
18087 for ac_config_target in $ac_config_targets
18088 do
18089 case $ac_config_target in
18090 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18091 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18092 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18093 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18094 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18095 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18096
18097 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18098 esac
18099 done
18100
18101
18102 # If the user did not use the arguments to specify the items to instantiate,
18103 # then the envvar interface is used. Set only those that are not.
18104 # We use the long form for the default assignment because of an extremely
18105 # bizarre bug on SunOS 4.1.3.
18106 if $ac_need_defaults; then
18107 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18108 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18109 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18110 fi
18111
18112 # Have a temporary directory for convenience. Make it in the build tree
18113 # simply because there is no reason against having it here, and in addition,
18114 # creating and moving files from /tmp can sometimes cause problems.
18115 # Hook for its removal unless debugging.
18116 # Note that there is a small window in which the directory will not be cleaned:
18117 # after its creation but before its name has been assigned to `$tmp'.
18118 $debug ||
18119 {
18120 tmp=
18121 trap 'exit_status=$?
18122 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18123 ' 0
18124 trap 'as_fn_exit 1' 1 2 13 15
18125 }
18126 # Create a (secure) tmp directory for tmp files.
18127
18128 {
18129 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18130 test -n "$tmp" && test -d "$tmp"
18131 } ||
18132 {
18133 tmp=./conf$$-$RANDOM
18134 (umask 077 && mkdir "$tmp")
18135 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18136
18137 # Set up the scripts for CONFIG_FILES section.
18138 # No need to generate them if there are no CONFIG_FILES.
18139 # This happens for instance with `./config.status config.h'.
18140 if test -n "$CONFIG_FILES"; then
18141
18142 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18143 ac_cs_awk_getline=:
18144 ac_cs_awk_pipe_init=
18145 ac_cs_awk_read_file='
18146 while ((getline aline < (F[key])) > 0)
18147 print(aline)
18148 close(F[key])'
18149 ac_cs_awk_pipe_fini=
18150 else
18151 ac_cs_awk_getline=false
18152 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18153 ac_cs_awk_read_file='
18154 print "|#_!!_#|"
18155 print "cat " F[key] " &&"
18156 '$ac_cs_awk_pipe_init
18157 # The final `:' finishes the AND list.
18158 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18159 fi
18160 ac_cr=`echo X | tr X '\015'`
18161 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18162 # But we know of no other shell where ac_cr would be empty at this
18163 # point, so we can use a bashism as a fallback.
18164 if test "x$ac_cr" = x; then
18165 eval ac_cr=\$\'\\r\'
18166 fi
18167 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18168 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18169 ac_cs_awk_cr='\r'
18170 else
18171 ac_cs_awk_cr=$ac_cr
18172 fi
18173
18174 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18175 _ACEOF
18176
18177 # Create commands to substitute file output variables.
18178 {
18179 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18180 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18181 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18182 echo "_ACAWK" &&
18183 echo "_ACEOF"
18184 } >conf$$files.sh &&
18185 . ./conf$$files.sh ||
18186 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18187 rm -f conf$$files.sh
18188
18189 {
18190 echo "cat >conf$$subs.awk <<_ACEOF" &&
18191 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18192 echo "_ACEOF"
18193 } >conf$$subs.sh ||
18194 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18195 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18196 ac_delim='%!_!# '
18197 for ac_last_try in false false false false false :; do
18198 . ./conf$$subs.sh ||
18199 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18200
18201 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18202 if test $ac_delim_n = $ac_delim_num; then
18203 break
18204 elif $ac_last_try; then
18205 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18206 else
18207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18208 fi
18209 done
18210 rm -f conf$$subs.sh
18211
18212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18213 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18214 _ACEOF
18215 sed -n '
18216 h
18217 s/^/S["/; s/!.*/"]=/
18218 p
18219 g
18220 s/^[^!]*!//
18221 :repl
18222 t repl
18223 s/'"$ac_delim"'$//
18224 t delim
18225 :nl
18226 h
18227 s/\(.\{148\}\).*/\1/
18228 t more1
18229 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18230 p
18231 n
18232 b repl
18233 :more1
18234 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18235 p
18236 g
18237 s/.\{148\}//
18238 t nl
18239 :delim
18240 h
18241 s/\(.\{148\}\).*/\1/
18242 t more2
18243 s/["\\]/\\&/g; s/^/"/; s/$/"/
18244 p
18245 b
18246 :more2
18247 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18248 p
18249 g
18250 s/.\{148\}//
18251 t delim
18252 ' <conf$$subs.awk | sed '
18253 /^[^""]/{
18254 N
18255 s/\n//
18256 }
18257 ' >>$CONFIG_STATUS || ac_write_fail=1
18258 rm -f conf$$subs.awk
18259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18260 _ACAWK
18261 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18262 for (key in S) S_is_set[key] = 1
18263 FS = "\a"
18264 \$ac_cs_awk_pipe_init
18265 }
18266 {
18267 line = $ 0
18268 nfields = split(line, field, "@")
18269 substed = 0
18270 len = length(field[1])
18271 for (i = 2; i < nfields; i++) {
18272 key = field[i]
18273 keylen = length(key)
18274 if (S_is_set[key]) {
18275 value = S[key]
18276 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18277 len += length(value) + length(field[++i])
18278 substed = 1
18279 } else
18280 len += 1 + keylen
18281 }
18282 if (nfields == 3 && !substed) {
18283 key = field[2]
18284 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18285 \$ac_cs_awk_read_file
18286 next
18287 }
18288 }
18289 print line
18290 }
18291 \$ac_cs_awk_pipe_fini
18292 _ACAWK
18293 _ACEOF
18294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18295 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18296 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18297 else
18298 cat
18299 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18300 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18301 _ACEOF
18302
18303 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18304 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18305 # trailing colons and then remove the whole line if VPATH becomes empty
18306 # (actually we leave an empty line to preserve line numbers).
18307 if test "x$srcdir" = x.; then
18308 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18309 s/:*\$(srcdir):*/:/
18310 s/:*\${srcdir}:*/:/
18311 s/:*@srcdir@:*/:/
18312 s/^\([^=]*=[ ]*\):*/\1/
18313 s/:*$//
18314 s/^[^=]*=[ ]*$//
18315 }'
18316 fi
18317
18318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18319 fi # test -n "$CONFIG_FILES"
18320
18321 # Set up the scripts for CONFIG_HEADERS section.
18322 # No need to generate them if there are no CONFIG_HEADERS.
18323 # This happens for instance with `./config.status Makefile'.
18324 if test -n "$CONFIG_HEADERS"; then
18325 cat >"$tmp/defines.awk" <<\_ACAWK ||
18326 BEGIN {
18327 _ACEOF
18328
18329 # Transform confdefs.h into an awk script `defines.awk', embedded as
18330 # here-document in config.status, that substitutes the proper values into
18331 # config.h.in to produce config.h.
18332
18333 # Create a delimiter string that does not exist in confdefs.h, to ease
18334 # handling of long lines.
18335 ac_delim='%!_!# '
18336 for ac_last_try in false false :; do
18337 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18338 if test -z "$ac_t"; then
18339 break
18340 elif $ac_last_try; then
18341 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18342 else
18343 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18344 fi
18345 done
18346
18347 # For the awk script, D is an array of macro values keyed by name,
18348 # likewise P contains macro parameters if any. Preserve backslash
18349 # newline sequences.
18350
18351 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18352 sed -n '
18353 s/.\{148\}/&'"$ac_delim"'/g
18354 t rset
18355 :rset
18356 s/^[ ]*#[ ]*define[ ][ ]*/ /
18357 t def
18358 d
18359 :def
18360 s/\\$//
18361 t bsnl
18362 s/["\\]/\\&/g
18363 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18364 D["\1"]=" \3"/p
18365 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18366 d
18367 :bsnl
18368 s/["\\]/\\&/g
18369 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18370 D["\1"]=" \3\\\\\\n"\\/p
18371 t cont
18372 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18373 t cont
18374 d
18375 :cont
18376 n
18377 s/.\{148\}/&'"$ac_delim"'/g
18378 t clear
18379 :clear
18380 s/\\$//
18381 t bsnlc
18382 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18383 d
18384 :bsnlc
18385 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18386 b cont
18387 ' <confdefs.h | sed '
18388 s/'"$ac_delim"'/"\\\
18389 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18390
18391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18392 for (key in D) D_is_set[key] = 1
18393 FS = "\a"
18394 }
18395 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18396 line = \$ 0
18397 split(line, arg, " ")
18398 if (arg[1] == "#") {
18399 defundef = arg[2]
18400 mac1 = arg[3]
18401 } else {
18402 defundef = substr(arg[1], 2)
18403 mac1 = arg[2]
18404 }
18405 split(mac1, mac2, "(") #)
18406 macro = mac2[1]
18407 prefix = substr(line, 1, index(line, defundef) - 1)
18408 if (D_is_set[macro]) {
18409 # Preserve the white space surrounding the "#".
18410 print prefix "define", macro P[macro] D[macro]
18411 next
18412 } else {
18413 # Replace #undef with comments. This is necessary, for example,
18414 # in the case of _POSIX_SOURCE, which is predefined and required
18415 # on some systems where configure will not decide to define it.
18416 if (defundef == "undef") {
18417 print "/*", prefix defundef, macro, "*/"
18418 next
18419 }
18420 }
18421 }
18422 { print }
18423 _ACAWK
18424 _ACEOF
18425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18426 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18427 fi # test -n "$CONFIG_HEADERS"
18428
18429
18430 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18431 shift
18432 for ac_tag
18433 do
18434 case $ac_tag in
18435 :[FHLC]) ac_mode=$ac_tag; continue;;
18436 esac
18437 case $ac_mode$ac_tag in
18438 :[FHL]*:*);;
18439 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18440 :[FH]-) ac_tag=-:-;;
18441 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18442 esac
18443 ac_save_IFS=$IFS
18444 IFS=:
18445 set x $ac_tag
18446 IFS=$ac_save_IFS
18447 shift
18448 ac_file=$1
18449 shift
18450
18451 case $ac_mode in
18452 :L) ac_source=$1;;
18453 :[FH])
18454 ac_file_inputs=
18455 for ac_f
18456 do
18457 case $ac_f in
18458 -) ac_f="$tmp/stdin";;
18459 *) # Look for the file first in the build tree, then in the source tree
18460 # (if the path is not absolute). The absolute path cannot be DOS-style,
18461 # because $ac_f cannot contain `:'.
18462 test -f "$ac_f" ||
18463 case $ac_f in
18464 [\\/$]*) false;;
18465 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18466 esac ||
18467 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18468 esac
18469 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18470 as_fn_append ac_file_inputs " '$ac_f'"
18471 done
18472
18473 # Let's still pretend it is `configure' which instantiates (i.e., don't
18474 # use $as_me), people would be surprised to read:
18475 # /* config.h. Generated by config.status. */
18476 configure_input='Generated from '`
18477 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18478 `' by configure.'
18479 if test x"$ac_file" != x-; then
18480 configure_input="$ac_file. $configure_input"
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18482 $as_echo "$as_me: creating $ac_file" >&6;}
18483 fi
18484 # Neutralize special characters interpreted by sed in replacement strings.
18485 case $configure_input in #(
18486 *\&* | *\|* | *\\* )
18487 ac_sed_conf_input=`$as_echo "$configure_input" |
18488 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18489 *) ac_sed_conf_input=$configure_input;;
18490 esac
18491
18492 case $ac_tag in
18493 *:-:* | *:-) cat >"$tmp/stdin" \
18494 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18495 esac
18496 ;;
18497 esac
18498
18499 ac_dir=`$as_dirname -- "$ac_file" ||
18500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18501 X"$ac_file" : 'X\(//\)[^/]' \| \
18502 X"$ac_file" : 'X\(//\)$' \| \
18503 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18504 $as_echo X"$ac_file" |
18505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18506 s//\1/
18507 q
18508 }
18509 /^X\(\/\/\)[^/].*/{
18510 s//\1/
18511 q
18512 }
18513 /^X\(\/\/\)$/{
18514 s//\1/
18515 q
18516 }
18517 /^X\(\/\).*/{
18518 s//\1/
18519 q
18520 }
18521 s/.*/./; q'`
18522 as_dir="$ac_dir"; as_fn_mkdir_p
18523 ac_builddir=.
18524
18525 case "$ac_dir" in
18526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18527 *)
18528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18529 # A ".." for each directory in $ac_dir_suffix.
18530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18531 case $ac_top_builddir_sub in
18532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18534 esac ;;
18535 esac
18536 ac_abs_top_builddir=$ac_pwd
18537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18538 # for backward compatibility:
18539 ac_top_builddir=$ac_top_build_prefix
18540
18541 case $srcdir in
18542 .) # We are building in place.
18543 ac_srcdir=.
18544 ac_top_srcdir=$ac_top_builddir_sub
18545 ac_abs_top_srcdir=$ac_pwd ;;
18546 [\\/]* | ?:[\\/]* ) # Absolute name.
18547 ac_srcdir=$srcdir$ac_dir_suffix;
18548 ac_top_srcdir=$srcdir
18549 ac_abs_top_srcdir=$srcdir ;;
18550 *) # Relative name.
18551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18552 ac_top_srcdir=$ac_top_build_prefix$srcdir
18553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18554 esac
18555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18556
18557
18558 case $ac_mode in
18559 :F)
18560 #
18561 # CONFIG_FILE
18562 #
18563
18564 case $INSTALL in
18565 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18566 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18567 esac
18568 ac_MKDIR_P=$MKDIR_P
18569 case $MKDIR_P in
18570 [\\/$]* | ?:[\\/]* ) ;;
18571 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18572 esac
18573 _ACEOF
18574
18575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18576 # If the template does not know about datarootdir, expand it.
18577 # FIXME: This hack should be removed a few years after 2.60.
18578 ac_datarootdir_hack=; ac_datarootdir_seen=
18579 ac_sed_dataroot='
18580 /datarootdir/ {
18581 p
18582 q
18583 }
18584 /@datadir@/p
18585 /@docdir@/p
18586 /@infodir@/p
18587 /@localedir@/p
18588 /@mandir@/p'
18589 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18590 *datarootdir*) ac_datarootdir_seen=yes;;
18591 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18593 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18594 _ACEOF
18595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18596 ac_datarootdir_hack='
18597 s&@datadir@&$datadir&g
18598 s&@docdir@&$docdir&g
18599 s&@infodir@&$infodir&g
18600 s&@localedir@&$localedir&g
18601 s&@mandir@&$mandir&g
18602 s&\\\${datarootdir}&$datarootdir&g' ;;
18603 esac
18604 _ACEOF
18605
18606 # Neutralize VPATH when `$srcdir' = `.'.
18607 # Shell code in configure.ac might set extrasub.
18608 # FIXME: do we really want to maintain this feature?
18609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18610 ac_sed_extra="$ac_vpsub
18611 $extrasub
18612 _ACEOF
18613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18614 :t
18615 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18616 s|@configure_input@|$ac_sed_conf_input|;t t
18617 s&@top_builddir@&$ac_top_builddir_sub&;t t
18618 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18619 s&@srcdir@&$ac_srcdir&;t t
18620 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18621 s&@top_srcdir@&$ac_top_srcdir&;t t
18622 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18623 s&@builddir@&$ac_builddir&;t t
18624 s&@abs_builddir@&$ac_abs_builddir&;t t
18625 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18626 s&@INSTALL@&$ac_INSTALL&;t t
18627 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18628 $ac_datarootdir_hack
18629 "
18630 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18631 if $ac_cs_awk_getline; then
18632 $AWK -f "$tmp/subs.awk"
18633 else
18634 $AWK -f "$tmp/subs.awk" | $SHELL
18635 fi >$tmp/out \
18636 || as_fn_error "could not create $ac_file" "$LINENO" 5
18637
18638 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18639 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18640 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18642 which seems to be undefined. Please make sure it is defined." >&5
18643 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18644 which seems to be undefined. Please make sure it is defined." >&2;}
18645
18646 rm -f "$tmp/stdin"
18647 case $ac_file in
18648 -) cat "$tmp/out" && rm -f "$tmp/out";;
18649 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18650 esac \
18651 || as_fn_error "could not create $ac_file" "$LINENO" 5
18652 ;;
18653 :H)
18654 #
18655 # CONFIG_HEADER
18656 #
18657 if test x"$ac_file" != x-; then
18658 {
18659 $as_echo "/* $configure_input */" \
18660 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18661 } >"$tmp/config.h" \
18662 || as_fn_error "could not create $ac_file" "$LINENO" 5
18663 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18665 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18666 else
18667 rm -f "$ac_file"
18668 mv "$tmp/config.h" "$ac_file" \
18669 || as_fn_error "could not create $ac_file" "$LINENO" 5
18670 fi
18671 else
18672 $as_echo "/* $configure_input */" \
18673 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18674 || as_fn_error "could not create -" "$LINENO" 5
18675 fi
18676 # Compute "$ac_file"'s index in $config_headers.
18677 _am_arg="$ac_file"
18678 _am_stamp_count=1
18679 for _am_header in $config_headers :; do
18680 case $_am_header in
18681 $_am_arg | $_am_arg:* )
18682 break ;;
18683 * )
18684 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18685 esac
18686 done
18687 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18688 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18689 X"$_am_arg" : 'X\(//\)[^/]' \| \
18690 X"$_am_arg" : 'X\(//\)$' \| \
18691 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18692 $as_echo X"$_am_arg" |
18693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18694 s//\1/
18695 q
18696 }
18697 /^X\(\/\/\)[^/].*/{
18698 s//\1/
18699 q
18700 }
18701 /^X\(\/\/\)$/{
18702 s//\1/
18703 q
18704 }
18705 /^X\(\/\).*/{
18706 s//\1/
18707 q
18708 }
18709 s/.*/./; q'`/stamp-h$_am_stamp_count
18710 ;;
18711
18712 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18713 $as_echo "$as_me: executing $ac_file commands" >&6;}
18714 ;;
18715 esac
18716
18717
18718 case $ac_file$ac_mode in
18719 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18720 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18721 # are listed without --file. Let's play safe and only enable the eval
18722 # if we detect the quoting.
18723 case $CONFIG_FILES in
18724 *\'*) eval set x "$CONFIG_FILES" ;;
18725 *) set x $CONFIG_FILES ;;
18726 esac
18727 shift
18728 for mf
18729 do
18730 # Strip MF so we end up with the name of the file.
18731 mf=`echo "$mf" | sed -e 's/:.*$//'`
18732 # Check whether this is an Automake generated Makefile or not.
18733 # We used to match only the files named `Makefile.in', but
18734 # some people rename them; so instead we look at the file content.
18735 # Grep'ing the first line is not enough: some people post-process
18736 # each Makefile.in and add a new line on top of each file to say so.
18737 # Grep'ing the whole file is not good either: AIX grep has a line
18738 # limit of 2048, but all sed's we know have understand at least 4000.
18739 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18740 dirpart=`$as_dirname -- "$mf" ||
18741 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18742 X"$mf" : 'X\(//\)[^/]' \| \
18743 X"$mf" : 'X\(//\)$' \| \
18744 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18745 $as_echo X"$mf" |
18746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18747 s//\1/
18748 q
18749 }
18750 /^X\(\/\/\)[^/].*/{
18751 s//\1/
18752 q
18753 }
18754 /^X\(\/\/\)$/{
18755 s//\1/
18756 q
18757 }
18758 /^X\(\/\).*/{
18759 s//\1/
18760 q
18761 }
18762 s/.*/./; q'`
18763 else
18764 continue
18765 fi
18766 # Extract the definition of DEPDIR, am__include, and am__quote
18767 # from the Makefile without running `make'.
18768 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18769 test -z "$DEPDIR" && continue
18770 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18771 test -z "am__include" && continue
18772 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18773 # When using ansi2knr, U may be empty or an underscore; expand it
18774 U=`sed -n 's/^U = //p' < "$mf"`
18775 # Find all dependency output files, they are included files with
18776 # $(DEPDIR) in their names. We invoke sed twice because it is the
18777 # simplest approach to changing $(DEPDIR) to its actual value in the
18778 # expansion.
18779 for file in `sed -n "
18780 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18781 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18782 # Make sure the directory exists.
18783 test -f "$dirpart/$file" && continue
18784 fdir=`$as_dirname -- "$file" ||
18785 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18786 X"$file" : 'X\(//\)[^/]' \| \
18787 X"$file" : 'X\(//\)$' \| \
18788 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18789 $as_echo X"$file" |
18790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18791 s//\1/
18792 q
18793 }
18794 /^X\(\/\/\)[^/].*/{
18795 s//\1/
18796 q
18797 }
18798 /^X\(\/\/\)$/{
18799 s//\1/
18800 q
18801 }
18802 /^X\(\/\).*/{
18803 s//\1/
18804 q
18805 }
18806 s/.*/./; q'`
18807 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18808 # echo "creating $dirpart/$file"
18809 echo '# dummy' > "$dirpart/$file"
18810 done
18811 done
18812 }
18813 ;;
18814 "libtool":C)
18815
18816 # See if we are running on zsh, and set the options which allow our
18817 # commands through without removal of \ escapes.
18818 if test -n "${ZSH_VERSION+set}" ; then
18819 setopt NO_GLOB_SUBST
18820 fi
18821
18822 cfgfile="${ofile}T"
18823 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18824 $RM "$cfgfile"
18825
18826 cat <<_LT_EOF >> "$cfgfile"
18827 #! $SHELL
18828
18829 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18830 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18831 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18832 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18833 #
18834 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18835 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18836 # Written by Gordon Matzigkeit, 1996
18837 #
18838 # This file is part of GNU Libtool.
18839 #
18840 # GNU Libtool is free software; you can redistribute it and/or
18841 # modify it under the terms of the GNU General Public License as
18842 # published by the Free Software Foundation; either version 2 of
18843 # the License, or (at your option) any later version.
18844 #
18845 # As a special exception to the GNU General Public License,
18846 # if you distribute this file as part of a program or library that
18847 # is built using GNU Libtool, you may include this file under the
18848 # same distribution terms that you use for the rest of that program.
18849 #
18850 # GNU Libtool is distributed in the hope that it will be useful,
18851 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18852 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18853 # GNU General Public License for more details.
18854 #
18855 # You should have received a copy of the GNU General Public License
18856 # along with GNU Libtool; see the file COPYING. If not, a copy
18857 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18858 # obtained by writing to the Free Software Foundation, Inc.,
18859 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18860
18861
18862 # The names of the tagged configurations supported by this script.
18863 available_tags="CXX "
18864
18865 # ### BEGIN LIBTOOL CONFIG
18866
18867 # Which release of libtool.m4 was used?
18868 macro_version=$macro_version
18869 macro_revision=$macro_revision
18870
18871 # Whether or not to build shared libraries.
18872 build_libtool_libs=$enable_shared
18873
18874 # Whether or not to build static libraries.
18875 build_old_libs=$enable_static
18876
18877 # What type of objects to build.
18878 pic_mode=$pic_mode
18879
18880 # Whether or not to optimize for fast installation.
18881 fast_install=$enable_fast_install
18882
18883 # Shell to use when invoking shell scripts.
18884 SHELL=$lt_SHELL
18885
18886 # An echo program that protects backslashes.
18887 ECHO=$lt_ECHO
18888
18889 # The host system.
18890 host_alias=$host_alias
18891 host=$host
18892 host_os=$host_os
18893
18894 # The build system.
18895 build_alias=$build_alias
18896 build=$build
18897 build_os=$build_os
18898
18899 # A sed program that does not truncate output.
18900 SED=$lt_SED
18901
18902 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18903 Xsed="\$SED -e 1s/^X//"
18904
18905 # A grep program that handles long lines.
18906 GREP=$lt_GREP
18907
18908 # An ERE matcher.
18909 EGREP=$lt_EGREP
18910
18911 # A literal string matcher.
18912 FGREP=$lt_FGREP
18913
18914 # A BSD- or MS-compatible name lister.
18915 NM=$lt_NM
18916
18917 # Whether we need soft or hard links.
18918 LN_S=$lt_LN_S
18919
18920 # What is the maximum length of a command?
18921 max_cmd_len=$max_cmd_len
18922
18923 # Object file suffix (normally "o").
18924 objext=$ac_objext
18925
18926 # Executable file suffix (normally "").
18927 exeext=$exeext
18928
18929 # whether the shell understands "unset".
18930 lt_unset=$lt_unset
18931
18932 # turn spaces into newlines.
18933 SP2NL=$lt_lt_SP2NL
18934
18935 # turn newlines into spaces.
18936 NL2SP=$lt_lt_NL2SP
18937
18938 # An object symbol dumper.
18939 OBJDUMP=$lt_OBJDUMP
18940
18941 # Method to check whether dependent libraries are shared objects.
18942 deplibs_check_method=$lt_deplibs_check_method
18943
18944 # Command to use when deplibs_check_method == "file_magic".
18945 file_magic_cmd=$lt_file_magic_cmd
18946
18947 # The archiver.
18948 AR=$lt_AR
18949 AR_FLAGS=$lt_AR_FLAGS
18950
18951 # A symbol stripping program.
18952 STRIP=$lt_STRIP
18953
18954 # Commands used to install an old-style archive.
18955 RANLIB=$lt_RANLIB
18956 old_postinstall_cmds=$lt_old_postinstall_cmds
18957 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18958
18959 # Whether to use a lock for old archive extraction.
18960 lock_old_archive_extraction=$lock_old_archive_extraction
18961
18962 # A C compiler.
18963 LTCC=$lt_CC
18964
18965 # LTCC compiler flags.
18966 LTCFLAGS=$lt_CFLAGS
18967
18968 # Take the output of nm and produce a listing of raw symbols and C names.
18969 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18970
18971 # Transform the output of nm in a proper C declaration.
18972 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18973
18974 # Transform the output of nm in a C name address pair.
18975 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18976
18977 # Transform the output of nm in a C name address pair when lib prefix is needed.
18978 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18979
18980 # The name of the directory that contains temporary libtool files.
18981 objdir=$objdir
18982
18983 # Used to examine libraries when file_magic_cmd begins with "file".
18984 MAGIC_CMD=$MAGIC_CMD
18985
18986 # Must we lock files when doing compilation?
18987 need_locks=$lt_need_locks
18988
18989 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18990 DSYMUTIL=$lt_DSYMUTIL
18991
18992 # Tool to change global to local symbols on Mac OS X.
18993 NMEDIT=$lt_NMEDIT
18994
18995 # Tool to manipulate fat objects and archives on Mac OS X.
18996 LIPO=$lt_LIPO
18997
18998 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18999 OTOOL=$lt_OTOOL
19000
19001 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19002 OTOOL64=$lt_OTOOL64
19003
19004 # Old archive suffix (normally "a").
19005 libext=$libext
19006
19007 # Shared library suffix (normally ".so").
19008 shrext_cmds=$lt_shrext_cmds
19009
19010 # The commands to extract the exported symbol list from a shared archive.
19011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19012
19013 # Variables whose values should be saved in libtool wrapper scripts and
19014 # restored at link time.
19015 variables_saved_for_relink=$lt_variables_saved_for_relink
19016
19017 # Do we need the "lib" prefix for modules?
19018 need_lib_prefix=$need_lib_prefix
19019
19020 # Do we need a version for libraries?
19021 need_version=$need_version
19022
19023 # Library versioning type.
19024 version_type=$version_type
19025
19026 # Shared library runtime path variable.
19027 runpath_var=$runpath_var
19028
19029 # Shared library path variable.
19030 shlibpath_var=$shlibpath_var
19031
19032 # Is shlibpath searched before the hard-coded library search path?
19033 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19034
19035 # Format of library name prefix.
19036 libname_spec=$lt_libname_spec
19037
19038 # List of archive names. First name is the real one, the rest are links.
19039 # The last name is the one that the linker finds with -lNAME
19040 library_names_spec=$lt_library_names_spec
19041
19042 # The coded name of the library, if different from the real name.
19043 soname_spec=$lt_soname_spec
19044
19045 # Permission mode override for installation of shared libraries.
19046 install_override_mode=$lt_install_override_mode
19047
19048 # Command to use after installation of a shared archive.
19049 postinstall_cmds=$lt_postinstall_cmds
19050
19051 # Command to use after uninstallation of a shared archive.
19052 postuninstall_cmds=$lt_postuninstall_cmds
19053
19054 # Commands used to finish a libtool library installation in a directory.
19055 finish_cmds=$lt_finish_cmds
19056
19057 # As "finish_cmds", except a single script fragment to be evaled but
19058 # not shown.
19059 finish_eval=$lt_finish_eval
19060
19061 # Whether we should hardcode library paths into libraries.
19062 hardcode_into_libs=$hardcode_into_libs
19063
19064 # Compile-time system search path for libraries.
19065 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19066
19067 # Run-time system search path for libraries.
19068 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19069
19070 # Whether dlopen is supported.
19071 dlopen_support=$enable_dlopen
19072
19073 # Whether dlopen of programs is supported.
19074 dlopen_self=$enable_dlopen_self
19075
19076 # Whether dlopen of statically linked programs is supported.
19077 dlopen_self_static=$enable_dlopen_self_static
19078
19079 # Commands to strip libraries.
19080 old_striplib=$lt_old_striplib
19081 striplib=$lt_striplib
19082
19083
19084 # The linker used to build libraries.
19085 LD=$lt_LD
19086
19087 # How to create reloadable object files.
19088 reload_flag=$lt_reload_flag
19089 reload_cmds=$lt_reload_cmds
19090
19091 # Commands used to build an old-style archive.
19092 old_archive_cmds=$lt_old_archive_cmds
19093
19094 # A language specific compiler.
19095 CC=$lt_compiler
19096
19097 # Is the compiler the GNU compiler?
19098 with_gcc=$GCC
19099
19100 # Compiler flag to turn off builtin functions.
19101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19102
19103 # How to pass a linker flag through the compiler.
19104 wl=$lt_lt_prog_compiler_wl
19105
19106 # Additional compiler flags for building library objects.
19107 pic_flag=$lt_lt_prog_compiler_pic
19108
19109 # Compiler flag to prevent dynamic linking.
19110 link_static_flag=$lt_lt_prog_compiler_static
19111
19112 # Does compiler simultaneously support -c and -o options?
19113 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19114
19115 # Whether or not to add -lc for building shared libraries.
19116 build_libtool_need_lc=$archive_cmds_need_lc
19117
19118 # Whether or not to disallow shared libs when runtime libs are static.
19119 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19120
19121 # Compiler flag to allow reflexive dlopens.
19122 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19123
19124 # Compiler flag to generate shared objects directly from archives.
19125 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19126
19127 # Whether the compiler copes with passing no objects directly.
19128 compiler_needs_object=$lt_compiler_needs_object
19129
19130 # Create an old-style archive from a shared archive.
19131 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19132
19133 # Create a temporary old-style archive to link instead of a shared archive.
19134 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19135
19136 # Commands used to build a shared archive.
19137 archive_cmds=$lt_archive_cmds
19138 archive_expsym_cmds=$lt_archive_expsym_cmds
19139
19140 # Commands used to build a loadable module if different from building
19141 # a shared archive.
19142 module_cmds=$lt_module_cmds
19143 module_expsym_cmds=$lt_module_expsym_cmds
19144
19145 # Whether we are building with GNU ld or not.
19146 with_gnu_ld=$lt_with_gnu_ld
19147
19148 # Flag that allows shared libraries with undefined symbols to be built.
19149 allow_undefined_flag=$lt_allow_undefined_flag
19150
19151 # Flag that enforces no undefined symbols.
19152 no_undefined_flag=$lt_no_undefined_flag
19153
19154 # Flag to hardcode \$libdir into a binary during linking.
19155 # This must work even if \$libdir does not exist
19156 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19157
19158 # If ld is used when linking, flag to hardcode \$libdir into a binary
19159 # during linking. This must work even if \$libdir does not exist.
19160 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19161
19162 # Whether we need a single "-rpath" flag with a separated argument.
19163 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19164
19165 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19166 # DIR into the resulting binary.
19167 hardcode_direct=$hardcode_direct
19168
19169 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19170 # DIR into the resulting binary and the resulting library dependency is
19171 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19172 # library is relocated.
19173 hardcode_direct_absolute=$hardcode_direct_absolute
19174
19175 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19176 # into the resulting binary.
19177 hardcode_minus_L=$hardcode_minus_L
19178
19179 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19180 # into the resulting binary.
19181 hardcode_shlibpath_var=$hardcode_shlibpath_var
19182
19183 # Set to "yes" if building a shared library automatically hardcodes DIR
19184 # into the library and all subsequent libraries and executables linked
19185 # against it.
19186 hardcode_automatic=$hardcode_automatic
19187
19188 # Set to yes if linker adds runtime paths of dependent libraries
19189 # to runtime path list.
19190 inherit_rpath=$inherit_rpath
19191
19192 # Whether libtool must link a program against all its dependency libraries.
19193 link_all_deplibs=$link_all_deplibs
19194
19195 # Fix the shell variable \$srcfile for the compiler.
19196 fix_srcfile_path=$lt_fix_srcfile_path
19197
19198 # Set to "yes" if exported symbols are required.
19199 always_export_symbols=$always_export_symbols
19200
19201 # The commands to list exported symbols.
19202 export_symbols_cmds=$lt_export_symbols_cmds
19203
19204 # Symbols that should not be listed in the preloaded symbols.
19205 exclude_expsyms=$lt_exclude_expsyms
19206
19207 # Symbols that must always be exported.
19208 include_expsyms=$lt_include_expsyms
19209
19210 # Commands necessary for linking programs (against libraries) with templates.
19211 prelink_cmds=$lt_prelink_cmds
19212
19213 # Specify filename containing input files.
19214 file_list_spec=$lt_file_list_spec
19215
19216 # How to hardcode a shared library path into an executable.
19217 hardcode_action=$hardcode_action
19218
19219 # The directories searched by this compiler when creating a shared library.
19220 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19221
19222 # Dependencies to place before and after the objects being linked to
19223 # create a shared library.
19224 predep_objects=$lt_predep_objects
19225 postdep_objects=$lt_postdep_objects
19226 predeps=$lt_predeps
19227 postdeps=$lt_postdeps
19228
19229 # The library search path used internally by the compiler when linking
19230 # a shared library.
19231 compiler_lib_search_path=$lt_compiler_lib_search_path
19232
19233 # ### END LIBTOOL CONFIG
19234
19235 _LT_EOF
19236
19237 case $host_os in
19238 aix3*)
19239 cat <<\_LT_EOF >> "$cfgfile"
19240 # AIX sometimes has problems with the GCC collect2 program. For some
19241 # reason, if we set the COLLECT_NAMES environment variable, the problems
19242 # vanish in a puff of smoke.
19243 if test "X${COLLECT_NAMES+set}" != Xset; then
19244 COLLECT_NAMES=
19245 export COLLECT_NAMES
19246 fi
19247 _LT_EOF
19248 ;;
19249 esac
19250
19251
19252 ltmain="$ac_aux_dir/ltmain.sh"
19253
19254
19255 # We use sed instead of cat because bash on DJGPP gets confused if
19256 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19257 # text mode, it properly converts lines to CR/LF. This bash problem
19258 # is reportedly fixed, but why not run on old versions too?
19259 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19260 || (rm -f "$cfgfile"; exit 1)
19261
19262 case $xsi_shell in
19263 yes)
19264 cat << \_LT_EOF >> "$cfgfile"
19265
19266 # func_dirname file append nondir_replacement
19267 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19268 # otherwise set result to NONDIR_REPLACEMENT.
19269 func_dirname ()
19270 {
19271 case ${1} in
19272 */*) func_dirname_result="${1%/*}${2}" ;;
19273 * ) func_dirname_result="${3}" ;;
19274 esac
19275 }
19276
19277 # func_basename file
19278 func_basename ()
19279 {
19280 func_basename_result="${1##*/}"
19281 }
19282
19283 # func_dirname_and_basename file append nondir_replacement
19284 # perform func_basename and func_dirname in a single function
19285 # call:
19286 # dirname: Compute the dirname of FILE. If nonempty,
19287 # add APPEND to the result, otherwise set result
19288 # to NONDIR_REPLACEMENT.
19289 # value returned in "$func_dirname_result"
19290 # basename: Compute filename of FILE.
19291 # value retuned in "$func_basename_result"
19292 # Implementation must be kept synchronized with func_dirname
19293 # and func_basename. For efficiency, we do not delegate to
19294 # those functions but instead duplicate the functionality here.
19295 func_dirname_and_basename ()
19296 {
19297 case ${1} in
19298 */*) func_dirname_result="${1%/*}${2}" ;;
19299 * ) func_dirname_result="${3}" ;;
19300 esac
19301 func_basename_result="${1##*/}"
19302 }
19303
19304 # func_stripname prefix suffix name
19305 # strip PREFIX and SUFFIX off of NAME.
19306 # PREFIX and SUFFIX must not contain globbing or regex special
19307 # characters, hashes, percent signs, but SUFFIX may contain a leading
19308 # dot (in which case that matches only a dot).
19309 func_stripname ()
19310 {
19311 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19312 # positional parameters, so assign one to ordinary parameter first.
19313 func_stripname_result=${3}
19314 func_stripname_result=${func_stripname_result#"${1}"}
19315 func_stripname_result=${func_stripname_result%"${2}"}
19316 }
19317
19318 # func_opt_split
19319 func_opt_split ()
19320 {
19321 func_opt_split_opt=${1%%=*}
19322 func_opt_split_arg=${1#*=}
19323 }
19324
19325 # func_lo2o object
19326 func_lo2o ()
19327 {
19328 case ${1} in
19329 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19330 *) func_lo2o_result=${1} ;;
19331 esac
19332 }
19333
19334 # func_xform libobj-or-source
19335 func_xform ()
19336 {
19337 func_xform_result=${1%.*}.lo
19338 }
19339
19340 # func_arith arithmetic-term...
19341 func_arith ()
19342 {
19343 func_arith_result=$(( $* ))
19344 }
19345
19346 # func_len string
19347 # STRING may not start with a hyphen.
19348 func_len ()
19349 {
19350 func_len_result=${#1}
19351 }
19352
19353 _LT_EOF
19354 ;;
19355 *) # Bourne compatible functions.
19356 cat << \_LT_EOF >> "$cfgfile"
19357
19358 # func_dirname file append nondir_replacement
19359 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19360 # otherwise set result to NONDIR_REPLACEMENT.
19361 func_dirname ()
19362 {
19363 # Extract subdirectory from the argument.
19364 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19365 if test "X$func_dirname_result" = "X${1}"; then
19366 func_dirname_result="${3}"
19367 else
19368 func_dirname_result="$func_dirname_result${2}"
19369 fi
19370 }
19371
19372 # func_basename file
19373 func_basename ()
19374 {
19375 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19376 }
19377
19378
19379 # func_stripname prefix suffix name
19380 # strip PREFIX and SUFFIX off of NAME.
19381 # PREFIX and SUFFIX must not contain globbing or regex special
19382 # characters, hashes, percent signs, but SUFFIX may contain a leading
19383 # dot (in which case that matches only a dot).
19384 # func_strip_suffix prefix name
19385 func_stripname ()
19386 {
19387 case ${2} in
19388 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19389 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19390 esac
19391 }
19392
19393 # sed scripts:
19394 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19395 my_sed_long_arg='1s/^-[^=]*=//'
19396
19397 # func_opt_split
19398 func_opt_split ()
19399 {
19400 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19401 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19402 }
19403
19404 # func_lo2o object
19405 func_lo2o ()
19406 {
19407 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19408 }
19409
19410 # func_xform libobj-or-source
19411 func_xform ()
19412 {
19413 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19414 }
19415
19416 # func_arith arithmetic-term...
19417 func_arith ()
19418 {
19419 func_arith_result=`expr "$@"`
19420 }
19421
19422 # func_len string
19423 # STRING may not start with a hyphen.
19424 func_len ()
19425 {
19426 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19427 }
19428
19429 _LT_EOF
19430 esac
19431
19432 case $lt_shell_append in
19433 yes)
19434 cat << \_LT_EOF >> "$cfgfile"
19435
19436 # func_append var value
19437 # Append VALUE to the end of shell variable VAR.
19438 func_append ()
19439 {
19440 eval "$1+=\$2"
19441 }
19442 _LT_EOF
19443 ;;
19444 *)
19445 cat << \_LT_EOF >> "$cfgfile"
19446
19447 # func_append var value
19448 # Append VALUE to the end of shell variable VAR.
19449 func_append ()
19450 {
19451 eval "$1=\$$1\$2"
19452 }
19453
19454 _LT_EOF
19455 ;;
19456 esac
19457
19458
19459 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19460 || (rm -f "$cfgfile"; exit 1)
19461
19462 mv -f "$cfgfile" "$ofile" ||
19463 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19464 chmod +x "$ofile"
19465
19466
19467 cat <<_LT_EOF >> "$ofile"
19468
19469 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19470
19471 # The linker used to build libraries.
19472 LD=$lt_LD_CXX
19473
19474 # How to create reloadable object files.
19475 reload_flag=$lt_reload_flag_CXX
19476 reload_cmds=$lt_reload_cmds_CXX
19477
19478 # Commands used to build an old-style archive.
19479 old_archive_cmds=$lt_old_archive_cmds_CXX
19480
19481 # A language specific compiler.
19482 CC=$lt_compiler_CXX
19483
19484 # Is the compiler the GNU compiler?
19485 with_gcc=$GCC_CXX
19486
19487 # Compiler flag to turn off builtin functions.
19488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19489
19490 # How to pass a linker flag through the compiler.
19491 wl=$lt_lt_prog_compiler_wl_CXX
19492
19493 # Additional compiler flags for building library objects.
19494 pic_flag=$lt_lt_prog_compiler_pic_CXX
19495
19496 # Compiler flag to prevent dynamic linking.
19497 link_static_flag=$lt_lt_prog_compiler_static_CXX
19498
19499 # Does compiler simultaneously support -c and -o options?
19500 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19501
19502 # Whether or not to add -lc for building shared libraries.
19503 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19504
19505 # Whether or not to disallow shared libs when runtime libs are static.
19506 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19507
19508 # Compiler flag to allow reflexive dlopens.
19509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19510
19511 # Compiler flag to generate shared objects directly from archives.
19512 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19513
19514 # Whether the compiler copes with passing no objects directly.
19515 compiler_needs_object=$lt_compiler_needs_object_CXX
19516
19517 # Create an old-style archive from a shared archive.
19518 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19519
19520 # Create a temporary old-style archive to link instead of a shared archive.
19521 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19522
19523 # Commands used to build a shared archive.
19524 archive_cmds=$lt_archive_cmds_CXX
19525 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19526
19527 # Commands used to build a loadable module if different from building
19528 # a shared archive.
19529 module_cmds=$lt_module_cmds_CXX
19530 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19531
19532 # Whether we are building with GNU ld or not.
19533 with_gnu_ld=$lt_with_gnu_ld_CXX
19534
19535 # Flag that allows shared libraries with undefined symbols to be built.
19536 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19537
19538 # Flag that enforces no undefined symbols.
19539 no_undefined_flag=$lt_no_undefined_flag_CXX
19540
19541 # Flag to hardcode \$libdir into a binary during linking.
19542 # This must work even if \$libdir does not exist
19543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19544
19545 # If ld is used when linking, flag to hardcode \$libdir into a binary
19546 # during linking. This must work even if \$libdir does not exist.
19547 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19548
19549 # Whether we need a single "-rpath" flag with a separated argument.
19550 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19551
19552 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19553 # DIR into the resulting binary.
19554 hardcode_direct=$hardcode_direct_CXX
19555
19556 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19557 # DIR into the resulting binary and the resulting library dependency is
19558 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19559 # library is relocated.
19560 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19561
19562 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19563 # into the resulting binary.
19564 hardcode_minus_L=$hardcode_minus_L_CXX
19565
19566 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19567 # into the resulting binary.
19568 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19569
19570 # Set to "yes" if building a shared library automatically hardcodes DIR
19571 # into the library and all subsequent libraries and executables linked
19572 # against it.
19573 hardcode_automatic=$hardcode_automatic_CXX
19574
19575 # Set to yes if linker adds runtime paths of dependent libraries
19576 # to runtime path list.
19577 inherit_rpath=$inherit_rpath_CXX
19578
19579 # Whether libtool must link a program against all its dependency libraries.
19580 link_all_deplibs=$link_all_deplibs_CXX
19581
19582 # Fix the shell variable \$srcfile for the compiler.
19583 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19584
19585 # Set to "yes" if exported symbols are required.
19586 always_export_symbols=$always_export_symbols_CXX
19587
19588 # The commands to list exported symbols.
19589 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19590
19591 # Symbols that should not be listed in the preloaded symbols.
19592 exclude_expsyms=$lt_exclude_expsyms_CXX
19593
19594 # Symbols that must always be exported.
19595 include_expsyms=$lt_include_expsyms_CXX
19596
19597 # Commands necessary for linking programs (against libraries) with templates.
19598 prelink_cmds=$lt_prelink_cmds_CXX
19599
19600 # Specify filename containing input files.
19601 file_list_spec=$lt_file_list_spec_CXX
19602
19603 # How to hardcode a shared library path into an executable.
19604 hardcode_action=$hardcode_action_CXX
19605
19606 # The directories searched by this compiler when creating a shared library.
19607 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19608
19609 # Dependencies to place before and after the objects being linked to
19610 # create a shared library.
19611 predep_objects=$lt_predep_objects_CXX
19612 postdep_objects=$lt_postdep_objects_CXX
19613 predeps=$lt_predeps_CXX
19614 postdeps=$lt_postdeps_CXX
19615
19616 # The library search path used internally by the compiler when linking
19617 # a shared library.
19618 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19619
19620 # ### END LIBTOOL TAG CONFIG: CXX
19621 _LT_EOF
19622
19623 ;;
19624 "default-1":C)
19625 for ac_file in $CONFIG_FILES; do
19626 # Support "outfile[:infile[:infile...]]"
19627 case "$ac_file" in
19628 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19629 esac
19630 # PO directories have a Makefile.in generated from Makefile.in.in.
19631 case "$ac_file" in */Makefile.in)
19632 # Adjust a relative srcdir.
19633 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19634 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19635 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19636 # In autoconf-2.13 it is called $ac_given_srcdir.
19637 # In autoconf-2.50 it is called $srcdir.
19638 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19639 case "$ac_given_srcdir" in
19640 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19641 /*) top_srcdir="$ac_given_srcdir" ;;
19642 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19643 esac
19644 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19645 rm -f "$ac_dir/POTFILES"
19646 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19647 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19648 POMAKEFILEDEPS="POTFILES.in"
19649 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19650 # on $ac_dir but don't depend on user-specified configuration
19651 # parameters.
19652 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19653 # The LINGUAS file contains the set of available languages.
19654 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19655 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19656 fi
19657 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19658 # Hide the ALL_LINGUAS assigment from automake.
19659 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19660 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19661 else
19662 # The set of available languages was given in configure.in.
19663 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19664 fi
19665 case "$ac_given_srcdir" in
19666 .) srcdirpre= ;;
19667 *) srcdirpre='$(srcdir)/' ;;
19668 esac
19669 POFILES=
19670 GMOFILES=
19671 UPDATEPOFILES=
19672 DUMMYPOFILES=
19673 for lang in $ALL_LINGUAS; do
19674 POFILES="$POFILES $srcdirpre$lang.po"
19675 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19676 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19677 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19678 done
19679 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19680 # environment variable.
19681 INST_LINGUAS=
19682 if test -n "$ALL_LINGUAS"; then
19683 for presentlang in $ALL_LINGUAS; do
19684 useit=no
19685 if test "%UNSET%" != "$LINGUAS"; then
19686 desiredlanguages="$LINGUAS"
19687 else
19688 desiredlanguages="$ALL_LINGUAS"
19689 fi
19690 for desiredlang in $desiredlanguages; do
19691 # Use the presentlang catalog if desiredlang is
19692 # a. equal to presentlang, or
19693 # b. a variant of presentlang (because in this case,
19694 # presentlang can be used as a fallback for messages
19695 # which are not translated in the desiredlang catalog).
19696 case "$desiredlang" in
19697 "$presentlang"*) useit=yes;;
19698 esac
19699 done
19700 if test $useit = yes; then
19701 INST_LINGUAS="$INST_LINGUAS $presentlang"
19702 fi
19703 done
19704 fi
19705 CATALOGS=
19706 if test -n "$INST_LINGUAS"; then
19707 for lang in $INST_LINGUAS; do
19708 CATALOGS="$CATALOGS $lang.gmo"
19709 done
19710 fi
19711 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19712 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"
19713 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19714 if test -f "$f"; then
19715 case "$f" in
19716 *.orig | *.bak | *~) ;;
19717 *) cat "$f" >> "$ac_dir/Makefile" ;;
19718 esac
19719 fi
19720 done
19721 fi
19722 ;;
19723 esac
19724 done ;;
19725
19726 esac
19727 done # for ac_tag
19728
19729
19730 as_fn_exit 0
19731 _ACEOF
19732 ac_clean_files=$ac_clean_files_save
19733
19734 test $ac_write_fail = 0 ||
19735 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19736
19737
19738 # configure is writing to config.log, and then calls config.status.
19739 # config.status does its own redirection, appending to config.log.
19740 # Unfortunately, on DOS this fails, as config.log is still kept open
19741 # by configure, so config.status won't be able to write to it; its
19742 # output is simply discarded. So we exec the FD to /dev/null,
19743 # effectively closing config.log, so it can be properly (re)opened and
19744 # appended to by config.status. When coming back to configure, we
19745 # need to make the FD available again.
19746 if test "$no_create" != yes; then
19747 ac_cs_success=:
19748 ac_config_status_args=
19749 test "$silent" = yes &&
19750 ac_config_status_args="$ac_config_status_args --quiet"
19751 exec 5>/dev/null
19752 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19753 exec 5>>config.log
19754 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19755 # would make configure fail if this is the last instruction.
19756 $ac_cs_success || as_fn_exit $?
19757 fi
19758 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19760 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19761 fi
19762
This page took 0.807368 seconds and 4 git commands to generate.