Add support for .extCondCode, .extCoreRegister and .extAuxRegister.
[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 for ld 2.26.51.
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='ld'
558 PACKAGE_TARNAME='ld'
559 PACKAGE_VERSION='2.26.51'
560 PACKAGE_STRING='ld 2.26.51'
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 elf_plt_unwind_list_options
612 elf_shlib_list_options
613 elf_list_options
614 STRINGIFY
615 enable_initfini_array
616 ENABLE_PLUGINS_FALSE
617 ENABLE_PLUGINS_TRUE
618 NATIVE_LIB_DIRS
619 HOSTING_SLIBS
620 HOSTING_LIBS
621 HOSTING_SCRT0
622 HOSTING_CRT0
623 HDEFINES
624 do_compare
625 GENINSRC_NEVER_FALSE
626 GENINSRC_NEVER_TRUE
627 LEXLIB
628 LEX_OUTPUT_ROOT
629 LEX
630 YFLAGS
631 YACC
632 MSGMERGE
633 MSGFMT
634 MKINSTALLDIRS
635 CATOBJEXT
636 GENCAT
637 INSTOBJEXT
638 DATADIRNAME
639 CATALOGS
640 POSUB
641 GMSGFMT
642 XGETTEXT
643 INCINTL
644 LIBINTL_DEP
645 LIBINTL
646 USE_NLS
647 WARN_WRITE_STRINGS
648 NO_WERROR
649 WARN_CFLAGS
650 installed_linker
651 install_as_default
652 TARGET_SYSTEM_ROOT_DEFINE
653 TARGET_SYSTEM_ROOT
654 use_sysroot
655 CXXCPP
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 RANLIB
662 AR
663 OBJDUMP
664 LN_S
665 NM
666 ac_ct_DUMPBIN
667 DUMPBIN
668 LD
669 FGREP
670 SED
671 LIBTOOL
672 EGREP
673 CPP
674 GREP
675 am__fastdepCXX_FALSE
676 am__fastdepCXX_TRUE
677 CXXDEPMODE
678 ac_ct_CXX
679 CXXFLAGS
680 CXX
681 MAINT
682 MAINTAINER_MODE_FALSE
683 MAINTAINER_MODE_TRUE
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__quote
691 am__include
692 DEPDIR
693 am__untar
694 am__tar
695 AMTAR
696 am__leading_dot
697 SET_MAKE
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 MAKEINFO
705 AUTOHEADER
706 AUTOMAKE
707 AUTOCONF
708 ACLOCAL
709 VERSION
710 PACKAGE
711 CYGPATH_W
712 am__isrc
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 target_os
724 target_vendor
725 target_cpu
726 target
727 host_os
728 host_vendor
729 host_cpu
730 host
731 build_os
732 build_vendor
733 build_cpu
734 build
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 localstatedir
755 sharedstatedir
756 sysconfdir
757 datadir
758 datarootdir
759 libexecdir
760 sbindir
761 bindir
762 program_transform_name
763 prefix
764 exec_prefix
765 PACKAGE_URL
766 PACKAGE_BUGREPORT
767 PACKAGE_STRING
768 PACKAGE_VERSION
769 PACKAGE_TARNAME
770 PACKAGE_NAME
771 PATH_SEPARATOR
772 SHELL'
773 ac_subst_files='TDIRS'
774 ac_user_opts='
775 enable_option_checking
776 enable_dependency_tracking
777 enable_maintainer_mode
778 enable_shared
779 enable_static
780 with_pic
781 enable_fast_install
782 with_gnu_ld
783 enable_libtool_lock
784 enable_plugins
785 enable_largefile
786 with_lib_path
787 enable_targets
788 enable_64_bit_bfd
789 with_sysroot
790 enable_gold
791 enable_got
792 enable_compressed_debug_sections
793 enable_werror
794 enable_build_warnings
795 enable_nls
796 enable_initfini_array
797 '
798 ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 LIBS
805 CPPFLAGS
806 CXX
807 CXXFLAGS
808 CCC
809 CPP
810 CXXCPP
811 YACC
812 YFLAGS'
813
814
815 # Initialize some variables set by options.
816 ac_init_help=
817 ac_init_version=false
818 ac_unrecognized_opts=
819 ac_unrecognized_sep=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
836
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
862
863 ac_prev=
864 ac_dashdash=
865 for ac_option
866 do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
872 fi
873
874 case $ac_option in
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *) ac_optarg=yes ;;
877 esac
878
879 # Accept the important Cygnus configure options, so we can diagnose typos.
880
881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
889
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
904
905 -datadir | --datadir | --datadi | --datad)
906 ac_prev=datadir ;;
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
909
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
942
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=\$ac_optarg ;;
958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
978
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
983
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1013
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1087
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=\$ac_optarg ;;
1162
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
1178
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1182
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1189
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1196
1197 -*) as_fn_error "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information."
1199 ;;
1200
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1207 esac
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1210
1211 *)
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1217 ;;
1218
1219 esac
1220 done
1221
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error "missing argument to $ac_option"
1225 fi
1226
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
1230 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 esac
1233 fi
1234
1235 # Check all directory arguments for consistency.
1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
1240 do
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
1249 case $ac_val in
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 esac
1253 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1255
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1262
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1268 If a cross compiler is detected then cross compile mode will be used." >&2
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1271 fi
1272 fi
1273
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277 test "$silent" = yes && exec 6>/dev/null
1278
1279
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error "pwd does not report name of working directory"
1286
1287
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\).*/{
1311 s//\1/
1312 q
1313 }
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1318 fi
1319 else
1320 ac_srcdir_defaulted=no
1321 fi
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1325 fi
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1329 pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1333 fi
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1346
1347 #
1348 # Report the --help message.
1349 #
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
1354 \`configure' configures ld 2.26.51 to adapt to many kinds of systems.
1355
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1360
1361 Defaults for the options are specified in brackets.
1362
1363 Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 [PREFIX]
1379
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1384
1385 For better control, use the options below.
1386
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1407 _ACEOF
1408
1409 cat <<\_ACEOF
1410
1411 Program names:
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1415
1416 System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 --target=TARGET configure for building compilers for TARGET [HOST]
1420 _ACEOF
1421 fi
1422
1423 if test -n "$ac_init_help"; then
1424 case $ac_init_help in
1425 short | recursive ) echo "Configuration of ld 2.26.51:";;
1426 esac
1427 cat <<\_ACEOF
1428
1429 Optional Features:
1430 --disable-option-checking ignore unrecognized --enable/--with options
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --disable-dependency-tracking speeds up one-time build
1434 --enable-dependency-tracking do not reject slow dependency extractors
1435 --enable-maintainer-mode enable make rules and dependencies not useful
1436 (and sometimes confusing) to the casual installer
1437 --enable-shared[=PKGS] build shared libraries [default=yes]
1438 --enable-static[=PKGS] build static libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --disable-libtool-lock avoid locking (might break parallel builds)
1442 --enable-plugins Enable support for plugins
1443 --disable-largefile omit support for large files
1444 --enable-targets alternative target configurations
1445 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1446 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1447 --enable-got=<type> GOT handling scheme (target, single, negative,
1448 multigot)
1449 --enable-compressed-debug-sections={all,ld,none}
1450 compress debug sections by default]
1451 --enable-werror treat compile warnings as errors
1452 --enable-build-warnings enable build-time compiler warnings
1453 --disable-nls do not use Native Language Support
1454 --disable-initfini-array do not use .init_array/.fini_array sections
1455
1456 Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-pic try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-lib-path=dir1:dir2... set default LIB_PATH
1463 --with-sysroot=DIR Search for usr/lib et al within DIR.
1464
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
1475 CPP C preprocessor
1476 CXXCPP C++ preprocessor
1477 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1478 the first program found out of: `bison -y', `byacc', `yacc'.
1479 YFLAGS The list of arguments that will be passed by default to $YACC.
1480 This script will default YFLAGS to the empty string to avoid a
1481 default value of `-d' given by some make applications.
1482
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1485
1486 Report bugs to the package provider.
1487 _ACEOF
1488 ac_status=$?
1489 fi
1490
1491 if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 continue
1497 ac_builddir=.
1498
1499 case "$ac_dir" in
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *)
1502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1514
1515 case $srcdir in
1516 .) # We are building in place.
1517 ac_srcdir=.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 esac
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1539 else
1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1543 done
1544 fi
1545
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1548 cat <<\_ACEOF
1549 ld configure 2.26.51
1550 generated by GNU Autoconf 2.64
1551
1552 Copyright (C) 2009 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1555 _ACEOF
1556 exit
1557 fi
1558
1559 ## ------------------------ ##
1560 ## Autoconf initialization. ##
1561 ## ------------------------ ##
1562
1563 # ac_fn_c_try_compile LINENO
1564 # --------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_compile ()
1567 {
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext
1570 if { { ac_try="$ac_compile"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.$ac_objext; then :
1589 ac_retval=0
1590 else
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1593
1594 ac_retval=1
1595 fi
1596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1597 return $ac_retval
1598
1599 } # ac_fn_c_try_compile
1600
1601 # ac_fn_c_try_link LINENO
1602 # -----------------------
1603 # Try to link conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_link ()
1605 {
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext conftest$ac_exeext
1608 if { { ac_try="$ac_link"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_link") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1621 fi
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest$ac_exeext && {
1627 test "$cross_compiling" = yes ||
1628 $as_test_x conftest$ac_exeext
1629 }; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636 fi
1637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639 # interfere with the next link command; also delete a directory that is
1640 # left behind by Apple's compiler. We do this before executing the actions.
1641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 return $ac_retval
1644
1645 } # ac_fn_c_try_link
1646
1647 # ac_fn_cxx_try_compile LINENO
1648 # ----------------------------
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_cxx_try_compile ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext
1654 if { { ac_try="$ac_compile"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_compile") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_cxx_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest.$ac_objext; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679 fi
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 return $ac_retval
1682
1683 } # ac_fn_cxx_try_compile
1684
1685 # ac_fn_c_try_cpp LINENO
1686 # ----------------------
1687 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_cpp ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_cpp conftest.$ac_ext"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } >/dev/null && {
1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716 fi
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 return $ac_retval
1719
1720 } # ac_fn_c_try_cpp
1721
1722 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1723 # -------------------------------------------------------
1724 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1725 # the include files in INCLUDES and setting the cache variable VAR
1726 # accordingly.
1727 ac_fn_c_check_header_mongrel ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 $as_echo_n "(cached) " >&6
1735 fi
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 else
1740 # Is the header compilable?
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1742 $as_echo_n "checking $2 usability... " >&6; }
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $4
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 ac_header_compiler=yes
1750 else
1751 ac_header_compiler=no
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1755 $as_echo "$ac_header_compiler" >&6; }
1756
1757 # Is the header present?
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1759 $as_echo_n "checking $2 presence... " >&6; }
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_cpp "$LINENO"; then :
1765 ac_header_preproc=yes
1766 else
1767 ac_header_preproc=no
1768 fi
1769 rm -f conftest.err conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1771 $as_echo "$ac_header_preproc" >&6; }
1772
1773 # So? What about this header?
1774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1775 yes:no: )
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1777 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 ;;
1781 no:yes:* )
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1783 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1785 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1787 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1789 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 ;;
1793 esac
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 eval "$3=\$ac_header_compiler"
1800 fi
1801 eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 fi
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
1807 } # ac_fn_c_check_header_mongrel
1808
1809 # ac_fn_c_try_run LINENO
1810 # ----------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812 # that executables *can* be run.
1813 ac_fn_c_try_run ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_link"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>&5
1824 ac_status=$?
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827 { { case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_try") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; }; }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: program exited with status $ac_status" >&5
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=$ac_status
1844 fi
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 return $ac_retval
1848
1849 } # ac_fn_c_try_run
1850
1851 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1852 # -------------------------------------------------------
1853 # Tests whether HEADER exists and can be compiled using the include files in
1854 # INCLUDES, setting the cache variable VAR accordingly.
1855 ac_fn_c_check_header_compile ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1862 else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 $4
1866 #include <$2>
1867 _ACEOF
1868 if ac_fn_c_try_compile "$LINENO"; then :
1869 eval "$3=yes"
1870 else
1871 eval "$3=no"
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 fi
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879
1880 } # ac_fn_c_check_header_compile
1881
1882 # ac_fn_c_check_func LINENO FUNC VAR
1883 # ----------------------------------
1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1885 ac_fn_c_check_func ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897 #define $2 innocuous_$2
1898
1899 /* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1903
1904 #ifdef __STDC__
1905 # include <limits.h>
1906 #else
1907 # include <assert.h>
1908 #endif
1909
1910 #undef $2
1911
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1915 #ifdef __cplusplus
1916 extern "C"
1917 #endif
1918 char $2 ();
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1923 choke me
1924 #endif
1925
1926 int
1927 main ()
1928 {
1929 return $2 ();
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_link "$LINENO"; then :
1935 eval "$3=yes"
1936 else
1937 eval "$3=no"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946
1947 } # ac_fn_c_check_func
1948
1949 # ac_fn_cxx_try_cpp LINENO
1950 # ------------------------
1951 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_cxx_try_cpp ()
1953 {
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if { { ac_try="$ac_cpp conftest.$ac_ext"
1956 case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1968 fi
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } >/dev/null && {
1971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1973 }; then :
1974 ac_retval=0
1975 else
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1
1980 fi
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982 return $ac_retval
1983
1984 } # ac_fn_cxx_try_cpp
1985
1986 # ac_fn_cxx_try_link LINENO
1987 # -------------------------
1988 # Try to link conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_link ()
1990 {
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext conftest$ac_exeext
1993 if { { ac_try="$ac_link"
1994 case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_link") 2>conftest.err
2001 ac_status=$?
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2006 fi
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest$ac_exeext && {
2012 test "$cross_compiling" = yes ||
2013 $as_test_x conftest$ac_exeext
2014 }; then :
2015 ac_retval=0
2016 else
2017 $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2019
2020 ac_retval=1
2021 fi
2022 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024 # interfere with the next link command; also delete a directory that is
2025 # left behind by Apple's compiler. We do this before executing the actions.
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028 return $ac_retval
2029
2030 } # ac_fn_cxx_try_link
2031
2032 # ac_fn_c_check_decl LINENO SYMBOL VAR
2033 # ------------------------------------
2034 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2035 ac_fn_c_check_decl ()
2036 {
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 as_decl_name=`echo $2|sed 's/ *(.*//'`
2039 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2041 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2042 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2043 $as_echo_n "(cached) " >&6
2044 else
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2047 $4
2048 int
2049 main ()
2050 {
2051 #ifndef $as_decl_name
2052 #ifdef __cplusplus
2053 (void) $as_decl_use;
2054 #else
2055 (void) $as_decl_name;
2056 #endif
2057 #endif
2058
2059 ;
2060 return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 eval "$3=yes"
2065 else
2066 eval "$3=no"
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 fi
2070 eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074
2075 } # ac_fn_c_check_decl
2076
2077 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2078 # --------------------------------------------
2079 # Tries to find the compile-time value of EXPR in a program that includes
2080 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2081 # computed
2082 ac_fn_c_compute_int ()
2083 {
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 if test "$cross_compiling" = yes; then
2086 # Depending upon the size, compute the lo and hi bounds.
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 $4
2090 int
2091 main ()
2092 {
2093 static int test_array [1 - 2 * !(($2) >= 0)];
2094 test_array [0] = 0
2095
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_lo=0 ac_mid=0
2102 while :; do
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $4
2106 int
2107 main ()
2108 {
2109 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2110 test_array [0] = 0
2111
2112 ;
2113 return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_hi=$ac_mid; break
2118 else
2119 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2120 if test $ac_lo -le $ac_mid; then
2121 ac_lo= ac_hi=
2122 break
2123 fi
2124 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 done
2128 else
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 $4
2132 int
2133 main ()
2134 {
2135 static int test_array [1 - 2 * !(($2) < 0)];
2136 test_array [0] = 0
2137
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_hi=-1 ac_mid=-1
2144 while :; do
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 $4
2148 int
2149 main ()
2150 {
2151 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2152 test_array [0] = 0
2153
2154 ;
2155 return 0;
2156 }
2157 _ACEOF
2158 if ac_fn_c_try_compile "$LINENO"; then :
2159 ac_lo=$ac_mid; break
2160 else
2161 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2162 if test $ac_mid -le $ac_hi; then
2163 ac_lo= ac_hi=
2164 break
2165 fi
2166 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 done
2170 else
2171 ac_lo= ac_hi=
2172 fi
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 # Binary search between lo and hi bounds.
2177 while test "x$ac_lo" != "x$ac_hi"; do
2178 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2181 $4
2182 int
2183 main ()
2184 {
2185 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2186 test_array [0] = 0
2187
2188 ;
2189 return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_hi=$ac_mid
2194 else
2195 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2196 fi
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 done
2199 case $ac_lo in #((
2200 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2201 '') ac_retval=1 ;;
2202 esac
2203 else
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2206 $4
2207 static long int longval () { return $2; }
2208 static unsigned long int ulongval () { return $2; }
2209 #include <stdio.h>
2210 #include <stdlib.h>
2211 int
2212 main ()
2213 {
2214
2215 FILE *f = fopen ("conftest.val", "w");
2216 if (! f)
2217 return 1;
2218 if (($2) < 0)
2219 {
2220 long int i = longval ();
2221 if (i != ($2))
2222 return 1;
2223 fprintf (f, "%ld", i);
2224 }
2225 else
2226 {
2227 unsigned long int i = ulongval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%lu", i);
2231 }
2232 /* Do not output a trailing newline, as this causes \r\n confusion
2233 on some platforms. */
2234 return ferror (f) || fclose (f) != 0;
2235
2236 ;
2237 return 0;
2238 }
2239 _ACEOF
2240 if ac_fn_c_try_run "$LINENO"; then :
2241 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2242 else
2243 ac_retval=1
2244 fi
2245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2246 conftest.$ac_objext conftest.beam conftest.$ac_ext
2247 rm -f conftest.val
2248
2249 fi
2250 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251 return $ac_retval
2252
2253 } # ac_fn_c_compute_int
2254 cat >config.log <<_ACEOF
2255 This file contains any messages produced by compilers while
2256 running configure, to aid debugging if configure makes a mistake.
2257
2258 It was created by ld $as_me 2.26.51, which was
2259 generated by GNU Autoconf 2.64. Invocation command line was
2260
2261 $ $0 $@
2262
2263 _ACEOF
2264 exec 5>>config.log
2265 {
2266 cat <<_ASUNAME
2267 ## --------- ##
2268 ## Platform. ##
2269 ## --------- ##
2270
2271 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2272 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2273 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2274 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2275 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2276
2277 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2278 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2279
2280 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2281 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2282 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2283 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2284 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2285 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2286 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2287
2288 _ASUNAME
2289
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 $as_echo "PATH: $as_dir"
2296 done
2297 IFS=$as_save_IFS
2298
2299 } >&5
2300
2301 cat >&5 <<_ACEOF
2302
2303
2304 ## ----------- ##
2305 ## Core tests. ##
2306 ## ----------- ##
2307
2308 _ACEOF
2309
2310
2311 # Keep a trace of the command line.
2312 # Strip out --no-create and --no-recursion so they do not pile up.
2313 # Strip out --silent because we don't want to record it for future runs.
2314 # Also quote any args containing shell meta-characters.
2315 # Make two passes to allow for proper duplicate-argument suppression.
2316 ac_configure_args=
2317 ac_configure_args0=
2318 ac_configure_args1=
2319 ac_must_keep_next=false
2320 for ac_pass in 1 2
2321 do
2322 for ac_arg
2323 do
2324 case $ac_arg in
2325 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2327 | -silent | --silent | --silen | --sile | --sil)
2328 continue ;;
2329 *\'*)
2330 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2331 esac
2332 case $ac_pass in
2333 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2334 2)
2335 as_fn_append ac_configure_args1 " '$ac_arg'"
2336 if test $ac_must_keep_next = true; then
2337 ac_must_keep_next=false # Got value, back to normal.
2338 else
2339 case $ac_arg in
2340 *=* | --config-cache | -C | -disable-* | --disable-* \
2341 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2342 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2343 | -with-* | --with-* | -without-* | --without-* | --x)
2344 case "$ac_configure_args0 " in
2345 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2346 esac
2347 ;;
2348 -* ) ac_must_keep_next=true ;;
2349 esac
2350 fi
2351 as_fn_append ac_configure_args " '$ac_arg'"
2352 ;;
2353 esac
2354 done
2355 done
2356 { ac_configure_args0=; unset ac_configure_args0;}
2357 { ac_configure_args1=; unset ac_configure_args1;}
2358
2359 # When interrupted or exit'd, cleanup temporary files, and complete
2360 # config.log. We remove comments because anyway the quotes in there
2361 # would cause problems or look ugly.
2362 # WARNING: Use '\'' to represent an apostrophe within the trap.
2363 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2364 trap 'exit_status=$?
2365 # Save into config.log some information that might help in debugging.
2366 {
2367 echo
2368
2369 cat <<\_ASBOX
2370 ## ---------------- ##
2371 ## Cache variables. ##
2372 ## ---------------- ##
2373 _ASBOX
2374 echo
2375 # The following way of writing the cache mishandles newlines in values,
2376 (
2377 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2378 eval ac_val=\$$ac_var
2379 case $ac_val in #(
2380 *${as_nl}*)
2381 case $ac_var in #(
2382 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2383 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2384 esac
2385 case $ac_var in #(
2386 _ | IFS | as_nl) ;; #(
2387 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2388 *) { eval $ac_var=; unset $ac_var;} ;;
2389 esac ;;
2390 esac
2391 done
2392 (set) 2>&1 |
2393 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2394 *${as_nl}ac_space=\ *)
2395 sed -n \
2396 "s/'\''/'\''\\\\'\'''\''/g;
2397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2398 ;; #(
2399 *)
2400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2401 ;;
2402 esac |
2403 sort
2404 )
2405 echo
2406
2407 cat <<\_ASBOX
2408 ## ----------------- ##
2409 ## Output variables. ##
2410 ## ----------------- ##
2411 _ASBOX
2412 echo
2413 for ac_var in $ac_subst_vars
2414 do
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
2420 done | sort
2421 echo
2422
2423 if test -n "$ac_subst_files"; then
2424 cat <<\_ASBOX
2425 ## ------------------- ##
2426 ## File substitutions. ##
2427 ## ------------------- ##
2428 _ASBOX
2429 echo
2430 for ac_var in $ac_subst_files
2431 do
2432 eval ac_val=\$$ac_var
2433 case $ac_val in
2434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2435 esac
2436 $as_echo "$ac_var='\''$ac_val'\''"
2437 done | sort
2438 echo
2439 fi
2440
2441 if test -s confdefs.h; then
2442 cat <<\_ASBOX
2443 ## ----------- ##
2444 ## confdefs.h. ##
2445 ## ----------- ##
2446 _ASBOX
2447 echo
2448 cat confdefs.h
2449 echo
2450 fi
2451 test "$ac_signal" != 0 &&
2452 $as_echo "$as_me: caught signal $ac_signal"
2453 $as_echo "$as_me: exit $exit_status"
2454 } >&5
2455 rm -f core *.core core.conftest.* &&
2456 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2457 exit $exit_status
2458 ' 0
2459 for ac_signal in 1 2 13 15; do
2460 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2461 done
2462 ac_signal=0
2463
2464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2465 rm -f -r conftest* confdefs.h
2466
2467 $as_echo "/* confdefs.h */" > confdefs.h
2468
2469 # Predefined preprocessor variables.
2470
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_NAME "$PACKAGE_NAME"
2473 _ACEOF
2474
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2477 _ACEOF
2478
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2481 _ACEOF
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_STRING "$PACKAGE_STRING"
2485 _ACEOF
2486
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2489 _ACEOF
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_URL "$PACKAGE_URL"
2493 _ACEOF
2494
2495
2496 # Let the site file select an alternate cache file if it wants to.
2497 # Prefer an explicitly selected file to automatically selected ones.
2498 ac_site_file1=NONE
2499 ac_site_file2=NONE
2500 if test -n "$CONFIG_SITE"; then
2501 ac_site_file1=$CONFIG_SITE
2502 elif test "x$prefix" != xNONE; then
2503 ac_site_file1=$prefix/share/config.site
2504 ac_site_file2=$prefix/etc/config.site
2505 else
2506 ac_site_file1=$ac_default_prefix/share/config.site
2507 ac_site_file2=$ac_default_prefix/etc/config.site
2508 fi
2509 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2510 do
2511 test "x$ac_site_file" = xNONE && continue
2512 if test -r "$ac_site_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515 sed 's/^/| /' "$ac_site_file" >&5
2516 . "$ac_site_file"
2517 fi
2518 done
2519
2520 if test -r "$cache_file"; then
2521 # Some versions of bash will fail to source /dev/null (special
2522 # files actually), so we avoid doing that.
2523 if test -f "$cache_file"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2525 $as_echo "$as_me: loading cache $cache_file" >&6;}
2526 case $cache_file in
2527 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2528 *) . "./$cache_file";;
2529 esac
2530 fi
2531 else
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2533 $as_echo "$as_me: creating cache $cache_file" >&6;}
2534 >$cache_file
2535 fi
2536
2537 # Check that the precious variables saved in the cache have kept the same
2538 # value.
2539 ac_cache_corrupted=false
2540 for ac_var in $ac_precious_vars; do
2541 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2542 eval ac_new_set=\$ac_env_${ac_var}_set
2543 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2544 eval ac_new_val=\$ac_env_${ac_var}_value
2545 case $ac_old_set,$ac_new_set in
2546 set,)
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2550 ,set)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2554 ,);;
2555 *)
2556 if test "x$ac_old_val" != "x$ac_new_val"; then
2557 # differences in whitespace do not lead to failure.
2558 ac_old_val_w=`echo x $ac_old_val`
2559 ac_new_val_w=`echo x $ac_new_val`
2560 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2562 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2563 ac_cache_corrupted=:
2564 else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2566 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2567 eval $ac_var=\$ac_old_val
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2570 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2572 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2573 fi;;
2574 esac
2575 # Pass precious variables to config.status.
2576 if test "$ac_new_set" = set; then
2577 case $ac_new_val in
2578 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2579 *) ac_arg=$ac_var=$ac_new_val ;;
2580 esac
2581 case " $ac_configure_args " in
2582 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2583 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2584 esac
2585 fi
2586 done
2587 if $ac_cache_corrupted; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2591 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2592 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2593 fi
2594 ## -------------------- ##
2595 ## Main body of script. ##
2596 ## -------------------- ##
2597
2598 ac_ext=c
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603
2604
2605
2606
2607
2608
2609
2610 ac_aux_dir=
2611 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2612 for ac_t in install-sh install.sh shtool; do
2613 if test -f "$ac_dir/$ac_t"; then
2614 ac_aux_dir=$ac_dir
2615 ac_install_sh="$ac_aux_dir/$ac_t -c"
2616 break 2
2617 fi
2618 done
2619 done
2620 if test -z "$ac_aux_dir"; then
2621 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2622 fi
2623
2624 # These three variables are undocumented and unsupported,
2625 # and are intended to be withdrawn in a future Autoconf release.
2626 # They can cause serious problems if a builder's source tree is in a directory
2627 # whose full name contains unusual characters.
2628 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2629 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2630 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2631
2632
2633 # Make sure we can run config.sub.
2634 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2635 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2636
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2638 $as_echo_n "checking build system type... " >&6; }
2639 if test "${ac_cv_build+set}" = set; then :
2640 $as_echo_n "(cached) " >&6
2641 else
2642 ac_build_alias=$build_alias
2643 test "x$ac_build_alias" = x &&
2644 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2645 test "x$ac_build_alias" = x &&
2646 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2647 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2648 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2649
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2652 $as_echo "$ac_cv_build" >&6; }
2653 case $ac_cv_build in
2654 *-*-*) ;;
2655 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2656 esac
2657 build=$ac_cv_build
2658 ac_save_IFS=$IFS; IFS='-'
2659 set x $ac_cv_build
2660 shift
2661 build_cpu=$1
2662 build_vendor=$2
2663 shift; shift
2664 # Remember, the first character of IFS is used to create $*,
2665 # except with old shells:
2666 build_os=$*
2667 IFS=$ac_save_IFS
2668 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2669
2670
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2672 $as_echo_n "checking host system type... " >&6; }
2673 if test "${ac_cv_host+set}" = set; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 if test "x$host_alias" = x; then
2677 ac_cv_host=$ac_cv_build
2678 else
2679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2680 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2681 fi
2682
2683 fi
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2685 $as_echo "$ac_cv_host" >&6; }
2686 case $ac_cv_host in
2687 *-*-*) ;;
2688 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2689 esac
2690 host=$ac_cv_host
2691 ac_save_IFS=$IFS; IFS='-'
2692 set x $ac_cv_host
2693 shift
2694 host_cpu=$1
2695 host_vendor=$2
2696 shift; shift
2697 # Remember, the first character of IFS is used to create $*,
2698 # except with old shells:
2699 host_os=$*
2700 IFS=$ac_save_IFS
2701 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2702
2703
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2705 $as_echo_n "checking target system type... " >&6; }
2706 if test "${ac_cv_target+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test "x$target_alias" = x; then
2710 ac_cv_target=$ac_cv_host
2711 else
2712 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2713 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2714 fi
2715
2716 fi
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2718 $as_echo "$ac_cv_target" >&6; }
2719 case $ac_cv_target in
2720 *-*-*) ;;
2721 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2722 esac
2723 target=$ac_cv_target
2724 ac_save_IFS=$IFS; IFS='-'
2725 set x $ac_cv_target
2726 shift
2727 target_cpu=$1
2728 target_vendor=$2
2729 shift; shift
2730 # Remember, the first character of IFS is used to create $*,
2731 # except with old shells:
2732 target_os=$*
2733 IFS=$ac_save_IFS
2734 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2735
2736
2737 # The aliases save the names the user supplied, while $host etc.
2738 # will get canonicalized.
2739 test -n "$target_alias" &&
2740 test "$program_prefix$program_suffix$program_transform_name" = \
2741 NONENONEs,x,x, &&
2742 program_prefix=${target_alias}-
2743
2744 ac_ext=c
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if test "${ac_cv_prog_CC+set}" = set; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2770 fi
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi
2776 fi
2777 CC=$ac_cv_prog_CC
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2781 else
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2784 fi
2785
2786
2787 fi
2788 if test -z "$ac_cv_prog_CC"; then
2789 ac_ct_CC=$CC
2790 # Extract the first word of "gcc", so it can be a program name with args.
2791 set dummy gcc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test -n "$ac_ct_CC"; then
2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_ac_ct_CC="gcc"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2818 if test -n "$ac_ct_CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2820 $as_echo "$ac_ct_CC" >&6; }
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826 if test "x$ac_ct_CC" = x; then
2827 CC=""
2828 else
2829 case $cross_compiling:$ac_tool_warned in
2830 yes:)
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2833 ac_tool_warned=yes ;;
2834 esac
2835 CC=$ac_ct_CC
2836 fi
2837 else
2838 CC="$ac_cv_prog_CC"
2839 fi
2840
2841 if test -z "$CC"; then
2842 if test -n "$ac_tool_prefix"; then
2843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2844 set dummy ${ac_tool_prefix}cc; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if test "${ac_cv_prog_CC+set}" = set; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_CC="${ac_tool_prefix}cc"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 CC=$ac_cv_prog_CC
2871 if test -n "$CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 $as_echo "$CC" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 fi
2878
2879
2880 fi
2881 fi
2882 if test -z "$CC"; then
2883 # Extract the first word of "cc", so it can be a program name with args.
2884 set dummy cc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if test "${ac_cv_prog_CC+set}" = set; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 ac_prog_rejected=no
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2902 ac_prog_rejected=yes
2903 continue
2904 fi
2905 ac_cv_prog_CC="cc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911 IFS=$as_save_IFS
2912
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy $ac_cv_prog_CC
2916 shift
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2921 shift
2922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2923 fi
2924 fi
2925 fi
2926 fi
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 $as_echo "$CC" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2934 fi
2935
2936
2937 fi
2938 if test -z "$CC"; then
2939 if test -n "$ac_tool_prefix"; then
2940 for ac_prog in cl.exe
2941 do
2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if test "${ac_cv_prog_CC+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979 test -n "$CC" && break
2980 done
2981 fi
2982 if test -z "$CC"; then
2983 ac_ct_CC=$CC
2984 for ac_prog in cl.exe
2985 do
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$ac_ct_CC"; then
2994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003 ac_cv_prog_ac_ct_CC="$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007 done
3008 done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016 $as_echo "$ac_ct_CC" >&6; }
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022
3023 test -n "$ac_ct_CC" && break
3024 done
3025
3026 if test "x$ac_ct_CC" = x; then
3027 CC=""
3028 else
3029 case $cross_compiling:$ac_tool_warned in
3030 yes:)
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033 ac_tool_warned=yes ;;
3034 esac
3035 CC=$ac_ct_CC
3036 fi
3037 fi
3038
3039 fi
3040
3041
3042 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error "no acceptable C compiler found in \$PATH
3045 See \`config.log' for more details." "$LINENO" 5; }
3046
3047 # Provide some information about the compiler.
3048 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3049 set X $ac_compile
3050 ac_compiler=$2
3051 for ac_option in --version -v -V -qversion; do
3052 { { ac_try="$ac_compiler $ac_option >&5"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3060 ac_status=$?
3061 if test -s conftest.err; then
3062 sed '10a\
3063 ... rest of stderr output deleted ...
3064 10q' conftest.err >conftest.er1
3065 cat conftest.er1 >&5
3066 rm -f conftest.er1 conftest.err
3067 fi
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }
3070 done
3071
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3074
3075 int
3076 main ()
3077 {
3078
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 ac_clean_files_save=$ac_clean_files
3084 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3085 # Try to create an executable without -o first, disregard a.out.
3086 # It will help us diagnose broken compilers, and finding out an intuition
3087 # of exeext.
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3089 $as_echo_n "checking for C compiler default output file name... " >&6; }
3090 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3091
3092 # The possible output files:
3093 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3094
3095 ac_rmfiles=
3096 for ac_file in $ac_files
3097 do
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3101 esac
3102 done
3103 rm -f $ac_rmfiles
3104
3105 if { { ac_try="$ac_link_default"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_link_default") 2>&5
3113 ac_status=$?
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3119 # so that the user can short-circuit this test for compilers unknown to
3120 # Autoconf.
3121 for ac_file in $ac_files ''
3122 do
3123 test -f "$ac_file" || continue
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3126 ;;
3127 [ab].out )
3128 # We found the default executable, but exeext='' is most
3129 # certainly right.
3130 break;;
3131 *.* )
3132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3133 then :; else
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 fi
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3140 # actually working.
3141 break;;
3142 * )
3143 break;;
3144 esac
3145 done
3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
3147
3148 else
3149 ac_file=''
3150 fi
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3152 $as_echo "$ac_file" >&6; }
3153 if test -z "$ac_file"; then :
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 { as_fn_set_status 77
3160 as_fn_error "C compiler cannot create executables
3161 See \`config.log' for more details." "$LINENO" 5; }; }
3162 fi
3163 ac_exeext=$ac_cv_exeext
3164
3165 # Check that the compiler produces executables we can run. If not, either
3166 # the compiler is broken, or we cross compile.
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3168 $as_echo_n "checking whether the C compiler works... " >&6; }
3169 # If not cross compiling, check that we can run a simple program.
3170 if test "$cross_compiling" != yes; then
3171 if { ac_try='./$ac_file'
3172 { { case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_try") 2>&5
3179 ac_status=$?
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; }; then
3182 cross_compiling=no
3183 else
3184 if test "$cross_compiling" = maybe; then
3185 cross_compiling=yes
3186 else
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error "cannot run C compiled programs.
3190 If you meant to cross compile, use \`--host'.
3191 See \`config.log' for more details." "$LINENO" 5; }
3192 fi
3193 fi
3194 fi
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196 $as_echo "yes" >&6; }
3197
3198 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3199 ac_clean_files=$ac_clean_files_save
3200 # Check that the compiler produces executables we can run. If not, either
3201 # the compiler is broken, or we cross compile.
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3203 $as_echo_n "checking whether we are cross compiling... " >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3205 $as_echo "$cross_compiling" >&6; }
3206
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3208 $as_echo_n "checking for suffix of executables... " >&6; }
3209 if { { ac_try="$ac_link"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_link") 2>&5
3217 ac_status=$?
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3222 # work properly (i.e., refer to `conftest.exe'), while it won't with
3223 # `rm'.
3224 for ac_file in conftest.exe conftest conftest.*; do
3225 test -f "$ac_file" || continue
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229 break;;
3230 * ) break;;
3231 esac
3232 done
3233 else
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error "cannot compute suffix of executables: cannot compile and link
3237 See \`config.log' for more details." "$LINENO" 5; }
3238 fi
3239 rm -f conftest$ac_cv_exeext
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3241 $as_echo "$ac_cv_exeext" >&6; }
3242
3243 rm -f conftest.$ac_ext
3244 EXEEXT=$ac_cv_exeext
3245 ac_exeext=$EXEEXT
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3247 $as_echo_n "checking for suffix of object files... " >&6; }
3248 if test "${ac_cv_objext+set}" = set; then :
3249 $as_echo_n "(cached) " >&6
3250 else
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3253
3254 int
3255 main ()
3256 {
3257
3258 ;
3259 return 0;
3260 }
3261 _ACEOF
3262 rm -f conftest.o conftest.obj
3263 if { { ac_try="$ac_compile"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_compile") 2>&5
3271 ac_status=$?
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
3274 for ac_file in conftest.o conftest.obj conftest.*; do
3275 test -f "$ac_file" || continue;
3276 case $ac_file in
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3279 break;;
3280 esac
3281 done
3282 else
3283 $as_echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3285
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 as_fn_error "cannot compute suffix of object files: cannot compile
3289 See \`config.log' for more details." "$LINENO" 5; }
3290 fi
3291 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3294 $as_echo "$ac_cv_objext" >&6; }
3295 OBJEXT=$ac_cv_objext
3296 ac_objext=$OBJEXT
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3298 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3299 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
3301 else
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3304
3305 int
3306 main ()
3307 {
3308 #ifndef __GNUC__
3309 choke me
3310 #endif
3311
3312 ;
3313 return 0;
3314 }
3315 _ACEOF
3316 if ac_fn_c_try_compile "$LINENO"; then :
3317 ac_compiler_gnu=yes
3318 else
3319 ac_compiler_gnu=no
3320 fi
3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3323
3324 fi
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3326 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3327 if test $ac_compiler_gnu = yes; then
3328 GCC=yes
3329 else
3330 GCC=
3331 fi
3332 ac_test_CFLAGS=${CFLAGS+set}
3333 ac_save_CFLAGS=$CFLAGS
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3335 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3336 if test "${ac_cv_prog_cc_g+set}" = set; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 ac_save_c_werror_flag=$ac_c_werror_flag
3340 ac_c_werror_flag=yes
3341 ac_cv_prog_cc_g=no
3342 CFLAGS="-g"
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3345
3346 int
3347 main ()
3348 {
3349
3350 ;
3351 return 0;
3352 }
3353 _ACEOF
3354 if ac_fn_c_try_compile "$LINENO"; then :
3355 ac_cv_prog_cc_g=yes
3356 else
3357 CFLAGS=""
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3360
3361 int
3362 main ()
3363 {
3364
3365 ;
3366 return 0;
3367 }
3368 _ACEOF
3369 if ac_fn_c_try_compile "$LINENO"; then :
3370
3371 else
3372 ac_c_werror_flag=$ac_save_c_werror_flag
3373 CFLAGS="-g"
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3376
3377 int
3378 main ()
3379 {
3380
3381 ;
3382 return 0;
3383 }
3384 _ACEOF
3385 if ac_fn_c_try_compile "$LINENO"; then :
3386 ac_cv_prog_cc_g=yes
3387 fi
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 fi
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 fi
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_c_werror_flag=$ac_save_c_werror_flag
3394 fi
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3396 $as_echo "$ac_cv_prog_cc_g" >&6; }
3397 if test "$ac_test_CFLAGS" = set; then
3398 CFLAGS=$ac_save_CFLAGS
3399 elif test $ac_cv_prog_cc_g = yes; then
3400 if test "$GCC" = yes; then
3401 CFLAGS="-g -O2"
3402 else
3403 CFLAGS="-g"
3404 fi
3405 else
3406 if test "$GCC" = yes; then
3407 CFLAGS="-O2"
3408 else
3409 CFLAGS=
3410 fi
3411 fi
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3413 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3414 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 ac_cv_prog_cc_c89=no
3418 ac_save_CC=$CC
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421 #include <stdarg.h>
3422 #include <stdio.h>
3423 #include <sys/types.h>
3424 #include <sys/stat.h>
3425 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3426 struct buf { int x; };
3427 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3428 static char *e (p, i)
3429 char **p;
3430 int i;
3431 {
3432 return p[i];
3433 }
3434 static char *f (char * (*g) (char **, int), char **p, ...)
3435 {
3436 char *s;
3437 va_list v;
3438 va_start (v,p);
3439 s = g (p, va_arg (v,int));
3440 va_end (v);
3441 return s;
3442 }
3443
3444 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3445 function prototypes and stuff, but not '\xHH' hex character constants.
3446 These don't provoke an error unfortunately, instead are silently treated
3447 as 'x'. The following induces an error, until -std is added to get
3448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3449 array size at least. It's necessary to write '\x00'==0 to get something
3450 that's true only with -std. */
3451 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3452
3453 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3454 inside strings and character constants. */
3455 #define FOO(x) 'x'
3456 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3457
3458 int test (int i, double x);
3459 struct s1 {int (*f) (int a);};
3460 struct s2 {int (*f) (double a);};
3461 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3462 int argc;
3463 char **argv;
3464 int
3465 main ()
3466 {
3467 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3468 ;
3469 return 0;
3470 }
3471 _ACEOF
3472 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3473 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3474 do
3475 CC="$ac_save_CC $ac_arg"
3476 if ac_fn_c_try_compile "$LINENO"; then :
3477 ac_cv_prog_cc_c89=$ac_arg
3478 fi
3479 rm -f core conftest.err conftest.$ac_objext
3480 test "x$ac_cv_prog_cc_c89" != "xno" && break
3481 done
3482 rm -f conftest.$ac_ext
3483 CC=$ac_save_CC
3484
3485 fi
3486 # AC_CACHE_VAL
3487 case "x$ac_cv_prog_cc_c89" in
3488 x)
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3490 $as_echo "none needed" >&6; } ;;
3491 xno)
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3493 $as_echo "unsupported" >&6; } ;;
3494 *)
3495 CC="$CC $ac_cv_prog_cc_c89"
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3497 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3498 esac
3499 if test "x$ac_cv_prog_cc_c89" != xno; then :
3500
3501 fi
3502
3503 ac_ext=c
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3511 $as_echo_n "checking for library containing strerror... " >&6; }
3512 if test "${ac_cv_search_strerror+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 ac_func_search_save_LIBS=$LIBS
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518
3519 /* Override any GCC internal prototype to avoid an error.
3520 Use char because int might match the return type of a GCC
3521 builtin and then its argument prototype would still apply. */
3522 #ifdef __cplusplus
3523 extern "C"
3524 #endif
3525 char strerror ();
3526 int
3527 main ()
3528 {
3529 return strerror ();
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 for ac_lib in '' cposix; do
3535 if test -z "$ac_lib"; then
3536 ac_res="none required"
3537 else
3538 ac_res=-l$ac_lib
3539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3540 fi
3541 if ac_fn_c_try_link "$LINENO"; then :
3542 ac_cv_search_strerror=$ac_res
3543 fi
3544 rm -f core conftest.err conftest.$ac_objext \
3545 conftest$ac_exeext
3546 if test "${ac_cv_search_strerror+set}" = set; then :
3547 break
3548 fi
3549 done
3550 if test "${ac_cv_search_strerror+set}" = set; then :
3551
3552 else
3553 ac_cv_search_strerror=no
3554 fi
3555 rm conftest.$ac_ext
3556 LIBS=$ac_func_search_save_LIBS
3557 fi
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3559 $as_echo "$ac_cv_search_strerror" >&6; }
3560 ac_res=$ac_cv_search_strerror
3561 if test "$ac_res" != no; then :
3562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3563
3564 fi
3565
3566
3567 am__api_version='1.11'
3568
3569 # Find a good install program. We prefer a C program (faster),
3570 # so one script is as good as another. But avoid the broken or
3571 # incompatible versions:
3572 # SysV /etc/install, /usr/sbin/install
3573 # SunOS /usr/etc/install
3574 # IRIX /sbin/install
3575 # AIX /bin/install
3576 # AmigaOS /C/install, which installs bootblocks on floppy discs
3577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3580 # OS/2's system install, which has a completely different semantic
3581 # ./install, which can be erroneously created by make from ./install.sh.
3582 # Reject install programs that cannot install multiple files.
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3584 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3585 if test -z "$INSTALL"; then
3586 if test "${ac_cv_path_install+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 # Account for people who put trailing slashes in PATH elements.
3595 case $as_dir/ in #((
3596 ./ | .// | /[cC]/* | \
3597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3598 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3599 /usr/ucb/* ) ;;
3600 *)
3601 # OSF1 and SCO ODT 3.0 have their own names for install.
3602 # Don't use installbsd from OSF since it installs stuff as root
3603 # by default.
3604 for ac_prog in ginstall scoinst install; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3607 if test $ac_prog = install &&
3608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609 # AIX install. It has an incompatible calling convention.
3610 :
3611 elif test $ac_prog = install &&
3612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613 # program-specific install script used by HP pwplus--don't use.
3614 :
3615 else
3616 rm -rf conftest.one conftest.two conftest.dir
3617 echo one > conftest.one
3618 echo two > conftest.two
3619 mkdir conftest.dir
3620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3621 test -s conftest.one && test -s conftest.two &&
3622 test -s conftest.dir/conftest.one &&
3623 test -s conftest.dir/conftest.two
3624 then
3625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3626 break 3
3627 fi
3628 fi
3629 fi
3630 done
3631 done
3632 ;;
3633 esac
3634
3635 done
3636 IFS=$as_save_IFS
3637
3638 rm -rf conftest.one conftest.two conftest.dir
3639
3640 fi
3641 if test "${ac_cv_path_install+set}" = set; then
3642 INSTALL=$ac_cv_path_install
3643 else
3644 # As a last resort, use the slow shell script. Don't cache a
3645 # value for INSTALL within a source directory, because that will
3646 # break other packages using the cache if that directory is
3647 # removed, or if the value is a relative name.
3648 INSTALL=$ac_install_sh
3649 fi
3650 fi
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3652 $as_echo "$INSTALL" >&6; }
3653
3654 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3655 # It thinks the first close brace ends the variable substitution.
3656 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3657
3658 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3659
3660 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3661
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3663 $as_echo_n "checking whether build environment is sane... " >&6; }
3664 # Just in case
3665 sleep 1
3666 echo timestamp > conftest.file
3667 # Reject unsafe characters in $srcdir or the absolute working directory
3668 # name. Accept space and tab only in the latter.
3669 am_lf='
3670 '
3671 case `pwd` in
3672 *[\\\"\#\$\&\'\`$am_lf]*)
3673 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3674 esac
3675 case $srcdir in
3676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3677 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3678 esac
3679
3680 # Do `set' in a subshell so we don't clobber the current shell's
3681 # arguments. Must try -L first in case configure is actually a
3682 # symlink; some systems play weird games with the mod time of symlinks
3683 # (eg FreeBSD returns the mod time of the symlink's containing
3684 # directory).
3685 if (
3686 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3687 if test "$*" = "X"; then
3688 # -L didn't work.
3689 set X `ls -t "$srcdir/configure" conftest.file`
3690 fi
3691 rm -f conftest.file
3692 if test "$*" != "X $srcdir/configure conftest.file" \
3693 && test "$*" != "X conftest.file $srcdir/configure"; then
3694
3695 # If neither matched, then we have a broken ls. This can happen
3696 # if, for instance, CONFIG_SHELL is bash and it inherits a
3697 # broken ls alias from the environment. This has actually
3698 # happened. Such a system could not be considered "sane".
3699 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3700 alias in your environment" "$LINENO" 5
3701 fi
3702
3703 test "$2" = conftest.file
3704 )
3705 then
3706 # Ok.
3707 :
3708 else
3709 as_fn_error "newly created file is older than distributed files!
3710 Check your system clock" "$LINENO" 5
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713 $as_echo "yes" >&6; }
3714 test "$program_prefix" != NONE &&
3715 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3716 # Use a double $ so make ignores it.
3717 test "$program_suffix" != NONE &&
3718 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3719 # Double any \ or $.
3720 # By default was `s,x,x', remove it if useless.
3721 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3722 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3723
3724 # expand $ac_aux_dir to an absolute path
3725 am_aux_dir=`cd $ac_aux_dir && pwd`
3726
3727 if test x"${MISSING+set}" != xset; then
3728 case $am_aux_dir in
3729 *\ * | *\ *)
3730 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3731 *)
3732 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3733 esac
3734 fi
3735 # Use eval to expand $SHELL
3736 if eval "$MISSING --run true"; then
3737 am_missing_run="$MISSING --run "
3738 else
3739 am_missing_run=
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3741 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3742 fi
3743
3744 if test x"${install_sh}" != xset; then
3745 case $am_aux_dir in
3746 *\ * | *\ *)
3747 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3748 *)
3749 install_sh="\${SHELL} $am_aux_dir/install-sh"
3750 esac
3751 fi
3752
3753 # Installed binaries are usually stripped using `strip' when the user
3754 # run `make install-strip'. However `strip' might not be the right
3755 # tool to use in cross-compilation environments, therefore Automake
3756 # will honor the `STRIP' environment variable to overrule this program.
3757 if test "$cross_compiling" != no; then
3758 if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}strip; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if test "${ac_cv_prog_STRIP+set}" = set; then :
3764 $as_echo_n "(cached) " >&6
3765 else
3766 if test -n "$STRIP"; then
3767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3779 fi
3780 done
3781 done
3782 IFS=$as_save_IFS
3783
3784 fi
3785 fi
3786 STRIP=$ac_cv_prog_STRIP
3787 if test -n "$STRIP"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3789 $as_echo "$STRIP" >&6; }
3790 else
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3793 fi
3794
3795
3796 fi
3797 if test -z "$ac_cv_prog_STRIP"; then
3798 ac_ct_STRIP=$STRIP
3799 # Extract the first word of "strip", so it can be a program name with args.
3800 set dummy strip; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 if test -n "$ac_ct_STRIP"; then
3807 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816 ac_cv_prog_ac_ct_STRIP="strip"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3819 fi
3820 done
3821 done
3822 IFS=$as_save_IFS
3823
3824 fi
3825 fi
3826 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3827 if test -n "$ac_ct_STRIP"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3829 $as_echo "$ac_ct_STRIP" >&6; }
3830 else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3833 fi
3834
3835 if test "x$ac_ct_STRIP" = x; then
3836 STRIP=":"
3837 else
3838 case $cross_compiling:$ac_tool_warned in
3839 yes:)
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842 ac_tool_warned=yes ;;
3843 esac
3844 STRIP=$ac_ct_STRIP
3845 fi
3846 else
3847 STRIP="$ac_cv_prog_STRIP"
3848 fi
3849
3850 fi
3851 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3852
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3854 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3855 if test -z "$MKDIR_P"; then
3856 if test "${ac_cv_path_mkdir+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3861 do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_prog in mkdir gmkdir; do
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3867 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3868 'mkdir (GNU coreutils) '* | \
3869 'mkdir (coreutils) '* | \
3870 'mkdir (fileutils) '4.1*)
3871 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3872 break 3;;
3873 esac
3874 done
3875 done
3876 done
3877 IFS=$as_save_IFS
3878
3879 fi
3880
3881 if test "${ac_cv_path_mkdir+set}" = set; then
3882 MKDIR_P="$ac_cv_path_mkdir -p"
3883 else
3884 # As a last resort, use the slow shell script. Don't cache a
3885 # value for MKDIR_P within a source directory, because that will
3886 # break other packages using the cache if that directory is
3887 # removed, or if the value is a relative name.
3888 test -d ./--version && rmdir ./--version
3889 MKDIR_P="$ac_install_sh -d"
3890 fi
3891 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3893 $as_echo "$MKDIR_P" >&6; }
3894
3895 mkdir_p="$MKDIR_P"
3896 case $mkdir_p in
3897 [\\/$]* | ?:[\\/]*) ;;
3898 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3899 esac
3900
3901 for ac_prog in gawk mawk nawk awk
3902 do
3903 # Extract the first word of "$ac_prog", so it can be a program name with args.
3904 set dummy $ac_prog; ac_word=$2
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if test "${ac_cv_prog_AWK+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 if test -n "$AWK"; then
3911 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3912 else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3915 do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3920 ac_cv_prog_AWK="$ac_prog"
3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3923 fi
3924 done
3925 done
3926 IFS=$as_save_IFS
3927
3928 fi
3929 fi
3930 AWK=$ac_cv_prog_AWK
3931 if test -n "$AWK"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3933 $as_echo "$AWK" >&6; }
3934 else
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3937 fi
3938
3939
3940 test -n "$AWK" && break
3941 done
3942
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3944 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3945 set x ${MAKE-make}
3946 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3947 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 cat >conftest.make <<\_ACEOF
3951 SHELL = /bin/sh
3952 all:
3953 @echo '@@@%%%=$(MAKE)=@@@%%%'
3954 _ACEOF
3955 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3956 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3957 *@@@%%%=?*=@@@%%%*)
3958 eval ac_cv_prog_make_${ac_make}_set=yes;;
3959 *)
3960 eval ac_cv_prog_make_${ac_make}_set=no;;
3961 esac
3962 rm -f conftest.make
3963 fi
3964 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966 $as_echo "yes" >&6; }
3967 SET_MAKE=
3968 else
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3971 SET_MAKE="MAKE=${MAKE-make}"
3972 fi
3973
3974 rm -rf .tst 2>/dev/null
3975 mkdir .tst 2>/dev/null
3976 if test -d .tst; then
3977 am__leading_dot=.
3978 else
3979 am__leading_dot=_
3980 fi
3981 rmdir .tst 2>/dev/null
3982
3983 DEPDIR="${am__leading_dot}deps"
3984
3985 ac_config_commands="$ac_config_commands depfiles"
3986
3987
3988 am_make=${MAKE-make}
3989 cat > confinc << 'END'
3990 am__doit:
3991 @echo this is the am__doit target
3992 .PHONY: am__doit
3993 END
3994 # If we don't find an include directive, just comment out the code.
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3996 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3997 am__include="#"
3998 am__quote=
3999 _am_result=none
4000 # First try GNU make style include.
4001 echo "include confinc" > confmf
4002 # Ignore all kinds of additional output from `make'.
4003 case `$am_make -s -f confmf 2> /dev/null` in #(
4004 *the\ am__doit\ target*)
4005 am__include=include
4006 am__quote=
4007 _am_result=GNU
4008 ;;
4009 esac
4010 # Now try BSD make style include.
4011 if test "$am__include" = "#"; then
4012 echo '.include "confinc"' > confmf
4013 case `$am_make -s -f confmf 2> /dev/null` in #(
4014 *the\ am__doit\ target*)
4015 am__include=.include
4016 am__quote="\""
4017 _am_result=BSD
4018 ;;
4019 esac
4020 fi
4021
4022
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4024 $as_echo "$_am_result" >&6; }
4025 rm -f confinc confmf
4026
4027 # Check whether --enable-dependency-tracking was given.
4028 if test "${enable_dependency_tracking+set}" = set; then :
4029 enableval=$enable_dependency_tracking;
4030 fi
4031
4032 if test "x$enable_dependency_tracking" != xno; then
4033 am_depcomp="$ac_aux_dir/depcomp"
4034 AMDEPBACKSLASH='\'
4035 fi
4036 if test "x$enable_dependency_tracking" != xno; then
4037 AMDEP_TRUE=
4038 AMDEP_FALSE='#'
4039 else
4040 AMDEP_TRUE='#'
4041 AMDEP_FALSE=
4042 fi
4043
4044
4045 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4046 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4047 # is not polluted with repeated "-I."
4048 am__isrc=' -I$(srcdir)'
4049 # test to see if srcdir already configured
4050 if test -f $srcdir/config.status; then
4051 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4052 fi
4053 fi
4054
4055 # test whether we have cygpath
4056 if test -z "$CYGPATH_W"; then
4057 if (cygpath --version) >/dev/null 2>/dev/null; then
4058 CYGPATH_W='cygpath -w'
4059 else
4060 CYGPATH_W=echo
4061 fi
4062 fi
4063
4064
4065 # Define the identity of the package.
4066 PACKAGE='ld'
4067 VERSION='2.26.51'
4068
4069
4070 cat >>confdefs.h <<_ACEOF
4071 #define PACKAGE "$PACKAGE"
4072 _ACEOF
4073
4074
4075 cat >>confdefs.h <<_ACEOF
4076 #define VERSION "$VERSION"
4077 _ACEOF
4078
4079 # Some tools Automake needs.
4080
4081 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4082
4083
4084 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4085
4086
4087 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4088
4089
4090 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4091
4092
4093 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4094
4095 # We need awk for the "check" target. The system "awk" is bad on
4096 # some platforms.
4097 # Always define AMTAR for backward compatibility.
4098
4099 AMTAR=${AMTAR-"${am_missing_run}tar"}
4100
4101 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4102
4103
4104
4105
4106 depcc="$CC" am_compiler_list=
4107
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4109 $as_echo_n "checking dependency style of $depcc... " >&6; }
4110 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4114 # We make a subdir and do the tests there. Otherwise we can end up
4115 # making bogus files that we don't know about and never remove. For
4116 # instance it was reported that on HP-UX the gcc test will end up
4117 # making a dummy file named `D' -- because `-MD' means `put the output
4118 # in D'.
4119 mkdir conftest.dir
4120 # Copy depcomp to subdir because otherwise we won't find it if we're
4121 # using a relative directory.
4122 cp "$am_depcomp" conftest.dir
4123 cd conftest.dir
4124 # We will build objects and dependencies in a subdirectory because
4125 # it helps to detect inapplicable dependency modes. For instance
4126 # both Tru64's cc and ICC support -MD to output dependencies as a
4127 # side effect of compilation, but ICC will put the dependencies in
4128 # the current directory while Tru64 will put them in the object
4129 # directory.
4130 mkdir sub
4131
4132 am_cv_CC_dependencies_compiler_type=none
4133 if test "$am_compiler_list" = ""; then
4134 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4135 fi
4136 am__universal=false
4137 case " $depcc " in #(
4138 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4139 esac
4140
4141 for depmode in $am_compiler_list; do
4142 # Setup a source with many dependencies, because some compilers
4143 # like to wrap large dependency lists on column 80 (with \), and
4144 # we should not choose a depcomp mode which is confused by this.
4145 #
4146 # We need to recreate these files for each test, as the compiler may
4147 # overwrite some of them when testing with obscure command lines.
4148 # This happens at least with the AIX C compiler.
4149 : > sub/conftest.c
4150 for i in 1 2 3 4 5 6; do
4151 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4152 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4153 # Solaris 8's {/usr,}/bin/sh.
4154 touch sub/conftst$i.h
4155 done
4156 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4157
4158 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4159 # mode. It turns out that the SunPro C++ compiler does not properly
4160 # handle `-M -o', and we need to detect this. Also, some Intel
4161 # versions had trouble with output in subdirs
4162 am__obj=sub/conftest.${OBJEXT-o}
4163 am__minus_obj="-o $am__obj"
4164 case $depmode in
4165 gcc)
4166 # This depmode causes a compiler race in universal mode.
4167 test "$am__universal" = false || continue
4168 ;;
4169 nosideeffect)
4170 # after this tag, mechanisms are not by side-effect, so they'll
4171 # only be used when explicitly requested
4172 if test "x$enable_dependency_tracking" = xyes; then
4173 continue
4174 else
4175 break
4176 fi
4177 ;;
4178 msvisualcpp | msvcmsys)
4179 # This compiler won't grok `-c -o', but also, the minuso test has
4180 # not run yet. These depmodes are late enough in the game, and
4181 # so weak that their functioning should not be impacted.
4182 am__obj=conftest.${OBJEXT-o}
4183 am__minus_obj=
4184 ;;
4185 none) break ;;
4186 esac
4187 if depmode=$depmode \
4188 source=sub/conftest.c object=$am__obj \
4189 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4190 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4191 >/dev/null 2>conftest.err &&
4192 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4193 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4194 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4195 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4196 # icc doesn't choke on unknown options, it will just issue warnings
4197 # or remarks (even with -Werror). So we grep stderr for any message
4198 # that says an option was ignored or not supported.
4199 # When given -MP, icc 7.0 and 7.1 complain thusly:
4200 # icc: Command line warning: ignoring option '-M'; no argument required
4201 # The diagnosis changed in icc 8.0:
4202 # icc: Command line remark: option '-MP' not supported
4203 if (grep 'ignoring option' conftest.err ||
4204 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4205 am_cv_CC_dependencies_compiler_type=$depmode
4206 break
4207 fi
4208 fi
4209 done
4210
4211 cd ..
4212 rm -rf conftest.dir
4213 else
4214 am_cv_CC_dependencies_compiler_type=none
4215 fi
4216
4217 fi
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4219 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4220 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4221
4222 if
4223 test "x$enable_dependency_tracking" != xno \
4224 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4225 am__fastdepCC_TRUE=
4226 am__fastdepCC_FALSE='#'
4227 else
4228 am__fastdepCC_TRUE='#'
4229 am__fastdepCC_FALSE=
4230 fi
4231
4232
4233
4234
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4236 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4237 # Check whether --enable-maintainer-mode was given.
4238 if test "${enable_maintainer_mode+set}" = set; then :
4239 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4240 else
4241 USE_MAINTAINER_MODE=no
4242 fi
4243
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4245 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4246 if test $USE_MAINTAINER_MODE = yes; then
4247 MAINTAINER_MODE_TRUE=
4248 MAINTAINER_MODE_FALSE='#'
4249 else
4250 MAINTAINER_MODE_TRUE='#'
4251 MAINTAINER_MODE_FALSE=
4252 fi
4253
4254 MAINT=$MAINTAINER_MODE_TRUE
4255
4256
4257
4258 ac_ext=c
4259 ac_cpp='$CPP $CPPFLAGS'
4260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263 if test -n "$ac_tool_prefix"; then
4264 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4265 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if test "${ac_cv_prog_CC+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 if test -n "$CC"; then
4272 ac_cv_prog_CC="$CC" # Let the user override the test.
4273 else
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4284 fi
4285 done
4286 done
4287 IFS=$as_save_IFS
4288
4289 fi
4290 fi
4291 CC=$ac_cv_prog_CC
4292 if test -n "$CC"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4294 $as_echo "$CC" >&6; }
4295 else
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4298 fi
4299
4300
4301 fi
4302 if test -z "$ac_cv_prog_CC"; then
4303 ac_ct_CC=$CC
4304 # Extract the first word of "gcc", so it can be a program name with args.
4305 set dummy gcc; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 if test -n "$ac_ct_CC"; then
4312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4316 do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_ac_ct_CC="gcc"
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4324 fi
4325 done
4326 done
4327 IFS=$as_save_IFS
4328
4329 fi
4330 fi
4331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4332 if test -n "$ac_ct_CC"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4334 $as_echo "$ac_ct_CC" >&6; }
4335 else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4338 fi
4339
4340 if test "x$ac_ct_CC" = x; then
4341 CC=""
4342 else
4343 case $cross_compiling:$ac_tool_warned in
4344 yes:)
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4347 ac_tool_warned=yes ;;
4348 esac
4349 CC=$ac_ct_CC
4350 fi
4351 else
4352 CC="$ac_cv_prog_CC"
4353 fi
4354
4355 if test -z "$CC"; then
4356 if test -n "$ac_tool_prefix"; then
4357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4358 set dummy ${ac_tool_prefix}cc; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if test "${ac_cv_prog_CC+set}" = set; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 if test -n "$CC"; then
4365 ac_cv_prog_CC="$CC" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374 ac_cv_prog_CC="${ac_tool_prefix}cc"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 break 2
4377 fi
4378 done
4379 done
4380 IFS=$as_save_IFS
4381
4382 fi
4383 fi
4384 CC=$ac_cv_prog_CC
4385 if test -n "$CC"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4387 $as_echo "$CC" >&6; }
4388 else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4391 fi
4392
4393
4394 fi
4395 fi
4396 if test -z "$CC"; then
4397 # Extract the first word of "cc", so it can be a program name with args.
4398 set dummy cc; ac_word=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if test "${ac_cv_prog_CC+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if test -n "$CC"; then
4405 ac_cv_prog_CC="$CC" # Let the user override the test.
4406 else
4407 ac_prog_rejected=no
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4416 ac_prog_rejected=yes
4417 continue
4418 fi
4419 ac_cv_prog_CC="cc"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4422 fi
4423 done
4424 done
4425 IFS=$as_save_IFS
4426
4427 if test $ac_prog_rejected = yes; then
4428 # We found a bogon in the path, so make sure we never use it.
4429 set dummy $ac_cv_prog_CC
4430 shift
4431 if test $# != 0; then
4432 # We chose a different compiler from the bogus one.
4433 # However, it has the same basename, so the bogon will be chosen
4434 # first if we set CC to just the basename; use the full file name.
4435 shift
4436 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4437 fi
4438 fi
4439 fi
4440 fi
4441 CC=$ac_cv_prog_CC
4442 if test -n "$CC"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4444 $as_echo "$CC" >&6; }
4445 else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4448 fi
4449
4450
4451 fi
4452 if test -z "$CC"; then
4453 if test -n "$ac_tool_prefix"; then
4454 for ac_prog in cl.exe
4455 do
4456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if test "${ac_cv_prog_CC+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -n "$CC"; then
4464 ac_cv_prog_CC="$CC" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4476 fi
4477 done
4478 done
4479 IFS=$as_save_IFS
4480
4481 fi
4482 fi
4483 CC=$ac_cv_prog_CC
4484 if test -n "$CC"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4486 $as_echo "$CC" >&6; }
4487 else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4490 fi
4491
4492
4493 test -n "$CC" && break
4494 done
4495 fi
4496 if test -z "$CC"; then
4497 ac_ct_CC=$CC
4498 for ac_prog in cl.exe
4499 do
4500 # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 set dummy $ac_prog; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 if test -n "$ac_ct_CC"; then
4508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 ac_cv_prog_ac_ct_CC="$ac_prog"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4520 fi
4521 done
4522 done
4523 IFS=$as_save_IFS
4524
4525 fi
4526 fi
4527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4528 if test -n "$ac_ct_CC"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4530 $as_echo "$ac_ct_CC" >&6; }
4531 else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4534 fi
4535
4536
4537 test -n "$ac_ct_CC" && break
4538 done
4539
4540 if test "x$ac_ct_CC" = x; then
4541 CC=""
4542 else
4543 case $cross_compiling:$ac_tool_warned in
4544 yes:)
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547 ac_tool_warned=yes ;;
4548 esac
4549 CC=$ac_ct_CC
4550 fi
4551 fi
4552
4553 fi
4554
4555
4556 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4558 as_fn_error "no acceptable C compiler found in \$PATH
4559 See \`config.log' for more details." "$LINENO" 5; }
4560
4561 # Provide some information about the compiler.
4562 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4563 set X $ac_compile
4564 ac_compiler=$2
4565 for ac_option in --version -v -V -qversion; do
4566 { { ac_try="$ac_compiler $ac_option >&5"
4567 case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4574 ac_status=$?
4575 if test -s conftest.err; then
4576 sed '10a\
4577 ... rest of stderr output deleted ...
4578 10q' conftest.err >conftest.er1
4579 cat conftest.er1 >&5
4580 rm -f conftest.er1 conftest.err
4581 fi
4582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4583 test $ac_status = 0; }
4584 done
4585
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4587 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4588 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593
4594 int
4595 main ()
4596 {
4597 #ifndef __GNUC__
4598 choke me
4599 #endif
4600
4601 ;
4602 return 0;
4603 }
4604 _ACEOF
4605 if ac_fn_c_try_compile "$LINENO"; then :
4606 ac_compiler_gnu=yes
4607 else
4608 ac_compiler_gnu=no
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4612
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4615 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4616 if test $ac_compiler_gnu = yes; then
4617 GCC=yes
4618 else
4619 GCC=
4620 fi
4621 ac_test_CFLAGS=${CFLAGS+set}
4622 ac_save_CFLAGS=$CFLAGS
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4624 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4625 if test "${ac_cv_prog_cc_g+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 ac_save_c_werror_flag=$ac_c_werror_flag
4629 ac_c_werror_flag=yes
4630 ac_cv_prog_cc_g=no
4631 CFLAGS="-g"
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4634
4635 int
4636 main ()
4637 {
4638
4639 ;
4640 return 0;
4641 }
4642 _ACEOF
4643 if ac_fn_c_try_compile "$LINENO"; then :
4644 ac_cv_prog_cc_g=yes
4645 else
4646 CFLAGS=""
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649
4650 int
4651 main ()
4652 {
4653
4654 ;
4655 return 0;
4656 }
4657 _ACEOF
4658 if ac_fn_c_try_compile "$LINENO"; then :
4659
4660 else
4661 ac_c_werror_flag=$ac_save_c_werror_flag
4662 CFLAGS="-g"
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665
4666 int
4667 main ()
4668 {
4669
4670 ;
4671 return 0;
4672 }
4673 _ACEOF
4674 if ac_fn_c_try_compile "$LINENO"; then :
4675 ac_cv_prog_cc_g=yes
4676 fi
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 fi
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 fi
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 ac_c_werror_flag=$ac_save_c_werror_flag
4683 fi
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4685 $as_echo "$ac_cv_prog_cc_g" >&6; }
4686 if test "$ac_test_CFLAGS" = set; then
4687 CFLAGS=$ac_save_CFLAGS
4688 elif test $ac_cv_prog_cc_g = yes; then
4689 if test "$GCC" = yes; then
4690 CFLAGS="-g -O2"
4691 else
4692 CFLAGS="-g"
4693 fi
4694 else
4695 if test "$GCC" = yes; then
4696 CFLAGS="-O2"
4697 else
4698 CFLAGS=
4699 fi
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4702 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4703 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 ac_cv_prog_cc_c89=no
4707 ac_save_CC=$CC
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4710 #include <stdarg.h>
4711 #include <stdio.h>
4712 #include <sys/types.h>
4713 #include <sys/stat.h>
4714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4715 struct buf { int x; };
4716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4717 static char *e (p, i)
4718 char **p;
4719 int i;
4720 {
4721 return p[i];
4722 }
4723 static char *f (char * (*g) (char **, int), char **p, ...)
4724 {
4725 char *s;
4726 va_list v;
4727 va_start (v,p);
4728 s = g (p, va_arg (v,int));
4729 va_end (v);
4730 return s;
4731 }
4732
4733 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4734 function prototypes and stuff, but not '\xHH' hex character constants.
4735 These don't provoke an error unfortunately, instead are silently treated
4736 as 'x'. The following induces an error, until -std is added to get
4737 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4738 array size at least. It's necessary to write '\x00'==0 to get something
4739 that's true only with -std. */
4740 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4741
4742 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4743 inside strings and character constants. */
4744 #define FOO(x) 'x'
4745 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4746
4747 int test (int i, double x);
4748 struct s1 {int (*f) (int a);};
4749 struct s2 {int (*f) (double a);};
4750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4751 int argc;
4752 char **argv;
4753 int
4754 main ()
4755 {
4756 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4762 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4763 do
4764 CC="$ac_save_CC $ac_arg"
4765 if ac_fn_c_try_compile "$LINENO"; then :
4766 ac_cv_prog_cc_c89=$ac_arg
4767 fi
4768 rm -f core conftest.err conftest.$ac_objext
4769 test "x$ac_cv_prog_cc_c89" != "xno" && break
4770 done
4771 rm -f conftest.$ac_ext
4772 CC=$ac_save_CC
4773
4774 fi
4775 # AC_CACHE_VAL
4776 case "x$ac_cv_prog_cc_c89" in
4777 x)
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4779 $as_echo "none needed" >&6; } ;;
4780 xno)
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4782 $as_echo "unsupported" >&6; } ;;
4783 *)
4784 CC="$CC $ac_cv_prog_cc_c89"
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4786 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4787 esac
4788 if test "x$ac_cv_prog_cc_c89" != xno; then :
4789
4790 fi
4791
4792 ac_ext=c
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797
4798 ac_ext=cpp
4799 ac_cpp='$CXXCPP $CPPFLAGS'
4800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4803 if test -z "$CXX"; then
4804 if test -n "$CCC"; then
4805 CXX=$CCC
4806 else
4807 if test -n "$ac_tool_prefix"; then
4808 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4809 do
4810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_prog_CXX+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 if test -n "$CXX"; then
4818 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831 done
4832 done
4833 IFS=$as_save_IFS
4834
4835 fi
4836 fi
4837 CXX=$ac_cv_prog_CXX
4838 if test -n "$CXX"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4840 $as_echo "$CXX" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 fi
4845
4846
4847 test -n "$CXX" && break
4848 done
4849 fi
4850 if test -z "$CXX"; then
4851 ac_ct_CXX=$CXX
4852 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4853 do
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855 set dummy $ac_prog; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -n "$ac_ct_CXX"; then
4862 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_ac_ct_CXX="$ac_prog"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875 done
4876 done
4877 IFS=$as_save_IFS
4878
4879 fi
4880 fi
4881 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4882 if test -n "$ac_ct_CXX"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4884 $as_echo "$ac_ct_CXX" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889
4890
4891 test -n "$ac_ct_CXX" && break
4892 done
4893
4894 if test "x$ac_ct_CXX" = x; then
4895 CXX="g++"
4896 else
4897 case $cross_compiling:$ac_tool_warned in
4898 yes:)
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901 ac_tool_warned=yes ;;
4902 esac
4903 CXX=$ac_ct_CXX
4904 fi
4905 fi
4906
4907 fi
4908 fi
4909 # Provide some information about the compiler.
4910 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4911 set X $ac_compile
4912 ac_compiler=$2
4913 for ac_option in --version -v -V -qversion; do
4914 { { ac_try="$ac_compiler $ac_option >&5"
4915 case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918 esac
4919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920 $as_echo "$ac_try_echo"; } >&5
4921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4922 ac_status=$?
4923 if test -s conftest.err; then
4924 sed '10a\
4925 ... rest of stderr output deleted ...
4926 10q' conftest.err >conftest.er1
4927 cat conftest.er1 >&5
4928 rm -f conftest.er1 conftest.err
4929 fi
4930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931 test $ac_status = 0; }
4932 done
4933
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4935 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4936 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4941
4942 int
4943 main ()
4944 {
4945 #ifndef __GNUC__
4946 choke me
4947 #endif
4948
4949 ;
4950 return 0;
4951 }
4952 _ACEOF
4953 if ac_fn_cxx_try_compile "$LINENO"; then :
4954 ac_compiler_gnu=yes
4955 else
4956 ac_compiler_gnu=no
4957 fi
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4960
4961 fi
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4963 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4964 if test $ac_compiler_gnu = yes; then
4965 GXX=yes
4966 else
4967 GXX=
4968 fi
4969 ac_test_CXXFLAGS=${CXXFLAGS+set}
4970 ac_save_CXXFLAGS=$CXXFLAGS
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4972 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4973 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4977 ac_cxx_werror_flag=yes
4978 ac_cv_prog_cxx_g=no
4979 CXXFLAGS="-g"
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4982
4983 int
4984 main ()
4985 {
4986
4987 ;
4988 return 0;
4989 }
4990 _ACEOF
4991 if ac_fn_cxx_try_compile "$LINENO"; then :
4992 ac_cv_prog_cxx_g=yes
4993 else
4994 CXXFLAGS=""
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997
4998 int
4999 main ()
5000 {
5001
5002 ;
5003 return 0;
5004 }
5005 _ACEOF
5006 if ac_fn_cxx_try_compile "$LINENO"; then :
5007
5008 else
5009 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5010 CXXFLAGS="-g"
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013
5014 int
5015 main ()
5016 {
5017
5018 ;
5019 return 0;
5020 }
5021 _ACEOF
5022 if ac_fn_cxx_try_compile "$LINENO"; then :
5023 ac_cv_prog_cxx_g=yes
5024 fi
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 fi
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5031 fi
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5033 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5034 if test "$ac_test_CXXFLAGS" = set; then
5035 CXXFLAGS=$ac_save_CXXFLAGS
5036 elif test $ac_cv_prog_cxx_g = yes; then
5037 if test "$GXX" = yes; then
5038 CXXFLAGS="-g -O2"
5039 else
5040 CXXFLAGS="-g"
5041 fi
5042 else
5043 if test "$GXX" = yes; then
5044 CXXFLAGS="-O2"
5045 else
5046 CXXFLAGS=
5047 fi
5048 fi
5049 ac_ext=c
5050 ac_cpp='$CPP $CPPFLAGS'
5051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5054
5055 depcc="$CXX" am_compiler_list=
5056
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5058 $as_echo_n "checking dependency style of $depcc... " >&6; }
5059 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5063 # We make a subdir and do the tests there. Otherwise we can end up
5064 # making bogus files that we don't know about and never remove. For
5065 # instance it was reported that on HP-UX the gcc test will end up
5066 # making a dummy file named `D' -- because `-MD' means `put the output
5067 # in D'.
5068 mkdir conftest.dir
5069 # Copy depcomp to subdir because otherwise we won't find it if we're
5070 # using a relative directory.
5071 cp "$am_depcomp" conftest.dir
5072 cd conftest.dir
5073 # We will build objects and dependencies in a subdirectory because
5074 # it helps to detect inapplicable dependency modes. For instance
5075 # both Tru64's cc and ICC support -MD to output dependencies as a
5076 # side effect of compilation, but ICC will put the dependencies in
5077 # the current directory while Tru64 will put them in the object
5078 # directory.
5079 mkdir sub
5080
5081 am_cv_CXX_dependencies_compiler_type=none
5082 if test "$am_compiler_list" = ""; then
5083 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5084 fi
5085 am__universal=false
5086 case " $depcc " in #(
5087 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5088 esac
5089
5090 for depmode in $am_compiler_list; do
5091 # Setup a source with many dependencies, because some compilers
5092 # like to wrap large dependency lists on column 80 (with \), and
5093 # we should not choose a depcomp mode which is confused by this.
5094 #
5095 # We need to recreate these files for each test, as the compiler may
5096 # overwrite some of them when testing with obscure command lines.
5097 # This happens at least with the AIX C compiler.
5098 : > sub/conftest.c
5099 for i in 1 2 3 4 5 6; do
5100 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5101 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5102 # Solaris 8's {/usr,}/bin/sh.
5103 touch sub/conftst$i.h
5104 done
5105 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5106
5107 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5108 # mode. It turns out that the SunPro C++ compiler does not properly
5109 # handle `-M -o', and we need to detect this. Also, some Intel
5110 # versions had trouble with output in subdirs
5111 am__obj=sub/conftest.${OBJEXT-o}
5112 am__minus_obj="-o $am__obj"
5113 case $depmode in
5114 gcc)
5115 # This depmode causes a compiler race in universal mode.
5116 test "$am__universal" = false || continue
5117 ;;
5118 nosideeffect)
5119 # after this tag, mechanisms are not by side-effect, so they'll
5120 # only be used when explicitly requested
5121 if test "x$enable_dependency_tracking" = xyes; then
5122 continue
5123 else
5124 break
5125 fi
5126 ;;
5127 msvisualcpp | msvcmsys)
5128 # This compiler won't grok `-c -o', but also, the minuso test has
5129 # not run yet. These depmodes are late enough in the game, and
5130 # so weak that their functioning should not be impacted.
5131 am__obj=conftest.${OBJEXT-o}
5132 am__minus_obj=
5133 ;;
5134 none) break ;;
5135 esac
5136 if depmode=$depmode \
5137 source=sub/conftest.c object=$am__obj \
5138 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5139 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5140 >/dev/null 2>conftest.err &&
5141 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5142 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5143 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5144 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5145 # icc doesn't choke on unknown options, it will just issue warnings
5146 # or remarks (even with -Werror). So we grep stderr for any message
5147 # that says an option was ignored or not supported.
5148 # When given -MP, icc 7.0 and 7.1 complain thusly:
5149 # icc: Command line warning: ignoring option '-M'; no argument required
5150 # The diagnosis changed in icc 8.0:
5151 # icc: Command line remark: option '-MP' not supported
5152 if (grep 'ignoring option' conftest.err ||
5153 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5154 am_cv_CXX_dependencies_compiler_type=$depmode
5155 break
5156 fi
5157 fi
5158 done
5159
5160 cd ..
5161 rm -rf conftest.dir
5162 else
5163 am_cv_CXX_dependencies_compiler_type=none
5164 fi
5165
5166 fi
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5168 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5169 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5170
5171 if
5172 test "x$enable_dependency_tracking" != xno \
5173 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5174 am__fastdepCXX_TRUE=
5175 am__fastdepCXX_FALSE='#'
5176 else
5177 am__fastdepCXX_TRUE='#'
5178 am__fastdepCXX_FALSE=
5179 fi
5180
5181
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5183 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5184 if test "${ac_cv_path_GREP+set}" = set; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 if test -z "$GREP"; then
5188 ac_path_GREP_found=false
5189 # Loop through the user's path and test for each of PROGNAME-LIST
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5192 do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_prog in grep ggrep; do
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5198 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5199 # Check for GNU ac_path_GREP and select it if it is found.
5200 # Check for GNU $ac_path_GREP
5201 case `"$ac_path_GREP" --version 2>&1` in
5202 *GNU*)
5203 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5204 *)
5205 ac_count=0
5206 $as_echo_n 0123456789 >"conftest.in"
5207 while :
5208 do
5209 cat "conftest.in" "conftest.in" >"conftest.tmp"
5210 mv "conftest.tmp" "conftest.in"
5211 cp "conftest.in" "conftest.nl"
5212 $as_echo 'GREP' >> "conftest.nl"
5213 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5215 as_fn_arith $ac_count + 1 && ac_count=$as_val
5216 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5217 # Best one so far, save it but keep looking for a better one
5218 ac_cv_path_GREP="$ac_path_GREP"
5219 ac_path_GREP_max=$ac_count
5220 fi
5221 # 10*(2^10) chars as input seems more than enough
5222 test $ac_count -gt 10 && break
5223 done
5224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5225 esac
5226
5227 $ac_path_GREP_found && break 3
5228 done
5229 done
5230 done
5231 IFS=$as_save_IFS
5232 if test -z "$ac_cv_path_GREP"; then
5233 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5234 fi
5235 else
5236 ac_cv_path_GREP=$GREP
5237 fi
5238
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5241 $as_echo "$ac_cv_path_GREP" >&6; }
5242 GREP="$ac_cv_path_GREP"
5243
5244
5245 ac_ext=c
5246 ac_cpp='$CPP $CPPFLAGS'
5247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5251 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5252 # On Suns, sometimes $CPP names a directory.
5253 if test -n "$CPP" && test -d "$CPP"; then
5254 CPP=
5255 fi
5256 if test -z "$CPP"; then
5257 if test "${ac_cv_prog_CPP+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 # Double quotes because CPP needs to be expanded
5261 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5262 do
5263 ac_preproc_ok=false
5264 for ac_c_preproc_warn_flag in '' yes
5265 do
5266 # Use a header file that comes with gcc, so configuring glibc
5267 # with a fresh cross-compiler works.
5268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269 # <limits.h> exists even on freestanding compilers.
5270 # On the NeXT, cc -E runs the code through the compiler's parser,
5271 # not just through cpp. "Syntax error" is here to catch this case.
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #ifdef __STDC__
5275 # include <limits.h>
5276 #else
5277 # include <assert.h>
5278 #endif
5279 Syntax error
5280 _ACEOF
5281 if ac_fn_c_try_cpp "$LINENO"; then :
5282
5283 else
5284 # Broken: fails on valid input.
5285 continue
5286 fi
5287 rm -f conftest.err conftest.$ac_ext
5288
5289 # OK, works on sane cases. Now check whether nonexistent headers
5290 # can be detected and how.
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <ac_nonexistent.h>
5294 _ACEOF
5295 if ac_fn_c_try_cpp "$LINENO"; then :
5296 # Broken: success on invalid input.
5297 continue
5298 else
5299 # Passes both tests.
5300 ac_preproc_ok=:
5301 break
5302 fi
5303 rm -f conftest.err conftest.$ac_ext
5304
5305 done
5306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307 rm -f conftest.err conftest.$ac_ext
5308 if $ac_preproc_ok; then :
5309 break
5310 fi
5311
5312 done
5313 ac_cv_prog_CPP=$CPP
5314
5315 fi
5316 CPP=$ac_cv_prog_CPP
5317 else
5318 ac_cv_prog_CPP=$CPP
5319 fi
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5321 $as_echo "$CPP" >&6; }
5322 ac_preproc_ok=false
5323 for ac_c_preproc_warn_flag in '' yes
5324 do
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333 #ifdef __STDC__
5334 # include <limits.h>
5335 #else
5336 # include <assert.h>
5337 #endif
5338 Syntax error
5339 _ACEOF
5340 if ac_fn_c_try_cpp "$LINENO"; then :
5341
5342 else
5343 # Broken: fails on valid input.
5344 continue
5345 fi
5346 rm -f conftest.err conftest.$ac_ext
5347
5348 # OK, works on sane cases. Now check whether nonexistent headers
5349 # can be detected and how.
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #include <ac_nonexistent.h>
5353 _ACEOF
5354 if ac_fn_c_try_cpp "$LINENO"; then :
5355 # Broken: success on invalid input.
5356 continue
5357 else
5358 # Passes both tests.
5359 ac_preproc_ok=:
5360 break
5361 fi
5362 rm -f conftest.err conftest.$ac_ext
5363
5364 done
5365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5366 rm -f conftest.err conftest.$ac_ext
5367 if $ac_preproc_ok; then :
5368
5369 else
5370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5372 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5373 See \`config.log' for more details." "$LINENO" 5; }
5374 fi
5375
5376 ac_ext=c
5377 ac_cpp='$CPP $CPPFLAGS'
5378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381
5382
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5384 $as_echo_n "checking for egrep... " >&6; }
5385 if test "${ac_cv_path_EGREP+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5389 then ac_cv_path_EGREP="$GREP -E"
5390 else
5391 if test -z "$EGREP"; then
5392 ac_path_EGREP_found=false
5393 # Loop through the user's path and test for each of PROGNAME-LIST
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5396 do
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_prog in egrep; do
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5402 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5403 # Check for GNU ac_path_EGREP and select it if it is found.
5404 # Check for GNU $ac_path_EGREP
5405 case `"$ac_path_EGREP" --version 2>&1` in
5406 *GNU*)
5407 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5408 *)
5409 ac_count=0
5410 $as_echo_n 0123456789 >"conftest.in"
5411 while :
5412 do
5413 cat "conftest.in" "conftest.in" >"conftest.tmp"
5414 mv "conftest.tmp" "conftest.in"
5415 cp "conftest.in" "conftest.nl"
5416 $as_echo 'EGREP' >> "conftest.nl"
5417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5419 as_fn_arith $ac_count + 1 && ac_count=$as_val
5420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5421 # Best one so far, save it but keep looking for a better one
5422 ac_cv_path_EGREP="$ac_path_EGREP"
5423 ac_path_EGREP_max=$ac_count
5424 fi
5425 # 10*(2^10) chars as input seems more than enough
5426 test $ac_count -gt 10 && break
5427 done
5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429 esac
5430
5431 $ac_path_EGREP_found && break 3
5432 done
5433 done
5434 done
5435 IFS=$as_save_IFS
5436 if test -z "$ac_cv_path_EGREP"; then
5437 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5438 fi
5439 else
5440 ac_cv_path_EGREP=$EGREP
5441 fi
5442
5443 fi
5444 fi
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5446 $as_echo "$ac_cv_path_EGREP" >&6; }
5447 EGREP="$ac_cv_path_EGREP"
5448
5449
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5451 $as_echo_n "checking for ANSI C header files... " >&6; }
5452 if test "${ac_cv_header_stdc+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 #include <stdlib.h>
5458 #include <stdarg.h>
5459 #include <string.h>
5460 #include <float.h>
5461
5462 int
5463 main ()
5464 {
5465
5466 ;
5467 return 0;
5468 }
5469 _ACEOF
5470 if ac_fn_c_try_compile "$LINENO"; then :
5471 ac_cv_header_stdc=yes
5472 else
5473 ac_cv_header_stdc=no
5474 fi
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476
5477 if test $ac_cv_header_stdc = yes; then
5478 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 #include <string.h>
5482
5483 _ACEOF
5484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5485 $EGREP "memchr" >/dev/null 2>&1; then :
5486
5487 else
5488 ac_cv_header_stdc=no
5489 fi
5490 rm -f conftest*
5491
5492 fi
5493
5494 if test $ac_cv_header_stdc = yes; then
5495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5498 #include <stdlib.h>
5499
5500 _ACEOF
5501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5502 $EGREP "free" >/dev/null 2>&1; then :
5503
5504 else
5505 ac_cv_header_stdc=no
5506 fi
5507 rm -f conftest*
5508
5509 fi
5510
5511 if test $ac_cv_header_stdc = yes; then
5512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5513 if test "$cross_compiling" = yes; then :
5514 :
5515 else
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518 #include <ctype.h>
5519 #include <stdlib.h>
5520 #if ((' ' & 0x0FF) == 0x020)
5521 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5522 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5523 #else
5524 # define ISLOWER(c) \
5525 (('a' <= (c) && (c) <= 'i') \
5526 || ('j' <= (c) && (c) <= 'r') \
5527 || ('s' <= (c) && (c) <= 'z'))
5528 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5529 #endif
5530
5531 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5532 int
5533 main ()
5534 {
5535 int i;
5536 for (i = 0; i < 256; i++)
5537 if (XOR (islower (i), ISLOWER (i))
5538 || toupper (i) != TOUPPER (i))
5539 return 2;
5540 return 0;
5541 }
5542 _ACEOF
5543 if ac_fn_c_try_run "$LINENO"; then :
5544
5545 else
5546 ac_cv_header_stdc=no
5547 fi
5548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5549 conftest.$ac_objext conftest.beam conftest.$ac_ext
5550 fi
5551
5552 fi
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5555 $as_echo "$ac_cv_header_stdc" >&6; }
5556 if test $ac_cv_header_stdc = yes; then
5557
5558 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5559
5560 fi
5561
5562 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5563 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5564 inttypes.h stdint.h unistd.h
5565 do :
5566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5567 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5568 "
5569 eval as_val=\$$as_ac_Header
5570 if test "x$as_val" = x""yes; then :
5571 cat >>confdefs.h <<_ACEOF
5572 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5573 _ACEOF
5574
5575 fi
5576
5577 done
5578
5579
5580
5581 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5582 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5583 MINIX=yes
5584 else
5585 MINIX=
5586 fi
5587
5588
5589 if test "$MINIX" = yes; then
5590
5591 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5592
5593
5594 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5595
5596
5597 $as_echo "#define _MINIX 1" >>confdefs.h
5598
5599 fi
5600
5601
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5603 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5604 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609
5610 # define __EXTENSIONS__ 1
5611 $ac_includes_default
5612 int
5613 main ()
5614 {
5615
5616 ;
5617 return 0;
5618 }
5619 _ACEOF
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621 ac_cv_safe_to_define___extensions__=yes
5622 else
5623 ac_cv_safe_to_define___extensions__=no
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 fi
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5628 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5629 test $ac_cv_safe_to_define___extensions__ = yes &&
5630 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5631
5632 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5633
5634 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5635
5636 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5637
5638 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5639
5640
5641
5642
5643
5644
5645 case `pwd` in
5646 *\ * | *\ *)
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5648 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5649 esac
5650
5651
5652
5653 macro_version='2.2.7a'
5654 macro_revision='1.3134'
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668 ltmain="$ac_aux_dir/ltmain.sh"
5669
5670 # Backslashify metacharacters that are still active within
5671 # double-quoted strings.
5672 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5673
5674 # Same as above, but do not quote variable references.
5675 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5676
5677 # Sed substitution to delay expansion of an escaped shell variable in a
5678 # double_quote_subst'ed string.
5679 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5680
5681 # Sed substitution to delay expansion of an escaped single quote.
5682 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5683
5684 # Sed substitution to avoid accidental globbing in evaled expressions
5685 no_glob_subst='s/\*/\\\*/g'
5686
5687 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5688 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5689 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5690
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5692 $as_echo_n "checking how to print strings... " >&6; }
5693 # Test print first, because it will be a builtin if present.
5694 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5695 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5696 ECHO='print -r --'
5697 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5698 ECHO='printf %s\n'
5699 else
5700 # Use this function as a fallback that always works.
5701 func_fallback_echo ()
5702 {
5703 eval 'cat <<_LTECHO_EOF
5704 $1
5705 _LTECHO_EOF'
5706 }
5707 ECHO='func_fallback_echo'
5708 fi
5709
5710 # func_echo_all arg...
5711 # Invoke $ECHO with all args, space-separated.
5712 func_echo_all ()
5713 {
5714 $ECHO ""
5715 }
5716
5717 case "$ECHO" in
5718 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5719 $as_echo "printf" >&6; } ;;
5720 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5721 $as_echo "print -r" >&6; } ;;
5722 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5723 $as_echo "cat" >&6; } ;;
5724 esac
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5740 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5741 if test "${ac_cv_path_SED+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5745 for ac_i in 1 2 3 4 5 6 7; do
5746 ac_script="$ac_script$as_nl$ac_script"
5747 done
5748 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5749 { ac_script=; unset ac_script;}
5750 if test -z "$SED"; then
5751 ac_path_SED_found=false
5752 # Loop through the user's path and test for each of PROGNAME-LIST
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_prog in sed gsed; do
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5761 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5762 # Check for GNU ac_path_SED and select it if it is found.
5763 # Check for GNU $ac_path_SED
5764 case `"$ac_path_SED" --version 2>&1` in
5765 *GNU*)
5766 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5767 *)
5768 ac_count=0
5769 $as_echo_n 0123456789 >"conftest.in"
5770 while :
5771 do
5772 cat "conftest.in" "conftest.in" >"conftest.tmp"
5773 mv "conftest.tmp" "conftest.in"
5774 cp "conftest.in" "conftest.nl"
5775 $as_echo '' >> "conftest.nl"
5776 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5778 as_fn_arith $ac_count + 1 && ac_count=$as_val
5779 if test $ac_count -gt ${ac_path_SED_max-0}; then
5780 # Best one so far, save it but keep looking for a better one
5781 ac_cv_path_SED="$ac_path_SED"
5782 ac_path_SED_max=$ac_count
5783 fi
5784 # 10*(2^10) chars as input seems more than enough
5785 test $ac_count -gt 10 && break
5786 done
5787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5788 esac
5789
5790 $ac_path_SED_found && break 3
5791 done
5792 done
5793 done
5794 IFS=$as_save_IFS
5795 if test -z "$ac_cv_path_SED"; then
5796 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5797 fi
5798 else
5799 ac_cv_path_SED=$SED
5800 fi
5801
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5804 $as_echo "$ac_cv_path_SED" >&6; }
5805 SED="$ac_cv_path_SED"
5806 rm -f conftest.sed
5807
5808 test -z "$SED" && SED=sed
5809 Xsed="$SED -e 1s/^X//"
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5822 $as_echo_n "checking for fgrep... " >&6; }
5823 if test "${ac_cv_path_FGREP+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5827 then ac_cv_path_FGREP="$GREP -F"
5828 else
5829 if test -z "$FGREP"; then
5830 ac_path_FGREP_found=false
5831 # Loop through the user's path and test for each of PROGNAME-LIST
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5834 do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_prog in fgrep; do
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5840 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5841 # Check for GNU ac_path_FGREP and select it if it is found.
5842 # Check for GNU $ac_path_FGREP
5843 case `"$ac_path_FGREP" --version 2>&1` in
5844 *GNU*)
5845 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5846 *)
5847 ac_count=0
5848 $as_echo_n 0123456789 >"conftest.in"
5849 while :
5850 do
5851 cat "conftest.in" "conftest.in" >"conftest.tmp"
5852 mv "conftest.tmp" "conftest.in"
5853 cp "conftest.in" "conftest.nl"
5854 $as_echo 'FGREP' >> "conftest.nl"
5855 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5857 as_fn_arith $ac_count + 1 && ac_count=$as_val
5858 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5859 # Best one so far, save it but keep looking for a better one
5860 ac_cv_path_FGREP="$ac_path_FGREP"
5861 ac_path_FGREP_max=$ac_count
5862 fi
5863 # 10*(2^10) chars as input seems more than enough
5864 test $ac_count -gt 10 && break
5865 done
5866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5867 esac
5868
5869 $ac_path_FGREP_found && break 3
5870 done
5871 done
5872 done
5873 IFS=$as_save_IFS
5874 if test -z "$ac_cv_path_FGREP"; then
5875 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5876 fi
5877 else
5878 ac_cv_path_FGREP=$FGREP
5879 fi
5880
5881 fi
5882 fi
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5884 $as_echo "$ac_cv_path_FGREP" >&6; }
5885 FGREP="$ac_cv_path_FGREP"
5886
5887
5888 test -z "$GREP" && GREP=grep
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908 # Check whether --with-gnu-ld was given.
5909 if test "${with_gnu_ld+set}" = set; then :
5910 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5911 else
5912 with_gnu_ld=no
5913 fi
5914
5915 ac_prog=ld
5916 if test "$GCC" = yes; then
5917 # Check if gcc -print-prog-name=ld gives a path.
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5919 $as_echo_n "checking for ld used by $CC... " >&6; }
5920 case $host in
5921 *-*-mingw*)
5922 # gcc leaves a trailing carriage return which upsets mingw
5923 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5924 *)
5925 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5926 esac
5927 case $ac_prog in
5928 # Accept absolute paths.
5929 [\\/]* | ?:[\\/]*)
5930 re_direlt='/[^/][^/]*/\.\./'
5931 # Canonicalize the pathname of ld
5932 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5933 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5934 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5935 done
5936 test -z "$LD" && LD="$ac_prog"
5937 ;;
5938 "")
5939 # If it fails, then pretend we aren't using GCC.
5940 ac_prog=ld
5941 ;;
5942 *)
5943 # If it is relative, then search for the first ld in PATH.
5944 with_gnu_ld=unknown
5945 ;;
5946 esac
5947 elif test "$with_gnu_ld" = yes; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5949 $as_echo_n "checking for GNU ld... " >&6; }
5950 else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5952 $as_echo_n "checking for non-GNU ld... " >&6; }
5953 fi
5954 if test "${lt_cv_path_LD+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 if test -z "$LD"; then
5958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5959 for ac_dir in $PATH; do
5960 IFS="$lt_save_ifs"
5961 test -z "$ac_dir" && ac_dir=.
5962 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5963 lt_cv_path_LD="$ac_dir/$ac_prog"
5964 # Check to see if the program is GNU ld. I'd rather use --version,
5965 # but apparently some variants of GNU ld only accept -v.
5966 # Break only if it was the GNU/non-GNU ld that we prefer.
5967 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5968 *GNU* | *'with BFD'*)
5969 test "$with_gnu_ld" != no && break
5970 ;;
5971 *)
5972 test "$with_gnu_ld" != yes && break
5973 ;;
5974 esac
5975 fi
5976 done
5977 IFS="$lt_save_ifs"
5978 else
5979 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5980 fi
5981 fi
5982
5983 LD="$lt_cv_path_LD"
5984 if test -n "$LD"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5986 $as_echo "$LD" >&6; }
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5993 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5994 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5998 case `$LD -v 2>&1 </dev/null` in
5999 *GNU* | *'with BFD'*)
6000 lt_cv_prog_gnu_ld=yes
6001 ;;
6002 *)
6003 lt_cv_prog_gnu_ld=no
6004 ;;
6005 esac
6006 fi
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6008 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6009 with_gnu_ld=$lt_cv_prog_gnu_ld
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6020 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6021 if test "${lt_cv_path_NM+set}" = set; then :
6022 $as_echo_n "(cached) " >&6
6023 else
6024 if test -n "$NM"; then
6025 # Let the user override the test.
6026 lt_cv_path_NM="$NM"
6027 else
6028 lt_nm_to_check="${ac_tool_prefix}nm"
6029 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6030 lt_nm_to_check="$lt_nm_to_check nm"
6031 fi
6032 for lt_tmp_nm in $lt_nm_to_check; do
6033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6034 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6035 IFS="$lt_save_ifs"
6036 test -z "$ac_dir" && ac_dir=.
6037 tmp_nm="$ac_dir/$lt_tmp_nm"
6038 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6039 # Check to see if the nm accepts a BSD-compat flag.
6040 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6041 # nm: unknown option "B" ignored
6042 # Tru64's nm complains that /dev/null is an invalid object file
6043 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6044 */dev/null* | *'Invalid file or object type'*)
6045 lt_cv_path_NM="$tmp_nm -B"
6046 break
6047 ;;
6048 *)
6049 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6050 */dev/null*)
6051 lt_cv_path_NM="$tmp_nm -p"
6052 break
6053 ;;
6054 *)
6055 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6056 continue # so that we can try to find one that supports BSD flags
6057 ;;
6058 esac
6059 ;;
6060 esac
6061 fi
6062 done
6063 IFS="$lt_save_ifs"
6064 done
6065 : ${lt_cv_path_NM=no}
6066 fi
6067 fi
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6069 $as_echo "$lt_cv_path_NM" >&6; }
6070 if test "$lt_cv_path_NM" != "no"; then
6071 NM="$lt_cv_path_NM"
6072 else
6073 # Didn't find any BSD compatible name lister, look for dumpbin.
6074 if test -n "$DUMPBIN"; then :
6075 # Let the user override the test.
6076 else
6077 if test -n "$ac_tool_prefix"; then
6078 for ac_prog in dumpbin "link -dump"
6079 do
6080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083 $as_echo_n "checking for $ac_word... " >&6; }
6084 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 if test -n "$DUMPBIN"; then
6088 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6097 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 break 2
6100 fi
6101 done
6102 done
6103 IFS=$as_save_IFS
6104
6105 fi
6106 fi
6107 DUMPBIN=$ac_cv_prog_DUMPBIN
6108 if test -n "$DUMPBIN"; then
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6110 $as_echo "$DUMPBIN" >&6; }
6111 else
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113 $as_echo "no" >&6; }
6114 fi
6115
6116
6117 test -n "$DUMPBIN" && break
6118 done
6119 fi
6120 if test -z "$DUMPBIN"; then
6121 ac_ct_DUMPBIN=$DUMPBIN
6122 for ac_prog in dumpbin "link -dump"
6123 do
6124 # Extract the first word of "$ac_prog", so it can be a program name with args.
6125 set dummy $ac_prog; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 if test -n "$ac_ct_DUMPBIN"; then
6132 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6144 fi
6145 done
6146 done
6147 IFS=$as_save_IFS
6148
6149 fi
6150 fi
6151 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6152 if test -n "$ac_ct_DUMPBIN"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6154 $as_echo "$ac_ct_DUMPBIN" >&6; }
6155 else
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6158 fi
6159
6160
6161 test -n "$ac_ct_DUMPBIN" && break
6162 done
6163
6164 if test "x$ac_ct_DUMPBIN" = x; then
6165 DUMPBIN=":"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6172 esac
6173 DUMPBIN=$ac_ct_DUMPBIN
6174 fi
6175 fi
6176
6177 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6178 *COFF*)
6179 DUMPBIN="$DUMPBIN -symbols"
6180 ;;
6181 *)
6182 DUMPBIN=:
6183 ;;
6184 esac
6185 fi
6186
6187 if test "$DUMPBIN" != ":"; then
6188 NM="$DUMPBIN"
6189 fi
6190 fi
6191 test -z "$NM" && NM=nm
6192
6193
6194
6195
6196
6197
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6199 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6200 if test "${lt_cv_nm_interface+set}" = set; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 lt_cv_nm_interface="BSD nm"
6204 echo "int some_variable = 0;" > conftest.$ac_ext
6205 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6206 (eval "$ac_compile" 2>conftest.err)
6207 cat conftest.err >&5
6208 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6209 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6210 cat conftest.err >&5
6211 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6212 cat conftest.out >&5
6213 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6214 lt_cv_nm_interface="MS dumpbin"
6215 fi
6216 rm -f conftest*
6217 fi
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6219 $as_echo "$lt_cv_nm_interface" >&6; }
6220
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6222 $as_echo_n "checking whether ln -s works... " >&6; }
6223 LN_S=$as_ln_s
6224 if test "$LN_S" = "ln -s"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6226 $as_echo "yes" >&6; }
6227 else
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6229 $as_echo "no, using $LN_S" >&6; }
6230 fi
6231
6232 # find the maximum length of command line arguments
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6234 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6235 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 i=0
6239 teststring="ABCD"
6240
6241 case $build_os in
6242 msdosdjgpp*)
6243 # On DJGPP, this test can blow up pretty badly due to problems in libc
6244 # (any single argument exceeding 2000 bytes causes a buffer overrun
6245 # during glob expansion). Even if it were fixed, the result of this
6246 # check would be larger than it should be.
6247 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6248 ;;
6249
6250 gnu*)
6251 # Under GNU Hurd, this test is not required because there is
6252 # no limit to the length of command line arguments.
6253 # Libtool will interpret -1 as no limit whatsoever
6254 lt_cv_sys_max_cmd_len=-1;
6255 ;;
6256
6257 cygwin* | mingw* | cegcc*)
6258 # On Win9x/ME, this test blows up -- it succeeds, but takes
6259 # about 5 minutes as the teststring grows exponentially.
6260 # Worse, since 9x/ME are not pre-emptively multitasking,
6261 # you end up with a "frozen" computer, even though with patience
6262 # the test eventually succeeds (with a max line length of 256k).
6263 # Instead, let's just punt: use the minimum linelength reported by
6264 # all of the supported platforms: 8192 (on NT/2K/XP).
6265 lt_cv_sys_max_cmd_len=8192;
6266 ;;
6267
6268 mint*)
6269 # On MiNT this can take a long time and run out of memory.
6270 lt_cv_sys_max_cmd_len=8192;
6271 ;;
6272
6273 amigaos*)
6274 # On AmigaOS with pdksh, this test takes hours, literally.
6275 # So we just punt and use a minimum line length of 8192.
6276 lt_cv_sys_max_cmd_len=8192;
6277 ;;
6278
6279 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6280 # This has been around since 386BSD, at least. Likely further.
6281 if test -x /sbin/sysctl; then
6282 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6283 elif test -x /usr/sbin/sysctl; then
6284 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6285 else
6286 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6287 fi
6288 # And add a safety zone
6289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6291 ;;
6292
6293 interix*)
6294 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6295 lt_cv_sys_max_cmd_len=196608
6296 ;;
6297
6298 osf*)
6299 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6300 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6301 # nice to cause kernel panics so lets avoid the loop below.
6302 # First set a reasonable default.
6303 lt_cv_sys_max_cmd_len=16384
6304 #
6305 if test -x /sbin/sysconfig; then
6306 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6307 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6308 esac
6309 fi
6310 ;;
6311 sco3.2v5*)
6312 lt_cv_sys_max_cmd_len=102400
6313 ;;
6314 sysv5* | sco5v6* | sysv4.2uw2*)
6315 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6316 if test -n "$kargmax"; then
6317 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6318 else
6319 lt_cv_sys_max_cmd_len=32768
6320 fi
6321 ;;
6322 *)
6323 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6324 if test -n "$lt_cv_sys_max_cmd_len"; then
6325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6327 else
6328 # Make teststring a little bigger before we do anything with it.
6329 # a 1K string should be a reasonable start.
6330 for i in 1 2 3 4 5 6 7 8 ; do
6331 teststring=$teststring$teststring
6332 done
6333 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6334 # If test is not a shell built-in, we'll probably end up computing a
6335 # maximum length that is only half of the actual maximum length, but
6336 # we can't tell.
6337 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6338 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6339 test $i != 17 # 1/2 MB should be enough
6340 do
6341 i=`expr $i + 1`
6342 teststring=$teststring$teststring
6343 done
6344 # Only check the string length outside the loop.
6345 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6346 teststring=
6347 # Add a significant safety factor because C++ compilers can tack on
6348 # massive amounts of additional arguments before passing them to the
6349 # linker. It appears as though 1/2 is a usable value.
6350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6351 fi
6352 ;;
6353 esac
6354
6355 fi
6356
6357 if test -n $lt_cv_sys_max_cmd_len ; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6359 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6360 else
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6362 $as_echo "none" >&6; }
6363 fi
6364 max_cmd_len=$lt_cv_sys_max_cmd_len
6365
6366
6367
6368
6369
6370
6371 : ${CP="cp -f"}
6372 : ${MV="mv -f"}
6373 : ${RM="rm -f"}
6374
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6376 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6377 # Try some XSI features
6378 xsi_shell=no
6379 ( _lt_dummy="a/b/c"
6380 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6381 = c,a/b,, \
6382 && eval 'test $(( 1 + 1 )) -eq 2 \
6383 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6384 && xsi_shell=yes
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6386 $as_echo "$xsi_shell" >&6; }
6387
6388
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6390 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6391 lt_shell_append=no
6392 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6393 >/dev/null 2>&1 \
6394 && lt_shell_append=yes
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6396 $as_echo "$lt_shell_append" >&6; }
6397
6398
6399 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6400 lt_unset=unset
6401 else
6402 lt_unset=false
6403 fi
6404
6405
6406
6407
6408
6409 # test EBCDIC or ASCII
6410 case `echo X|tr X '\101'` in
6411 A) # ASCII based system
6412 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6413 lt_SP2NL='tr \040 \012'
6414 lt_NL2SP='tr \015\012 \040\040'
6415 ;;
6416 *) # EBCDIC based system
6417 lt_SP2NL='tr \100 \n'
6418 lt_NL2SP='tr \r\n \100\100'
6419 ;;
6420 esac
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6431 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6432 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 lt_cv_ld_reload_flag='-r'
6436 fi
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6438 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6439 reload_flag=$lt_cv_ld_reload_flag
6440 case $reload_flag in
6441 "" | " "*) ;;
6442 *) reload_flag=" $reload_flag" ;;
6443 esac
6444 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6445 case $host_os in
6446 darwin*)
6447 if test "$GCC" = yes; then
6448 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6449 else
6450 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6451 fi
6452 ;;
6453 esac
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463 if test -n "$ac_tool_prefix"; then
6464 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6465 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471 if test -n "$OBJDUMP"; then
6472 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6473 else
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6476 do
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6481 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 break 2
6484 fi
6485 done
6486 done
6487 IFS=$as_save_IFS
6488
6489 fi
6490 fi
6491 OBJDUMP=$ac_cv_prog_OBJDUMP
6492 if test -n "$OBJDUMP"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6494 $as_echo "$OBJDUMP" >&6; }
6495 else
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6498 fi
6499
6500
6501 fi
6502 if test -z "$ac_cv_prog_OBJDUMP"; then
6503 ac_ct_OBJDUMP=$OBJDUMP
6504 # Extract the first word of "objdump", so it can be a program name with args.
6505 set dummy objdump; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 if test -n "$ac_ct_OBJDUMP"; then
6512 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6513 else
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6516 do
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 break 2
6524 fi
6525 done
6526 done
6527 IFS=$as_save_IFS
6528
6529 fi
6530 fi
6531 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6532 if test -n "$ac_ct_OBJDUMP"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6534 $as_echo "$ac_ct_OBJDUMP" >&6; }
6535 else
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6538 fi
6539
6540 if test "x$ac_ct_OBJDUMP" = x; then
6541 OBJDUMP="false"
6542 else
6543 case $cross_compiling:$ac_tool_warned in
6544 yes:)
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6547 ac_tool_warned=yes ;;
6548 esac
6549 OBJDUMP=$ac_ct_OBJDUMP
6550 fi
6551 else
6552 OBJDUMP="$ac_cv_prog_OBJDUMP"
6553 fi
6554
6555 test -z "$OBJDUMP" && OBJDUMP=objdump
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6566 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6567 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 lt_cv_file_magic_cmd='$MAGIC_CMD'
6571 lt_cv_file_magic_test_file=
6572 lt_cv_deplibs_check_method='unknown'
6573 # Need to set the preceding variable on all platforms that support
6574 # interlibrary dependencies.
6575 # 'none' -- dependencies not supported.
6576 # `unknown' -- same as none, but documents that we really don't know.
6577 # 'pass_all' -- all dependencies passed with no checks.
6578 # 'test_compile' -- check by making test program.
6579 # 'file_magic [[regex]]' -- check by looking for files in library path
6580 # which responds to the $file_magic_cmd with a given extended regex.
6581 # If you have `file' or equivalent on your system and you're not sure
6582 # whether `pass_all' will *always* work, you probably want this one.
6583
6584 case $host_os in
6585 aix[4-9]*)
6586 lt_cv_deplibs_check_method=pass_all
6587 ;;
6588
6589 beos*)
6590 lt_cv_deplibs_check_method=pass_all
6591 ;;
6592
6593 bsdi[45]*)
6594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6595 lt_cv_file_magic_cmd='/usr/bin/file -L'
6596 lt_cv_file_magic_test_file=/shlib/libc.so
6597 ;;
6598
6599 cygwin*)
6600 # func_win32_libid is a shell function defined in ltmain.sh
6601 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6602 lt_cv_file_magic_cmd='func_win32_libid'
6603 ;;
6604
6605 mingw* | pw32*)
6606 # Base MSYS/MinGW do not provide the 'file' command needed by
6607 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6608 # unless we find 'file', for example because we are cross-compiling.
6609 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6610 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6611 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6612 lt_cv_file_magic_cmd='func_win32_libid'
6613 else
6614 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6615 lt_cv_file_magic_cmd='$OBJDUMP -f'
6616 fi
6617 ;;
6618
6619 cegcc*)
6620 # use the weaker test based on 'objdump'. See mingw*.
6621 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6622 lt_cv_file_magic_cmd='$OBJDUMP -f'
6623 ;;
6624
6625 darwin* | rhapsody*)
6626 lt_cv_deplibs_check_method=pass_all
6627 ;;
6628
6629 freebsd* | dragonfly*)
6630 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6631 case $host_cpu in
6632 i*86 )
6633 # Not sure whether the presence of OpenBSD here was a mistake.
6634 # Let's accept both of them until this is cleared up.
6635 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6636 lt_cv_file_magic_cmd=/usr/bin/file
6637 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6638 ;;
6639 esac
6640 else
6641 lt_cv_deplibs_check_method=pass_all
6642 fi
6643 ;;
6644
6645 gnu*)
6646 lt_cv_deplibs_check_method=pass_all
6647 ;;
6648
6649 haiku*)
6650 lt_cv_deplibs_check_method=pass_all
6651 ;;
6652
6653 hpux10.20* | hpux11*)
6654 lt_cv_file_magic_cmd=/usr/bin/file
6655 case $host_cpu in
6656 ia64*)
6657 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6658 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6659 ;;
6660 hppa*64*)
6661 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]'
6662 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6663 ;;
6664 *)
6665 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6666 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6667 ;;
6668 esac
6669 ;;
6670
6671 interix[3-9]*)
6672 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6674 ;;
6675
6676 irix5* | irix6* | nonstopux*)
6677 case $LD in
6678 *-32|*"-32 ") libmagic=32-bit;;
6679 *-n32|*"-n32 ") libmagic=N32;;
6680 *-64|*"-64 ") libmagic=64-bit;;
6681 *) libmagic=never-match;;
6682 esac
6683 lt_cv_deplibs_check_method=pass_all
6684 ;;
6685
6686 # This must be Linux ELF.
6687 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6688 lt_cv_deplibs_check_method=pass_all
6689 ;;
6690
6691 netbsd*)
6692 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6694 else
6695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6696 fi
6697 ;;
6698
6699 newos6*)
6700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6701 lt_cv_file_magic_cmd=/usr/bin/file
6702 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6703 ;;
6704
6705 *nto* | *qnx*)
6706 lt_cv_deplibs_check_method=pass_all
6707 ;;
6708
6709 openbsd*)
6710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6712 else
6713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6714 fi
6715 ;;
6716
6717 osf3* | osf4* | osf5*)
6718 lt_cv_deplibs_check_method=pass_all
6719 ;;
6720
6721 rdos*)
6722 lt_cv_deplibs_check_method=pass_all
6723 ;;
6724
6725 solaris*)
6726 lt_cv_deplibs_check_method=pass_all
6727 ;;
6728
6729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6730 lt_cv_deplibs_check_method=pass_all
6731 ;;
6732
6733 sysv4 | sysv4.3*)
6734 case $host_vendor in
6735 motorola)
6736 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]'
6737 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6738 ;;
6739 ncr)
6740 lt_cv_deplibs_check_method=pass_all
6741 ;;
6742 sequent)
6743 lt_cv_file_magic_cmd='/bin/file'
6744 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6745 ;;
6746 sni)
6747 lt_cv_file_magic_cmd='/bin/file'
6748 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6749 lt_cv_file_magic_test_file=/lib/libc.so
6750 ;;
6751 siemens)
6752 lt_cv_deplibs_check_method=pass_all
6753 ;;
6754 pc)
6755 lt_cv_deplibs_check_method=pass_all
6756 ;;
6757 esac
6758 ;;
6759
6760 tpf*)
6761 lt_cv_deplibs_check_method=pass_all
6762 ;;
6763 esac
6764
6765 fi
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6767 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6768 file_magic_cmd=$lt_cv_file_magic_cmd
6769 deplibs_check_method=$lt_cv_deplibs_check_method
6770 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783 if test -n "$ac_tool_prefix"; then
6784 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6785 set dummy ${ac_tool_prefix}ar; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if test "${ac_cv_prog_AR+set}" = set; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 if test -n "$AR"; then
6792 ac_cv_prog_AR="$AR" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_prog_AR="${ac_tool_prefix}ar"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6804 fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809 fi
6810 fi
6811 AR=$ac_cv_prog_AR
6812 if test -n "$AR"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6814 $as_echo "$AR" >&6; }
6815 else
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6818 fi
6819
6820
6821 fi
6822 if test -z "$ac_cv_prog_AR"; then
6823 ac_ct_AR=$AR
6824 # Extract the first word of "ar", so it can be a program name with args.
6825 set dummy ar; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 if test -n "$ac_ct_AR"; then
6832 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_prog_ac_ct_AR="ar"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6844 fi
6845 done
6846 done
6847 IFS=$as_save_IFS
6848
6849 fi
6850 fi
6851 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6852 if test -n "$ac_ct_AR"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6854 $as_echo "$ac_ct_AR" >&6; }
6855 else
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6858 fi
6859
6860 if test "x$ac_ct_AR" = x; then
6861 AR="false"
6862 else
6863 case $cross_compiling:$ac_tool_warned in
6864 yes:)
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867 ac_tool_warned=yes ;;
6868 esac
6869 AR=$ac_ct_AR
6870 fi
6871 else
6872 AR="$ac_cv_prog_AR"
6873 fi
6874
6875 test -z "$AR" && AR=ar
6876 test -z "$AR_FLAGS" && AR_FLAGS=cru
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}strip; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if test "${ac_cv_prog_STRIP+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 if test -n "$STRIP"; then
6897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6913
6914 fi
6915 fi
6916 STRIP=$ac_cv_prog_STRIP
6917 if test -n "$STRIP"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6919 $as_echo "$STRIP" >&6; }
6920 else
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6923 fi
6924
6925
6926 fi
6927 if test -z "$ac_cv_prog_STRIP"; then
6928 ac_ct_STRIP=$STRIP
6929 # Extract the first word of "strip", so it can be a program name with args.
6930 set dummy strip; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 if test -n "$ac_ct_STRIP"; then
6937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_prog_ac_ct_STRIP="strip"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6949 fi
6950 done
6951 done
6952 IFS=$as_save_IFS
6953
6954 fi
6955 fi
6956 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6957 if test -n "$ac_ct_STRIP"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6959 $as_echo "$ac_ct_STRIP" >&6; }
6960 else
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6963 fi
6964
6965 if test "x$ac_ct_STRIP" = x; then
6966 STRIP=":"
6967 else
6968 case $cross_compiling:$ac_tool_warned in
6969 yes:)
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972 ac_tool_warned=yes ;;
6973 esac
6974 STRIP=$ac_ct_STRIP
6975 fi
6976 else
6977 STRIP="$ac_cv_prog_STRIP"
6978 fi
6979
6980 test -z "$STRIP" && STRIP=:
6981
6982
6983
6984
6985
6986
6987 if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6989 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 if test -n "$RANLIB"; then
6996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7008 fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013 fi
7014 fi
7015 RANLIB=$ac_cv_prog_RANLIB
7016 if test -n "$RANLIB"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7018 $as_echo "$RANLIB" >&6; }
7019 else
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7022 fi
7023
7024
7025 fi
7026 if test -z "$ac_cv_prog_RANLIB"; then
7027 ac_ct_RANLIB=$RANLIB
7028 # Extract the first word of "ranlib", so it can be a program name with args.
7029 set dummy ranlib; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$ac_ct_RANLIB"; then
7036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_ac_ct_RANLIB="ranlib"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7056 if test -n "$ac_ct_RANLIB"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7058 $as_echo "$ac_ct_RANLIB" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063
7064 if test "x$ac_ct_RANLIB" = x; then
7065 RANLIB=":"
7066 else
7067 case $cross_compiling:$ac_tool_warned in
7068 yes:)
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071 ac_tool_warned=yes ;;
7072 esac
7073 RANLIB=$ac_ct_RANLIB
7074 fi
7075 else
7076 RANLIB="$ac_cv_prog_RANLIB"
7077 fi
7078
7079 test -z "$RANLIB" && RANLIB=:
7080
7081
7082
7083
7084
7085
7086 # Determine commands to create old-style static archives.
7087 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7088 old_postinstall_cmds='chmod 644 $oldlib'
7089 old_postuninstall_cmds=
7090
7091 if test -n "$RANLIB"; then
7092 case $host_os in
7093 openbsd*)
7094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7095 ;;
7096 *)
7097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7098 ;;
7099 esac
7100 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7101 fi
7102
7103 case $host_os in
7104 darwin*)
7105 lock_old_archive_extraction=yes ;;
7106 *)
7107 lock_old_archive_extraction=no ;;
7108 esac
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148 # If no C compiler was specified, use CC.
7149 LTCC=${LTCC-"$CC"}
7150
7151 # If no C compiler flags were specified, use CFLAGS.
7152 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7153
7154 # Allow CC to be a program name with arguments.
7155 compiler=$CC
7156
7157
7158 # Check for command to grab the raw symbol name followed by C symbol from nm.
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7160 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7161 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164
7165 # These are sane defaults that work on at least a few old systems.
7166 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7167
7168 # Character class describing NM global symbol codes.
7169 symcode='[BCDEGRST]'
7170
7171 # Regexp to match symbols that can be accessed directly from C.
7172 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7173
7174 # Define system-specific variables.
7175 case $host_os in
7176 aix*)
7177 symcode='[BCDT]'
7178 ;;
7179 cygwin* | mingw* | pw32* | cegcc*)
7180 symcode='[ABCDGISTW]'
7181 ;;
7182 hpux*)
7183 if test "$host_cpu" = ia64; then
7184 symcode='[ABCDEGRST]'
7185 fi
7186 ;;
7187 irix* | nonstopux*)
7188 symcode='[BCDEGRST]'
7189 ;;
7190 osf*)
7191 symcode='[BCDEGQRST]'
7192 ;;
7193 solaris*)
7194 symcode='[BDRT]'
7195 ;;
7196 sco3.2v5*)
7197 symcode='[DT]'
7198 ;;
7199 sysv4.2uw2*)
7200 symcode='[DT]'
7201 ;;
7202 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7203 symcode='[ABDT]'
7204 ;;
7205 sysv4)
7206 symcode='[DFNSTU]'
7207 ;;
7208 esac
7209
7210 # If we're using GNU nm, then use its standard symbol codes.
7211 case `$NM -V 2>&1` in
7212 *GNU* | *'with BFD'*)
7213 symcode='[ABCDGIRSTW]' ;;
7214 esac
7215
7216 # Transform an extracted symbol line into a proper C declaration.
7217 # Some systems (esp. on ia64) link data and code symbols differently,
7218 # so use this general approach.
7219 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7220
7221 # Transform an extracted symbol line into symbol name and symbol address
7222 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7223 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'"
7224
7225 # Handle CRLF in mingw tool chain
7226 opt_cr=
7227 case $build_os in
7228 mingw*)
7229 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7230 ;;
7231 esac
7232
7233 # Try without a prefix underscore, then with it.
7234 for ac_symprfx in "" "_"; do
7235
7236 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7237 symxfrm="\\1 $ac_symprfx\\2 \\2"
7238
7239 # Write the raw and C identifiers.
7240 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7241 # Fake it for dumpbin and say T for any non-static function
7242 # and D for any global variable.
7243 # Also find C++ and __fastcall symbols from MSVC++,
7244 # which start with @ or ?.
7245 lt_cv_sys_global_symbol_pipe="$AWK '"\
7246 " {last_section=section; section=\$ 3};"\
7247 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7248 " \$ 0!~/External *\|/{next};"\
7249 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7250 " {if(hide[section]) next};"\
7251 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7252 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7253 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7254 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7255 " ' prfx=^$ac_symprfx"
7256 else
7257 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7258 fi
7259
7260 # Check to see that the pipe works correctly.
7261 pipe_works=no
7262
7263 rm -f conftest*
7264 cat > conftest.$ac_ext <<_LT_EOF
7265 #ifdef __cplusplus
7266 extern "C" {
7267 #endif
7268 char nm_test_var;
7269 void nm_test_func(void);
7270 void nm_test_func(void){}
7271 #ifdef __cplusplus
7272 }
7273 #endif
7274 int main(){nm_test_var='a';nm_test_func();return(0);}
7275 _LT_EOF
7276
7277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7278 (eval $ac_compile) 2>&5
7279 ac_status=$?
7280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281 test $ac_status = 0; }; then
7282 # Now try to grab the symbols.
7283 nlist=conftest.nm
7284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7285 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7286 ac_status=$?
7287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288 test $ac_status = 0; } && test -s "$nlist"; then
7289 # Try sorting and uniquifying the output.
7290 if sort "$nlist" | uniq > "$nlist"T; then
7291 mv -f "$nlist"T "$nlist"
7292 else
7293 rm -f "$nlist"T
7294 fi
7295
7296 # Make sure that we snagged all the symbols we need.
7297 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7298 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7299 cat <<_LT_EOF > conftest.$ac_ext
7300 #ifdef __cplusplus
7301 extern "C" {
7302 #endif
7303
7304 _LT_EOF
7305 # Now generate the symbol file.
7306 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7307
7308 cat <<_LT_EOF >> conftest.$ac_ext
7309
7310 /* The mapping between symbol names and symbols. */
7311 const struct {
7312 const char *name;
7313 void *address;
7314 }
7315 lt__PROGRAM__LTX_preloaded_symbols[] =
7316 {
7317 { "@PROGRAM@", (void *) 0 },
7318 _LT_EOF
7319 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7320 cat <<\_LT_EOF >> conftest.$ac_ext
7321 {0, (void *) 0}
7322 };
7323
7324 /* This works around a problem in FreeBSD linker */
7325 #ifdef FREEBSD_WORKAROUND
7326 static const void *lt_preloaded_setup() {
7327 return lt__PROGRAM__LTX_preloaded_symbols;
7328 }
7329 #endif
7330
7331 #ifdef __cplusplus
7332 }
7333 #endif
7334 _LT_EOF
7335 # Now try linking the two files.
7336 mv conftest.$ac_objext conftstm.$ac_objext
7337 lt_save_LIBS="$LIBS"
7338 lt_save_CFLAGS="$CFLAGS"
7339 LIBS="conftstm.$ac_objext"
7340 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7342 (eval $ac_link) 2>&5
7343 ac_status=$?
7344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7345 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7346 pipe_works=yes
7347 fi
7348 LIBS="$lt_save_LIBS"
7349 CFLAGS="$lt_save_CFLAGS"
7350 else
7351 echo "cannot find nm_test_func in $nlist" >&5
7352 fi
7353 else
7354 echo "cannot find nm_test_var in $nlist" >&5
7355 fi
7356 else
7357 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7358 fi
7359 else
7360 echo "$progname: failed program was:" >&5
7361 cat conftest.$ac_ext >&5
7362 fi
7363 rm -rf conftest* conftst*
7364
7365 # Do not use the global_symbol_pipe unless it works.
7366 if test "$pipe_works" = yes; then
7367 break
7368 else
7369 lt_cv_sys_global_symbol_pipe=
7370 fi
7371 done
7372
7373 fi
7374
7375 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7376 lt_cv_sys_global_symbol_to_cdecl=
7377 fi
7378 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7380 $as_echo "failed" >&6; }
7381 else
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7383 $as_echo "ok" >&6; }
7384 fi
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407 # Check whether --enable-libtool-lock was given.
7408 if test "${enable_libtool_lock+set}" = set; then :
7409 enableval=$enable_libtool_lock;
7410 fi
7411
7412 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7413
7414 # Some flags need to be propagated to the compiler or linker for good
7415 # libtool support.
7416 case $host in
7417 ia64-*-hpux*)
7418 # Find out which ABI we are using.
7419 echo 'int i;' > conftest.$ac_ext
7420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7421 (eval $ac_compile) 2>&5
7422 ac_status=$?
7423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424 test $ac_status = 0; }; then
7425 case `/usr/bin/file conftest.$ac_objext` in
7426 *ELF-32*)
7427 HPUX_IA64_MODE="32"
7428 ;;
7429 *ELF-64*)
7430 HPUX_IA64_MODE="64"
7431 ;;
7432 esac
7433 fi
7434 rm -rf conftest*
7435 ;;
7436 *-*-irix6*)
7437 # Find out which ABI we are using.
7438 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7440 (eval $ac_compile) 2>&5
7441 ac_status=$?
7442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7443 test $ac_status = 0; }; then
7444 if test "$lt_cv_prog_gnu_ld" = yes; then
7445 case `/usr/bin/file conftest.$ac_objext` in
7446 *32-bit*)
7447 LD="${LD-ld} -melf32bsmip"
7448 ;;
7449 *N32*)
7450 LD="${LD-ld} -melf32bmipn32"
7451 ;;
7452 *64-bit*)
7453 LD="${LD-ld} -melf64bmip"
7454 ;;
7455 esac
7456 else
7457 case `/usr/bin/file conftest.$ac_objext` in
7458 *32-bit*)
7459 LD="${LD-ld} -32"
7460 ;;
7461 *N32*)
7462 LD="${LD-ld} -n32"
7463 ;;
7464 *64-bit*)
7465 LD="${LD-ld} -64"
7466 ;;
7467 esac
7468 fi
7469 fi
7470 rm -rf conftest*
7471 ;;
7472
7473 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7474 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7475 # Find out which ABI we are using.
7476 echo 'int i;' > conftest.$ac_ext
7477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7478 (eval $ac_compile) 2>&5
7479 ac_status=$?
7480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7481 test $ac_status = 0; }; then
7482 case `/usr/bin/file conftest.o` in
7483 *32-bit*)
7484 case $host in
7485 x86_64-*kfreebsd*-gnu)
7486 LD="${LD-ld} -m elf_i386_fbsd"
7487 ;;
7488 x86_64-*linux*)
7489 case `/usr/bin/file conftest.o` in
7490 *x86-64*)
7491 LD="${LD-ld} -m elf32_x86_64"
7492 ;;
7493 *)
7494 LD="${LD-ld} -m elf_i386"
7495 ;;
7496 esac
7497 ;;
7498 powerpc64le-*linux*)
7499 LD="${LD-ld} -m elf32lppclinux"
7500 ;;
7501 powerpc64-*linux*)
7502 LD="${LD-ld} -m elf32ppclinux"
7503 ;;
7504 s390x-*linux*)
7505 LD="${LD-ld} -m elf_s390"
7506 ;;
7507 sparc64-*linux*)
7508 LD="${LD-ld} -m elf32_sparc"
7509 ;;
7510 esac
7511 ;;
7512 *64-bit*)
7513 case $host in
7514 x86_64-*kfreebsd*-gnu)
7515 LD="${LD-ld} -m elf_x86_64_fbsd"
7516 ;;
7517 x86_64-*linux*)
7518 LD="${LD-ld} -m elf_x86_64"
7519 ;;
7520 powerpcle-*linux*)
7521 LD="${LD-ld} -m elf64lppc"
7522 ;;
7523 powerpc-*linux*)
7524 LD="${LD-ld} -m elf64ppc"
7525 ;;
7526 s390*-*linux*|s390*-*tpf*)
7527 LD="${LD-ld} -m elf64_s390"
7528 ;;
7529 sparc*-*linux*)
7530 LD="${LD-ld} -m elf64_sparc"
7531 ;;
7532 esac
7533 ;;
7534 esac
7535 fi
7536 rm -rf conftest*
7537 ;;
7538
7539 *-*-sco3.2v5*)
7540 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7541 SAVE_CFLAGS="$CFLAGS"
7542 CFLAGS="$CFLAGS -belf"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7544 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7545 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 ac_ext=c
7549 ac_cpp='$CPP $CPPFLAGS'
7550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556
7557 int
7558 main ()
7559 {
7560
7561 ;
7562 return 0;
7563 }
7564 _ACEOF
7565 if ac_fn_c_try_link "$LINENO"; then :
7566 lt_cv_cc_needs_belf=yes
7567 else
7568 lt_cv_cc_needs_belf=no
7569 fi
7570 rm -f core conftest.err conftest.$ac_objext \
7571 conftest$ac_exeext conftest.$ac_ext
7572 ac_ext=c
7573 ac_cpp='$CPP $CPPFLAGS'
7574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7577
7578 fi
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7580 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7581 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7582 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7583 CFLAGS="$SAVE_CFLAGS"
7584 fi
7585 ;;
7586 sparc*-*solaris*)
7587 # Find out which ABI we are using.
7588 echo 'int i;' > conftest.$ac_ext
7589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7590 (eval $ac_compile) 2>&5
7591 ac_status=$?
7592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593 test $ac_status = 0; }; then
7594 case `/usr/bin/file conftest.o` in
7595 *64-bit*)
7596 case $lt_cv_prog_gnu_ld in
7597 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7598 *)
7599 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7600 LD="${LD-ld} -64"
7601 fi
7602 ;;
7603 esac
7604 ;;
7605 esac
7606 fi
7607 rm -rf conftest*
7608 ;;
7609 esac
7610
7611 need_locks="$enable_libtool_lock"
7612
7613
7614 case $host_os in
7615 rhapsody* | darwin*)
7616 if test -n "$ac_tool_prefix"; then
7617 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7618 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 if test -n "$DSYMUTIL"; then
7625 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638 done
7639 done
7640 IFS=$as_save_IFS
7641
7642 fi
7643 fi
7644 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7645 if test -n "$DSYMUTIL"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7647 $as_echo "$DSYMUTIL" >&6; }
7648 else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652
7653
7654 fi
7655 if test -z "$ac_cv_prog_DSYMUTIL"; then
7656 ac_ct_DSYMUTIL=$DSYMUTIL
7657 # Extract the first word of "dsymutil", so it can be a program name with args.
7658 set dummy dsymutil; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 if test -n "$ac_ct_DSYMUTIL"; then
7665 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7666 else
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678 done
7679 done
7680 IFS=$as_save_IFS
7681
7682 fi
7683 fi
7684 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7685 if test -n "$ac_ct_DSYMUTIL"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7687 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7688 else
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7691 fi
7692
7693 if test "x$ac_ct_DSYMUTIL" = x; then
7694 DSYMUTIL=":"
7695 else
7696 case $cross_compiling:$ac_tool_warned in
7697 yes:)
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7701 esac
7702 DSYMUTIL=$ac_ct_DSYMUTIL
7703 fi
7704 else
7705 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7706 fi
7707
7708 if test -n "$ac_tool_prefix"; then
7709 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7710 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 if test -n "$NMEDIT"; then
7717 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7726 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730 done
7731 done
7732 IFS=$as_save_IFS
7733
7734 fi
7735 fi
7736 NMEDIT=$ac_cv_prog_NMEDIT
7737 if test -n "$NMEDIT"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7739 $as_echo "$NMEDIT" >&6; }
7740 else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745
7746 fi
7747 if test -z "$ac_cv_prog_NMEDIT"; then
7748 ac_ct_NMEDIT=$NMEDIT
7749 # Extract the first word of "nmedit", so it can be a program name with args.
7750 set dummy nmedit; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 if test -n "$ac_ct_NMEDIT"; then
7757 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7758 else
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7761 do
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7769 fi
7770 done
7771 done
7772 IFS=$as_save_IFS
7773
7774 fi
7775 fi
7776 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7777 if test -n "$ac_ct_NMEDIT"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7779 $as_echo "$ac_ct_NMEDIT" >&6; }
7780 else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7783 fi
7784
7785 if test "x$ac_ct_NMEDIT" = x; then
7786 NMEDIT=":"
7787 else
7788 case $cross_compiling:$ac_tool_warned in
7789 yes:)
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7792 ac_tool_warned=yes ;;
7793 esac
7794 NMEDIT=$ac_ct_NMEDIT
7795 fi
7796 else
7797 NMEDIT="$ac_cv_prog_NMEDIT"
7798 fi
7799
7800 if test -n "$ac_tool_prefix"; then
7801 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7802 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if test "${ac_cv_prog_LIPO+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 if test -n "$LIPO"; then
7809 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7818 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7821 fi
7822 done
7823 done
7824 IFS=$as_save_IFS
7825
7826 fi
7827 fi
7828 LIPO=$ac_cv_prog_LIPO
7829 if test -n "$LIPO"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7831 $as_echo "$LIPO" >&6; }
7832 else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7835 fi
7836
7837
7838 fi
7839 if test -z "$ac_cv_prog_LIPO"; then
7840 ac_ct_LIPO=$LIPO
7841 # Extract the first word of "lipo", so it can be a program name with args.
7842 set dummy lipo; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$ac_ct_LIPO"; then
7849 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_prog_ac_ct_LIPO="lipo"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862 done
7863 done
7864 IFS=$as_save_IFS
7865
7866 fi
7867 fi
7868 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7869 if test -n "$ac_ct_LIPO"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7871 $as_echo "$ac_ct_LIPO" >&6; }
7872 else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 fi
7876
7877 if test "x$ac_ct_LIPO" = x; then
7878 LIPO=":"
7879 else
7880 case $cross_compiling:$ac_tool_warned in
7881 yes:)
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7884 ac_tool_warned=yes ;;
7885 esac
7886 LIPO=$ac_ct_LIPO
7887 fi
7888 else
7889 LIPO="$ac_cv_prog_LIPO"
7890 fi
7891
7892 if test -n "$ac_tool_prefix"; then
7893 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7894 set dummy ${ac_tool_prefix}otool; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 if test -n "$OTOOL"; then
7901 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7910 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 break 2
7913 fi
7914 done
7915 done
7916 IFS=$as_save_IFS
7917
7918 fi
7919 fi
7920 OTOOL=$ac_cv_prog_OTOOL
7921 if test -n "$OTOOL"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7923 $as_echo "$OTOOL" >&6; }
7924 else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7927 fi
7928
7929
7930 fi
7931 if test -z "$ac_cv_prog_OTOOL"; then
7932 ac_ct_OTOOL=$OTOOL
7933 # Extract the first word of "otool", so it can be a program name with args.
7934 set dummy otool; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 if test -n "$ac_ct_OTOOL"; then
7941 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7945 do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7950 ac_cv_prog_ac_ct_OTOOL="otool"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954 done
7955 done
7956 IFS=$as_save_IFS
7957
7958 fi
7959 fi
7960 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7961 if test -n "$ac_ct_OTOOL"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7963 $as_echo "$ac_ct_OTOOL" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7967 fi
7968
7969 if test "x$ac_ct_OTOOL" = x; then
7970 OTOOL=":"
7971 else
7972 case $cross_compiling:$ac_tool_warned in
7973 yes:)
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7976 ac_tool_warned=yes ;;
7977 esac
7978 OTOOL=$ac_ct_OTOOL
7979 fi
7980 else
7981 OTOOL="$ac_cv_prog_OTOOL"
7982 fi
7983
7984 if test -n "$ac_tool_prefix"; then
7985 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7986 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988 $as_echo_n "checking for $ac_word... " >&6; }
7989 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 if test -n "$OTOOL64"; then
7993 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7994 else
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7997 do
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8002 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 break 2
8005 fi
8006 done
8007 done
8008 IFS=$as_save_IFS
8009
8010 fi
8011 fi
8012 OTOOL64=$ac_cv_prog_OTOOL64
8013 if test -n "$OTOOL64"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8015 $as_echo "$OTOOL64" >&6; }
8016 else
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8019 fi
8020
8021
8022 fi
8023 if test -z "$ac_cv_prog_OTOOL64"; then
8024 ac_ct_OTOOL64=$OTOOL64
8025 # Extract the first word of "otool64", so it can be a program name with args.
8026 set dummy otool64; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 if test -n "$ac_ct_OTOOL64"; then
8033 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8037 do
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8042 ac_cv_prog_ac_ct_OTOOL64="otool64"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046 done
8047 done
8048 IFS=$as_save_IFS
8049
8050 fi
8051 fi
8052 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8053 if test -n "$ac_ct_OTOOL64"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8055 $as_echo "$ac_ct_OTOOL64" >&6; }
8056 else
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8059 fi
8060
8061 if test "x$ac_ct_OTOOL64" = x; then
8062 OTOOL64=":"
8063 else
8064 case $cross_compiling:$ac_tool_warned in
8065 yes:)
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8068 ac_tool_warned=yes ;;
8069 esac
8070 OTOOL64=$ac_ct_OTOOL64
8071 fi
8072 else
8073 OTOOL64="$ac_cv_prog_OTOOL64"
8074 fi
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8103 $as_echo_n "checking for -single_module linker flag... " >&6; }
8104 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 lt_cv_apple_cc_single_mod=no
8108 if test -z "${LT_MULTI_MODULE}"; then
8109 # By default we will add the -single_module flag. You can override
8110 # by either setting the environment variable LT_MULTI_MODULE
8111 # non-empty at configure time, or by adding -multi_module to the
8112 # link flags.
8113 rm -rf libconftest.dylib*
8114 echo "int foo(void){return 1;}" > conftest.c
8115 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8116 -dynamiclib -Wl,-single_module conftest.c" >&5
8117 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8118 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8119 _lt_result=$?
8120 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8121 lt_cv_apple_cc_single_mod=yes
8122 else
8123 cat conftest.err >&5
8124 fi
8125 rm -rf libconftest.dylib*
8126 rm -f conftest.*
8127 fi
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8130 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8132 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8133 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 lt_cv_ld_exported_symbols_list=no
8137 save_LDFLAGS=$LDFLAGS
8138 echo "_main" > conftest.sym
8139 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8142
8143 int
8144 main ()
8145 {
8146
8147 ;
8148 return 0;
8149 }
8150 _ACEOF
8151 if ac_fn_c_try_link "$LINENO"; then :
8152 lt_cv_ld_exported_symbols_list=yes
8153 else
8154 lt_cv_ld_exported_symbols_list=no
8155 fi
8156 rm -f core conftest.err conftest.$ac_objext \
8157 conftest$ac_exeext conftest.$ac_ext
8158 LDFLAGS="$save_LDFLAGS"
8159
8160 fi
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8162 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8164 $as_echo_n "checking for -force_load linker flag... " >&6; }
8165 if test "${lt_cv_ld_force_load+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 lt_cv_ld_force_load=no
8169 cat > conftest.c << _LT_EOF
8170 int forced_loaded() { return 2;}
8171 _LT_EOF
8172 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8173 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8174 echo "$AR cru libconftest.a conftest.o" >&5
8175 $AR cru libconftest.a conftest.o 2>&5
8176 cat > conftest.c << _LT_EOF
8177 int main() { return 0;}
8178 _LT_EOF
8179 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8180 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8181 _lt_result=$?
8182 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8183 lt_cv_ld_force_load=yes
8184 else
8185 cat conftest.err >&5
8186 fi
8187 rm -f conftest.err libconftest.a conftest conftest.c
8188 rm -rf conftest.dSYM
8189
8190 fi
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8192 $as_echo "$lt_cv_ld_force_load" >&6; }
8193 case $host_os in
8194 rhapsody* | darwin1.[012])
8195 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8196 darwin1.*)
8197 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8198 darwin*) # darwin 5.x on
8199 # if running on 10.5 or later, the deployment target defaults
8200 # to the OS version, if on x86, and 10.4, the deployment
8201 # target defaults to 10.4. Don't you love it?
8202 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8203 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8204 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8205 10.[012][,.]*)
8206 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8207 10.*)
8208 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8209 esac
8210 ;;
8211 esac
8212 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8213 _lt_dar_single_mod='$single_module'
8214 fi
8215 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8216 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8217 else
8218 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8219 fi
8220 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8221 _lt_dsymutil='~$DSYMUTIL $lib || :'
8222 else
8223 _lt_dsymutil=
8224 fi
8225 ;;
8226 esac
8227
8228 for ac_header in dlfcn.h
8229 do :
8230 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8231 "
8232 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8233 cat >>confdefs.h <<_ACEOF
8234 #define HAVE_DLFCN_H 1
8235 _ACEOF
8236
8237 fi
8238
8239 done
8240
8241
8242
8243
8244
8245
8246 # Set options
8247
8248
8249
8250 enable_dlopen=no
8251
8252
8253 enable_win32_dll=no
8254
8255
8256 # Check whether --enable-shared was given.
8257 if test "${enable_shared+set}" = set; then :
8258 enableval=$enable_shared; p=${PACKAGE-default}
8259 case $enableval in
8260 yes) enable_shared=yes ;;
8261 no) enable_shared=no ;;
8262 *)
8263 enable_shared=no
8264 # Look at the argument we got. We use all the common list separators.
8265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8266 for pkg in $enableval; do
8267 IFS="$lt_save_ifs"
8268 if test "X$pkg" = "X$p"; then
8269 enable_shared=yes
8270 fi
8271 done
8272 IFS="$lt_save_ifs"
8273 ;;
8274 esac
8275 else
8276 enable_shared=yes
8277 fi
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287 # Check whether --enable-static was given.
8288 if test "${enable_static+set}" = set; then :
8289 enableval=$enable_static; p=${PACKAGE-default}
8290 case $enableval in
8291 yes) enable_static=yes ;;
8292 no) enable_static=no ;;
8293 *)
8294 enable_static=no
8295 # Look at the argument we got. We use all the common list separators.
8296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8297 for pkg in $enableval; do
8298 IFS="$lt_save_ifs"
8299 if test "X$pkg" = "X$p"; then
8300 enable_static=yes
8301 fi
8302 done
8303 IFS="$lt_save_ifs"
8304 ;;
8305 esac
8306 else
8307 enable_static=yes
8308 fi
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319 # Check whether --with-pic was given.
8320 if test "${with_pic+set}" = set; then :
8321 withval=$with_pic; pic_mode="$withval"
8322 else
8323 pic_mode=default
8324 fi
8325
8326
8327 test -z "$pic_mode" && pic_mode=default
8328
8329
8330
8331
8332
8333
8334
8335 # Check whether --enable-fast-install was given.
8336 if test "${enable_fast_install+set}" = set; then :
8337 enableval=$enable_fast_install; p=${PACKAGE-default}
8338 case $enableval in
8339 yes) enable_fast_install=yes ;;
8340 no) enable_fast_install=no ;;
8341 *)
8342 enable_fast_install=no
8343 # Look at the argument we got. We use all the common list separators.
8344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8345 for pkg in $enableval; do
8346 IFS="$lt_save_ifs"
8347 if test "X$pkg" = "X$p"; then
8348 enable_fast_install=yes
8349 fi
8350 done
8351 IFS="$lt_save_ifs"
8352 ;;
8353 esac
8354 else
8355 enable_fast_install=yes
8356 fi
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368 # This can be used to rebuild libtool when needed
8369 LIBTOOL_DEPS="$ltmain"
8370
8371 # Always use our own libtool.
8372 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399 test -z "$LN_S" && LN_S="ln -s"
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414 if test -n "${ZSH_VERSION+set}" ; then
8415 setopt NO_GLOB_SUBST
8416 fi
8417
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8419 $as_echo_n "checking for objdir... " >&6; }
8420 if test "${lt_cv_objdir+set}" = set; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 rm -f .libs 2>/dev/null
8424 mkdir .libs 2>/dev/null
8425 if test -d .libs; then
8426 lt_cv_objdir=.libs
8427 else
8428 # MS-DOS does not allow filenames that begin with a dot.
8429 lt_cv_objdir=_libs
8430 fi
8431 rmdir .libs 2>/dev/null
8432 fi
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8434 $as_echo "$lt_cv_objdir" >&6; }
8435 objdir=$lt_cv_objdir
8436
8437
8438
8439
8440
8441 cat >>confdefs.h <<_ACEOF
8442 #define LT_OBJDIR "$lt_cv_objdir/"
8443 _ACEOF
8444
8445
8446
8447
8448 case $host_os in
8449 aix3*)
8450 # AIX sometimes has problems with the GCC collect2 program. For some
8451 # reason, if we set the COLLECT_NAMES environment variable, the problems
8452 # vanish in a puff of smoke.
8453 if test "X${COLLECT_NAMES+set}" != Xset; then
8454 COLLECT_NAMES=
8455 export COLLECT_NAMES
8456 fi
8457 ;;
8458 esac
8459
8460 # Global variables:
8461 ofile=libtool
8462 can_build_shared=yes
8463
8464 # All known linkers require a `.a' archive for static linking (except MSVC,
8465 # which needs '.lib').
8466 libext=a
8467
8468 with_gnu_ld="$lt_cv_prog_gnu_ld"
8469
8470 old_CC="$CC"
8471 old_CFLAGS="$CFLAGS"
8472
8473 # Set sane defaults for various variables
8474 test -z "$CC" && CC=cc
8475 test -z "$LTCC" && LTCC=$CC
8476 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8477 test -z "$LD" && LD=ld
8478 test -z "$ac_objext" && ac_objext=o
8479
8480 for cc_temp in $compiler""; do
8481 case $cc_temp in
8482 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8483 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8484 \-*) ;;
8485 *) break;;
8486 esac
8487 done
8488 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8489
8490
8491 # Only perform the check for file, if the check method requires it
8492 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8493 case $deplibs_check_method in
8494 file_magic*)
8495 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8497 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8498 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 case $MAGIC_CMD in
8502 [\\/*] | ?:[\\/]*)
8503 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8504 ;;
8505 *)
8506 lt_save_MAGIC_CMD="$MAGIC_CMD"
8507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8508 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8509 for ac_dir in $ac_dummy; do
8510 IFS="$lt_save_ifs"
8511 test -z "$ac_dir" && ac_dir=.
8512 if test -f $ac_dir/${ac_tool_prefix}file; then
8513 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8514 if test -n "$file_magic_test_file"; then
8515 case $deplibs_check_method in
8516 "file_magic "*)
8517 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8519 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8520 $EGREP "$file_magic_regex" > /dev/null; then
8521 :
8522 else
8523 cat <<_LT_EOF 1>&2
8524
8525 *** Warning: the command libtool uses to detect shared libraries,
8526 *** $file_magic_cmd, produces output that libtool cannot recognize.
8527 *** The result is that libtool may fail to recognize shared libraries
8528 *** as such. This will affect the creation of libtool libraries that
8529 *** depend on shared libraries, but programs linked with such libtool
8530 *** libraries will work regardless of this problem. Nevertheless, you
8531 *** may want to report the problem to your system manager and/or to
8532 *** bug-libtool@gnu.org
8533
8534 _LT_EOF
8535 fi ;;
8536 esac
8537 fi
8538 break
8539 fi
8540 done
8541 IFS="$lt_save_ifs"
8542 MAGIC_CMD="$lt_save_MAGIC_CMD"
8543 ;;
8544 esac
8545 fi
8546
8547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8548 if test -n "$MAGIC_CMD"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8550 $as_echo "$MAGIC_CMD" >&6; }
8551 else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8554 fi
8555
8556
8557
8558
8559
8560 if test -z "$lt_cv_path_MAGIC_CMD"; then
8561 if test -n "$ac_tool_prefix"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8563 $as_echo_n "checking for file... " >&6; }
8564 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 case $MAGIC_CMD in
8568 [\\/*] | ?:[\\/]*)
8569 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8570 ;;
8571 *)
8572 lt_save_MAGIC_CMD="$MAGIC_CMD"
8573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8574 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8575 for ac_dir in $ac_dummy; do
8576 IFS="$lt_save_ifs"
8577 test -z "$ac_dir" && ac_dir=.
8578 if test -f $ac_dir/file; then
8579 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8580 if test -n "$file_magic_test_file"; then
8581 case $deplibs_check_method in
8582 "file_magic "*)
8583 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8584 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8585 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8586 $EGREP "$file_magic_regex" > /dev/null; then
8587 :
8588 else
8589 cat <<_LT_EOF 1>&2
8590
8591 *** Warning: the command libtool uses to detect shared libraries,
8592 *** $file_magic_cmd, produces output that libtool cannot recognize.
8593 *** The result is that libtool may fail to recognize shared libraries
8594 *** as such. This will affect the creation of libtool libraries that
8595 *** depend on shared libraries, but programs linked with such libtool
8596 *** libraries will work regardless of this problem. Nevertheless, you
8597 *** may want to report the problem to your system manager and/or to
8598 *** bug-libtool@gnu.org
8599
8600 _LT_EOF
8601 fi ;;
8602 esac
8603 fi
8604 break
8605 fi
8606 done
8607 IFS="$lt_save_ifs"
8608 MAGIC_CMD="$lt_save_MAGIC_CMD"
8609 ;;
8610 esac
8611 fi
8612
8613 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8614 if test -n "$MAGIC_CMD"; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8616 $as_echo "$MAGIC_CMD" >&6; }
8617 else
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo "no" >&6; }
8620 fi
8621
8622
8623 else
8624 MAGIC_CMD=:
8625 fi
8626 fi
8627
8628 fi
8629 ;;
8630 esac
8631
8632 # Use C for the default configuration in the libtool script
8633
8634 lt_save_CC="$CC"
8635 ac_ext=c
8636 ac_cpp='$CPP $CPPFLAGS'
8637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8640
8641
8642 # Source file extension for C test sources.
8643 ac_ext=c
8644
8645 # Object file extension for compiled C test sources.
8646 objext=o
8647 objext=$objext
8648
8649 # Code to be used in simple compile tests
8650 lt_simple_compile_test_code="int some_variable = 0;"
8651
8652 # Code to be used in simple link tests
8653 lt_simple_link_test_code='int main(){return(0);}'
8654
8655
8656
8657
8658
8659
8660
8661 # If no C compiler was specified, use CC.
8662 LTCC=${LTCC-"$CC"}
8663
8664 # If no C compiler flags were specified, use CFLAGS.
8665 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8666
8667 # Allow CC to be a program name with arguments.
8668 compiler=$CC
8669
8670 # Save the default compiler, since it gets overwritten when the other
8671 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8672 compiler_DEFAULT=$CC
8673
8674 # save warnings/boilerplate of simple test code
8675 ac_outfile=conftest.$ac_objext
8676 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8677 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8678 _lt_compiler_boilerplate=`cat conftest.err`
8679 $RM conftest*
8680
8681 ac_outfile=conftest.$ac_objext
8682 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8683 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8684 _lt_linker_boilerplate=`cat conftest.err`
8685 $RM -r conftest*
8686
8687
8688 ## CAVEAT EMPTOR:
8689 ## There is no encapsulation within the following macros, do not change
8690 ## the running order or otherwise move them around unless you know exactly
8691 ## what you are doing...
8692 if test -n "$compiler"; then
8693
8694 lt_prog_compiler_no_builtin_flag=
8695
8696 if test "$GCC" = yes; then
8697 case $cc_basename in
8698 nvcc*)
8699 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8700 *)
8701 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8702 esac
8703
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8705 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8706 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8707 $as_echo_n "(cached) " >&6
8708 else
8709 lt_cv_prog_compiler_rtti_exceptions=no
8710 ac_outfile=conftest.$ac_objext
8711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8712 lt_compiler_flag="-fno-rtti -fno-exceptions"
8713 # Insert the option either (1) after the last *FLAGS variable, or
8714 # (2) before a word containing "conftest.", or (3) at the end.
8715 # Note that $ac_compile itself does not contain backslashes and begins
8716 # with a dollar sign (not a hyphen), so the echo should work correctly.
8717 # The option is referenced via a variable to avoid confusing sed.
8718 lt_compile=`echo "$ac_compile" | $SED \
8719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8721 -e 's:$: $lt_compiler_flag:'`
8722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8723 (eval "$lt_compile" 2>conftest.err)
8724 ac_status=$?
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 if (exit $ac_status) && test -s "$ac_outfile"; then
8728 # The compiler can only warn and ignore the option if not recognized
8729 # So say no if there are warnings other than the usual output.
8730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8733 lt_cv_prog_compiler_rtti_exceptions=yes
8734 fi
8735 fi
8736 $RM conftest*
8737
8738 fi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8740 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8741
8742 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8743 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8744 else
8745 :
8746 fi
8747
8748 fi
8749
8750
8751
8752
8753
8754
8755 lt_prog_compiler_wl=
8756 lt_prog_compiler_pic=
8757 lt_prog_compiler_static=
8758
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8760 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8761
8762 if test "$GCC" = yes; then
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_static='-static'
8765
8766 case $host_os in
8767 aix*)
8768 # All AIX code is PIC.
8769 if test "$host_cpu" = ia64; then
8770 # AIX 5 now supports IA64 processor
8771 lt_prog_compiler_static='-Bstatic'
8772 fi
8773 lt_prog_compiler_pic='-fPIC'
8774 ;;
8775
8776 amigaos*)
8777 case $host_cpu in
8778 powerpc)
8779 # see comment about AmigaOS4 .so support
8780 lt_prog_compiler_pic='-fPIC'
8781 ;;
8782 m68k)
8783 # FIXME: we need at least 68020 code to build shared libraries, but
8784 # adding the `-m68020' flag to GCC prevents building anything better,
8785 # like `-m68040'.
8786 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8787 ;;
8788 esac
8789 ;;
8790
8791 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8792 # PIC is the default for these OSes.
8793 ;;
8794
8795 mingw* | cygwin* | pw32* | os2* | cegcc*)
8796 # This hack is so that the source file can tell whether it is being
8797 # built for inclusion in a dll (and should export symbols for example).
8798 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8799 # (--disable-auto-import) libraries
8800 lt_prog_compiler_pic='-DDLL_EXPORT'
8801 ;;
8802
8803 darwin* | rhapsody*)
8804 # PIC is the default on this platform
8805 # Common symbols not allowed in MH_DYLIB files
8806 lt_prog_compiler_pic='-fno-common'
8807 ;;
8808
8809 haiku*)
8810 # PIC is the default for Haiku.
8811 # The "-static" flag exists, but is broken.
8812 lt_prog_compiler_static=
8813 ;;
8814
8815 hpux*)
8816 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8817 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8818 # sets the default TLS model and affects inlining.
8819 case $host_cpu in
8820 hppa*64*)
8821 # +Z the default
8822 ;;
8823 *)
8824 lt_prog_compiler_pic='-fPIC'
8825 ;;
8826 esac
8827 ;;
8828
8829 interix[3-9]*)
8830 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8831 # Instead, we relocate shared libraries at runtime.
8832 ;;
8833
8834 msdosdjgpp*)
8835 # Just because we use GCC doesn't mean we suddenly get shared libraries
8836 # on systems that don't support them.
8837 lt_prog_compiler_can_build_shared=no
8838 enable_shared=no
8839 ;;
8840
8841 *nto* | *qnx*)
8842 # QNX uses GNU C++, but need to define -shared option too, otherwise
8843 # it will coredump.
8844 lt_prog_compiler_pic='-fPIC -shared'
8845 ;;
8846
8847 sysv4*MP*)
8848 if test -d /usr/nec; then
8849 lt_prog_compiler_pic=-Kconform_pic
8850 fi
8851 ;;
8852
8853 *)
8854 lt_prog_compiler_pic='-fPIC'
8855 ;;
8856 esac
8857
8858 case $cc_basename in
8859 nvcc*) # Cuda Compiler Driver 2.2
8860 lt_prog_compiler_wl='-Xlinker '
8861 lt_prog_compiler_pic='-Xcompiler -fPIC'
8862 ;;
8863 esac
8864 else
8865 # PORTME Check for flag to pass linker flags through the system compiler.
8866 case $host_os in
8867 aix*)
8868 lt_prog_compiler_wl='-Wl,'
8869 if test "$host_cpu" = ia64; then
8870 # AIX 5 now supports IA64 processor
8871 lt_prog_compiler_static='-Bstatic'
8872 else
8873 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8874 fi
8875 ;;
8876
8877 mingw* | cygwin* | pw32* | os2* | cegcc*)
8878 # This hack is so that the source file can tell whether it is being
8879 # built for inclusion in a dll (and should export symbols for example).
8880 lt_prog_compiler_pic='-DDLL_EXPORT'
8881 ;;
8882
8883 hpux9* | hpux10* | hpux11*)
8884 lt_prog_compiler_wl='-Wl,'
8885 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8886 # not for PA HP-UX.
8887 case $host_cpu in
8888 hppa*64*|ia64*)
8889 # +Z the default
8890 ;;
8891 *)
8892 lt_prog_compiler_pic='+Z'
8893 ;;
8894 esac
8895 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8896 lt_prog_compiler_static='${wl}-a ${wl}archive'
8897 ;;
8898
8899 irix5* | irix6* | nonstopux*)
8900 lt_prog_compiler_wl='-Wl,'
8901 # PIC (with -KPIC) is the default.
8902 lt_prog_compiler_static='-non_shared'
8903 ;;
8904
8905 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8906 case $cc_basename in
8907 # old Intel for x86_64 which still supported -KPIC.
8908 ecc*)
8909 lt_prog_compiler_wl='-Wl,'
8910 lt_prog_compiler_pic='-KPIC'
8911 lt_prog_compiler_static='-static'
8912 ;;
8913 # icc used to be incompatible with GCC.
8914 # ICC 10 doesn't accept -KPIC any more.
8915 icc* | ifort*)
8916 lt_prog_compiler_wl='-Wl,'
8917 lt_prog_compiler_pic='-fPIC'
8918 lt_prog_compiler_static='-static'
8919 ;;
8920 # Lahey Fortran 8.1.
8921 lf95*)
8922 lt_prog_compiler_wl='-Wl,'
8923 lt_prog_compiler_pic='--shared'
8924 lt_prog_compiler_static='--static'
8925 ;;
8926 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8927 # Portland Group compilers (*not* the Pentium gcc compiler,
8928 # which looks to be a dead project)
8929 lt_prog_compiler_wl='-Wl,'
8930 lt_prog_compiler_pic='-fpic'
8931 lt_prog_compiler_static='-Bstatic'
8932 ;;
8933 ccc*)
8934 lt_prog_compiler_wl='-Wl,'
8935 # All Alpha code is PIC.
8936 lt_prog_compiler_static='-non_shared'
8937 ;;
8938 xl* | bgxl* | bgf* | mpixl*)
8939 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8940 lt_prog_compiler_wl='-Wl,'
8941 lt_prog_compiler_pic='-qpic'
8942 lt_prog_compiler_static='-qstaticlink'
8943 ;;
8944 *)
8945 case `$CC -V 2>&1 | sed 5q` in
8946 *Sun\ F* | *Sun*Fortran*)
8947 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8948 lt_prog_compiler_pic='-KPIC'
8949 lt_prog_compiler_static='-Bstatic'
8950 lt_prog_compiler_wl=''
8951 ;;
8952 *Sun\ C*)
8953 # Sun C 5.9
8954 lt_prog_compiler_pic='-KPIC'
8955 lt_prog_compiler_static='-Bstatic'
8956 lt_prog_compiler_wl='-Wl,'
8957 ;;
8958 esac
8959 ;;
8960 esac
8961 ;;
8962
8963 newsos6)
8964 lt_prog_compiler_pic='-KPIC'
8965 lt_prog_compiler_static='-Bstatic'
8966 ;;
8967
8968 *nto* | *qnx*)
8969 # QNX uses GNU C++, but need to define -shared option too, otherwise
8970 # it will coredump.
8971 lt_prog_compiler_pic='-fPIC -shared'
8972 ;;
8973
8974 osf3* | osf4* | osf5*)
8975 lt_prog_compiler_wl='-Wl,'
8976 # All OSF/1 code is PIC.
8977 lt_prog_compiler_static='-non_shared'
8978 ;;
8979
8980 rdos*)
8981 lt_prog_compiler_static='-non_shared'
8982 ;;
8983
8984 solaris*)
8985 lt_prog_compiler_pic='-KPIC'
8986 lt_prog_compiler_static='-Bstatic'
8987 case $cc_basename in
8988 f77* | f90* | f95*)
8989 lt_prog_compiler_wl='-Qoption ld ';;
8990 *)
8991 lt_prog_compiler_wl='-Wl,';;
8992 esac
8993 ;;
8994
8995 sunos4*)
8996 lt_prog_compiler_wl='-Qoption ld '
8997 lt_prog_compiler_pic='-PIC'
8998 lt_prog_compiler_static='-Bstatic'
8999 ;;
9000
9001 sysv4 | sysv4.2uw2* | sysv4.3*)
9002 lt_prog_compiler_wl='-Wl,'
9003 lt_prog_compiler_pic='-KPIC'
9004 lt_prog_compiler_static='-Bstatic'
9005 ;;
9006
9007 sysv4*MP*)
9008 if test -d /usr/nec ;then
9009 lt_prog_compiler_pic='-Kconform_pic'
9010 lt_prog_compiler_static='-Bstatic'
9011 fi
9012 ;;
9013
9014 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9015 lt_prog_compiler_wl='-Wl,'
9016 lt_prog_compiler_pic='-KPIC'
9017 lt_prog_compiler_static='-Bstatic'
9018 ;;
9019
9020 unicos*)
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_can_build_shared=no
9023 ;;
9024
9025 uts4*)
9026 lt_prog_compiler_pic='-pic'
9027 lt_prog_compiler_static='-Bstatic'
9028 ;;
9029
9030 *)
9031 lt_prog_compiler_can_build_shared=no
9032 ;;
9033 esac
9034 fi
9035
9036 case $host_os in
9037 # For platforms which do not support PIC, -DPIC is meaningless:
9038 *djgpp*)
9039 lt_prog_compiler_pic=
9040 ;;
9041 *)
9042 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9043 ;;
9044 esac
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9046 $as_echo "$lt_prog_compiler_pic" >&6; }
9047
9048
9049
9050
9051
9052
9053 #
9054 # Check to make sure the PIC flag actually works.
9055 #
9056 if test -n "$lt_prog_compiler_pic"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9058 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9059 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 lt_cv_prog_compiler_pic_works=no
9063 ac_outfile=conftest.$ac_objext
9064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9065 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9066 # Insert the option either (1) after the last *FLAGS variable, or
9067 # (2) before a word containing "conftest.", or (3) at the end.
9068 # Note that $ac_compile itself does not contain backslashes and begins
9069 # with a dollar sign (not a hyphen), so the echo should work correctly.
9070 # The option is referenced via a variable to avoid confusing sed.
9071 lt_compile=`echo "$ac_compile" | $SED \
9072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9074 -e 's:$: $lt_compiler_flag:'`
9075 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9076 (eval "$lt_compile" 2>conftest.err)
9077 ac_status=$?
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 if (exit $ac_status) && test -s "$ac_outfile"; then
9081 # The compiler can only warn and ignore the option if not recognized
9082 # So say no if there are warnings other than the usual output.
9083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9084 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9086 lt_cv_prog_compiler_pic_works=yes
9087 fi
9088 fi
9089 $RM conftest*
9090
9091 fi
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9093 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9094
9095 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9096 case $lt_prog_compiler_pic in
9097 "" | " "*) ;;
9098 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9099 esac
9100 else
9101 lt_prog_compiler_pic=
9102 lt_prog_compiler_can_build_shared=no
9103 fi
9104
9105 fi
9106
9107
9108
9109
9110
9111
9112 #
9113 # Check to make sure the static flag actually works.
9114 #
9115 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9117 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9118 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 lt_cv_prog_compiler_static_works=no
9122 save_LDFLAGS="$LDFLAGS"
9123 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9124 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9126 # The linker can only warn and ignore the option if not recognized
9127 # So say no if there are warnings
9128 if test -s conftest.err; then
9129 # Append any errors to the config.log.
9130 cat conftest.err 1>&5
9131 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9133 if diff conftest.exp conftest.er2 >/dev/null; then
9134 lt_cv_prog_compiler_static_works=yes
9135 fi
9136 else
9137 lt_cv_prog_compiler_static_works=yes
9138 fi
9139 fi
9140 $RM -r conftest*
9141 LDFLAGS="$save_LDFLAGS"
9142
9143 fi
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9145 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9146
9147 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9148 :
9149 else
9150 lt_prog_compiler_static=
9151 fi
9152
9153
9154
9155
9156
9157
9158
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9160 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9161 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164 lt_cv_prog_compiler_c_o=no
9165 $RM -r conftest 2>/dev/null
9166 mkdir conftest
9167 cd conftest
9168 mkdir out
9169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9170
9171 lt_compiler_flag="-o out/conftest2.$ac_objext"
9172 # Insert the option either (1) after the last *FLAGS variable, or
9173 # (2) before a word containing "conftest.", or (3) at the end.
9174 # Note that $ac_compile itself does not contain backslashes and begins
9175 # with a dollar sign (not a hyphen), so the echo should work correctly.
9176 lt_compile=`echo "$ac_compile" | $SED \
9177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9179 -e 's:$: $lt_compiler_flag:'`
9180 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9181 (eval "$lt_compile" 2>out/conftest.err)
9182 ac_status=$?
9183 cat out/conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9186 then
9187 # The compiler can only warn and ignore the option if not recognized
9188 # So say no if there are warnings
9189 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9190 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9191 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9192 lt_cv_prog_compiler_c_o=yes
9193 fi
9194 fi
9195 chmod u+w . 2>&5
9196 $RM conftest*
9197 # SGI C++ compiler will create directory out/ii_files/ for
9198 # template instantiation
9199 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9200 $RM out/* && rmdir out
9201 cd ..
9202 $RM -r conftest
9203 $RM conftest*
9204
9205 fi
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9207 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9208
9209
9210
9211
9212
9213
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9215 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9216 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 lt_cv_prog_compiler_c_o=no
9220 $RM -r conftest 2>/dev/null
9221 mkdir conftest
9222 cd conftest
9223 mkdir out
9224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9225
9226 lt_compiler_flag="-o out/conftest2.$ac_objext"
9227 # Insert the option either (1) after the last *FLAGS variable, or
9228 # (2) before a word containing "conftest.", or (3) at the end.
9229 # Note that $ac_compile itself does not contain backslashes and begins
9230 # with a dollar sign (not a hyphen), so the echo should work correctly.
9231 lt_compile=`echo "$ac_compile" | $SED \
9232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9234 -e 's:$: $lt_compiler_flag:'`
9235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9236 (eval "$lt_compile" 2>out/conftest.err)
9237 ac_status=$?
9238 cat out/conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9241 then
9242 # The compiler can only warn and ignore the option if not recognized
9243 # So say no if there are warnings
9244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9247 lt_cv_prog_compiler_c_o=yes
9248 fi
9249 fi
9250 chmod u+w . 2>&5
9251 $RM conftest*
9252 # SGI C++ compiler will create directory out/ii_files/ for
9253 # template instantiation
9254 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9255 $RM out/* && rmdir out
9256 cd ..
9257 $RM -r conftest
9258 $RM conftest*
9259
9260 fi
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9262 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9263
9264
9265
9266
9267 hard_links="nottested"
9268 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9269 # do not overwrite the value of need_locks provided by the user
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9271 $as_echo_n "checking if we can lock with hard links... " >&6; }
9272 hard_links=yes
9273 $RM conftest*
9274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9275 touch conftest.a
9276 ln conftest.a conftest.b 2>&5 || hard_links=no
9277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9279 $as_echo "$hard_links" >&6; }
9280 if test "$hard_links" = no; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9282 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9283 need_locks=warn
9284 fi
9285 else
9286 need_locks=no
9287 fi
9288
9289
9290
9291
9292
9293
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9295 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9296
9297 runpath_var=
9298 allow_undefined_flag=
9299 always_export_symbols=no
9300 archive_cmds=
9301 archive_expsym_cmds=
9302 compiler_needs_object=no
9303 enable_shared_with_static_runtimes=no
9304 export_dynamic_flag_spec=
9305 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9306 hardcode_automatic=no
9307 hardcode_direct=no
9308 hardcode_direct_absolute=no
9309 hardcode_libdir_flag_spec=
9310 hardcode_libdir_flag_spec_ld=
9311 hardcode_libdir_separator=
9312 hardcode_minus_L=no
9313 hardcode_shlibpath_var=unsupported
9314 inherit_rpath=no
9315 link_all_deplibs=unknown
9316 module_cmds=
9317 module_expsym_cmds=
9318 old_archive_from_new_cmds=
9319 old_archive_from_expsyms_cmds=
9320 thread_safe_flag_spec=
9321 whole_archive_flag_spec=
9322 # include_expsyms should be a list of space-separated symbols to be *always*
9323 # included in the symbol list
9324 include_expsyms=
9325 # exclude_expsyms can be an extended regexp of symbols to exclude
9326 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9327 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9328 # as well as any symbol that contains `d'.
9329 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9330 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9331 # platforms (ab)use it in PIC code, but their linkers get confused if
9332 # the symbol is explicitly referenced. Since portable code cannot
9333 # rely on this symbol name, it's probably fine to never include it in
9334 # preloaded symbol tables.
9335 # Exclude shared library initialization/finalization symbols.
9336 extract_expsyms_cmds=
9337
9338 case $host_os in
9339 cygwin* | mingw* | pw32* | cegcc*)
9340 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9341 # When not using gcc, we currently assume that we are using
9342 # Microsoft Visual C++.
9343 if test "$GCC" != yes; then
9344 with_gnu_ld=no
9345 fi
9346 ;;
9347 interix*)
9348 # we just hope/assume this is gcc and not c89 (= MSVC++)
9349 with_gnu_ld=yes
9350 ;;
9351 openbsd*)
9352 with_gnu_ld=no
9353 ;;
9354 esac
9355
9356 ld_shlibs=yes
9357
9358 # On some targets, GNU ld is compatible enough with the native linker
9359 # that we're better off using the native interface for both.
9360 lt_use_gnu_ld_interface=no
9361 if test "$with_gnu_ld" = yes; then
9362 case $host_os in
9363 aix*)
9364 # The AIX port of GNU ld has always aspired to compatibility
9365 # with the native linker. However, as the warning in the GNU ld
9366 # block says, versions before 2.19.5* couldn't really create working
9367 # shared libraries, regardless of the interface used.
9368 case `$LD -v 2>&1` in
9369 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9370 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9371 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9372 *)
9373 lt_use_gnu_ld_interface=yes
9374 ;;
9375 esac
9376 ;;
9377 *)
9378 lt_use_gnu_ld_interface=yes
9379 ;;
9380 esac
9381 fi
9382
9383 if test "$lt_use_gnu_ld_interface" = yes; then
9384 # If archive_cmds runs LD, not CC, wlarc should be empty
9385 wlarc='${wl}'
9386
9387 # Set some defaults for GNU ld with shared library support. These
9388 # are reset later if shared libraries are not supported. Putting them
9389 # here allows them to be overridden if necessary.
9390 runpath_var=LD_RUN_PATH
9391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9392 export_dynamic_flag_spec='${wl}--export-dynamic'
9393 # ancient GNU ld didn't support --whole-archive et. al.
9394 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9395 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9396 else
9397 whole_archive_flag_spec=
9398 fi
9399 supports_anon_versioning=no
9400 case `$LD -v 2>&1` in
9401 *GNU\ gold*) supports_anon_versioning=yes ;;
9402 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9403 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9404 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9405 *\ 2.11.*) ;; # other 2.11 versions
9406 *) supports_anon_versioning=yes ;;
9407 esac
9408
9409 # See if GNU ld supports shared libraries.
9410 case $host_os in
9411 aix[3-9]*)
9412 # On AIX/PPC, the GNU linker is very broken
9413 if test "$host_cpu" != ia64; then
9414 ld_shlibs=no
9415 cat <<_LT_EOF 1>&2
9416
9417 *** Warning: the GNU linker, at least up to release 2.19, is reported
9418 *** to be unable to reliably create shared libraries on AIX.
9419 *** Therefore, libtool is disabling shared libraries support. If you
9420 *** really care for shared libraries, you may want to install binutils
9421 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9422 *** You will then need to restart the configuration process.
9423
9424 _LT_EOF
9425 fi
9426 ;;
9427
9428 amigaos*)
9429 case $host_cpu in
9430 powerpc)
9431 # see comment about AmigaOS4 .so support
9432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433 archive_expsym_cmds=''
9434 ;;
9435 m68k)
9436 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)'
9437 hardcode_libdir_flag_spec='-L$libdir'
9438 hardcode_minus_L=yes
9439 ;;
9440 esac
9441 ;;
9442
9443 beos*)
9444 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9445 allow_undefined_flag=unsupported
9446 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9447 # support --undefined. This deserves some investigation. FIXME
9448 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 else
9450 ld_shlibs=no
9451 fi
9452 ;;
9453
9454 cygwin* | mingw* | pw32* | cegcc*)
9455 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9456 # as there is no search path for DLLs.
9457 hardcode_libdir_flag_spec='-L$libdir'
9458 export_dynamic_flag_spec='${wl}--export-all-symbols'
9459 allow_undefined_flag=unsupported
9460 always_export_symbols=no
9461 enable_shared_with_static_runtimes=yes
9462 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9463
9464 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9466 # If the export-symbols file already is a .def file (1st line
9467 # is EXPORTS), use it as is; otherwise, prepend...
9468 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9469 cp $export_symbols $output_objdir/$soname.def;
9470 else
9471 echo EXPORTS > $output_objdir/$soname.def;
9472 cat $export_symbols >> $output_objdir/$soname.def;
9473 fi~
9474 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9475 else
9476 ld_shlibs=no
9477 fi
9478 ;;
9479
9480 haiku*)
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 link_all_deplibs=yes
9483 ;;
9484
9485 interix[3-9]*)
9486 hardcode_direct=no
9487 hardcode_shlibpath_var=no
9488 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9489 export_dynamic_flag_spec='${wl}-E'
9490 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9491 # Instead, shared libraries are loaded at an image base (0x10000000 by
9492 # default) and relocated if they conflict, which is a slow very memory
9493 # consuming and fragmenting process. To avoid this, we pick a random,
9494 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9495 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9496 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9497 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'
9498 ;;
9499
9500 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9501 tmp_diet=no
9502 if test "$host_os" = linux-dietlibc; then
9503 case $cc_basename in
9504 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9505 esac
9506 fi
9507 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9508 && test "$tmp_diet" = no
9509 then
9510 tmp_addflag=' $pic_flag'
9511 tmp_sharedflag='-shared'
9512 case $cc_basename,$host_cpu in
9513 pgcc*) # Portland Group C compiler
9514 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'
9515 tmp_addflag=' $pic_flag'
9516 ;;
9517 pgf77* | pgf90* | pgf95* | pgfortran*)
9518 # Portland Group f77 and f90 compilers
9519 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'
9520 tmp_addflag=' $pic_flag -Mnomain' ;;
9521 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9522 tmp_addflag=' -i_dynamic' ;;
9523 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9524 tmp_addflag=' -i_dynamic -nofor_main' ;;
9525 ifc* | ifort*) # Intel Fortran compiler
9526 tmp_addflag=' -nofor_main' ;;
9527 lf95*) # Lahey Fortran 8.1
9528 whole_archive_flag_spec=
9529 tmp_sharedflag='--shared' ;;
9530 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9531 tmp_sharedflag='-qmkshrobj'
9532 tmp_addflag= ;;
9533 nvcc*) # Cuda Compiler Driver 2.2
9534 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'
9535 compiler_needs_object=yes
9536 ;;
9537 esac
9538 case `$CC -V 2>&1 | sed 5q` in
9539 *Sun\ C*) # Sun C 5.9
9540 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'
9541 compiler_needs_object=yes
9542 tmp_sharedflag='-G' ;;
9543 *Sun\ F*) # Sun Fortran 8.3
9544 tmp_sharedflag='-G' ;;
9545 esac
9546 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547
9548 if test "x$supports_anon_versioning" = xyes; then
9549 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9550 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9551 echo "local: *; };" >> $output_objdir/$libname.ver~
9552 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9553 fi
9554
9555 case $cc_basename in
9556 xlf* | bgf* | bgxlf* | mpixlf*)
9557 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9558 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9559 hardcode_libdir_flag_spec=
9560 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9561 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9562 if test "x$supports_anon_versioning" = xyes; then
9563 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9564 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9565 echo "local: *; };" >> $output_objdir/$libname.ver~
9566 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9567 fi
9568 ;;
9569 esac
9570 else
9571 ld_shlibs=no
9572 fi
9573 ;;
9574
9575 netbsd*)
9576 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9577 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9578 wlarc=
9579 else
9580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9581 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9582 fi
9583 ;;
9584
9585 solaris*)
9586 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9587 ld_shlibs=no
9588 cat <<_LT_EOF 1>&2
9589
9590 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9591 *** create shared libraries on Solaris systems. Therefore, libtool
9592 *** is disabling shared libraries support. We urge you to upgrade GNU
9593 *** binutils to release 2.9.1 or newer. Another option is to modify
9594 *** your PATH or compiler configuration so that the native linker is
9595 *** used, and then restart.
9596
9597 _LT_EOF
9598 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9600 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9601 else
9602 ld_shlibs=no
9603 fi
9604 ;;
9605
9606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9607 case `$LD -v 2>&1` in
9608 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9609 ld_shlibs=no
9610 cat <<_LT_EOF 1>&2
9611
9612 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9613 *** reliably create shared libraries on SCO systems. Therefore, libtool
9614 *** is disabling shared libraries support. We urge you to upgrade GNU
9615 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9616 *** your PATH or compiler configuration so that the native linker is
9617 *** used, and then restart.
9618
9619 _LT_EOF
9620 ;;
9621 *)
9622 # For security reasons, it is highly recommended that you always
9623 # use absolute paths for naming shared libraries, and exclude the
9624 # DT_RUNPATH tag from executables and libraries. But doing so
9625 # requires that you compile everything twice, which is a pain.
9626 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9629 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9630 else
9631 ld_shlibs=no
9632 fi
9633 ;;
9634 esac
9635 ;;
9636
9637 sunos4*)
9638 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9639 wlarc=
9640 hardcode_direct=yes
9641 hardcode_shlibpath_var=no
9642 ;;
9643
9644 *)
9645 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9647 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9648 else
9649 ld_shlibs=no
9650 fi
9651 ;;
9652 esac
9653
9654 if test "$ld_shlibs" = no; then
9655 runpath_var=
9656 hardcode_libdir_flag_spec=
9657 export_dynamic_flag_spec=
9658 whole_archive_flag_spec=
9659 fi
9660 else
9661 # PORTME fill in a description of your system's linker (not GNU ld)
9662 case $host_os in
9663 aix3*)
9664 allow_undefined_flag=unsupported
9665 always_export_symbols=yes
9666 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'
9667 # Note: this linker hardcodes the directories in LIBPATH if there
9668 # are no directories specified by -L.
9669 hardcode_minus_L=yes
9670 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9671 # Neither direct hardcoding nor static linking is supported with a
9672 # broken collect2.
9673 hardcode_direct=unsupported
9674 fi
9675 ;;
9676
9677 aix[4-9]*)
9678 if test "$host_cpu" = ia64; then
9679 # On IA64, the linker does run time linking by default, so we don't
9680 # have to do anything special.
9681 aix_use_runtimelinking=no
9682 exp_sym_flag='-Bexport'
9683 no_entry_flag=""
9684 else
9685 # If we're using GNU nm, then we don't want the "-C" option.
9686 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9687 # Also, AIX nm treats weak defined symbols like other global
9688 # defined symbols, whereas GNU nm marks them as "W".
9689 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9690 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'
9691 else
9692 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9693 fi
9694 aix_use_runtimelinking=no
9695
9696 # Test if we are trying to use run time linking or normal
9697 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9698 # need to do runtime linking.
9699 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9700 for ld_flag in $LDFLAGS; do
9701 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9702 aix_use_runtimelinking=yes
9703 break
9704 fi
9705 done
9706 ;;
9707 esac
9708
9709 exp_sym_flag='-bexport'
9710 no_entry_flag='-bnoentry'
9711 fi
9712
9713 # When large executables or shared objects are built, AIX ld can
9714 # have problems creating the table of contents. If linking a library
9715 # or program results in "error TOC overflow" add -mminimal-toc to
9716 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9717 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9718
9719 archive_cmds=''
9720 hardcode_direct=yes
9721 hardcode_direct_absolute=yes
9722 hardcode_libdir_separator=':'
9723 link_all_deplibs=yes
9724 file_list_spec='${wl}-f,'
9725
9726 if test "$GCC" = yes; then
9727 case $host_os in aix4.[012]|aix4.[012].*)
9728 # We only want to do this on AIX 4.2 and lower, the check
9729 # below for broken collect2 doesn't work under 4.3+
9730 collect2name=`${CC} -print-prog-name=collect2`
9731 if test -f "$collect2name" &&
9732 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9733 then
9734 # We have reworked collect2
9735 :
9736 else
9737 # We have old collect2
9738 hardcode_direct=unsupported
9739 # It fails to find uninstalled libraries when the uninstalled
9740 # path is not listed in the libpath. Setting hardcode_minus_L
9741 # to unsupported forces relinking
9742 hardcode_minus_L=yes
9743 hardcode_libdir_flag_spec='-L$libdir'
9744 hardcode_libdir_separator=
9745 fi
9746 ;;
9747 esac
9748 shared_flag='-shared'
9749 if test "$aix_use_runtimelinking" = yes; then
9750 shared_flag="$shared_flag "'${wl}-G'
9751 fi
9752 else
9753 # not using gcc
9754 if test "$host_cpu" = ia64; then
9755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9756 # chokes on -Wl,-G. The following line is correct:
9757 shared_flag='-G'
9758 else
9759 if test "$aix_use_runtimelinking" = yes; then
9760 shared_flag='${wl}-G'
9761 else
9762 shared_flag='${wl}-bM:SRE'
9763 fi
9764 fi
9765 fi
9766
9767 export_dynamic_flag_spec='${wl}-bexpall'
9768 # It seems that -bexpall does not export symbols beginning with
9769 # underscore (_), so it is better to generate a list of symbols to export.
9770 always_export_symbols=yes
9771 if test "$aix_use_runtimelinking" = yes; then
9772 # Warning - without using the other runtime loading flags (-brtl),
9773 # -berok will link without error, but may produce a broken library.
9774 allow_undefined_flag='-berok'
9775 # Determine the default libpath from the value encoded in an
9776 # empty executable.
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9779
9780 int
9781 main ()
9782 {
9783
9784 ;
9785 return 0;
9786 }
9787 _ACEOF
9788 if ac_fn_c_try_link "$LINENO"; then :
9789
9790 lt_aix_libpath_sed='
9791 /Import File Strings/,/^$/ {
9792 /^0/ {
9793 s/^0 *\(.*\)$/\1/
9794 p
9795 }
9796 }'
9797 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9798 # Check for a 64-bit object if we didn't find anything.
9799 if test -z "$aix_libpath"; then
9800 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9801 fi
9802 fi
9803 rm -f core conftest.err conftest.$ac_objext \
9804 conftest$ac_exeext conftest.$ac_ext
9805 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9806
9807 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9808 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"
9809 else
9810 if test "$host_cpu" = ia64; then
9811 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9812 allow_undefined_flag="-z nodefs"
9813 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"
9814 else
9815 # Determine the default libpath from the value encoded in an
9816 # empty executable.
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819
9820 int
9821 main ()
9822 {
9823
9824 ;
9825 return 0;
9826 }
9827 _ACEOF
9828 if ac_fn_c_try_link "$LINENO"; then :
9829
9830 lt_aix_libpath_sed='
9831 /Import File Strings/,/^$/ {
9832 /^0/ {
9833 s/^0 *\(.*\)$/\1/
9834 p
9835 }
9836 }'
9837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9838 # Check for a 64-bit object if we didn't find anything.
9839 if test -z "$aix_libpath"; then
9840 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9841 fi
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9846
9847 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9848 # Warning - without using the other run time loading flags,
9849 # -berok will link without error, but may produce a broken library.
9850 no_undefined_flag=' ${wl}-bernotok'
9851 allow_undefined_flag=' ${wl}-berok'
9852 if test "$with_gnu_ld" = yes; then
9853 # We only use this code for GNU lds that support --whole-archive.
9854 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9855 else
9856 # Exported symbols can be pulled into shared objects from archives
9857 whole_archive_flag_spec='$convenience'
9858 fi
9859 archive_cmds_need_lc=yes
9860 # This is similar to how AIX traditionally builds its shared libraries.
9861 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'
9862 fi
9863 fi
9864 ;;
9865
9866 amigaos*)
9867 case $host_cpu in
9868 powerpc)
9869 # see comment about AmigaOS4 .so support
9870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9871 archive_expsym_cmds=''
9872 ;;
9873 m68k)
9874 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)'
9875 hardcode_libdir_flag_spec='-L$libdir'
9876 hardcode_minus_L=yes
9877 ;;
9878 esac
9879 ;;
9880
9881 bsdi[45]*)
9882 export_dynamic_flag_spec=-rdynamic
9883 ;;
9884
9885 cygwin* | mingw* | pw32* | cegcc*)
9886 # When not using gcc, we currently assume that we are using
9887 # Microsoft Visual C++.
9888 # hardcode_libdir_flag_spec is actually meaningless, as there is
9889 # no search path for DLLs.
9890 hardcode_libdir_flag_spec=' '
9891 allow_undefined_flag=unsupported
9892 # Tell ltmain to make .lib files, not .a files.
9893 libext=lib
9894 # Tell ltmain to make .dll files, not .so files.
9895 shrext_cmds=".dll"
9896 # FIXME: Setting linknames here is a bad hack.
9897 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9898 # The linker will automatically build a .lib file if we build a DLL.
9899 old_archive_from_new_cmds='true'
9900 # FIXME: Should let the user specify the lib program.
9901 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9902 fix_srcfile_path='`cygpath -w "$srcfile"`'
9903 enable_shared_with_static_runtimes=yes
9904 ;;
9905
9906 darwin* | rhapsody*)
9907
9908
9909 archive_cmds_need_lc=no
9910 hardcode_direct=no
9911 hardcode_automatic=yes
9912 hardcode_shlibpath_var=unsupported
9913 if test "$lt_cv_ld_force_load" = "yes"; then
9914 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\"`'
9915 else
9916 whole_archive_flag_spec=''
9917 fi
9918 link_all_deplibs=yes
9919 allow_undefined_flag="$_lt_dar_allow_undefined"
9920 case $cc_basename in
9921 ifort*) _lt_dar_can_shared=yes ;;
9922 *) _lt_dar_can_shared=$GCC ;;
9923 esac
9924 if test "$_lt_dar_can_shared" = "yes"; then
9925 output_verbose_link_cmd=func_echo_all
9926 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9927 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9928 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}"
9929 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}"
9930
9931 else
9932 ld_shlibs=no
9933 fi
9934
9935 ;;
9936
9937 dgux*)
9938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9939 hardcode_libdir_flag_spec='-L$libdir'
9940 hardcode_shlibpath_var=no
9941 ;;
9942
9943 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9944 # support. Future versions do this automatically, but an explicit c++rt0.o
9945 # does not break anything, and helps significantly (at the cost of a little
9946 # extra space).
9947 freebsd2.2*)
9948 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9949 hardcode_libdir_flag_spec='-R$libdir'
9950 hardcode_direct=yes
9951 hardcode_shlibpath_var=no
9952 ;;
9953
9954 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9955 freebsd2.*)
9956 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9957 hardcode_direct=yes
9958 hardcode_minus_L=yes
9959 hardcode_shlibpath_var=no
9960 ;;
9961
9962 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9963 freebsd* | dragonfly*)
9964 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9965 hardcode_libdir_flag_spec='-R$libdir'
9966 hardcode_direct=yes
9967 hardcode_shlibpath_var=no
9968 ;;
9969
9970 hpux9*)
9971 if test "$GCC" = yes; then
9972 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'
9973 else
9974 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'
9975 fi
9976 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9977 hardcode_libdir_separator=:
9978 hardcode_direct=yes
9979
9980 # hardcode_minus_L: Not really in the search PATH,
9981 # but as the default location of the library.
9982 hardcode_minus_L=yes
9983 export_dynamic_flag_spec='${wl}-E'
9984 ;;
9985
9986 hpux10*)
9987 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9988 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9989 else
9990 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9991 fi
9992 if test "$with_gnu_ld" = no; then
9993 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9994 hardcode_libdir_flag_spec_ld='+b $libdir'
9995 hardcode_libdir_separator=:
9996 hardcode_direct=yes
9997 hardcode_direct_absolute=yes
9998 export_dynamic_flag_spec='${wl}-E'
9999 # hardcode_minus_L: Not really in the search PATH,
10000 # but as the default location of the library.
10001 hardcode_minus_L=yes
10002 fi
10003 ;;
10004
10005 hpux11*)
10006 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10007 case $host_cpu in
10008 hppa*64*)
10009 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 ;;
10011 ia64*)
10012 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10013 ;;
10014 *)
10015 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10016 ;;
10017 esac
10018 else
10019 case $host_cpu in
10020 hppa*64*)
10021 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 ;;
10023 ia64*)
10024 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10025 ;;
10026 *)
10027
10028 # Older versions of the 11.00 compiler do not understand -b yet
10029 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10031 $as_echo_n "checking if $CC understands -b... " >&6; }
10032 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 lt_cv_prog_compiler__b=no
10036 save_LDFLAGS="$LDFLAGS"
10037 LDFLAGS="$LDFLAGS -b"
10038 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10039 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10040 # The linker can only warn and ignore the option if not recognized
10041 # So say no if there are warnings
10042 if test -s conftest.err; then
10043 # Append any errors to the config.log.
10044 cat conftest.err 1>&5
10045 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10047 if diff conftest.exp conftest.er2 >/dev/null; then
10048 lt_cv_prog_compiler__b=yes
10049 fi
10050 else
10051 lt_cv_prog_compiler__b=yes
10052 fi
10053 fi
10054 $RM -r conftest*
10055 LDFLAGS="$save_LDFLAGS"
10056
10057 fi
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10059 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10060
10061 if test x"$lt_cv_prog_compiler__b" = xyes; then
10062 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10063 else
10064 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10065 fi
10066
10067 ;;
10068 esac
10069 fi
10070 if test "$with_gnu_ld" = no; then
10071 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10072 hardcode_libdir_separator=:
10073
10074 case $host_cpu in
10075 hppa*64*|ia64*)
10076 hardcode_direct=no
10077 hardcode_shlibpath_var=no
10078 ;;
10079 *)
10080 hardcode_direct=yes
10081 hardcode_direct_absolute=yes
10082 export_dynamic_flag_spec='${wl}-E'
10083
10084 # hardcode_minus_L: Not really in the search PATH,
10085 # but as the default location of the library.
10086 hardcode_minus_L=yes
10087 ;;
10088 esac
10089 fi
10090 ;;
10091
10092 irix5* | irix6* | nonstopux*)
10093 if test "$GCC" = yes; then
10094 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'
10095 # Try to use the -exported_symbol ld option, if it does not
10096 # work, assume that -exports_file does not work either and
10097 # implicitly export all symbols.
10098 save_LDFLAGS="$LDFLAGS"
10099 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10102 int foo(void) {}
10103 _ACEOF
10104 if ac_fn_c_try_link "$LINENO"; then :
10105 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'
10106
10107 fi
10108 rm -f core conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110 LDFLAGS="$save_LDFLAGS"
10111 else
10112 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'
10113 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'
10114 fi
10115 archive_cmds_need_lc='no'
10116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10117 hardcode_libdir_separator=:
10118 inherit_rpath=yes
10119 link_all_deplibs=yes
10120 ;;
10121
10122 netbsd*)
10123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10125 else
10126 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10127 fi
10128 hardcode_libdir_flag_spec='-R$libdir'
10129 hardcode_direct=yes
10130 hardcode_shlibpath_var=no
10131 ;;
10132
10133 newsos6)
10134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135 hardcode_direct=yes
10136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10137 hardcode_libdir_separator=:
10138 hardcode_shlibpath_var=no
10139 ;;
10140
10141 *nto* | *qnx*)
10142 ;;
10143
10144 openbsd*)
10145 if test -f /usr/libexec/ld.so; then
10146 hardcode_direct=yes
10147 hardcode_shlibpath_var=no
10148 hardcode_direct_absolute=yes
10149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10152 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10153 export_dynamic_flag_spec='${wl}-E'
10154 else
10155 case $host_os in
10156 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10158 hardcode_libdir_flag_spec='-R$libdir'
10159 ;;
10160 *)
10161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10162 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10163 ;;
10164 esac
10165 fi
10166 else
10167 ld_shlibs=no
10168 fi
10169 ;;
10170
10171 os2*)
10172 hardcode_libdir_flag_spec='-L$libdir'
10173 hardcode_minus_L=yes
10174 allow_undefined_flag=unsupported
10175 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'
10176 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10177 ;;
10178
10179 osf3*)
10180 if test "$GCC" = yes; then
10181 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10182 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'
10183 else
10184 allow_undefined_flag=' -expect_unresolved \*'
10185 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'
10186 fi
10187 archive_cmds_need_lc='no'
10188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10189 hardcode_libdir_separator=:
10190 ;;
10191
10192 osf4* | osf5*) # as osf3* with the addition of -msym flag
10193 if test "$GCC" = yes; then
10194 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10195 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'
10196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10197 else
10198 allow_undefined_flag=' -expect_unresolved \*'
10199 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'
10200 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~
10201 $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'
10202
10203 # Both c and cxx compiler support -rpath directly
10204 hardcode_libdir_flag_spec='-rpath $libdir'
10205 fi
10206 archive_cmds_need_lc='no'
10207 hardcode_libdir_separator=:
10208 ;;
10209
10210 solaris*)
10211 no_undefined_flag=' -z defs'
10212 if test "$GCC" = yes; then
10213 wlarc='${wl}'
10214 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10216 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10217 else
10218 case `$CC -V 2>&1` in
10219 *"Compilers 5.0"*)
10220 wlarc=''
10221 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10222 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10223 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10224 ;;
10225 *)
10226 wlarc='${wl}'
10227 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10228 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10229 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10230 ;;
10231 esac
10232 fi
10233 hardcode_libdir_flag_spec='-R$libdir'
10234 hardcode_shlibpath_var=no
10235 case $host_os in
10236 solaris2.[0-5] | solaris2.[0-5].*) ;;
10237 *)
10238 # The compiler driver will combine and reorder linker options,
10239 # but understands `-z linker_flag'. GCC discards it without `$wl',
10240 # but is careful enough not to reorder.
10241 # Supported since Solaris 2.6 (maybe 2.5.1?)
10242 if test "$GCC" = yes; then
10243 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10244 else
10245 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10246 fi
10247 ;;
10248 esac
10249 link_all_deplibs=yes
10250 ;;
10251
10252 sunos4*)
10253 if test "x$host_vendor" = xsequent; then
10254 # Use $CC to link under sequent, because it throws in some extra .o
10255 # files that make .init and .fini sections work.
10256 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10257 else
10258 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10259 fi
10260 hardcode_libdir_flag_spec='-L$libdir'
10261 hardcode_direct=yes
10262 hardcode_minus_L=yes
10263 hardcode_shlibpath_var=no
10264 ;;
10265
10266 sysv4)
10267 case $host_vendor in
10268 sni)
10269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270 hardcode_direct=yes # is this really true???
10271 ;;
10272 siemens)
10273 ## LD is ld it makes a PLAMLIB
10274 ## CC just makes a GrossModule.
10275 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10276 reload_cmds='$CC -r -o $output$reload_objs'
10277 hardcode_direct=no
10278 ;;
10279 motorola)
10280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10282 ;;
10283 esac
10284 runpath_var='LD_RUN_PATH'
10285 hardcode_shlibpath_var=no
10286 ;;
10287
10288 sysv4.3*)
10289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10290 hardcode_shlibpath_var=no
10291 export_dynamic_flag_spec='-Bexport'
10292 ;;
10293
10294 sysv4*MP*)
10295 if test -d /usr/nec; then
10296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297 hardcode_shlibpath_var=no
10298 runpath_var=LD_RUN_PATH
10299 hardcode_runpath_var=yes
10300 ld_shlibs=yes
10301 fi
10302 ;;
10303
10304 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10305 no_undefined_flag='${wl}-z,text'
10306 archive_cmds_need_lc=no
10307 hardcode_shlibpath_var=no
10308 runpath_var='LD_RUN_PATH'
10309
10310 if test "$GCC" = yes; then
10311 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10312 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10313 else
10314 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10315 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316 fi
10317 ;;
10318
10319 sysv5* | sco3.2v5* | sco5v6*)
10320 # Note: We can NOT use -z defs as we might desire, because we do not
10321 # link with -lc, and that would cause any symbols used from libc to
10322 # always be unresolved, which means just about no library would
10323 # ever link correctly. If we're not using GNU ld we use -z text
10324 # though, which does catch some bad symbols but isn't as heavy-handed
10325 # as -z defs.
10326 no_undefined_flag='${wl}-z,text'
10327 allow_undefined_flag='${wl}-z,nodefs'
10328 archive_cmds_need_lc=no
10329 hardcode_shlibpath_var=no
10330 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10331 hardcode_libdir_separator=':'
10332 link_all_deplibs=yes
10333 export_dynamic_flag_spec='${wl}-Bexport'
10334 runpath_var='LD_RUN_PATH'
10335
10336 if test "$GCC" = yes; then
10337 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10339 else
10340 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10341 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10342 fi
10343 ;;
10344
10345 uts4*)
10346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10347 hardcode_libdir_flag_spec='-L$libdir'
10348 hardcode_shlibpath_var=no
10349 ;;
10350
10351 *)
10352 ld_shlibs=no
10353 ;;
10354 esac
10355
10356 if test x$host_vendor = xsni; then
10357 case $host in
10358 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10359 export_dynamic_flag_spec='${wl}-Blargedynsym'
10360 ;;
10361 esac
10362 fi
10363 fi
10364
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10366 $as_echo "$ld_shlibs" >&6; }
10367 test "$ld_shlibs" = no && can_build_shared=no
10368
10369 with_gnu_ld=$with_gnu_ld
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385 #
10386 # Do we need to explicitly link libc?
10387 #
10388 case "x$archive_cmds_need_lc" in
10389 x|xyes)
10390 # Assume -lc should be added
10391 archive_cmds_need_lc=yes
10392
10393 if test "$enable_shared" = yes && test "$GCC" = yes; then
10394 case $archive_cmds in
10395 *'~'*)
10396 # FIXME: we may have to deal with multi-command sequences.
10397 ;;
10398 '$CC '*)
10399 # Test whether the compiler implicitly links with -lc since on some
10400 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10401 # to ld, don't add -lc before -lgcc.
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10403 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10404 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 $RM conftest*
10408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10409
10410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10411 (eval $ac_compile) 2>&5
10412 ac_status=$?
10413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10414 test $ac_status = 0; } 2>conftest.err; then
10415 soname=conftest
10416 lib=conftest
10417 libobjs=conftest.$ac_objext
10418 deplibs=
10419 wl=$lt_prog_compiler_wl
10420 pic_flag=$lt_prog_compiler_pic
10421 compiler_flags=-v
10422 linker_flags=-v
10423 verstring=
10424 output_objdir=.
10425 libname=conftest
10426 lt_save_allow_undefined_flag=$allow_undefined_flag
10427 allow_undefined_flag=
10428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10429 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10430 ac_status=$?
10431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10432 test $ac_status = 0; }
10433 then
10434 lt_cv_archive_cmds_need_lc=no
10435 else
10436 lt_cv_archive_cmds_need_lc=yes
10437 fi
10438 allow_undefined_flag=$lt_save_allow_undefined_flag
10439 else
10440 cat conftest.err 1>&5
10441 fi
10442 $RM conftest*
10443
10444 fi
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10446 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10447 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10448 ;;
10449 esac
10450 fi
10451 ;;
10452 esac
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10611 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10612
10613 if test "$GCC" = yes; then
10614 case $host_os in
10615 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10616 *) lt_awk_arg="/^libraries:/" ;;
10617 esac
10618 case $host_os in
10619 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10620 *) lt_sed_strip_eq="s,=/,/,g" ;;
10621 esac
10622 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10623 case $lt_search_path_spec in
10624 *\;*)
10625 # if the path contains ";" then we assume it to be the separator
10626 # otherwise default to the standard path separator (i.e. ":") - it is
10627 # assumed that no part of a normal pathname contains ";" but that should
10628 # okay in the real world where ";" in dirpaths is itself problematic.
10629 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10630 ;;
10631 *)
10632 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10633 ;;
10634 esac
10635 # Ok, now we have the path, separated by spaces, we can step through it
10636 # and add multilib dir if necessary.
10637 lt_tmp_lt_search_path_spec=
10638 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10639 for lt_sys_path in $lt_search_path_spec; do
10640 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10641 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10642 else
10643 test -d "$lt_sys_path" && \
10644 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10645 fi
10646 done
10647 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10648 BEGIN {RS=" "; FS="/|\n";} {
10649 lt_foo="";
10650 lt_count=0;
10651 for (lt_i = NF; lt_i > 0; lt_i--) {
10652 if ($lt_i != "" && $lt_i != ".") {
10653 if ($lt_i == "..") {
10654 lt_count++;
10655 } else {
10656 if (lt_count == 0) {
10657 lt_foo="/" $lt_i lt_foo;
10658 } else {
10659 lt_count--;
10660 }
10661 }
10662 }
10663 }
10664 if (lt_foo != "") { lt_freq[lt_foo]++; }
10665 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10666 }'`
10667 # AWK program above erroneously prepends '/' to C:/dos/paths
10668 # for these hosts.
10669 case $host_os in
10670 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10671 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10672 esac
10673 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10674 else
10675 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10676 fi
10677 library_names_spec=
10678 libname_spec='lib$name'
10679 soname_spec=
10680 shrext_cmds=".so"
10681 postinstall_cmds=
10682 postuninstall_cmds=
10683 finish_cmds=
10684 finish_eval=
10685 shlibpath_var=
10686 shlibpath_overrides_runpath=unknown
10687 version_type=none
10688 dynamic_linker="$host_os ld.so"
10689 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10690 need_lib_prefix=unknown
10691 hardcode_into_libs=no
10692
10693 # when you set need_version to no, make sure it does not cause -set_version
10694 # flags to be left without arguments
10695 need_version=unknown
10696
10697 case $host_os in
10698 aix3*)
10699 version_type=linux
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10701 shlibpath_var=LIBPATH
10702
10703 # AIX 3 has no versioning support, so we append a major version to the name.
10704 soname_spec='${libname}${release}${shared_ext}$major'
10705 ;;
10706
10707 aix[4-9]*)
10708 version_type=linux
10709 need_lib_prefix=no
10710 need_version=no
10711 hardcode_into_libs=yes
10712 if test "$host_cpu" = ia64; then
10713 # AIX 5 supports IA64
10714 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 else
10717 # With GCC up to 2.95.x, collect2 would create an import file
10718 # for dependence libraries. The import file would start with
10719 # the line `#! .'. This would cause the generated library to
10720 # depend on `.', always an invalid library. This was fixed in
10721 # development snapshots of GCC prior to 3.0.
10722 case $host_os in
10723 aix4 | aix4.[01] | aix4.[01].*)
10724 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10725 echo ' yes '
10726 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10727 :
10728 else
10729 can_build_shared=no
10730 fi
10731 ;;
10732 esac
10733 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10734 # soname into executable. Probably we can add versioning support to
10735 # collect2, so additional links can be useful in future.
10736 if test "$aix_use_runtimelinking" = yes; then
10737 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10738 # instead of lib<name>.a to let people know that these are not
10739 # typical AIX shared libraries.
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741 else
10742 # We preserve .a as extension for shared libraries through AIX4.2
10743 # and later when we are not doing run time linking.
10744 library_names_spec='${libname}${release}.a $libname.a'
10745 soname_spec='${libname}${release}${shared_ext}$major'
10746 fi
10747 shlibpath_var=LIBPATH
10748 fi
10749 ;;
10750
10751 amigaos*)
10752 case $host_cpu in
10753 powerpc)
10754 # Since July 2007 AmigaOS4 officially supports .so libraries.
10755 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 ;;
10758 m68k)
10759 library_names_spec='$libname.ixlibrary $libname.a'
10760 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10761 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'
10762 ;;
10763 esac
10764 ;;
10765
10766 beos*)
10767 library_names_spec='${libname}${shared_ext}'
10768 dynamic_linker="$host_os ld.so"
10769 shlibpath_var=LIBRARY_PATH
10770 ;;
10771
10772 bsdi[45]*)
10773 version_type=linux
10774 need_version=no
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10778 shlibpath_var=LD_LIBRARY_PATH
10779 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10780 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10781 # the default ld.so.conf also contains /usr/contrib/lib and
10782 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10783 # libtool to hard-code these into programs
10784 ;;
10785
10786 cygwin* | mingw* | pw32* | cegcc*)
10787 version_type=windows
10788 shrext_cmds=".dll"
10789 need_version=no
10790 need_lib_prefix=no
10791
10792 case $GCC,$host_os in
10793 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10794 library_names_spec='$libname.dll.a'
10795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10796 postinstall_cmds='base_file=`basename \${file}`~
10797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10798 dldir=$destdir/`dirname \$dlpath`~
10799 test -d \$dldir || mkdir -p \$dldir~
10800 $install_prog $dir/$dlname \$dldir/$dlname~
10801 chmod a+x \$dldir/$dlname~
10802 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10803 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10804 fi'
10805 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10806 dlpath=$dir/\$dldll~
10807 $RM \$dlpath'
10808 shlibpath_overrides_runpath=yes
10809
10810 case $host_os in
10811 cygwin*)
10812 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10813 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10814
10815 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10816 ;;
10817 mingw* | cegcc*)
10818 # MinGW DLLs use traditional 'lib' prefix
10819 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10820 ;;
10821 pw32*)
10822 # pw32 DLLs use 'pw' prefix rather than 'lib'
10823 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10824 ;;
10825 esac
10826 ;;
10827
10828 *)
10829 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10830 ;;
10831 esac
10832 dynamic_linker='Win32 ld.exe'
10833 # FIXME: first we should search . and the directory the executable is in
10834 shlibpath_var=PATH
10835 ;;
10836
10837 darwin* | rhapsody*)
10838 dynamic_linker="$host_os dyld"
10839 version_type=darwin
10840 need_lib_prefix=no
10841 need_version=no
10842 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10843 soname_spec='${libname}${release}${major}$shared_ext'
10844 shlibpath_overrides_runpath=yes
10845 shlibpath_var=DYLD_LIBRARY_PATH
10846 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10847
10848 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10849 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10850 ;;
10851
10852 dgux*)
10853 version_type=linux
10854 need_lib_prefix=no
10855 need_version=no
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10857 soname_spec='${libname}${release}${shared_ext}$major'
10858 shlibpath_var=LD_LIBRARY_PATH
10859 ;;
10860
10861 freebsd* | dragonfly*)
10862 # DragonFly does not have aout. When/if they implement a new
10863 # versioning mechanism, adjust this.
10864 if test -x /usr/bin/objformat; then
10865 objformat=`/usr/bin/objformat`
10866 else
10867 case $host_os in
10868 freebsd[23].*) objformat=aout ;;
10869 *) objformat=elf ;;
10870 esac
10871 fi
10872 version_type=freebsd-$objformat
10873 case $version_type in
10874 freebsd-elf*)
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10876 need_version=no
10877 need_lib_prefix=no
10878 ;;
10879 freebsd-*)
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10881 need_version=yes
10882 ;;
10883 esac
10884 shlibpath_var=LD_LIBRARY_PATH
10885 case $host_os in
10886 freebsd2.*)
10887 shlibpath_overrides_runpath=yes
10888 ;;
10889 freebsd3.[01]* | freebsdelf3.[01]*)
10890 shlibpath_overrides_runpath=yes
10891 hardcode_into_libs=yes
10892 ;;
10893 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10894 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10895 shlibpath_overrides_runpath=no
10896 hardcode_into_libs=yes
10897 ;;
10898 *) # from 4.6 on, and DragonFly
10899 shlibpath_overrides_runpath=yes
10900 hardcode_into_libs=yes
10901 ;;
10902 esac
10903 ;;
10904
10905 gnu*)
10906 version_type=linux
10907 need_lib_prefix=no
10908 need_version=no
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10910 soname_spec='${libname}${release}${shared_ext}$major'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 hardcode_into_libs=yes
10913 ;;
10914
10915 haiku*)
10916 version_type=linux
10917 need_lib_prefix=no
10918 need_version=no
10919 dynamic_linker="$host_os runtime_loader"
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10921 soname_spec='${libname}${release}${shared_ext}$major'
10922 shlibpath_var=LIBRARY_PATH
10923 shlibpath_overrides_runpath=yes
10924 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10925 hardcode_into_libs=yes
10926 ;;
10927
10928 hpux9* | hpux10* | hpux11*)
10929 # Give a soname corresponding to the major version so that dld.sl refuses to
10930 # link against other versions.
10931 version_type=sunos
10932 need_lib_prefix=no
10933 need_version=no
10934 case $host_cpu in
10935 ia64*)
10936 shrext_cmds='.so'
10937 hardcode_into_libs=yes
10938 dynamic_linker="$host_os dld.so"
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942 soname_spec='${libname}${release}${shared_ext}$major'
10943 if test "X$HPUX_IA64_MODE" = X32; then
10944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10945 else
10946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10947 fi
10948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10949 ;;
10950 hppa*64*)
10951 shrext_cmds='.sl'
10952 hardcode_into_libs=yes
10953 dynamic_linker="$host_os dld.sl"
10954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10960 ;;
10961 *)
10962 shrext_cmds='.sl'
10963 dynamic_linker="$host_os dld.sl"
10964 shlibpath_var=SHLIB_PATH
10965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 ;;
10969 esac
10970 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10971 postinstall_cmds='chmod 555 $lib'
10972 # or fails outright, so override atomically:
10973 install_override_mode=555
10974 ;;
10975
10976 interix[3-9]*)
10977 version_type=linux
10978 need_lib_prefix=no
10979 need_version=no
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10983 shlibpath_var=LD_LIBRARY_PATH
10984 shlibpath_overrides_runpath=no
10985 hardcode_into_libs=yes
10986 ;;
10987
10988 irix5* | irix6* | nonstopux*)
10989 case $host_os in
10990 nonstopux*) version_type=nonstopux ;;
10991 *)
10992 if test "$lt_cv_prog_gnu_ld" = yes; then
10993 version_type=linux
10994 else
10995 version_type=irix
10996 fi ;;
10997 esac
10998 need_lib_prefix=no
10999 need_version=no
11000 soname_spec='${libname}${release}${shared_ext}$major'
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11002 case $host_os in
11003 irix5* | nonstopux*)
11004 libsuff= shlibsuff=
11005 ;;
11006 *)
11007 case $LD in # libtool.m4 will add one of these switches to LD
11008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11009 libsuff= shlibsuff= libmagic=32-bit;;
11010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11011 libsuff=32 shlibsuff=N32 libmagic=N32;;
11012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11014 *) libsuff= shlibsuff= libmagic=never-match;;
11015 esac
11016 ;;
11017 esac
11018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11019 shlibpath_overrides_runpath=no
11020 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11021 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11022 hardcode_into_libs=yes
11023 ;;
11024
11025 # No shared lib support for Linux oldld, aout, or coff.
11026 linux*oldld* | linux*aout* | linux*coff*)
11027 dynamic_linker=no
11028 ;;
11029
11030 # This must be Linux ELF.
11031 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11032 version_type=linux
11033 need_lib_prefix=no
11034 need_version=no
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036 soname_spec='${libname}${release}${shared_ext}$major'
11037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11038 shlibpath_var=LD_LIBRARY_PATH
11039 shlibpath_overrides_runpath=no
11040
11041 # Some binutils ld are patched to set DT_RUNPATH
11042 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 lt_cv_shlibpath_overrides_runpath=no
11046 save_LDFLAGS=$LDFLAGS
11047 save_libdir=$libdir
11048 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11049 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11052
11053 int
11054 main ()
11055 {
11056
11057 ;
11058 return 0;
11059 }
11060 _ACEOF
11061 if ac_fn_c_try_link "$LINENO"; then :
11062 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11063 lt_cv_shlibpath_overrides_runpath=yes
11064 fi
11065 fi
11066 rm -f core conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext
11068 LDFLAGS=$save_LDFLAGS
11069 libdir=$save_libdir
11070
11071 fi
11072
11073 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11074
11075 # This implies no fast_install, which is unacceptable.
11076 # Some rework will be needed to allow for fast_install
11077 # before this can be enabled.
11078 hardcode_into_libs=yes
11079
11080 # Append ld.so.conf contents to the search path
11081 if test -f /etc/ld.so.conf; then
11082 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' ' '`
11083 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11084 fi
11085
11086 # We used to test for /lib/ld.so.1 and disable shared libraries on
11087 # powerpc, because MkLinux only supported shared libraries with the
11088 # GNU dynamic linker. Since this was broken with cross compilers,
11089 # most powerpc-linux boxes support dynamic linking these days and
11090 # people can always --disable-shared, the test was removed, and we
11091 # assume the GNU/Linux dynamic linker is in use.
11092 dynamic_linker='GNU/Linux ld.so'
11093 ;;
11094
11095 netbsd*)
11096 version_type=sunos
11097 need_lib_prefix=no
11098 need_version=no
11099 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11102 dynamic_linker='NetBSD (a.out) ld.so'
11103 else
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 dynamic_linker='NetBSD ld.elf_so'
11107 fi
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=yes
11110 hardcode_into_libs=yes
11111 ;;
11112
11113 newsos6)
11114 version_type=linux
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 shlibpath_overrides_runpath=yes
11118 ;;
11119
11120 *nto* | *qnx*)
11121 version_type=qnx
11122 need_lib_prefix=no
11123 need_version=no
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=no
11128 hardcode_into_libs=yes
11129 dynamic_linker='ldqnx.so'
11130 ;;
11131
11132 openbsd*)
11133 version_type=sunos
11134 sys_lib_dlsearch_path_spec="/usr/lib"
11135 need_lib_prefix=no
11136 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11137 case $host_os in
11138 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11139 *) need_version=no ;;
11140 esac
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11145 case $host_os in
11146 openbsd2.[89] | openbsd2.[89].*)
11147 shlibpath_overrides_runpath=no
11148 ;;
11149 *)
11150 shlibpath_overrides_runpath=yes
11151 ;;
11152 esac
11153 else
11154 shlibpath_overrides_runpath=yes
11155 fi
11156 ;;
11157
11158 os2*)
11159 libname_spec='$name'
11160 shrext_cmds=".dll"
11161 need_lib_prefix=no
11162 library_names_spec='$libname${shared_ext} $libname.a'
11163 dynamic_linker='OS/2 ld.exe'
11164 shlibpath_var=LIBPATH
11165 ;;
11166
11167 osf3* | osf4* | osf5*)
11168 version_type=osf
11169 need_lib_prefix=no
11170 need_version=no
11171 soname_spec='${libname}${release}${shared_ext}$major'
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11175 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11176 ;;
11177
11178 rdos*)
11179 dynamic_linker=no
11180 ;;
11181
11182 solaris*)
11183 version_type=linux
11184 need_lib_prefix=no
11185 need_version=no
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=yes
11190 hardcode_into_libs=yes
11191 # ldd complains unless libraries are executable
11192 postinstall_cmds='chmod +x $lib'
11193 ;;
11194
11195 sunos4*)
11196 version_type=sunos
11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11198 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 shlibpath_overrides_runpath=yes
11201 if test "$with_gnu_ld" = yes; then
11202 need_lib_prefix=no
11203 fi
11204 need_version=yes
11205 ;;
11206
11207 sysv4 | sysv4.3*)
11208 version_type=linux
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 case $host_vendor in
11213 sni)
11214 shlibpath_overrides_runpath=no
11215 need_lib_prefix=no
11216 runpath_var=LD_RUN_PATH
11217 ;;
11218 siemens)
11219 need_lib_prefix=no
11220 ;;
11221 motorola)
11222 need_lib_prefix=no
11223 need_version=no
11224 shlibpath_overrides_runpath=no
11225 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11226 ;;
11227 esac
11228 ;;
11229
11230 sysv4*MP*)
11231 if test -d /usr/nec ;then
11232 version_type=linux
11233 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11234 soname_spec='$libname${shared_ext}.$major'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 fi
11237 ;;
11238
11239 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11240 version_type=freebsd-elf
11241 need_lib_prefix=no
11242 need_version=no
11243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11244 soname_spec='${libname}${release}${shared_ext}$major'
11245 shlibpath_var=LD_LIBRARY_PATH
11246 shlibpath_overrides_runpath=yes
11247 hardcode_into_libs=yes
11248 if test "$with_gnu_ld" = yes; then
11249 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11250 else
11251 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11252 case $host_os in
11253 sco3.2v5*)
11254 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11255 ;;
11256 esac
11257 fi
11258 sys_lib_dlsearch_path_spec='/usr/lib'
11259 ;;
11260
11261 tpf*)
11262 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11263 version_type=linux
11264 need_lib_prefix=no
11265 need_version=no
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 shlibpath_var=LD_LIBRARY_PATH
11268 shlibpath_overrides_runpath=no
11269 hardcode_into_libs=yes
11270 ;;
11271
11272 uts4*)
11273 version_type=linux
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 ;;
11278
11279 *)
11280 dynamic_linker=no
11281 ;;
11282 esac
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11284 $as_echo "$dynamic_linker" >&6; }
11285 test "$dynamic_linker" = no && can_build_shared=no
11286
11287 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11288 if test "$GCC" = yes; then
11289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11290 fi
11291
11292 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11293 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11294 fi
11295 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11296 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11297 fi
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11391 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11392 hardcode_action=
11393 if test -n "$hardcode_libdir_flag_spec" ||
11394 test -n "$runpath_var" ||
11395 test "X$hardcode_automatic" = "Xyes" ; then
11396
11397 # We can hardcode non-existent directories.
11398 if test "$hardcode_direct" != no &&
11399 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11400 # have to relink, otherwise we might link with an installed library
11401 # when we should be linking with a yet-to-be-installed one
11402 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11403 test "$hardcode_minus_L" != no; then
11404 # Linking always hardcodes the temporary library directory.
11405 hardcode_action=relink
11406 else
11407 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11408 hardcode_action=immediate
11409 fi
11410 else
11411 # We cannot hardcode anything, or else we can only hardcode existing
11412 # directories.
11413 hardcode_action=unsupported
11414 fi
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11416 $as_echo "$hardcode_action" >&6; }
11417
11418 if test "$hardcode_action" = relink ||
11419 test "$inherit_rpath" = yes; then
11420 # Fast installation is not supported
11421 enable_fast_install=no
11422 elif test "$shlibpath_overrides_runpath" = yes ||
11423 test "$enable_shared" = no; then
11424 # Fast installation is not necessary
11425 enable_fast_install=needless
11426 fi
11427
11428
11429
11430
11431
11432
11433 if test "x$enable_dlopen" != xyes; then
11434 enable_dlopen=unknown
11435 enable_dlopen_self=unknown
11436 enable_dlopen_self_static=unknown
11437 else
11438 lt_cv_dlopen=no
11439 lt_cv_dlopen_libs=
11440
11441 case $host_os in
11442 beos*)
11443 lt_cv_dlopen="load_add_on"
11444 lt_cv_dlopen_libs=
11445 lt_cv_dlopen_self=yes
11446 ;;
11447
11448 mingw* | pw32* | cegcc*)
11449 lt_cv_dlopen="LoadLibrary"
11450 lt_cv_dlopen_libs=
11451 ;;
11452
11453 cygwin*)
11454 lt_cv_dlopen="dlopen"
11455 lt_cv_dlopen_libs=
11456 ;;
11457
11458 darwin*)
11459 # if libdl is installed we need to link against it
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11461 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11462 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11463 $as_echo_n "(cached) " >&6
11464 else
11465 ac_check_lib_save_LIBS=$LIBS
11466 LIBS="-ldl $LIBS"
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11469
11470 /* Override any GCC internal prototype to avoid an error.
11471 Use char because int might match the return type of a GCC
11472 builtin and then its argument prototype would still apply. */
11473 #ifdef __cplusplus
11474 extern "C"
11475 #endif
11476 char dlopen ();
11477 int
11478 main ()
11479 {
11480 return dlopen ();
11481 ;
11482 return 0;
11483 }
11484 _ACEOF
11485 if ac_fn_c_try_link "$LINENO"; then :
11486 ac_cv_lib_dl_dlopen=yes
11487 else
11488 ac_cv_lib_dl_dlopen=no
11489 fi
11490 rm -f core conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 LIBS=$ac_check_lib_save_LIBS
11493 fi
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11495 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11496 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11497 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11498 else
11499
11500 lt_cv_dlopen="dyld"
11501 lt_cv_dlopen_libs=
11502 lt_cv_dlopen_self=yes
11503
11504 fi
11505
11506 ;;
11507
11508 *)
11509 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11510 if test "x$ac_cv_func_shl_load" = x""yes; then :
11511 lt_cv_dlopen="shl_load"
11512 else
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11514 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11515 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 ac_check_lib_save_LIBS=$LIBS
11519 LIBS="-ldld $LIBS"
11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h. */
11522
11523 /* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
11526 #ifdef __cplusplus
11527 extern "C"
11528 #endif
11529 char shl_load ();
11530 int
11531 main ()
11532 {
11533 return shl_load ();
11534 ;
11535 return 0;
11536 }
11537 _ACEOF
11538 if ac_fn_c_try_link "$LINENO"; then :
11539 ac_cv_lib_dld_shl_load=yes
11540 else
11541 ac_cv_lib_dld_shl_load=no
11542 fi
11543 rm -f core conftest.err conftest.$ac_objext \
11544 conftest$ac_exeext conftest.$ac_ext
11545 LIBS=$ac_check_lib_save_LIBS
11546 fi
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11548 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11549 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11550 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11551 else
11552 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11553 if test "x$ac_cv_func_dlopen" = x""yes; then :
11554 lt_cv_dlopen="dlopen"
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11557 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 ac_check_lib_save_LIBS=$LIBS
11562 LIBS="-ldl $LIBS"
11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564 /* end confdefs.h. */
11565
11566 /* Override any GCC internal prototype to avoid an error.
11567 Use char because int might match the return type of a GCC
11568 builtin and then its argument prototype would still apply. */
11569 #ifdef __cplusplus
11570 extern "C"
11571 #endif
11572 char dlopen ();
11573 int
11574 main ()
11575 {
11576 return dlopen ();
11577 ;
11578 return 0;
11579 }
11580 _ACEOF
11581 if ac_fn_c_try_link "$LINENO"; then :
11582 ac_cv_lib_dl_dlopen=yes
11583 else
11584 ac_cv_lib_dl_dlopen=no
11585 fi
11586 rm -f core conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11588 LIBS=$ac_check_lib_save_LIBS
11589 fi
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11591 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11592 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11593 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11594 else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11596 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11597 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-lsvld $LIBS"
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h. */
11604
11605 /* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11608 #ifdef __cplusplus
11609 extern "C"
11610 #endif
11611 char dlopen ();
11612 int
11613 main ()
11614 {
11615 return dlopen ();
11616 ;
11617 return 0;
11618 }
11619 _ACEOF
11620 if ac_fn_c_try_link "$LINENO"; then :
11621 ac_cv_lib_svld_dlopen=yes
11622 else
11623 ac_cv_lib_svld_dlopen=no
11624 fi
11625 rm -f core conftest.err conftest.$ac_objext \
11626 conftest$ac_exeext conftest.$ac_ext
11627 LIBS=$ac_check_lib_save_LIBS
11628 fi
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11630 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11631 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11635 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11636 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11637 $as_echo_n "(cached) " >&6
11638 else
11639 ac_check_lib_save_LIBS=$LIBS
11640 LIBS="-ldld $LIBS"
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11643
11644 /* Override any GCC internal prototype to avoid an error.
11645 Use char because int might match the return type of a GCC
11646 builtin and then its argument prototype would still apply. */
11647 #ifdef __cplusplus
11648 extern "C"
11649 #endif
11650 char dld_link ();
11651 int
11652 main ()
11653 {
11654 return dld_link ();
11655 ;
11656 return 0;
11657 }
11658 _ACEOF
11659 if ac_fn_c_try_link "$LINENO"; then :
11660 ac_cv_lib_dld_dld_link=yes
11661 else
11662 ac_cv_lib_dld_dld_link=no
11663 fi
11664 rm -f core conftest.err conftest.$ac_objext \
11665 conftest$ac_exeext conftest.$ac_ext
11666 LIBS=$ac_check_lib_save_LIBS
11667 fi
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11669 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11670 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11671 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11672 fi
11673
11674
11675 fi
11676
11677
11678 fi
11679
11680
11681 fi
11682
11683
11684 fi
11685
11686
11687 fi
11688
11689 ;;
11690 esac
11691
11692 if test "x$lt_cv_dlopen" != xno; then
11693 enable_dlopen=yes
11694 else
11695 enable_dlopen=no
11696 fi
11697
11698 case $lt_cv_dlopen in
11699 dlopen)
11700 save_CPPFLAGS="$CPPFLAGS"
11701 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11702
11703 save_LDFLAGS="$LDFLAGS"
11704 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11705
11706 save_LIBS="$LIBS"
11707 LIBS="$lt_cv_dlopen_libs $LIBS"
11708
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11710 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11711 if test "${lt_cv_dlopen_self+set}" = set; then :
11712 $as_echo_n "(cached) " >&6
11713 else
11714 if test "$cross_compiling" = yes; then :
11715 lt_cv_dlopen_self=cross
11716 else
11717 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11718 lt_status=$lt_dlunknown
11719 cat > conftest.$ac_ext <<_LT_EOF
11720 #line 11720 "configure"
11721 #include "confdefs.h"
11722
11723 #if HAVE_DLFCN_H
11724 #include <dlfcn.h>
11725 #endif
11726
11727 #include <stdio.h>
11728
11729 #ifdef RTLD_GLOBAL
11730 # define LT_DLGLOBAL RTLD_GLOBAL
11731 #else
11732 # ifdef DL_GLOBAL
11733 # define LT_DLGLOBAL DL_GLOBAL
11734 # else
11735 # define LT_DLGLOBAL 0
11736 # endif
11737 #endif
11738
11739 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11740 find out it does not work in some platform. */
11741 #ifndef LT_DLLAZY_OR_NOW
11742 # ifdef RTLD_LAZY
11743 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11744 # else
11745 # ifdef DL_LAZY
11746 # define LT_DLLAZY_OR_NOW DL_LAZY
11747 # else
11748 # ifdef RTLD_NOW
11749 # define LT_DLLAZY_OR_NOW RTLD_NOW
11750 # else
11751 # ifdef DL_NOW
11752 # define LT_DLLAZY_OR_NOW DL_NOW
11753 # else
11754 # define LT_DLLAZY_OR_NOW 0
11755 # endif
11756 # endif
11757 # endif
11758 # endif
11759 #endif
11760
11761 /* When -fvisbility=hidden is used, assume the code has been annotated
11762 correspondingly for the symbols needed. */
11763 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11764 void fnord () __attribute__((visibility("default")));
11765 #endif
11766
11767 void fnord () { int i=42; }
11768 int main ()
11769 {
11770 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11771 int status = $lt_dlunknown;
11772
11773 if (self)
11774 {
11775 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11776 else
11777 {
11778 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11779 else puts (dlerror ());
11780 }
11781 /* dlclose (self); */
11782 }
11783 else
11784 puts (dlerror ());
11785
11786 return status;
11787 }
11788 _LT_EOF
11789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11790 (eval $ac_link) 2>&5
11791 ac_status=$?
11792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11793 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11794 (./conftest; exit; ) >&5 2>/dev/null
11795 lt_status=$?
11796 case x$lt_status in
11797 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11798 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11799 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11800 esac
11801 else :
11802 # compilation failed
11803 lt_cv_dlopen_self=no
11804 fi
11805 fi
11806 rm -fr conftest*
11807
11808
11809 fi
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11811 $as_echo "$lt_cv_dlopen_self" >&6; }
11812
11813 if test "x$lt_cv_dlopen_self" = xyes; then
11814 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11816 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11817 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 if test "$cross_compiling" = yes; then :
11821 lt_cv_dlopen_self_static=cross
11822 else
11823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11824 lt_status=$lt_dlunknown
11825 cat > conftest.$ac_ext <<_LT_EOF
11826 #line 11826 "configure"
11827 #include "confdefs.h"
11828
11829 #if HAVE_DLFCN_H
11830 #include <dlfcn.h>
11831 #endif
11832
11833 #include <stdio.h>
11834
11835 #ifdef RTLD_GLOBAL
11836 # define LT_DLGLOBAL RTLD_GLOBAL
11837 #else
11838 # ifdef DL_GLOBAL
11839 # define LT_DLGLOBAL DL_GLOBAL
11840 # else
11841 # define LT_DLGLOBAL 0
11842 # endif
11843 #endif
11844
11845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11846 find out it does not work in some platform. */
11847 #ifndef LT_DLLAZY_OR_NOW
11848 # ifdef RTLD_LAZY
11849 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11850 # else
11851 # ifdef DL_LAZY
11852 # define LT_DLLAZY_OR_NOW DL_LAZY
11853 # else
11854 # ifdef RTLD_NOW
11855 # define LT_DLLAZY_OR_NOW RTLD_NOW
11856 # else
11857 # ifdef DL_NOW
11858 # define LT_DLLAZY_OR_NOW DL_NOW
11859 # else
11860 # define LT_DLLAZY_OR_NOW 0
11861 # endif
11862 # endif
11863 # endif
11864 # endif
11865 #endif
11866
11867 /* When -fvisbility=hidden is used, assume the code has been annotated
11868 correspondingly for the symbols needed. */
11869 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11870 void fnord () __attribute__((visibility("default")));
11871 #endif
11872
11873 void fnord () { int i=42; }
11874 int main ()
11875 {
11876 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11877 int status = $lt_dlunknown;
11878
11879 if (self)
11880 {
11881 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11882 else
11883 {
11884 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11885 else puts (dlerror ());
11886 }
11887 /* dlclose (self); */
11888 }
11889 else
11890 puts (dlerror ());
11891
11892 return status;
11893 }
11894 _LT_EOF
11895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11896 (eval $ac_link) 2>&5
11897 ac_status=$?
11898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11899 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11900 (./conftest; exit; ) >&5 2>/dev/null
11901 lt_status=$?
11902 case x$lt_status in
11903 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11904 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11905 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11906 esac
11907 else :
11908 # compilation failed
11909 lt_cv_dlopen_self_static=no
11910 fi
11911 fi
11912 rm -fr conftest*
11913
11914
11915 fi
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11917 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11918 fi
11919
11920 CPPFLAGS="$save_CPPFLAGS"
11921 LDFLAGS="$save_LDFLAGS"
11922 LIBS="$save_LIBS"
11923 ;;
11924 esac
11925
11926 case $lt_cv_dlopen_self in
11927 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11928 *) enable_dlopen_self=unknown ;;
11929 esac
11930
11931 case $lt_cv_dlopen_self_static in
11932 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11933 *) enable_dlopen_self_static=unknown ;;
11934 esac
11935 fi
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953 striplib=
11954 old_striplib=
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11956 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11957 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11958 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11959 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11961 $as_echo "yes" >&6; }
11962 else
11963 # FIXME - insert some real tests, host_os isn't really good enough
11964 case $host_os in
11965 darwin*)
11966 if test -n "$STRIP" ; then
11967 striplib="$STRIP -x"
11968 old_striplib="$STRIP -S"
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11970 $as_echo "yes" >&6; }
11971 else
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974 fi
11975 ;;
11976 *)
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11979 ;;
11980 esac
11981 fi
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994 # Report which library types will actually be built
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11996 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11998 $as_echo "$can_build_shared" >&6; }
11999
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12001 $as_echo_n "checking whether to build shared libraries... " >&6; }
12002 test "$can_build_shared" = "no" && enable_shared=no
12003
12004 # On AIX, shared libraries and static libraries use the same namespace, and
12005 # are all built from PIC.
12006 case $host_os in
12007 aix3*)
12008 test "$enable_shared" = yes && enable_static=no
12009 if test -n "$RANLIB"; then
12010 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12011 postinstall_cmds='$RANLIB $lib'
12012 fi
12013 ;;
12014
12015 aix[4-9]*)
12016 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12017 test "$enable_shared" = yes && enable_static=no
12018 fi
12019 ;;
12020 esac
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12022 $as_echo "$enable_shared" >&6; }
12023
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12025 $as_echo_n "checking whether to build static libraries... " >&6; }
12026 # Make sure either enable_shared or enable_static is yes.
12027 test "$enable_shared" = yes || enable_static=yes
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12029 $as_echo "$enable_static" >&6; }
12030
12031
12032
12033
12034 fi
12035 ac_ext=c
12036 ac_cpp='$CPP $CPPFLAGS'
12037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12040
12041 CC="$lt_save_CC"
12042
12043 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12044 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12045 (test "X$CXX" != "Xg++"))) ; then
12046 ac_ext=cpp
12047 ac_cpp='$CXXCPP $CPPFLAGS'
12048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12052 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12053 if test -z "$CXXCPP"; then
12054 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12055 $as_echo_n "(cached) " >&6
12056 else
12057 # Double quotes because CXXCPP needs to be expanded
12058 for CXXCPP in "$CXX -E" "/lib/cpp"
12059 do
12060 ac_preproc_ok=false
12061 for ac_cxx_preproc_warn_flag in '' yes
12062 do
12063 # Use a header file that comes with gcc, so configuring glibc
12064 # with a fresh cross-compiler works.
12065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066 # <limits.h> exists even on freestanding compilers.
12067 # On the NeXT, cc -E runs the code through the compiler's parser,
12068 # not just through cpp. "Syntax error" is here to catch this case.
12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h. */
12071 #ifdef __STDC__
12072 # include <limits.h>
12073 #else
12074 # include <assert.h>
12075 #endif
12076 Syntax error
12077 _ACEOF
12078 if ac_fn_cxx_try_cpp "$LINENO"; then :
12079
12080 else
12081 # Broken: fails on valid input.
12082 continue
12083 fi
12084 rm -f conftest.err conftest.$ac_ext
12085
12086 # OK, works on sane cases. Now check whether nonexistent headers
12087 # can be detected and how.
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12090 #include <ac_nonexistent.h>
12091 _ACEOF
12092 if ac_fn_cxx_try_cpp "$LINENO"; then :
12093 # Broken: success on invalid input.
12094 continue
12095 else
12096 # Passes both tests.
12097 ac_preproc_ok=:
12098 break
12099 fi
12100 rm -f conftest.err conftest.$ac_ext
12101
12102 done
12103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12104 rm -f conftest.err conftest.$ac_ext
12105 if $ac_preproc_ok; then :
12106 break
12107 fi
12108
12109 done
12110 ac_cv_prog_CXXCPP=$CXXCPP
12111
12112 fi
12113 CXXCPP=$ac_cv_prog_CXXCPP
12114 else
12115 ac_cv_prog_CXXCPP=$CXXCPP
12116 fi
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12118 $as_echo "$CXXCPP" >&6; }
12119 ac_preproc_ok=false
12120 for ac_cxx_preproc_warn_flag in '' yes
12121 do
12122 # Use a header file that comes with gcc, so configuring glibc
12123 # with a fresh cross-compiler works.
12124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12125 # <limits.h> exists even on freestanding compilers.
12126 # On the NeXT, cc -E runs the code through the compiler's parser,
12127 # not just through cpp. "Syntax error" is here to catch this case.
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12130 #ifdef __STDC__
12131 # include <limits.h>
12132 #else
12133 # include <assert.h>
12134 #endif
12135 Syntax error
12136 _ACEOF
12137 if ac_fn_cxx_try_cpp "$LINENO"; then :
12138
12139 else
12140 # Broken: fails on valid input.
12141 continue
12142 fi
12143 rm -f conftest.err conftest.$ac_ext
12144
12145 # OK, works on sane cases. Now check whether nonexistent headers
12146 # can be detected and how.
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12149 #include <ac_nonexistent.h>
12150 _ACEOF
12151 if ac_fn_cxx_try_cpp "$LINENO"; then :
12152 # Broken: success on invalid input.
12153 continue
12154 else
12155 # Passes both tests.
12156 ac_preproc_ok=:
12157 break
12158 fi
12159 rm -f conftest.err conftest.$ac_ext
12160
12161 done
12162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12163 rm -f conftest.err conftest.$ac_ext
12164 if $ac_preproc_ok; then :
12165
12166 else
12167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12169 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12170 See \`config.log' for more details." "$LINENO" 5; }
12171 fi
12172
12173 ac_ext=c
12174 ac_cpp='$CPP $CPPFLAGS'
12175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12178
12179 else
12180 _lt_caught_CXX_error=yes
12181 fi
12182
12183 ac_ext=cpp
12184 ac_cpp='$CXXCPP $CPPFLAGS'
12185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12188
12189 archive_cmds_need_lc_CXX=no
12190 allow_undefined_flag_CXX=
12191 always_export_symbols_CXX=no
12192 archive_expsym_cmds_CXX=
12193 compiler_needs_object_CXX=no
12194 export_dynamic_flag_spec_CXX=
12195 hardcode_direct_CXX=no
12196 hardcode_direct_absolute_CXX=no
12197 hardcode_libdir_flag_spec_CXX=
12198 hardcode_libdir_flag_spec_ld_CXX=
12199 hardcode_libdir_separator_CXX=
12200 hardcode_minus_L_CXX=no
12201 hardcode_shlibpath_var_CXX=unsupported
12202 hardcode_automatic_CXX=no
12203 inherit_rpath_CXX=no
12204 module_cmds_CXX=
12205 module_expsym_cmds_CXX=
12206 link_all_deplibs_CXX=unknown
12207 old_archive_cmds_CXX=$old_archive_cmds
12208 reload_flag_CXX=$reload_flag
12209 reload_cmds_CXX=$reload_cmds
12210 no_undefined_flag_CXX=
12211 whole_archive_flag_spec_CXX=
12212 enable_shared_with_static_runtimes_CXX=no
12213
12214 # Source file extension for C++ test sources.
12215 ac_ext=cpp
12216
12217 # Object file extension for compiled C++ test sources.
12218 objext=o
12219 objext_CXX=$objext
12220
12221 # No sense in running all these tests if we already determined that
12222 # the CXX compiler isn't working. Some variables (like enable_shared)
12223 # are currently assumed to apply to all compilers on this platform,
12224 # and will be corrupted by setting them based on a non-working compiler.
12225 if test "$_lt_caught_CXX_error" != yes; then
12226 # Code to be used in simple compile tests
12227 lt_simple_compile_test_code="int some_variable = 0;"
12228
12229 # Code to be used in simple link tests
12230 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12231
12232 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12233
12234
12235
12236
12237
12238
12239 # If no C compiler was specified, use CC.
12240 LTCC=${LTCC-"$CC"}
12241
12242 # If no C compiler flags were specified, use CFLAGS.
12243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12244
12245 # Allow CC to be a program name with arguments.
12246 compiler=$CC
12247
12248
12249 # save warnings/boilerplate of simple test code
12250 ac_outfile=conftest.$ac_objext
12251 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12252 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12253 _lt_compiler_boilerplate=`cat conftest.err`
12254 $RM conftest*
12255
12256 ac_outfile=conftest.$ac_objext
12257 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12258 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12259 _lt_linker_boilerplate=`cat conftest.err`
12260 $RM -r conftest*
12261
12262
12263 # Allow CC to be a program name with arguments.
12264 lt_save_CC=$CC
12265 lt_save_LD=$LD
12266 lt_save_GCC=$GCC
12267 GCC=$GXX
12268 lt_save_with_gnu_ld=$with_gnu_ld
12269 lt_save_path_LD=$lt_cv_path_LD
12270 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12271 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12272 else
12273 $as_unset lt_cv_prog_gnu_ld
12274 fi
12275 if test -n "${lt_cv_path_LDCXX+set}"; then
12276 lt_cv_path_LD=$lt_cv_path_LDCXX
12277 else
12278 $as_unset lt_cv_path_LD
12279 fi
12280 test -z "${LDCXX+set}" || LD=$LDCXX
12281 CC=${CXX-"c++"}
12282 compiler=$CC
12283 compiler_CXX=$CC
12284 for cc_temp in $compiler""; do
12285 case $cc_temp in
12286 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12287 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12288 \-*) ;;
12289 *) break;;
12290 esac
12291 done
12292 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12293
12294
12295 if test -n "$compiler"; then
12296 # We don't want -fno-exception when compiling C++ code, so set the
12297 # no_builtin_flag separately
12298 if test "$GXX" = yes; then
12299 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12300 else
12301 lt_prog_compiler_no_builtin_flag_CXX=
12302 fi
12303
12304 if test "$GXX" = yes; then
12305 # Set up default GNU C++ configuration
12306
12307
12308
12309 # Check whether --with-gnu-ld was given.
12310 if test "${with_gnu_ld+set}" = set; then :
12311 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12312 else
12313 with_gnu_ld=no
12314 fi
12315
12316 ac_prog=ld
12317 if test "$GCC" = yes; then
12318 # Check if gcc -print-prog-name=ld gives a path.
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12320 $as_echo_n "checking for ld used by $CC... " >&6; }
12321 case $host in
12322 *-*-mingw*)
12323 # gcc leaves a trailing carriage return which upsets mingw
12324 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12325 *)
12326 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12327 esac
12328 case $ac_prog in
12329 # Accept absolute paths.
12330 [\\/]* | ?:[\\/]*)
12331 re_direlt='/[^/][^/]*/\.\./'
12332 # Canonicalize the pathname of ld
12333 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12334 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12335 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12336 done
12337 test -z "$LD" && LD="$ac_prog"
12338 ;;
12339 "")
12340 # If it fails, then pretend we aren't using GCC.
12341 ac_prog=ld
12342 ;;
12343 *)
12344 # If it is relative, then search for the first ld in PATH.
12345 with_gnu_ld=unknown
12346 ;;
12347 esac
12348 elif test "$with_gnu_ld" = yes; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12350 $as_echo_n "checking for GNU ld... " >&6; }
12351 else
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12353 $as_echo_n "checking for non-GNU ld... " >&6; }
12354 fi
12355 if test "${lt_cv_path_LD+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 if test -z "$LD"; then
12359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12360 for ac_dir in $PATH; do
12361 IFS="$lt_save_ifs"
12362 test -z "$ac_dir" && ac_dir=.
12363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12364 lt_cv_path_LD="$ac_dir/$ac_prog"
12365 # Check to see if the program is GNU ld. I'd rather use --version,
12366 # but apparently some variants of GNU ld only accept -v.
12367 # Break only if it was the GNU/non-GNU ld that we prefer.
12368 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12369 *GNU* | *'with BFD'*)
12370 test "$with_gnu_ld" != no && break
12371 ;;
12372 *)
12373 test "$with_gnu_ld" != yes && break
12374 ;;
12375 esac
12376 fi
12377 done
12378 IFS="$lt_save_ifs"
12379 else
12380 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12381 fi
12382 fi
12383
12384 LD="$lt_cv_path_LD"
12385 if test -n "$LD"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12387 $as_echo "$LD" >&6; }
12388 else
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12391 fi
12392 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12394 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12395 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12399 case `$LD -v 2>&1 </dev/null` in
12400 *GNU* | *'with BFD'*)
12401 lt_cv_prog_gnu_ld=yes
12402 ;;
12403 *)
12404 lt_cv_prog_gnu_ld=no
12405 ;;
12406 esac
12407 fi
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12409 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12410 with_gnu_ld=$lt_cv_prog_gnu_ld
12411
12412
12413
12414
12415
12416
12417
12418 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12419 # archiving commands below assume that GNU ld is being used.
12420 if test "$with_gnu_ld" = yes; then
12421 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12422 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12423
12424 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12425 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12426
12427 # If archive_cmds runs LD, not CC, wlarc should be empty
12428 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12429 # investigate it a little bit more. (MM)
12430 wlarc='${wl}'
12431
12432 # ancient GNU ld didn't support --whole-archive et. al.
12433 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12434 $GREP 'no-whole-archive' > /dev/null; then
12435 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12436 else
12437 whole_archive_flag_spec_CXX=
12438 fi
12439 else
12440 with_gnu_ld=no
12441 wlarc=
12442
12443 # A generic and very simple default shared library creation
12444 # command for GNU C++ for the case where it uses the native
12445 # linker, instead of GNU ld. If possible, this setting should
12446 # overridden to take advantage of the native linker features on
12447 # the platform it is being used on.
12448 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12449 fi
12450
12451 # Commands to make compiler produce verbose output that lists
12452 # what "hidden" libraries, object files and flags are used when
12453 # linking a shared library.
12454 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12455
12456 else
12457 GXX=no
12458 with_gnu_ld=no
12459 wlarc=
12460 fi
12461
12462 # PORTME: fill in a description of your system's C++ link characteristics
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12464 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12465 ld_shlibs_CXX=yes
12466 case $host_os in
12467 aix3*)
12468 # FIXME: insert proper C++ library support
12469 ld_shlibs_CXX=no
12470 ;;
12471 aix[4-9]*)
12472 if test "$host_cpu" = ia64; then
12473 # On IA64, the linker does run time linking by default, so we don't
12474 # have to do anything special.
12475 aix_use_runtimelinking=no
12476 exp_sym_flag='-Bexport'
12477 no_entry_flag=""
12478 else
12479 aix_use_runtimelinking=no
12480
12481 # Test if we are trying to use run time linking or normal
12482 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12483 # need to do runtime linking.
12484 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12485 for ld_flag in $LDFLAGS; do
12486 case $ld_flag in
12487 *-brtl*)
12488 aix_use_runtimelinking=yes
12489 break
12490 ;;
12491 esac
12492 done
12493 ;;
12494 esac
12495
12496 exp_sym_flag='-bexport'
12497 no_entry_flag='-bnoentry'
12498 fi
12499
12500 # When large executables or shared objects are built, AIX ld can
12501 # have problems creating the table of contents. If linking a library
12502 # or program results in "error TOC overflow" add -mminimal-toc to
12503 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12504 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12505
12506 archive_cmds_CXX=''
12507 hardcode_direct_CXX=yes
12508 hardcode_direct_absolute_CXX=yes
12509 hardcode_libdir_separator_CXX=':'
12510 link_all_deplibs_CXX=yes
12511 file_list_spec_CXX='${wl}-f,'
12512
12513 if test "$GXX" = yes; then
12514 case $host_os in aix4.[012]|aix4.[012].*)
12515 # We only want to do this on AIX 4.2 and lower, the check
12516 # below for broken collect2 doesn't work under 4.3+
12517 collect2name=`${CC} -print-prog-name=collect2`
12518 if test -f "$collect2name" &&
12519 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12520 then
12521 # We have reworked collect2
12522 :
12523 else
12524 # We have old collect2
12525 hardcode_direct_CXX=unsupported
12526 # It fails to find uninstalled libraries when the uninstalled
12527 # path is not listed in the libpath. Setting hardcode_minus_L
12528 # to unsupported forces relinking
12529 hardcode_minus_L_CXX=yes
12530 hardcode_libdir_flag_spec_CXX='-L$libdir'
12531 hardcode_libdir_separator_CXX=
12532 fi
12533 esac
12534 shared_flag='-shared'
12535 if test "$aix_use_runtimelinking" = yes; then
12536 shared_flag="$shared_flag "'${wl}-G'
12537 fi
12538 else
12539 # not using gcc
12540 if test "$host_cpu" = ia64; then
12541 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12542 # chokes on -Wl,-G. The following line is correct:
12543 shared_flag='-G'
12544 else
12545 if test "$aix_use_runtimelinking" = yes; then
12546 shared_flag='${wl}-G'
12547 else
12548 shared_flag='${wl}-bM:SRE'
12549 fi
12550 fi
12551 fi
12552
12553 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12554 # It seems that -bexpall does not export symbols beginning with
12555 # underscore (_), so it is better to generate a list of symbols to
12556 # export.
12557 always_export_symbols_CXX=yes
12558 if test "$aix_use_runtimelinking" = yes; then
12559 # Warning - without using the other runtime loading flags (-brtl),
12560 # -berok will link without error, but may produce a broken library.
12561 allow_undefined_flag_CXX='-berok'
12562 # Determine the default libpath from the value encoded in an empty
12563 # executable.
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12566
12567 int
12568 main ()
12569 {
12570
12571 ;
12572 return 0;
12573 }
12574 _ACEOF
12575 if ac_fn_cxx_try_link "$LINENO"; then :
12576
12577 lt_aix_libpath_sed='
12578 /Import File Strings/,/^$/ {
12579 /^0/ {
12580 s/^0 *\(.*\)$/\1/
12581 p
12582 }
12583 }'
12584 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12585 # Check for a 64-bit object if we didn't find anything.
12586 if test -z "$aix_libpath"; then
12587 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12588 fi
12589 fi
12590 rm -f core conftest.err conftest.$ac_objext \
12591 conftest$ac_exeext conftest.$ac_ext
12592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12593
12594 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12595
12596 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"
12597 else
12598 if test "$host_cpu" = ia64; then
12599 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12600 allow_undefined_flag_CXX="-z nodefs"
12601 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"
12602 else
12603 # Determine the default libpath from the value encoded in an
12604 # empty executable.
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607
12608 int
12609 main ()
12610 {
12611
12612 ;
12613 return 0;
12614 }
12615 _ACEOF
12616 if ac_fn_cxx_try_link "$LINENO"; then :
12617
12618 lt_aix_libpath_sed='
12619 /Import File Strings/,/^$/ {
12620 /^0/ {
12621 s/^0 *\(.*\)$/\1/
12622 p
12623 }
12624 }'
12625 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12626 # Check for a 64-bit object if we didn't find anything.
12627 if test -z "$aix_libpath"; then
12628 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629 fi
12630 fi
12631 rm -f core conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12634
12635 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12636 # Warning - without using the other run time loading flags,
12637 # -berok will link without error, but may produce a broken library.
12638 no_undefined_flag_CXX=' ${wl}-bernotok'
12639 allow_undefined_flag_CXX=' ${wl}-berok'
12640 if test "$with_gnu_ld" = yes; then
12641 # We only use this code for GNU lds that support --whole-archive.
12642 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12643 else
12644 # Exported symbols can be pulled into shared objects from archives
12645 whole_archive_flag_spec_CXX='$convenience'
12646 fi
12647 archive_cmds_need_lc_CXX=yes
12648 # This is similar to how AIX traditionally builds its shared
12649 # libraries.
12650 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'
12651 fi
12652 fi
12653 ;;
12654
12655 beos*)
12656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12657 allow_undefined_flag_CXX=unsupported
12658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12659 # support --undefined. This deserves some investigation. FIXME
12660 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12661 else
12662 ld_shlibs_CXX=no
12663 fi
12664 ;;
12665
12666 chorus*)
12667 case $cc_basename in
12668 *)
12669 # FIXME: insert proper C++ library support
12670 ld_shlibs_CXX=no
12671 ;;
12672 esac
12673 ;;
12674
12675 cygwin* | mingw* | pw32* | cegcc*)
12676 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12677 # as there is no search path for DLLs.
12678 hardcode_libdir_flag_spec_CXX='-L$libdir'
12679 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12680 allow_undefined_flag_CXX=unsupported
12681 always_export_symbols_CXX=no
12682 enable_shared_with_static_runtimes_CXX=yes
12683
12684 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12685 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'
12686 # If the export-symbols file already is a .def file (1st line
12687 # is EXPORTS), use it as is; otherwise, prepend...
12688 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12689 cp $export_symbols $output_objdir/$soname.def;
12690 else
12691 echo EXPORTS > $output_objdir/$soname.def;
12692 cat $export_symbols >> $output_objdir/$soname.def;
12693 fi~
12694 $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'
12695 else
12696 ld_shlibs_CXX=no
12697 fi
12698 ;;
12699 darwin* | rhapsody*)
12700
12701
12702 archive_cmds_need_lc_CXX=no
12703 hardcode_direct_CXX=no
12704 hardcode_automatic_CXX=yes
12705 hardcode_shlibpath_var_CXX=unsupported
12706 if test "$lt_cv_ld_force_load" = "yes"; then
12707 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\"`'
12708 else
12709 whole_archive_flag_spec_CXX=''
12710 fi
12711 link_all_deplibs_CXX=yes
12712 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12713 case $cc_basename in
12714 ifort*) _lt_dar_can_shared=yes ;;
12715 *) _lt_dar_can_shared=$GCC ;;
12716 esac
12717 if test "$_lt_dar_can_shared" = "yes"; then
12718 output_verbose_link_cmd=func_echo_all
12719 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}"
12720 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12721 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}"
12722 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}"
12723 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12724 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}"
12725 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}"
12726 fi
12727
12728 else
12729 ld_shlibs_CXX=no
12730 fi
12731
12732 ;;
12733
12734 dgux*)
12735 case $cc_basename in
12736 ec++*)
12737 # FIXME: insert proper C++ library support
12738 ld_shlibs_CXX=no
12739 ;;
12740 ghcx*)
12741 # Green Hills C++ Compiler
12742 # FIXME: insert proper C++ library support
12743 ld_shlibs_CXX=no
12744 ;;
12745 *)
12746 # FIXME: insert proper C++ library support
12747 ld_shlibs_CXX=no
12748 ;;
12749 esac
12750 ;;
12751
12752 freebsd2.*)
12753 # C++ shared libraries reported to be fairly broken before
12754 # switch to ELF
12755 ld_shlibs_CXX=no
12756 ;;
12757
12758 freebsd-elf*)
12759 archive_cmds_need_lc_CXX=no
12760 ;;
12761
12762 freebsd* | dragonfly*)
12763 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12764 # conventions
12765 ld_shlibs_CXX=yes
12766 ;;
12767
12768 gnu*)
12769 ;;
12770
12771 haiku*)
12772 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12773 link_all_deplibs_CXX=yes
12774 ;;
12775
12776 hpux9*)
12777 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12778 hardcode_libdir_separator_CXX=:
12779 export_dynamic_flag_spec_CXX='${wl}-E'
12780 hardcode_direct_CXX=yes
12781 hardcode_minus_L_CXX=yes # Not in the search PATH,
12782 # but as the default
12783 # location of the library.
12784
12785 case $cc_basename in
12786 CC*)
12787 # FIXME: insert proper C++ library support
12788 ld_shlibs_CXX=no
12789 ;;
12790 aCC*)
12791 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'
12792 # Commands to make compiler produce verbose output that lists
12793 # what "hidden" libraries, object files and flags are used when
12794 # linking a shared library.
12795 #
12796 # There doesn't appear to be a way to prevent this compiler from
12797 # explicitly linking system object files so we need to strip them
12798 # from the output so that they don't get included in the library
12799 # dependencies.
12800 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"'
12801 ;;
12802 *)
12803 if test "$GXX" = yes; then
12804 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'
12805 else
12806 # FIXME: insert proper C++ library support
12807 ld_shlibs_CXX=no
12808 fi
12809 ;;
12810 esac
12811 ;;
12812
12813 hpux10*|hpux11*)
12814 if test $with_gnu_ld = no; then
12815 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12816 hardcode_libdir_separator_CXX=:
12817
12818 case $host_cpu in
12819 hppa*64*|ia64*)
12820 ;;
12821 *)
12822 export_dynamic_flag_spec_CXX='${wl}-E'
12823 ;;
12824 esac
12825 fi
12826 case $host_cpu in
12827 hppa*64*|ia64*)
12828 hardcode_direct_CXX=no
12829 hardcode_shlibpath_var_CXX=no
12830 ;;
12831 *)
12832 hardcode_direct_CXX=yes
12833 hardcode_direct_absolute_CXX=yes
12834 hardcode_minus_L_CXX=yes # Not in the search PATH,
12835 # but as the default
12836 # location of the library.
12837 ;;
12838 esac
12839
12840 case $cc_basename in
12841 CC*)
12842 # FIXME: insert proper C++ library support
12843 ld_shlibs_CXX=no
12844 ;;
12845 aCC*)
12846 case $host_cpu in
12847 hppa*64*)
12848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12849 ;;
12850 ia64*)
12851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12852 ;;
12853 *)
12854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12855 ;;
12856 esac
12857 # Commands to make compiler produce verbose output that lists
12858 # what "hidden" libraries, object files and flags are used when
12859 # linking a shared library.
12860 #
12861 # There doesn't appear to be a way to prevent this compiler from
12862 # explicitly linking system object files so we need to strip them
12863 # from the output so that they don't get included in the library
12864 # dependencies.
12865 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"'
12866 ;;
12867 *)
12868 if test "$GXX" = yes; then
12869 if test $with_gnu_ld = no; then
12870 case $host_cpu in
12871 hppa*64*)
12872 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12873 ;;
12874 ia64*)
12875 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12876 ;;
12877 *)
12878 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'
12879 ;;
12880 esac
12881 fi
12882 else
12883 # FIXME: insert proper C++ library support
12884 ld_shlibs_CXX=no
12885 fi
12886 ;;
12887 esac
12888 ;;
12889
12890 interix[3-9]*)
12891 hardcode_direct_CXX=no
12892 hardcode_shlibpath_var_CXX=no
12893 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12894 export_dynamic_flag_spec_CXX='${wl}-E'
12895 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12896 # Instead, shared libraries are loaded at an image base (0x10000000 by
12897 # default) and relocated if they conflict, which is a slow very memory
12898 # consuming and fragmenting process. To avoid this, we pick a random,
12899 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12900 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12901 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'
12902 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'
12903 ;;
12904 irix5* | irix6*)
12905 case $cc_basename in
12906 CC*)
12907 # SGI C++
12908 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'
12909
12910 # Archives containing C++ object files must be created using
12911 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12912 # necessary to make sure instantiated templates are included
12913 # in the archive.
12914 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12915 ;;
12916 *)
12917 if test "$GXX" = yes; then
12918 if test "$with_gnu_ld" = no; then
12919 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'
12920 else
12921 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'
12922 fi
12923 fi
12924 link_all_deplibs_CXX=yes
12925 ;;
12926 esac
12927 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12928 hardcode_libdir_separator_CXX=:
12929 inherit_rpath_CXX=yes
12930 ;;
12931
12932 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12933 case $cc_basename in
12934 KCC*)
12935 # Kuck and Associates, Inc. (KAI) C++ Compiler
12936
12937 # KCC will only create a shared library if the output file
12938 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12939 # to its proper name (with version) after linking.
12940 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'
12941 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'
12942 # Commands to make compiler produce verbose output that lists
12943 # what "hidden" libraries, object files and flags are used when
12944 # linking a shared library.
12945 #
12946 # There doesn't appear to be a way to prevent this compiler from
12947 # explicitly linking system object files so we need to strip them
12948 # from the output so that they don't get included in the library
12949 # dependencies.
12950 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"'
12951
12952 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12954
12955 # Archives containing C++ object files must be created using
12956 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12957 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12958 ;;
12959 icpc* | ecpc* )
12960 # Intel C++
12961 with_gnu_ld=yes
12962 # version 8.0 and above of icpc choke on multiply defined symbols
12963 # if we add $predep_objects and $postdep_objects, however 7.1 and
12964 # earlier do not add the objects themselves.
12965 case `$CC -V 2>&1` in
12966 *"Version 7."*)
12967 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12968 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'
12969 ;;
12970 *) # Version 8.0 or newer
12971 tmp_idyn=
12972 case $host_cpu in
12973 ia64*) tmp_idyn=' -i_dynamic';;
12974 esac
12975 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12976 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'
12977 ;;
12978 esac
12979 archive_cmds_need_lc_CXX=no
12980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12982 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12983 ;;
12984 pgCC* | pgcpp*)
12985 # Portland Group C++ compiler
12986 case `$CC -V` in
12987 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12988 prelink_cmds_CXX='tpldir=Template.dir~
12989 rm -rf $tpldir~
12990 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12991 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12992 old_archive_cmds_CXX='tpldir=Template.dir~
12993 rm -rf $tpldir~
12994 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12995 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12996 $RANLIB $oldlib'
12997 archive_cmds_CXX='tpldir=Template.dir~
12998 rm -rf $tpldir~
12999 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13000 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13001 archive_expsym_cmds_CXX='tpldir=Template.dir~
13002 rm -rf $tpldir~
13003 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13004 $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'
13005 ;;
13006 *) # Version 6 and above use weak symbols
13007 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13008 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'
13009 ;;
13010 esac
13011
13012 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13013 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13014 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'
13015 ;;
13016 cxx*)
13017 # Compaq C++
13018 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13019 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'
13020
13021 runpath_var=LD_RUN_PATH
13022 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13023 hardcode_libdir_separator_CXX=:
13024
13025 # Commands to make compiler produce verbose output that lists
13026 # what "hidden" libraries, object files and flags are used when
13027 # linking a shared library.
13028 #
13029 # There doesn't appear to be a way to prevent this compiler from
13030 # explicitly linking system object files so we need to strip them
13031 # from the output so that they don't get included in the library
13032 # dependencies.
13033 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'
13034 ;;
13035 xl* | mpixl* | bgxl*)
13036 # IBM XL 8.0 on PPC, with GNU ld
13037 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13038 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13039 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13040 if test "x$supports_anon_versioning" = xyes; then
13041 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13043 echo "local: *; };" >> $output_objdir/$libname.ver~
13044 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13045 fi
13046 ;;
13047 *)
13048 case `$CC -V 2>&1 | sed 5q` in
13049 *Sun\ C*)
13050 # Sun C++ 5.9
13051 no_undefined_flag_CXX=' -zdefs'
13052 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13053 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'
13054 hardcode_libdir_flag_spec_CXX='-R$libdir'
13055 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'
13056 compiler_needs_object_CXX=yes
13057
13058 # Not sure whether something based on
13059 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13060 # would be better.
13061 output_verbose_link_cmd='func_echo_all'
13062
13063 # Archives containing C++ object files must be created using
13064 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13065 # necessary to make sure instantiated templates are included
13066 # in the archive.
13067 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13068 ;;
13069 esac
13070 ;;
13071 esac
13072 ;;
13073
13074 lynxos*)
13075 # FIXME: insert proper C++ library support
13076 ld_shlibs_CXX=no
13077 ;;
13078
13079 m88k*)
13080 # FIXME: insert proper C++ library support
13081 ld_shlibs_CXX=no
13082 ;;
13083
13084 mvs*)
13085 case $cc_basename in
13086 cxx*)
13087 # FIXME: insert proper C++ library support
13088 ld_shlibs_CXX=no
13089 ;;
13090 *)
13091 # FIXME: insert proper C++ library support
13092 ld_shlibs_CXX=no
13093 ;;
13094 esac
13095 ;;
13096
13097 netbsd*)
13098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13099 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13100 wlarc=
13101 hardcode_libdir_flag_spec_CXX='-R$libdir'
13102 hardcode_direct_CXX=yes
13103 hardcode_shlibpath_var_CXX=no
13104 fi
13105 # Workaround some broken pre-1.5 toolchains
13106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13107 ;;
13108
13109 *nto* | *qnx*)
13110 ld_shlibs_CXX=yes
13111 ;;
13112
13113 openbsd2*)
13114 # C++ shared libraries are fairly broken
13115 ld_shlibs_CXX=no
13116 ;;
13117
13118 openbsd*)
13119 if test -f /usr/libexec/ld.so; then
13120 hardcode_direct_CXX=yes
13121 hardcode_shlibpath_var_CXX=no
13122 hardcode_direct_absolute_CXX=yes
13123 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13124 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13126 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13127 export_dynamic_flag_spec_CXX='${wl}-E'
13128 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13129 fi
13130 output_verbose_link_cmd=func_echo_all
13131 else
13132 ld_shlibs_CXX=no
13133 fi
13134 ;;
13135
13136 osf3* | osf4* | osf5*)
13137 case $cc_basename in
13138 KCC*)
13139 # Kuck and Associates, Inc. (KAI) C++ Compiler
13140
13141 # KCC will only create a shared library if the output file
13142 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13143 # to its proper name (with version) after linking.
13144 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'
13145
13146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13147 hardcode_libdir_separator_CXX=:
13148
13149 # Archives containing C++ object files must be created using
13150 # the KAI C++ compiler.
13151 case $host in
13152 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13153 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13154 esac
13155 ;;
13156 RCC*)
13157 # Rational C++ 2.4.1
13158 # FIXME: insert proper C++ library support
13159 ld_shlibs_CXX=no
13160 ;;
13161 cxx*)
13162 case $host in
13163 osf3*)
13164 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13165 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'
13166 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13167 ;;
13168 *)
13169 allow_undefined_flag_CXX=' -expect_unresolved \*'
13170 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'
13171 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13172 echo "-hidden">> $lib.exp~
13173 $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~
13174 $RM $lib.exp'
13175 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13176 ;;
13177 esac
13178
13179 hardcode_libdir_separator_CXX=:
13180
13181 # Commands to make compiler produce verbose output that lists
13182 # what "hidden" libraries, object files and flags are used when
13183 # linking a shared library.
13184 #
13185 # There doesn't appear to be a way to prevent this compiler from
13186 # explicitly linking system object files so we need to strip them
13187 # from the output so that they don't get included in the library
13188 # dependencies.
13189 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"'
13190 ;;
13191 *)
13192 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13193 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13194 case $host in
13195 osf3*)
13196 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'
13197 ;;
13198 *)
13199 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'
13200 ;;
13201 esac
13202
13203 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13204 hardcode_libdir_separator_CXX=:
13205
13206 # Commands to make compiler produce verbose output that lists
13207 # what "hidden" libraries, object files and flags are used when
13208 # linking a shared library.
13209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13210
13211 else
13212 # FIXME: insert proper C++ library support
13213 ld_shlibs_CXX=no
13214 fi
13215 ;;
13216 esac
13217 ;;
13218
13219 psos*)
13220 # FIXME: insert proper C++ library support
13221 ld_shlibs_CXX=no
13222 ;;
13223
13224 sunos4*)
13225 case $cc_basename in
13226 CC*)
13227 # Sun C++ 4.x
13228 # FIXME: insert proper C++ library support
13229 ld_shlibs_CXX=no
13230 ;;
13231 lcc*)
13232 # Lucid
13233 # FIXME: insert proper C++ library support
13234 ld_shlibs_CXX=no
13235 ;;
13236 *)
13237 # FIXME: insert proper C++ library support
13238 ld_shlibs_CXX=no
13239 ;;
13240 esac
13241 ;;
13242
13243 solaris*)
13244 case $cc_basename in
13245 CC*)
13246 # Sun C++ 4.2, 5.x and Centerline C++
13247 archive_cmds_need_lc_CXX=yes
13248 no_undefined_flag_CXX=' -zdefs'
13249 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13250 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13251 $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'
13252
13253 hardcode_libdir_flag_spec_CXX='-R$libdir'
13254 hardcode_shlibpath_var_CXX=no
13255 case $host_os in
13256 solaris2.[0-5] | solaris2.[0-5].*) ;;
13257 *)
13258 # The compiler driver will combine and reorder linker options,
13259 # but understands `-z linker_flag'.
13260 # Supported since Solaris 2.6 (maybe 2.5.1?)
13261 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13262 ;;
13263 esac
13264 link_all_deplibs_CXX=yes
13265
13266 output_verbose_link_cmd='func_echo_all'
13267
13268 # Archives containing C++ object files must be created using
13269 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13270 # necessary to make sure instantiated templates are included
13271 # in the archive.
13272 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13273 ;;
13274 gcx*)
13275 # Green Hills C++ Compiler
13276 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13277
13278 # The C++ compiler must be used to create the archive.
13279 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13280 ;;
13281 *)
13282 # GNU C++ compiler with Solaris linker
13283 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13284 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13285 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13286 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13287 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13288 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13289
13290 # Commands to make compiler produce verbose output that lists
13291 # what "hidden" libraries, object files and flags are used when
13292 # linking a shared library.
13293 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13294 else
13295 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13296 # platform.
13297 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13298 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13299 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13300
13301 # Commands to make compiler produce verbose output that lists
13302 # what "hidden" libraries, object files and flags are used when
13303 # linking a shared library.
13304 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13305 fi
13306
13307 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13308 case $host_os in
13309 solaris2.[0-5] | solaris2.[0-5].*) ;;
13310 *)
13311 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13312 ;;
13313 esac
13314 fi
13315 ;;
13316 esac
13317 ;;
13318
13319 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13320 no_undefined_flag_CXX='${wl}-z,text'
13321 archive_cmds_need_lc_CXX=no
13322 hardcode_shlibpath_var_CXX=no
13323 runpath_var='LD_RUN_PATH'
13324
13325 case $cc_basename in
13326 CC*)
13327 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 ;;
13330 *)
13331 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13332 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13333 ;;
13334 esac
13335 ;;
13336
13337 sysv5* | sco3.2v5* | sco5v6*)
13338 # Note: We can NOT use -z defs as we might desire, because we do not
13339 # link with -lc, and that would cause any symbols used from libc to
13340 # always be unresolved, which means just about no library would
13341 # ever link correctly. If we're not using GNU ld we use -z text
13342 # though, which does catch some bad symbols but isn't as heavy-handed
13343 # as -z defs.
13344 no_undefined_flag_CXX='${wl}-z,text'
13345 allow_undefined_flag_CXX='${wl}-z,nodefs'
13346 archive_cmds_need_lc_CXX=no
13347 hardcode_shlibpath_var_CXX=no
13348 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13349 hardcode_libdir_separator_CXX=':'
13350 link_all_deplibs_CXX=yes
13351 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13352 runpath_var='LD_RUN_PATH'
13353
13354 case $cc_basename in
13355 CC*)
13356 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13357 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13358 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13359 '"$old_archive_cmds_CXX"
13360 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13361 '"$reload_cmds_CXX"
13362 ;;
13363 *)
13364 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13365 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13366 ;;
13367 esac
13368 ;;
13369
13370 tandem*)
13371 case $cc_basename in
13372 NCC*)
13373 # NonStop-UX NCC 3.20
13374 # FIXME: insert proper C++ library support
13375 ld_shlibs_CXX=no
13376 ;;
13377 *)
13378 # FIXME: insert proper C++ library support
13379 ld_shlibs_CXX=no
13380 ;;
13381 esac
13382 ;;
13383
13384 vxworks*)
13385 # FIXME: insert proper C++ library support
13386 ld_shlibs_CXX=no
13387 ;;
13388
13389 *)
13390 # FIXME: insert proper C++ library support
13391 ld_shlibs_CXX=no
13392 ;;
13393 esac
13394
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13396 $as_echo "$ld_shlibs_CXX" >&6; }
13397 test "$ld_shlibs_CXX" = no && can_build_shared=no
13398
13399 GCC_CXX="$GXX"
13400 LD_CXX="$LD"
13401
13402 ## CAVEAT EMPTOR:
13403 ## There is no encapsulation within the following macros, do not change
13404 ## the running order or otherwise move them around unless you know exactly
13405 ## what you are doing...
13406 # Dependencies to place before and after the object being linked:
13407 predep_objects_CXX=
13408 postdep_objects_CXX=
13409 predeps_CXX=
13410 postdeps_CXX=
13411 compiler_lib_search_path_CXX=
13412
13413 cat > conftest.$ac_ext <<_LT_EOF
13414 class Foo
13415 {
13416 public:
13417 Foo (void) { a = 0; }
13418 private:
13419 int a;
13420 };
13421 _LT_EOF
13422
13423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13424 (eval $ac_compile) 2>&5
13425 ac_status=$?
13426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13427 test $ac_status = 0; }; then
13428 # Parse the compiler output and extract the necessary
13429 # objects, libraries and library flags.
13430
13431 # Sentinel used to keep track of whether or not we are before
13432 # the conftest object file.
13433 pre_test_object_deps_done=no
13434
13435 for p in `eval "$output_verbose_link_cmd"`; do
13436 case $p in
13437
13438 -L* | -R* | -l*)
13439 # Some compilers place space between "-{L,R}" and the path.
13440 # Remove the space.
13441 if test $p = "-L" ||
13442 test $p = "-R"; then
13443 prev=$p
13444 continue
13445 else
13446 prev=
13447 fi
13448
13449 if test "$pre_test_object_deps_done" = no; then
13450 case $p in
13451 -L* | -R*)
13452 # Internal compiler library paths should come after those
13453 # provided the user. The postdeps already come after the
13454 # user supplied libs so there is no need to process them.
13455 if test -z "$compiler_lib_search_path_CXX"; then
13456 compiler_lib_search_path_CXX="${prev}${p}"
13457 else
13458 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13459 fi
13460 ;;
13461 # The "-l" case would never come before the object being
13462 # linked, so don't bother handling this case.
13463 esac
13464 else
13465 if test -z "$postdeps_CXX"; then
13466 postdeps_CXX="${prev}${p}"
13467 else
13468 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13469 fi
13470 fi
13471 ;;
13472
13473 *.$objext)
13474 # This assumes that the test object file only shows up
13475 # once in the compiler output.
13476 if test "$p" = "conftest.$objext"; then
13477 pre_test_object_deps_done=yes
13478 continue
13479 fi
13480
13481 if test "$pre_test_object_deps_done" = no; then
13482 if test -z "$predep_objects_CXX"; then
13483 predep_objects_CXX="$p"
13484 else
13485 predep_objects_CXX="$predep_objects_CXX $p"
13486 fi
13487 else
13488 if test -z "$postdep_objects_CXX"; then
13489 postdep_objects_CXX="$p"
13490 else
13491 postdep_objects_CXX="$postdep_objects_CXX $p"
13492 fi
13493 fi
13494 ;;
13495
13496 *) ;; # Ignore the rest.
13497
13498 esac
13499 done
13500
13501 # Clean up.
13502 rm -f a.out a.exe
13503 else
13504 echo "libtool.m4: error: problem compiling CXX test program"
13505 fi
13506
13507 $RM -f confest.$objext
13508
13509 # PORTME: override above test on systems where it is broken
13510 case $host_os in
13511 interix[3-9]*)
13512 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13513 # hack all around it, let's just trust "g++" to DTRT.
13514 predep_objects_CXX=
13515 postdep_objects_CXX=
13516 postdeps_CXX=
13517 ;;
13518
13519 linux*)
13520 case `$CC -V 2>&1 | sed 5q` in
13521 *Sun\ C*)
13522 # Sun C++ 5.9
13523
13524 # The more standards-conforming stlport4 library is
13525 # incompatible with the Cstd library. Avoid specifying
13526 # it if it's in CXXFLAGS. Ignore libCrun as
13527 # -library=stlport4 depends on it.
13528 case " $CXX $CXXFLAGS " in
13529 *" -library=stlport4 "*)
13530 solaris_use_stlport4=yes
13531 ;;
13532 esac
13533
13534 if test "$solaris_use_stlport4" != yes; then
13535 postdeps_CXX='-library=Cstd -library=Crun'
13536 fi
13537 ;;
13538 esac
13539 ;;
13540
13541 solaris*)
13542 case $cc_basename in
13543 CC*)
13544 # The more standards-conforming stlport4 library is
13545 # incompatible with the Cstd library. Avoid specifying
13546 # it if it's in CXXFLAGS. Ignore libCrun as
13547 # -library=stlport4 depends on it.
13548 case " $CXX $CXXFLAGS " in
13549 *" -library=stlport4 "*)
13550 solaris_use_stlport4=yes
13551 ;;
13552 esac
13553
13554 # Adding this requires a known-good setup of shared libraries for
13555 # Sun compiler versions before 5.6, else PIC objects from an old
13556 # archive will be linked into the output, leading to subtle bugs.
13557 if test "$solaris_use_stlport4" != yes; then
13558 postdeps_CXX='-library=Cstd -library=Crun'
13559 fi
13560 ;;
13561 esac
13562 ;;
13563 esac
13564
13565
13566 case " $postdeps_CXX " in
13567 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13568 esac
13569 compiler_lib_search_dirs_CXX=
13570 if test -n "${compiler_lib_search_path_CXX}"; then
13571 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13572 fi
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604 lt_prog_compiler_wl_CXX=
13605 lt_prog_compiler_pic_CXX=
13606 lt_prog_compiler_static_CXX=
13607
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13609 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13610
13611 # C++ specific cases for pic, static, wl, etc.
13612 if test "$GXX" = yes; then
13613 lt_prog_compiler_wl_CXX='-Wl,'
13614 lt_prog_compiler_static_CXX='-static'
13615
13616 case $host_os in
13617 aix*)
13618 # All AIX code is PIC.
13619 if test "$host_cpu" = ia64; then
13620 # AIX 5 now supports IA64 processor
13621 lt_prog_compiler_static_CXX='-Bstatic'
13622 fi
13623 lt_prog_compiler_pic_CXX='-fPIC'
13624 ;;
13625
13626 amigaos*)
13627 case $host_cpu in
13628 powerpc)
13629 # see comment about AmigaOS4 .so support
13630 lt_prog_compiler_pic_CXX='-fPIC'
13631 ;;
13632 m68k)
13633 # FIXME: we need at least 68020 code to build shared libraries, but
13634 # adding the `-m68020' flag to GCC prevents building anything better,
13635 # like `-m68040'.
13636 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13637 ;;
13638 esac
13639 ;;
13640
13641 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13642 # PIC is the default for these OSes.
13643 ;;
13644 mingw* | cygwin* | os2* | pw32* | cegcc*)
13645 # This hack is so that the source file can tell whether it is being
13646 # built for inclusion in a dll (and should export symbols for example).
13647 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13648 # (--disable-auto-import) libraries
13649 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13650 ;;
13651 darwin* | rhapsody*)
13652 # PIC is the default on this platform
13653 # Common symbols not allowed in MH_DYLIB files
13654 lt_prog_compiler_pic_CXX='-fno-common'
13655 ;;
13656 *djgpp*)
13657 # DJGPP does not support shared libraries at all
13658 lt_prog_compiler_pic_CXX=
13659 ;;
13660 haiku*)
13661 # PIC is the default for Haiku.
13662 # The "-static" flag exists, but is broken.
13663 lt_prog_compiler_static_CXX=
13664 ;;
13665 interix[3-9]*)
13666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13667 # Instead, we relocate shared libraries at runtime.
13668 ;;
13669 sysv4*MP*)
13670 if test -d /usr/nec; then
13671 lt_prog_compiler_pic_CXX=-Kconform_pic
13672 fi
13673 ;;
13674 hpux*)
13675 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13676 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13677 # sets the default TLS model and affects inlining.
13678 case $host_cpu in
13679 hppa*64*)
13680 ;;
13681 *)
13682 lt_prog_compiler_pic_CXX='-fPIC'
13683 ;;
13684 esac
13685 ;;
13686 *qnx* | *nto*)
13687 # QNX uses GNU C++, but need to define -shared option too, otherwise
13688 # it will coredump.
13689 lt_prog_compiler_pic_CXX='-fPIC -shared'
13690 ;;
13691 *)
13692 lt_prog_compiler_pic_CXX='-fPIC'
13693 ;;
13694 esac
13695 else
13696 case $host_os in
13697 aix[4-9]*)
13698 # All AIX code is PIC.
13699 if test "$host_cpu" = ia64; then
13700 # AIX 5 now supports IA64 processor
13701 lt_prog_compiler_static_CXX='-Bstatic'
13702 else
13703 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13704 fi
13705 ;;
13706 chorus*)
13707 case $cc_basename in
13708 cxch68*)
13709 # Green Hills C++ Compiler
13710 # _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"
13711 ;;
13712 esac
13713 ;;
13714 dgux*)
13715 case $cc_basename in
13716 ec++*)
13717 lt_prog_compiler_pic_CXX='-KPIC'
13718 ;;
13719 ghcx*)
13720 # Green Hills C++ Compiler
13721 lt_prog_compiler_pic_CXX='-pic'
13722 ;;
13723 *)
13724 ;;
13725 esac
13726 ;;
13727 freebsd* | dragonfly*)
13728 # FreeBSD uses GNU C++
13729 ;;
13730 hpux9* | hpux10* | hpux11*)
13731 case $cc_basename in
13732 CC*)
13733 lt_prog_compiler_wl_CXX='-Wl,'
13734 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13735 if test "$host_cpu" != ia64; then
13736 lt_prog_compiler_pic_CXX='+Z'
13737 fi
13738 ;;
13739 aCC*)
13740 lt_prog_compiler_wl_CXX='-Wl,'
13741 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13742 case $host_cpu in
13743 hppa*64*|ia64*)
13744 # +Z the default
13745 ;;
13746 *)
13747 lt_prog_compiler_pic_CXX='+Z'
13748 ;;
13749 esac
13750 ;;
13751 *)
13752 ;;
13753 esac
13754 ;;
13755 interix*)
13756 # This is c89, which is MS Visual C++ (no shared libs)
13757 # Anyone wants to do a port?
13758 ;;
13759 irix5* | irix6* | nonstopux*)
13760 case $cc_basename in
13761 CC*)
13762 lt_prog_compiler_wl_CXX='-Wl,'
13763 lt_prog_compiler_static_CXX='-non_shared'
13764 # CC pic flag -KPIC is the default.
13765 ;;
13766 *)
13767 ;;
13768 esac
13769 ;;
13770 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13771 case $cc_basename in
13772 KCC*)
13773 # KAI C++ Compiler
13774 lt_prog_compiler_wl_CXX='--backend -Wl,'
13775 lt_prog_compiler_pic_CXX='-fPIC'
13776 ;;
13777 ecpc* )
13778 # old Intel C++ for x86_64 which still supported -KPIC.
13779 lt_prog_compiler_wl_CXX='-Wl,'
13780 lt_prog_compiler_pic_CXX='-KPIC'
13781 lt_prog_compiler_static_CXX='-static'
13782 ;;
13783 icpc* )
13784 # Intel C++, used to be incompatible with GCC.
13785 # ICC 10 doesn't accept -KPIC any more.
13786 lt_prog_compiler_wl_CXX='-Wl,'
13787 lt_prog_compiler_pic_CXX='-fPIC'
13788 lt_prog_compiler_static_CXX='-static'
13789 ;;
13790 pgCC* | pgcpp*)
13791 # Portland Group C++ compiler
13792 lt_prog_compiler_wl_CXX='-Wl,'
13793 lt_prog_compiler_pic_CXX='-fpic'
13794 lt_prog_compiler_static_CXX='-Bstatic'
13795 ;;
13796 cxx*)
13797 # Compaq C++
13798 # Make sure the PIC flag is empty. It appears that all Alpha
13799 # Linux and Compaq Tru64 Unix objects are PIC.
13800 lt_prog_compiler_pic_CXX=
13801 lt_prog_compiler_static_CXX='-non_shared'
13802 ;;
13803 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13804 # IBM XL 8.0, 9.0 on PPC and BlueGene
13805 lt_prog_compiler_wl_CXX='-Wl,'
13806 lt_prog_compiler_pic_CXX='-qpic'
13807 lt_prog_compiler_static_CXX='-qstaticlink'
13808 ;;
13809 *)
13810 case `$CC -V 2>&1 | sed 5q` in
13811 *Sun\ C*)
13812 # Sun C++ 5.9
13813 lt_prog_compiler_pic_CXX='-KPIC'
13814 lt_prog_compiler_static_CXX='-Bstatic'
13815 lt_prog_compiler_wl_CXX='-Qoption ld '
13816 ;;
13817 esac
13818 ;;
13819 esac
13820 ;;
13821 lynxos*)
13822 ;;
13823 m88k*)
13824 ;;
13825 mvs*)
13826 case $cc_basename in
13827 cxx*)
13828 lt_prog_compiler_pic_CXX='-W c,exportall'
13829 ;;
13830 *)
13831 ;;
13832 esac
13833 ;;
13834 netbsd*)
13835 ;;
13836 *qnx* | *nto*)
13837 # QNX uses GNU C++, but need to define -shared option too, otherwise
13838 # it will coredump.
13839 lt_prog_compiler_pic_CXX='-fPIC -shared'
13840 ;;
13841 osf3* | osf4* | osf5*)
13842 case $cc_basename in
13843 KCC*)
13844 lt_prog_compiler_wl_CXX='--backend -Wl,'
13845 ;;
13846 RCC*)
13847 # Rational C++ 2.4.1
13848 lt_prog_compiler_pic_CXX='-pic'
13849 ;;
13850 cxx*)
13851 # Digital/Compaq C++
13852 lt_prog_compiler_wl_CXX='-Wl,'
13853 # Make sure the PIC flag is empty. It appears that all Alpha
13854 # Linux and Compaq Tru64 Unix objects are PIC.
13855 lt_prog_compiler_pic_CXX=
13856 lt_prog_compiler_static_CXX='-non_shared'
13857 ;;
13858 *)
13859 ;;
13860 esac
13861 ;;
13862 psos*)
13863 ;;
13864 solaris*)
13865 case $cc_basename in
13866 CC*)
13867 # Sun C++ 4.2, 5.x and Centerline C++
13868 lt_prog_compiler_pic_CXX='-KPIC'
13869 lt_prog_compiler_static_CXX='-Bstatic'
13870 lt_prog_compiler_wl_CXX='-Qoption ld '
13871 ;;
13872 gcx*)
13873 # Green Hills C++ Compiler
13874 lt_prog_compiler_pic_CXX='-PIC'
13875 ;;
13876 *)
13877 ;;
13878 esac
13879 ;;
13880 sunos4*)
13881 case $cc_basename in
13882 CC*)
13883 # Sun C++ 4.x
13884 lt_prog_compiler_pic_CXX='-pic'
13885 lt_prog_compiler_static_CXX='-Bstatic'
13886 ;;
13887 lcc*)
13888 # Lucid
13889 lt_prog_compiler_pic_CXX='-pic'
13890 ;;
13891 *)
13892 ;;
13893 esac
13894 ;;
13895 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13896 case $cc_basename in
13897 CC*)
13898 lt_prog_compiler_wl_CXX='-Wl,'
13899 lt_prog_compiler_pic_CXX='-KPIC'
13900 lt_prog_compiler_static_CXX='-Bstatic'
13901 ;;
13902 esac
13903 ;;
13904 tandem*)
13905 case $cc_basename in
13906 NCC*)
13907 # NonStop-UX NCC 3.20
13908 lt_prog_compiler_pic_CXX='-KPIC'
13909 ;;
13910 *)
13911 ;;
13912 esac
13913 ;;
13914 vxworks*)
13915 ;;
13916 *)
13917 lt_prog_compiler_can_build_shared_CXX=no
13918 ;;
13919 esac
13920 fi
13921
13922 case $host_os in
13923 # For platforms which do not support PIC, -DPIC is meaningless:
13924 *djgpp*)
13925 lt_prog_compiler_pic_CXX=
13926 ;;
13927 *)
13928 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13929 ;;
13930 esac
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13932 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13933
13934
13935
13936 #
13937 # Check to make sure the PIC flag actually works.
13938 #
13939 if test -n "$lt_prog_compiler_pic_CXX"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13941 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13942 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13943 $as_echo_n "(cached) " >&6
13944 else
13945 lt_cv_prog_compiler_pic_works_CXX=no
13946 ac_outfile=conftest.$ac_objext
13947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13948 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13949 # Insert the option either (1) after the last *FLAGS variable, or
13950 # (2) before a word containing "conftest.", or (3) at the end.
13951 # Note that $ac_compile itself does not contain backslashes and begins
13952 # with a dollar sign (not a hyphen), so the echo should work correctly.
13953 # The option is referenced via a variable to avoid confusing sed.
13954 lt_compile=`echo "$ac_compile" | $SED \
13955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13957 -e 's:$: $lt_compiler_flag:'`
13958 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13959 (eval "$lt_compile" 2>conftest.err)
13960 ac_status=$?
13961 cat conftest.err >&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 if (exit $ac_status) && test -s "$ac_outfile"; then
13964 # The compiler can only warn and ignore the option if not recognized
13965 # So say no if there are warnings other than the usual output.
13966 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13968 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13969 lt_cv_prog_compiler_pic_works_CXX=yes
13970 fi
13971 fi
13972 $RM conftest*
13973
13974 fi
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13976 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13977
13978 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13979 case $lt_prog_compiler_pic_CXX in
13980 "" | " "*) ;;
13981 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13982 esac
13983 else
13984 lt_prog_compiler_pic_CXX=
13985 lt_prog_compiler_can_build_shared_CXX=no
13986 fi
13987
13988 fi
13989
13990
13991
13992 #
13993 # Check to make sure the static flag actually works.
13994 #
13995 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13997 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13998 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 lt_cv_prog_compiler_static_works_CXX=no
14002 save_LDFLAGS="$LDFLAGS"
14003 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14004 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14005 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14006 # The linker can only warn and ignore the option if not recognized
14007 # So say no if there are warnings
14008 if test -s conftest.err; then
14009 # Append any errors to the config.log.
14010 cat conftest.err 1>&5
14011 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14013 if diff conftest.exp conftest.er2 >/dev/null; then
14014 lt_cv_prog_compiler_static_works_CXX=yes
14015 fi
14016 else
14017 lt_cv_prog_compiler_static_works_CXX=yes
14018 fi
14019 fi
14020 $RM -r conftest*
14021 LDFLAGS="$save_LDFLAGS"
14022
14023 fi
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14025 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14026
14027 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14028 :
14029 else
14030 lt_prog_compiler_static_CXX=
14031 fi
14032
14033
14034
14035
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14037 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14038 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14040 else
14041 lt_cv_prog_compiler_c_o_CXX=no
14042 $RM -r conftest 2>/dev/null
14043 mkdir conftest
14044 cd conftest
14045 mkdir out
14046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14047
14048 lt_compiler_flag="-o out/conftest2.$ac_objext"
14049 # Insert the option either (1) after the last *FLAGS variable, or
14050 # (2) before a word containing "conftest.", or (3) at the end.
14051 # Note that $ac_compile itself does not contain backslashes and begins
14052 # with a dollar sign (not a hyphen), so the echo should work correctly.
14053 lt_compile=`echo "$ac_compile" | $SED \
14054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14056 -e 's:$: $lt_compiler_flag:'`
14057 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14058 (eval "$lt_compile" 2>out/conftest.err)
14059 ac_status=$?
14060 cat out/conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14063 then
14064 # The compiler can only warn and ignore the option if not recognized
14065 # So say no if there are warnings
14066 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14069 lt_cv_prog_compiler_c_o_CXX=yes
14070 fi
14071 fi
14072 chmod u+w . 2>&5
14073 $RM conftest*
14074 # SGI C++ compiler will create directory out/ii_files/ for
14075 # template instantiation
14076 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14077 $RM out/* && rmdir out
14078 cd ..
14079 $RM -r conftest
14080 $RM conftest*
14081
14082 fi
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14084 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14085
14086
14087
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14089 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14090 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14091 $as_echo_n "(cached) " >&6
14092 else
14093 lt_cv_prog_compiler_c_o_CXX=no
14094 $RM -r conftest 2>/dev/null
14095 mkdir conftest
14096 cd conftest
14097 mkdir out
14098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14099
14100 lt_compiler_flag="-o out/conftest2.$ac_objext"
14101 # Insert the option either (1) after the last *FLAGS variable, or
14102 # (2) before a word containing "conftest.", or (3) at the end.
14103 # Note that $ac_compile itself does not contain backslashes and begins
14104 # with a dollar sign (not a hyphen), so the echo should work correctly.
14105 lt_compile=`echo "$ac_compile" | $SED \
14106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14108 -e 's:$: $lt_compiler_flag:'`
14109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14110 (eval "$lt_compile" 2>out/conftest.err)
14111 ac_status=$?
14112 cat out/conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14115 then
14116 # The compiler can only warn and ignore the option if not recognized
14117 # So say no if there are warnings
14118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14121 lt_cv_prog_compiler_c_o_CXX=yes
14122 fi
14123 fi
14124 chmod u+w . 2>&5
14125 $RM conftest*
14126 # SGI C++ compiler will create directory out/ii_files/ for
14127 # template instantiation
14128 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14129 $RM out/* && rmdir out
14130 cd ..
14131 $RM -r conftest
14132 $RM conftest*
14133
14134 fi
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14136 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14137
14138
14139
14140
14141 hard_links="nottested"
14142 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14143 # do not overwrite the value of need_locks provided by the user
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14145 $as_echo_n "checking if we can lock with hard links... " >&6; }
14146 hard_links=yes
14147 $RM conftest*
14148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14149 touch conftest.a
14150 ln conftest.a conftest.b 2>&5 || hard_links=no
14151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14153 $as_echo "$hard_links" >&6; }
14154 if test "$hard_links" = no; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14156 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14157 need_locks=warn
14158 fi
14159 else
14160 need_locks=no
14161 fi
14162
14163
14164
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14166 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14167
14168 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14169 case $host_os in
14170 aix[4-9]*)
14171 # If we're using GNU nm, then we don't want the "-C" option.
14172 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14173 # Also, AIX nm treats weak defined symbols like other global defined
14174 # symbols, whereas GNU nm marks them as "W".
14175 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14176 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'
14177 else
14178 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14179 fi
14180 ;;
14181 pw32*)
14182 export_symbols_cmds_CXX="$ltdll_cmds"
14183 ;;
14184 cygwin* | mingw* | cegcc*)
14185 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'
14186 ;;
14187 *)
14188 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14189 ;;
14190 esac
14191 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14192
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14194 $as_echo "$ld_shlibs_CXX" >&6; }
14195 test "$ld_shlibs_CXX" = no && can_build_shared=no
14196
14197 with_gnu_ld_CXX=$with_gnu_ld
14198
14199
14200
14201
14202
14203
14204 #
14205 # Do we need to explicitly link libc?
14206 #
14207 case "x$archive_cmds_need_lc_CXX" in
14208 x|xyes)
14209 # Assume -lc should be added
14210 archive_cmds_need_lc_CXX=yes
14211
14212 if test "$enable_shared" = yes && test "$GCC" = yes; then
14213 case $archive_cmds_CXX in
14214 *'~'*)
14215 # FIXME: we may have to deal with multi-command sequences.
14216 ;;
14217 '$CC '*)
14218 # Test whether the compiler implicitly links with -lc since on some
14219 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14220 # to ld, don't add -lc before -lgcc.
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14222 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14223 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14224 $as_echo_n "(cached) " >&6
14225 else
14226 $RM conftest*
14227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14228
14229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14230 (eval $ac_compile) 2>&5
14231 ac_status=$?
14232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14233 test $ac_status = 0; } 2>conftest.err; then
14234 soname=conftest
14235 lib=conftest
14236 libobjs=conftest.$ac_objext
14237 deplibs=
14238 wl=$lt_prog_compiler_wl_CXX
14239 pic_flag=$lt_prog_compiler_pic_CXX
14240 compiler_flags=-v
14241 linker_flags=-v
14242 verstring=
14243 output_objdir=.
14244 libname=conftest
14245 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14246 allow_undefined_flag_CXX=
14247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14248 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14249 ac_status=$?
14250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14251 test $ac_status = 0; }
14252 then
14253 lt_cv_archive_cmds_need_lc_CXX=no
14254 else
14255 lt_cv_archive_cmds_need_lc_CXX=yes
14256 fi
14257 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14258 else
14259 cat conftest.err 1>&5
14260 fi
14261 $RM conftest*
14262
14263 fi
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14265 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14266 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14267 ;;
14268 esac
14269 fi
14270 ;;
14271 esac
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14337 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14338
14339 library_names_spec=
14340 libname_spec='lib$name'
14341 soname_spec=
14342 shrext_cmds=".so"
14343 postinstall_cmds=
14344 postuninstall_cmds=
14345 finish_cmds=
14346 finish_eval=
14347 shlibpath_var=
14348 shlibpath_overrides_runpath=unknown
14349 version_type=none
14350 dynamic_linker="$host_os ld.so"
14351 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14352 need_lib_prefix=unknown
14353 hardcode_into_libs=no
14354
14355 # when you set need_version to no, make sure it does not cause -set_version
14356 # flags to be left without arguments
14357 need_version=unknown
14358
14359 case $host_os in
14360 aix3*)
14361 version_type=linux
14362 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14363 shlibpath_var=LIBPATH
14364
14365 # AIX 3 has no versioning support, so we append a major version to the name.
14366 soname_spec='${libname}${release}${shared_ext}$major'
14367 ;;
14368
14369 aix[4-9]*)
14370 version_type=linux
14371 need_lib_prefix=no
14372 need_version=no
14373 hardcode_into_libs=yes
14374 if test "$host_cpu" = ia64; then
14375 # AIX 5 supports IA64
14376 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14377 shlibpath_var=LD_LIBRARY_PATH
14378 else
14379 # With GCC up to 2.95.x, collect2 would create an import file
14380 # for dependence libraries. The import file would start with
14381 # the line `#! .'. This would cause the generated library to
14382 # depend on `.', always an invalid library. This was fixed in
14383 # development snapshots of GCC prior to 3.0.
14384 case $host_os in
14385 aix4 | aix4.[01] | aix4.[01].*)
14386 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14387 echo ' yes '
14388 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14389 :
14390 else
14391 can_build_shared=no
14392 fi
14393 ;;
14394 esac
14395 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14396 # soname into executable. Probably we can add versioning support to
14397 # collect2, so additional links can be useful in future.
14398 if test "$aix_use_runtimelinking" = yes; then
14399 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14400 # instead of lib<name>.a to let people know that these are not
14401 # typical AIX shared libraries.
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403 else
14404 # We preserve .a as extension for shared libraries through AIX4.2
14405 # and later when we are not doing run time linking.
14406 library_names_spec='${libname}${release}.a $libname.a'
14407 soname_spec='${libname}${release}${shared_ext}$major'
14408 fi
14409 shlibpath_var=LIBPATH
14410 fi
14411 ;;
14412
14413 amigaos*)
14414 case $host_cpu in
14415 powerpc)
14416 # Since July 2007 AmigaOS4 officially supports .so libraries.
14417 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419 ;;
14420 m68k)
14421 library_names_spec='$libname.ixlibrary $libname.a'
14422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14423 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'
14424 ;;
14425 esac
14426 ;;
14427
14428 beos*)
14429 library_names_spec='${libname}${shared_ext}'
14430 dynamic_linker="$host_os ld.so"
14431 shlibpath_var=LIBRARY_PATH
14432 ;;
14433
14434 bsdi[45]*)
14435 version_type=linux
14436 need_version=no
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14440 shlibpath_var=LD_LIBRARY_PATH
14441 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14442 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14443 # the default ld.so.conf also contains /usr/contrib/lib and
14444 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14445 # libtool to hard-code these into programs
14446 ;;
14447
14448 cygwin* | mingw* | pw32* | cegcc*)
14449 version_type=windows
14450 shrext_cmds=".dll"
14451 need_version=no
14452 need_lib_prefix=no
14453
14454 case $GCC,$host_os in
14455 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14456 library_names_spec='$libname.dll.a'
14457 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14458 postinstall_cmds='base_file=`basename \${file}`~
14459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14460 dldir=$destdir/`dirname \$dlpath`~
14461 test -d \$dldir || mkdir -p \$dldir~
14462 $install_prog $dir/$dlname \$dldir/$dlname~
14463 chmod a+x \$dldir/$dlname~
14464 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14465 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14466 fi'
14467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14468 dlpath=$dir/\$dldll~
14469 $RM \$dlpath'
14470 shlibpath_overrides_runpath=yes
14471
14472 case $host_os in
14473 cygwin*)
14474 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14476
14477 ;;
14478 mingw* | cegcc*)
14479 # MinGW DLLs use traditional 'lib' prefix
14480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14481 ;;
14482 pw32*)
14483 # pw32 DLLs use 'pw' prefix rather than 'lib'
14484 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14485 ;;
14486 esac
14487 ;;
14488
14489 *)
14490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14491 ;;
14492 esac
14493 dynamic_linker='Win32 ld.exe'
14494 # FIXME: first we should search . and the directory the executable is in
14495 shlibpath_var=PATH
14496 ;;
14497
14498 darwin* | rhapsody*)
14499 dynamic_linker="$host_os dyld"
14500 version_type=darwin
14501 need_lib_prefix=no
14502 need_version=no
14503 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14504 soname_spec='${libname}${release}${major}$shared_ext'
14505 shlibpath_overrides_runpath=yes
14506 shlibpath_var=DYLD_LIBRARY_PATH
14507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14508
14509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14510 ;;
14511
14512 dgux*)
14513 version_type=linux
14514 need_lib_prefix=no
14515 need_version=no
14516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14517 soname_spec='${libname}${release}${shared_ext}$major'
14518 shlibpath_var=LD_LIBRARY_PATH
14519 ;;
14520
14521 freebsd* | dragonfly*)
14522 # DragonFly does not have aout. When/if they implement a new
14523 # versioning mechanism, adjust this.
14524 if test -x /usr/bin/objformat; then
14525 objformat=`/usr/bin/objformat`
14526 else
14527 case $host_os in
14528 freebsd[23].*) objformat=aout ;;
14529 *) objformat=elf ;;
14530 esac
14531 fi
14532 version_type=freebsd-$objformat
14533 case $version_type in
14534 freebsd-elf*)
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14536 need_version=no
14537 need_lib_prefix=no
14538 ;;
14539 freebsd-*)
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14541 need_version=yes
14542 ;;
14543 esac
14544 shlibpath_var=LD_LIBRARY_PATH
14545 case $host_os in
14546 freebsd2.*)
14547 shlibpath_overrides_runpath=yes
14548 ;;
14549 freebsd3.[01]* | freebsdelf3.[01]*)
14550 shlibpath_overrides_runpath=yes
14551 hardcode_into_libs=yes
14552 ;;
14553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14555 shlibpath_overrides_runpath=no
14556 hardcode_into_libs=yes
14557 ;;
14558 *) # from 4.6 on, and DragonFly
14559 shlibpath_overrides_runpath=yes
14560 hardcode_into_libs=yes
14561 ;;
14562 esac
14563 ;;
14564
14565 gnu*)
14566 version_type=linux
14567 need_lib_prefix=no
14568 need_version=no
14569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14570 soname_spec='${libname}${release}${shared_ext}$major'
14571 shlibpath_var=LD_LIBRARY_PATH
14572 hardcode_into_libs=yes
14573 ;;
14574
14575 haiku*)
14576 version_type=linux
14577 need_lib_prefix=no
14578 need_version=no
14579 dynamic_linker="$host_os runtime_loader"
14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14581 soname_spec='${libname}${release}${shared_ext}$major'
14582 shlibpath_var=LIBRARY_PATH
14583 shlibpath_overrides_runpath=yes
14584 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14585 hardcode_into_libs=yes
14586 ;;
14587
14588 hpux9* | hpux10* | hpux11*)
14589 # Give a soname corresponding to the major version so that dld.sl refuses to
14590 # link against other versions.
14591 version_type=sunos
14592 need_lib_prefix=no
14593 need_version=no
14594 case $host_cpu in
14595 ia64*)
14596 shrext_cmds='.so'
14597 hardcode_into_libs=yes
14598 dynamic_linker="$host_os dld.so"
14599 shlibpath_var=LD_LIBRARY_PATH
14600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14602 soname_spec='${libname}${release}${shared_ext}$major'
14603 if test "X$HPUX_IA64_MODE" = X32; then
14604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14605 else
14606 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14607 fi
14608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14609 ;;
14610 hppa*64*)
14611 shrext_cmds='.sl'
14612 hardcode_into_libs=yes
14613 dynamic_linker="$host_os dld.sl"
14614 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617 soname_spec='${libname}${release}${shared_ext}$major'
14618 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14620 ;;
14621 *)
14622 shrext_cmds='.sl'
14623 dynamic_linker="$host_os dld.sl"
14624 shlibpath_var=SHLIB_PATH
14625 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627 soname_spec='${libname}${release}${shared_ext}$major'
14628 ;;
14629 esac
14630 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14631 postinstall_cmds='chmod 555 $lib'
14632 # or fails outright, so override atomically:
14633 install_override_mode=555
14634 ;;
14635
14636 interix[3-9]*)
14637 version_type=linux
14638 need_lib_prefix=no
14639 need_version=no
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14641 soname_spec='${libname}${release}${shared_ext}$major'
14642 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14643 shlibpath_var=LD_LIBRARY_PATH
14644 shlibpath_overrides_runpath=no
14645 hardcode_into_libs=yes
14646 ;;
14647
14648 irix5* | irix6* | nonstopux*)
14649 case $host_os in
14650 nonstopux*) version_type=nonstopux ;;
14651 *)
14652 if test "$lt_cv_prog_gnu_ld" = yes; then
14653 version_type=linux
14654 else
14655 version_type=irix
14656 fi ;;
14657 esac
14658 need_lib_prefix=no
14659 need_version=no
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14662 case $host_os in
14663 irix5* | nonstopux*)
14664 libsuff= shlibsuff=
14665 ;;
14666 *)
14667 case $LD in # libtool.m4 will add one of these switches to LD
14668 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14669 libsuff= shlibsuff= libmagic=32-bit;;
14670 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14671 libsuff=32 shlibsuff=N32 libmagic=N32;;
14672 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14673 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14674 *) libsuff= shlibsuff= libmagic=never-match;;
14675 esac
14676 ;;
14677 esac
14678 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14679 shlibpath_overrides_runpath=no
14680 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14681 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14682 hardcode_into_libs=yes
14683 ;;
14684
14685 # No shared lib support for Linux oldld, aout, or coff.
14686 linux*oldld* | linux*aout* | linux*coff*)
14687 dynamic_linker=no
14688 ;;
14689
14690 # This must be Linux ELF.
14691 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14692 version_type=linux
14693 need_lib_prefix=no
14694 need_version=no
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 shlibpath_overrides_runpath=no
14700
14701 # Some binutils ld are patched to set DT_RUNPATH
14702 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14703 $as_echo_n "(cached) " >&6
14704 else
14705 lt_cv_shlibpath_overrides_runpath=no
14706 save_LDFLAGS=$LDFLAGS
14707 save_libdir=$libdir
14708 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14709 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h. */
14712
14713 int
14714 main ()
14715 {
14716
14717 ;
14718 return 0;
14719 }
14720 _ACEOF
14721 if ac_fn_cxx_try_link "$LINENO"; then :
14722 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14723 lt_cv_shlibpath_overrides_runpath=yes
14724 fi
14725 fi
14726 rm -f core conftest.err conftest.$ac_objext \
14727 conftest$ac_exeext conftest.$ac_ext
14728 LDFLAGS=$save_LDFLAGS
14729 libdir=$save_libdir
14730
14731 fi
14732
14733 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14734
14735 # This implies no fast_install, which is unacceptable.
14736 # Some rework will be needed to allow for fast_install
14737 # before this can be enabled.
14738 hardcode_into_libs=yes
14739
14740 # Append ld.so.conf contents to the search path
14741 if test -f /etc/ld.so.conf; then
14742 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' ' '`
14743 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14744 fi
14745
14746 # We used to test for /lib/ld.so.1 and disable shared libraries on
14747 # powerpc, because MkLinux only supported shared libraries with the
14748 # GNU dynamic linker. Since this was broken with cross compilers,
14749 # most powerpc-linux boxes support dynamic linking these days and
14750 # people can always --disable-shared, the test was removed, and we
14751 # assume the GNU/Linux dynamic linker is in use.
14752 dynamic_linker='GNU/Linux ld.so'
14753 ;;
14754
14755 netbsd*)
14756 version_type=sunos
14757 need_lib_prefix=no
14758 need_version=no
14759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14762 dynamic_linker='NetBSD (a.out) ld.so'
14763 else
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14765 soname_spec='${libname}${release}${shared_ext}$major'
14766 dynamic_linker='NetBSD ld.elf_so'
14767 fi
14768 shlibpath_var=LD_LIBRARY_PATH
14769 shlibpath_overrides_runpath=yes
14770 hardcode_into_libs=yes
14771 ;;
14772
14773 newsos6)
14774 version_type=linux
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 shlibpath_var=LD_LIBRARY_PATH
14777 shlibpath_overrides_runpath=yes
14778 ;;
14779
14780 *nto* | *qnx*)
14781 version_type=qnx
14782 need_lib_prefix=no
14783 need_version=no
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 shlibpath_overrides_runpath=no
14788 hardcode_into_libs=yes
14789 dynamic_linker='ldqnx.so'
14790 ;;
14791
14792 openbsd*)
14793 version_type=sunos
14794 sys_lib_dlsearch_path_spec="/usr/lib"
14795 need_lib_prefix=no
14796 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14797 case $host_os in
14798 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14799 *) need_version=no ;;
14800 esac
14801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14803 shlibpath_var=LD_LIBRARY_PATH
14804 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14805 case $host_os in
14806 openbsd2.[89] | openbsd2.[89].*)
14807 shlibpath_overrides_runpath=no
14808 ;;
14809 *)
14810 shlibpath_overrides_runpath=yes
14811 ;;
14812 esac
14813 else
14814 shlibpath_overrides_runpath=yes
14815 fi
14816 ;;
14817
14818 os2*)
14819 libname_spec='$name'
14820 shrext_cmds=".dll"
14821 need_lib_prefix=no
14822 library_names_spec='$libname${shared_ext} $libname.a'
14823 dynamic_linker='OS/2 ld.exe'
14824 shlibpath_var=LIBPATH
14825 ;;
14826
14827 osf3* | osf4* | osf5*)
14828 version_type=osf
14829 need_lib_prefix=no
14830 need_version=no
14831 soname_spec='${libname}${release}${shared_ext}$major'
14832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14835 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14836 ;;
14837
14838 rdos*)
14839 dynamic_linker=no
14840 ;;
14841
14842 solaris*)
14843 version_type=linux
14844 need_lib_prefix=no
14845 need_version=no
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 shlibpath_var=LD_LIBRARY_PATH
14849 shlibpath_overrides_runpath=yes
14850 hardcode_into_libs=yes
14851 # ldd complains unless libraries are executable
14852 postinstall_cmds='chmod +x $lib'
14853 ;;
14854
14855 sunos4*)
14856 version_type=sunos
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14858 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14859 shlibpath_var=LD_LIBRARY_PATH
14860 shlibpath_overrides_runpath=yes
14861 if test "$with_gnu_ld" = yes; then
14862 need_lib_prefix=no
14863 fi
14864 need_version=yes
14865 ;;
14866
14867 sysv4 | sysv4.3*)
14868 version_type=linux
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14870 soname_spec='${libname}${release}${shared_ext}$major'
14871 shlibpath_var=LD_LIBRARY_PATH
14872 case $host_vendor in
14873 sni)
14874 shlibpath_overrides_runpath=no
14875 need_lib_prefix=no
14876 runpath_var=LD_RUN_PATH
14877 ;;
14878 siemens)
14879 need_lib_prefix=no
14880 ;;
14881 motorola)
14882 need_lib_prefix=no
14883 need_version=no
14884 shlibpath_overrides_runpath=no
14885 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14886 ;;
14887 esac
14888 ;;
14889
14890 sysv4*MP*)
14891 if test -d /usr/nec ;then
14892 version_type=linux
14893 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14894 soname_spec='$libname${shared_ext}.$major'
14895 shlibpath_var=LD_LIBRARY_PATH
14896 fi
14897 ;;
14898
14899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14900 version_type=freebsd-elf
14901 need_lib_prefix=no
14902 need_version=no
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 shlibpath_overrides_runpath=yes
14907 hardcode_into_libs=yes
14908 if test "$with_gnu_ld" = yes; then
14909 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14910 else
14911 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14912 case $host_os in
14913 sco3.2v5*)
14914 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14915 ;;
14916 esac
14917 fi
14918 sys_lib_dlsearch_path_spec='/usr/lib'
14919 ;;
14920
14921 tpf*)
14922 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14923 version_type=linux
14924 need_lib_prefix=no
14925 need_version=no
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 shlibpath_var=LD_LIBRARY_PATH
14928 shlibpath_overrides_runpath=no
14929 hardcode_into_libs=yes
14930 ;;
14931
14932 uts4*)
14933 version_type=linux
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935 soname_spec='${libname}${release}${shared_ext}$major'
14936 shlibpath_var=LD_LIBRARY_PATH
14937 ;;
14938
14939 *)
14940 dynamic_linker=no
14941 ;;
14942 esac
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14944 $as_echo "$dynamic_linker" >&6; }
14945 test "$dynamic_linker" = no && can_build_shared=no
14946
14947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14948 if test "$GCC" = yes; then
14949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14950 fi
14951
14952 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14953 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14954 fi
14955 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14956 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14957 fi
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14997 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14998 hardcode_action_CXX=
14999 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15000 test -n "$runpath_var_CXX" ||
15001 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15002
15003 # We can hardcode non-existent directories.
15004 if test "$hardcode_direct_CXX" != no &&
15005 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15006 # have to relink, otherwise we might link with an installed library
15007 # when we should be linking with a yet-to-be-installed one
15008 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15009 test "$hardcode_minus_L_CXX" != no; then
15010 # Linking always hardcodes the temporary library directory.
15011 hardcode_action_CXX=relink
15012 else
15013 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15014 hardcode_action_CXX=immediate
15015 fi
15016 else
15017 # We cannot hardcode anything, or else we can only hardcode existing
15018 # directories.
15019 hardcode_action_CXX=unsupported
15020 fi
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15022 $as_echo "$hardcode_action_CXX" >&6; }
15023
15024 if test "$hardcode_action_CXX" = relink ||
15025 test "$inherit_rpath_CXX" = yes; then
15026 # Fast installation is not supported
15027 enable_fast_install=no
15028 elif test "$shlibpath_overrides_runpath" = yes ||
15029 test "$enable_shared" = no; then
15030 # Fast installation is not necessary
15031 enable_fast_install=needless
15032 fi
15033
15034
15035
15036
15037
15038
15039
15040 fi # test -n "$compiler"
15041
15042 CC=$lt_save_CC
15043 LDCXX=$LD
15044 LD=$lt_save_LD
15045 GCC=$lt_save_GCC
15046 with_gnu_ld=$lt_save_with_gnu_ld
15047 lt_cv_path_LDCXX=$lt_cv_path_LD
15048 lt_cv_path_LD=$lt_save_path_LD
15049 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15050 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15051 fi # test "$_lt_caught_CXX_error" != yes
15052
15053 ac_ext=c
15054 ac_cpp='$CPP $CPPFLAGS'
15055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071 ac_config_commands="$ac_config_commands libtool"
15072
15073
15074
15075
15076 # Only expand once:
15077
15078
15079
15080 # The tests for host and target for $enable_largefile require
15081 # canonical names.
15082
15083
15084
15085 # As the $enable_largefile decision depends on --enable-plugins we must set it
15086 # even in directories otherwise not depending on the $plugins option.
15087
15088
15089 maybe_plugins=no
15090 for ac_header in dlfcn.h
15091 do :
15092 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15093 "
15094 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15095 cat >>confdefs.h <<_ACEOF
15096 #define HAVE_DLFCN_H 1
15097 _ACEOF
15098 maybe_plugins=yes
15099 fi
15100
15101 done
15102
15103 for ac_header in windows.h
15104 do :
15105 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15106 "
15107 if test "x$ac_cv_header_windows_h" = x""yes; then :
15108 cat >>confdefs.h <<_ACEOF
15109 #define HAVE_WINDOWS_H 1
15110 _ACEOF
15111 maybe_plugins=yes
15112 fi
15113
15114 done
15115
15116
15117 # Check whether --enable-plugins was given.
15118 if test "${enable_plugins+set}" = set; then :
15119 enableval=$enable_plugins; case "${enableval}" in
15120 no) plugins=no ;;
15121 *) plugins=yes
15122 if test "$maybe_plugins" != "yes" ; then
15123 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15124 fi ;;
15125 esac
15126 else
15127 plugins=$maybe_plugins
15128
15129 fi
15130
15131 if test "$plugins" = "yes"; then
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15133 $as_echo_n "checking for library containing dlopen... " >&6; }
15134 if test "${ac_cv_search_dlopen+set}" = set; then :
15135 $as_echo_n "(cached) " >&6
15136 else
15137 ac_func_search_save_LIBS=$LIBS
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140
15141 /* Override any GCC internal prototype to avoid an error.
15142 Use char because int might match the return type of a GCC
15143 builtin and then its argument prototype would still apply. */
15144 #ifdef __cplusplus
15145 extern "C"
15146 #endif
15147 char dlopen ();
15148 int
15149 main ()
15150 {
15151 return dlopen ();
15152 ;
15153 return 0;
15154 }
15155 _ACEOF
15156 for ac_lib in '' dl; do
15157 if test -z "$ac_lib"; then
15158 ac_res="none required"
15159 else
15160 ac_res=-l$ac_lib
15161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15162 fi
15163 if ac_fn_c_try_link "$LINENO"; then :
15164 ac_cv_search_dlopen=$ac_res
15165 fi
15166 rm -f core conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext
15168 if test "${ac_cv_search_dlopen+set}" = set; then :
15169 break
15170 fi
15171 done
15172 if test "${ac_cv_search_dlopen+set}" = set; then :
15173
15174 else
15175 ac_cv_search_dlopen=no
15176 fi
15177 rm conftest.$ac_ext
15178 LIBS=$ac_func_search_save_LIBS
15179 fi
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15181 $as_echo "$ac_cv_search_dlopen" >&6; }
15182 ac_res=$ac_cv_search_dlopen
15183 if test "$ac_res" != no; then :
15184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15185
15186 fi
15187
15188 fi
15189
15190
15191 case "${host}" in
15192 sparc-*-solaris*|i[3-7]86-*-solaris*)
15193 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15194 # are mutually exclusive; and without procfs support, the bfd/ elf module
15195 # cannot provide certain routines such as elfcore_write_prpsinfo
15196 # or elfcore_write_prstatus. So unless the user explicitly requested
15197 # large-file support through the --enable-largefile switch, disable
15198 # large-file support in favor of procfs support.
15199 test "${target}" = "${host}" -a "x$plugins" = xno \
15200 && : ${enable_largefile="no"}
15201 ;;
15202 esac
15203
15204 # Check whether --enable-largefile was given.
15205 if test "${enable_largefile+set}" = set; then :
15206 enableval=$enable_largefile;
15207 fi
15208
15209 if test "$enable_largefile" != no; then
15210
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15212 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15213 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15214 $as_echo_n "(cached) " >&6
15215 else
15216 ac_cv_sys_largefile_CC=no
15217 if test "$GCC" != yes; then
15218 ac_save_CC=$CC
15219 while :; do
15220 # IRIX 6.2 and later do not support large files by default,
15221 # so use the C compiler's -n32 option if that helps.
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15224 #include <sys/types.h>
15225 /* Check that off_t can represent 2**63 - 1 correctly.
15226 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15227 since some C++ compilers masquerading as C compilers
15228 incorrectly reject 9223372036854775807. */
15229 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15230 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15231 && LARGE_OFF_T % 2147483647 == 1)
15232 ? 1 : -1];
15233 int
15234 main ()
15235 {
15236
15237 ;
15238 return 0;
15239 }
15240 _ACEOF
15241 if ac_fn_c_try_compile "$LINENO"; then :
15242 break
15243 fi
15244 rm -f core conftest.err conftest.$ac_objext
15245 CC="$CC -n32"
15246 if ac_fn_c_try_compile "$LINENO"; then :
15247 ac_cv_sys_largefile_CC=' -n32'; break
15248 fi
15249 rm -f core conftest.err conftest.$ac_objext
15250 break
15251 done
15252 CC=$ac_save_CC
15253 rm -f conftest.$ac_ext
15254 fi
15255 fi
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15257 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15258 if test "$ac_cv_sys_largefile_CC" != no; then
15259 CC=$CC$ac_cv_sys_largefile_CC
15260 fi
15261
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15263 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15264 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15265 $as_echo_n "(cached) " >&6
15266 else
15267 while :; do
15268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269 /* end confdefs.h. */
15270 #include <sys/types.h>
15271 /* Check that off_t can represent 2**63 - 1 correctly.
15272 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15273 since some C++ compilers masquerading as C compilers
15274 incorrectly reject 9223372036854775807. */
15275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15277 && LARGE_OFF_T % 2147483647 == 1)
15278 ? 1 : -1];
15279 int
15280 main ()
15281 {
15282
15283 ;
15284 return 0;
15285 }
15286 _ACEOF
15287 if ac_fn_c_try_compile "$LINENO"; then :
15288 ac_cv_sys_file_offset_bits=no; break
15289 fi
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292 /* end confdefs.h. */
15293 #define _FILE_OFFSET_BITS 64
15294 #include <sys/types.h>
15295 /* Check that off_t can represent 2**63 - 1 correctly.
15296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15297 since some C++ compilers masquerading as C compilers
15298 incorrectly reject 9223372036854775807. */
15299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15301 && LARGE_OFF_T % 2147483647 == 1)
15302 ? 1 : -1];
15303 int
15304 main ()
15305 {
15306
15307 ;
15308 return 0;
15309 }
15310 _ACEOF
15311 if ac_fn_c_try_compile "$LINENO"; then :
15312 ac_cv_sys_file_offset_bits=64; break
15313 fi
15314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15315 ac_cv_sys_file_offset_bits=unknown
15316 break
15317 done
15318 fi
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15320 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15321 case $ac_cv_sys_file_offset_bits in #(
15322 no | unknown) ;;
15323 *)
15324 cat >>confdefs.h <<_ACEOF
15325 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15326 _ACEOF
15327 ;;
15328 esac
15329 rm -rf conftest*
15330 if test $ac_cv_sys_file_offset_bits = unknown; then
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15332 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15333 if test "${ac_cv_sys_large_files+set}" = set; then :
15334 $as_echo_n "(cached) " >&6
15335 else
15336 while :; do
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15339 #include <sys/types.h>
15340 /* Check that off_t can represent 2**63 - 1 correctly.
15341 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15342 since some C++ compilers masquerading as C compilers
15343 incorrectly reject 9223372036854775807. */
15344 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15345 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15346 && LARGE_OFF_T % 2147483647 == 1)
15347 ? 1 : -1];
15348 int
15349 main ()
15350 {
15351
15352 ;
15353 return 0;
15354 }
15355 _ACEOF
15356 if ac_fn_c_try_compile "$LINENO"; then :
15357 ac_cv_sys_large_files=no; break
15358 fi
15359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362 #define _LARGE_FILES 1
15363 #include <sys/types.h>
15364 /* Check that off_t can represent 2**63 - 1 correctly.
15365 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15366 since some C++ compilers masquerading as C compilers
15367 incorrectly reject 9223372036854775807. */
15368 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15370 && LARGE_OFF_T % 2147483647 == 1)
15371 ? 1 : -1];
15372 int
15373 main ()
15374 {
15375
15376 ;
15377 return 0;
15378 }
15379 _ACEOF
15380 if ac_fn_c_try_compile "$LINENO"; then :
15381 ac_cv_sys_large_files=1; break
15382 fi
15383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15384 ac_cv_sys_large_files=unknown
15385 break
15386 done
15387 fi
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15389 $as_echo "$ac_cv_sys_large_files" >&6; }
15390 case $ac_cv_sys_large_files in #(
15391 no | unknown) ;;
15392 *)
15393 cat >>confdefs.h <<_ACEOF
15394 #define _LARGE_FILES $ac_cv_sys_large_files
15395 _ACEOF
15396 ;;
15397 esac
15398 rm -rf conftest*
15399 fi
15400 fi
15401
15402
15403
15404
15405 # Check whether --with-lib-path was given.
15406 if test "${with_lib_path+set}" = set; then :
15407 withval=$with_lib_path; LIB_PATH=$withval
15408 fi
15409
15410 # Check whether --enable-targets was given.
15411 if test "${enable_targets+set}" = set; then :
15412 enableval=$enable_targets; case "${enableval}" in
15413 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15414 ;;
15415 no) enable_targets= ;;
15416 *) enable_targets=$enableval ;;
15417 esac
15418 fi
15419 # Check whether --enable-64-bit-bfd was given.
15420 if test "${enable_64_bit_bfd+set}" = set; then :
15421 enableval=$enable_64_bit_bfd; case "${enableval}" in
15422 yes) want64=true ;;
15423 no) want64=false ;;
15424 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15425 esac
15426 else
15427 want64=false
15428 fi
15429
15430
15431 # Check whether --with-sysroot was given.
15432 if test "${with_sysroot+set}" = set; then :
15433 withval=$with_sysroot;
15434 case ${with_sysroot} in
15435 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15436 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15437 esac
15438
15439 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15440 use_sysroot=yes
15441
15442 if test "x$prefix" = xNONE; then
15443 test_prefix=/usr/local
15444 else
15445 test_prefix=$prefix
15446 fi
15447 if test "x$exec_prefix" = xNONE; then
15448 test_exec_prefix=$test_prefix
15449 else
15450 test_exec_prefix=$exec_prefix
15451 fi
15452 case ${TARGET_SYSTEM_ROOT} in
15453 "${test_prefix}"|"${test_prefix}/"*|\
15454 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15455 '${prefix}'|'${prefix}/'*|\
15456 '${exec_prefix}'|'${exec_prefix}/'*)
15457 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15458 TARGET_SYSTEM_ROOT_DEFINE="$t"
15459 ;;
15460 esac
15461
15462 else
15463
15464 use_sysroot=no
15465 TARGET_SYSTEM_ROOT=
15466 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15467
15468 fi
15469
15470
15471
15472
15473
15474 # Check whether --enable-gold was given.
15475 if test "${enable_gold+set}" = set; then :
15476 enableval=$enable_gold; case "${enableval}" in
15477 default)
15478 install_as_default=no
15479 installed_linker=ld.bfd
15480 ;;
15481 yes|no)
15482 install_as_default=yes
15483 installed_linker=ld.bfd
15484 ;;
15485 *)
15486 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15487 ;;
15488 esac
15489 else
15490 install_as_default=yes
15491 installed_linker=ld.bfd
15492 fi
15493
15494
15495
15496
15497 # Check whether --enable-got was given.
15498 if test "${enable_got+set}" = set; then :
15499 enableval=$enable_got; case "${enableval}" in
15500 target | single | negative | multigot) got_handling=$enableval ;;
15501 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15502 esac
15503 else
15504 got_handling=target
15505 fi
15506
15507
15508 case "${got_handling}" in
15509 target)
15510
15511 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15512 ;;
15513 single)
15514
15515 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15516 ;;
15517 negative)
15518
15519 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15520 ;;
15521 multigot)
15522
15523 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15524 ;;
15525 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15526 esac
15527
15528 # PR gas/19109
15529 # Decide the default method for compressing debug sections.
15530 ac_default_compressed_debug_sections=unset
15531 # Provide a configure time option to override our default.
15532 # Check whether --enable-compressed_debug_sections was given.
15533 if test "${enable_compressed_debug_sections+set}" = set; then :
15534 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15535 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15536 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15537 esac
15538 fi
15539
15540
15541 # Set the 'development' global.
15542 . $srcdir/../bfd/development.sh
15543
15544 # Default set of GCC warnings to enable.
15545 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15546
15547 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15549 /* end confdefs.h. */
15550 __GNUC__
15551 _ACEOF
15552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15553 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15554
15555 else
15556 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15557 fi
15558 rm -f conftest*
15559
15560
15561 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15563 /* end confdefs.h. */
15564 __GNUC__
15565 _ACEOF
15566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15567 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15568
15569 else
15570 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15571 fi
15572 rm -f conftest*
15573
15574
15575 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15576 WARN_WRITE_STRINGS=""
15577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578 /* end confdefs.h. */
15579 __GNUC__
15580 _ACEOF
15581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15582 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15583
15584 else
15585 WARN_WRITE_STRINGS="-Wwrite-strings"
15586 fi
15587 rm -f conftest*
15588
15589
15590 # Check whether --enable-werror was given.
15591 if test "${enable_werror+set}" = set; then :
15592 enableval=$enable_werror; case "${enableval}" in
15593 yes | y) ERROR_ON_WARNING="yes" ;;
15594 no | n) ERROR_ON_WARNING="no" ;;
15595 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15596 esac
15597 fi
15598
15599
15600 # Disable -Wformat by default when using gcc on mingw
15601 case "${host}" in
15602 *-*-mingw32*)
15603 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15604 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15605 fi
15606 ;;
15607 *) ;;
15608 esac
15609
15610 # Enable -Werror by default when using gcc. Turn it off for releases.
15611 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15612 ERROR_ON_WARNING=yes
15613 fi
15614
15615 NO_WERROR=
15616 if test "${ERROR_ON_WARNING}" = yes ; then
15617 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15618 NO_WERROR="-Wno-error"
15619 fi
15620
15621 if test "${GCC}" = yes ; then
15622 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15623 fi
15624
15625 # Check whether --enable-build-warnings was given.
15626 if test "${enable_build_warnings+set}" = set; then :
15627 enableval=$enable_build_warnings; case "${enableval}" in
15628 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
15629 no) if test "${GCC}" = yes ; then
15630 WARN_CFLAGS="-w"
15631 fi;;
15632 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15633 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
15634 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15635 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
15636 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15637 esac
15638 fi
15639
15640
15641 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15642 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15643 fi
15644
15645
15646
15647
15648
15649
15650
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15652 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15653 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15654 $as_echo_n "(cached) " >&6
15655 else
15656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15657 /* end confdefs.h. */
15658 #include <locale.h>
15659 int
15660 main ()
15661 {
15662 return LC_MESSAGES
15663 ;
15664 return 0;
15665 }
15666 _ACEOF
15667 if ac_fn_c_try_link "$LINENO"; then :
15668 am_cv_val_LC_MESSAGES=yes
15669 else
15670 am_cv_val_LC_MESSAGES=no
15671 fi
15672 rm -f core conftest.err conftest.$ac_objext \
15673 conftest$ac_exeext conftest.$ac_ext
15674 fi
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15676 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15677 if test $am_cv_val_LC_MESSAGES = yes; then
15678
15679 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15680
15681 fi
15682
15683
15684 ac_config_headers="$ac_config_headers config.h:config.in"
15685
15686
15687 # PR 14072
15688
15689
15690 if test -z "$target" ; then
15691 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15692 fi
15693 if test -z "$host" ; then
15694 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15695 fi
15696
15697 # host-specific stuff:
15698
15699 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
15700 # If we haven't got the data from the intl directory,
15701 # assume NLS is disabled.
15702 USE_NLS=no
15703 LIBINTL=
15704 LIBINTL_DEP=
15705 INCINTL=
15706 XGETTEXT=
15707 GMSGFMT=
15708 POSUB=
15709
15710 if test -f ../intl/config.intl; then
15711 . ../intl/config.intl
15712 fi
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15714 $as_echo_n "checking whether NLS is requested... " >&6; }
15715 if test x"$USE_NLS" != xyes; then
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717 $as_echo "no" >&6; }
15718 else
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15720 $as_echo "yes" >&6; }
15721
15722 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15723
15724
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15726 $as_echo_n "checking for catalogs to be installed... " >&6; }
15727 # Look for .po and .gmo files in the source directory.
15728 CATALOGS=
15729 XLINGUAS=
15730 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15731 # If there aren't any .gmo files the shell will give us the
15732 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15733 # weeded out.
15734 case "$cat" in *\**)
15735 continue;;
15736 esac
15737 # The quadruple backslash is collapsed to a double backslash
15738 # by the backticks, then collapsed again by the double quotes,
15739 # leaving us with one backslash in the sed expression (right
15740 # before the dot that mustn't act as a wildcard).
15741 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15742 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15743 # The user is allowed to set LINGUAS to a list of languages to
15744 # install catalogs for. If it's empty that means "all of them."
15745 if test "x$LINGUAS" = x; then
15746 CATALOGS="$CATALOGS $cat"
15747 XLINGUAS="$XLINGUAS $lang"
15748 else
15749 case "$LINGUAS" in *$lang*)
15750 CATALOGS="$CATALOGS $cat"
15751 XLINGUAS="$XLINGUAS $lang"
15752 ;;
15753 esac
15754 fi
15755 done
15756 LINGUAS="$XLINGUAS"
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15758 $as_echo "$LINGUAS" >&6; }
15759
15760
15761 DATADIRNAME=share
15762
15763 INSTOBJEXT=.mo
15764
15765 GENCAT=gencat
15766
15767 CATOBJEXT=.gmo
15768
15769 fi
15770
15771 MKINSTALLDIRS=
15772 if test -n "$ac_aux_dir"; then
15773 case "$ac_aux_dir" in
15774 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15775 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15776 esac
15777 fi
15778 if test -z "$MKINSTALLDIRS"; then
15779 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15780 fi
15781
15782
15783
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15785 $as_echo_n "checking whether NLS is requested... " >&6; }
15786 # Check whether --enable-nls was given.
15787 if test "${enable_nls+set}" = set; then :
15788 enableval=$enable_nls; USE_NLS=$enableval
15789 else
15790 USE_NLS=yes
15791 fi
15792
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15794 $as_echo "$USE_NLS" >&6; }
15795
15796
15797
15798
15799
15800
15801 # Prepare PATH_SEPARATOR.
15802 # The user is always right.
15803 if test "${PATH_SEPARATOR+set}" != set; then
15804 echo "#! /bin/sh" >conf$$.sh
15805 echo "exit 0" >>conf$$.sh
15806 chmod +x conf$$.sh
15807 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15808 PATH_SEPARATOR=';'
15809 else
15810 PATH_SEPARATOR=:
15811 fi
15812 rm -f conf$$.sh
15813 fi
15814
15815 # Find out how to test for executable files. Don't use a zero-byte file,
15816 # as systems may use methods other than mode bits to determine executability.
15817 cat >conf$$.file <<_ASEOF
15818 #! /bin/sh
15819 exit 0
15820 _ASEOF
15821 chmod +x conf$$.file
15822 if test -x conf$$.file >/dev/null 2>&1; then
15823 ac_executable_p="test -x"
15824 else
15825 ac_executable_p="test -f"
15826 fi
15827 rm -f conf$$.file
15828
15829 # Extract the first word of "msgfmt", so it can be a program name with args.
15830 set dummy msgfmt; ac_word=$2
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15832 $as_echo_n "checking for $ac_word... " >&6; }
15833 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15834 $as_echo_n "(cached) " >&6
15835 else
15836 case "$MSGFMT" in
15837 [\\/]* | ?:[\\/]*)
15838 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15839 ;;
15840 *)
15841 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15842 for ac_dir in $PATH; do
15843 IFS="$ac_save_IFS"
15844 test -z "$ac_dir" && ac_dir=.
15845 for ac_exec_ext in '' $ac_executable_extensions; do
15846 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15847 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15848 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15849 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15850 break 2
15851 fi
15852 fi
15853 done
15854 done
15855 IFS="$ac_save_IFS"
15856 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15857 ;;
15858 esac
15859 fi
15860 MSGFMT="$ac_cv_path_MSGFMT"
15861 if test "$MSGFMT" != ":"; then
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15863 $as_echo "$MSGFMT" >&6; }
15864 else
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15866 $as_echo "no" >&6; }
15867 fi
15868
15869 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15870 set dummy gmsgfmt; ac_word=$2
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15872 $as_echo_n "checking for $ac_word... " >&6; }
15873 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15874 $as_echo_n "(cached) " >&6
15875 else
15876 case $GMSGFMT in
15877 [\\/]* | ?:[\\/]*)
15878 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15879 ;;
15880 *)
15881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15882 for as_dir in $PATH
15883 do
15884 IFS=$as_save_IFS
15885 test -z "$as_dir" && as_dir=.
15886 for ac_exec_ext in '' $ac_executable_extensions; do
15887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15888 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15890 break 2
15891 fi
15892 done
15893 done
15894 IFS=$as_save_IFS
15895
15896 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15897 ;;
15898 esac
15899 fi
15900 GMSGFMT=$ac_cv_path_GMSGFMT
15901 if test -n "$GMSGFMT"; then
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15903 $as_echo "$GMSGFMT" >&6; }
15904 else
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15906 $as_echo "no" >&6; }
15907 fi
15908
15909
15910
15911
15912 # Prepare PATH_SEPARATOR.
15913 # The user is always right.
15914 if test "${PATH_SEPARATOR+set}" != set; then
15915 echo "#! /bin/sh" >conf$$.sh
15916 echo "exit 0" >>conf$$.sh
15917 chmod +x conf$$.sh
15918 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15919 PATH_SEPARATOR=';'
15920 else
15921 PATH_SEPARATOR=:
15922 fi
15923 rm -f conf$$.sh
15924 fi
15925
15926 # Find out how to test for executable files. Don't use a zero-byte file,
15927 # as systems may use methods other than mode bits to determine executability.
15928 cat >conf$$.file <<_ASEOF
15929 #! /bin/sh
15930 exit 0
15931 _ASEOF
15932 chmod +x conf$$.file
15933 if test -x conf$$.file >/dev/null 2>&1; then
15934 ac_executable_p="test -x"
15935 else
15936 ac_executable_p="test -f"
15937 fi
15938 rm -f conf$$.file
15939
15940 # Extract the first word of "xgettext", so it can be a program name with args.
15941 set dummy xgettext; ac_word=$2
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15943 $as_echo_n "checking for $ac_word... " >&6; }
15944 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15945 $as_echo_n "(cached) " >&6
15946 else
15947 case "$XGETTEXT" in
15948 [\\/]* | ?:[\\/]*)
15949 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15950 ;;
15951 *)
15952 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15953 for ac_dir in $PATH; do
15954 IFS="$ac_save_IFS"
15955 test -z "$ac_dir" && ac_dir=.
15956 for ac_exec_ext in '' $ac_executable_extensions; do
15957 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15958 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15959 (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
15960 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15961 break 2
15962 fi
15963 fi
15964 done
15965 done
15966 IFS="$ac_save_IFS"
15967 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15968 ;;
15969 esac
15970 fi
15971 XGETTEXT="$ac_cv_path_XGETTEXT"
15972 if test "$XGETTEXT" != ":"; then
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15974 $as_echo "$XGETTEXT" >&6; }
15975 else
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15977 $as_echo "no" >&6; }
15978 fi
15979
15980 rm -f messages.po
15981
15982
15983 # Prepare PATH_SEPARATOR.
15984 # The user is always right.
15985 if test "${PATH_SEPARATOR+set}" != set; then
15986 echo "#! /bin/sh" >conf$$.sh
15987 echo "exit 0" >>conf$$.sh
15988 chmod +x conf$$.sh
15989 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15990 PATH_SEPARATOR=';'
15991 else
15992 PATH_SEPARATOR=:
15993 fi
15994 rm -f conf$$.sh
15995 fi
15996
15997 # Find out how to test for executable files. Don't use a zero-byte file,
15998 # as systems may use methods other than mode bits to determine executability.
15999 cat >conf$$.file <<_ASEOF
16000 #! /bin/sh
16001 exit 0
16002 _ASEOF
16003 chmod +x conf$$.file
16004 if test -x conf$$.file >/dev/null 2>&1; then
16005 ac_executable_p="test -x"
16006 else
16007 ac_executable_p="test -f"
16008 fi
16009 rm -f conf$$.file
16010
16011 # Extract the first word of "msgmerge", so it can be a program name with args.
16012 set dummy msgmerge; ac_word=$2
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16014 $as_echo_n "checking for $ac_word... " >&6; }
16015 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16016 $as_echo_n "(cached) " >&6
16017 else
16018 case "$MSGMERGE" in
16019 [\\/]* | ?:[\\/]*)
16020 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16021 ;;
16022 *)
16023 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16024 for ac_dir in $PATH; do
16025 IFS="$ac_save_IFS"
16026 test -z "$ac_dir" && ac_dir=.
16027 for ac_exec_ext in '' $ac_executable_extensions; do
16028 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16029 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16030 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16031 break 2
16032 fi
16033 fi
16034 done
16035 done
16036 IFS="$ac_save_IFS"
16037 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16038 ;;
16039 esac
16040 fi
16041 MSGMERGE="$ac_cv_path_MSGMERGE"
16042 if test "$MSGMERGE" != ":"; then
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16044 $as_echo "$MSGMERGE" >&6; }
16045 else
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16047 $as_echo "no" >&6; }
16048 fi
16049
16050
16051 if test "$GMSGFMT" != ":"; then
16052 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16053 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16054 : ;
16055 else
16056 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16058 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16059 GMSGFMT=":"
16060 fi
16061 fi
16062
16063 if test "$XGETTEXT" != ":"; then
16064 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16065 (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
16066 : ;
16067 else
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16069 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16070 XGETTEXT=":"
16071 fi
16072 rm -f messages.po
16073 fi
16074
16075 ac_config_commands="$ac_config_commands default-1"
16076
16077
16078
16079
16080
16081 for ac_prog in 'bison -y' byacc
16082 do
16083 # Extract the first word of "$ac_prog", so it can be a program name with args.
16084 set dummy $ac_prog; ac_word=$2
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16086 $as_echo_n "checking for $ac_word... " >&6; }
16087 if test "${ac_cv_prog_YACC+set}" = set; then :
16088 $as_echo_n "(cached) " >&6
16089 else
16090 if test -n "$YACC"; then
16091 ac_cv_prog_YACC="$YACC" # Let the user override the test.
16092 else
16093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16094 for as_dir in $PATH
16095 do
16096 IFS=$as_save_IFS
16097 test -z "$as_dir" && as_dir=.
16098 for ac_exec_ext in '' $ac_executable_extensions; do
16099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16100 ac_cv_prog_YACC="$ac_prog"
16101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16102 break 2
16103 fi
16104 done
16105 done
16106 IFS=$as_save_IFS
16107
16108 fi
16109 fi
16110 YACC=$ac_cv_prog_YACC
16111 if test -n "$YACC"; then
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16113 $as_echo "$YACC" >&6; }
16114 else
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116 $as_echo "no" >&6; }
16117 fi
16118
16119
16120 test -n "$YACC" && break
16121 done
16122 test -n "$YACC" || YACC="yacc"
16123
16124 for ac_prog in flex lex
16125 do
16126 # Extract the first word of "$ac_prog", so it can be a program name with args.
16127 set dummy $ac_prog; ac_word=$2
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16129 $as_echo_n "checking for $ac_word... " >&6; }
16130 if test "${ac_cv_prog_LEX+set}" = set; then :
16131 $as_echo_n "(cached) " >&6
16132 else
16133 if test -n "$LEX"; then
16134 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16135 else
16136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16137 for as_dir in $PATH
16138 do
16139 IFS=$as_save_IFS
16140 test -z "$as_dir" && as_dir=.
16141 for ac_exec_ext in '' $ac_executable_extensions; do
16142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16143 ac_cv_prog_LEX="$ac_prog"
16144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16145 break 2
16146 fi
16147 done
16148 done
16149 IFS=$as_save_IFS
16150
16151 fi
16152 fi
16153 LEX=$ac_cv_prog_LEX
16154 if test -n "$LEX"; then
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16156 $as_echo "$LEX" >&6; }
16157 else
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16159 $as_echo "no" >&6; }
16160 fi
16161
16162
16163 test -n "$LEX" && break
16164 done
16165 test -n "$LEX" || LEX=":"
16166
16167 case "$LEX" in
16168 :|*"missing "*) ;;
16169 *) cat >conftest.l <<_ACEOF
16170 %%
16171 a { ECHO; }
16172 b { REJECT; }
16173 c { yymore (); }
16174 d { yyless (1); }
16175 e { yyless (input () != 0); }
16176 f { unput (yytext[0]); }
16177 . { BEGIN INITIAL; }
16178 %%
16179 #ifdef YYTEXT_POINTER
16180 extern char *yytext;
16181 #endif
16182 int
16183 main (void)
16184 {
16185 return ! yylex () + ! yywrap ();
16186 }
16187 _ACEOF
16188 { { ac_try="$LEX conftest.l"
16189 case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16192 esac
16193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16194 $as_echo "$ac_try_echo"; } >&5
16195 (eval "$LEX conftest.l") 2>&5
16196 ac_status=$?
16197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16198 test $ac_status = 0; }
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16200 $as_echo_n "checking lex output file root... " >&6; }
16201 if test "${ac_cv_prog_lex_root+set}" = set; then :
16202 $as_echo_n "(cached) " >&6
16203 else
16204
16205 if test -f lex.yy.c; then
16206 ac_cv_prog_lex_root=lex.yy
16207 elif test -f lexyy.c; then
16208 ac_cv_prog_lex_root=lexyy
16209 else
16210 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16211 fi
16212 fi
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16214 $as_echo "$ac_cv_prog_lex_root" >&6; }
16215 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16216
16217 if test -z "${LEXLIB+set}"; then
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16219 $as_echo_n "checking lex library... " >&6; }
16220 if test "${ac_cv_lib_lex+set}" = set; then :
16221 $as_echo_n "(cached) " >&6
16222 else
16223
16224 ac_save_LIBS=$LIBS
16225 ac_cv_lib_lex='none needed'
16226 for ac_lib in '' -lfl -ll; do
16227 LIBS="$ac_lib $ac_save_LIBS"
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16230 `cat $LEX_OUTPUT_ROOT.c`
16231 _ACEOF
16232 if ac_fn_c_try_link "$LINENO"; then :
16233 ac_cv_lib_lex=$ac_lib
16234 fi
16235 rm -f core conftest.err conftest.$ac_objext \
16236 conftest$ac_exeext conftest.$ac_ext
16237 test "$ac_cv_lib_lex" != 'none needed' && break
16238 done
16239 LIBS=$ac_save_LIBS
16240
16241 fi
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16243 $as_echo "$ac_cv_lib_lex" >&6; }
16244 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16245 fi
16246
16247
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16249 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16250 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16251 $as_echo_n "(cached) " >&6
16252 else
16253 # POSIX says lex can declare yytext either as a pointer or an array; the
16254 # default is implementation-dependent. Figure out which it is, since
16255 # not all implementations provide the %pointer and %array declarations.
16256 ac_cv_prog_lex_yytext_pointer=no
16257 ac_save_LIBS=$LIBS
16258 LIBS="$LEXLIB $ac_save_LIBS"
16259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260 /* end confdefs.h. */
16261 #define YYTEXT_POINTER 1
16262 `cat $LEX_OUTPUT_ROOT.c`
16263 _ACEOF
16264 if ac_fn_c_try_link "$LINENO"; then :
16265 ac_cv_prog_lex_yytext_pointer=yes
16266 fi
16267 rm -f core conftest.err conftest.$ac_objext \
16268 conftest$ac_exeext conftest.$ac_ext
16269 LIBS=$ac_save_LIBS
16270
16271 fi
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16273 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16274 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16275
16276 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16277
16278 fi
16279 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16280 ;;
16281 esac
16282 if test "$LEX" = :; then
16283 LEX=${am_missing_run}flex
16284 fi
16285
16286
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16288 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16289 # Check whether --enable-maintainer-mode was given.
16290 if test "${enable_maintainer_mode+set}" = set; then :
16291 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16292 else
16293 USE_MAINTAINER_MODE=no
16294 fi
16295
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16297 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16298 if test $USE_MAINTAINER_MODE = yes; then
16299 MAINTAINER_MODE_TRUE=
16300 MAINTAINER_MODE_FALSE='#'
16301 else
16302 MAINTAINER_MODE_TRUE='#'
16303 MAINTAINER_MODE_FALSE=
16304 fi
16305
16306 MAINT=$MAINTAINER_MODE_TRUE
16307
16308
16309 if false; then
16310 GENINSRC_NEVER_TRUE=
16311 GENINSRC_NEVER_FALSE='#'
16312 else
16313 GENINSRC_NEVER_TRUE='#'
16314 GENINSRC_NEVER_FALSE=
16315 fi
16316
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16318 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16319 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16320 $as_echo_n "(cached) " >&6
16321 else
16322 echo abfoo >t1
16323 echo cdfoo >t2
16324 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16325 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16326 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16327 :
16328 else
16329 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16330 fi
16331 fi
16332 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16333 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16334 :
16335 else
16336 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16337 fi
16338 fi
16339 rm t1 t2
16340
16341 fi
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16343 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16344 do_compare="$gcc_cv_prog_cmp_skip"
16345
16346
16347
16348 . ${srcdir}/configure.host
16349
16350
16351
16352
16353
16354
16355
16356
16357 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
16358 do :
16359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16360 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16361 eval as_val=\$$as_ac_Header
16362 if test "x$as_val" = x""yes; then :
16363 cat >>confdefs.h <<_ACEOF
16364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16365 _ACEOF
16366
16367 fi
16368
16369 done
16370
16371 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16372 do :
16373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16374 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16375 eval as_val=\$$as_ac_Header
16376 if test "x$as_val" = x""yes; then :
16377 cat >>confdefs.h <<_ACEOF
16378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16379 _ACEOF
16380
16381 fi
16382
16383 done
16384
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16386 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16387 if test "${gcc_cv_header_string+set}" = set; then :
16388 $as_echo_n "(cached) " >&6
16389 else
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16392 #include <string.h>
16393 #include <strings.h>
16394 int
16395 main ()
16396 {
16397
16398 ;
16399 return 0;
16400 }
16401 _ACEOF
16402 if ac_fn_c_try_compile "$LINENO"; then :
16403 gcc_cv_header_string=yes
16404 else
16405 gcc_cv_header_string=no
16406 fi
16407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16408 fi
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16410 $as_echo "$gcc_cv_header_string" >&6; }
16411 if test $gcc_cv_header_string = yes; then
16412
16413 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16414
16415 fi
16416
16417 for ac_func in glob mkstemp realpath sbrk setlocale waitpid
16418 do :
16419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16420 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16421 eval as_val=\$$as_ac_var
16422 if test "x$as_val" = x""yes; then :
16423 cat >>confdefs.h <<_ACEOF
16424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16425 _ACEOF
16426
16427 fi
16428 done
16429
16430 for ac_func in open lseek close
16431 do :
16432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16433 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16434 eval as_val=\$$as_ac_var
16435 if test "x$as_val" = x""yes; then :
16436 cat >>confdefs.h <<_ACEOF
16437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16438 _ACEOF
16439
16440 fi
16441 done
16442
16443 ac_header_dirent=no
16444 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16445 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16447 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16449 $as_echo_n "(cached) " >&6
16450 else
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h. */
16453 #include <sys/types.h>
16454 #include <$ac_hdr>
16455
16456 int
16457 main ()
16458 {
16459 if ((DIR *) 0)
16460 return 0;
16461 ;
16462 return 0;
16463 }
16464 _ACEOF
16465 if ac_fn_c_try_compile "$LINENO"; then :
16466 eval "$as_ac_Header=yes"
16467 else
16468 eval "$as_ac_Header=no"
16469 fi
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16471 fi
16472 eval ac_res=\$$as_ac_Header
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16474 $as_echo "$ac_res" >&6; }
16475 eval as_val=\$$as_ac_Header
16476 if test "x$as_val" = x""yes; then :
16477 cat >>confdefs.h <<_ACEOF
16478 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16479 _ACEOF
16480
16481 ac_header_dirent=$ac_hdr; break
16482 fi
16483
16484 done
16485 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16486 if test $ac_header_dirent = dirent.h; then
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16488 $as_echo_n "checking for library containing opendir... " >&6; }
16489 if test "${ac_cv_search_opendir+set}" = set; then :
16490 $as_echo_n "(cached) " >&6
16491 else
16492 ac_func_search_save_LIBS=$LIBS
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16495
16496 /* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16499 #ifdef __cplusplus
16500 extern "C"
16501 #endif
16502 char opendir ();
16503 int
16504 main ()
16505 {
16506 return opendir ();
16507 ;
16508 return 0;
16509 }
16510 _ACEOF
16511 for ac_lib in '' dir; do
16512 if test -z "$ac_lib"; then
16513 ac_res="none required"
16514 else
16515 ac_res=-l$ac_lib
16516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16517 fi
16518 if ac_fn_c_try_link "$LINENO"; then :
16519 ac_cv_search_opendir=$ac_res
16520 fi
16521 rm -f core conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext
16523 if test "${ac_cv_search_opendir+set}" = set; then :
16524 break
16525 fi
16526 done
16527 if test "${ac_cv_search_opendir+set}" = set; then :
16528
16529 else
16530 ac_cv_search_opendir=no
16531 fi
16532 rm conftest.$ac_ext
16533 LIBS=$ac_func_search_save_LIBS
16534 fi
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16536 $as_echo "$ac_cv_search_opendir" >&6; }
16537 ac_res=$ac_cv_search_opendir
16538 if test "$ac_res" != no; then :
16539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16540
16541 fi
16542
16543 else
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16545 $as_echo_n "checking for library containing opendir... " >&6; }
16546 if test "${ac_cv_search_opendir+set}" = set; then :
16547 $as_echo_n "(cached) " >&6
16548 else
16549 ac_func_search_save_LIBS=$LIBS
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16552
16553 /* Override any GCC internal prototype to avoid an error.
16554 Use char because int might match the return type of a GCC
16555 builtin and then its argument prototype would still apply. */
16556 #ifdef __cplusplus
16557 extern "C"
16558 #endif
16559 char opendir ();
16560 int
16561 main ()
16562 {
16563 return opendir ();
16564 ;
16565 return 0;
16566 }
16567 _ACEOF
16568 for ac_lib in '' x; do
16569 if test -z "$ac_lib"; then
16570 ac_res="none required"
16571 else
16572 ac_res=-l$ac_lib
16573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16574 fi
16575 if ac_fn_c_try_link "$LINENO"; then :
16576 ac_cv_search_opendir=$ac_res
16577 fi
16578 rm -f core conftest.err conftest.$ac_objext \
16579 conftest$ac_exeext
16580 if test "${ac_cv_search_opendir+set}" = set; then :
16581 break
16582 fi
16583 done
16584 if test "${ac_cv_search_opendir+set}" = set; then :
16585
16586 else
16587 ac_cv_search_opendir=no
16588 fi
16589 rm conftest.$ac_ext
16590 LIBS=$ac_func_search_save_LIBS
16591 fi
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16593 $as_echo "$ac_cv_search_opendir" >&6; }
16594 ac_res=$ac_cv_search_opendir
16595 if test "$ac_res" != no; then :
16596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16597
16598 fi
16599
16600 fi
16601
16602
16603 for ac_header in stdlib.h unistd.h
16604 do :
16605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16606 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16607 eval as_val=\$$as_ac_Header
16608 if test "x$as_val" = x""yes; then :
16609 cat >>confdefs.h <<_ACEOF
16610 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16611 _ACEOF
16612
16613 fi
16614
16615 done
16616
16617 for ac_func in getpagesize
16618 do :
16619 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16620 if test "x$ac_cv_func_getpagesize" = x""yes; then :
16621 cat >>confdefs.h <<_ACEOF
16622 #define HAVE_GETPAGESIZE 1
16623 _ACEOF
16624
16625 fi
16626 done
16627
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16629 $as_echo_n "checking for working mmap... " >&6; }
16630 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
16631 $as_echo_n "(cached) " >&6
16632 else
16633 if test "$cross_compiling" = yes; then :
16634 ac_cv_func_mmap_fixed_mapped=no
16635 else
16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637 /* end confdefs.h. */
16638 $ac_includes_default
16639 /* malloc might have been renamed as rpl_malloc. */
16640 #undef malloc
16641
16642 /* Thanks to Mike Haertel and Jim Avera for this test.
16643 Here is a matrix of mmap possibilities:
16644 mmap private not fixed
16645 mmap private fixed at somewhere currently unmapped
16646 mmap private fixed at somewhere already mapped
16647 mmap shared not fixed
16648 mmap shared fixed at somewhere currently unmapped
16649 mmap shared fixed at somewhere already mapped
16650 For private mappings, we should verify that changes cannot be read()
16651 back from the file, nor mmap's back from the file at a different
16652 address. (There have been systems where private was not correctly
16653 implemented like the infamous i386 svr4.0, and systems where the
16654 VM page cache was not coherent with the file system buffer cache
16655 like early versions of FreeBSD and possibly contemporary NetBSD.)
16656 For shared mappings, we should conversely verify that changes get
16657 propagated back to all the places they're supposed to be.
16658
16659 Grep wants private fixed already mapped.
16660 The main things grep needs to know about mmap are:
16661 * does it exist and is it safe to write into the mmap'd area
16662 * how to use it (BSD variants) */
16663
16664 #include <fcntl.h>
16665 #include <sys/mman.h>
16666
16667 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16668 char *malloc ();
16669 #endif
16670
16671 /* This mess was copied from the GNU getpagesize.h. */
16672 #ifndef HAVE_GETPAGESIZE
16673 /* Assume that all systems that can run configure have sys/param.h. */
16674 # ifndef HAVE_SYS_PARAM_H
16675 # define HAVE_SYS_PARAM_H 1
16676 # endif
16677
16678 # ifdef _SC_PAGESIZE
16679 # define getpagesize() sysconf(_SC_PAGESIZE)
16680 # else /* no _SC_PAGESIZE */
16681 # ifdef HAVE_SYS_PARAM_H
16682 # include <sys/param.h>
16683 # ifdef EXEC_PAGESIZE
16684 # define getpagesize() EXEC_PAGESIZE
16685 # else /* no EXEC_PAGESIZE */
16686 # ifdef NBPG
16687 # define getpagesize() NBPG * CLSIZE
16688 # ifndef CLSIZE
16689 # define CLSIZE 1
16690 # endif /* no CLSIZE */
16691 # else /* no NBPG */
16692 # ifdef NBPC
16693 # define getpagesize() NBPC
16694 # else /* no NBPC */
16695 # ifdef PAGESIZE
16696 # define getpagesize() PAGESIZE
16697 # endif /* PAGESIZE */
16698 # endif /* no NBPC */
16699 # endif /* no NBPG */
16700 # endif /* no EXEC_PAGESIZE */
16701 # else /* no HAVE_SYS_PARAM_H */
16702 # define getpagesize() 8192 /* punt totally */
16703 # endif /* no HAVE_SYS_PARAM_H */
16704 # endif /* no _SC_PAGESIZE */
16705
16706 #endif /* no HAVE_GETPAGESIZE */
16707
16708 int
16709 main ()
16710 {
16711 char *data, *data2, *data3;
16712 int i, pagesize;
16713 int fd;
16714
16715 pagesize = getpagesize ();
16716
16717 /* First, make a file with some known garbage in it. */
16718 data = (char *) malloc (pagesize);
16719 if (!data)
16720 return 1;
16721 for (i = 0; i < pagesize; ++i)
16722 *(data + i) = rand ();
16723 umask (0);
16724 fd = creat ("conftest.mmap", 0600);
16725 if (fd < 0)
16726 return 1;
16727 if (write (fd, data, pagesize) != pagesize)
16728 return 1;
16729 close (fd);
16730
16731 /* Next, try to mmap the file at a fixed address which already has
16732 something else allocated at it. If we can, also make sure that
16733 we see the same garbage. */
16734 fd = open ("conftest.mmap", O_RDWR);
16735 if (fd < 0)
16736 return 1;
16737 data2 = (char *) malloc (2 * pagesize);
16738 if (!data2)
16739 return 1;
16740 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16741 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16742 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16743 return 1;
16744 for (i = 0; i < pagesize; ++i)
16745 if (*(data + i) != *(data2 + i))
16746 return 1;
16747
16748 /* Finally, make sure that changes to the mapped area do not
16749 percolate back to the file as seen by read(). (This is a bug on
16750 some variants of i386 svr4.0.) */
16751 for (i = 0; i < pagesize; ++i)
16752 *(data2 + i) = *(data2 + i) + 1;
16753 data3 = (char *) malloc (pagesize);
16754 if (!data3)
16755 return 1;
16756 if (read (fd, data3, pagesize) != pagesize)
16757 return 1;
16758 for (i = 0; i < pagesize; ++i)
16759 if (*(data + i) != *(data3 + i))
16760 return 1;
16761 close (fd);
16762 return 0;
16763 }
16764 _ACEOF
16765 if ac_fn_c_try_run "$LINENO"; then :
16766 ac_cv_func_mmap_fixed_mapped=yes
16767 else
16768 ac_cv_func_mmap_fixed_mapped=no
16769 fi
16770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16771 conftest.$ac_objext conftest.beam conftest.$ac_ext
16772 fi
16773
16774 fi
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16776 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16777 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16778
16779 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16780
16781 fi
16782 rm -f conftest.mmap
16783
16784
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16786 $as_echo_n "checking for library containing dlopen... " >&6; }
16787 if test "${ac_cv_search_dlopen+set}" = set; then :
16788 $as_echo_n "(cached) " >&6
16789 else
16790 ac_func_search_save_LIBS=$LIBS
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16793
16794 /* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16797 #ifdef __cplusplus
16798 extern "C"
16799 #endif
16800 char dlopen ();
16801 int
16802 main ()
16803 {
16804 return dlopen ();
16805 ;
16806 return 0;
16807 }
16808 _ACEOF
16809 for ac_lib in '' dl; do
16810 if test -z "$ac_lib"; then
16811 ac_res="none required"
16812 else
16813 ac_res=-l$ac_lib
16814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16815 fi
16816 if ac_fn_c_try_link "$LINENO"; then :
16817 ac_cv_search_dlopen=$ac_res
16818 fi
16819 rm -f core conftest.err conftest.$ac_objext \
16820 conftest$ac_exeext
16821 if test "${ac_cv_search_dlopen+set}" = set; then :
16822 break
16823 fi
16824 done
16825 if test "${ac_cv_search_dlopen+set}" = set; then :
16826
16827 else
16828 ac_cv_search_dlopen=no
16829 fi
16830 rm conftest.$ac_ext
16831 LIBS=$ac_func_search_save_LIBS
16832 fi
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16834 $as_echo "$ac_cv_search_dlopen" >&6; }
16835 ac_res=$ac_cv_search_dlopen
16836 if test "$ac_res" != no; then :
16837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16838
16839 fi
16840
16841 if test x$plugins = xyes; then
16842 ENABLE_PLUGINS_TRUE=
16843 ENABLE_PLUGINS_FALSE='#'
16844 else
16845 ENABLE_PLUGINS_TRUE='#'
16846 ENABLE_PLUGINS_FALSE=
16847 fi
16848
16849
16850 # Check whether --enable-initfini-array was given.
16851 if test "${enable_initfini_array+set}" = set; then :
16852 enableval=$enable_initfini_array; case "${enableval}" in
16853 yes|no) ;;
16854 *) as_fn_error "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
16855 esac
16856 else
16857 enable_initfini_array=yes
16858 fi
16859
16860
16861 if test $enable_initfini_array = yes; then
16862
16863 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16864
16865 fi
16866
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16868 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16869 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16870 $as_echo_n "(cached) " >&6
16871 else
16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h. */
16874 #include <unistd.h>
16875 int
16876 main ()
16877 {
16878 extern int getopt (int, char *const*, const char *);
16879 ;
16880 return 0;
16881 }
16882 _ACEOF
16883 if ac_fn_c_try_compile "$LINENO"; then :
16884 ld_cv_decl_getopt_unistd_h=yes
16885 else
16886 ld_cv_decl_getopt_unistd_h=no
16887 fi
16888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16889 fi
16890
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16892 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
16893 if test $ld_cv_decl_getopt_unistd_h = yes; then
16894
16895 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16896
16897 fi
16898
16899
16900 case "${host}" in
16901 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16902
16903 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16904 ;;
16905 esac
16906
16907 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16908 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16909 ac_have_decl=1
16910 else
16911 ac_have_decl=0
16912 fi
16913
16914 cat >>confdefs.h <<_ACEOF
16915 #define HAVE_DECL_STRSTR $ac_have_decl
16916 _ACEOF
16917 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16918 if test "x$ac_cv_have_decl_free" = x""yes; then :
16919 ac_have_decl=1
16920 else
16921 ac_have_decl=0
16922 fi
16923
16924 cat >>confdefs.h <<_ACEOF
16925 #define HAVE_DECL_FREE $ac_have_decl
16926 _ACEOF
16927 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16928 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16929 ac_have_decl=1
16930 else
16931 ac_have_decl=0
16932 fi
16933
16934 cat >>confdefs.h <<_ACEOF
16935 #define HAVE_DECL_SBRK $ac_have_decl
16936 _ACEOF
16937 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16938 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16939 ac_have_decl=1
16940 else
16941 ac_have_decl=0
16942 fi
16943
16944 cat >>confdefs.h <<_ACEOF
16945 #define HAVE_DECL_GETENV $ac_have_decl
16946 _ACEOF
16947 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16948 if test "x$ac_cv_have_decl_environ" = x""yes; then :
16949 ac_have_decl=1
16950 else
16951 ac_have_decl=0
16952 fi
16953
16954 cat >>confdefs.h <<_ACEOF
16955 #define HAVE_DECL_ENVIRON $ac_have_decl
16956 _ACEOF
16957
16958
16959 # When converting linker scripts into strings for use in emulation
16960 # files, use astring.sed if the compiler supports ANSI string
16961 # concatenation, or ostring.sed otherwise. This is to support the
16962 # broken Microsoft MSVC compiler, which limits the length of string
16963 # constants, while still supporting pre-ANSI compilers which do not
16964 # support string concatenation.
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16966 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16967 if test "${ld_cv_string_concatenation+set}" = set; then :
16968 $as_echo_n "(cached) " >&6
16969 else
16970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h. */
16972
16973 int
16974 main ()
16975 {
16976 char *a = "a" "a";
16977 ;
16978 return 0;
16979 }
16980 _ACEOF
16981 if ac_fn_c_try_compile "$LINENO"; then :
16982 ld_cv_string_concatenation=yes
16983 else
16984 ld_cv_string_concatenation=no
16985 fi
16986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987 fi
16988
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16990 $as_echo "$ld_cv_string_concatenation" >&6; }
16991 if test "$ld_cv_string_concatenation" = "yes"; then
16992 STRINGIFY=astring.sed
16993 else
16994 STRINGIFY=ostring.sed
16995 fi
16996
16997
16998 # target-specific stuff:
16999
17000 all_targets=
17001 EMUL=
17002 all_emuls=
17003 all_emul_extras=
17004 all_libpath=
17005
17006 rm -f tdirs
17007
17008 # If the host is 64-bit, then we enable 64-bit targets by default.
17009 # This is consistent with what ../bfd/configure.ac does.
17010 if test x${want64} = xfalse; then
17011 # The cast to long int works around a bug in the HP C Compiler
17012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17014 # This bug is HP SR number 8606223364.
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17016 $as_echo_n "checking size of void *... " >&6; }
17017 if test "${ac_cv_sizeof_void_p+set}" = set; then :
17018 $as_echo_n "(cached) " >&6
17019 else
17020 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17021
17022 else
17023 if test "$ac_cv_type_void_p" = yes; then
17024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17026 { as_fn_set_status 77
17027 as_fn_error "cannot compute sizeof (void *)
17028 See \`config.log' for more details." "$LINENO" 5; }; }
17029 else
17030 ac_cv_sizeof_void_p=0
17031 fi
17032 fi
17033
17034 fi
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17036 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17037
17038
17039
17040 cat >>confdefs.h <<_ACEOF
17041 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17042 _ACEOF
17043
17044
17045 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17046 want64=true
17047 fi
17048 fi
17049
17050 elf_list_options=FALSE
17051 elf_shlib_list_options=FALSE
17052 elf_plt_unwind_list_options=FALSE
17053 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17054 do
17055 if test "$targ_alias" = "all"; then
17056 all_targets=true
17057 elf_list_options=TRUE
17058 elf_shlib_list_options=TRUE
17059 elf_plt_unwind_list_options=TRUE
17060 else
17061 # Canonicalize the secondary target names.
17062 result=`$ac_config_sub $targ_alias 2>/dev/null`
17063 if test -n "$result"; then
17064 targ=$result
17065 else
17066 targ=$targ_alias
17067 fi
17068
17069 . ${srcdir}/configure.tgt
17070
17071 if test "$targ" = "$target"; then
17072 EMUL=$targ_emul
17073 fi
17074
17075 if test x${want64} = xfalse; then
17076 . ${srcdir}/../bfd/config.bfd
17077 fi
17078
17079 if test x${want64} = xtrue; then
17080 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17081 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17082 fi
17083
17084 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17085 case " $all_emuls " in
17086 *" e${i}.o "*) ;;
17087 *)
17088 all_emuls="$all_emuls e${i}.o"
17089 eval result=\$tdir_$i
17090 test -z "$result" && result=$targ_alias
17091 echo tdir_$i=$result >> tdirs
17092 case "${i}" in
17093 *elf*)
17094 elf_list_options=TRUE
17095 ;;
17096 *)
17097 if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17098 elf_list_options=TRUE
17099 fi
17100 ;;
17101 esac
17102 if test "$elf_list_options" = "TRUE"; then
17103 . ${srcdir}/emulparams/${i}.sh
17104 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17105 elf_shlib_list_options=TRUE
17106 fi
17107 if test x${PLT_UNWIND} = xyes; then
17108 elf_plt_unwind_list_options=TRUE
17109 fi
17110 fi
17111 ;;
17112 esac
17113 done
17114
17115 for i in $targ_emul $targ_extra_libpath; do
17116 case " $all_libpath " in
17117 *" ${i} "*) ;;
17118 *)
17119 if test -z "$all_libpath"; then
17120 all_libpath=${i}
17121 else
17122 all_libpath="$all_libpath ${i}"
17123 fi
17124 ;;
17125 esac
17126 done
17127
17128 for i in $targ_extra_ofiles; do
17129 case " $all_emul_extras " in
17130 *" ${i} "*) ;;
17131 *)
17132 all_emul_extras="$all_emul_extras ${i}"
17133 ;;
17134 esac
17135 done
17136
17137 fi
17138 done
17139
17140 if test x$ac_default_compressed_debug_sections = xyes ; then
17141
17142 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17143
17144 fi
17145
17146
17147
17148
17149
17150
17151 TDIRS=tdirs
17152
17153
17154 if test x${all_targets} = xtrue; then
17155 if test x${want64} = xtrue; then
17156 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17157 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17158 else
17159 EMULATION_OFILES='$(ALL_EMULATIONS)'
17160 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17161 fi
17162 else
17163 EMULATION_OFILES=$all_emuls
17164 EMUL_EXTRA_OFILES=$all_emul_extras
17165 fi
17166
17167
17168
17169
17170 EMULATION_LIBPATH=$all_libpath
17171
17172
17173 if test x${enable_static} = xno; then
17174 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17175 else
17176 TESTBFDLIB="../bfd/.libs/libbfd.a"
17177 fi
17178
17179
17180 target_vendor=${target_vendor=$host_vendor}
17181 case "$target_vendor" in
17182 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17183 *) EXTRA_SHLIB_EXTENSION= ;;
17184 esac
17185
17186 case "$target_os" in
17187 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17188 esac
17189
17190 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17191
17192 cat >>confdefs.h <<_ACEOF
17193 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17194 _ACEOF
17195
17196 fi
17197
17198
17199
17200
17201
17202
17203 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17204
17205 cat >confcache <<\_ACEOF
17206 # This file is a shell script that caches the results of configure
17207 # tests run on this system so they can be shared between configure
17208 # scripts and configure runs, see configure's option --config-cache.
17209 # It is not useful on other systems. If it contains results you don't
17210 # want to keep, you may remove or edit it.
17211 #
17212 # config.status only pays attention to the cache file if you give it
17213 # the --recheck option to rerun configure.
17214 #
17215 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17216 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17217 # following values.
17218
17219 _ACEOF
17220
17221 # The following way of writing the cache mishandles newlines in values,
17222 # but we know of no workaround that is simple, portable, and efficient.
17223 # So, we kill variables containing newlines.
17224 # Ultrix sh set writes to stderr and can't be redirected directly,
17225 # and sets the high bit in the cache file unless we assign to the vars.
17226 (
17227 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17228 eval ac_val=\$$ac_var
17229 case $ac_val in #(
17230 *${as_nl}*)
17231 case $ac_var in #(
17232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17233 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17234 esac
17235 case $ac_var in #(
17236 _ | IFS | as_nl) ;; #(
17237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17238 *) { eval $ac_var=; unset $ac_var;} ;;
17239 esac ;;
17240 esac
17241 done
17242
17243 (set) 2>&1 |
17244 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17245 *${as_nl}ac_space=\ *)
17246 # `set' does not quote correctly, so add quotes: double-quote
17247 # substitution turns \\\\ into \\, and sed turns \\ into \.
17248 sed -n \
17249 "s/'/'\\\\''/g;
17250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17251 ;; #(
17252 *)
17253 # `set' quotes correctly as required by POSIX, so do not add quotes.
17254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17255 ;;
17256 esac |
17257 sort
17258 ) |
17259 sed '
17260 /^ac_cv_env_/b end
17261 t clear
17262 :clear
17263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17264 t end
17265 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17266 :end' >>confcache
17267 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17268 if test -w "$cache_file"; then
17269 test "x$cache_file" != "x/dev/null" &&
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17271 $as_echo "$as_me: updating cache $cache_file" >&6;}
17272 cat confcache >$cache_file
17273 else
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17275 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17276 fi
17277 fi
17278 rm -f confcache
17279
17280 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17281 # Let make expand exec_prefix.
17282 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17283
17284 DEFS=-DHAVE_CONFIG_H
17285
17286 ac_libobjs=
17287 ac_ltlibobjs=
17288 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17289 # 1. Remove the extension, and $U if already installed.
17290 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17291 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17292 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17293 # will be set to the directory where LIBOBJS objects are built.
17294 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17295 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17296 done
17297 LIBOBJS=$ac_libobjs
17298
17299 LTLIBOBJS=$ac_ltlibobjs
17300
17301
17302 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17303 as_fn_error "conditional \"AMDEP\" was never defined.
17304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17305 fi
17306 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17307 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17309 fi
17310 if test -n "$EXEEXT"; then
17311 am__EXEEXT_TRUE=
17312 am__EXEEXT_FALSE='#'
17313 else
17314 am__EXEEXT_TRUE='#'
17315 am__EXEEXT_FALSE=
17316 fi
17317
17318 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17319 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17321 fi
17322 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17323 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17325 fi
17326 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17327 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17329 fi
17330 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17331 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17333 fi
17334 if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17335 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17337 fi
17338
17339 : ${CONFIG_STATUS=./config.status}
17340 ac_write_fail=0
17341 ac_clean_files_save=$ac_clean_files
17342 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17344 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17345 as_write_fail=0
17346 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17347 #! $SHELL
17348 # Generated by $as_me.
17349 # Run this file to recreate the current configuration.
17350 # Compiler output produced by configure, useful for debugging
17351 # configure, is in config.log if it exists.
17352
17353 debug=false
17354 ac_cs_recheck=false
17355 ac_cs_silent=false
17356
17357 SHELL=\${CONFIG_SHELL-$SHELL}
17358 export SHELL
17359 _ASEOF
17360 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17361 ## -------------------- ##
17362 ## M4sh Initialization. ##
17363 ## -------------------- ##
17364
17365 # Be more Bourne compatible
17366 DUALCASE=1; export DUALCASE # for MKS sh
17367 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17368 emulate sh
17369 NULLCMD=:
17370 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17371 # is contrary to our usage. Disable this feature.
17372 alias -g '${1+"$@"}'='"$@"'
17373 setopt NO_GLOB_SUBST
17374 else
17375 case `(set -o) 2>/dev/null` in #(
17376 *posix*) :
17377 set -o posix ;; #(
17378 *) :
17379 ;;
17380 esac
17381 fi
17382
17383
17384 as_nl='
17385 '
17386 export as_nl
17387 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17388 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17389 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17390 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17391 # Prefer a ksh shell builtin over an external printf program on Solaris,
17392 # but without wasting forks for bash or zsh.
17393 if test -z "$BASH_VERSION$ZSH_VERSION" \
17394 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17395 as_echo='print -r --'
17396 as_echo_n='print -rn --'
17397 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17398 as_echo='printf %s\n'
17399 as_echo_n='printf %s'
17400 else
17401 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17402 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17403 as_echo_n='/usr/ucb/echo -n'
17404 else
17405 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17406 as_echo_n_body='eval
17407 arg=$1;
17408 case $arg in #(
17409 *"$as_nl"*)
17410 expr "X$arg" : "X\\(.*\\)$as_nl";
17411 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17412 esac;
17413 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17414 '
17415 export as_echo_n_body
17416 as_echo_n='sh -c $as_echo_n_body as_echo'
17417 fi
17418 export as_echo_body
17419 as_echo='sh -c $as_echo_body as_echo'
17420 fi
17421
17422 # The user is always right.
17423 if test "${PATH_SEPARATOR+set}" != set; then
17424 PATH_SEPARATOR=:
17425 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17426 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17427 PATH_SEPARATOR=';'
17428 }
17429 fi
17430
17431
17432 # IFS
17433 # We need space, tab and new line, in precisely that order. Quoting is
17434 # there to prevent editors from complaining about space-tab.
17435 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17436 # splitting by setting IFS to empty value.)
17437 IFS=" "" $as_nl"
17438
17439 # Find who we are. Look in the path if we contain no directory separator.
17440 case $0 in #((
17441 *[\\/]* ) as_myself=$0 ;;
17442 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17443 for as_dir in $PATH
17444 do
17445 IFS=$as_save_IFS
17446 test -z "$as_dir" && as_dir=.
17447 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17448 done
17449 IFS=$as_save_IFS
17450
17451 ;;
17452 esac
17453 # We did not find ourselves, most probably we were run as `sh COMMAND'
17454 # in which case we are not to be found in the path.
17455 if test "x$as_myself" = x; then
17456 as_myself=$0
17457 fi
17458 if test ! -f "$as_myself"; then
17459 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17460 exit 1
17461 fi
17462
17463 # Unset variables that we do not need and which cause bugs (e.g. in
17464 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17465 # suppresses any "Segmentation fault" message there. '((' could
17466 # trigger a bug in pdksh 5.2.14.
17467 for as_var in BASH_ENV ENV MAIL MAILPATH
17468 do eval test x\${$as_var+set} = xset \
17469 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17470 done
17471 PS1='$ '
17472 PS2='> '
17473 PS4='+ '
17474
17475 # NLS nuisances.
17476 LC_ALL=C
17477 export LC_ALL
17478 LANGUAGE=C
17479 export LANGUAGE
17480
17481 # CDPATH.
17482 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17483
17484
17485 # as_fn_error ERROR [LINENO LOG_FD]
17486 # ---------------------------------
17487 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17488 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17489 # script with status $?, using 1 if that was 0.
17490 as_fn_error ()
17491 {
17492 as_status=$?; test $as_status -eq 0 && as_status=1
17493 if test "$3"; then
17494 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17495 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17496 fi
17497 $as_echo "$as_me: error: $1" >&2
17498 as_fn_exit $as_status
17499 } # as_fn_error
17500
17501
17502 # as_fn_set_status STATUS
17503 # -----------------------
17504 # Set $? to STATUS, without forking.
17505 as_fn_set_status ()
17506 {
17507 return $1
17508 } # as_fn_set_status
17509
17510 # as_fn_exit STATUS
17511 # -----------------
17512 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17513 as_fn_exit ()
17514 {
17515 set +e
17516 as_fn_set_status $1
17517 exit $1
17518 } # as_fn_exit
17519
17520 # as_fn_unset VAR
17521 # ---------------
17522 # Portably unset VAR.
17523 as_fn_unset ()
17524 {
17525 { eval $1=; unset $1;}
17526 }
17527 as_unset=as_fn_unset
17528 # as_fn_append VAR VALUE
17529 # ----------------------
17530 # Append the text in VALUE to the end of the definition contained in VAR. Take
17531 # advantage of any shell optimizations that allow amortized linear growth over
17532 # repeated appends, instead of the typical quadratic growth present in naive
17533 # implementations.
17534 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17535 eval 'as_fn_append ()
17536 {
17537 eval $1+=\$2
17538 }'
17539 else
17540 as_fn_append ()
17541 {
17542 eval $1=\$$1\$2
17543 }
17544 fi # as_fn_append
17545
17546 # as_fn_arith ARG...
17547 # ------------------
17548 # Perform arithmetic evaluation on the ARGs, and store the result in the
17549 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17550 # must be portable across $(()) and expr.
17551 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17552 eval 'as_fn_arith ()
17553 {
17554 as_val=$(( $* ))
17555 }'
17556 else
17557 as_fn_arith ()
17558 {
17559 as_val=`expr "$@" || test $? -eq 1`
17560 }
17561 fi # as_fn_arith
17562
17563
17564 if expr a : '\(a\)' >/dev/null 2>&1 &&
17565 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17566 as_expr=expr
17567 else
17568 as_expr=false
17569 fi
17570
17571 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17572 as_basename=basename
17573 else
17574 as_basename=false
17575 fi
17576
17577 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17578 as_dirname=dirname
17579 else
17580 as_dirname=false
17581 fi
17582
17583 as_me=`$as_basename -- "$0" ||
17584 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17585 X"$0" : 'X\(//\)$' \| \
17586 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17587 $as_echo X/"$0" |
17588 sed '/^.*\/\([^/][^/]*\)\/*$/{
17589 s//\1/
17590 q
17591 }
17592 /^X\/\(\/\/\)$/{
17593 s//\1/
17594 q
17595 }
17596 /^X\/\(\/\).*/{
17597 s//\1/
17598 q
17599 }
17600 s/.*/./; q'`
17601
17602 # Avoid depending upon Character Ranges.
17603 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17604 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17605 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17606 as_cr_digits='0123456789'
17607 as_cr_alnum=$as_cr_Letters$as_cr_digits
17608
17609 ECHO_C= ECHO_N= ECHO_T=
17610 case `echo -n x` in #(((((
17611 -n*)
17612 case `echo 'xy\c'` in
17613 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17614 xy) ECHO_C='\c';;
17615 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17616 ECHO_T=' ';;
17617 esac;;
17618 *)
17619 ECHO_N='-n';;
17620 esac
17621
17622 rm -f conf$$ conf$$.exe conf$$.file
17623 if test -d conf$$.dir; then
17624 rm -f conf$$.dir/conf$$.file
17625 else
17626 rm -f conf$$.dir
17627 mkdir conf$$.dir 2>/dev/null
17628 fi
17629 if (echo >conf$$.file) 2>/dev/null; then
17630 if ln -s conf$$.file conf$$ 2>/dev/null; then
17631 as_ln_s='ln -s'
17632 # ... but there are two gotchas:
17633 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17634 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17635 # In both cases, we have to default to `cp -p'.
17636 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17637 as_ln_s='cp -p'
17638 elif ln conf$$.file conf$$ 2>/dev/null; then
17639 as_ln_s=ln
17640 else
17641 as_ln_s='cp -p'
17642 fi
17643 else
17644 as_ln_s='cp -p'
17645 fi
17646 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17647 rmdir conf$$.dir 2>/dev/null
17648
17649
17650 # as_fn_mkdir_p
17651 # -------------
17652 # Create "$as_dir" as a directory, including parents if necessary.
17653 as_fn_mkdir_p ()
17654 {
17655
17656 case $as_dir in #(
17657 -*) as_dir=./$as_dir;;
17658 esac
17659 test -d "$as_dir" || eval $as_mkdir_p || {
17660 as_dirs=
17661 while :; do
17662 case $as_dir in #(
17663 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17664 *) as_qdir=$as_dir;;
17665 esac
17666 as_dirs="'$as_qdir' $as_dirs"
17667 as_dir=`$as_dirname -- "$as_dir" ||
17668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17669 X"$as_dir" : 'X\(//\)[^/]' \| \
17670 X"$as_dir" : 'X\(//\)$' \| \
17671 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17672 $as_echo X"$as_dir" |
17673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17674 s//\1/
17675 q
17676 }
17677 /^X\(\/\/\)[^/].*/{
17678 s//\1/
17679 q
17680 }
17681 /^X\(\/\/\)$/{
17682 s//\1/
17683 q
17684 }
17685 /^X\(\/\).*/{
17686 s//\1/
17687 q
17688 }
17689 s/.*/./; q'`
17690 test -d "$as_dir" && break
17691 done
17692 test -z "$as_dirs" || eval "mkdir $as_dirs"
17693 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17694
17695
17696 } # as_fn_mkdir_p
17697 if mkdir -p . 2>/dev/null; then
17698 as_mkdir_p='mkdir -p "$as_dir"'
17699 else
17700 test -d ./-p && rmdir ./-p
17701 as_mkdir_p=false
17702 fi
17703
17704 if test -x / >/dev/null 2>&1; then
17705 as_test_x='test -x'
17706 else
17707 if ls -dL / >/dev/null 2>&1; then
17708 as_ls_L_option=L
17709 else
17710 as_ls_L_option=
17711 fi
17712 as_test_x='
17713 eval sh -c '\''
17714 if test -d "$1"; then
17715 test -d "$1/.";
17716 else
17717 case $1 in #(
17718 -*)set "./$1";;
17719 esac;
17720 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17721 ???[sx]*):;;*)false;;esac;fi
17722 '\'' sh
17723 '
17724 fi
17725 as_executable_p=$as_test_x
17726
17727 # Sed expression to map a string onto a valid CPP name.
17728 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17729
17730 # Sed expression to map a string onto a valid variable name.
17731 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17732
17733
17734 exec 6>&1
17735 ## ----------------------------------- ##
17736 ## Main body of $CONFIG_STATUS script. ##
17737 ## ----------------------------------- ##
17738 _ASEOF
17739 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17740
17741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17742 # Save the log message, to keep $0 and so on meaningful, and to
17743 # report actual input values of CONFIG_FILES etc. instead of their
17744 # values after options handling.
17745 ac_log="
17746 This file was extended by ld $as_me 2.26.51, which was
17747 generated by GNU Autoconf 2.64. Invocation command line was
17748
17749 CONFIG_FILES = $CONFIG_FILES
17750 CONFIG_HEADERS = $CONFIG_HEADERS
17751 CONFIG_LINKS = $CONFIG_LINKS
17752 CONFIG_COMMANDS = $CONFIG_COMMANDS
17753 $ $0 $@
17754
17755 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17756 "
17757
17758 _ACEOF
17759
17760 case $ac_config_files in *"
17761 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17762 esac
17763
17764 case $ac_config_headers in *"
17765 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17766 esac
17767
17768
17769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17770 # Files that config.status was made for.
17771 config_files="$ac_config_files"
17772 config_headers="$ac_config_headers"
17773 config_commands="$ac_config_commands"
17774
17775 _ACEOF
17776
17777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17778 ac_cs_usage="\
17779 \`$as_me' instantiates files and other configuration actions
17780 from templates according to the current configuration. Unless the files
17781 and actions are specified as TAGs, all are instantiated by default.
17782
17783 Usage: $0 [OPTION]... [TAG]...
17784
17785 -h, --help print this help, then exit
17786 -V, --version print version number and configuration settings, then exit
17787 -q, --quiet, --silent
17788 do not print progress messages
17789 -d, --debug don't remove temporary files
17790 --recheck update $as_me by reconfiguring in the same conditions
17791 --file=FILE[:TEMPLATE]
17792 instantiate the configuration file FILE
17793 --header=FILE[:TEMPLATE]
17794 instantiate the configuration header FILE
17795
17796 Configuration files:
17797 $config_files
17798
17799 Configuration headers:
17800 $config_headers
17801
17802 Configuration commands:
17803 $config_commands
17804
17805 Report bugs to the package provider."
17806
17807 _ACEOF
17808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17809 ac_cs_version="\\
17810 ld config.status 2.26.51
17811 configured by $0, generated by GNU Autoconf 2.64,
17812 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17813
17814 Copyright (C) 2009 Free Software Foundation, Inc.
17815 This config.status script is free software; the Free Software Foundation
17816 gives unlimited permission to copy, distribute and modify it."
17817
17818 ac_pwd='$ac_pwd'
17819 srcdir='$srcdir'
17820 INSTALL='$INSTALL'
17821 MKDIR_P='$MKDIR_P'
17822 AWK='$AWK'
17823 test -n "\$AWK" || AWK=awk
17824 _ACEOF
17825
17826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17827 # The default lists apply if the user does not specify any file.
17828 ac_need_defaults=:
17829 while test $# != 0
17830 do
17831 case $1 in
17832 --*=*)
17833 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17834 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17835 ac_shift=:
17836 ;;
17837 *)
17838 ac_option=$1
17839 ac_optarg=$2
17840 ac_shift=shift
17841 ;;
17842 esac
17843
17844 case $ac_option in
17845 # Handling of the options.
17846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17847 ac_cs_recheck=: ;;
17848 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17849 $as_echo "$ac_cs_version"; exit ;;
17850 --debug | --debu | --deb | --de | --d | -d )
17851 debug=: ;;
17852 --file | --fil | --fi | --f )
17853 $ac_shift
17854 case $ac_optarg in
17855 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17856 esac
17857 as_fn_append CONFIG_FILES " '$ac_optarg'"
17858 ac_need_defaults=false;;
17859 --header | --heade | --head | --hea )
17860 $ac_shift
17861 case $ac_optarg in
17862 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17863 esac
17864 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17865 ac_need_defaults=false;;
17866 --he | --h)
17867 # Conflict between --help and --header
17868 as_fn_error "ambiguous option: \`$1'
17869 Try \`$0 --help' for more information.";;
17870 --help | --hel | -h )
17871 $as_echo "$ac_cs_usage"; exit ;;
17872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17873 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17874 ac_cs_silent=: ;;
17875
17876 # This is an error.
17877 -*) as_fn_error "unrecognized option: \`$1'
17878 Try \`$0 --help' for more information." ;;
17879
17880 *) as_fn_append ac_config_targets " $1"
17881 ac_need_defaults=false ;;
17882
17883 esac
17884 shift
17885 done
17886
17887 ac_configure_extra_args=
17888
17889 if $ac_cs_silent; then
17890 exec 6>/dev/null
17891 ac_configure_extra_args="$ac_configure_extra_args --silent"
17892 fi
17893
17894 _ACEOF
17895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17896 if \$ac_cs_recheck; then
17897 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17898 shift
17899 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17900 CONFIG_SHELL='$SHELL'
17901 export CONFIG_SHELL
17902 exec "\$@"
17903 fi
17904
17905 _ACEOF
17906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17907 exec 5>>config.log
17908 {
17909 echo
17910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17911 ## Running $as_me. ##
17912 _ASBOX
17913 $as_echo "$ac_log"
17914 } >&5
17915
17916 _ACEOF
17917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17918 #
17919 # INIT-COMMANDS
17920 #
17921 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17922
17923
17924 # The HP-UX ksh and POSIX shell print the target directory to stdout
17925 # if CDPATH is set.
17926 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17927
17928 sed_quote_subst='$sed_quote_subst'
17929 double_quote_subst='$double_quote_subst'
17930 delay_variable_subst='$delay_variable_subst'
17931 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17932 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17933 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17934 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17935 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17936 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17937 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17938 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17939 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17940 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17941 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17942 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17943 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17944 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17945 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17946 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17947 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17948 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17949 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17950 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17951 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17952 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17953 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17954 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17955 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17956 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17957 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17958 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17959 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17960 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17961 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17962 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17963 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17964 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17965 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17966 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17967 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17968 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17969 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17970 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17971 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17972 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17973 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17974 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17975 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17976 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17977 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17978 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17979 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"`'
17980 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17981 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17982 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17983 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17984 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17985 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17986 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17987 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17988 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17989 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17990 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17991 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17992 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17993 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17994 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17995 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17996 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17997 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17998 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17999 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18000 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18001 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18002 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18003 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18004 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18005 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18006 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18007 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18008 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18009 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18010 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18011 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18012 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18013 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18014 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18015 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18016 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18017 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18018 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18019 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18020 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18021 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18022 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18023 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18024 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18025 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18026 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18027 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18028 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18029 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18030 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18031 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18032 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18033 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18034 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18035 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18036 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18037 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18038 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18039 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18040 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18041 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18042 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18043 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18044 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18045 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18046 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18047 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18048 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18049 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18050 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18051 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18052 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18053 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18054 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18055 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18056 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18057 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18058 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18059 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18060 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18061 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18062 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18063 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18064 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18065 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18066 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18067 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18068 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18069 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18070 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18071 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18072 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18073 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18074 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18075 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18076 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18077 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18078 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18079 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18080 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18081 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18082 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18083 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18084 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18085 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18086 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18087 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18088 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18089 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18090 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18091 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18092 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18093 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18094 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18095 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18096 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18097 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18098 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18099 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18100 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18101 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18102 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18103 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18104 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18105 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18106
18107 LTCC='$LTCC'
18108 LTCFLAGS='$LTCFLAGS'
18109 compiler='$compiler_DEFAULT'
18110
18111 # A function that is used when there is no print builtin or printf.
18112 func_fallback_echo ()
18113 {
18114 eval 'cat <<_LTECHO_EOF
18115 \$1
18116 _LTECHO_EOF'
18117 }
18118
18119 # Quote evaled strings.
18120 for var in SHELL \
18121 ECHO \
18122 SED \
18123 GREP \
18124 EGREP \
18125 FGREP \
18126 LD \
18127 NM \
18128 LN_S \
18129 lt_SP2NL \
18130 lt_NL2SP \
18131 reload_flag \
18132 OBJDUMP \
18133 deplibs_check_method \
18134 file_magic_cmd \
18135 AR \
18136 AR_FLAGS \
18137 STRIP \
18138 RANLIB \
18139 CC \
18140 CFLAGS \
18141 compiler \
18142 lt_cv_sys_global_symbol_pipe \
18143 lt_cv_sys_global_symbol_to_cdecl \
18144 lt_cv_sys_global_symbol_to_c_name_address \
18145 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18146 lt_prog_compiler_no_builtin_flag \
18147 lt_prog_compiler_wl \
18148 lt_prog_compiler_pic \
18149 lt_prog_compiler_static \
18150 lt_cv_prog_compiler_c_o \
18151 need_locks \
18152 DSYMUTIL \
18153 NMEDIT \
18154 LIPO \
18155 OTOOL \
18156 OTOOL64 \
18157 shrext_cmds \
18158 export_dynamic_flag_spec \
18159 whole_archive_flag_spec \
18160 compiler_needs_object \
18161 with_gnu_ld \
18162 allow_undefined_flag \
18163 no_undefined_flag \
18164 hardcode_libdir_flag_spec \
18165 hardcode_libdir_flag_spec_ld \
18166 hardcode_libdir_separator \
18167 fix_srcfile_path \
18168 exclude_expsyms \
18169 include_expsyms \
18170 file_list_spec \
18171 variables_saved_for_relink \
18172 libname_spec \
18173 library_names_spec \
18174 soname_spec \
18175 install_override_mode \
18176 finish_eval \
18177 old_striplib \
18178 striplib \
18179 compiler_lib_search_dirs \
18180 predep_objects \
18181 postdep_objects \
18182 predeps \
18183 postdeps \
18184 compiler_lib_search_path \
18185 LD_CXX \
18186 reload_flag_CXX \
18187 compiler_CXX \
18188 lt_prog_compiler_no_builtin_flag_CXX \
18189 lt_prog_compiler_wl_CXX \
18190 lt_prog_compiler_pic_CXX \
18191 lt_prog_compiler_static_CXX \
18192 lt_cv_prog_compiler_c_o_CXX \
18193 export_dynamic_flag_spec_CXX \
18194 whole_archive_flag_spec_CXX \
18195 compiler_needs_object_CXX \
18196 with_gnu_ld_CXX \
18197 allow_undefined_flag_CXX \
18198 no_undefined_flag_CXX \
18199 hardcode_libdir_flag_spec_CXX \
18200 hardcode_libdir_flag_spec_ld_CXX \
18201 hardcode_libdir_separator_CXX \
18202 fix_srcfile_path_CXX \
18203 exclude_expsyms_CXX \
18204 include_expsyms_CXX \
18205 file_list_spec_CXX \
18206 compiler_lib_search_dirs_CXX \
18207 predep_objects_CXX \
18208 postdep_objects_CXX \
18209 predeps_CXX \
18210 postdeps_CXX \
18211 compiler_lib_search_path_CXX; do
18212 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18213 *[\\\\\\\`\\"\\\$]*)
18214 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18215 ;;
18216 *)
18217 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18218 ;;
18219 esac
18220 done
18221
18222 # Double-quote double-evaled strings.
18223 for var in reload_cmds \
18224 old_postinstall_cmds \
18225 old_postuninstall_cmds \
18226 old_archive_cmds \
18227 extract_expsyms_cmds \
18228 old_archive_from_new_cmds \
18229 old_archive_from_expsyms_cmds \
18230 archive_cmds \
18231 archive_expsym_cmds \
18232 module_cmds \
18233 module_expsym_cmds \
18234 export_symbols_cmds \
18235 prelink_cmds \
18236 postinstall_cmds \
18237 postuninstall_cmds \
18238 finish_cmds \
18239 sys_lib_search_path_spec \
18240 sys_lib_dlsearch_path_spec \
18241 reload_cmds_CXX \
18242 old_archive_cmds_CXX \
18243 old_archive_from_new_cmds_CXX \
18244 old_archive_from_expsyms_cmds_CXX \
18245 archive_cmds_CXX \
18246 archive_expsym_cmds_CXX \
18247 module_cmds_CXX \
18248 module_expsym_cmds_CXX \
18249 export_symbols_cmds_CXX \
18250 prelink_cmds_CXX; do
18251 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18252 *[\\\\\\\`\\"\\\$]*)
18253 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18254 ;;
18255 *)
18256 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18257 ;;
18258 esac
18259 done
18260
18261 ac_aux_dir='$ac_aux_dir'
18262 xsi_shell='$xsi_shell'
18263 lt_shell_append='$lt_shell_append'
18264
18265 # See if we are running on zsh, and set the options which allow our
18266 # commands through without removal of \ escapes INIT.
18267 if test -n "\${ZSH_VERSION+set}" ; then
18268 setopt NO_GLOB_SUBST
18269 fi
18270
18271
18272 PACKAGE='$PACKAGE'
18273 VERSION='$VERSION'
18274 TIMESTAMP='$TIMESTAMP'
18275 RM='$RM'
18276 ofile='$ofile'
18277
18278
18279
18280
18281
18282 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18283 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18284 # from automake.
18285 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18286 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18287 LINGUAS="${LINGUAS-%UNSET%}"
18288
18289
18290 _ACEOF
18291
18292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18293
18294 # Handling of arguments.
18295 for ac_config_target in $ac_config_targets
18296 do
18297 case $ac_config_target in
18298 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18299 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18300 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18301 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18302 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18303 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18304
18305 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18306 esac
18307 done
18308
18309
18310 # If the user did not use the arguments to specify the items to instantiate,
18311 # then the envvar interface is used. Set only those that are not.
18312 # We use the long form for the default assignment because of an extremely
18313 # bizarre bug on SunOS 4.1.3.
18314 if $ac_need_defaults; then
18315 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18316 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18318 fi
18319
18320 # Have a temporary directory for convenience. Make it in the build tree
18321 # simply because there is no reason against having it here, and in addition,
18322 # creating and moving files from /tmp can sometimes cause problems.
18323 # Hook for its removal unless debugging.
18324 # Note that there is a small window in which the directory will not be cleaned:
18325 # after its creation but before its name has been assigned to `$tmp'.
18326 $debug ||
18327 {
18328 tmp=
18329 trap 'exit_status=$?
18330 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18331 ' 0
18332 trap 'as_fn_exit 1' 1 2 13 15
18333 }
18334 # Create a (secure) tmp directory for tmp files.
18335
18336 {
18337 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18338 test -n "$tmp" && test -d "$tmp"
18339 } ||
18340 {
18341 tmp=./conf$$-$RANDOM
18342 (umask 077 && mkdir "$tmp")
18343 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18344
18345 # Set up the scripts for CONFIG_FILES section.
18346 # No need to generate them if there are no CONFIG_FILES.
18347 # This happens for instance with `./config.status config.h'.
18348 if test -n "$CONFIG_FILES"; then
18349
18350 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18351 ac_cs_awk_getline=:
18352 ac_cs_awk_pipe_init=
18353 ac_cs_awk_read_file='
18354 while ((getline aline < (F[key])) > 0)
18355 print(aline)
18356 close(F[key])'
18357 ac_cs_awk_pipe_fini=
18358 else
18359 ac_cs_awk_getline=false
18360 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18361 ac_cs_awk_read_file='
18362 print "|#_!!_#|"
18363 print "cat " F[key] " &&"
18364 '$ac_cs_awk_pipe_init
18365 # The final `:' finishes the AND list.
18366 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18367 fi
18368 ac_cr=`echo X | tr X '\015'`
18369 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18370 # But we know of no other shell where ac_cr would be empty at this
18371 # point, so we can use a bashism as a fallback.
18372 if test "x$ac_cr" = x; then
18373 eval ac_cr=\$\'\\r\'
18374 fi
18375 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18376 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18377 ac_cs_awk_cr='\r'
18378 else
18379 ac_cs_awk_cr=$ac_cr
18380 fi
18381
18382 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18383 _ACEOF
18384
18385 # Create commands to substitute file output variables.
18386 {
18387 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18388 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18389 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18390 echo "_ACAWK" &&
18391 echo "_ACEOF"
18392 } >conf$$files.sh &&
18393 . ./conf$$files.sh ||
18394 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18395 rm -f conf$$files.sh
18396
18397 {
18398 echo "cat >conf$$subs.awk <<_ACEOF" &&
18399 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18400 echo "_ACEOF"
18401 } >conf$$subs.sh ||
18402 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18403 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18404 ac_delim='%!_!# '
18405 for ac_last_try in false false false false false :; do
18406 . ./conf$$subs.sh ||
18407 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18408
18409 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18410 if test $ac_delim_n = $ac_delim_num; then
18411 break
18412 elif $ac_last_try; then
18413 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18414 else
18415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18416 fi
18417 done
18418 rm -f conf$$subs.sh
18419
18420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18421 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18422 _ACEOF
18423 sed -n '
18424 h
18425 s/^/S["/; s/!.*/"]=/
18426 p
18427 g
18428 s/^[^!]*!//
18429 :repl
18430 t repl
18431 s/'"$ac_delim"'$//
18432 t delim
18433 :nl
18434 h
18435 s/\(.\{148\}\).*/\1/
18436 t more1
18437 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18438 p
18439 n
18440 b repl
18441 :more1
18442 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18443 p
18444 g
18445 s/.\{148\}//
18446 t nl
18447 :delim
18448 h
18449 s/\(.\{148\}\).*/\1/
18450 t more2
18451 s/["\\]/\\&/g; s/^/"/; s/$/"/
18452 p
18453 b
18454 :more2
18455 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18456 p
18457 g
18458 s/.\{148\}//
18459 t delim
18460 ' <conf$$subs.awk | sed '
18461 /^[^""]/{
18462 N
18463 s/\n//
18464 }
18465 ' >>$CONFIG_STATUS || ac_write_fail=1
18466 rm -f conf$$subs.awk
18467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18468 _ACAWK
18469 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18470 for (key in S) S_is_set[key] = 1
18471 FS = "\a"
18472 \$ac_cs_awk_pipe_init
18473 }
18474 {
18475 line = $ 0
18476 nfields = split(line, field, "@")
18477 substed = 0
18478 len = length(field[1])
18479 for (i = 2; i < nfields; i++) {
18480 key = field[i]
18481 keylen = length(key)
18482 if (S_is_set[key]) {
18483 value = S[key]
18484 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18485 len += length(value) + length(field[++i])
18486 substed = 1
18487 } else
18488 len += 1 + keylen
18489 }
18490 if (nfields == 3 && !substed) {
18491 key = field[2]
18492 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18493 \$ac_cs_awk_read_file
18494 next
18495 }
18496 }
18497 print line
18498 }
18499 \$ac_cs_awk_pipe_fini
18500 _ACAWK
18501 _ACEOF
18502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18503 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18504 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18505 else
18506 cat
18507 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18508 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18509 _ACEOF
18510
18511 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18512 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18513 # trailing colons and then remove the whole line if VPATH becomes empty
18514 # (actually we leave an empty line to preserve line numbers).
18515 if test "x$srcdir" = x.; then
18516 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18517 s/:*\$(srcdir):*/:/
18518 s/:*\${srcdir}:*/:/
18519 s/:*@srcdir@:*/:/
18520 s/^\([^=]*=[ ]*\):*/\1/
18521 s/:*$//
18522 s/^[^=]*=[ ]*$//
18523 }'
18524 fi
18525
18526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18527 fi # test -n "$CONFIG_FILES"
18528
18529 # Set up the scripts for CONFIG_HEADERS section.
18530 # No need to generate them if there are no CONFIG_HEADERS.
18531 # This happens for instance with `./config.status Makefile'.
18532 if test -n "$CONFIG_HEADERS"; then
18533 cat >"$tmp/defines.awk" <<\_ACAWK ||
18534 BEGIN {
18535 _ACEOF
18536
18537 # Transform confdefs.h into an awk script `defines.awk', embedded as
18538 # here-document in config.status, that substitutes the proper values into
18539 # config.h.in to produce config.h.
18540
18541 # Create a delimiter string that does not exist in confdefs.h, to ease
18542 # handling of long lines.
18543 ac_delim='%!_!# '
18544 for ac_last_try in false false :; do
18545 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18546 if test -z "$ac_t"; then
18547 break
18548 elif $ac_last_try; then
18549 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18550 else
18551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18552 fi
18553 done
18554
18555 # For the awk script, D is an array of macro values keyed by name,
18556 # likewise P contains macro parameters if any. Preserve backslash
18557 # newline sequences.
18558
18559 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18560 sed -n '
18561 s/.\{148\}/&'"$ac_delim"'/g
18562 t rset
18563 :rset
18564 s/^[ ]*#[ ]*define[ ][ ]*/ /
18565 t def
18566 d
18567 :def
18568 s/\\$//
18569 t bsnl
18570 s/["\\]/\\&/g
18571 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18572 D["\1"]=" \3"/p
18573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18574 d
18575 :bsnl
18576 s/["\\]/\\&/g
18577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18578 D["\1"]=" \3\\\\\\n"\\/p
18579 t cont
18580 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18581 t cont
18582 d
18583 :cont
18584 n
18585 s/.\{148\}/&'"$ac_delim"'/g
18586 t clear
18587 :clear
18588 s/\\$//
18589 t bsnlc
18590 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18591 d
18592 :bsnlc
18593 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18594 b cont
18595 ' <confdefs.h | sed '
18596 s/'"$ac_delim"'/"\\\
18597 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18598
18599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18600 for (key in D) D_is_set[key] = 1
18601 FS = "\a"
18602 }
18603 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18604 line = \$ 0
18605 split(line, arg, " ")
18606 if (arg[1] == "#") {
18607 defundef = arg[2]
18608 mac1 = arg[3]
18609 } else {
18610 defundef = substr(arg[1], 2)
18611 mac1 = arg[2]
18612 }
18613 split(mac1, mac2, "(") #)
18614 macro = mac2[1]
18615 prefix = substr(line, 1, index(line, defundef) - 1)
18616 if (D_is_set[macro]) {
18617 # Preserve the white space surrounding the "#".
18618 print prefix "define", macro P[macro] D[macro]
18619 next
18620 } else {
18621 # Replace #undef with comments. This is necessary, for example,
18622 # in the case of _POSIX_SOURCE, which is predefined and required
18623 # on some systems where configure will not decide to define it.
18624 if (defundef == "undef") {
18625 print "/*", prefix defundef, macro, "*/"
18626 next
18627 }
18628 }
18629 }
18630 { print }
18631 _ACAWK
18632 _ACEOF
18633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18634 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18635 fi # test -n "$CONFIG_HEADERS"
18636
18637
18638 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18639 shift
18640 for ac_tag
18641 do
18642 case $ac_tag in
18643 :[FHLC]) ac_mode=$ac_tag; continue;;
18644 esac
18645 case $ac_mode$ac_tag in
18646 :[FHL]*:*);;
18647 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18648 :[FH]-) ac_tag=-:-;;
18649 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18650 esac
18651 ac_save_IFS=$IFS
18652 IFS=:
18653 set x $ac_tag
18654 IFS=$ac_save_IFS
18655 shift
18656 ac_file=$1
18657 shift
18658
18659 case $ac_mode in
18660 :L) ac_source=$1;;
18661 :[FH])
18662 ac_file_inputs=
18663 for ac_f
18664 do
18665 case $ac_f in
18666 -) ac_f="$tmp/stdin";;
18667 *) # Look for the file first in the build tree, then in the source tree
18668 # (if the path is not absolute). The absolute path cannot be DOS-style,
18669 # because $ac_f cannot contain `:'.
18670 test -f "$ac_f" ||
18671 case $ac_f in
18672 [\\/$]*) false;;
18673 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18674 esac ||
18675 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18676 esac
18677 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18678 as_fn_append ac_file_inputs " '$ac_f'"
18679 done
18680
18681 # Let's still pretend it is `configure' which instantiates (i.e., don't
18682 # use $as_me), people would be surprised to read:
18683 # /* config.h. Generated by config.status. */
18684 configure_input='Generated from '`
18685 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18686 `' by configure.'
18687 if test x"$ac_file" != x-; then
18688 configure_input="$ac_file. $configure_input"
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18690 $as_echo "$as_me: creating $ac_file" >&6;}
18691 fi
18692 # Neutralize special characters interpreted by sed in replacement strings.
18693 case $configure_input in #(
18694 *\&* | *\|* | *\\* )
18695 ac_sed_conf_input=`$as_echo "$configure_input" |
18696 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18697 *) ac_sed_conf_input=$configure_input;;
18698 esac
18699
18700 case $ac_tag in
18701 *:-:* | *:-) cat >"$tmp/stdin" \
18702 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18703 esac
18704 ;;
18705 esac
18706
18707 ac_dir=`$as_dirname -- "$ac_file" ||
18708 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18709 X"$ac_file" : 'X\(//\)[^/]' \| \
18710 X"$ac_file" : 'X\(//\)$' \| \
18711 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18712 $as_echo X"$ac_file" |
18713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18714 s//\1/
18715 q
18716 }
18717 /^X\(\/\/\)[^/].*/{
18718 s//\1/
18719 q
18720 }
18721 /^X\(\/\/\)$/{
18722 s//\1/
18723 q
18724 }
18725 /^X\(\/\).*/{
18726 s//\1/
18727 q
18728 }
18729 s/.*/./; q'`
18730 as_dir="$ac_dir"; as_fn_mkdir_p
18731 ac_builddir=.
18732
18733 case "$ac_dir" in
18734 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18735 *)
18736 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18737 # A ".." for each directory in $ac_dir_suffix.
18738 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18739 case $ac_top_builddir_sub in
18740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18742 esac ;;
18743 esac
18744 ac_abs_top_builddir=$ac_pwd
18745 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18746 # for backward compatibility:
18747 ac_top_builddir=$ac_top_build_prefix
18748
18749 case $srcdir in
18750 .) # We are building in place.
18751 ac_srcdir=.
18752 ac_top_srcdir=$ac_top_builddir_sub
18753 ac_abs_top_srcdir=$ac_pwd ;;
18754 [\\/]* | ?:[\\/]* ) # Absolute name.
18755 ac_srcdir=$srcdir$ac_dir_suffix;
18756 ac_top_srcdir=$srcdir
18757 ac_abs_top_srcdir=$srcdir ;;
18758 *) # Relative name.
18759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18760 ac_top_srcdir=$ac_top_build_prefix$srcdir
18761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18762 esac
18763 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18764
18765
18766 case $ac_mode in
18767 :F)
18768 #
18769 # CONFIG_FILE
18770 #
18771
18772 case $INSTALL in
18773 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18774 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18775 esac
18776 ac_MKDIR_P=$MKDIR_P
18777 case $MKDIR_P in
18778 [\\/$]* | ?:[\\/]* ) ;;
18779 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18780 esac
18781 _ACEOF
18782
18783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18784 # If the template does not know about datarootdir, expand it.
18785 # FIXME: This hack should be removed a few years after 2.60.
18786 ac_datarootdir_hack=; ac_datarootdir_seen=
18787 ac_sed_dataroot='
18788 /datarootdir/ {
18789 p
18790 q
18791 }
18792 /@datadir@/p
18793 /@docdir@/p
18794 /@infodir@/p
18795 /@localedir@/p
18796 /@mandir@/p'
18797 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18798 *datarootdir*) ac_datarootdir_seen=yes;;
18799 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18801 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18802 _ACEOF
18803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18804 ac_datarootdir_hack='
18805 s&@datadir@&$datadir&g
18806 s&@docdir@&$docdir&g
18807 s&@infodir@&$infodir&g
18808 s&@localedir@&$localedir&g
18809 s&@mandir@&$mandir&g
18810 s&\\\${datarootdir}&$datarootdir&g' ;;
18811 esac
18812 _ACEOF
18813
18814 # Neutralize VPATH when `$srcdir' = `.'.
18815 # Shell code in configure.ac might set extrasub.
18816 # FIXME: do we really want to maintain this feature?
18817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18818 ac_sed_extra="$ac_vpsub
18819 $extrasub
18820 _ACEOF
18821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18822 :t
18823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18824 s|@configure_input@|$ac_sed_conf_input|;t t
18825 s&@top_builddir@&$ac_top_builddir_sub&;t t
18826 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18827 s&@srcdir@&$ac_srcdir&;t t
18828 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18829 s&@top_srcdir@&$ac_top_srcdir&;t t
18830 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18831 s&@builddir@&$ac_builddir&;t t
18832 s&@abs_builddir@&$ac_abs_builddir&;t t
18833 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18834 s&@INSTALL@&$ac_INSTALL&;t t
18835 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18836 $ac_datarootdir_hack
18837 "
18838 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18839 if $ac_cs_awk_getline; then
18840 $AWK -f "$tmp/subs.awk"
18841 else
18842 $AWK -f "$tmp/subs.awk" | $SHELL
18843 fi >$tmp/out \
18844 || as_fn_error "could not create $ac_file" "$LINENO" 5
18845
18846 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18847 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18848 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18850 which seems to be undefined. Please make sure it is defined." >&5
18851 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18852 which seems to be undefined. Please make sure it is defined." >&2;}
18853
18854 rm -f "$tmp/stdin"
18855 case $ac_file in
18856 -) cat "$tmp/out" && rm -f "$tmp/out";;
18857 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18858 esac \
18859 || as_fn_error "could not create $ac_file" "$LINENO" 5
18860 ;;
18861 :H)
18862 #
18863 # CONFIG_HEADER
18864 #
18865 if test x"$ac_file" != x-; then
18866 {
18867 $as_echo "/* $configure_input */" \
18868 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18869 } >"$tmp/config.h" \
18870 || as_fn_error "could not create $ac_file" "$LINENO" 5
18871 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18873 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18874 else
18875 rm -f "$ac_file"
18876 mv "$tmp/config.h" "$ac_file" \
18877 || as_fn_error "could not create $ac_file" "$LINENO" 5
18878 fi
18879 else
18880 $as_echo "/* $configure_input */" \
18881 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18882 || as_fn_error "could not create -" "$LINENO" 5
18883 fi
18884 # Compute "$ac_file"'s index in $config_headers.
18885 _am_arg="$ac_file"
18886 _am_stamp_count=1
18887 for _am_header in $config_headers :; do
18888 case $_am_header in
18889 $_am_arg | $_am_arg:* )
18890 break ;;
18891 * )
18892 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18893 esac
18894 done
18895 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18896 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18897 X"$_am_arg" : 'X\(//\)[^/]' \| \
18898 X"$_am_arg" : 'X\(//\)$' \| \
18899 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18900 $as_echo X"$_am_arg" |
18901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18902 s//\1/
18903 q
18904 }
18905 /^X\(\/\/\)[^/].*/{
18906 s//\1/
18907 q
18908 }
18909 /^X\(\/\/\)$/{
18910 s//\1/
18911 q
18912 }
18913 /^X\(\/\).*/{
18914 s//\1/
18915 q
18916 }
18917 s/.*/./; q'`/stamp-h$_am_stamp_count
18918 ;;
18919
18920 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18921 $as_echo "$as_me: executing $ac_file commands" >&6;}
18922 ;;
18923 esac
18924
18925
18926 case $ac_file$ac_mode in
18927 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18928 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18929 # are listed without --file. Let's play safe and only enable the eval
18930 # if we detect the quoting.
18931 case $CONFIG_FILES in
18932 *\'*) eval set x "$CONFIG_FILES" ;;
18933 *) set x $CONFIG_FILES ;;
18934 esac
18935 shift
18936 for mf
18937 do
18938 # Strip MF so we end up with the name of the file.
18939 mf=`echo "$mf" | sed -e 's/:.*$//'`
18940 # Check whether this is an Automake generated Makefile or not.
18941 # We used to match only the files named `Makefile.in', but
18942 # some people rename them; so instead we look at the file content.
18943 # Grep'ing the first line is not enough: some people post-process
18944 # each Makefile.in and add a new line on top of each file to say so.
18945 # Grep'ing the whole file is not good either: AIX grep has a line
18946 # limit of 2048, but all sed's we know have understand at least 4000.
18947 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18948 dirpart=`$as_dirname -- "$mf" ||
18949 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18950 X"$mf" : 'X\(//\)[^/]' \| \
18951 X"$mf" : 'X\(//\)$' \| \
18952 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18953 $as_echo X"$mf" |
18954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18955 s//\1/
18956 q
18957 }
18958 /^X\(\/\/\)[^/].*/{
18959 s//\1/
18960 q
18961 }
18962 /^X\(\/\/\)$/{
18963 s//\1/
18964 q
18965 }
18966 /^X\(\/\).*/{
18967 s//\1/
18968 q
18969 }
18970 s/.*/./; q'`
18971 else
18972 continue
18973 fi
18974 # Extract the definition of DEPDIR, am__include, and am__quote
18975 # from the Makefile without running `make'.
18976 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18977 test -z "$DEPDIR" && continue
18978 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18979 test -z "am__include" && continue
18980 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18981 # When using ansi2knr, U may be empty or an underscore; expand it
18982 U=`sed -n 's/^U = //p' < "$mf"`
18983 # Find all dependency output files, they are included files with
18984 # $(DEPDIR) in their names. We invoke sed twice because it is the
18985 # simplest approach to changing $(DEPDIR) to its actual value in the
18986 # expansion.
18987 for file in `sed -n "
18988 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18989 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18990 # Make sure the directory exists.
18991 test -f "$dirpart/$file" && continue
18992 fdir=`$as_dirname -- "$file" ||
18993 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18994 X"$file" : 'X\(//\)[^/]' \| \
18995 X"$file" : 'X\(//\)$' \| \
18996 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18997 $as_echo X"$file" |
18998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18999 s//\1/
19000 q
19001 }
19002 /^X\(\/\/\)[^/].*/{
19003 s//\1/
19004 q
19005 }
19006 /^X\(\/\/\)$/{
19007 s//\1/
19008 q
19009 }
19010 /^X\(\/\).*/{
19011 s//\1/
19012 q
19013 }
19014 s/.*/./; q'`
19015 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19016 # echo "creating $dirpart/$file"
19017 echo '# dummy' > "$dirpart/$file"
19018 done
19019 done
19020 }
19021 ;;
19022 "libtool":C)
19023
19024 # See if we are running on zsh, and set the options which allow our
19025 # commands through without removal of \ escapes.
19026 if test -n "${ZSH_VERSION+set}" ; then
19027 setopt NO_GLOB_SUBST
19028 fi
19029
19030 cfgfile="${ofile}T"
19031 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19032 $RM "$cfgfile"
19033
19034 cat <<_LT_EOF >> "$cfgfile"
19035 #! $SHELL
19036
19037 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19038 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19040 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19041 #
19042 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19043 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19044 # Written by Gordon Matzigkeit, 1996
19045 #
19046 # This file is part of GNU Libtool.
19047 #
19048 # GNU Libtool is free software; you can redistribute it and/or
19049 # modify it under the terms of the GNU General Public License as
19050 # published by the Free Software Foundation; either version 2 of
19051 # the License, or (at your option) any later version.
19052 #
19053 # As a special exception to the GNU General Public License,
19054 # if you distribute this file as part of a program or library that
19055 # is built using GNU Libtool, you may include this file under the
19056 # same distribution terms that you use for the rest of that program.
19057 #
19058 # GNU Libtool is distributed in the hope that it will be useful,
19059 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19060 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19061 # GNU General Public License for more details.
19062 #
19063 # You should have received a copy of the GNU General Public License
19064 # along with GNU Libtool; see the file COPYING. If not, a copy
19065 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19066 # obtained by writing to the Free Software Foundation, Inc.,
19067 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19068
19069
19070 # The names of the tagged configurations supported by this script.
19071 available_tags="CXX "
19072
19073 # ### BEGIN LIBTOOL CONFIG
19074
19075 # Which release of libtool.m4 was used?
19076 macro_version=$macro_version
19077 macro_revision=$macro_revision
19078
19079 # Whether or not to build shared libraries.
19080 build_libtool_libs=$enable_shared
19081
19082 # Whether or not to build static libraries.
19083 build_old_libs=$enable_static
19084
19085 # What type of objects to build.
19086 pic_mode=$pic_mode
19087
19088 # Whether or not to optimize for fast installation.
19089 fast_install=$enable_fast_install
19090
19091 # Shell to use when invoking shell scripts.
19092 SHELL=$lt_SHELL
19093
19094 # An echo program that protects backslashes.
19095 ECHO=$lt_ECHO
19096
19097 # The host system.
19098 host_alias=$host_alias
19099 host=$host
19100 host_os=$host_os
19101
19102 # The build system.
19103 build_alias=$build_alias
19104 build=$build
19105 build_os=$build_os
19106
19107 # A sed program that does not truncate output.
19108 SED=$lt_SED
19109
19110 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19111 Xsed="\$SED -e 1s/^X//"
19112
19113 # A grep program that handles long lines.
19114 GREP=$lt_GREP
19115
19116 # An ERE matcher.
19117 EGREP=$lt_EGREP
19118
19119 # A literal string matcher.
19120 FGREP=$lt_FGREP
19121
19122 # A BSD- or MS-compatible name lister.
19123 NM=$lt_NM
19124
19125 # Whether we need soft or hard links.
19126 LN_S=$lt_LN_S
19127
19128 # What is the maximum length of a command?
19129 max_cmd_len=$max_cmd_len
19130
19131 # Object file suffix (normally "o").
19132 objext=$ac_objext
19133
19134 # Executable file suffix (normally "").
19135 exeext=$exeext
19136
19137 # whether the shell understands "unset".
19138 lt_unset=$lt_unset
19139
19140 # turn spaces into newlines.
19141 SP2NL=$lt_lt_SP2NL
19142
19143 # turn newlines into spaces.
19144 NL2SP=$lt_lt_NL2SP
19145
19146 # An object symbol dumper.
19147 OBJDUMP=$lt_OBJDUMP
19148
19149 # Method to check whether dependent libraries are shared objects.
19150 deplibs_check_method=$lt_deplibs_check_method
19151
19152 # Command to use when deplibs_check_method == "file_magic".
19153 file_magic_cmd=$lt_file_magic_cmd
19154
19155 # The archiver.
19156 AR=$lt_AR
19157 AR_FLAGS=$lt_AR_FLAGS
19158
19159 # A symbol stripping program.
19160 STRIP=$lt_STRIP
19161
19162 # Commands used to install an old-style archive.
19163 RANLIB=$lt_RANLIB
19164 old_postinstall_cmds=$lt_old_postinstall_cmds
19165 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19166
19167 # Whether to use a lock for old archive extraction.
19168 lock_old_archive_extraction=$lock_old_archive_extraction
19169
19170 # A C compiler.
19171 LTCC=$lt_CC
19172
19173 # LTCC compiler flags.
19174 LTCFLAGS=$lt_CFLAGS
19175
19176 # Take the output of nm and produce a listing of raw symbols and C names.
19177 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19178
19179 # Transform the output of nm in a proper C declaration.
19180 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19181
19182 # Transform the output of nm in a C name address pair.
19183 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19184
19185 # Transform the output of nm in a C name address pair when lib prefix is needed.
19186 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19187
19188 # The name of the directory that contains temporary libtool files.
19189 objdir=$objdir
19190
19191 # Used to examine libraries when file_magic_cmd begins with "file".
19192 MAGIC_CMD=$MAGIC_CMD
19193
19194 # Must we lock files when doing compilation?
19195 need_locks=$lt_need_locks
19196
19197 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19198 DSYMUTIL=$lt_DSYMUTIL
19199
19200 # Tool to change global to local symbols on Mac OS X.
19201 NMEDIT=$lt_NMEDIT
19202
19203 # Tool to manipulate fat objects and archives on Mac OS X.
19204 LIPO=$lt_LIPO
19205
19206 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19207 OTOOL=$lt_OTOOL
19208
19209 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19210 OTOOL64=$lt_OTOOL64
19211
19212 # Old archive suffix (normally "a").
19213 libext=$libext
19214
19215 # Shared library suffix (normally ".so").
19216 shrext_cmds=$lt_shrext_cmds
19217
19218 # The commands to extract the exported symbol list from a shared archive.
19219 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19220
19221 # Variables whose values should be saved in libtool wrapper scripts and
19222 # restored at link time.
19223 variables_saved_for_relink=$lt_variables_saved_for_relink
19224
19225 # Do we need the "lib" prefix for modules?
19226 need_lib_prefix=$need_lib_prefix
19227
19228 # Do we need a version for libraries?
19229 need_version=$need_version
19230
19231 # Library versioning type.
19232 version_type=$version_type
19233
19234 # Shared library runtime path variable.
19235 runpath_var=$runpath_var
19236
19237 # Shared library path variable.
19238 shlibpath_var=$shlibpath_var
19239
19240 # Is shlibpath searched before the hard-coded library search path?
19241 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19242
19243 # Format of library name prefix.
19244 libname_spec=$lt_libname_spec
19245
19246 # List of archive names. First name is the real one, the rest are links.
19247 # The last name is the one that the linker finds with -lNAME
19248 library_names_spec=$lt_library_names_spec
19249
19250 # The coded name of the library, if different from the real name.
19251 soname_spec=$lt_soname_spec
19252
19253 # Permission mode override for installation of shared libraries.
19254 install_override_mode=$lt_install_override_mode
19255
19256 # Command to use after installation of a shared archive.
19257 postinstall_cmds=$lt_postinstall_cmds
19258
19259 # Command to use after uninstallation of a shared archive.
19260 postuninstall_cmds=$lt_postuninstall_cmds
19261
19262 # Commands used to finish a libtool library installation in a directory.
19263 finish_cmds=$lt_finish_cmds
19264
19265 # As "finish_cmds", except a single script fragment to be evaled but
19266 # not shown.
19267 finish_eval=$lt_finish_eval
19268
19269 # Whether we should hardcode library paths into libraries.
19270 hardcode_into_libs=$hardcode_into_libs
19271
19272 # Compile-time system search path for libraries.
19273 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19274
19275 # Run-time system search path for libraries.
19276 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19277
19278 # Whether dlopen is supported.
19279 dlopen_support=$enable_dlopen
19280
19281 # Whether dlopen of programs is supported.
19282 dlopen_self=$enable_dlopen_self
19283
19284 # Whether dlopen of statically linked programs is supported.
19285 dlopen_self_static=$enable_dlopen_self_static
19286
19287 # Commands to strip libraries.
19288 old_striplib=$lt_old_striplib
19289 striplib=$lt_striplib
19290
19291
19292 # The linker used to build libraries.
19293 LD=$lt_LD
19294
19295 # How to create reloadable object files.
19296 reload_flag=$lt_reload_flag
19297 reload_cmds=$lt_reload_cmds
19298
19299 # Commands used to build an old-style archive.
19300 old_archive_cmds=$lt_old_archive_cmds
19301
19302 # A language specific compiler.
19303 CC=$lt_compiler
19304
19305 # Is the compiler the GNU compiler?
19306 with_gcc=$GCC
19307
19308 # Compiler flag to turn off builtin functions.
19309 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19310
19311 # How to pass a linker flag through the compiler.
19312 wl=$lt_lt_prog_compiler_wl
19313
19314 # Additional compiler flags for building library objects.
19315 pic_flag=$lt_lt_prog_compiler_pic
19316
19317 # Compiler flag to prevent dynamic linking.
19318 link_static_flag=$lt_lt_prog_compiler_static
19319
19320 # Does compiler simultaneously support -c and -o options?
19321 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19322
19323 # Whether or not to add -lc for building shared libraries.
19324 build_libtool_need_lc=$archive_cmds_need_lc
19325
19326 # Whether or not to disallow shared libs when runtime libs are static.
19327 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19328
19329 # Compiler flag to allow reflexive dlopens.
19330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19331
19332 # Compiler flag to generate shared objects directly from archives.
19333 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19334
19335 # Whether the compiler copes with passing no objects directly.
19336 compiler_needs_object=$lt_compiler_needs_object
19337
19338 # Create an old-style archive from a shared archive.
19339 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19340
19341 # Create a temporary old-style archive to link instead of a shared archive.
19342 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19343
19344 # Commands used to build a shared archive.
19345 archive_cmds=$lt_archive_cmds
19346 archive_expsym_cmds=$lt_archive_expsym_cmds
19347
19348 # Commands used to build a loadable module if different from building
19349 # a shared archive.
19350 module_cmds=$lt_module_cmds
19351 module_expsym_cmds=$lt_module_expsym_cmds
19352
19353 # Whether we are building with GNU ld or not.
19354 with_gnu_ld=$lt_with_gnu_ld
19355
19356 # Flag that allows shared libraries with undefined symbols to be built.
19357 allow_undefined_flag=$lt_allow_undefined_flag
19358
19359 # Flag that enforces no undefined symbols.
19360 no_undefined_flag=$lt_no_undefined_flag
19361
19362 # Flag to hardcode \$libdir into a binary during linking.
19363 # This must work even if \$libdir does not exist
19364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19365
19366 # If ld is used when linking, flag to hardcode \$libdir into a binary
19367 # during linking. This must work even if \$libdir does not exist.
19368 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19369
19370 # Whether we need a single "-rpath" flag with a separated argument.
19371 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19372
19373 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19374 # DIR into the resulting binary.
19375 hardcode_direct=$hardcode_direct
19376
19377 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19378 # DIR into the resulting binary and the resulting library dependency is
19379 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19380 # library is relocated.
19381 hardcode_direct_absolute=$hardcode_direct_absolute
19382
19383 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19384 # into the resulting binary.
19385 hardcode_minus_L=$hardcode_minus_L
19386
19387 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19388 # into the resulting binary.
19389 hardcode_shlibpath_var=$hardcode_shlibpath_var
19390
19391 # Set to "yes" if building a shared library automatically hardcodes DIR
19392 # into the library and all subsequent libraries and executables linked
19393 # against it.
19394 hardcode_automatic=$hardcode_automatic
19395
19396 # Set to yes if linker adds runtime paths of dependent libraries
19397 # to runtime path list.
19398 inherit_rpath=$inherit_rpath
19399
19400 # Whether libtool must link a program against all its dependency libraries.
19401 link_all_deplibs=$link_all_deplibs
19402
19403 # Fix the shell variable \$srcfile for the compiler.
19404 fix_srcfile_path=$lt_fix_srcfile_path
19405
19406 # Set to "yes" if exported symbols are required.
19407 always_export_symbols=$always_export_symbols
19408
19409 # The commands to list exported symbols.
19410 export_symbols_cmds=$lt_export_symbols_cmds
19411
19412 # Symbols that should not be listed in the preloaded symbols.
19413 exclude_expsyms=$lt_exclude_expsyms
19414
19415 # Symbols that must always be exported.
19416 include_expsyms=$lt_include_expsyms
19417
19418 # Commands necessary for linking programs (against libraries) with templates.
19419 prelink_cmds=$lt_prelink_cmds
19420
19421 # Specify filename containing input files.
19422 file_list_spec=$lt_file_list_spec
19423
19424 # How to hardcode a shared library path into an executable.
19425 hardcode_action=$hardcode_action
19426
19427 # The directories searched by this compiler when creating a shared library.
19428 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19429
19430 # Dependencies to place before and after the objects being linked to
19431 # create a shared library.
19432 predep_objects=$lt_predep_objects
19433 postdep_objects=$lt_postdep_objects
19434 predeps=$lt_predeps
19435 postdeps=$lt_postdeps
19436
19437 # The library search path used internally by the compiler when linking
19438 # a shared library.
19439 compiler_lib_search_path=$lt_compiler_lib_search_path
19440
19441 # ### END LIBTOOL CONFIG
19442
19443 _LT_EOF
19444
19445 case $host_os in
19446 aix3*)
19447 cat <<\_LT_EOF >> "$cfgfile"
19448 # AIX sometimes has problems with the GCC collect2 program. For some
19449 # reason, if we set the COLLECT_NAMES environment variable, the problems
19450 # vanish in a puff of smoke.
19451 if test "X${COLLECT_NAMES+set}" != Xset; then
19452 COLLECT_NAMES=
19453 export COLLECT_NAMES
19454 fi
19455 _LT_EOF
19456 ;;
19457 esac
19458
19459
19460 ltmain="$ac_aux_dir/ltmain.sh"
19461
19462
19463 # We use sed instead of cat because bash on DJGPP gets confused if
19464 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19465 # text mode, it properly converts lines to CR/LF. This bash problem
19466 # is reportedly fixed, but why not run on old versions too?
19467 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19468 || (rm -f "$cfgfile"; exit 1)
19469
19470 case $xsi_shell in
19471 yes)
19472 cat << \_LT_EOF >> "$cfgfile"
19473
19474 # func_dirname file append nondir_replacement
19475 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19476 # otherwise set result to NONDIR_REPLACEMENT.
19477 func_dirname ()
19478 {
19479 case ${1} in
19480 */*) func_dirname_result="${1%/*}${2}" ;;
19481 * ) func_dirname_result="${3}" ;;
19482 esac
19483 }
19484
19485 # func_basename file
19486 func_basename ()
19487 {
19488 func_basename_result="${1##*/}"
19489 }
19490
19491 # func_dirname_and_basename file append nondir_replacement
19492 # perform func_basename and func_dirname in a single function
19493 # call:
19494 # dirname: Compute the dirname of FILE. If nonempty,
19495 # add APPEND to the result, otherwise set result
19496 # to NONDIR_REPLACEMENT.
19497 # value returned in "$func_dirname_result"
19498 # basename: Compute filename of FILE.
19499 # value retuned in "$func_basename_result"
19500 # Implementation must be kept synchronized with func_dirname
19501 # and func_basename. For efficiency, we do not delegate to
19502 # those functions but instead duplicate the functionality here.
19503 func_dirname_and_basename ()
19504 {
19505 case ${1} in
19506 */*) func_dirname_result="${1%/*}${2}" ;;
19507 * ) func_dirname_result="${3}" ;;
19508 esac
19509 func_basename_result="${1##*/}"
19510 }
19511
19512 # func_stripname prefix suffix name
19513 # strip PREFIX and SUFFIX off of NAME.
19514 # PREFIX and SUFFIX must not contain globbing or regex special
19515 # characters, hashes, percent signs, but SUFFIX may contain a leading
19516 # dot (in which case that matches only a dot).
19517 func_stripname ()
19518 {
19519 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19520 # positional parameters, so assign one to ordinary parameter first.
19521 func_stripname_result=${3}
19522 func_stripname_result=${func_stripname_result#"${1}"}
19523 func_stripname_result=${func_stripname_result%"${2}"}
19524 }
19525
19526 # func_opt_split
19527 func_opt_split ()
19528 {
19529 func_opt_split_opt=${1%%=*}
19530 func_opt_split_arg=${1#*=}
19531 }
19532
19533 # func_lo2o object
19534 func_lo2o ()
19535 {
19536 case ${1} in
19537 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19538 *) func_lo2o_result=${1} ;;
19539 esac
19540 }
19541
19542 # func_xform libobj-or-source
19543 func_xform ()
19544 {
19545 func_xform_result=${1%.*}.lo
19546 }
19547
19548 # func_arith arithmetic-term...
19549 func_arith ()
19550 {
19551 func_arith_result=$(( $* ))
19552 }
19553
19554 # func_len string
19555 # STRING may not start with a hyphen.
19556 func_len ()
19557 {
19558 func_len_result=${#1}
19559 }
19560
19561 _LT_EOF
19562 ;;
19563 *) # Bourne compatible functions.
19564 cat << \_LT_EOF >> "$cfgfile"
19565
19566 # func_dirname file append nondir_replacement
19567 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19568 # otherwise set result to NONDIR_REPLACEMENT.
19569 func_dirname ()
19570 {
19571 # Extract subdirectory from the argument.
19572 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19573 if test "X$func_dirname_result" = "X${1}"; then
19574 func_dirname_result="${3}"
19575 else
19576 func_dirname_result="$func_dirname_result${2}"
19577 fi
19578 }
19579
19580 # func_basename file
19581 func_basename ()
19582 {
19583 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19584 }
19585
19586
19587 # func_stripname prefix suffix name
19588 # strip PREFIX and SUFFIX off of NAME.
19589 # PREFIX and SUFFIX must not contain globbing or regex special
19590 # characters, hashes, percent signs, but SUFFIX may contain a leading
19591 # dot (in which case that matches only a dot).
19592 # func_strip_suffix prefix name
19593 func_stripname ()
19594 {
19595 case ${2} in
19596 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19597 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19598 esac
19599 }
19600
19601 # sed scripts:
19602 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19603 my_sed_long_arg='1s/^-[^=]*=//'
19604
19605 # func_opt_split
19606 func_opt_split ()
19607 {
19608 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19609 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19610 }
19611
19612 # func_lo2o object
19613 func_lo2o ()
19614 {
19615 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19616 }
19617
19618 # func_xform libobj-or-source
19619 func_xform ()
19620 {
19621 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19622 }
19623
19624 # func_arith arithmetic-term...
19625 func_arith ()
19626 {
19627 func_arith_result=`expr "$@"`
19628 }
19629
19630 # func_len string
19631 # STRING may not start with a hyphen.
19632 func_len ()
19633 {
19634 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19635 }
19636
19637 _LT_EOF
19638 esac
19639
19640 case $lt_shell_append in
19641 yes)
19642 cat << \_LT_EOF >> "$cfgfile"
19643
19644 # func_append var value
19645 # Append VALUE to the end of shell variable VAR.
19646 func_append ()
19647 {
19648 eval "$1+=\$2"
19649 }
19650 _LT_EOF
19651 ;;
19652 *)
19653 cat << \_LT_EOF >> "$cfgfile"
19654
19655 # func_append var value
19656 # Append VALUE to the end of shell variable VAR.
19657 func_append ()
19658 {
19659 eval "$1=\$$1\$2"
19660 }
19661
19662 _LT_EOF
19663 ;;
19664 esac
19665
19666
19667 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19668 || (rm -f "$cfgfile"; exit 1)
19669
19670 mv -f "$cfgfile" "$ofile" ||
19671 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19672 chmod +x "$ofile"
19673
19674
19675 cat <<_LT_EOF >> "$ofile"
19676
19677 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19678
19679 # The linker used to build libraries.
19680 LD=$lt_LD_CXX
19681
19682 # How to create reloadable object files.
19683 reload_flag=$lt_reload_flag_CXX
19684 reload_cmds=$lt_reload_cmds_CXX
19685
19686 # Commands used to build an old-style archive.
19687 old_archive_cmds=$lt_old_archive_cmds_CXX
19688
19689 # A language specific compiler.
19690 CC=$lt_compiler_CXX
19691
19692 # Is the compiler the GNU compiler?
19693 with_gcc=$GCC_CXX
19694
19695 # Compiler flag to turn off builtin functions.
19696 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19697
19698 # How to pass a linker flag through the compiler.
19699 wl=$lt_lt_prog_compiler_wl_CXX
19700
19701 # Additional compiler flags for building library objects.
19702 pic_flag=$lt_lt_prog_compiler_pic_CXX
19703
19704 # Compiler flag to prevent dynamic linking.
19705 link_static_flag=$lt_lt_prog_compiler_static_CXX
19706
19707 # Does compiler simultaneously support -c and -o options?
19708 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19709
19710 # Whether or not to add -lc for building shared libraries.
19711 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19712
19713 # Whether or not to disallow shared libs when runtime libs are static.
19714 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19715
19716 # Compiler flag to allow reflexive dlopens.
19717 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19718
19719 # Compiler flag to generate shared objects directly from archives.
19720 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19721
19722 # Whether the compiler copes with passing no objects directly.
19723 compiler_needs_object=$lt_compiler_needs_object_CXX
19724
19725 # Create an old-style archive from a shared archive.
19726 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19727
19728 # Create a temporary old-style archive to link instead of a shared archive.
19729 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19730
19731 # Commands used to build a shared archive.
19732 archive_cmds=$lt_archive_cmds_CXX
19733 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19734
19735 # Commands used to build a loadable module if different from building
19736 # a shared archive.
19737 module_cmds=$lt_module_cmds_CXX
19738 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19739
19740 # Whether we are building with GNU ld or not.
19741 with_gnu_ld=$lt_with_gnu_ld_CXX
19742
19743 # Flag that allows shared libraries with undefined symbols to be built.
19744 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19745
19746 # Flag that enforces no undefined symbols.
19747 no_undefined_flag=$lt_no_undefined_flag_CXX
19748
19749 # Flag to hardcode \$libdir into a binary during linking.
19750 # This must work even if \$libdir does not exist
19751 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19752
19753 # If ld is used when linking, flag to hardcode \$libdir into a binary
19754 # during linking. This must work even if \$libdir does not exist.
19755 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19756
19757 # Whether we need a single "-rpath" flag with a separated argument.
19758 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19759
19760 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19761 # DIR into the resulting binary.
19762 hardcode_direct=$hardcode_direct_CXX
19763
19764 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19765 # DIR into the resulting binary and the resulting library dependency is
19766 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19767 # library is relocated.
19768 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19769
19770 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19771 # into the resulting binary.
19772 hardcode_minus_L=$hardcode_minus_L_CXX
19773
19774 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19775 # into the resulting binary.
19776 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19777
19778 # Set to "yes" if building a shared library automatically hardcodes DIR
19779 # into the library and all subsequent libraries and executables linked
19780 # against it.
19781 hardcode_automatic=$hardcode_automatic_CXX
19782
19783 # Set to yes if linker adds runtime paths of dependent libraries
19784 # to runtime path list.
19785 inherit_rpath=$inherit_rpath_CXX
19786
19787 # Whether libtool must link a program against all its dependency libraries.
19788 link_all_deplibs=$link_all_deplibs_CXX
19789
19790 # Fix the shell variable \$srcfile for the compiler.
19791 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19792
19793 # Set to "yes" if exported symbols are required.
19794 always_export_symbols=$always_export_symbols_CXX
19795
19796 # The commands to list exported symbols.
19797 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19798
19799 # Symbols that should not be listed in the preloaded symbols.
19800 exclude_expsyms=$lt_exclude_expsyms_CXX
19801
19802 # Symbols that must always be exported.
19803 include_expsyms=$lt_include_expsyms_CXX
19804
19805 # Commands necessary for linking programs (against libraries) with templates.
19806 prelink_cmds=$lt_prelink_cmds_CXX
19807
19808 # Specify filename containing input files.
19809 file_list_spec=$lt_file_list_spec_CXX
19810
19811 # How to hardcode a shared library path into an executable.
19812 hardcode_action=$hardcode_action_CXX
19813
19814 # The directories searched by this compiler when creating a shared library.
19815 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19816
19817 # Dependencies to place before and after the objects being linked to
19818 # create a shared library.
19819 predep_objects=$lt_predep_objects_CXX
19820 postdep_objects=$lt_postdep_objects_CXX
19821 predeps=$lt_predeps_CXX
19822 postdeps=$lt_postdeps_CXX
19823
19824 # The library search path used internally by the compiler when linking
19825 # a shared library.
19826 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19827
19828 # ### END LIBTOOL TAG CONFIG: CXX
19829 _LT_EOF
19830
19831 ;;
19832 "default-1":C)
19833 for ac_file in $CONFIG_FILES; do
19834 # Support "outfile[:infile[:infile...]]"
19835 case "$ac_file" in
19836 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19837 esac
19838 # PO directories have a Makefile.in generated from Makefile.in.in.
19839 case "$ac_file" in */Makefile.in)
19840 # Adjust a relative srcdir.
19841 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19842 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19843 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19844 # In autoconf-2.13 it is called $ac_given_srcdir.
19845 # In autoconf-2.50 it is called $srcdir.
19846 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19847 case "$ac_given_srcdir" in
19848 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19849 /*) top_srcdir="$ac_given_srcdir" ;;
19850 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19851 esac
19852 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19853 rm -f "$ac_dir/POTFILES"
19854 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19855 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19856 POMAKEFILEDEPS="POTFILES.in"
19857 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19858 # on $ac_dir but don't depend on user-specified configuration
19859 # parameters.
19860 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19861 # The LINGUAS file contains the set of available languages.
19862 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19863 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
19864 fi
19865 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19866 # Hide the ALL_LINGUAS assigment from automake.
19867 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19868 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19869 else
19870 # The set of available languages was given in configure.ac.
19871 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19872 fi
19873 case "$ac_given_srcdir" in
19874 .) srcdirpre= ;;
19875 *) srcdirpre='$(srcdir)/' ;;
19876 esac
19877 POFILES=
19878 GMOFILES=
19879 UPDATEPOFILES=
19880 DUMMYPOFILES=
19881 for lang in $ALL_LINGUAS; do
19882 POFILES="$POFILES $srcdirpre$lang.po"
19883 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19884 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19885 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19886 done
19887 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19888 # environment variable.
19889 INST_LINGUAS=
19890 if test -n "$ALL_LINGUAS"; then
19891 for presentlang in $ALL_LINGUAS; do
19892 useit=no
19893 if test "%UNSET%" != "$LINGUAS"; then
19894 desiredlanguages="$LINGUAS"
19895 else
19896 desiredlanguages="$ALL_LINGUAS"
19897 fi
19898 for desiredlang in $desiredlanguages; do
19899 # Use the presentlang catalog if desiredlang is
19900 # a. equal to presentlang, or
19901 # b. a variant of presentlang (because in this case,
19902 # presentlang can be used as a fallback for messages
19903 # which are not translated in the desiredlang catalog).
19904 case "$desiredlang" in
19905 "$presentlang"*) useit=yes;;
19906 esac
19907 done
19908 if test $useit = yes; then
19909 INST_LINGUAS="$INST_LINGUAS $presentlang"
19910 fi
19911 done
19912 fi
19913 CATALOGS=
19914 if test -n "$INST_LINGUAS"; then
19915 for lang in $INST_LINGUAS; do
19916 CATALOGS="$CATALOGS $lang.gmo"
19917 done
19918 fi
19919 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19920 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"
19921 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19922 if test -f "$f"; then
19923 case "$f" in
19924 *.orig | *.bak | *~) ;;
19925 *) cat "$f" >> "$ac_dir/Makefile" ;;
19926 esac
19927 fi
19928 done
19929 fi
19930 ;;
19931 esac
19932 done ;;
19933
19934 esac
19935 done # for ac_tag
19936
19937
19938 as_fn_exit 0
19939 _ACEOF
19940 ac_clean_files=$ac_clean_files_save
19941
19942 test $ac_write_fail = 0 ||
19943 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19944
19945
19946 # configure is writing to config.log, and then calls config.status.
19947 # config.status does its own redirection, appending to config.log.
19948 # Unfortunately, on DOS this fails, as config.log is still kept open
19949 # by configure, so config.status won't be able to write to it; its
19950 # output is simply discarded. So we exec the FD to /dev/null,
19951 # effectively closing config.log, so it can be properly (re)opened and
19952 # appended to by config.status. When coming back to configure, we
19953 # need to make the FD available again.
19954 if test "$no_create" != yes; then
19955 ac_cs_success=:
19956 ac_config_status_args=
19957 test "$silent" = yes &&
19958 ac_config_status_args="$ac_config_status_args --quiet"
19959 exec 5>/dev/null
19960 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19961 exec 5>>config.log
19962 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19963 # would make configure fail if this is the last instruction.
19964 $ac_cs_success || as_fn_exit $?
19965 fi
19966 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19968 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19969 fi
19970
This page took 0.865529 seconds and 4 git commands to generate.