ld: Add a linker configure option --enable-relro
[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 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files='TDIRS'
775 ac_user_opts='
776 enable_option_checking
777 enable_dependency_tracking
778 enable_maintainer_mode
779 enable_shared
780 enable_static
781 with_pic
782 enable_fast_install
783 with_gnu_ld
784 enable_libtool_lock
785 enable_plugins
786 enable_largefile
787 with_lib_path
788 enable_targets
789 enable_64_bit_bfd
790 with_sysroot
791 enable_gold
792 enable_got
793 enable_compressed_debug_sections
794 enable_relro
795 enable_werror
796 enable_build_warnings
797 enable_nls
798 enable_initfini_array
799 '
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CXX
809 CXXFLAGS
810 CCC
811 CPP
812 CXXCPP
813 YACC
814 YFLAGS'
815
816
817 # Initialize some variables set by options.
818 ac_init_help=
819 ac_init_version=false
820 ac_unrecognized_opts=
821 ac_unrecognized_sep=
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
872 ac_prev=
873 continue
874 fi
875
876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
907 -datadir | --datadir | --datadi | --datad)
908 ac_prev=datadir ;;
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
911
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
919 -disable-* | --disable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=no ;;
934
935 -docdir | --docdir | --docdi | --doc | --do)
936 ac_prev=docdir ;;
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 docdir=$ac_optarg ;;
939
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 ac_prev=dvidir ;;
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 dvidir=$ac_optarg ;;
944
945 -enable-* | --enable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=\$ac_optarg ;;
960
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
969
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
973
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
980
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
985
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
991
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
998
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1003
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1008
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1015
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1020
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1027
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1032
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1036
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1039 no_create=yes ;;
1040
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1044
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1053
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1058
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1065
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1072
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1089
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1094
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1099
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1125
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1148
1149 -with-* | --with-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
1164
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
1180
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1184
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1191
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1198
1199 -*) as_fn_error "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information."
1201 ;;
1202
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1212
1213 *)
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1219 ;;
1220
1221 esac
1222 done
1223
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error "missing argument to $ac_option"
1227 fi
1228
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1235 fi
1236
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1242 do
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
1255 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1257
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1264
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1270 If a cross compiler is detected then cross compile mode will be used." >&2
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274 fi
1275
1276 ac_tool_prefix=
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279 test "$silent" = yes && exec 6>/dev/null
1280
1281
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error "pwd does not report name of working directory"
1288
1289
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1320 fi
1321 else
1322 ac_srcdir_defaulted=no
1323 fi
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1327 fi
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1331 pwd)`
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335 fi
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1339 case $srcdir in
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 esac
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1348
1349 #
1350 # Report the --help message.
1351 #
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356 \`configure' configures ld 2.26.51 to adapt to many kinds of systems.
1357
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363 Defaults for the options are specified in brackets.
1364
1365 Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1381
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1386
1387 For better control, use the options below.
1388
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409 _ACEOF
1410
1411 cat <<\_ACEOF
1412
1413 Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417
1418 System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 --target=TARGET configure for building compilers for TARGET [HOST]
1422 _ACEOF
1423 fi
1424
1425 if test -n "$ac_init_help"; then
1426 case $ac_init_help in
1427 short | recursive ) echo "Configuration of ld 2.26.51:";;
1428 esac
1429 cat <<\_ACEOF
1430
1431 Optional Features:
1432 --disable-option-checking ignore unrecognized --enable/--with options
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --disable-dependency-tracking speeds up one-time build
1436 --enable-dependency-tracking do not reject slow dependency extractors
1437 --enable-maintainer-mode enable make rules and dependencies not useful
1438 (and sometimes confusing) to the casual installer
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --disable-libtool-lock avoid locking (might break parallel builds)
1444 --enable-plugins Enable support for plugins
1445 --disable-largefile omit support for large files
1446 --enable-targets alternative target configurations
1447 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1448 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1449 --enable-got=<type> GOT handling scheme (target, single, negative,
1450 multigot)
1451 --enable-compressed-debug-sections={all,ld,none}
1452 compress debug sections by default]
1453 --enable-relro enable -z relro in ELF linker by default
1454 --enable-werror treat compile warnings as errors
1455 --enable-build-warnings enable build-time compiler warnings
1456 --disable-nls do not use Native Language Support
1457 --disable-initfini-array do not use .init_array/.fini_array sections
1458
1459 Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-pic try to use only PIC/non-PIC objects [default=use
1463 both]
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-lib-path=dir1:dir2... set default LIB_PATH
1466 --with-sysroot=DIR Search for usr/lib et al within DIR.
1467
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 CXX C++ compiler command
1477 CXXFLAGS C++ compiler flags
1478 CPP C preprocessor
1479 CXXCPP C++ preprocessor
1480 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1481 the first program found out of: `bison -y', `byacc', `yacc'.
1482 YFLAGS The list of arguments that will be passed by default to $YACC.
1483 This script will default YFLAGS to the empty string to avoid a
1484 default value of `-d' given by some make applications.
1485
1486 Use these variables to override the choices made by `configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1488
1489 Report bugs to the package provider.
1490 _ACEOF
1491 ac_status=$?
1492 fi
1493
1494 if test "$ac_init_help" = "recursive"; then
1495 # If there are subdirs, report their specific --help.
1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497 test -d "$ac_dir" ||
1498 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499 continue
1500 ac_builddir=.
1501
1502 case "$ac_dir" in
1503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *)
1505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1506 # A ".." for each directory in $ac_dir_suffix.
1507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1508 case $ac_top_builddir_sub in
1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 esac ;;
1512 esac
1513 ac_abs_top_builddir=$ac_pwd
1514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515 # for backward compatibility:
1516 ac_top_builddir=$ac_top_build_prefix
1517
1518 case $srcdir in
1519 .) # We are building in place.
1520 ac_srcdir=.
1521 ac_top_srcdir=$ac_top_builddir_sub
1522 ac_abs_top_srcdir=$ac_pwd ;;
1523 [\\/]* | ?:[\\/]* ) # Absolute name.
1524 ac_srcdir=$srcdir$ac_dir_suffix;
1525 ac_top_srcdir=$srcdir
1526 ac_abs_top_srcdir=$srcdir ;;
1527 *) # Relative name.
1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529 ac_top_srcdir=$ac_top_build_prefix$srcdir
1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531 esac
1532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533
1534 cd "$ac_dir" || { ac_status=$?; continue; }
1535 # Check for guested configure.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure" --help=recursive
1542 else
1543 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 fi || ac_status=$?
1545 cd "$ac_pwd" || { ac_status=$?; break; }
1546 done
1547 fi
1548
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1551 cat <<\_ACEOF
1552 ld configure 2.26.51
1553 generated by GNU Autoconf 2.64
1554
1555 Copyright (C) 2009 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1558 _ACEOF
1559 exit
1560 fi
1561
1562 ## ------------------------ ##
1563 ## Autoconf initialization. ##
1564 ## ------------------------ ##
1565
1566 # ac_fn_c_try_compile LINENO
1567 # --------------------------
1568 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_compile ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext
1573 if { { ac_try="$ac_compile"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_compile") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest.$ac_objext; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598 fi
1599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1600 return $ac_retval
1601
1602 } # ac_fn_c_try_compile
1603
1604 # ac_fn_c_try_link LINENO
1605 # -----------------------
1606 # Try to link conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_link ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext conftest$ac_exeext
1611 if { { ac_try="$ac_link"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_link") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest$ac_exeext && {
1630 test "$cross_compiling" = yes ||
1631 $as_test_x conftest$ac_exeext
1632 }; then :
1633 ac_retval=0
1634 else
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639 fi
1640 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1641 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1642 # interfere with the next link command; also delete a directory that is
1643 # left behind by Apple's compiler. We do this before executing the actions.
1644 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 return $ac_retval
1647
1648 } # ac_fn_c_try_link
1649
1650 # ac_fn_cxx_try_compile LINENO
1651 # ----------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_cxx_try_compile ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_cxx_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 return $ac_retval
1685
1686 } # ac_fn_cxx_try_compile
1687
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_cpp ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } >/dev/null && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 return $ac_retval
1722
1723 } # ac_fn_c_try_cpp
1724
1725 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728 # the include files in INCLUDES and setting the cache variable VAR
1729 # accordingly.
1730 ac_fn_c_check_header_mongrel ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737 $as_echo_n "(cached) " >&6
1738 fi
1739 eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 else
1743 # Is the header compilable?
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745 $as_echo_n "checking $2 usability... " >&6; }
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 $4
1749 #include <$2>
1750 _ACEOF
1751 if ac_fn_c_try_compile "$LINENO"; then :
1752 ac_header_compiler=yes
1753 else
1754 ac_header_compiler=no
1755 fi
1756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758 $as_echo "$ac_header_compiler" >&6; }
1759
1760 # Is the header present?
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762 $as_echo_n "checking $2 presence... " >&6; }
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 #include <$2>
1766 _ACEOF
1767 if ac_fn_c_try_cpp "$LINENO"; then :
1768 ac_header_preproc=yes
1769 else
1770 ac_header_preproc=no
1771 fi
1772 rm -f conftest.err conftest.$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774 $as_echo "$ac_header_preproc" >&6; }
1775
1776 # So? What about this header?
1777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778 yes:no: )
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783 ;;
1784 no:yes:* )
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1788 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1792 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 ;;
1796 esac
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 $as_echo_n "(cached) " >&6
1801 else
1802 eval "$3=\$ac_header_compiler"
1803 fi
1804 eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1807 fi
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
1810 } # ac_fn_c_check_header_mongrel
1811
1812 # ac_fn_c_try_run LINENO
1813 # ----------------------
1814 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815 # that executables *can* be run.
1816 ac_fn_c_try_run ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if { { ac_try="$ac_link"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_link") 2>&5
1827 ac_status=$?
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830 { { case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_try") 2>&5
1837 ac_status=$?
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; }; }; then :
1840 ac_retval=0
1841 else
1842 $as_echo "$as_me: program exited with status $ac_status" >&5
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1845
1846 ac_retval=$ac_status
1847 fi
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 return $ac_retval
1851
1852 } # ac_fn_c_try_run
1853
1854 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855 # -------------------------------------------------------
1856 # Tests whether HEADER exists and can be compiled using the include files in
1857 # INCLUDES, setting the cache variable VAR accordingly.
1858 ac_fn_c_check_header_compile ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 $4
1869 #include <$2>
1870 _ACEOF
1871 if ac_fn_c_try_compile "$LINENO"; then :
1872 eval "$3=yes"
1873 else
1874 eval "$3=no"
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 fi
1878 eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882
1883 } # ac_fn_c_check_header_compile
1884
1885 # ac_fn_c_check_func LINENO FUNC VAR
1886 # ----------------------------------
1887 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1888 ac_fn_c_check_func ()
1889 {
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 $as_echo_n "(cached) " >&6
1895 else
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1900 #define $2 innocuous_$2
1901
1902 /* System header to define __stub macros and hopefully few prototypes,
1903 which can conflict with char $2 (); below.
1904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905 <limits.h> exists even on freestanding compilers. */
1906
1907 #ifdef __STDC__
1908 # include <limits.h>
1909 #else
1910 # include <assert.h>
1911 #endif
1912
1913 #undef $2
1914
1915 /* Override any GCC internal prototype to avoid an error.
1916 Use char because int might match the return type of a GCC
1917 builtin and then its argument prototype would still apply. */
1918 #ifdef __cplusplus
1919 extern "C"
1920 #endif
1921 char $2 ();
1922 /* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925 #if defined __stub_$2 || defined __stub___$2
1926 choke me
1927 #endif
1928
1929 int
1930 main ()
1931 {
1932 return $2 ();
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_link "$LINENO"; then :
1938 eval "$3=yes"
1939 else
1940 eval "$3=no"
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext \
1943 conftest$ac_exeext conftest.$ac_ext
1944 fi
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949
1950 } # ac_fn_c_check_func
1951
1952 # ac_fn_cxx_try_cpp LINENO
1953 # ------------------------
1954 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_cxx_try_cpp ()
1956 {
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 if { { ac_try="$ac_cpp conftest.$ac_ext"
1959 case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1966 ac_status=$?
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1971 fi
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } >/dev/null && {
1974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1975 test ! -s conftest.err
1976 }; then :
1977 ac_retval=0
1978 else
1979 $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1981
1982 ac_retval=1
1983 fi
1984 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985 return $ac_retval
1986
1987 } # ac_fn_cxx_try_cpp
1988
1989 # ac_fn_cxx_try_link LINENO
1990 # -------------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded.
1992 ac_fn_cxx_try_link ()
1993 {
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 rm -f conftest.$ac_objext conftest$ac_exeext
1996 if { { ac_try="$ac_link"
1997 case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>conftest.err
2004 ac_status=$?
2005 if test -s conftest.err; then
2006 grep -v '^ *+' conftest.err >conftest.er1
2007 cat conftest.er1 >&5
2008 mv -f conftest.er1 conftest.err
2009 fi
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } && {
2012 test -z "$ac_cxx_werror_flag" ||
2013 test ! -s conftest.err
2014 } && test -s conftest$ac_exeext && {
2015 test "$cross_compiling" = yes ||
2016 $as_test_x conftest$ac_exeext
2017 }; then :
2018 ac_retval=0
2019 else
2020 $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023 ac_retval=1
2024 fi
2025 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027 # interfere with the next link command; also delete a directory that is
2028 # left behind by Apple's compiler. We do this before executing the actions.
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031 return $ac_retval
2032
2033 } # ac_fn_cxx_try_link
2034
2035 # ac_fn_c_check_decl LINENO SYMBOL VAR
2036 # ------------------------------------
2037 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2038 ac_fn_c_check_decl ()
2039 {
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 as_decl_name=`echo $2|sed 's/ *(.*//'`
2042 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2044 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2045 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2046 $as_echo_n "(cached) " >&6
2047 else
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2050 $4
2051 int
2052 main ()
2053 {
2054 #ifndef $as_decl_name
2055 #ifdef __cplusplus
2056 (void) $as_decl_use;
2057 #else
2058 (void) $as_decl_name;
2059 #endif
2060 #endif
2061
2062 ;
2063 return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067 eval "$3=yes"
2068 else
2069 eval "$3=no"
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 fi
2073 eval ac_res=\$$3
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077
2078 } # ac_fn_c_check_decl
2079
2080 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2081 # --------------------------------------------
2082 # Tries to find the compile-time value of EXPR in a program that includes
2083 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2084 # computed
2085 ac_fn_c_compute_int ()
2086 {
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if test "$cross_compiling" = yes; then
2089 # Depending upon the size, compute the lo and hi bounds.
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 int
2094 main ()
2095 {
2096 static int test_array [1 - 2 * !(($2) >= 0)];
2097 test_array [0] = 0
2098
2099 ;
2100 return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104 ac_lo=0 ac_mid=0
2105 while :; do
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2108 $4
2109 int
2110 main ()
2111 {
2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113 test_array [0] = 0
2114
2115 ;
2116 return 0;
2117 }
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_hi=$ac_mid; break
2121 else
2122 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2123 if test $ac_lo -le $ac_mid; then
2124 ac_lo= ac_hi=
2125 break
2126 fi
2127 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 done
2131 else
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2134 $4
2135 int
2136 main ()
2137 {
2138 static int test_array [1 - 2 * !(($2) < 0)];
2139 test_array [0] = 0
2140
2141 ;
2142 return 0;
2143 }
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_hi=-1 ac_mid=-1
2147 while :; do
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2150 $4
2151 int
2152 main ()
2153 {
2154 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2155 test_array [0] = 0
2156
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 ac_lo=$ac_mid; break
2163 else
2164 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2165 if test $ac_mid -le $ac_hi; then
2166 ac_lo= ac_hi=
2167 break
2168 fi
2169 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 done
2173 else
2174 ac_lo= ac_hi=
2175 fi
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 fi
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 # Binary search between lo and hi bounds.
2180 while test "x$ac_lo" != "x$ac_hi"; do
2181 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 $4
2185 int
2186 main ()
2187 {
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189 test_array [0] = 0
2190
2191 ;
2192 return 0;
2193 }
2194 _ACEOF
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196 ac_hi=$ac_mid
2197 else
2198 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2199 fi
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 done
2202 case $ac_lo in #((
2203 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2204 '') ac_retval=1 ;;
2205 esac
2206 else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $4
2210 static long int longval () { return $2; }
2211 static unsigned long int ulongval () { return $2; }
2212 #include <stdio.h>
2213 #include <stdlib.h>
2214 int
2215 main ()
2216 {
2217
2218 FILE *f = fopen ("conftest.val", "w");
2219 if (! f)
2220 return 1;
2221 if (($2) < 0)
2222 {
2223 long int i = longval ();
2224 if (i != ($2))
2225 return 1;
2226 fprintf (f, "%ld", i);
2227 }
2228 else
2229 {
2230 unsigned long int i = ulongval ();
2231 if (i != ($2))
2232 return 1;
2233 fprintf (f, "%lu", i);
2234 }
2235 /* Do not output a trailing newline, as this causes \r\n confusion
2236 on some platforms. */
2237 return ferror (f) || fclose (f) != 0;
2238
2239 ;
2240 return 0;
2241 }
2242 _ACEOF
2243 if ac_fn_c_try_run "$LINENO"; then :
2244 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2245 else
2246 ac_retval=1
2247 fi
2248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2249 conftest.$ac_objext conftest.beam conftest.$ac_ext
2250 rm -f conftest.val
2251
2252 fi
2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254 return $ac_retval
2255
2256 } # ac_fn_c_compute_int
2257 cat >config.log <<_ACEOF
2258 This file contains any messages produced by compilers while
2259 running configure, to aid debugging if configure makes a mistake.
2260
2261 It was created by ld $as_me 2.26.51, which was
2262 generated by GNU Autoconf 2.64. Invocation command line was
2263
2264 $ $0 $@
2265
2266 _ACEOF
2267 exec 5>>config.log
2268 {
2269 cat <<_ASUNAME
2270 ## --------- ##
2271 ## Platform. ##
2272 ## --------- ##
2273
2274 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2279
2280 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2282
2283 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2284 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2285 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2287 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2288 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2289 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2290
2291 _ASUNAME
2292
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 $as_echo "PATH: $as_dir"
2299 done
2300 IFS=$as_save_IFS
2301
2302 } >&5
2303
2304 cat >&5 <<_ACEOF
2305
2306
2307 ## ----------- ##
2308 ## Core tests. ##
2309 ## ----------- ##
2310
2311 _ACEOF
2312
2313
2314 # Keep a trace of the command line.
2315 # Strip out --no-create and --no-recursion so they do not pile up.
2316 # Strip out --silent because we don't want to record it for future runs.
2317 # Also quote any args containing shell meta-characters.
2318 # Make two passes to allow for proper duplicate-argument suppression.
2319 ac_configure_args=
2320 ac_configure_args0=
2321 ac_configure_args1=
2322 ac_must_keep_next=false
2323 for ac_pass in 1 2
2324 do
2325 for ac_arg
2326 do
2327 case $ac_arg in
2328 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330 | -silent | --silent | --silen | --sile | --sil)
2331 continue ;;
2332 *\'*)
2333 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334 esac
2335 case $ac_pass in
2336 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2337 2)
2338 as_fn_append ac_configure_args1 " '$ac_arg'"
2339 if test $ac_must_keep_next = true; then
2340 ac_must_keep_next=false # Got value, back to normal.
2341 else
2342 case $ac_arg in
2343 *=* | --config-cache | -C | -disable-* | --disable-* \
2344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346 | -with-* | --with-* | -without-* | --without-* | --x)
2347 case "$ac_configure_args0 " in
2348 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349 esac
2350 ;;
2351 -* ) ac_must_keep_next=true ;;
2352 esac
2353 fi
2354 as_fn_append ac_configure_args " '$ac_arg'"
2355 ;;
2356 esac
2357 done
2358 done
2359 { ac_configure_args0=; unset ac_configure_args0;}
2360 { ac_configure_args1=; unset ac_configure_args1;}
2361
2362 # When interrupted or exit'd, cleanup temporary files, and complete
2363 # config.log. We remove comments because anyway the quotes in there
2364 # would cause problems or look ugly.
2365 # WARNING: Use '\'' to represent an apostrophe within the trap.
2366 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367 trap 'exit_status=$?
2368 # Save into config.log some information that might help in debugging.
2369 {
2370 echo
2371
2372 cat <<\_ASBOX
2373 ## ---------------- ##
2374 ## Cache variables. ##
2375 ## ---------------- ##
2376 _ASBOX
2377 echo
2378 # The following way of writing the cache mishandles newlines in values,
2379 (
2380 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2381 eval ac_val=\$$ac_var
2382 case $ac_val in #(
2383 *${as_nl}*)
2384 case $ac_var in #(
2385 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2386 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2387 esac
2388 case $ac_var in #(
2389 _ | IFS | as_nl) ;; #(
2390 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2391 *) { eval $ac_var=; unset $ac_var;} ;;
2392 esac ;;
2393 esac
2394 done
2395 (set) 2>&1 |
2396 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2397 *${as_nl}ac_space=\ *)
2398 sed -n \
2399 "s/'\''/'\''\\\\'\'''\''/g;
2400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2401 ;; #(
2402 *)
2403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2404 ;;
2405 esac |
2406 sort
2407 )
2408 echo
2409
2410 cat <<\_ASBOX
2411 ## ----------------- ##
2412 ## Output variables. ##
2413 ## ----------------- ##
2414 _ASBOX
2415 echo
2416 for ac_var in $ac_subst_vars
2417 do
2418 eval ac_val=\$$ac_var
2419 case $ac_val in
2420 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2421 esac
2422 $as_echo "$ac_var='\''$ac_val'\''"
2423 done | sort
2424 echo
2425
2426 if test -n "$ac_subst_files"; then
2427 cat <<\_ASBOX
2428 ## ------------------- ##
2429 ## File substitutions. ##
2430 ## ------------------- ##
2431 _ASBOX
2432 echo
2433 for ac_var in $ac_subst_files
2434 do
2435 eval ac_val=\$$ac_var
2436 case $ac_val in
2437 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2438 esac
2439 $as_echo "$ac_var='\''$ac_val'\''"
2440 done | sort
2441 echo
2442 fi
2443
2444 if test -s confdefs.h; then
2445 cat <<\_ASBOX
2446 ## ----------- ##
2447 ## confdefs.h. ##
2448 ## ----------- ##
2449 _ASBOX
2450 echo
2451 cat confdefs.h
2452 echo
2453 fi
2454 test "$ac_signal" != 0 &&
2455 $as_echo "$as_me: caught signal $ac_signal"
2456 $as_echo "$as_me: exit $exit_status"
2457 } >&5
2458 rm -f core *.core core.conftest.* &&
2459 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2460 exit $exit_status
2461 ' 0
2462 for ac_signal in 1 2 13 15; do
2463 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2464 done
2465 ac_signal=0
2466
2467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2468 rm -f -r conftest* confdefs.h
2469
2470 $as_echo "/* confdefs.h */" > confdefs.h
2471
2472 # Predefined preprocessor variables.
2473
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_NAME "$PACKAGE_NAME"
2476 _ACEOF
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2480 _ACEOF
2481
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2484 _ACEOF
2485
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_STRING "$PACKAGE_STRING"
2488 _ACEOF
2489
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2492 _ACEOF
2493
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_URL "$PACKAGE_URL"
2496 _ACEOF
2497
2498
2499 # Let the site file select an alternate cache file if it wants to.
2500 # Prefer an explicitly selected file to automatically selected ones.
2501 ac_site_file1=NONE
2502 ac_site_file2=NONE
2503 if test -n "$CONFIG_SITE"; then
2504 ac_site_file1=$CONFIG_SITE
2505 elif test "x$prefix" != xNONE; then
2506 ac_site_file1=$prefix/share/config.site
2507 ac_site_file2=$prefix/etc/config.site
2508 else
2509 ac_site_file1=$ac_default_prefix/share/config.site
2510 ac_site_file2=$ac_default_prefix/etc/config.site
2511 fi
2512 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2513 do
2514 test "x$ac_site_file" = xNONE && continue
2515 if test -r "$ac_site_file"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2517 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2518 sed 's/^/| /' "$ac_site_file" >&5
2519 . "$ac_site_file"
2520 fi
2521 done
2522
2523 if test -r "$cache_file"; then
2524 # Some versions of bash will fail to source /dev/null (special
2525 # files actually), so we avoid doing that.
2526 if test -f "$cache_file"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2528 $as_echo "$as_me: loading cache $cache_file" >&6;}
2529 case $cache_file in
2530 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2531 *) . "./$cache_file";;
2532 esac
2533 fi
2534 else
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2536 $as_echo "$as_me: creating cache $cache_file" >&6;}
2537 >$cache_file
2538 fi
2539
2540 # Check that the precious variables saved in the cache have kept the same
2541 # value.
2542 ac_cache_corrupted=false
2543 for ac_var in $ac_precious_vars; do
2544 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2545 eval ac_new_set=\$ac_env_${ac_var}_set
2546 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2547 eval ac_new_val=\$ac_env_${ac_var}_value
2548 case $ac_old_set,$ac_new_set in
2549 set,)
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2551 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2552 ac_cache_corrupted=: ;;
2553 ,set)
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2555 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2556 ac_cache_corrupted=: ;;
2557 ,);;
2558 *)
2559 if test "x$ac_old_val" != "x$ac_new_val"; then
2560 # differences in whitespace do not lead to failure.
2561 ac_old_val_w=`echo x $ac_old_val`
2562 ac_new_val_w=`echo x $ac_new_val`
2563 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2565 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2566 ac_cache_corrupted=:
2567 else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2569 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2570 eval $ac_var=\$ac_old_val
2571 fi
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2573 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2575 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2576 fi;;
2577 esac
2578 # Pass precious variables to config.status.
2579 if test "$ac_new_set" = set; then
2580 case $ac_new_val in
2581 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2582 *) ac_arg=$ac_var=$ac_new_val ;;
2583 esac
2584 case " $ac_configure_args " in
2585 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2586 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2587 esac
2588 fi
2589 done
2590 if $ac_cache_corrupted; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2594 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2595 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2596 fi
2597 ## -------------------- ##
2598 ## Main body of script. ##
2599 ## -------------------- ##
2600
2601 ac_ext=c
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606
2607
2608
2609
2610
2611
2612
2613 ac_aux_dir=
2614 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2615 for ac_t in install-sh install.sh shtool; do
2616 if test -f "$ac_dir/$ac_t"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/$ac_t -c"
2619 break 2
2620 fi
2621 done
2622 done
2623 if test -z "$ac_aux_dir"; then
2624 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2625 fi
2626
2627 # These three variables are undocumented and unsupported,
2628 # and are intended to be withdrawn in a future Autoconf release.
2629 # They can cause serious problems if a builder's source tree is in a directory
2630 # whose full name contains unusual characters.
2631 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2632 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2633 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2634
2635
2636 # Make sure we can run config.sub.
2637 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2638 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2641 $as_echo_n "checking build system type... " >&6; }
2642 if test "${ac_cv_build+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 ac_build_alias=$build_alias
2646 test "x$ac_build_alias" = x &&
2647 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2648 test "x$ac_build_alias" = x &&
2649 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2650 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2651 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2652
2653 fi
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2655 $as_echo "$ac_cv_build" >&6; }
2656 case $ac_cv_build in
2657 *-*-*) ;;
2658 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2659 esac
2660 build=$ac_cv_build
2661 ac_save_IFS=$IFS; IFS='-'
2662 set x $ac_cv_build
2663 shift
2664 build_cpu=$1
2665 build_vendor=$2
2666 shift; shift
2667 # Remember, the first character of IFS is used to create $*,
2668 # except with old shells:
2669 build_os=$*
2670 IFS=$ac_save_IFS
2671 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2672
2673
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2675 $as_echo_n "checking host system type... " >&6; }
2676 if test "${ac_cv_host+set}" = set; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if test "x$host_alias" = x; then
2680 ac_cv_host=$ac_cv_build
2681 else
2682 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2683 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2684 fi
2685
2686 fi
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2688 $as_echo "$ac_cv_host" >&6; }
2689 case $ac_cv_host in
2690 *-*-*) ;;
2691 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2692 esac
2693 host=$ac_cv_host
2694 ac_save_IFS=$IFS; IFS='-'
2695 set x $ac_cv_host
2696 shift
2697 host_cpu=$1
2698 host_vendor=$2
2699 shift; shift
2700 # Remember, the first character of IFS is used to create $*,
2701 # except with old shells:
2702 host_os=$*
2703 IFS=$ac_save_IFS
2704 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2705
2706
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2708 $as_echo_n "checking target system type... " >&6; }
2709 if test "${ac_cv_target+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test "x$target_alias" = x; then
2713 ac_cv_target=$ac_cv_host
2714 else
2715 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2716 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2717 fi
2718
2719 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2721 $as_echo "$ac_cv_target" >&6; }
2722 case $ac_cv_target in
2723 *-*-*) ;;
2724 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2725 esac
2726 target=$ac_cv_target
2727 ac_save_IFS=$IFS; IFS='-'
2728 set x $ac_cv_target
2729 shift
2730 target_cpu=$1
2731 target_vendor=$2
2732 shift; shift
2733 # Remember, the first character of IFS is used to create $*,
2734 # except with old shells:
2735 target_os=$*
2736 IFS=$ac_save_IFS
2737 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2738
2739
2740 # The aliases save the names the user supplied, while $host etc.
2741 # will get canonicalized.
2742 test -n "$target_alias" &&
2743 test "$program_prefix$program_suffix$program_transform_name" = \
2744 NONENONEs,x,x, &&
2745 program_prefix=${target_alias}-
2746
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 if test -n "$ac_tool_prefix"; then
2753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2754 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if test "${ac_cv_prog_CC+set}" = set; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774 done
2775 done
2776 IFS=$as_save_IFS
2777
2778 fi
2779 fi
2780 CC=$ac_cv_prog_CC
2781 if test -n "$CC"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2783 $as_echo "$CC" >&6; }
2784 else
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2787 fi
2788
2789
2790 fi
2791 if test -z "$ac_cv_prog_CC"; then
2792 ac_ct_CC=$CC
2793 # Extract the first word of "gcc", so it can be a program name with args.
2794 set dummy gcc; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2798 $as_echo_n "(cached) " >&6
2799 else
2800 if test -n "$ac_ct_CC"; then
2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_ac_ct_CC="gcc"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814 done
2815 done
2816 IFS=$as_save_IFS
2817
2818 fi
2819 fi
2820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821 if test -n "$ac_ct_CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2823 $as_echo "$ac_ct_CC" >&6; }
2824 else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 fi
2828
2829 if test "x$ac_ct_CC" = x; then
2830 CC=""
2831 else
2832 case $cross_compiling:$ac_tool_warned in
2833 yes:)
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2836 ac_tool_warned=yes ;;
2837 esac
2838 CC=$ac_ct_CC
2839 fi
2840 else
2841 CC="$ac_cv_prog_CC"
2842 fi
2843
2844 if test -z "$CC"; then
2845 if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2847 set dummy ${ac_tool_prefix}cc; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if test "${ac_cv_prog_CC+set}" = set; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_prog_CC="${ac_tool_prefix}cc"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867 done
2868 done
2869 IFS=$as_save_IFS
2870
2871 fi
2872 fi
2873 CC=$ac_cv_prog_CC
2874 if test -n "$CC"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876 $as_echo "$CC" >&6; }
2877 else
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2880 fi
2881
2882
2883 fi
2884 fi
2885 if test -z "$CC"; then
2886 # Extract the first word of "cc", so it can be a program name with args.
2887 set dummy cc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_CC+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2895 else
2896 ac_prog_rejected=no
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2905 ac_prog_rejected=yes
2906 continue
2907 fi
2908 ac_cv_prog_CC="cc"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2911 fi
2912 done
2913 done
2914 IFS=$as_save_IFS
2915
2916 if test $ac_prog_rejected = yes; then
2917 # We found a bogon in the path, so make sure we never use it.
2918 set dummy $ac_cv_prog_CC
2919 shift
2920 if test $# != 0; then
2921 # We chose a different compiler from the bogus one.
2922 # However, it has the same basename, so the bogon will be chosen
2923 # first if we set CC to just the basename; use the full file name.
2924 shift
2925 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2926 fi
2927 fi
2928 fi
2929 fi
2930 CC=$ac_cv_prog_CC
2931 if test -n "$CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939
2940 fi
2941 if test -z "$CC"; then
2942 if test -n "$ac_tool_prefix"; then
2943 for ac_prog in cl.exe
2944 do
2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if test "${ac_cv_prog_CC+set}" = set; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966 done
2967 done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 CC=$ac_cv_prog_CC
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2976 else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982 test -n "$CC" && break
2983 done
2984 fi
2985 if test -z "$CC"; then
2986 ac_ct_CC=$CC
2987 for ac_prog in cl.exe
2988 do
2989 # Extract the first word of "$ac_prog", so it can be a program name with args.
2990 set dummy $ac_prog; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_ac_ct_CC="$ac_prog"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010 done
3011 done
3012 IFS=$as_save_IFS
3013
3014 fi
3015 fi
3016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017 if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3019 $as_echo "$ac_ct_CC" >&6; }
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 fi
3024
3025
3026 test -n "$ac_ct_CC" && break
3027 done
3028
3029 if test "x$ac_ct_CC" = x; then
3030 CC=""
3031 else
3032 case $cross_compiling:$ac_tool_warned in
3033 yes:)
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036 ac_tool_warned=yes ;;
3037 esac
3038 CC=$ac_ct_CC
3039 fi
3040 fi
3041
3042 fi
3043
3044
3045 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 as_fn_error "no acceptable C compiler found in \$PATH
3048 See \`config.log' for more details." "$LINENO" 5; }
3049
3050 # Provide some information about the compiler.
3051 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3052 set X $ac_compile
3053 ac_compiler=$2
3054 for ac_option in --version -v -V -qversion; do
3055 { { ac_try="$ac_compiler $ac_option >&5"
3056 case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059 esac
3060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061 $as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3063 ac_status=$?
3064 if test -s conftest.err; then
3065 sed '10a\
3066 ... rest of stderr output deleted ...
3067 10q' conftest.err >conftest.er1
3068 cat conftest.er1 >&5
3069 rm -f conftest.er1 conftest.err
3070 fi
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }
3073 done
3074
3075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076 /* end confdefs.h. */
3077
3078 int
3079 main ()
3080 {
3081
3082 ;
3083 return 0;
3084 }
3085 _ACEOF
3086 ac_clean_files_save=$ac_clean_files
3087 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3088 # Try to create an executable without -o first, disregard a.out.
3089 # It will help us diagnose broken compilers, and finding out an intuition
3090 # of exeext.
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3092 $as_echo_n "checking for C compiler default output file name... " >&6; }
3093 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3094
3095 # The possible output files:
3096 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3097
3098 ac_rmfiles=
3099 for ac_file in $ac_files
3100 do
3101 case $ac_file in
3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3103 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3104 esac
3105 done
3106 rm -f $ac_rmfiles
3107
3108 if { { ac_try="$ac_link_default"
3109 case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112 esac
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_link_default") 2>&5
3116 ac_status=$?
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
3119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3120 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3121 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3122 # so that the user can short-circuit this test for compilers unknown to
3123 # Autoconf.
3124 for ac_file in $ac_files ''
3125 do
3126 test -f "$ac_file" || continue
3127 case $ac_file in
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3129 ;;
3130 [ab].out )
3131 # We found the default executable, but exeext='' is most
3132 # certainly right.
3133 break;;
3134 *.* )
3135 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3136 then :; else
3137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138 fi
3139 # We set ac_cv_exeext here because the later test for it is not
3140 # safe: cross compilers may not add the suffix if given an `-o'
3141 # argument, so we may need to know it at that point already.
3142 # Even if this section looks crufty: it has the advantage of
3143 # actually working.
3144 break;;
3145 * )
3146 break;;
3147 esac
3148 done
3149 test "$ac_cv_exeext" = no && ac_cv_exeext=
3150
3151 else
3152 ac_file=''
3153 fi
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155 $as_echo "$ac_file" >&6; }
3156 if test -z "$ac_file"; then :
3157 $as_echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 { as_fn_set_status 77
3163 as_fn_error "C compiler cannot create executables
3164 See \`config.log' for more details." "$LINENO" 5; }; }
3165 fi
3166 ac_exeext=$ac_cv_exeext
3167
3168 # Check that the compiler produces executables we can run. If not, either
3169 # the compiler is broken, or we cross compile.
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3171 $as_echo_n "checking whether the C compiler works... " >&6; }
3172 # If not cross compiling, check that we can run a simple program.
3173 if test "$cross_compiling" != yes; then
3174 if { ac_try='./$ac_file'
3175 { { case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180 $as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_try") 2>&5
3182 ac_status=$?
3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184 test $ac_status = 0; }; }; then
3185 cross_compiling=no
3186 else
3187 if test "$cross_compiling" = maybe; then
3188 cross_compiling=yes
3189 else
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error "cannot run C compiled programs.
3193 If you meant to cross compile, use \`--host'.
3194 See \`config.log' for more details." "$LINENO" 5; }
3195 fi
3196 fi
3197 fi
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199 $as_echo "yes" >&6; }
3200
3201 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3202 ac_clean_files=$ac_clean_files_save
3203 # Check that the compiler produces executables we can run. If not, either
3204 # the compiler is broken, or we cross compile.
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3206 $as_echo_n "checking whether we are cross compiling... " >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3208 $as_echo "$cross_compiling" >&6; }
3209
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211 $as_echo_n "checking for suffix of executables... " >&6; }
3212 if { { ac_try="$ac_link"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
3220 ac_status=$?
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225 # work properly (i.e., refer to `conftest.exe'), while it won't with
3226 # `rm'.
3227 for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 break;;
3233 * ) break;;
3234 esac
3235 done
3236 else
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error "cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details." "$LINENO" 5; }
3241 fi
3242 rm -f conftest$ac_cv_exeext
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244 $as_echo "$ac_cv_exeext" >&6; }
3245
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3248 ac_exeext=$EXEEXT
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3250 $as_echo_n "checking for suffix of object files... " >&6; }
3251 if test "${ac_cv_objext+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3256
3257 int
3258 main ()
3259 {
3260
3261 ;
3262 return 0;
3263 }
3264 _ACEOF
3265 rm -f conftest.o conftest.obj
3266 if { { ac_try="$ac_compile"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_compile") 2>&5
3274 ac_status=$?
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; then :
3277 for ac_file in conftest.o conftest.obj conftest.*; do
3278 test -f "$ac_file" || continue;
3279 case $ac_file in
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3282 break;;
3283 esac
3284 done
3285 else
3286 $as_echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3288
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error "cannot compute suffix of object files: cannot compile
3292 See \`config.log' for more details." "$LINENO" 5; }
3293 fi
3294 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3297 $as_echo "$ac_cv_objext" >&6; }
3298 OBJEXT=$ac_cv_objext
3299 ac_objext=$OBJEXT
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3301 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3302 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3307
3308 int
3309 main ()
3310 {
3311 #ifndef __GNUC__
3312 choke me
3313 #endif
3314
3315 ;
3316 return 0;
3317 }
3318 _ACEOF
3319 if ac_fn_c_try_compile "$LINENO"; then :
3320 ac_compiler_gnu=yes
3321 else
3322 ac_compiler_gnu=no
3323 fi
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3326
3327 fi
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3329 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3330 if test $ac_compiler_gnu = yes; then
3331 GCC=yes
3332 else
3333 GCC=
3334 fi
3335 ac_test_CFLAGS=${CFLAGS+set}
3336 ac_save_CFLAGS=$CFLAGS
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3338 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3339 if test "${ac_cv_prog_cc_g+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3341 else
3342 ac_save_c_werror_flag=$ac_c_werror_flag
3343 ac_c_werror_flag=yes
3344 ac_cv_prog_cc_g=no
3345 CFLAGS="-g"
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3348
3349 int
3350 main ()
3351 {
3352
3353 ;
3354 return 0;
3355 }
3356 _ACEOF
3357 if ac_fn_c_try_compile "$LINENO"; then :
3358 ac_cv_prog_cc_g=yes
3359 else
3360 CFLAGS=""
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3363
3364 int
3365 main ()
3366 {
3367
3368 ;
3369 return 0;
3370 }
3371 _ACEOF
3372 if ac_fn_c_try_compile "$LINENO"; then :
3373
3374 else
3375 ac_c_werror_flag=$ac_save_c_werror_flag
3376 CFLAGS="-g"
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3379
3380 int
3381 main ()
3382 {
3383
3384 ;
3385 return 0;
3386 }
3387 _ACEOF
3388 if ac_fn_c_try_compile "$LINENO"; then :
3389 ac_cv_prog_cc_g=yes
3390 fi
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 fi
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394 fi
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 ac_c_werror_flag=$ac_save_c_werror_flag
3397 fi
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3399 $as_echo "$ac_cv_prog_cc_g" >&6; }
3400 if test "$ac_test_CFLAGS" = set; then
3401 CFLAGS=$ac_save_CFLAGS
3402 elif test $ac_cv_prog_cc_g = yes; then
3403 if test "$GCC" = yes; then
3404 CFLAGS="-g -O2"
3405 else
3406 CFLAGS="-g"
3407 fi
3408 else
3409 if test "$GCC" = yes; then
3410 CFLAGS="-O2"
3411 else
3412 CFLAGS=
3413 fi
3414 fi
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3416 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3417 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 ac_cv_prog_cc_c89=no
3421 ac_save_CC=$CC
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424 #include <stdarg.h>
3425 #include <stdio.h>
3426 #include <sys/types.h>
3427 #include <sys/stat.h>
3428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3429 struct buf { int x; };
3430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3431 static char *e (p, i)
3432 char **p;
3433 int i;
3434 {
3435 return p[i];
3436 }
3437 static char *f (char * (*g) (char **, int), char **p, ...)
3438 {
3439 char *s;
3440 va_list v;
3441 va_start (v,p);
3442 s = g (p, va_arg (v,int));
3443 va_end (v);
3444 return s;
3445 }
3446
3447 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3448 function prototypes and stuff, but not '\xHH' hex character constants.
3449 These don't provoke an error unfortunately, instead are silently treated
3450 as 'x'. The following induces an error, until -std is added to get
3451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3452 array size at least. It's necessary to write '\x00'==0 to get something
3453 that's true only with -std. */
3454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3455
3456 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3457 inside strings and character constants. */
3458 #define FOO(x) 'x'
3459 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3460
3461 int test (int i, double x);
3462 struct s1 {int (*f) (int a);};
3463 struct s2 {int (*f) (double a);};
3464 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3465 int argc;
3466 char **argv;
3467 int
3468 main ()
3469 {
3470 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3476 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3477 do
3478 CC="$ac_save_CC $ac_arg"
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480 ac_cv_prog_cc_c89=$ac_arg
3481 fi
3482 rm -f core conftest.err conftest.$ac_objext
3483 test "x$ac_cv_prog_cc_c89" != "xno" && break
3484 done
3485 rm -f conftest.$ac_ext
3486 CC=$ac_save_CC
3487
3488 fi
3489 # AC_CACHE_VAL
3490 case "x$ac_cv_prog_cc_c89" in
3491 x)
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3493 $as_echo "none needed" >&6; } ;;
3494 xno)
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3496 $as_echo "unsupported" >&6; } ;;
3497 *)
3498 CC="$CC $ac_cv_prog_cc_c89"
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3500 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3501 esac
3502 if test "x$ac_cv_prog_cc_c89" != xno; then :
3503
3504 fi
3505
3506 ac_ext=c
3507 ac_cpp='$CPP $CPPFLAGS'
3508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511
3512
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3514 $as_echo_n "checking for library containing strerror... " >&6; }
3515 if test "${ac_cv_search_strerror+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 ac_func_search_save_LIBS=$LIBS
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3521
3522 /* Override any GCC internal prototype to avoid an error.
3523 Use char because int might match the return type of a GCC
3524 builtin and then its argument prototype would still apply. */
3525 #ifdef __cplusplus
3526 extern "C"
3527 #endif
3528 char strerror ();
3529 int
3530 main ()
3531 {
3532 return strerror ();
3533 ;
3534 return 0;
3535 }
3536 _ACEOF
3537 for ac_lib in '' cposix; do
3538 if test -z "$ac_lib"; then
3539 ac_res="none required"
3540 else
3541 ac_res=-l$ac_lib
3542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3543 fi
3544 if ac_fn_c_try_link "$LINENO"; then :
3545 ac_cv_search_strerror=$ac_res
3546 fi
3547 rm -f core conftest.err conftest.$ac_objext \
3548 conftest$ac_exeext
3549 if test "${ac_cv_search_strerror+set}" = set; then :
3550 break
3551 fi
3552 done
3553 if test "${ac_cv_search_strerror+set}" = set; then :
3554
3555 else
3556 ac_cv_search_strerror=no
3557 fi
3558 rm conftest.$ac_ext
3559 LIBS=$ac_func_search_save_LIBS
3560 fi
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3562 $as_echo "$ac_cv_search_strerror" >&6; }
3563 ac_res=$ac_cv_search_strerror
3564 if test "$ac_res" != no; then :
3565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3566
3567 fi
3568
3569
3570 am__api_version='1.11'
3571
3572 # Find a good install program. We prefer a C program (faster),
3573 # so one script is as good as another. But avoid the broken or
3574 # incompatible versions:
3575 # SysV /etc/install, /usr/sbin/install
3576 # SunOS /usr/etc/install
3577 # IRIX /sbin/install
3578 # AIX /bin/install
3579 # AmigaOS /C/install, which installs bootblocks on floppy discs
3580 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3583 # OS/2's system install, which has a completely different semantic
3584 # ./install, which can be erroneously created by make from ./install.sh.
3585 # Reject install programs that cannot install multiple files.
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3587 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3588 if test -z "$INSTALL"; then
3589 if test "${ac_cv_path_install+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
3597 # Account for people who put trailing slashes in PATH elements.
3598 case $as_dir/ in #((
3599 ./ | .// | /[cC]/* | \
3600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3601 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3602 /usr/ucb/* ) ;;
3603 *)
3604 # OSF1 and SCO ODT 3.0 have their own names for install.
3605 # Don't use installbsd from OSF since it installs stuff as root
3606 # by default.
3607 for ac_prog in ginstall scoinst install; do
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3610 if test $ac_prog = install &&
3611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3612 # AIX install. It has an incompatible calling convention.
3613 :
3614 elif test $ac_prog = install &&
3615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3616 # program-specific install script used by HP pwplus--don't use.
3617 :
3618 else
3619 rm -rf conftest.one conftest.two conftest.dir
3620 echo one > conftest.one
3621 echo two > conftest.two
3622 mkdir conftest.dir
3623 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3624 test -s conftest.one && test -s conftest.two &&
3625 test -s conftest.dir/conftest.one &&
3626 test -s conftest.dir/conftest.two
3627 then
3628 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3629 break 3
3630 fi
3631 fi
3632 fi
3633 done
3634 done
3635 ;;
3636 esac
3637
3638 done
3639 IFS=$as_save_IFS
3640
3641 rm -rf conftest.one conftest.two conftest.dir
3642
3643 fi
3644 if test "${ac_cv_path_install+set}" = set; then
3645 INSTALL=$ac_cv_path_install
3646 else
3647 # As a last resort, use the slow shell script. Don't cache a
3648 # value for INSTALL within a source directory, because that will
3649 # break other packages using the cache if that directory is
3650 # removed, or if the value is a relative name.
3651 INSTALL=$ac_install_sh
3652 fi
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3655 $as_echo "$INSTALL" >&6; }
3656
3657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3658 # It thinks the first close brace ends the variable substitution.
3659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3660
3661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3662
3663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3664
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3666 $as_echo_n "checking whether build environment is sane... " >&6; }
3667 # Just in case
3668 sleep 1
3669 echo timestamp > conftest.file
3670 # Reject unsafe characters in $srcdir or the absolute working directory
3671 # name. Accept space and tab only in the latter.
3672 am_lf='
3673 '
3674 case `pwd` in
3675 *[\\\"\#\$\&\'\`$am_lf]*)
3676 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3677 esac
3678 case $srcdir in
3679 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3680 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3681 esac
3682
3683 # Do `set' in a subshell so we don't clobber the current shell's
3684 # arguments. Must try -L first in case configure is actually a
3685 # symlink; some systems play weird games with the mod time of symlinks
3686 # (eg FreeBSD returns the mod time of the symlink's containing
3687 # directory).
3688 if (
3689 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3690 if test "$*" = "X"; then
3691 # -L didn't work.
3692 set X `ls -t "$srcdir/configure" conftest.file`
3693 fi
3694 rm -f conftest.file
3695 if test "$*" != "X $srcdir/configure conftest.file" \
3696 && test "$*" != "X conftest.file $srcdir/configure"; then
3697
3698 # If neither matched, then we have a broken ls. This can happen
3699 # if, for instance, CONFIG_SHELL is bash and it inherits a
3700 # broken ls alias from the environment. This has actually
3701 # happened. Such a system could not be considered "sane".
3702 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3703 alias in your environment" "$LINENO" 5
3704 fi
3705
3706 test "$2" = conftest.file
3707 )
3708 then
3709 # Ok.
3710 :
3711 else
3712 as_fn_error "newly created file is older than distributed files!
3713 Check your system clock" "$LINENO" 5
3714 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716 $as_echo "yes" >&6; }
3717 test "$program_prefix" != NONE &&
3718 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3719 # Use a double $ so make ignores it.
3720 test "$program_suffix" != NONE &&
3721 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3722 # Double any \ or $.
3723 # By default was `s,x,x', remove it if useless.
3724 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3725 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3726
3727 # expand $ac_aux_dir to an absolute path
3728 am_aux_dir=`cd $ac_aux_dir && pwd`
3729
3730 if test x"${MISSING+set}" != xset; then
3731 case $am_aux_dir in
3732 *\ * | *\ *)
3733 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3734 *)
3735 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3736 esac
3737 fi
3738 # Use eval to expand $SHELL
3739 if eval "$MISSING --run true"; then
3740 am_missing_run="$MISSING --run "
3741 else
3742 am_missing_run=
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3744 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3745 fi
3746
3747 if test x"${install_sh}" != xset; then
3748 case $am_aux_dir in
3749 *\ * | *\ *)
3750 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3751 *)
3752 install_sh="\${SHELL} $am_aux_dir/install-sh"
3753 esac
3754 fi
3755
3756 # Installed binaries are usually stripped using `strip' when the user
3757 # run `make install-strip'. However `strip' might not be the right
3758 # tool to use in cross-compilation environments, therefore Automake
3759 # will honor the `STRIP' environment variable to overrule this program.
3760 if test "$cross_compiling" != no; then
3761 if test -n "$ac_tool_prefix"; then
3762 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3763 set dummy ${ac_tool_prefix}strip; ac_word=$2
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 $as_echo_n "checking for $ac_word... " >&6; }
3766 if test "${ac_cv_prog_STRIP+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 if test -n "$STRIP"; then
3770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783 done
3784 done
3785 IFS=$as_save_IFS
3786
3787 fi
3788 fi
3789 STRIP=$ac_cv_prog_STRIP
3790 if test -n "$STRIP"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3792 $as_echo "$STRIP" >&6; }
3793 else
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3796 fi
3797
3798
3799 fi
3800 if test -z "$ac_cv_prog_STRIP"; then
3801 ac_ct_STRIP=$STRIP
3802 # Extract the first word of "strip", so it can be a program name with args.
3803 set dummy strip; ac_word=$2
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 $as_echo_n "checking for $ac_word... " >&6; }
3806 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3807 $as_echo_n "(cached) " >&6
3808 else
3809 if test -n "$ac_ct_STRIP"; then
3810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3814 do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 ac_cv_prog_ac_ct_STRIP="strip"
3820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 break 2
3822 fi
3823 done
3824 done
3825 IFS=$as_save_IFS
3826
3827 fi
3828 fi
3829 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3830 if test -n "$ac_ct_STRIP"; then
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3832 $as_echo "$ac_ct_STRIP" >&6; }
3833 else
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3836 fi
3837
3838 if test "x$ac_ct_STRIP" = x; then
3839 STRIP=":"
3840 else
3841 case $cross_compiling:$ac_tool_warned in
3842 yes:)
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845 ac_tool_warned=yes ;;
3846 esac
3847 STRIP=$ac_ct_STRIP
3848 fi
3849 else
3850 STRIP="$ac_cv_prog_STRIP"
3851 fi
3852
3853 fi
3854 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3855
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3857 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3858 if test -z "$MKDIR_P"; then
3859 if test "${ac_cv_path_mkdir+set}" = set; then :
3860 $as_echo_n "(cached) " >&6
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3864 do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_prog in mkdir gmkdir; do
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3870 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3871 'mkdir (GNU coreutils) '* | \
3872 'mkdir (coreutils) '* | \
3873 'mkdir (fileutils) '4.1*)
3874 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3875 break 3;;
3876 esac
3877 done
3878 done
3879 done
3880 IFS=$as_save_IFS
3881
3882 fi
3883
3884 if test "${ac_cv_path_mkdir+set}" = set; then
3885 MKDIR_P="$ac_cv_path_mkdir -p"
3886 else
3887 # As a last resort, use the slow shell script. Don't cache a
3888 # value for MKDIR_P within a source directory, because that will
3889 # break other packages using the cache if that directory is
3890 # removed, or if the value is a relative name.
3891 test -d ./--version && rmdir ./--version
3892 MKDIR_P="$ac_install_sh -d"
3893 fi
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3896 $as_echo "$MKDIR_P" >&6; }
3897
3898 mkdir_p="$MKDIR_P"
3899 case $mkdir_p in
3900 [\\/$]* | ?:[\\/]*) ;;
3901 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3902 esac
3903
3904 for ac_prog in gawk mawk nawk awk
3905 do
3906 # Extract the first word of "$ac_prog", so it can be a program name with args.
3907 set dummy $ac_prog; ac_word=$2
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if test "${ac_cv_prog_AWK+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 if test -n "$AWK"; then
3914 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3915 else
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3918 do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923 ac_cv_prog_AWK="$ac_prog"
3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 break 2
3926 fi
3927 done
3928 done
3929 IFS=$as_save_IFS
3930
3931 fi
3932 fi
3933 AWK=$ac_cv_prog_AWK
3934 if test -n "$AWK"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3936 $as_echo "$AWK" >&6; }
3937 else
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3940 fi
3941
3942
3943 test -n "$AWK" && break
3944 done
3945
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3947 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3948 set x ${MAKE-make}
3949 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3950 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 cat >conftest.make <<\_ACEOF
3954 SHELL = /bin/sh
3955 all:
3956 @echo '@@@%%%=$(MAKE)=@@@%%%'
3957 _ACEOF
3958 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3959 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3960 *@@@%%%=?*=@@@%%%*)
3961 eval ac_cv_prog_make_${ac_make}_set=yes;;
3962 *)
3963 eval ac_cv_prog_make_${ac_make}_set=no;;
3964 esac
3965 rm -f conftest.make
3966 fi
3967 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969 $as_echo "yes" >&6; }
3970 SET_MAKE=
3971 else
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 $as_echo "no" >&6; }
3974 SET_MAKE="MAKE=${MAKE-make}"
3975 fi
3976
3977 rm -rf .tst 2>/dev/null
3978 mkdir .tst 2>/dev/null
3979 if test -d .tst; then
3980 am__leading_dot=.
3981 else
3982 am__leading_dot=_
3983 fi
3984 rmdir .tst 2>/dev/null
3985
3986 DEPDIR="${am__leading_dot}deps"
3987
3988 ac_config_commands="$ac_config_commands depfiles"
3989
3990
3991 am_make=${MAKE-make}
3992 cat > confinc << 'END'
3993 am__doit:
3994 @echo this is the am__doit target
3995 .PHONY: am__doit
3996 END
3997 # If we don't find an include directive, just comment out the code.
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3999 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4000 am__include="#"
4001 am__quote=
4002 _am_result=none
4003 # First try GNU make style include.
4004 echo "include confinc" > confmf
4005 # Ignore all kinds of additional output from `make'.
4006 case `$am_make -s -f confmf 2> /dev/null` in #(
4007 *the\ am__doit\ target*)
4008 am__include=include
4009 am__quote=
4010 _am_result=GNU
4011 ;;
4012 esac
4013 # Now try BSD make style include.
4014 if test "$am__include" = "#"; then
4015 echo '.include "confinc"' > confmf
4016 case `$am_make -s -f confmf 2> /dev/null` in #(
4017 *the\ am__doit\ target*)
4018 am__include=.include
4019 am__quote="\""
4020 _am_result=BSD
4021 ;;
4022 esac
4023 fi
4024
4025
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4027 $as_echo "$_am_result" >&6; }
4028 rm -f confinc confmf
4029
4030 # Check whether --enable-dependency-tracking was given.
4031 if test "${enable_dependency_tracking+set}" = set; then :
4032 enableval=$enable_dependency_tracking;
4033 fi
4034
4035 if test "x$enable_dependency_tracking" != xno; then
4036 am_depcomp="$ac_aux_dir/depcomp"
4037 AMDEPBACKSLASH='\'
4038 am__nodep='_no'
4039 fi
4040 if test "x$enable_dependency_tracking" != xno; then
4041 AMDEP_TRUE=
4042 AMDEP_FALSE='#'
4043 else
4044 AMDEP_TRUE='#'
4045 AMDEP_FALSE=
4046 fi
4047
4048
4049 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4050 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4051 # is not polluted with repeated "-I."
4052 am__isrc=' -I$(srcdir)'
4053 # test to see if srcdir already configured
4054 if test -f $srcdir/config.status; then
4055 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4056 fi
4057 fi
4058
4059 # test whether we have cygpath
4060 if test -z "$CYGPATH_W"; then
4061 if (cygpath --version) >/dev/null 2>/dev/null; then
4062 CYGPATH_W='cygpath -w'
4063 else
4064 CYGPATH_W=echo
4065 fi
4066 fi
4067
4068
4069 # Define the identity of the package.
4070 PACKAGE='ld'
4071 VERSION='2.26.51'
4072
4073
4074 cat >>confdefs.h <<_ACEOF
4075 #define PACKAGE "$PACKAGE"
4076 _ACEOF
4077
4078
4079 cat >>confdefs.h <<_ACEOF
4080 #define VERSION "$VERSION"
4081 _ACEOF
4082
4083 # Some tools Automake needs.
4084
4085 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4086
4087
4088 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4089
4090
4091 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4092
4093
4094 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4095
4096
4097 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4098
4099 # We need awk for the "check" target. The system "awk" is bad on
4100 # some platforms.
4101 # Always define AMTAR for backward compatibility. Yes, it's still used
4102 # in the wild :-( We should find a proper way to deprecate it ...
4103 AMTAR='$${TAR-tar}'
4104
4105 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4106
4107
4108
4109
4110 depcc="$CC" am_compiler_list=
4111
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4113 $as_echo_n "checking dependency style of $depcc... " >&6; }
4114 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4118 # We make a subdir and do the tests there. Otherwise we can end up
4119 # making bogus files that we don't know about and never remove. For
4120 # instance it was reported that on HP-UX the gcc test will end up
4121 # making a dummy file named `D' -- because `-MD' means `put the output
4122 # in D'.
4123 rm -rf conftest.dir
4124 mkdir conftest.dir
4125 # Copy depcomp to subdir because otherwise we won't find it if we're
4126 # using a relative directory.
4127 cp "$am_depcomp" conftest.dir
4128 cd conftest.dir
4129 # We will build objects and dependencies in a subdirectory because
4130 # it helps to detect inapplicable dependency modes. For instance
4131 # both Tru64's cc and ICC support -MD to output dependencies as a
4132 # side effect of compilation, but ICC will put the dependencies in
4133 # the current directory while Tru64 will put them in the object
4134 # directory.
4135 mkdir sub
4136
4137 am_cv_CC_dependencies_compiler_type=none
4138 if test "$am_compiler_list" = ""; then
4139 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4140 fi
4141 am__universal=false
4142 case " $depcc " in #(
4143 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4144 esac
4145
4146 for depmode in $am_compiler_list; do
4147 # Setup a source with many dependencies, because some compilers
4148 # like to wrap large dependency lists on column 80 (with \), and
4149 # we should not choose a depcomp mode which is confused by this.
4150 #
4151 # We need to recreate these files for each test, as the compiler may
4152 # overwrite some of them when testing with obscure command lines.
4153 # This happens at least with the AIX C compiler.
4154 : > sub/conftest.c
4155 for i in 1 2 3 4 5 6; do
4156 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4157 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4158 # Solaris 8's {/usr,}/bin/sh.
4159 touch sub/conftst$i.h
4160 done
4161 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4162
4163 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4164 # mode. It turns out that the SunPro C++ compiler does not properly
4165 # handle `-M -o', and we need to detect this. Also, some Intel
4166 # versions had trouble with output in subdirs
4167 am__obj=sub/conftest.${OBJEXT-o}
4168 am__minus_obj="-o $am__obj"
4169 case $depmode in
4170 gcc)
4171 # This depmode causes a compiler race in universal mode.
4172 test "$am__universal" = false || continue
4173 ;;
4174 nosideeffect)
4175 # after this tag, mechanisms are not by side-effect, so they'll
4176 # only be used when explicitly requested
4177 if test "x$enable_dependency_tracking" = xyes; then
4178 continue
4179 else
4180 break
4181 fi
4182 ;;
4183 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4184 # This compiler won't grok `-c -o', but also, the minuso test has
4185 # not run yet. These depmodes are late enough in the game, and
4186 # so weak that their functioning should not be impacted.
4187 am__obj=conftest.${OBJEXT-o}
4188 am__minus_obj=
4189 ;;
4190 none) break ;;
4191 esac
4192 if depmode=$depmode \
4193 source=sub/conftest.c object=$am__obj \
4194 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4195 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4196 >/dev/null 2>conftest.err &&
4197 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4198 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4199 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4200 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4201 # icc doesn't choke on unknown options, it will just issue warnings
4202 # or remarks (even with -Werror). So we grep stderr for any message
4203 # that says an option was ignored or not supported.
4204 # When given -MP, icc 7.0 and 7.1 complain thusly:
4205 # icc: Command line warning: ignoring option '-M'; no argument required
4206 # The diagnosis changed in icc 8.0:
4207 # icc: Command line remark: option '-MP' not supported
4208 if (grep 'ignoring option' conftest.err ||
4209 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4210 am_cv_CC_dependencies_compiler_type=$depmode
4211 break
4212 fi
4213 fi
4214 done
4215
4216 cd ..
4217 rm -rf conftest.dir
4218 else
4219 am_cv_CC_dependencies_compiler_type=none
4220 fi
4221
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4224 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4225 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4226
4227 if
4228 test "x$enable_dependency_tracking" != xno \
4229 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4230 am__fastdepCC_TRUE=
4231 am__fastdepCC_FALSE='#'
4232 else
4233 am__fastdepCC_TRUE='#'
4234 am__fastdepCC_FALSE=
4235 fi
4236
4237
4238
4239
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4241 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4242 # Check whether --enable-maintainer-mode was given.
4243 if test "${enable_maintainer_mode+set}" = set; then :
4244 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4245 else
4246 USE_MAINTAINER_MODE=no
4247 fi
4248
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4250 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4251 if test $USE_MAINTAINER_MODE = yes; then
4252 MAINTAINER_MODE_TRUE=
4253 MAINTAINER_MODE_FALSE='#'
4254 else
4255 MAINTAINER_MODE_TRUE='#'
4256 MAINTAINER_MODE_FALSE=
4257 fi
4258
4259 MAINT=$MAINTAINER_MODE_TRUE
4260
4261
4262
4263 ac_ext=c
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268 if test -n "$ac_tool_prefix"; then
4269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if test "${ac_cv_prog_CC+set}" = set; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 if test -n "$CC"; then
4277 ac_cv_prog_CC="$CC" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 break 2
4289 fi
4290 done
4291 done
4292 IFS=$as_save_IFS
4293
4294 fi
4295 fi
4296 CC=$ac_cv_prog_CC
4297 if test -n "$CC"; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4299 $as_echo "$CC" >&6; }
4300 else
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 $as_echo "no" >&6; }
4303 fi
4304
4305
4306 fi
4307 if test -z "$ac_cv_prog_CC"; then
4308 ac_ct_CC=$CC
4309 # Extract the first word of "gcc", so it can be a program name with args.
4310 set dummy gcc; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 if test -n "$ac_ct_CC"; then
4317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_prog_ac_ct_CC="gcc"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330 done
4331 done
4332 IFS=$as_save_IFS
4333
4334 fi
4335 fi
4336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4337 if test -n "$ac_ct_CC"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4339 $as_echo "$ac_ct_CC" >&6; }
4340 else
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4343 fi
4344
4345 if test "x$ac_ct_CC" = x; then
4346 CC=""
4347 else
4348 case $cross_compiling:$ac_tool_warned in
4349 yes:)
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4352 ac_tool_warned=yes ;;
4353 esac
4354 CC=$ac_ct_CC
4355 fi
4356 else
4357 CC="$ac_cv_prog_CC"
4358 fi
4359
4360 if test -z "$CC"; then
4361 if test -n "$ac_tool_prefix"; then
4362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4363 set dummy ${ac_tool_prefix}cc; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_prog_CC+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test -n "$CC"; then
4370 ac_cv_prog_CC="$CC" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_CC="${ac_tool_prefix}cc"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4382 fi
4383 done
4384 done
4385 IFS=$as_save_IFS
4386
4387 fi
4388 fi
4389 CC=$ac_cv_prog_CC
4390 if test -n "$CC"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4392 $as_echo "$CC" >&6; }
4393 else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4396 fi
4397
4398
4399 fi
4400 fi
4401 if test -z "$CC"; then
4402 # Extract the first word of "cc", so it can be a program name with args.
4403 set dummy cc; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_CC+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if test -n "$CC"; then
4410 ac_cv_prog_CC="$CC" # Let the user override the test.
4411 else
4412 ac_prog_rejected=no
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4421 ac_prog_rejected=yes
4422 continue
4423 fi
4424 ac_cv_prog_CC="cc"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4427 fi
4428 done
4429 done
4430 IFS=$as_save_IFS
4431
4432 if test $ac_prog_rejected = yes; then
4433 # We found a bogon in the path, so make sure we never use it.
4434 set dummy $ac_cv_prog_CC
4435 shift
4436 if test $# != 0; then
4437 # We chose a different compiler from the bogus one.
4438 # However, it has the same basename, so the bogon will be chosen
4439 # first if we set CC to just the basename; use the full file name.
4440 shift
4441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4442 fi
4443 fi
4444 fi
4445 fi
4446 CC=$ac_cv_prog_CC
4447 if test -n "$CC"; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4449 $as_echo "$CC" >&6; }
4450 else
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 $as_echo "no" >&6; }
4453 fi
4454
4455
4456 fi
4457 if test -z "$CC"; then
4458 if test -n "$ac_tool_prefix"; then
4459 for ac_prog in cl.exe
4460 do
4461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if test "${ac_cv_prog_CC+set}" = set; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test -n "$CC"; then
4469 ac_cv_prog_CC="$CC" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4481 fi
4482 done
4483 done
4484 IFS=$as_save_IFS
4485
4486 fi
4487 fi
4488 CC=$ac_cv_prog_CC
4489 if test -n "$CC"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4491 $as_echo "$CC" >&6; }
4492 else
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4495 fi
4496
4497
4498 test -n "$CC" && break
4499 done
4500 fi
4501 if test -z "$CC"; then
4502 ac_ct_CC=$CC
4503 for ac_prog in cl.exe
4504 do
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy $ac_prog; ac_word=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 if test -n "$ac_ct_CC"; then
4513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4517 do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 ac_cv_prog_ac_ct_CC="$ac_prog"
4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4525 fi
4526 done
4527 done
4528 IFS=$as_save_IFS
4529
4530 fi
4531 fi
4532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4533 if test -n "$ac_ct_CC"; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4535 $as_echo "$ac_ct_CC" >&6; }
4536 else
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4539 fi
4540
4541
4542 test -n "$ac_ct_CC" && break
4543 done
4544
4545 if test "x$ac_ct_CC" = x; then
4546 CC=""
4547 else
4548 case $cross_compiling:$ac_tool_warned in
4549 yes:)
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552 ac_tool_warned=yes ;;
4553 esac
4554 CC=$ac_ct_CC
4555 fi
4556 fi
4557
4558 fi
4559
4560
4561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4563 as_fn_error "no acceptable C compiler found in \$PATH
4564 See \`config.log' for more details." "$LINENO" 5; }
4565
4566 # Provide some information about the compiler.
4567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4568 set X $ac_compile
4569 ac_compiler=$2
4570 for ac_option in --version -v -V -qversion; do
4571 { { ac_try="$ac_compiler $ac_option >&5"
4572 case "(($ac_try" in
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4575 esac
4576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4577 $as_echo "$ac_try_echo"; } >&5
4578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4579 ac_status=$?
4580 if test -s conftest.err; then
4581 sed '10a\
4582 ... rest of stderr output deleted ...
4583 10q' conftest.err >conftest.er1
4584 cat conftest.er1 >&5
4585 rm -f conftest.er1 conftest.err
4586 fi
4587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588 test $ac_status = 0; }
4589 done
4590
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4593 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598
4599 int
4600 main ()
4601 {
4602 #ifndef __GNUC__
4603 choke me
4604 #endif
4605
4606 ;
4607 return 0;
4608 }
4609 _ACEOF
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611 ac_compiler_gnu=yes
4612 else
4613 ac_compiler_gnu=no
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4617
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4620 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4621 if test $ac_compiler_gnu = yes; then
4622 GCC=yes
4623 else
4624 GCC=
4625 fi
4626 ac_test_CFLAGS=${CFLAGS+set}
4627 ac_save_CFLAGS=$CFLAGS
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4629 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4630 if test "${ac_cv_prog_cc_g+set}" = set; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 ac_save_c_werror_flag=$ac_c_werror_flag
4634 ac_c_werror_flag=yes
4635 ac_cv_prog_cc_g=no
4636 CFLAGS="-g"
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639
4640 int
4641 main ()
4642 {
4643
4644 ;
4645 return 0;
4646 }
4647 _ACEOF
4648 if ac_fn_c_try_compile "$LINENO"; then :
4649 ac_cv_prog_cc_g=yes
4650 else
4651 CFLAGS=""
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654
4655 int
4656 main ()
4657 {
4658
4659 ;
4660 return 0;
4661 }
4662 _ACEOF
4663 if ac_fn_c_try_compile "$LINENO"; then :
4664
4665 else
4666 ac_c_werror_flag=$ac_save_c_werror_flag
4667 CFLAGS="-g"
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4670
4671 int
4672 main ()
4673 {
4674
4675 ;
4676 return 0;
4677 }
4678 _ACEOF
4679 if ac_fn_c_try_compile "$LINENO"; then :
4680 ac_cv_prog_cc_g=yes
4681 fi
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 fi
4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 ac_c_werror_flag=$ac_save_c_werror_flag
4688 fi
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4690 $as_echo "$ac_cv_prog_cc_g" >&6; }
4691 if test "$ac_test_CFLAGS" = set; then
4692 CFLAGS=$ac_save_CFLAGS
4693 elif test $ac_cv_prog_cc_g = yes; then
4694 if test "$GCC" = yes; then
4695 CFLAGS="-g -O2"
4696 else
4697 CFLAGS="-g"
4698 fi
4699 else
4700 if test "$GCC" = yes; then
4701 CFLAGS="-O2"
4702 else
4703 CFLAGS=
4704 fi
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4707 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4708 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 ac_cv_prog_cc_c89=no
4712 ac_save_CC=$CC
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4715 #include <stdarg.h>
4716 #include <stdio.h>
4717 #include <sys/types.h>
4718 #include <sys/stat.h>
4719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4720 struct buf { int x; };
4721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4722 static char *e (p, i)
4723 char **p;
4724 int i;
4725 {
4726 return p[i];
4727 }
4728 static char *f (char * (*g) (char **, int), char **p, ...)
4729 {
4730 char *s;
4731 va_list v;
4732 va_start (v,p);
4733 s = g (p, va_arg (v,int));
4734 va_end (v);
4735 return s;
4736 }
4737
4738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4739 function prototypes and stuff, but not '\xHH' hex character constants.
4740 These don't provoke an error unfortunately, instead are silently treated
4741 as 'x'. The following induces an error, until -std is added to get
4742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4743 array size at least. It's necessary to write '\x00'==0 to get something
4744 that's true only with -std. */
4745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4746
4747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4748 inside strings and character constants. */
4749 #define FOO(x) 'x'
4750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4751
4752 int test (int i, double x);
4753 struct s1 {int (*f) (int a);};
4754 struct s2 {int (*f) (double a);};
4755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4756 int argc;
4757 char **argv;
4758 int
4759 main ()
4760 {
4761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4762 ;
4763 return 0;
4764 }
4765 _ACEOF
4766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4768 do
4769 CC="$ac_save_CC $ac_arg"
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_prog_cc_c89=$ac_arg
4772 fi
4773 rm -f core conftest.err conftest.$ac_objext
4774 test "x$ac_cv_prog_cc_c89" != "xno" && break
4775 done
4776 rm -f conftest.$ac_ext
4777 CC=$ac_save_CC
4778
4779 fi
4780 # AC_CACHE_VAL
4781 case "x$ac_cv_prog_cc_c89" in
4782 x)
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4784 $as_echo "none needed" >&6; } ;;
4785 xno)
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4787 $as_echo "unsupported" >&6; } ;;
4788 *)
4789 CC="$CC $ac_cv_prog_cc_c89"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4792 esac
4793 if test "x$ac_cv_prog_cc_c89" != xno; then :
4794
4795 fi
4796
4797 ac_ext=c
4798 ac_cpp='$CPP $CPPFLAGS'
4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802
4803 ac_ext=cpp
4804 ac_cpp='$CXXCPP $CPPFLAGS'
4805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4808 if test -z "$CXX"; then
4809 if test -n "$CCC"; then
4810 CXX=$CCC
4811 else
4812 if test -n "$ac_tool_prefix"; then
4813 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4814 do
4815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_CXX+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -n "$CXX"; then
4823 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 CXX=$ac_cv_prog_CXX
4843 if test -n "$CXX"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4845 $as_echo "$CXX" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4849 fi
4850
4851
4852 test -n "$CXX" && break
4853 done
4854 fi
4855 if test -z "$CXX"; then
4856 ac_ct_CXX=$CXX
4857 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4858 do
4859 # Extract the first word of "$ac_prog", so it can be a program name with args.
4860 set dummy $ac_prog; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$ac_ct_CXX"; then
4867 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_ac_ct_CXX="$ac_prog"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884 fi
4885 fi
4886 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4887 if test -n "$ac_ct_CXX"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4889 $as_echo "$ac_ct_CXX" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4893 fi
4894
4895
4896 test -n "$ac_ct_CXX" && break
4897 done
4898
4899 if test "x$ac_ct_CXX" = x; then
4900 CXX="g++"
4901 else
4902 case $cross_compiling:$ac_tool_warned in
4903 yes:)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4907 esac
4908 CXX=$ac_ct_CXX
4909 fi
4910 fi
4911
4912 fi
4913 fi
4914 # Provide some information about the compiler.
4915 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4916 set X $ac_compile
4917 ac_compiler=$2
4918 for ac_option in --version -v -V -qversion; do
4919 { { ac_try="$ac_compiler $ac_option >&5"
4920 case "(($ac_try" in
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4923 esac
4924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4925 $as_echo "$ac_try_echo"; } >&5
4926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4927 ac_status=$?
4928 if test -s conftest.err; then
4929 sed '10a\
4930 ... rest of stderr output deleted ...
4931 10q' conftest.err >conftest.er1
4932 cat conftest.er1 >&5
4933 rm -f conftest.er1 conftest.err
4934 fi
4935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4936 test $ac_status = 0; }
4937 done
4938
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4940 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4941 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946
4947 int
4948 main ()
4949 {
4950 #ifndef __GNUC__
4951 choke me
4952 #endif
4953
4954 ;
4955 return 0;
4956 }
4957 _ACEOF
4958 if ac_fn_cxx_try_compile "$LINENO"; then :
4959 ac_compiler_gnu=yes
4960 else
4961 ac_compiler_gnu=no
4962 fi
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4965
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4968 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4969 if test $ac_compiler_gnu = yes; then
4970 GXX=yes
4971 else
4972 GXX=
4973 fi
4974 ac_test_CXXFLAGS=${CXXFLAGS+set}
4975 ac_save_CXXFLAGS=$CXXFLAGS
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4977 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4978 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4982 ac_cxx_werror_flag=yes
4983 ac_cv_prog_cxx_g=no
4984 CXXFLAGS="-g"
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987
4988 int
4989 main ()
4990 {
4991
4992 ;
4993 return 0;
4994 }
4995 _ACEOF
4996 if ac_fn_cxx_try_compile "$LINENO"; then :
4997 ac_cv_prog_cxx_g=yes
4998 else
4999 CXXFLAGS=""
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002
5003 int
5004 main ()
5005 {
5006
5007 ;
5008 return 0;
5009 }
5010 _ACEOF
5011 if ac_fn_cxx_try_compile "$LINENO"; then :
5012
5013 else
5014 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5015 CXXFLAGS="-g"
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018
5019 int
5020 main ()
5021 {
5022
5023 ;
5024 return 0;
5025 }
5026 _ACEOF
5027 if ac_fn_cxx_try_compile "$LINENO"; then :
5028 ac_cv_prog_cxx_g=yes
5029 fi
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031 fi
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 fi
5034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5038 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5039 if test "$ac_test_CXXFLAGS" = set; then
5040 CXXFLAGS=$ac_save_CXXFLAGS
5041 elif test $ac_cv_prog_cxx_g = yes; then
5042 if test "$GXX" = yes; then
5043 CXXFLAGS="-g -O2"
5044 else
5045 CXXFLAGS="-g"
5046 fi
5047 else
5048 if test "$GXX" = yes; then
5049 CXXFLAGS="-O2"
5050 else
5051 CXXFLAGS=
5052 fi
5053 fi
5054 ac_ext=c
5055 ac_cpp='$CPP $CPPFLAGS'
5056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059
5060 depcc="$CXX" am_compiler_list=
5061
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5063 $as_echo_n "checking dependency style of $depcc... " >&6; }
5064 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5068 # We make a subdir and do the tests there. Otherwise we can end up
5069 # making bogus files that we don't know about and never remove. For
5070 # instance it was reported that on HP-UX the gcc test will end up
5071 # making a dummy file named `D' -- because `-MD' means `put the output
5072 # in D'.
5073 rm -rf conftest.dir
5074 mkdir conftest.dir
5075 # Copy depcomp to subdir because otherwise we won't find it if we're
5076 # using a relative directory.
5077 cp "$am_depcomp" conftest.dir
5078 cd conftest.dir
5079 # We will build objects and dependencies in a subdirectory because
5080 # it helps to detect inapplicable dependency modes. For instance
5081 # both Tru64's cc and ICC support -MD to output dependencies as a
5082 # side effect of compilation, but ICC will put the dependencies in
5083 # the current directory while Tru64 will put them in the object
5084 # directory.
5085 mkdir sub
5086
5087 am_cv_CXX_dependencies_compiler_type=none
5088 if test "$am_compiler_list" = ""; then
5089 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5090 fi
5091 am__universal=false
5092 case " $depcc " in #(
5093 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5094 esac
5095
5096 for depmode in $am_compiler_list; do
5097 # Setup a source with many dependencies, because some compilers
5098 # like to wrap large dependency lists on column 80 (with \), and
5099 # we should not choose a depcomp mode which is confused by this.
5100 #
5101 # We need to recreate these files for each test, as the compiler may
5102 # overwrite some of them when testing with obscure command lines.
5103 # This happens at least with the AIX C compiler.
5104 : > sub/conftest.c
5105 for i in 1 2 3 4 5 6; do
5106 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5107 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5108 # Solaris 8's {/usr,}/bin/sh.
5109 touch sub/conftst$i.h
5110 done
5111 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5112
5113 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5114 # mode. It turns out that the SunPro C++ compiler does not properly
5115 # handle `-M -o', and we need to detect this. Also, some Intel
5116 # versions had trouble with output in subdirs
5117 am__obj=sub/conftest.${OBJEXT-o}
5118 am__minus_obj="-o $am__obj"
5119 case $depmode in
5120 gcc)
5121 # This depmode causes a compiler race in universal mode.
5122 test "$am__universal" = false || continue
5123 ;;
5124 nosideeffect)
5125 # after this tag, mechanisms are not by side-effect, so they'll
5126 # only be used when explicitly requested
5127 if test "x$enable_dependency_tracking" = xyes; then
5128 continue
5129 else
5130 break
5131 fi
5132 ;;
5133 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5134 # This compiler won't grok `-c -o', but also, the minuso test has
5135 # not run yet. These depmodes are late enough in the game, and
5136 # so weak that their functioning should not be impacted.
5137 am__obj=conftest.${OBJEXT-o}
5138 am__minus_obj=
5139 ;;
5140 none) break ;;
5141 esac
5142 if depmode=$depmode \
5143 source=sub/conftest.c object=$am__obj \
5144 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5145 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5146 >/dev/null 2>conftest.err &&
5147 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5148 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5149 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5150 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5151 # icc doesn't choke on unknown options, it will just issue warnings
5152 # or remarks (even with -Werror). So we grep stderr for any message
5153 # that says an option was ignored or not supported.
5154 # When given -MP, icc 7.0 and 7.1 complain thusly:
5155 # icc: Command line warning: ignoring option '-M'; no argument required
5156 # The diagnosis changed in icc 8.0:
5157 # icc: Command line remark: option '-MP' not supported
5158 if (grep 'ignoring option' conftest.err ||
5159 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5160 am_cv_CXX_dependencies_compiler_type=$depmode
5161 break
5162 fi
5163 fi
5164 done
5165
5166 cd ..
5167 rm -rf conftest.dir
5168 else
5169 am_cv_CXX_dependencies_compiler_type=none
5170 fi
5171
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5174 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5175 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5176
5177 if
5178 test "x$enable_dependency_tracking" != xno \
5179 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5180 am__fastdepCXX_TRUE=
5181 am__fastdepCXX_FALSE='#'
5182 else
5183 am__fastdepCXX_TRUE='#'
5184 am__fastdepCXX_FALSE=
5185 fi
5186
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5189 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5190 if test "${ac_cv_path_GREP+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -z "$GREP"; then
5194 ac_path_GREP_found=false
5195 # Loop through the user's path and test for each of PROGNAME-LIST
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5198 do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_prog in grep ggrep; do
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5204 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5205 # Check for GNU ac_path_GREP and select it if it is found.
5206 # Check for GNU $ac_path_GREP
5207 case `"$ac_path_GREP" --version 2>&1` in
5208 *GNU*)
5209 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5210 *)
5211 ac_count=0
5212 $as_echo_n 0123456789 >"conftest.in"
5213 while :
5214 do
5215 cat "conftest.in" "conftest.in" >"conftest.tmp"
5216 mv "conftest.tmp" "conftest.in"
5217 cp "conftest.in" "conftest.nl"
5218 $as_echo 'GREP' >> "conftest.nl"
5219 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5221 as_fn_arith $ac_count + 1 && ac_count=$as_val
5222 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5223 # Best one so far, save it but keep looking for a better one
5224 ac_cv_path_GREP="$ac_path_GREP"
5225 ac_path_GREP_max=$ac_count
5226 fi
5227 # 10*(2^10) chars as input seems more than enough
5228 test $ac_count -gt 10 && break
5229 done
5230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5231 esac
5232
5233 $ac_path_GREP_found && break 3
5234 done
5235 done
5236 done
5237 IFS=$as_save_IFS
5238 if test -z "$ac_cv_path_GREP"; then
5239 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5240 fi
5241 else
5242 ac_cv_path_GREP=$GREP
5243 fi
5244
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5247 $as_echo "$ac_cv_path_GREP" >&6; }
5248 GREP="$ac_cv_path_GREP"
5249
5250
5251 ac_ext=c
5252 ac_cpp='$CPP $CPPFLAGS'
5253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5257 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5258 # On Suns, sometimes $CPP names a directory.
5259 if test -n "$CPP" && test -d "$CPP"; then
5260 CPP=
5261 fi
5262 if test -z "$CPP"; then
5263 if test "${ac_cv_prog_CPP+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 # Double quotes because CPP needs to be expanded
5267 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5268 do
5269 ac_preproc_ok=false
5270 for ac_c_preproc_warn_flag in '' yes
5271 do
5272 # Use a header file that comes with gcc, so configuring glibc
5273 # with a fresh cross-compiler works.
5274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5275 # <limits.h> exists even on freestanding compilers.
5276 # On the NeXT, cc -E runs the code through the compiler's parser,
5277 # not just through cpp. "Syntax error" is here to catch this case.
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 #ifdef __STDC__
5281 # include <limits.h>
5282 #else
5283 # include <assert.h>
5284 #endif
5285 Syntax error
5286 _ACEOF
5287 if ac_fn_c_try_cpp "$LINENO"; then :
5288
5289 else
5290 # Broken: fails on valid input.
5291 continue
5292 fi
5293 rm -f conftest.err conftest.$ac_ext
5294
5295 # OK, works on sane cases. Now check whether nonexistent headers
5296 # can be detected and how.
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #include <ac_nonexistent.h>
5300 _ACEOF
5301 if ac_fn_c_try_cpp "$LINENO"; then :
5302 # Broken: success on invalid input.
5303 continue
5304 else
5305 # Passes both tests.
5306 ac_preproc_ok=:
5307 break
5308 fi
5309 rm -f conftest.err conftest.$ac_ext
5310
5311 done
5312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5313 rm -f conftest.err conftest.$ac_ext
5314 if $ac_preproc_ok; then :
5315 break
5316 fi
5317
5318 done
5319 ac_cv_prog_CPP=$CPP
5320
5321 fi
5322 CPP=$ac_cv_prog_CPP
5323 else
5324 ac_cv_prog_CPP=$CPP
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5327 $as_echo "$CPP" >&6; }
5328 ac_preproc_ok=false
5329 for ac_c_preproc_warn_flag in '' yes
5330 do
5331 # Use a header file that comes with gcc, so configuring glibc
5332 # with a fresh cross-compiler works.
5333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334 # <limits.h> exists even on freestanding compilers.
5335 # On the NeXT, cc -E runs the code through the compiler's parser,
5336 # not just through cpp. "Syntax error" is here to catch this case.
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5339 #ifdef __STDC__
5340 # include <limits.h>
5341 #else
5342 # include <assert.h>
5343 #endif
5344 Syntax error
5345 _ACEOF
5346 if ac_fn_c_try_cpp "$LINENO"; then :
5347
5348 else
5349 # Broken: fails on valid input.
5350 continue
5351 fi
5352 rm -f conftest.err conftest.$ac_ext
5353
5354 # OK, works on sane cases. Now check whether nonexistent headers
5355 # can be detected and how.
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358 #include <ac_nonexistent.h>
5359 _ACEOF
5360 if ac_fn_c_try_cpp "$LINENO"; then :
5361 # Broken: success on invalid input.
5362 continue
5363 else
5364 # Passes both tests.
5365 ac_preproc_ok=:
5366 break
5367 fi
5368 rm -f conftest.err conftest.$ac_ext
5369
5370 done
5371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5372 rm -f conftest.err conftest.$ac_ext
5373 if $ac_preproc_ok; then :
5374
5375 else
5376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5378 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5379 See \`config.log' for more details." "$LINENO" 5; }
5380 fi
5381
5382 ac_ext=c
5383 ac_cpp='$CPP $CPPFLAGS'
5384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387
5388
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5390 $as_echo_n "checking for egrep... " >&6; }
5391 if test "${ac_cv_path_EGREP+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5395 then ac_cv_path_EGREP="$GREP -E"
5396 else
5397 if test -z "$EGREP"; then
5398 ac_path_EGREP_found=false
5399 # Loop through the user's path and test for each of PROGNAME-LIST
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5402 do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_prog in egrep; do
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5408 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5409 # Check for GNU ac_path_EGREP and select it if it is found.
5410 # Check for GNU $ac_path_EGREP
5411 case `"$ac_path_EGREP" --version 2>&1` in
5412 *GNU*)
5413 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5414 *)
5415 ac_count=0
5416 $as_echo_n 0123456789 >"conftest.in"
5417 while :
5418 do
5419 cat "conftest.in" "conftest.in" >"conftest.tmp"
5420 mv "conftest.tmp" "conftest.in"
5421 cp "conftest.in" "conftest.nl"
5422 $as_echo 'EGREP' >> "conftest.nl"
5423 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5425 as_fn_arith $ac_count + 1 && ac_count=$as_val
5426 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5427 # Best one so far, save it but keep looking for a better one
5428 ac_cv_path_EGREP="$ac_path_EGREP"
5429 ac_path_EGREP_max=$ac_count
5430 fi
5431 # 10*(2^10) chars as input seems more than enough
5432 test $ac_count -gt 10 && break
5433 done
5434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5435 esac
5436
5437 $ac_path_EGREP_found && break 3
5438 done
5439 done
5440 done
5441 IFS=$as_save_IFS
5442 if test -z "$ac_cv_path_EGREP"; then
5443 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5444 fi
5445 else
5446 ac_cv_path_EGREP=$EGREP
5447 fi
5448
5449 fi
5450 fi
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5452 $as_echo "$ac_cv_path_EGREP" >&6; }
5453 EGREP="$ac_cv_path_EGREP"
5454
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5457 $as_echo_n "checking for ANSI C header files... " >&6; }
5458 if test "${ac_cv_header_stdc+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 #include <stdlib.h>
5464 #include <stdarg.h>
5465 #include <string.h>
5466 #include <float.h>
5467
5468 int
5469 main ()
5470 {
5471
5472 ;
5473 return 0;
5474 }
5475 _ACEOF
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 ac_cv_header_stdc=yes
5478 else
5479 ac_cv_header_stdc=no
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482
5483 if test $ac_cv_header_stdc = yes; then
5484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 #include <string.h>
5488
5489 _ACEOF
5490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491 $EGREP "memchr" >/dev/null 2>&1; then :
5492
5493 else
5494 ac_cv_header_stdc=no
5495 fi
5496 rm -f conftest*
5497
5498 fi
5499
5500 if test $ac_cv_header_stdc = yes; then
5501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5504 #include <stdlib.h>
5505
5506 _ACEOF
5507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5508 $EGREP "free" >/dev/null 2>&1; then :
5509
5510 else
5511 ac_cv_header_stdc=no
5512 fi
5513 rm -f conftest*
5514
5515 fi
5516
5517 if test $ac_cv_header_stdc = yes; then
5518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5519 if test "$cross_compiling" = yes; then :
5520 :
5521 else
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5524 #include <ctype.h>
5525 #include <stdlib.h>
5526 #if ((' ' & 0x0FF) == 0x020)
5527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5529 #else
5530 # define ISLOWER(c) \
5531 (('a' <= (c) && (c) <= 'i') \
5532 || ('j' <= (c) && (c) <= 'r') \
5533 || ('s' <= (c) && (c) <= 'z'))
5534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5535 #endif
5536
5537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5538 int
5539 main ()
5540 {
5541 int i;
5542 for (i = 0; i < 256; i++)
5543 if (XOR (islower (i), ISLOWER (i))
5544 || toupper (i) != TOUPPER (i))
5545 return 2;
5546 return 0;
5547 }
5548 _ACEOF
5549 if ac_fn_c_try_run "$LINENO"; then :
5550
5551 else
5552 ac_cv_header_stdc=no
5553 fi
5554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5555 conftest.$ac_objext conftest.beam conftest.$ac_ext
5556 fi
5557
5558 fi
5559 fi
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5561 $as_echo "$ac_cv_header_stdc" >&6; }
5562 if test $ac_cv_header_stdc = yes; then
5563
5564 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5565
5566 fi
5567
5568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5570 inttypes.h stdint.h unistd.h
5571 do :
5572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5573 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5574 "
5575 eval as_val=\$$as_ac_Header
5576 if test "x$as_val" = x""yes; then :
5577 cat >>confdefs.h <<_ACEOF
5578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5579 _ACEOF
5580
5581 fi
5582
5583 done
5584
5585
5586
5587 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5588 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5589 MINIX=yes
5590 else
5591 MINIX=
5592 fi
5593
5594
5595 if test "$MINIX" = yes; then
5596
5597 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5598
5599
5600 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5601
5602
5603 $as_echo "#define _MINIX 1" >>confdefs.h
5604
5605 fi
5606
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5609 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5610 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615
5616 # define __EXTENSIONS__ 1
5617 $ac_includes_default
5618 int
5619 main ()
5620 {
5621
5622 ;
5623 return 0;
5624 }
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627 ac_cv_safe_to_define___extensions__=yes
5628 else
5629 ac_cv_safe_to_define___extensions__=no
5630 fi
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 fi
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5634 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5635 test $ac_cv_safe_to_define___extensions__ = yes &&
5636 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5637
5638 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5639
5640 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5641
5642 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5643
5644 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5645
5646
5647
5648
5649
5650
5651 case `pwd` in
5652 *\ * | *\ *)
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5654 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5655 esac
5656
5657
5658
5659 macro_version='2.2.7a'
5660 macro_revision='1.3134'
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674 ltmain="$ac_aux_dir/ltmain.sh"
5675
5676 # Backslashify metacharacters that are still active within
5677 # double-quoted strings.
5678 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5679
5680 # Same as above, but do not quote variable references.
5681 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5682
5683 # Sed substitution to delay expansion of an escaped shell variable in a
5684 # double_quote_subst'ed string.
5685 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5686
5687 # Sed substitution to delay expansion of an escaped single quote.
5688 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5689
5690 # Sed substitution to avoid accidental globbing in evaled expressions
5691 no_glob_subst='s/\*/\\\*/g'
5692
5693 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5694 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5695 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5698 $as_echo_n "checking how to print strings... " >&6; }
5699 # Test print first, because it will be a builtin if present.
5700 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5701 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5702 ECHO='print -r --'
5703 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5704 ECHO='printf %s\n'
5705 else
5706 # Use this function as a fallback that always works.
5707 func_fallback_echo ()
5708 {
5709 eval 'cat <<_LTECHO_EOF
5710 $1
5711 _LTECHO_EOF'
5712 }
5713 ECHO='func_fallback_echo'
5714 fi
5715
5716 # func_echo_all arg...
5717 # Invoke $ECHO with all args, space-separated.
5718 func_echo_all ()
5719 {
5720 $ECHO ""
5721 }
5722
5723 case "$ECHO" in
5724 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5725 $as_echo "printf" >&6; } ;;
5726 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5727 $as_echo "print -r" >&6; } ;;
5728 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5729 $as_echo "cat" >&6; } ;;
5730 esac
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5746 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5747 if test "${ac_cv_path_SED+set}" = set; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5751 for ac_i in 1 2 3 4 5 6 7; do
5752 ac_script="$ac_script$as_nl$ac_script"
5753 done
5754 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5755 { ac_script=; unset ac_script;}
5756 if test -z "$SED"; then
5757 ac_path_SED_found=false
5758 # Loop through the user's path and test for each of PROGNAME-LIST
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH
5761 do
5762 IFS=$as_save_IFS
5763 test -z "$as_dir" && as_dir=.
5764 for ac_prog in sed gsed; do
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5767 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5768 # Check for GNU ac_path_SED and select it if it is found.
5769 # Check for GNU $ac_path_SED
5770 case `"$ac_path_SED" --version 2>&1` in
5771 *GNU*)
5772 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5773 *)
5774 ac_count=0
5775 $as_echo_n 0123456789 >"conftest.in"
5776 while :
5777 do
5778 cat "conftest.in" "conftest.in" >"conftest.tmp"
5779 mv "conftest.tmp" "conftest.in"
5780 cp "conftest.in" "conftest.nl"
5781 $as_echo '' >> "conftest.nl"
5782 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5784 as_fn_arith $ac_count + 1 && ac_count=$as_val
5785 if test $ac_count -gt ${ac_path_SED_max-0}; then
5786 # Best one so far, save it but keep looking for a better one
5787 ac_cv_path_SED="$ac_path_SED"
5788 ac_path_SED_max=$ac_count
5789 fi
5790 # 10*(2^10) chars as input seems more than enough
5791 test $ac_count -gt 10 && break
5792 done
5793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5794 esac
5795
5796 $ac_path_SED_found && break 3
5797 done
5798 done
5799 done
5800 IFS=$as_save_IFS
5801 if test -z "$ac_cv_path_SED"; then
5802 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5803 fi
5804 else
5805 ac_cv_path_SED=$SED
5806 fi
5807
5808 fi
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5810 $as_echo "$ac_cv_path_SED" >&6; }
5811 SED="$ac_cv_path_SED"
5812 rm -f conftest.sed
5813
5814 test -z "$SED" && SED=sed
5815 Xsed="$SED -e 1s/^X//"
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5828 $as_echo_n "checking for fgrep... " >&6; }
5829 if test "${ac_cv_path_FGREP+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5833 then ac_cv_path_FGREP="$GREP -F"
5834 else
5835 if test -z "$FGREP"; then
5836 ac_path_FGREP_found=false
5837 # Loop through the user's path and test for each of PROGNAME-LIST
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5840 do
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_prog in fgrep; do
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5846 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5847 # Check for GNU ac_path_FGREP and select it if it is found.
5848 # Check for GNU $ac_path_FGREP
5849 case `"$ac_path_FGREP" --version 2>&1` in
5850 *GNU*)
5851 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5852 *)
5853 ac_count=0
5854 $as_echo_n 0123456789 >"conftest.in"
5855 while :
5856 do
5857 cat "conftest.in" "conftest.in" >"conftest.tmp"
5858 mv "conftest.tmp" "conftest.in"
5859 cp "conftest.in" "conftest.nl"
5860 $as_echo 'FGREP' >> "conftest.nl"
5861 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5863 as_fn_arith $ac_count + 1 && ac_count=$as_val
5864 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5865 # Best one so far, save it but keep looking for a better one
5866 ac_cv_path_FGREP="$ac_path_FGREP"
5867 ac_path_FGREP_max=$ac_count
5868 fi
5869 # 10*(2^10) chars as input seems more than enough
5870 test $ac_count -gt 10 && break
5871 done
5872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5873 esac
5874
5875 $ac_path_FGREP_found && break 3
5876 done
5877 done
5878 done
5879 IFS=$as_save_IFS
5880 if test -z "$ac_cv_path_FGREP"; then
5881 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5882 fi
5883 else
5884 ac_cv_path_FGREP=$FGREP
5885 fi
5886
5887 fi
5888 fi
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5890 $as_echo "$ac_cv_path_FGREP" >&6; }
5891 FGREP="$ac_cv_path_FGREP"
5892
5893
5894 test -z "$GREP" && GREP=grep
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914 # Check whether --with-gnu-ld was given.
5915 if test "${with_gnu_ld+set}" = set; then :
5916 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5917 else
5918 with_gnu_ld=no
5919 fi
5920
5921 ac_prog=ld
5922 if test "$GCC" = yes; then
5923 # Check if gcc -print-prog-name=ld gives a path.
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5925 $as_echo_n "checking for ld used by $CC... " >&6; }
5926 case $host in
5927 *-*-mingw*)
5928 # gcc leaves a trailing carriage return which upsets mingw
5929 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5930 *)
5931 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5932 esac
5933 case $ac_prog in
5934 # Accept absolute paths.
5935 [\\/]* | ?:[\\/]*)
5936 re_direlt='/[^/][^/]*/\.\./'
5937 # Canonicalize the pathname of ld
5938 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5939 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5940 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5941 done
5942 test -z "$LD" && LD="$ac_prog"
5943 ;;
5944 "")
5945 # If it fails, then pretend we aren't using GCC.
5946 ac_prog=ld
5947 ;;
5948 *)
5949 # If it is relative, then search for the first ld in PATH.
5950 with_gnu_ld=unknown
5951 ;;
5952 esac
5953 elif test "$with_gnu_ld" = yes; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5955 $as_echo_n "checking for GNU ld... " >&6; }
5956 else
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5958 $as_echo_n "checking for non-GNU ld... " >&6; }
5959 fi
5960 if test "${lt_cv_path_LD+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -z "$LD"; then
5964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5965 for ac_dir in $PATH; do
5966 IFS="$lt_save_ifs"
5967 test -z "$ac_dir" && ac_dir=.
5968 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5969 lt_cv_path_LD="$ac_dir/$ac_prog"
5970 # Check to see if the program is GNU ld. I'd rather use --version,
5971 # but apparently some variants of GNU ld only accept -v.
5972 # Break only if it was the GNU/non-GNU ld that we prefer.
5973 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5974 *GNU* | *'with BFD'*)
5975 test "$with_gnu_ld" != no && break
5976 ;;
5977 *)
5978 test "$with_gnu_ld" != yes && break
5979 ;;
5980 esac
5981 fi
5982 done
5983 IFS="$lt_save_ifs"
5984 else
5985 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5986 fi
5987 fi
5988
5989 LD="$lt_cv_path_LD"
5990 if test -n "$LD"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5992 $as_echo "$LD" >&6; }
5993 else
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5996 fi
5997 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5999 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6000 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6004 case `$LD -v 2>&1 </dev/null` in
6005 *GNU* | *'with BFD'*)
6006 lt_cv_prog_gnu_ld=yes
6007 ;;
6008 *)
6009 lt_cv_prog_gnu_ld=no
6010 ;;
6011 esac
6012 fi
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6014 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6015 with_gnu_ld=$lt_cv_prog_gnu_ld
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6026 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6027 if test "${lt_cv_path_NM+set}" = set; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 if test -n "$NM"; then
6031 # Let the user override the test.
6032 lt_cv_path_NM="$NM"
6033 else
6034 lt_nm_to_check="${ac_tool_prefix}nm"
6035 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6036 lt_nm_to_check="$lt_nm_to_check nm"
6037 fi
6038 for lt_tmp_nm in $lt_nm_to_check; do
6039 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6040 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6041 IFS="$lt_save_ifs"
6042 test -z "$ac_dir" && ac_dir=.
6043 tmp_nm="$ac_dir/$lt_tmp_nm"
6044 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6045 # Check to see if the nm accepts a BSD-compat flag.
6046 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6047 # nm: unknown option "B" ignored
6048 # Tru64's nm complains that /dev/null is an invalid object file
6049 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6050 */dev/null* | *'Invalid file or object type'*)
6051 lt_cv_path_NM="$tmp_nm -B"
6052 break
6053 ;;
6054 *)
6055 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6056 */dev/null*)
6057 lt_cv_path_NM="$tmp_nm -p"
6058 break
6059 ;;
6060 *)
6061 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6062 continue # so that we can try to find one that supports BSD flags
6063 ;;
6064 esac
6065 ;;
6066 esac
6067 fi
6068 done
6069 IFS="$lt_save_ifs"
6070 done
6071 : ${lt_cv_path_NM=no}
6072 fi
6073 fi
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6075 $as_echo "$lt_cv_path_NM" >&6; }
6076 if test "$lt_cv_path_NM" != "no"; then
6077 NM="$lt_cv_path_NM"
6078 else
6079 # Didn't find any BSD compatible name lister, look for dumpbin.
6080 if test -n "$DUMPBIN"; then :
6081 # Let the user override the test.
6082 else
6083 if test -n "$ac_tool_prefix"; then
6084 for ac_prog in dumpbin "link -dump"
6085 do
6086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 if test -n "$DUMPBIN"; then
6094 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6106 fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 DUMPBIN=$ac_cv_prog_DUMPBIN
6114 if test -n "$DUMPBIN"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6116 $as_echo "$DUMPBIN" >&6; }
6117 else
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6120 fi
6121
6122
6123 test -n "$DUMPBIN" && break
6124 done
6125 fi
6126 if test -z "$DUMPBIN"; then
6127 ac_ct_DUMPBIN=$DUMPBIN
6128 for ac_prog in dumpbin "link -dump"
6129 do
6130 # Extract the first word of "$ac_prog", so it can be a program name with args.
6131 set dummy $ac_prog; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 if test -n "$ac_ct_DUMPBIN"; then
6138 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151 done
6152 done
6153 IFS=$as_save_IFS
6154
6155 fi
6156 fi
6157 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6158 if test -n "$ac_ct_DUMPBIN"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6160 $as_echo "$ac_ct_DUMPBIN" >&6; }
6161 else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6164 fi
6165
6166
6167 test -n "$ac_ct_DUMPBIN" && break
6168 done
6169
6170 if test "x$ac_ct_DUMPBIN" = x; then
6171 DUMPBIN=":"
6172 else
6173 case $cross_compiling:$ac_tool_warned in
6174 yes:)
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177 ac_tool_warned=yes ;;
6178 esac
6179 DUMPBIN=$ac_ct_DUMPBIN
6180 fi
6181 fi
6182
6183 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6184 *COFF*)
6185 DUMPBIN="$DUMPBIN -symbols"
6186 ;;
6187 *)
6188 DUMPBIN=:
6189 ;;
6190 esac
6191 fi
6192
6193 if test "$DUMPBIN" != ":"; then
6194 NM="$DUMPBIN"
6195 fi
6196 fi
6197 test -z "$NM" && NM=nm
6198
6199
6200
6201
6202
6203
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6205 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6206 if test "${lt_cv_nm_interface+set}" = set; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 lt_cv_nm_interface="BSD nm"
6210 echo "int some_variable = 0;" > conftest.$ac_ext
6211 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6212 (eval "$ac_compile" 2>conftest.err)
6213 cat conftest.err >&5
6214 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6215 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6216 cat conftest.err >&5
6217 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6218 cat conftest.out >&5
6219 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6220 lt_cv_nm_interface="MS dumpbin"
6221 fi
6222 rm -f conftest*
6223 fi
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6225 $as_echo "$lt_cv_nm_interface" >&6; }
6226
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6228 $as_echo_n "checking whether ln -s works... " >&6; }
6229 LN_S=$as_ln_s
6230 if test "$LN_S" = "ln -s"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6232 $as_echo "yes" >&6; }
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6235 $as_echo "no, using $LN_S" >&6; }
6236 fi
6237
6238 # find the maximum length of command line arguments
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6240 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6241 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 i=0
6245 teststring="ABCD"
6246
6247 case $build_os in
6248 msdosdjgpp*)
6249 # On DJGPP, this test can blow up pretty badly due to problems in libc
6250 # (any single argument exceeding 2000 bytes causes a buffer overrun
6251 # during glob expansion). Even if it were fixed, the result of this
6252 # check would be larger than it should be.
6253 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6254 ;;
6255
6256 gnu*)
6257 # Under GNU Hurd, this test is not required because there is
6258 # no limit to the length of command line arguments.
6259 # Libtool will interpret -1 as no limit whatsoever
6260 lt_cv_sys_max_cmd_len=-1;
6261 ;;
6262
6263 cygwin* | mingw* | cegcc*)
6264 # On Win9x/ME, this test blows up -- it succeeds, but takes
6265 # about 5 minutes as the teststring grows exponentially.
6266 # Worse, since 9x/ME are not pre-emptively multitasking,
6267 # you end up with a "frozen" computer, even though with patience
6268 # the test eventually succeeds (with a max line length of 256k).
6269 # Instead, let's just punt: use the minimum linelength reported by
6270 # all of the supported platforms: 8192 (on NT/2K/XP).
6271 lt_cv_sys_max_cmd_len=8192;
6272 ;;
6273
6274 mint*)
6275 # On MiNT this can take a long time and run out of memory.
6276 lt_cv_sys_max_cmd_len=8192;
6277 ;;
6278
6279 amigaos*)
6280 # On AmigaOS with pdksh, this test takes hours, literally.
6281 # So we just punt and use a minimum line length of 8192.
6282 lt_cv_sys_max_cmd_len=8192;
6283 ;;
6284
6285 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6286 # This has been around since 386BSD, at least. Likely further.
6287 if test -x /sbin/sysctl; then
6288 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6289 elif test -x /usr/sbin/sysctl; then
6290 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6291 else
6292 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6293 fi
6294 # And add a safety zone
6295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6297 ;;
6298
6299 interix*)
6300 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6301 lt_cv_sys_max_cmd_len=196608
6302 ;;
6303
6304 osf*)
6305 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6306 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6307 # nice to cause kernel panics so lets avoid the loop below.
6308 # First set a reasonable default.
6309 lt_cv_sys_max_cmd_len=16384
6310 #
6311 if test -x /sbin/sysconfig; then
6312 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6313 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6314 esac
6315 fi
6316 ;;
6317 sco3.2v5*)
6318 lt_cv_sys_max_cmd_len=102400
6319 ;;
6320 sysv5* | sco5v6* | sysv4.2uw2*)
6321 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6322 if test -n "$kargmax"; then
6323 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6324 else
6325 lt_cv_sys_max_cmd_len=32768
6326 fi
6327 ;;
6328 *)
6329 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6330 if test -n "$lt_cv_sys_max_cmd_len"; then
6331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6333 else
6334 # Make teststring a little bigger before we do anything with it.
6335 # a 1K string should be a reasonable start.
6336 for i in 1 2 3 4 5 6 7 8 ; do
6337 teststring=$teststring$teststring
6338 done
6339 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6340 # If test is not a shell built-in, we'll probably end up computing a
6341 # maximum length that is only half of the actual maximum length, but
6342 # we can't tell.
6343 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6344 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6345 test $i != 17 # 1/2 MB should be enough
6346 do
6347 i=`expr $i + 1`
6348 teststring=$teststring$teststring
6349 done
6350 # Only check the string length outside the loop.
6351 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6352 teststring=
6353 # Add a significant safety factor because C++ compilers can tack on
6354 # massive amounts of additional arguments before passing them to the
6355 # linker. It appears as though 1/2 is a usable value.
6356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6357 fi
6358 ;;
6359 esac
6360
6361 fi
6362
6363 if test -n $lt_cv_sys_max_cmd_len ; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6365 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6366 else
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6368 $as_echo "none" >&6; }
6369 fi
6370 max_cmd_len=$lt_cv_sys_max_cmd_len
6371
6372
6373
6374
6375
6376
6377 : ${CP="cp -f"}
6378 : ${MV="mv -f"}
6379 : ${RM="rm -f"}
6380
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6382 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6383 # Try some XSI features
6384 xsi_shell=no
6385 ( _lt_dummy="a/b/c"
6386 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6387 = c,a/b,, \
6388 && eval 'test $(( 1 + 1 )) -eq 2 \
6389 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6390 && xsi_shell=yes
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6392 $as_echo "$xsi_shell" >&6; }
6393
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6396 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6397 lt_shell_append=no
6398 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6399 >/dev/null 2>&1 \
6400 && lt_shell_append=yes
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6402 $as_echo "$lt_shell_append" >&6; }
6403
6404
6405 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6406 lt_unset=unset
6407 else
6408 lt_unset=false
6409 fi
6410
6411
6412
6413
6414
6415 # test EBCDIC or ASCII
6416 case `echo X|tr X '\101'` in
6417 A) # ASCII based system
6418 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6419 lt_SP2NL='tr \040 \012'
6420 lt_NL2SP='tr \015\012 \040\040'
6421 ;;
6422 *) # EBCDIC based system
6423 lt_SP2NL='tr \100 \n'
6424 lt_NL2SP='tr \r\n \100\100'
6425 ;;
6426 esac
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6437 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6438 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 lt_cv_ld_reload_flag='-r'
6442 fi
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6444 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6445 reload_flag=$lt_cv_ld_reload_flag
6446 case $reload_flag in
6447 "" | " "*) ;;
6448 *) reload_flag=" $reload_flag" ;;
6449 esac
6450 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6451 case $host_os in
6452 darwin*)
6453 if test "$GCC" = yes; then
6454 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6455 else
6456 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6457 fi
6458 ;;
6459 esac
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469 if test -n "$ac_tool_prefix"; then
6470 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 if test -n "$OBJDUMP"; then
6478 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 OBJDUMP=$ac_cv_prog_OBJDUMP
6498 if test -n "$OBJDUMP"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6500 $as_echo "$OBJDUMP" >&6; }
6501 else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506
6507 fi
6508 if test -z "$ac_cv_prog_OBJDUMP"; then
6509 ac_ct_OBJDUMP=$OBJDUMP
6510 # Extract the first word of "objdump", so it can be a program name with args.
6511 set dummy objdump; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 if test -n "$ac_ct_OBJDUMP"; then
6518 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523 IFS=$as_save_IFS
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 break 2
6530 fi
6531 done
6532 done
6533 IFS=$as_save_IFS
6534
6535 fi
6536 fi
6537 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6538 if test -n "$ac_ct_OBJDUMP"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6540 $as_echo "$ac_ct_OBJDUMP" >&6; }
6541 else
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6544 fi
6545
6546 if test "x$ac_ct_OBJDUMP" = x; then
6547 OBJDUMP="false"
6548 else
6549 case $cross_compiling:$ac_tool_warned in
6550 yes:)
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553 ac_tool_warned=yes ;;
6554 esac
6555 OBJDUMP=$ac_ct_OBJDUMP
6556 fi
6557 else
6558 OBJDUMP="$ac_cv_prog_OBJDUMP"
6559 fi
6560
6561 test -z "$OBJDUMP" && OBJDUMP=objdump
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6572 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6573 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 lt_cv_file_magic_cmd='$MAGIC_CMD'
6577 lt_cv_file_magic_test_file=
6578 lt_cv_deplibs_check_method='unknown'
6579 # Need to set the preceding variable on all platforms that support
6580 # interlibrary dependencies.
6581 # 'none' -- dependencies not supported.
6582 # `unknown' -- same as none, but documents that we really don't know.
6583 # 'pass_all' -- all dependencies passed with no checks.
6584 # 'test_compile' -- check by making test program.
6585 # 'file_magic [[regex]]' -- check by looking for files in library path
6586 # which responds to the $file_magic_cmd with a given extended regex.
6587 # If you have `file' or equivalent on your system and you're not sure
6588 # whether `pass_all' will *always* work, you probably want this one.
6589
6590 case $host_os in
6591 aix[4-9]*)
6592 lt_cv_deplibs_check_method=pass_all
6593 ;;
6594
6595 beos*)
6596 lt_cv_deplibs_check_method=pass_all
6597 ;;
6598
6599 bsdi[45]*)
6600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6601 lt_cv_file_magic_cmd='/usr/bin/file -L'
6602 lt_cv_file_magic_test_file=/shlib/libc.so
6603 ;;
6604
6605 cygwin*)
6606 # func_win32_libid is a shell function defined in ltmain.sh
6607 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6608 lt_cv_file_magic_cmd='func_win32_libid'
6609 ;;
6610
6611 mingw* | pw32*)
6612 # Base MSYS/MinGW do not provide the 'file' command needed by
6613 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6614 # unless we find 'file', for example because we are cross-compiling.
6615 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6616 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6617 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6618 lt_cv_file_magic_cmd='func_win32_libid'
6619 else
6620 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6621 lt_cv_file_magic_cmd='$OBJDUMP -f'
6622 fi
6623 ;;
6624
6625 cegcc*)
6626 # use the weaker test based on 'objdump'. See mingw*.
6627 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6628 lt_cv_file_magic_cmd='$OBJDUMP -f'
6629 ;;
6630
6631 darwin* | rhapsody*)
6632 lt_cv_deplibs_check_method=pass_all
6633 ;;
6634
6635 freebsd* | dragonfly*)
6636 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6637 case $host_cpu in
6638 i*86 )
6639 # Not sure whether the presence of OpenBSD here was a mistake.
6640 # Let's accept both of them until this is cleared up.
6641 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6642 lt_cv_file_magic_cmd=/usr/bin/file
6643 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6644 ;;
6645 esac
6646 else
6647 lt_cv_deplibs_check_method=pass_all
6648 fi
6649 ;;
6650
6651 gnu*)
6652 lt_cv_deplibs_check_method=pass_all
6653 ;;
6654
6655 haiku*)
6656 lt_cv_deplibs_check_method=pass_all
6657 ;;
6658
6659 hpux10.20* | hpux11*)
6660 lt_cv_file_magic_cmd=/usr/bin/file
6661 case $host_cpu in
6662 ia64*)
6663 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6664 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6665 ;;
6666 hppa*64*)
6667 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]'
6668 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6669 ;;
6670 *)
6671 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6672 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6673 ;;
6674 esac
6675 ;;
6676
6677 interix[3-9]*)
6678 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6680 ;;
6681
6682 irix5* | irix6* | nonstopux*)
6683 case $LD in
6684 *-32|*"-32 ") libmagic=32-bit;;
6685 *-n32|*"-n32 ") libmagic=N32;;
6686 *-64|*"-64 ") libmagic=64-bit;;
6687 *) libmagic=never-match;;
6688 esac
6689 lt_cv_deplibs_check_method=pass_all
6690 ;;
6691
6692 # This must be Linux ELF.
6693 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6694 lt_cv_deplibs_check_method=pass_all
6695 ;;
6696
6697 netbsd*)
6698 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6700 else
6701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6702 fi
6703 ;;
6704
6705 newos6*)
6706 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6707 lt_cv_file_magic_cmd=/usr/bin/file
6708 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6709 ;;
6710
6711 *nto* | *qnx*)
6712 lt_cv_deplibs_check_method=pass_all
6713 ;;
6714
6715 openbsd*)
6716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6718 else
6719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6720 fi
6721 ;;
6722
6723 osf3* | osf4* | osf5*)
6724 lt_cv_deplibs_check_method=pass_all
6725 ;;
6726
6727 rdos*)
6728 lt_cv_deplibs_check_method=pass_all
6729 ;;
6730
6731 solaris*)
6732 lt_cv_deplibs_check_method=pass_all
6733 ;;
6734
6735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6736 lt_cv_deplibs_check_method=pass_all
6737 ;;
6738
6739 sysv4 | sysv4.3*)
6740 case $host_vendor in
6741 motorola)
6742 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]'
6743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6744 ;;
6745 ncr)
6746 lt_cv_deplibs_check_method=pass_all
6747 ;;
6748 sequent)
6749 lt_cv_file_magic_cmd='/bin/file'
6750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6751 ;;
6752 sni)
6753 lt_cv_file_magic_cmd='/bin/file'
6754 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6755 lt_cv_file_magic_test_file=/lib/libc.so
6756 ;;
6757 siemens)
6758 lt_cv_deplibs_check_method=pass_all
6759 ;;
6760 pc)
6761 lt_cv_deplibs_check_method=pass_all
6762 ;;
6763 esac
6764 ;;
6765
6766 tpf*)
6767 lt_cv_deplibs_check_method=pass_all
6768 ;;
6769 esac
6770
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6773 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6774 file_magic_cmd=$lt_cv_file_magic_cmd
6775 deplibs_check_method=$lt_cv_deplibs_check_method
6776 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789 if test -n "$ac_tool_prefix"; then
6790 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6791 set dummy ${ac_tool_prefix}ar; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if test "${ac_cv_prog_AR+set}" = set; then :
6795 $as_echo_n "(cached) " >&6
6796 else
6797 if test -n "$AR"; then
6798 ac_cv_prog_AR="$AR" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_prog_AR="${ac_tool_prefix}ar"
6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811 done
6812 done
6813 IFS=$as_save_IFS
6814
6815 fi
6816 fi
6817 AR=$ac_cv_prog_AR
6818 if test -n "$AR"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6820 $as_echo "$AR" >&6; }
6821 else
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6824 fi
6825
6826
6827 fi
6828 if test -z "$ac_cv_prog_AR"; then
6829 ac_ct_AR=$AR
6830 # Extract the first word of "ar", so it can be a program name with args.
6831 set dummy ar; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 if test -n "$ac_ct_AR"; then
6838 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_prog_ac_ct_AR="ar"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855 fi
6856 fi
6857 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6858 if test -n "$ac_ct_AR"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6860 $as_echo "$ac_ct_AR" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 fi
6865
6866 if test "x$ac_ct_AR" = x; then
6867 AR="false"
6868 else
6869 case $cross_compiling:$ac_tool_warned in
6870 yes:)
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6873 ac_tool_warned=yes ;;
6874 esac
6875 AR=$ac_ct_AR
6876 fi
6877 else
6878 AR="$ac_cv_prog_AR"
6879 fi
6880
6881 test -z "$AR" && AR=ar
6882 test -z "$AR_FLAGS" && AR_FLAGS=cru
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894 if test -n "$ac_tool_prefix"; then
6895 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6896 set dummy ${ac_tool_prefix}strip; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if test "${ac_cv_prog_STRIP+set}" = set; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 if test -n "$STRIP"; then
6903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 break 2
6915 fi
6916 done
6917 done
6918 IFS=$as_save_IFS
6919
6920 fi
6921 fi
6922 STRIP=$ac_cv_prog_STRIP
6923 if test -n "$STRIP"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6925 $as_echo "$STRIP" >&6; }
6926 else
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6929 fi
6930
6931
6932 fi
6933 if test -z "$ac_cv_prog_STRIP"; then
6934 ac_ct_STRIP=$STRIP
6935 # Extract the first word of "strip", so it can be a program name with args.
6936 set dummy strip; ac_word=$2
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 $as_echo_n "checking for $ac_word... " >&6; }
6939 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 if test -n "$ac_ct_STRIP"; then
6943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_prog_ac_ct_STRIP="strip"
6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960 fi
6961 fi
6962 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6963 if test -n "$ac_ct_STRIP"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6965 $as_echo "$ac_ct_STRIP" >&6; }
6966 else
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 $as_echo "no" >&6; }
6969 fi
6970
6971 if test "x$ac_ct_STRIP" = x; then
6972 STRIP=":"
6973 else
6974 case $cross_compiling:$ac_tool_warned in
6975 yes:)
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6978 ac_tool_warned=yes ;;
6979 esac
6980 STRIP=$ac_ct_STRIP
6981 fi
6982 else
6983 STRIP="$ac_cv_prog_STRIP"
6984 fi
6985
6986 test -z "$STRIP" && STRIP=:
6987
6988
6989
6990
6991
6992
6993 if test -n "$ac_tool_prefix"; then
6994 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6995 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 if test -n "$RANLIB"; then
7002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7003 else
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7014 fi
7015 done
7016 done
7017 IFS=$as_save_IFS
7018
7019 fi
7020 fi
7021 RANLIB=$ac_cv_prog_RANLIB
7022 if test -n "$RANLIB"; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7024 $as_echo "$RANLIB" >&6; }
7025 else
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7028 fi
7029
7030
7031 fi
7032 if test -z "$ac_cv_prog_RANLIB"; then
7033 ac_ct_RANLIB=$RANLIB
7034 # Extract the first word of "ranlib", so it can be a program name with args.
7035 set dummy ranlib; ac_word=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 if test -n "$ac_ct_RANLIB"; then
7042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_prog_ac_ct_RANLIB="ranlib"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7054 fi
7055 done
7056 done
7057 IFS=$as_save_IFS
7058
7059 fi
7060 fi
7061 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7062 if test -n "$ac_ct_RANLIB"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7064 $as_echo "$ac_ct_RANLIB" >&6; }
7065 else
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7068 fi
7069
7070 if test "x$ac_ct_RANLIB" = x; then
7071 RANLIB=":"
7072 else
7073 case $cross_compiling:$ac_tool_warned in
7074 yes:)
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077 ac_tool_warned=yes ;;
7078 esac
7079 RANLIB=$ac_ct_RANLIB
7080 fi
7081 else
7082 RANLIB="$ac_cv_prog_RANLIB"
7083 fi
7084
7085 test -z "$RANLIB" && RANLIB=:
7086
7087
7088
7089
7090
7091
7092 # Determine commands to create old-style static archives.
7093 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7094 old_postinstall_cmds='chmod 644 $oldlib'
7095 old_postuninstall_cmds=
7096
7097 if test -n "$RANLIB"; then
7098 case $host_os in
7099 openbsd*)
7100 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7101 ;;
7102 *)
7103 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7104 ;;
7105 esac
7106 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7107 fi
7108
7109 case $host_os in
7110 darwin*)
7111 lock_old_archive_extraction=yes ;;
7112 *)
7113 lock_old_archive_extraction=no ;;
7114 esac
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
7149
7150
7151
7152
7153
7154 # If no C compiler was specified, use CC.
7155 LTCC=${LTCC-"$CC"}
7156
7157 # If no C compiler flags were specified, use CFLAGS.
7158 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7159
7160 # Allow CC to be a program name with arguments.
7161 compiler=$CC
7162
7163
7164 # Check for command to grab the raw symbol name followed by C symbol from nm.
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7166 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7167 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170
7171 # These are sane defaults that work on at least a few old systems.
7172 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7173
7174 # Character class describing NM global symbol codes.
7175 symcode='[BCDEGRST]'
7176
7177 # Regexp to match symbols that can be accessed directly from C.
7178 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7179
7180 # Define system-specific variables.
7181 case $host_os in
7182 aix*)
7183 symcode='[BCDT]'
7184 ;;
7185 cygwin* | mingw* | pw32* | cegcc*)
7186 symcode='[ABCDGISTW]'
7187 ;;
7188 hpux*)
7189 if test "$host_cpu" = ia64; then
7190 symcode='[ABCDEGRST]'
7191 fi
7192 ;;
7193 irix* | nonstopux*)
7194 symcode='[BCDEGRST]'
7195 ;;
7196 osf*)
7197 symcode='[BCDEGQRST]'
7198 ;;
7199 solaris*)
7200 symcode='[BDRT]'
7201 ;;
7202 sco3.2v5*)
7203 symcode='[DT]'
7204 ;;
7205 sysv4.2uw2*)
7206 symcode='[DT]'
7207 ;;
7208 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7209 symcode='[ABDT]'
7210 ;;
7211 sysv4)
7212 symcode='[DFNSTU]'
7213 ;;
7214 esac
7215
7216 # If we're using GNU nm, then use its standard symbol codes.
7217 case `$NM -V 2>&1` in
7218 *GNU* | *'with BFD'*)
7219 symcode='[ABCDGIRSTW]' ;;
7220 esac
7221
7222 # Transform an extracted symbol line into a proper C declaration.
7223 # Some systems (esp. on ia64) link data and code symbols differently,
7224 # so use this general approach.
7225 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7226
7227 # Transform an extracted symbol line into symbol name and symbol address
7228 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7229 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'"
7230
7231 # Handle CRLF in mingw tool chain
7232 opt_cr=
7233 case $build_os in
7234 mingw*)
7235 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7236 ;;
7237 esac
7238
7239 # Try without a prefix underscore, then with it.
7240 for ac_symprfx in "" "_"; do
7241
7242 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7243 symxfrm="\\1 $ac_symprfx\\2 \\2"
7244
7245 # Write the raw and C identifiers.
7246 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7247 # Fake it for dumpbin and say T for any non-static function
7248 # and D for any global variable.
7249 # Also find C++ and __fastcall symbols from MSVC++,
7250 # which start with @ or ?.
7251 lt_cv_sys_global_symbol_pipe="$AWK '"\
7252 " {last_section=section; section=\$ 3};"\
7253 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7254 " \$ 0!~/External *\|/{next};"\
7255 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7256 " {if(hide[section]) next};"\
7257 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7258 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7259 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7260 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7261 " ' prfx=^$ac_symprfx"
7262 else
7263 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7264 fi
7265
7266 # Check to see that the pipe works correctly.
7267 pipe_works=no
7268
7269 rm -f conftest*
7270 cat > conftest.$ac_ext <<_LT_EOF
7271 #ifdef __cplusplus
7272 extern "C" {
7273 #endif
7274 char nm_test_var;
7275 void nm_test_func(void);
7276 void nm_test_func(void){}
7277 #ifdef __cplusplus
7278 }
7279 #endif
7280 int main(){nm_test_var='a';nm_test_func();return(0);}
7281 _LT_EOF
7282
7283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7284 (eval $ac_compile) 2>&5
7285 ac_status=$?
7286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7287 test $ac_status = 0; }; then
7288 # Now try to grab the symbols.
7289 nlist=conftest.nm
7290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7291 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7292 ac_status=$?
7293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7294 test $ac_status = 0; } && test -s "$nlist"; then
7295 # Try sorting and uniquifying the output.
7296 if sort "$nlist" | uniq > "$nlist"T; then
7297 mv -f "$nlist"T "$nlist"
7298 else
7299 rm -f "$nlist"T
7300 fi
7301
7302 # Make sure that we snagged all the symbols we need.
7303 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7304 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7305 cat <<_LT_EOF > conftest.$ac_ext
7306 #ifdef __cplusplus
7307 extern "C" {
7308 #endif
7309
7310 _LT_EOF
7311 # Now generate the symbol file.
7312 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7313
7314 cat <<_LT_EOF >> conftest.$ac_ext
7315
7316 /* The mapping between symbol names and symbols. */
7317 const struct {
7318 const char *name;
7319 void *address;
7320 }
7321 lt__PROGRAM__LTX_preloaded_symbols[] =
7322 {
7323 { "@PROGRAM@", (void *) 0 },
7324 _LT_EOF
7325 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7326 cat <<\_LT_EOF >> conftest.$ac_ext
7327 {0, (void *) 0}
7328 };
7329
7330 /* This works around a problem in FreeBSD linker */
7331 #ifdef FREEBSD_WORKAROUND
7332 static const void *lt_preloaded_setup() {
7333 return lt__PROGRAM__LTX_preloaded_symbols;
7334 }
7335 #endif
7336
7337 #ifdef __cplusplus
7338 }
7339 #endif
7340 _LT_EOF
7341 # Now try linking the two files.
7342 mv conftest.$ac_objext conftstm.$ac_objext
7343 lt_save_LIBS="$LIBS"
7344 lt_save_CFLAGS="$CFLAGS"
7345 LIBS="conftstm.$ac_objext"
7346 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7348 (eval $ac_link) 2>&5
7349 ac_status=$?
7350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7352 pipe_works=yes
7353 fi
7354 LIBS="$lt_save_LIBS"
7355 CFLAGS="$lt_save_CFLAGS"
7356 else
7357 echo "cannot find nm_test_func in $nlist" >&5
7358 fi
7359 else
7360 echo "cannot find nm_test_var in $nlist" >&5
7361 fi
7362 else
7363 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7364 fi
7365 else
7366 echo "$progname: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7368 fi
7369 rm -rf conftest* conftst*
7370
7371 # Do not use the global_symbol_pipe unless it works.
7372 if test "$pipe_works" = yes; then
7373 break
7374 else
7375 lt_cv_sys_global_symbol_pipe=
7376 fi
7377 done
7378
7379 fi
7380
7381 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7382 lt_cv_sys_global_symbol_to_cdecl=
7383 fi
7384 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7386 $as_echo "failed" >&6; }
7387 else
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7389 $as_echo "ok" >&6; }
7390 fi
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413 # Check whether --enable-libtool-lock was given.
7414 if test "${enable_libtool_lock+set}" = set; then :
7415 enableval=$enable_libtool_lock;
7416 fi
7417
7418 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7419
7420 # Some flags need to be propagated to the compiler or linker for good
7421 # libtool support.
7422 case $host in
7423 ia64-*-hpux*)
7424 # Find out which ABI we are using.
7425 echo 'int i;' > conftest.$ac_ext
7426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7427 (eval $ac_compile) 2>&5
7428 ac_status=$?
7429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7430 test $ac_status = 0; }; then
7431 case `/usr/bin/file conftest.$ac_objext` in
7432 *ELF-32*)
7433 HPUX_IA64_MODE="32"
7434 ;;
7435 *ELF-64*)
7436 HPUX_IA64_MODE="64"
7437 ;;
7438 esac
7439 fi
7440 rm -rf conftest*
7441 ;;
7442 *-*-irix6*)
7443 # Find out which ABI we are using.
7444 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7446 (eval $ac_compile) 2>&5
7447 ac_status=$?
7448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449 test $ac_status = 0; }; then
7450 if test "$lt_cv_prog_gnu_ld" = yes; then
7451 case `/usr/bin/file conftest.$ac_objext` in
7452 *32-bit*)
7453 LD="${LD-ld} -melf32bsmip"
7454 ;;
7455 *N32*)
7456 LD="${LD-ld} -melf32bmipn32"
7457 ;;
7458 *64-bit*)
7459 LD="${LD-ld} -melf64bmip"
7460 ;;
7461 esac
7462 else
7463 case `/usr/bin/file conftest.$ac_objext` in
7464 *32-bit*)
7465 LD="${LD-ld} -32"
7466 ;;
7467 *N32*)
7468 LD="${LD-ld} -n32"
7469 ;;
7470 *64-bit*)
7471 LD="${LD-ld} -64"
7472 ;;
7473 esac
7474 fi
7475 fi
7476 rm -rf conftest*
7477 ;;
7478
7479 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7480 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7481 # Find out which ABI we are using.
7482 echo 'int i;' > conftest.$ac_ext
7483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7484 (eval $ac_compile) 2>&5
7485 ac_status=$?
7486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7487 test $ac_status = 0; }; then
7488 case `/usr/bin/file conftest.o` in
7489 *32-bit*)
7490 case $host in
7491 x86_64-*kfreebsd*-gnu)
7492 LD="${LD-ld} -m elf_i386_fbsd"
7493 ;;
7494 x86_64-*linux*)
7495 case `/usr/bin/file conftest.o` in
7496 *x86-64*)
7497 LD="${LD-ld} -m elf32_x86_64"
7498 ;;
7499 *)
7500 LD="${LD-ld} -m elf_i386"
7501 ;;
7502 esac
7503 ;;
7504 powerpc64le-*linux*)
7505 LD="${LD-ld} -m elf32lppclinux"
7506 ;;
7507 powerpc64-*linux*)
7508 LD="${LD-ld} -m elf32ppclinux"
7509 ;;
7510 s390x-*linux*)
7511 LD="${LD-ld} -m elf_s390"
7512 ;;
7513 sparc64-*linux*)
7514 LD="${LD-ld} -m elf32_sparc"
7515 ;;
7516 esac
7517 ;;
7518 *64-bit*)
7519 case $host in
7520 x86_64-*kfreebsd*-gnu)
7521 LD="${LD-ld} -m elf_x86_64_fbsd"
7522 ;;
7523 x86_64-*linux*)
7524 LD="${LD-ld} -m elf_x86_64"
7525 ;;
7526 powerpcle-*linux*)
7527 LD="${LD-ld} -m elf64lppc"
7528 ;;
7529 powerpc-*linux*)
7530 LD="${LD-ld} -m elf64ppc"
7531 ;;
7532 s390*-*linux*|s390*-*tpf*)
7533 LD="${LD-ld} -m elf64_s390"
7534 ;;
7535 sparc*-*linux*)
7536 LD="${LD-ld} -m elf64_sparc"
7537 ;;
7538 esac
7539 ;;
7540 esac
7541 fi
7542 rm -rf conftest*
7543 ;;
7544
7545 *-*-sco3.2v5*)
7546 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7547 SAVE_CFLAGS="$CFLAGS"
7548 CFLAGS="$CFLAGS -belf"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7550 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7551 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 ac_ext=c
7555 ac_cpp='$CPP $CPPFLAGS'
7556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7562
7563 int
7564 main ()
7565 {
7566
7567 ;
7568 return 0;
7569 }
7570 _ACEOF
7571 if ac_fn_c_try_link "$LINENO"; then :
7572 lt_cv_cc_needs_belf=yes
7573 else
7574 lt_cv_cc_needs_belf=no
7575 fi
7576 rm -f core conftest.err conftest.$ac_objext \
7577 conftest$ac_exeext conftest.$ac_ext
7578 ac_ext=c
7579 ac_cpp='$CPP $CPPFLAGS'
7580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7583
7584 fi
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7586 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7587 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7588 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7589 CFLAGS="$SAVE_CFLAGS"
7590 fi
7591 ;;
7592 sparc*-*solaris*)
7593 # Find out which ABI we are using.
7594 echo 'int i;' > conftest.$ac_ext
7595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7596 (eval $ac_compile) 2>&5
7597 ac_status=$?
7598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7599 test $ac_status = 0; }; then
7600 case `/usr/bin/file conftest.o` in
7601 *64-bit*)
7602 case $lt_cv_prog_gnu_ld in
7603 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7604 *)
7605 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7606 LD="${LD-ld} -64"
7607 fi
7608 ;;
7609 esac
7610 ;;
7611 esac
7612 fi
7613 rm -rf conftest*
7614 ;;
7615 esac
7616
7617 need_locks="$enable_libtool_lock"
7618
7619
7620 case $host_os in
7621 rhapsody* | darwin*)
7622 if test -n "$ac_tool_prefix"; then
7623 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7624 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7628 $as_echo_n "(cached) " >&6
7629 else
7630 if test -n "$DSYMUTIL"; then
7631 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7632 else
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7640 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 break 2
7643 fi
7644 done
7645 done
7646 IFS=$as_save_IFS
7647
7648 fi
7649 fi
7650 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7651 if test -n "$DSYMUTIL"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7653 $as_echo "$DSYMUTIL" >&6; }
7654 else
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7657 fi
7658
7659
7660 fi
7661 if test -z "$ac_cv_prog_DSYMUTIL"; then
7662 ac_ct_DSYMUTIL=$DSYMUTIL
7663 # Extract the first word of "dsymutil", so it can be a program name with args.
7664 set dummy dsymutil; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7668 $as_echo_n "(cached) " >&6
7669 else
7670 if test -n "$ac_ct_DSYMUTIL"; then
7671 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7680 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684 done
7685 done
7686 IFS=$as_save_IFS
7687
7688 fi
7689 fi
7690 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7691 if test -n "$ac_ct_DSYMUTIL"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7693 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7694 else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7697 fi
7698
7699 if test "x$ac_ct_DSYMUTIL" = x; then
7700 DSYMUTIL=":"
7701 else
7702 case $cross_compiling:$ac_tool_warned in
7703 yes:)
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706 ac_tool_warned=yes ;;
7707 esac
7708 DSYMUTIL=$ac_ct_DSYMUTIL
7709 fi
7710 else
7711 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7712 fi
7713
7714 if test -n "$ac_tool_prefix"; then
7715 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7716 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7721 else
7722 if test -n "$NMEDIT"; then
7723 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728 IFS=$as_save_IFS
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7732 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 break 2
7735 fi
7736 done
7737 done
7738 IFS=$as_save_IFS
7739
7740 fi
7741 fi
7742 NMEDIT=$ac_cv_prog_NMEDIT
7743 if test -n "$NMEDIT"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7745 $as_echo "$NMEDIT" >&6; }
7746 else
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750
7751
7752 fi
7753 if test -z "$ac_cv_prog_NMEDIT"; then
7754 ac_ct_NMEDIT=$NMEDIT
7755 # Extract the first word of "nmedit", so it can be a program name with args.
7756 set dummy nmedit; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 if test -n "$ac_ct_NMEDIT"; then
7763 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7775 fi
7776 done
7777 done
7778 IFS=$as_save_IFS
7779
7780 fi
7781 fi
7782 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7783 if test -n "$ac_ct_NMEDIT"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7785 $as_echo "$ac_ct_NMEDIT" >&6; }
7786 else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 fi
7790
7791 if test "x$ac_ct_NMEDIT" = x; then
7792 NMEDIT=":"
7793 else
7794 case $cross_compiling:$ac_tool_warned in
7795 yes:)
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7798 ac_tool_warned=yes ;;
7799 esac
7800 NMEDIT=$ac_ct_NMEDIT
7801 fi
7802 else
7803 NMEDIT="$ac_cv_prog_NMEDIT"
7804 fi
7805
7806 if test -n "$ac_tool_prefix"; then
7807 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7808 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810 $as_echo_n "checking for $ac_word... " >&6; }
7811 if test "${ac_cv_prog_LIPO+set}" = set; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 if test -n "$LIPO"; then
7815 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7816 else
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 for as_dir in $PATH
7819 do
7820 IFS=$as_save_IFS
7821 test -z "$as_dir" && as_dir=.
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7824 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 break 2
7827 fi
7828 done
7829 done
7830 IFS=$as_save_IFS
7831
7832 fi
7833 fi
7834 LIPO=$ac_cv_prog_LIPO
7835 if test -n "$LIPO"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7837 $as_echo "$LIPO" >&6; }
7838 else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7841 fi
7842
7843
7844 fi
7845 if test -z "$ac_cv_prog_LIPO"; then
7846 ac_ct_LIPO=$LIPO
7847 # Extract the first word of "lipo", so it can be a program name with args.
7848 set dummy lipo; ac_word=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 if test -n "$ac_ct_LIPO"; then
7855 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7856 else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7859 do
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_prog_ac_ct_LIPO="lipo"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7867 fi
7868 done
7869 done
7870 IFS=$as_save_IFS
7871
7872 fi
7873 fi
7874 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7875 if test -n "$ac_ct_LIPO"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7877 $as_echo "$ac_ct_LIPO" >&6; }
7878 else
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7881 fi
7882
7883 if test "x$ac_ct_LIPO" = x; then
7884 LIPO=":"
7885 else
7886 case $cross_compiling:$ac_tool_warned in
7887 yes:)
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7890 ac_tool_warned=yes ;;
7891 esac
7892 LIPO=$ac_ct_LIPO
7893 fi
7894 else
7895 LIPO="$ac_cv_prog_LIPO"
7896 fi
7897
7898 if test -n "$ac_tool_prefix"; then
7899 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7900 set dummy ${ac_tool_prefix}otool; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 if test -n "$OTOOL"; then
7907 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920 done
7921 done
7922 IFS=$as_save_IFS
7923
7924 fi
7925 fi
7926 OTOOL=$ac_cv_prog_OTOOL
7927 if test -n "$OTOOL"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7929 $as_echo "$OTOOL" >&6; }
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7933 fi
7934
7935
7936 fi
7937 if test -z "$ac_cv_prog_OTOOL"; then
7938 ac_ct_OTOOL=$OTOOL
7939 # Extract the first word of "otool", so it can be a program name with args.
7940 set dummy otool; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 if test -n "$ac_ct_OTOOL"; then
7947 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7951 do
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956 ac_cv_prog_ac_ct_OTOOL="otool"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7959 fi
7960 done
7961 done
7962 IFS=$as_save_IFS
7963
7964 fi
7965 fi
7966 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7967 if test -n "$ac_ct_OTOOL"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7969 $as_echo "$ac_ct_OTOOL" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7973 fi
7974
7975 if test "x$ac_ct_OTOOL" = x; then
7976 OTOOL=":"
7977 else
7978 case $cross_compiling:$ac_tool_warned in
7979 yes:)
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7982 ac_tool_warned=yes ;;
7983 esac
7984 OTOOL=$ac_ct_OTOOL
7985 fi
7986 else
7987 OTOOL="$ac_cv_prog_OTOOL"
7988 fi
7989
7990 if test -n "$ac_tool_prefix"; then
7991 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7992 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 if test -n "$OTOOL64"; then
7999 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8008 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 break 2
8011 fi
8012 done
8013 done
8014 IFS=$as_save_IFS
8015
8016 fi
8017 fi
8018 OTOOL64=$ac_cv_prog_OTOOL64
8019 if test -n "$OTOOL64"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8021 $as_echo "$OTOOL64" >&6; }
8022 else
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8025 fi
8026
8027
8028 fi
8029 if test -z "$ac_cv_prog_OTOOL64"; then
8030 ac_ct_OTOOL64=$OTOOL64
8031 # Extract the first word of "otool64", so it can be a program name with args.
8032 set dummy otool64; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 if test -n "$ac_ct_OTOOL64"; then
8039 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8048 ac_cv_prog_ac_ct_OTOOL64="otool64"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8051 fi
8052 done
8053 done
8054 IFS=$as_save_IFS
8055
8056 fi
8057 fi
8058 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8059 if test -n "$ac_ct_OTOOL64"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8061 $as_echo "$ac_ct_OTOOL64" >&6; }
8062 else
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8065 fi
8066
8067 if test "x$ac_ct_OTOOL64" = x; then
8068 OTOOL64=":"
8069 else
8070 case $cross_compiling:$ac_tool_warned in
8071 yes:)
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8074 ac_tool_warned=yes ;;
8075 esac
8076 OTOOL64=$ac_ct_OTOOL64
8077 fi
8078 else
8079 OTOOL64="$ac_cv_prog_OTOOL64"
8080 fi
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8109 $as_echo_n "checking for -single_module linker flag... " >&6; }
8110 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 lt_cv_apple_cc_single_mod=no
8114 if test -z "${LT_MULTI_MODULE}"; then
8115 # By default we will add the -single_module flag. You can override
8116 # by either setting the environment variable LT_MULTI_MODULE
8117 # non-empty at configure time, or by adding -multi_module to the
8118 # link flags.
8119 rm -rf libconftest.dylib*
8120 echo "int foo(void){return 1;}" > conftest.c
8121 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8122 -dynamiclib -Wl,-single_module conftest.c" >&5
8123 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8124 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8125 _lt_result=$?
8126 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8127 lt_cv_apple_cc_single_mod=yes
8128 else
8129 cat conftest.err >&5
8130 fi
8131 rm -rf libconftest.dylib*
8132 rm -f conftest.*
8133 fi
8134 fi
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8136 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8138 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8139 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 lt_cv_ld_exported_symbols_list=no
8143 save_LDFLAGS=$LDFLAGS
8144 echo "_main" > conftest.sym
8145 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8148
8149 int
8150 main ()
8151 {
8152
8153 ;
8154 return 0;
8155 }
8156 _ACEOF
8157 if ac_fn_c_try_link "$LINENO"; then :
8158 lt_cv_ld_exported_symbols_list=yes
8159 else
8160 lt_cv_ld_exported_symbols_list=no
8161 fi
8162 rm -f core conftest.err conftest.$ac_objext \
8163 conftest$ac_exeext conftest.$ac_ext
8164 LDFLAGS="$save_LDFLAGS"
8165
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8168 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8170 $as_echo_n "checking for -force_load linker flag... " >&6; }
8171 if test "${lt_cv_ld_force_load+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 lt_cv_ld_force_load=no
8175 cat > conftest.c << _LT_EOF
8176 int forced_loaded() { return 2;}
8177 _LT_EOF
8178 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8179 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8180 echo "$AR cru libconftest.a conftest.o" >&5
8181 $AR cru libconftest.a conftest.o 2>&5
8182 cat > conftest.c << _LT_EOF
8183 int main() { return 0;}
8184 _LT_EOF
8185 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8186 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8187 _lt_result=$?
8188 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8189 lt_cv_ld_force_load=yes
8190 else
8191 cat conftest.err >&5
8192 fi
8193 rm -f conftest.err libconftest.a conftest conftest.c
8194 rm -rf conftest.dSYM
8195
8196 fi
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8198 $as_echo "$lt_cv_ld_force_load" >&6; }
8199 case $host_os in
8200 rhapsody* | darwin1.[012])
8201 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8202 darwin1.*)
8203 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8204 darwin*) # darwin 5.x on
8205 # if running on 10.5 or later, the deployment target defaults
8206 # to the OS version, if on x86, and 10.4, the deployment
8207 # target defaults to 10.4. Don't you love it?
8208 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8209 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8210 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8211 10.[012][,.]*)
8212 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8213 10.*)
8214 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8215 esac
8216 ;;
8217 esac
8218 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8219 _lt_dar_single_mod='$single_module'
8220 fi
8221 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8222 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8223 else
8224 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8225 fi
8226 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8227 _lt_dsymutil='~$DSYMUTIL $lib || :'
8228 else
8229 _lt_dsymutil=
8230 fi
8231 ;;
8232 esac
8233
8234 for ac_header in dlfcn.h
8235 do :
8236 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8237 "
8238 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8239 cat >>confdefs.h <<_ACEOF
8240 #define HAVE_DLFCN_H 1
8241 _ACEOF
8242
8243 fi
8244
8245 done
8246
8247
8248
8249
8250
8251
8252 # Set options
8253
8254
8255
8256 enable_dlopen=no
8257
8258
8259 enable_win32_dll=no
8260
8261
8262 # Check whether --enable-shared was given.
8263 if test "${enable_shared+set}" = set; then :
8264 enableval=$enable_shared; p=${PACKAGE-default}
8265 case $enableval in
8266 yes) enable_shared=yes ;;
8267 no) enable_shared=no ;;
8268 *)
8269 enable_shared=no
8270 # Look at the argument we got. We use all the common list separators.
8271 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8272 for pkg in $enableval; do
8273 IFS="$lt_save_ifs"
8274 if test "X$pkg" = "X$p"; then
8275 enable_shared=yes
8276 fi
8277 done
8278 IFS="$lt_save_ifs"
8279 ;;
8280 esac
8281 else
8282 enable_shared=yes
8283 fi
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293 # Check whether --enable-static was given.
8294 if test "${enable_static+set}" = set; then :
8295 enableval=$enable_static; p=${PACKAGE-default}
8296 case $enableval in
8297 yes) enable_static=yes ;;
8298 no) enable_static=no ;;
8299 *)
8300 enable_static=no
8301 # Look at the argument we got. We use all the common list separators.
8302 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8303 for pkg in $enableval; do
8304 IFS="$lt_save_ifs"
8305 if test "X$pkg" = "X$p"; then
8306 enable_static=yes
8307 fi
8308 done
8309 IFS="$lt_save_ifs"
8310 ;;
8311 esac
8312 else
8313 enable_static=yes
8314 fi
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325 # Check whether --with-pic was given.
8326 if test "${with_pic+set}" = set; then :
8327 withval=$with_pic; pic_mode="$withval"
8328 else
8329 pic_mode=default
8330 fi
8331
8332
8333 test -z "$pic_mode" && pic_mode=default
8334
8335
8336
8337
8338
8339
8340
8341 # Check whether --enable-fast-install was given.
8342 if test "${enable_fast_install+set}" = set; then :
8343 enableval=$enable_fast_install; p=${PACKAGE-default}
8344 case $enableval in
8345 yes) enable_fast_install=yes ;;
8346 no) enable_fast_install=no ;;
8347 *)
8348 enable_fast_install=no
8349 # Look at the argument we got. We use all the common list separators.
8350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8351 for pkg in $enableval; do
8352 IFS="$lt_save_ifs"
8353 if test "X$pkg" = "X$p"; then
8354 enable_fast_install=yes
8355 fi
8356 done
8357 IFS="$lt_save_ifs"
8358 ;;
8359 esac
8360 else
8361 enable_fast_install=yes
8362 fi
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374 # This can be used to rebuild libtool when needed
8375 LIBTOOL_DEPS="$ltmain"
8376
8377 # Always use our own libtool.
8378 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405 test -z "$LN_S" && LN_S="ln -s"
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420 if test -n "${ZSH_VERSION+set}" ; then
8421 setopt NO_GLOB_SUBST
8422 fi
8423
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8425 $as_echo_n "checking for objdir... " >&6; }
8426 if test "${lt_cv_objdir+set}" = set; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 rm -f .libs 2>/dev/null
8430 mkdir .libs 2>/dev/null
8431 if test -d .libs; then
8432 lt_cv_objdir=.libs
8433 else
8434 # MS-DOS does not allow filenames that begin with a dot.
8435 lt_cv_objdir=_libs
8436 fi
8437 rmdir .libs 2>/dev/null
8438 fi
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8440 $as_echo "$lt_cv_objdir" >&6; }
8441 objdir=$lt_cv_objdir
8442
8443
8444
8445
8446
8447 cat >>confdefs.h <<_ACEOF
8448 #define LT_OBJDIR "$lt_cv_objdir/"
8449 _ACEOF
8450
8451
8452
8453
8454 case $host_os in
8455 aix3*)
8456 # AIX sometimes has problems with the GCC collect2 program. For some
8457 # reason, if we set the COLLECT_NAMES environment variable, the problems
8458 # vanish in a puff of smoke.
8459 if test "X${COLLECT_NAMES+set}" != Xset; then
8460 COLLECT_NAMES=
8461 export COLLECT_NAMES
8462 fi
8463 ;;
8464 esac
8465
8466 # Global variables:
8467 ofile=libtool
8468 can_build_shared=yes
8469
8470 # All known linkers require a `.a' archive for static linking (except MSVC,
8471 # which needs '.lib').
8472 libext=a
8473
8474 with_gnu_ld="$lt_cv_prog_gnu_ld"
8475
8476 old_CC="$CC"
8477 old_CFLAGS="$CFLAGS"
8478
8479 # Set sane defaults for various variables
8480 test -z "$CC" && CC=cc
8481 test -z "$LTCC" && LTCC=$CC
8482 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8483 test -z "$LD" && LD=ld
8484 test -z "$ac_objext" && ac_objext=o
8485
8486 for cc_temp in $compiler""; do
8487 case $cc_temp in
8488 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8489 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8490 \-*) ;;
8491 *) break;;
8492 esac
8493 done
8494 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8495
8496
8497 # Only perform the check for file, if the check method requires it
8498 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8499 case $deplibs_check_method in
8500 file_magic*)
8501 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8503 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8504 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 case $MAGIC_CMD in
8508 [\\/*] | ?:[\\/]*)
8509 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8510 ;;
8511 *)
8512 lt_save_MAGIC_CMD="$MAGIC_CMD"
8513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8514 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8515 for ac_dir in $ac_dummy; do
8516 IFS="$lt_save_ifs"
8517 test -z "$ac_dir" && ac_dir=.
8518 if test -f $ac_dir/${ac_tool_prefix}file; then
8519 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8520 if test -n "$file_magic_test_file"; then
8521 case $deplibs_check_method in
8522 "file_magic "*)
8523 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8526 $EGREP "$file_magic_regex" > /dev/null; then
8527 :
8528 else
8529 cat <<_LT_EOF 1>&2
8530
8531 *** Warning: the command libtool uses to detect shared libraries,
8532 *** $file_magic_cmd, produces output that libtool cannot recognize.
8533 *** The result is that libtool may fail to recognize shared libraries
8534 *** as such. This will affect the creation of libtool libraries that
8535 *** depend on shared libraries, but programs linked with such libtool
8536 *** libraries will work regardless of this problem. Nevertheless, you
8537 *** may want to report the problem to your system manager and/or to
8538 *** bug-libtool@gnu.org
8539
8540 _LT_EOF
8541 fi ;;
8542 esac
8543 fi
8544 break
8545 fi
8546 done
8547 IFS="$lt_save_ifs"
8548 MAGIC_CMD="$lt_save_MAGIC_CMD"
8549 ;;
8550 esac
8551 fi
8552
8553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8554 if test -n "$MAGIC_CMD"; then
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8556 $as_echo "$MAGIC_CMD" >&6; }
8557 else
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559 $as_echo "no" >&6; }
8560 fi
8561
8562
8563
8564
8565
8566 if test -z "$lt_cv_path_MAGIC_CMD"; then
8567 if test -n "$ac_tool_prefix"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8569 $as_echo_n "checking for file... " >&6; }
8570 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8571 $as_echo_n "(cached) " >&6
8572 else
8573 case $MAGIC_CMD in
8574 [\\/*] | ?:[\\/]*)
8575 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8576 ;;
8577 *)
8578 lt_save_MAGIC_CMD="$MAGIC_CMD"
8579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8580 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8581 for ac_dir in $ac_dummy; do
8582 IFS="$lt_save_ifs"
8583 test -z "$ac_dir" && ac_dir=.
8584 if test -f $ac_dir/file; then
8585 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8586 if test -n "$file_magic_test_file"; then
8587 case $deplibs_check_method in
8588 "file_magic "*)
8589 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8591 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8592 $EGREP "$file_magic_regex" > /dev/null; then
8593 :
8594 else
8595 cat <<_LT_EOF 1>&2
8596
8597 *** Warning: the command libtool uses to detect shared libraries,
8598 *** $file_magic_cmd, produces output that libtool cannot recognize.
8599 *** The result is that libtool may fail to recognize shared libraries
8600 *** as such. This will affect the creation of libtool libraries that
8601 *** depend on shared libraries, but programs linked with such libtool
8602 *** libraries will work regardless of this problem. Nevertheless, you
8603 *** may want to report the problem to your system manager and/or to
8604 *** bug-libtool@gnu.org
8605
8606 _LT_EOF
8607 fi ;;
8608 esac
8609 fi
8610 break
8611 fi
8612 done
8613 IFS="$lt_save_ifs"
8614 MAGIC_CMD="$lt_save_MAGIC_CMD"
8615 ;;
8616 esac
8617 fi
8618
8619 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8620 if test -n "$MAGIC_CMD"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8622 $as_echo "$MAGIC_CMD" >&6; }
8623 else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8626 fi
8627
8628
8629 else
8630 MAGIC_CMD=:
8631 fi
8632 fi
8633
8634 fi
8635 ;;
8636 esac
8637
8638 # Use C for the default configuration in the libtool script
8639
8640 lt_save_CC="$CC"
8641 ac_ext=c
8642 ac_cpp='$CPP $CPPFLAGS'
8643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8646
8647
8648 # Source file extension for C test sources.
8649 ac_ext=c
8650
8651 # Object file extension for compiled C test sources.
8652 objext=o
8653 objext=$objext
8654
8655 # Code to be used in simple compile tests
8656 lt_simple_compile_test_code="int some_variable = 0;"
8657
8658 # Code to be used in simple link tests
8659 lt_simple_link_test_code='int main(){return(0);}'
8660
8661
8662
8663
8664
8665
8666
8667 # If no C compiler was specified, use CC.
8668 LTCC=${LTCC-"$CC"}
8669
8670 # If no C compiler flags were specified, use CFLAGS.
8671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8672
8673 # Allow CC to be a program name with arguments.
8674 compiler=$CC
8675
8676 # Save the default compiler, since it gets overwritten when the other
8677 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8678 compiler_DEFAULT=$CC
8679
8680 # save warnings/boilerplate of simple test code
8681 ac_outfile=conftest.$ac_objext
8682 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8683 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8684 _lt_compiler_boilerplate=`cat conftest.err`
8685 $RM conftest*
8686
8687 ac_outfile=conftest.$ac_objext
8688 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8689 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8690 _lt_linker_boilerplate=`cat conftest.err`
8691 $RM -r conftest*
8692
8693
8694 ## CAVEAT EMPTOR:
8695 ## There is no encapsulation within the following macros, do not change
8696 ## the running order or otherwise move them around unless you know exactly
8697 ## what you are doing...
8698 if test -n "$compiler"; then
8699
8700 lt_prog_compiler_no_builtin_flag=
8701
8702 if test "$GCC" = yes; then
8703 case $cc_basename in
8704 nvcc*)
8705 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8706 *)
8707 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8708 esac
8709
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8711 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8712 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 lt_cv_prog_compiler_rtti_exceptions=no
8716 ac_outfile=conftest.$ac_objext
8717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8718 lt_compiler_flag="-fno-rtti -fno-exceptions"
8719 # Insert the option either (1) after the last *FLAGS variable, or
8720 # (2) before a word containing "conftest.", or (3) at the end.
8721 # Note that $ac_compile itself does not contain backslashes and begins
8722 # with a dollar sign (not a hyphen), so the echo should work correctly.
8723 # The option is referenced via a variable to avoid confusing sed.
8724 lt_compile=`echo "$ac_compile" | $SED \
8725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8727 -e 's:$: $lt_compiler_flag:'`
8728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8729 (eval "$lt_compile" 2>conftest.err)
8730 ac_status=$?
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 if (exit $ac_status) && test -s "$ac_outfile"; then
8734 # The compiler can only warn and ignore the option if not recognized
8735 # So say no if there are warnings other than the usual output.
8736 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8739 lt_cv_prog_compiler_rtti_exceptions=yes
8740 fi
8741 fi
8742 $RM conftest*
8743
8744 fi
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8746 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8747
8748 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8749 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8750 else
8751 :
8752 fi
8753
8754 fi
8755
8756
8757
8758
8759
8760
8761 lt_prog_compiler_wl=
8762 lt_prog_compiler_pic=
8763 lt_prog_compiler_static=
8764
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8766 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8767
8768 if test "$GCC" = yes; then
8769 lt_prog_compiler_wl='-Wl,'
8770 lt_prog_compiler_static='-static'
8771
8772 case $host_os in
8773 aix*)
8774 # All AIX code is PIC.
8775 if test "$host_cpu" = ia64; then
8776 # AIX 5 now supports IA64 processor
8777 lt_prog_compiler_static='-Bstatic'
8778 fi
8779 lt_prog_compiler_pic='-fPIC'
8780 ;;
8781
8782 amigaos*)
8783 case $host_cpu in
8784 powerpc)
8785 # see comment about AmigaOS4 .so support
8786 lt_prog_compiler_pic='-fPIC'
8787 ;;
8788 m68k)
8789 # FIXME: we need at least 68020 code to build shared libraries, but
8790 # adding the `-m68020' flag to GCC prevents building anything better,
8791 # like `-m68040'.
8792 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8793 ;;
8794 esac
8795 ;;
8796
8797 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8798 # PIC is the default for these OSes.
8799 ;;
8800
8801 mingw* | cygwin* | pw32* | os2* | cegcc*)
8802 # This hack is so that the source file can tell whether it is being
8803 # built for inclusion in a dll (and should export symbols for example).
8804 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8805 # (--disable-auto-import) libraries
8806 lt_prog_compiler_pic='-DDLL_EXPORT'
8807 ;;
8808
8809 darwin* | rhapsody*)
8810 # PIC is the default on this platform
8811 # Common symbols not allowed in MH_DYLIB files
8812 lt_prog_compiler_pic='-fno-common'
8813 ;;
8814
8815 haiku*)
8816 # PIC is the default for Haiku.
8817 # The "-static" flag exists, but is broken.
8818 lt_prog_compiler_static=
8819 ;;
8820
8821 hpux*)
8822 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8823 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8824 # sets the default TLS model and affects inlining.
8825 case $host_cpu in
8826 hppa*64*)
8827 # +Z the default
8828 ;;
8829 *)
8830 lt_prog_compiler_pic='-fPIC'
8831 ;;
8832 esac
8833 ;;
8834
8835 interix[3-9]*)
8836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8837 # Instead, we relocate shared libraries at runtime.
8838 ;;
8839
8840 msdosdjgpp*)
8841 # Just because we use GCC doesn't mean we suddenly get shared libraries
8842 # on systems that don't support them.
8843 lt_prog_compiler_can_build_shared=no
8844 enable_shared=no
8845 ;;
8846
8847 *nto* | *qnx*)
8848 # QNX uses GNU C++, but need to define -shared option too, otherwise
8849 # it will coredump.
8850 lt_prog_compiler_pic='-fPIC -shared'
8851 ;;
8852
8853 sysv4*MP*)
8854 if test -d /usr/nec; then
8855 lt_prog_compiler_pic=-Kconform_pic
8856 fi
8857 ;;
8858
8859 *)
8860 lt_prog_compiler_pic='-fPIC'
8861 ;;
8862 esac
8863
8864 case $cc_basename in
8865 nvcc*) # Cuda Compiler Driver 2.2
8866 lt_prog_compiler_wl='-Xlinker '
8867 lt_prog_compiler_pic='-Xcompiler -fPIC'
8868 ;;
8869 esac
8870 else
8871 # PORTME Check for flag to pass linker flags through the system compiler.
8872 case $host_os in
8873 aix*)
8874 lt_prog_compiler_wl='-Wl,'
8875 if test "$host_cpu" = ia64; then
8876 # AIX 5 now supports IA64 processor
8877 lt_prog_compiler_static='-Bstatic'
8878 else
8879 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8880 fi
8881 ;;
8882
8883 mingw* | cygwin* | pw32* | os2* | cegcc*)
8884 # This hack is so that the source file can tell whether it is being
8885 # built for inclusion in a dll (and should export symbols for example).
8886 lt_prog_compiler_pic='-DDLL_EXPORT'
8887 ;;
8888
8889 hpux9* | hpux10* | hpux11*)
8890 lt_prog_compiler_wl='-Wl,'
8891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8892 # not for PA HP-UX.
8893 case $host_cpu in
8894 hppa*64*|ia64*)
8895 # +Z the default
8896 ;;
8897 *)
8898 lt_prog_compiler_pic='+Z'
8899 ;;
8900 esac
8901 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8902 lt_prog_compiler_static='${wl}-a ${wl}archive'
8903 ;;
8904
8905 irix5* | irix6* | nonstopux*)
8906 lt_prog_compiler_wl='-Wl,'
8907 # PIC (with -KPIC) is the default.
8908 lt_prog_compiler_static='-non_shared'
8909 ;;
8910
8911 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8912 case $cc_basename in
8913 # old Intel for x86_64 which still supported -KPIC.
8914 ecc*)
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_pic='-KPIC'
8917 lt_prog_compiler_static='-static'
8918 ;;
8919 # icc used to be incompatible with GCC.
8920 # ICC 10 doesn't accept -KPIC any more.
8921 icc* | ifort*)
8922 lt_prog_compiler_wl='-Wl,'
8923 lt_prog_compiler_pic='-fPIC'
8924 lt_prog_compiler_static='-static'
8925 ;;
8926 # Lahey Fortran 8.1.
8927 lf95*)
8928 lt_prog_compiler_wl='-Wl,'
8929 lt_prog_compiler_pic='--shared'
8930 lt_prog_compiler_static='--static'
8931 ;;
8932 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8933 # Portland Group compilers (*not* the Pentium gcc compiler,
8934 # which looks to be a dead project)
8935 lt_prog_compiler_wl='-Wl,'
8936 lt_prog_compiler_pic='-fpic'
8937 lt_prog_compiler_static='-Bstatic'
8938 ;;
8939 ccc*)
8940 lt_prog_compiler_wl='-Wl,'
8941 # All Alpha code is PIC.
8942 lt_prog_compiler_static='-non_shared'
8943 ;;
8944 xl* | bgxl* | bgf* | mpixl*)
8945 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8946 lt_prog_compiler_wl='-Wl,'
8947 lt_prog_compiler_pic='-qpic'
8948 lt_prog_compiler_static='-qstaticlink'
8949 ;;
8950 *)
8951 case `$CC -V 2>&1 | sed 5q` in
8952 *Sun\ F* | *Sun*Fortran*)
8953 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8954 lt_prog_compiler_pic='-KPIC'
8955 lt_prog_compiler_static='-Bstatic'
8956 lt_prog_compiler_wl=''
8957 ;;
8958 *Sun\ C*)
8959 # Sun C 5.9
8960 lt_prog_compiler_pic='-KPIC'
8961 lt_prog_compiler_static='-Bstatic'
8962 lt_prog_compiler_wl='-Wl,'
8963 ;;
8964 esac
8965 ;;
8966 esac
8967 ;;
8968
8969 newsos6)
8970 lt_prog_compiler_pic='-KPIC'
8971 lt_prog_compiler_static='-Bstatic'
8972 ;;
8973
8974 *nto* | *qnx*)
8975 # QNX uses GNU C++, but need to define -shared option too, otherwise
8976 # it will coredump.
8977 lt_prog_compiler_pic='-fPIC -shared'
8978 ;;
8979
8980 osf3* | osf4* | osf5*)
8981 lt_prog_compiler_wl='-Wl,'
8982 # All OSF/1 code is PIC.
8983 lt_prog_compiler_static='-non_shared'
8984 ;;
8985
8986 rdos*)
8987 lt_prog_compiler_static='-non_shared'
8988 ;;
8989
8990 solaris*)
8991 lt_prog_compiler_pic='-KPIC'
8992 lt_prog_compiler_static='-Bstatic'
8993 case $cc_basename in
8994 f77* | f90* | f95*)
8995 lt_prog_compiler_wl='-Qoption ld ';;
8996 *)
8997 lt_prog_compiler_wl='-Wl,';;
8998 esac
8999 ;;
9000
9001 sunos4*)
9002 lt_prog_compiler_wl='-Qoption ld '
9003 lt_prog_compiler_pic='-PIC'
9004 lt_prog_compiler_static='-Bstatic'
9005 ;;
9006
9007 sysv4 | sysv4.2uw2* | sysv4.3*)
9008 lt_prog_compiler_wl='-Wl,'
9009 lt_prog_compiler_pic='-KPIC'
9010 lt_prog_compiler_static='-Bstatic'
9011 ;;
9012
9013 sysv4*MP*)
9014 if test -d /usr/nec ;then
9015 lt_prog_compiler_pic='-Kconform_pic'
9016 lt_prog_compiler_static='-Bstatic'
9017 fi
9018 ;;
9019
9020 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_pic='-KPIC'
9023 lt_prog_compiler_static='-Bstatic'
9024 ;;
9025
9026 unicos*)
9027 lt_prog_compiler_wl='-Wl,'
9028 lt_prog_compiler_can_build_shared=no
9029 ;;
9030
9031 uts4*)
9032 lt_prog_compiler_pic='-pic'
9033 lt_prog_compiler_static='-Bstatic'
9034 ;;
9035
9036 *)
9037 lt_prog_compiler_can_build_shared=no
9038 ;;
9039 esac
9040 fi
9041
9042 case $host_os in
9043 # For platforms which do not support PIC, -DPIC is meaningless:
9044 *djgpp*)
9045 lt_prog_compiler_pic=
9046 ;;
9047 *)
9048 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9049 ;;
9050 esac
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9052 $as_echo "$lt_prog_compiler_pic" >&6; }
9053
9054
9055
9056
9057
9058
9059 #
9060 # Check to make sure the PIC flag actually works.
9061 #
9062 if test -n "$lt_prog_compiler_pic"; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9064 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9065 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 lt_cv_prog_compiler_pic_works=no
9069 ac_outfile=conftest.$ac_objext
9070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9071 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9072 # Insert the option either (1) after the last *FLAGS variable, or
9073 # (2) before a word containing "conftest.", or (3) at the end.
9074 # Note that $ac_compile itself does not contain backslashes and begins
9075 # with a dollar sign (not a hyphen), so the echo should work correctly.
9076 # The option is referenced via a variable to avoid confusing sed.
9077 lt_compile=`echo "$ac_compile" | $SED \
9078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9080 -e 's:$: $lt_compiler_flag:'`
9081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9082 (eval "$lt_compile" 2>conftest.err)
9083 ac_status=$?
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 if (exit $ac_status) && test -s "$ac_outfile"; then
9087 # The compiler can only warn and ignore the option if not recognized
9088 # So say no if there are warnings other than the usual output.
9089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9092 lt_cv_prog_compiler_pic_works=yes
9093 fi
9094 fi
9095 $RM conftest*
9096
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9099 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9100
9101 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9102 case $lt_prog_compiler_pic in
9103 "" | " "*) ;;
9104 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9105 esac
9106 else
9107 lt_prog_compiler_pic=
9108 lt_prog_compiler_can_build_shared=no
9109 fi
9110
9111 fi
9112
9113
9114
9115
9116
9117
9118 #
9119 # Check to make sure the static flag actually works.
9120 #
9121 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9123 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9124 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9125 $as_echo_n "(cached) " >&6
9126 else
9127 lt_cv_prog_compiler_static_works=no
9128 save_LDFLAGS="$LDFLAGS"
9129 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9130 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9131 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9132 # The linker can only warn and ignore the option if not recognized
9133 # So say no if there are warnings
9134 if test -s conftest.err; then
9135 # Append any errors to the config.log.
9136 cat conftest.err 1>&5
9137 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9139 if diff conftest.exp conftest.er2 >/dev/null; then
9140 lt_cv_prog_compiler_static_works=yes
9141 fi
9142 else
9143 lt_cv_prog_compiler_static_works=yes
9144 fi
9145 fi
9146 $RM -r conftest*
9147 LDFLAGS="$save_LDFLAGS"
9148
9149 fi
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9151 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9152
9153 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9154 :
9155 else
9156 lt_prog_compiler_static=
9157 fi
9158
9159
9160
9161
9162
9163
9164
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9166 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9167 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9169 else
9170 lt_cv_prog_compiler_c_o=no
9171 $RM -r conftest 2>/dev/null
9172 mkdir conftest
9173 cd conftest
9174 mkdir out
9175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9176
9177 lt_compiler_flag="-o out/conftest2.$ac_objext"
9178 # Insert the option either (1) after the last *FLAGS variable, or
9179 # (2) before a word containing "conftest.", or (3) at the end.
9180 # Note that $ac_compile itself does not contain backslashes and begins
9181 # with a dollar sign (not a hyphen), so the echo should work correctly.
9182 lt_compile=`echo "$ac_compile" | $SED \
9183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9185 -e 's:$: $lt_compiler_flag:'`
9186 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9187 (eval "$lt_compile" 2>out/conftest.err)
9188 ac_status=$?
9189 cat out/conftest.err >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9192 then
9193 # The compiler can only warn and ignore the option if not recognized
9194 # So say no if there are warnings
9195 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9196 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9197 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9198 lt_cv_prog_compiler_c_o=yes
9199 fi
9200 fi
9201 chmod u+w . 2>&5
9202 $RM conftest*
9203 # SGI C++ compiler will create directory out/ii_files/ for
9204 # template instantiation
9205 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9206 $RM out/* && rmdir out
9207 cd ..
9208 $RM -r conftest
9209 $RM conftest*
9210
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9213 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9214
9215
9216
9217
9218
9219
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9221 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9222 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 lt_cv_prog_compiler_c_o=no
9226 $RM -r conftest 2>/dev/null
9227 mkdir conftest
9228 cd conftest
9229 mkdir out
9230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9231
9232 lt_compiler_flag="-o out/conftest2.$ac_objext"
9233 # Insert the option either (1) after the last *FLAGS variable, or
9234 # (2) before a word containing "conftest.", or (3) at the end.
9235 # Note that $ac_compile itself does not contain backslashes and begins
9236 # with a dollar sign (not a hyphen), so the echo should work correctly.
9237 lt_compile=`echo "$ac_compile" | $SED \
9238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9240 -e 's:$: $lt_compiler_flag:'`
9241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9242 (eval "$lt_compile" 2>out/conftest.err)
9243 ac_status=$?
9244 cat out/conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9247 then
9248 # The compiler can only warn and ignore the option if not recognized
9249 # So say no if there are warnings
9250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9253 lt_cv_prog_compiler_c_o=yes
9254 fi
9255 fi
9256 chmod u+w . 2>&5
9257 $RM conftest*
9258 # SGI C++ compiler will create directory out/ii_files/ for
9259 # template instantiation
9260 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9261 $RM out/* && rmdir out
9262 cd ..
9263 $RM -r conftest
9264 $RM conftest*
9265
9266 fi
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9268 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9269
9270
9271
9272
9273 hard_links="nottested"
9274 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9275 # do not overwrite the value of need_locks provided by the user
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9277 $as_echo_n "checking if we can lock with hard links... " >&6; }
9278 hard_links=yes
9279 $RM conftest*
9280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9281 touch conftest.a
9282 ln conftest.a conftest.b 2>&5 || hard_links=no
9283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9285 $as_echo "$hard_links" >&6; }
9286 if test "$hard_links" = no; then
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9288 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9289 need_locks=warn
9290 fi
9291 else
9292 need_locks=no
9293 fi
9294
9295
9296
9297
9298
9299
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9301 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9302
9303 runpath_var=
9304 allow_undefined_flag=
9305 always_export_symbols=no
9306 archive_cmds=
9307 archive_expsym_cmds=
9308 compiler_needs_object=no
9309 enable_shared_with_static_runtimes=no
9310 export_dynamic_flag_spec=
9311 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9312 hardcode_automatic=no
9313 hardcode_direct=no
9314 hardcode_direct_absolute=no
9315 hardcode_libdir_flag_spec=
9316 hardcode_libdir_flag_spec_ld=
9317 hardcode_libdir_separator=
9318 hardcode_minus_L=no
9319 hardcode_shlibpath_var=unsupported
9320 inherit_rpath=no
9321 link_all_deplibs=unknown
9322 module_cmds=
9323 module_expsym_cmds=
9324 old_archive_from_new_cmds=
9325 old_archive_from_expsyms_cmds=
9326 thread_safe_flag_spec=
9327 whole_archive_flag_spec=
9328 # include_expsyms should be a list of space-separated symbols to be *always*
9329 # included in the symbol list
9330 include_expsyms=
9331 # exclude_expsyms can be an extended regexp of symbols to exclude
9332 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9333 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9334 # as well as any symbol that contains `d'.
9335 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9336 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9337 # platforms (ab)use it in PIC code, but their linkers get confused if
9338 # the symbol is explicitly referenced. Since portable code cannot
9339 # rely on this symbol name, it's probably fine to never include it in
9340 # preloaded symbol tables.
9341 # Exclude shared library initialization/finalization symbols.
9342 extract_expsyms_cmds=
9343
9344 case $host_os in
9345 cygwin* | mingw* | pw32* | cegcc*)
9346 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9347 # When not using gcc, we currently assume that we are using
9348 # Microsoft Visual C++.
9349 if test "$GCC" != yes; then
9350 with_gnu_ld=no
9351 fi
9352 ;;
9353 interix*)
9354 # we just hope/assume this is gcc and not c89 (= MSVC++)
9355 with_gnu_ld=yes
9356 ;;
9357 openbsd*)
9358 with_gnu_ld=no
9359 ;;
9360 esac
9361
9362 ld_shlibs=yes
9363
9364 # On some targets, GNU ld is compatible enough with the native linker
9365 # that we're better off using the native interface for both.
9366 lt_use_gnu_ld_interface=no
9367 if test "$with_gnu_ld" = yes; then
9368 case $host_os in
9369 aix*)
9370 # The AIX port of GNU ld has always aspired to compatibility
9371 # with the native linker. However, as the warning in the GNU ld
9372 # block says, versions before 2.19.5* couldn't really create working
9373 # shared libraries, regardless of the interface used.
9374 case `$LD -v 2>&1` in
9375 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9376 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9377 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9378 *)
9379 lt_use_gnu_ld_interface=yes
9380 ;;
9381 esac
9382 ;;
9383 *)
9384 lt_use_gnu_ld_interface=yes
9385 ;;
9386 esac
9387 fi
9388
9389 if test "$lt_use_gnu_ld_interface" = yes; then
9390 # If archive_cmds runs LD, not CC, wlarc should be empty
9391 wlarc='${wl}'
9392
9393 # Set some defaults for GNU ld with shared library support. These
9394 # are reset later if shared libraries are not supported. Putting them
9395 # here allows them to be overridden if necessary.
9396 runpath_var=LD_RUN_PATH
9397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9398 export_dynamic_flag_spec='${wl}--export-dynamic'
9399 # ancient GNU ld didn't support --whole-archive et. al.
9400 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9401 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9402 else
9403 whole_archive_flag_spec=
9404 fi
9405 supports_anon_versioning=no
9406 case `$LD -v 2>&1` in
9407 *GNU\ gold*) supports_anon_versioning=yes ;;
9408 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9409 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9410 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9411 *\ 2.11.*) ;; # other 2.11 versions
9412 *) supports_anon_versioning=yes ;;
9413 esac
9414
9415 # See if GNU ld supports shared libraries.
9416 case $host_os in
9417 aix[3-9]*)
9418 # On AIX/PPC, the GNU linker is very broken
9419 if test "$host_cpu" != ia64; then
9420 ld_shlibs=no
9421 cat <<_LT_EOF 1>&2
9422
9423 *** Warning: the GNU linker, at least up to release 2.19, is reported
9424 *** to be unable to reliably create shared libraries on AIX.
9425 *** Therefore, libtool is disabling shared libraries support. If you
9426 *** really care for shared libraries, you may want to install binutils
9427 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9428 *** You will then need to restart the configuration process.
9429
9430 _LT_EOF
9431 fi
9432 ;;
9433
9434 amigaos*)
9435 case $host_cpu in
9436 powerpc)
9437 # see comment about AmigaOS4 .so support
9438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 archive_expsym_cmds=''
9440 ;;
9441 m68k)
9442 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)'
9443 hardcode_libdir_flag_spec='-L$libdir'
9444 hardcode_minus_L=yes
9445 ;;
9446 esac
9447 ;;
9448
9449 beos*)
9450 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9451 allow_undefined_flag=unsupported
9452 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9453 # support --undefined. This deserves some investigation. FIXME
9454 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455 else
9456 ld_shlibs=no
9457 fi
9458 ;;
9459
9460 cygwin* | mingw* | pw32* | cegcc*)
9461 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9462 # as there is no search path for DLLs.
9463 hardcode_libdir_flag_spec='-L$libdir'
9464 export_dynamic_flag_spec='${wl}--export-all-symbols'
9465 allow_undefined_flag=unsupported
9466 always_export_symbols=no
9467 enable_shared_with_static_runtimes=yes
9468 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9469
9470 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9472 # If the export-symbols file already is a .def file (1st line
9473 # is EXPORTS), use it as is; otherwise, prepend...
9474 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9475 cp $export_symbols $output_objdir/$soname.def;
9476 else
9477 echo EXPORTS > $output_objdir/$soname.def;
9478 cat $export_symbols >> $output_objdir/$soname.def;
9479 fi~
9480 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9481 else
9482 ld_shlibs=no
9483 fi
9484 ;;
9485
9486 haiku*)
9487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9488 link_all_deplibs=yes
9489 ;;
9490
9491 interix[3-9]*)
9492 hardcode_direct=no
9493 hardcode_shlibpath_var=no
9494 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9495 export_dynamic_flag_spec='${wl}-E'
9496 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9497 # Instead, shared libraries are loaded at an image base (0x10000000 by
9498 # default) and relocated if they conflict, which is a slow very memory
9499 # consuming and fragmenting process. To avoid this, we pick a random,
9500 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9501 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9502 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9503 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'
9504 ;;
9505
9506 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9507 tmp_diet=no
9508 if test "$host_os" = linux-dietlibc; then
9509 case $cc_basename in
9510 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9511 esac
9512 fi
9513 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9514 && test "$tmp_diet" = no
9515 then
9516 tmp_addflag=' $pic_flag'
9517 tmp_sharedflag='-shared'
9518 case $cc_basename,$host_cpu in
9519 pgcc*) # Portland Group C compiler
9520 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'
9521 tmp_addflag=' $pic_flag'
9522 ;;
9523 pgf77* | pgf90* | pgf95* | pgfortran*)
9524 # Portland Group f77 and f90 compilers
9525 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'
9526 tmp_addflag=' $pic_flag -Mnomain' ;;
9527 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9528 tmp_addflag=' -i_dynamic' ;;
9529 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9530 tmp_addflag=' -i_dynamic -nofor_main' ;;
9531 ifc* | ifort*) # Intel Fortran compiler
9532 tmp_addflag=' -nofor_main' ;;
9533 lf95*) # Lahey Fortran 8.1
9534 whole_archive_flag_spec=
9535 tmp_sharedflag='--shared' ;;
9536 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9537 tmp_sharedflag='-qmkshrobj'
9538 tmp_addflag= ;;
9539 nvcc*) # Cuda Compiler Driver 2.2
9540 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'
9541 compiler_needs_object=yes
9542 ;;
9543 esac
9544 case `$CC -V 2>&1 | sed 5q` in
9545 *Sun\ C*) # Sun C 5.9
9546 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'
9547 compiler_needs_object=yes
9548 tmp_sharedflag='-G' ;;
9549 *Sun\ F*) # Sun Fortran 8.3
9550 tmp_sharedflag='-G' ;;
9551 esac
9552 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553
9554 if test "x$supports_anon_versioning" = xyes; then
9555 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9556 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9557 echo "local: *; };" >> $output_objdir/$libname.ver~
9558 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9559 fi
9560
9561 case $cc_basename in
9562 xlf* | bgf* | bgxlf* | mpixlf*)
9563 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9564 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9565 hardcode_libdir_flag_spec=
9566 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9567 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9568 if test "x$supports_anon_versioning" = xyes; then
9569 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9570 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9571 echo "local: *; };" >> $output_objdir/$libname.ver~
9572 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9573 fi
9574 ;;
9575 esac
9576 else
9577 ld_shlibs=no
9578 fi
9579 ;;
9580
9581 netbsd*)
9582 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9583 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9584 wlarc=
9585 else
9586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9588 fi
9589 ;;
9590
9591 solaris*)
9592 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9593 ld_shlibs=no
9594 cat <<_LT_EOF 1>&2
9595
9596 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9597 *** create shared libraries on Solaris systems. Therefore, libtool
9598 *** is disabling shared libraries support. We urge you to upgrade GNU
9599 *** binutils to release 2.9.1 or newer. Another option is to modify
9600 *** your PATH or compiler configuration so that the native linker is
9601 *** used, and then restart.
9602
9603 _LT_EOF
9604 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9606 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9607 else
9608 ld_shlibs=no
9609 fi
9610 ;;
9611
9612 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9613 case `$LD -v 2>&1` in
9614 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9615 ld_shlibs=no
9616 cat <<_LT_EOF 1>&2
9617
9618 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9619 *** reliably create shared libraries on SCO systems. Therefore, libtool
9620 *** is disabling shared libraries support. We urge you to upgrade GNU
9621 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9622 *** your PATH or compiler configuration so that the native linker is
9623 *** used, and then restart.
9624
9625 _LT_EOF
9626 ;;
9627 *)
9628 # For security reasons, it is highly recommended that you always
9629 # use absolute paths for naming shared libraries, and exclude the
9630 # DT_RUNPATH tag from executables and libraries. But doing so
9631 # requires that you compile everything twice, which is a pain.
9632 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9635 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9636 else
9637 ld_shlibs=no
9638 fi
9639 ;;
9640 esac
9641 ;;
9642
9643 sunos4*)
9644 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9645 wlarc=
9646 hardcode_direct=yes
9647 hardcode_shlibpath_var=no
9648 ;;
9649
9650 *)
9651 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9653 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9654 else
9655 ld_shlibs=no
9656 fi
9657 ;;
9658 esac
9659
9660 if test "$ld_shlibs" = no; then
9661 runpath_var=
9662 hardcode_libdir_flag_spec=
9663 export_dynamic_flag_spec=
9664 whole_archive_flag_spec=
9665 fi
9666 else
9667 # PORTME fill in a description of your system's linker (not GNU ld)
9668 case $host_os in
9669 aix3*)
9670 allow_undefined_flag=unsupported
9671 always_export_symbols=yes
9672 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'
9673 # Note: this linker hardcodes the directories in LIBPATH if there
9674 # are no directories specified by -L.
9675 hardcode_minus_L=yes
9676 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9677 # Neither direct hardcoding nor static linking is supported with a
9678 # broken collect2.
9679 hardcode_direct=unsupported
9680 fi
9681 ;;
9682
9683 aix[4-9]*)
9684 if test "$host_cpu" = ia64; then
9685 # On IA64, the linker does run time linking by default, so we don't
9686 # have to do anything special.
9687 aix_use_runtimelinking=no
9688 exp_sym_flag='-Bexport'
9689 no_entry_flag=""
9690 else
9691 # If we're using GNU nm, then we don't want the "-C" option.
9692 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9693 # Also, AIX nm treats weak defined symbols like other global
9694 # defined symbols, whereas GNU nm marks them as "W".
9695 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9696 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'
9697 else
9698 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'
9699 fi
9700 aix_use_runtimelinking=no
9701
9702 # Test if we are trying to use run time linking or normal
9703 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9704 # need to do runtime linking.
9705 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9706 for ld_flag in $LDFLAGS; do
9707 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9708 aix_use_runtimelinking=yes
9709 break
9710 fi
9711 done
9712 ;;
9713 esac
9714
9715 exp_sym_flag='-bexport'
9716 no_entry_flag='-bnoentry'
9717 fi
9718
9719 # When large executables or shared objects are built, AIX ld can
9720 # have problems creating the table of contents. If linking a library
9721 # or program results in "error TOC overflow" add -mminimal-toc to
9722 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9723 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9724
9725 archive_cmds=''
9726 hardcode_direct=yes
9727 hardcode_direct_absolute=yes
9728 hardcode_libdir_separator=':'
9729 link_all_deplibs=yes
9730 file_list_spec='${wl}-f,'
9731
9732 if test "$GCC" = yes; then
9733 case $host_os in aix4.[012]|aix4.[012].*)
9734 # We only want to do this on AIX 4.2 and lower, the check
9735 # below for broken collect2 doesn't work under 4.3+
9736 collect2name=`${CC} -print-prog-name=collect2`
9737 if test -f "$collect2name" &&
9738 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9739 then
9740 # We have reworked collect2
9741 :
9742 else
9743 # We have old collect2
9744 hardcode_direct=unsupported
9745 # It fails to find uninstalled libraries when the uninstalled
9746 # path is not listed in the libpath. Setting hardcode_minus_L
9747 # to unsupported forces relinking
9748 hardcode_minus_L=yes
9749 hardcode_libdir_flag_spec='-L$libdir'
9750 hardcode_libdir_separator=
9751 fi
9752 ;;
9753 esac
9754 shared_flag='-shared'
9755 if test "$aix_use_runtimelinking" = yes; then
9756 shared_flag="$shared_flag "'${wl}-G'
9757 fi
9758 else
9759 # not using gcc
9760 if test "$host_cpu" = ia64; then
9761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9762 # chokes on -Wl,-G. The following line is correct:
9763 shared_flag='-G'
9764 else
9765 if test "$aix_use_runtimelinking" = yes; then
9766 shared_flag='${wl}-G'
9767 else
9768 shared_flag='${wl}-bM:SRE'
9769 fi
9770 fi
9771 fi
9772
9773 export_dynamic_flag_spec='${wl}-bexpall'
9774 # It seems that -bexpall does not export symbols beginning with
9775 # underscore (_), so it is better to generate a list of symbols to export.
9776 always_export_symbols=yes
9777 if test "$aix_use_runtimelinking" = yes; then
9778 # Warning - without using the other runtime loading flags (-brtl),
9779 # -berok will link without error, but may produce a broken library.
9780 allow_undefined_flag='-berok'
9781 # Determine the default libpath from the value encoded in an
9782 # empty executable.
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9785
9786 int
9787 main ()
9788 {
9789
9790 ;
9791 return 0;
9792 }
9793 _ACEOF
9794 if ac_fn_c_try_link "$LINENO"; then :
9795
9796 lt_aix_libpath_sed='
9797 /Import File Strings/,/^$/ {
9798 /^0/ {
9799 s/^0 *\(.*\)$/\1/
9800 p
9801 }
9802 }'
9803 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9804 # Check for a 64-bit object if we didn't find anything.
9805 if test -z "$aix_libpath"; then
9806 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9807 fi
9808 fi
9809 rm -f core conftest.err conftest.$ac_objext \
9810 conftest$ac_exeext conftest.$ac_ext
9811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9812
9813 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9814 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"
9815 else
9816 if test "$host_cpu" = ia64; then
9817 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9818 allow_undefined_flag="-z nodefs"
9819 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"
9820 else
9821 # Determine the default libpath from the value encoded in an
9822 # empty executable.
9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9825
9826 int
9827 main ()
9828 {
9829
9830 ;
9831 return 0;
9832 }
9833 _ACEOF
9834 if ac_fn_c_try_link "$LINENO"; then :
9835
9836 lt_aix_libpath_sed='
9837 /Import File Strings/,/^$/ {
9838 /^0/ {
9839 s/^0 *\(.*\)$/\1/
9840 p
9841 }
9842 }'
9843 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9844 # Check for a 64-bit object if we didn't find anything.
9845 if test -z "$aix_libpath"; then
9846 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9847 fi
9848 fi
9849 rm -f core conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9852
9853 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9854 # Warning - without using the other run time loading flags,
9855 # -berok will link without error, but may produce a broken library.
9856 no_undefined_flag=' ${wl}-bernotok'
9857 allow_undefined_flag=' ${wl}-berok'
9858 if test "$with_gnu_ld" = yes; then
9859 # We only use this code for GNU lds that support --whole-archive.
9860 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9861 else
9862 # Exported symbols can be pulled into shared objects from archives
9863 whole_archive_flag_spec='$convenience'
9864 fi
9865 archive_cmds_need_lc=yes
9866 # This is similar to how AIX traditionally builds its shared libraries.
9867 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'
9868 fi
9869 fi
9870 ;;
9871
9872 amigaos*)
9873 case $host_cpu in
9874 powerpc)
9875 # see comment about AmigaOS4 .so support
9876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9877 archive_expsym_cmds=''
9878 ;;
9879 m68k)
9880 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)'
9881 hardcode_libdir_flag_spec='-L$libdir'
9882 hardcode_minus_L=yes
9883 ;;
9884 esac
9885 ;;
9886
9887 bsdi[45]*)
9888 export_dynamic_flag_spec=-rdynamic
9889 ;;
9890
9891 cygwin* | mingw* | pw32* | cegcc*)
9892 # When not using gcc, we currently assume that we are using
9893 # Microsoft Visual C++.
9894 # hardcode_libdir_flag_spec is actually meaningless, as there is
9895 # no search path for DLLs.
9896 hardcode_libdir_flag_spec=' '
9897 allow_undefined_flag=unsupported
9898 # Tell ltmain to make .lib files, not .a files.
9899 libext=lib
9900 # Tell ltmain to make .dll files, not .so files.
9901 shrext_cmds=".dll"
9902 # FIXME: Setting linknames here is a bad hack.
9903 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9904 # The linker will automatically build a .lib file if we build a DLL.
9905 old_archive_from_new_cmds='true'
9906 # FIXME: Should let the user specify the lib program.
9907 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9908 fix_srcfile_path='`cygpath -w "$srcfile"`'
9909 enable_shared_with_static_runtimes=yes
9910 ;;
9911
9912 darwin* | rhapsody*)
9913
9914
9915 archive_cmds_need_lc=no
9916 hardcode_direct=no
9917 hardcode_automatic=yes
9918 hardcode_shlibpath_var=unsupported
9919 if test "$lt_cv_ld_force_load" = "yes"; then
9920 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\"`'
9921 else
9922 whole_archive_flag_spec=''
9923 fi
9924 link_all_deplibs=yes
9925 allow_undefined_flag="$_lt_dar_allow_undefined"
9926 case $cc_basename in
9927 ifort*) _lt_dar_can_shared=yes ;;
9928 *) _lt_dar_can_shared=$GCC ;;
9929 esac
9930 if test "$_lt_dar_can_shared" = "yes"; then
9931 output_verbose_link_cmd=func_echo_all
9932 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9933 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9934 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}"
9935 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}"
9936
9937 else
9938 ld_shlibs=no
9939 fi
9940
9941 ;;
9942
9943 dgux*)
9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_libdir_flag_spec='-L$libdir'
9946 hardcode_shlibpath_var=no
9947 ;;
9948
9949 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9950 # support. Future versions do this automatically, but an explicit c++rt0.o
9951 # does not break anything, and helps significantly (at the cost of a little
9952 # extra space).
9953 freebsd2.2*)
9954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9955 hardcode_libdir_flag_spec='-R$libdir'
9956 hardcode_direct=yes
9957 hardcode_shlibpath_var=no
9958 ;;
9959
9960 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9961 freebsd2.*)
9962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9963 hardcode_direct=yes
9964 hardcode_minus_L=yes
9965 hardcode_shlibpath_var=no
9966 ;;
9967
9968 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9969 freebsd* | dragonfly*)
9970 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9971 hardcode_libdir_flag_spec='-R$libdir'
9972 hardcode_direct=yes
9973 hardcode_shlibpath_var=no
9974 ;;
9975
9976 hpux9*)
9977 if test "$GCC" = yes; then
9978 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'
9979 else
9980 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'
9981 fi
9982 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9983 hardcode_libdir_separator=:
9984 hardcode_direct=yes
9985
9986 # hardcode_minus_L: Not really in the search PATH,
9987 # but as the default location of the library.
9988 hardcode_minus_L=yes
9989 export_dynamic_flag_spec='${wl}-E'
9990 ;;
9991
9992 hpux10*)
9993 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9994 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9995 else
9996 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9997 fi
9998 if test "$with_gnu_ld" = no; then
9999 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10000 hardcode_libdir_flag_spec_ld='+b $libdir'
10001 hardcode_libdir_separator=:
10002 hardcode_direct=yes
10003 hardcode_direct_absolute=yes
10004 export_dynamic_flag_spec='${wl}-E'
10005 # hardcode_minus_L: Not really in the search PATH,
10006 # but as the default location of the library.
10007 hardcode_minus_L=yes
10008 fi
10009 ;;
10010
10011 hpux11*)
10012 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10013 case $host_cpu in
10014 hppa*64*)
10015 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 ;;
10017 ia64*)
10018 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10019 ;;
10020 *)
10021 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10022 ;;
10023 esac
10024 else
10025 case $host_cpu in
10026 hppa*64*)
10027 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 ;;
10029 ia64*)
10030 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10031 ;;
10032 *)
10033
10034 # Older versions of the 11.00 compiler do not understand -b yet
10035 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10037 $as_echo_n "checking if $CC understands -b... " >&6; }
10038 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
10040 else
10041 lt_cv_prog_compiler__b=no
10042 save_LDFLAGS="$LDFLAGS"
10043 LDFLAGS="$LDFLAGS -b"
10044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10046 # The linker can only warn and ignore the option if not recognized
10047 # So say no if there are warnings
10048 if test -s conftest.err; then
10049 # Append any errors to the config.log.
10050 cat conftest.err 1>&5
10051 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10053 if diff conftest.exp conftest.er2 >/dev/null; then
10054 lt_cv_prog_compiler__b=yes
10055 fi
10056 else
10057 lt_cv_prog_compiler__b=yes
10058 fi
10059 fi
10060 $RM -r conftest*
10061 LDFLAGS="$save_LDFLAGS"
10062
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10065 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10066
10067 if test x"$lt_cv_prog_compiler__b" = xyes; then
10068 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10069 else
10070 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10071 fi
10072
10073 ;;
10074 esac
10075 fi
10076 if test "$with_gnu_ld" = no; then
10077 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10078 hardcode_libdir_separator=:
10079
10080 case $host_cpu in
10081 hppa*64*|ia64*)
10082 hardcode_direct=no
10083 hardcode_shlibpath_var=no
10084 ;;
10085 *)
10086 hardcode_direct=yes
10087 hardcode_direct_absolute=yes
10088 export_dynamic_flag_spec='${wl}-E'
10089
10090 # hardcode_minus_L: Not really in the search PATH,
10091 # but as the default location of the library.
10092 hardcode_minus_L=yes
10093 ;;
10094 esac
10095 fi
10096 ;;
10097
10098 irix5* | irix6* | nonstopux*)
10099 if test "$GCC" = yes; then
10100 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'
10101 # Try to use the -exported_symbol ld option, if it does not
10102 # work, assume that -exports_file does not work either and
10103 # implicitly export all symbols.
10104 save_LDFLAGS="$LDFLAGS"
10105 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10108 int foo(void) {}
10109 _ACEOF
10110 if ac_fn_c_try_link "$LINENO"; then :
10111 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'
10112
10113 fi
10114 rm -f core conftest.err conftest.$ac_objext \
10115 conftest$ac_exeext conftest.$ac_ext
10116 LDFLAGS="$save_LDFLAGS"
10117 else
10118 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'
10119 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'
10120 fi
10121 archive_cmds_need_lc='no'
10122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10123 hardcode_libdir_separator=:
10124 inherit_rpath=yes
10125 link_all_deplibs=yes
10126 ;;
10127
10128 netbsd*)
10129 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10130 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10131 else
10132 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10133 fi
10134 hardcode_libdir_flag_spec='-R$libdir'
10135 hardcode_direct=yes
10136 hardcode_shlibpath_var=no
10137 ;;
10138
10139 newsos6)
10140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10141 hardcode_direct=yes
10142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10143 hardcode_libdir_separator=:
10144 hardcode_shlibpath_var=no
10145 ;;
10146
10147 *nto* | *qnx*)
10148 ;;
10149
10150 openbsd*)
10151 if test -f /usr/libexec/ld.so; then
10152 hardcode_direct=yes
10153 hardcode_shlibpath_var=no
10154 hardcode_direct_absolute=yes
10155 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10156 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10157 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10158 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10159 export_dynamic_flag_spec='${wl}-E'
10160 else
10161 case $host_os in
10162 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10164 hardcode_libdir_flag_spec='-R$libdir'
10165 ;;
10166 *)
10167 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10168 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10169 ;;
10170 esac
10171 fi
10172 else
10173 ld_shlibs=no
10174 fi
10175 ;;
10176
10177 os2*)
10178 hardcode_libdir_flag_spec='-L$libdir'
10179 hardcode_minus_L=yes
10180 allow_undefined_flag=unsupported
10181 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'
10182 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10183 ;;
10184
10185 osf3*)
10186 if test "$GCC" = yes; then
10187 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10188 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'
10189 else
10190 allow_undefined_flag=' -expect_unresolved \*'
10191 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'
10192 fi
10193 archive_cmds_need_lc='no'
10194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10195 hardcode_libdir_separator=:
10196 ;;
10197
10198 osf4* | osf5*) # as osf3* with the addition of -msym flag
10199 if test "$GCC" = yes; then
10200 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10201 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'
10202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10203 else
10204 allow_undefined_flag=' -expect_unresolved \*'
10205 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'
10206 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~
10207 $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'
10208
10209 # Both c and cxx compiler support -rpath directly
10210 hardcode_libdir_flag_spec='-rpath $libdir'
10211 fi
10212 archive_cmds_need_lc='no'
10213 hardcode_libdir_separator=:
10214 ;;
10215
10216 solaris*)
10217 no_undefined_flag=' -z defs'
10218 if test "$GCC" = yes; then
10219 wlarc='${wl}'
10220 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10222 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10223 else
10224 case `$CC -V 2>&1` in
10225 *"Compilers 5.0"*)
10226 wlarc=''
10227 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10229 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10230 ;;
10231 *)
10232 wlarc='${wl}'
10233 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10235 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10236 ;;
10237 esac
10238 fi
10239 hardcode_libdir_flag_spec='-R$libdir'
10240 hardcode_shlibpath_var=no
10241 case $host_os in
10242 solaris2.[0-5] | solaris2.[0-5].*) ;;
10243 *)
10244 # The compiler driver will combine and reorder linker options,
10245 # but understands `-z linker_flag'. GCC discards it without `$wl',
10246 # but is careful enough not to reorder.
10247 # Supported since Solaris 2.6 (maybe 2.5.1?)
10248 if test "$GCC" = yes; then
10249 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10250 else
10251 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10252 fi
10253 ;;
10254 esac
10255 link_all_deplibs=yes
10256 ;;
10257
10258 sunos4*)
10259 if test "x$host_vendor" = xsequent; then
10260 # Use $CC to link under sequent, because it throws in some extra .o
10261 # files that make .init and .fini sections work.
10262 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10263 else
10264 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10265 fi
10266 hardcode_libdir_flag_spec='-L$libdir'
10267 hardcode_direct=yes
10268 hardcode_minus_L=yes
10269 hardcode_shlibpath_var=no
10270 ;;
10271
10272 sysv4)
10273 case $host_vendor in
10274 sni)
10275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10276 hardcode_direct=yes # is this really true???
10277 ;;
10278 siemens)
10279 ## LD is ld it makes a PLAMLIB
10280 ## CC just makes a GrossModule.
10281 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10282 reload_cmds='$CC -r -o $output$reload_objs'
10283 hardcode_direct=no
10284 ;;
10285 motorola)
10286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10288 ;;
10289 esac
10290 runpath_var='LD_RUN_PATH'
10291 hardcode_shlibpath_var=no
10292 ;;
10293
10294 sysv4.3*)
10295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296 hardcode_shlibpath_var=no
10297 export_dynamic_flag_spec='-Bexport'
10298 ;;
10299
10300 sysv4*MP*)
10301 if test -d /usr/nec; then
10302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303 hardcode_shlibpath_var=no
10304 runpath_var=LD_RUN_PATH
10305 hardcode_runpath_var=yes
10306 ld_shlibs=yes
10307 fi
10308 ;;
10309
10310 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10311 no_undefined_flag='${wl}-z,text'
10312 archive_cmds_need_lc=no
10313 hardcode_shlibpath_var=no
10314 runpath_var='LD_RUN_PATH'
10315
10316 if test "$GCC" = yes; then
10317 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319 else
10320 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10321 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 fi
10323 ;;
10324
10325 sysv5* | sco3.2v5* | sco5v6*)
10326 # Note: We can NOT use -z defs as we might desire, because we do not
10327 # link with -lc, and that would cause any symbols used from libc to
10328 # always be unresolved, which means just about no library would
10329 # ever link correctly. If we're not using GNU ld we use -z text
10330 # though, which does catch some bad symbols but isn't as heavy-handed
10331 # as -z defs.
10332 no_undefined_flag='${wl}-z,text'
10333 allow_undefined_flag='${wl}-z,nodefs'
10334 archive_cmds_need_lc=no
10335 hardcode_shlibpath_var=no
10336 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10337 hardcode_libdir_separator=':'
10338 link_all_deplibs=yes
10339 export_dynamic_flag_spec='${wl}-Bexport'
10340 runpath_var='LD_RUN_PATH'
10341
10342 if test "$GCC" = yes; then
10343 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10345 else
10346 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10347 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348 fi
10349 ;;
10350
10351 uts4*)
10352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353 hardcode_libdir_flag_spec='-L$libdir'
10354 hardcode_shlibpath_var=no
10355 ;;
10356
10357 *)
10358 ld_shlibs=no
10359 ;;
10360 esac
10361
10362 if test x$host_vendor = xsni; then
10363 case $host in
10364 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10365 export_dynamic_flag_spec='${wl}-Blargedynsym'
10366 ;;
10367 esac
10368 fi
10369 fi
10370
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10372 $as_echo "$ld_shlibs" >&6; }
10373 test "$ld_shlibs" = no && can_build_shared=no
10374
10375 with_gnu_ld=$with_gnu_ld
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391 #
10392 # Do we need to explicitly link libc?
10393 #
10394 case "x$archive_cmds_need_lc" in
10395 x|xyes)
10396 # Assume -lc should be added
10397 archive_cmds_need_lc=yes
10398
10399 if test "$enable_shared" = yes && test "$GCC" = yes; then
10400 case $archive_cmds in
10401 *'~'*)
10402 # FIXME: we may have to deal with multi-command sequences.
10403 ;;
10404 '$CC '*)
10405 # Test whether the compiler implicitly links with -lc since on some
10406 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10407 # to ld, don't add -lc before -lgcc.
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10409 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10410 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
10412 else
10413 $RM conftest*
10414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10415
10416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10417 (eval $ac_compile) 2>&5
10418 ac_status=$?
10419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10420 test $ac_status = 0; } 2>conftest.err; then
10421 soname=conftest
10422 lib=conftest
10423 libobjs=conftest.$ac_objext
10424 deplibs=
10425 wl=$lt_prog_compiler_wl
10426 pic_flag=$lt_prog_compiler_pic
10427 compiler_flags=-v
10428 linker_flags=-v
10429 verstring=
10430 output_objdir=.
10431 libname=conftest
10432 lt_save_allow_undefined_flag=$allow_undefined_flag
10433 allow_undefined_flag=
10434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10435 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10436 ac_status=$?
10437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10438 test $ac_status = 0; }
10439 then
10440 lt_cv_archive_cmds_need_lc=no
10441 else
10442 lt_cv_archive_cmds_need_lc=yes
10443 fi
10444 allow_undefined_flag=$lt_save_allow_undefined_flag
10445 else
10446 cat conftest.err 1>&5
10447 fi
10448 $RM conftest*
10449
10450 fi
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10452 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10453 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10454 ;;
10455 esac
10456 fi
10457 ;;
10458 esac
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
10611
10612
10613
10614
10615
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10617 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10618
10619 if test "$GCC" = yes; then
10620 case $host_os in
10621 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10622 *) lt_awk_arg="/^libraries:/" ;;
10623 esac
10624 case $host_os in
10625 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10626 *) lt_sed_strip_eq="s,=/,/,g" ;;
10627 esac
10628 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10629 case $lt_search_path_spec in
10630 *\;*)
10631 # if the path contains ";" then we assume it to be the separator
10632 # otherwise default to the standard path separator (i.e. ":") - it is
10633 # assumed that no part of a normal pathname contains ";" but that should
10634 # okay in the real world where ";" in dirpaths is itself problematic.
10635 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10636 ;;
10637 *)
10638 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10639 ;;
10640 esac
10641 # Ok, now we have the path, separated by spaces, we can step through it
10642 # and add multilib dir if necessary.
10643 lt_tmp_lt_search_path_spec=
10644 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10645 for lt_sys_path in $lt_search_path_spec; do
10646 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10647 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10648 else
10649 test -d "$lt_sys_path" && \
10650 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10651 fi
10652 done
10653 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10654 BEGIN {RS=" "; FS="/|\n";} {
10655 lt_foo="";
10656 lt_count=0;
10657 for (lt_i = NF; lt_i > 0; lt_i--) {
10658 if ($lt_i != "" && $lt_i != ".") {
10659 if ($lt_i == "..") {
10660 lt_count++;
10661 } else {
10662 if (lt_count == 0) {
10663 lt_foo="/" $lt_i lt_foo;
10664 } else {
10665 lt_count--;
10666 }
10667 }
10668 }
10669 }
10670 if (lt_foo != "") { lt_freq[lt_foo]++; }
10671 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10672 }'`
10673 # AWK program above erroneously prepends '/' to C:/dos/paths
10674 # for these hosts.
10675 case $host_os in
10676 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10677 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10678 esac
10679 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10680 else
10681 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10682 fi
10683 library_names_spec=
10684 libname_spec='lib$name'
10685 soname_spec=
10686 shrext_cmds=".so"
10687 postinstall_cmds=
10688 postuninstall_cmds=
10689 finish_cmds=
10690 finish_eval=
10691 shlibpath_var=
10692 shlibpath_overrides_runpath=unknown
10693 version_type=none
10694 dynamic_linker="$host_os ld.so"
10695 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10696 need_lib_prefix=unknown
10697 hardcode_into_libs=no
10698
10699 # when you set need_version to no, make sure it does not cause -set_version
10700 # flags to be left without arguments
10701 need_version=unknown
10702
10703 case $host_os in
10704 aix3*)
10705 version_type=linux
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10707 shlibpath_var=LIBPATH
10708
10709 # AIX 3 has no versioning support, so we append a major version to the name.
10710 soname_spec='${libname}${release}${shared_ext}$major'
10711 ;;
10712
10713 aix[4-9]*)
10714 version_type=linux
10715 need_lib_prefix=no
10716 need_version=no
10717 hardcode_into_libs=yes
10718 if test "$host_cpu" = ia64; then
10719 # AIX 5 supports IA64
10720 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 else
10723 # With GCC up to 2.95.x, collect2 would create an import file
10724 # for dependence libraries. The import file would start with
10725 # the line `#! .'. This would cause the generated library to
10726 # depend on `.', always an invalid library. This was fixed in
10727 # development snapshots of GCC prior to 3.0.
10728 case $host_os in
10729 aix4 | aix4.[01] | aix4.[01].*)
10730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10731 echo ' yes '
10732 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10733 :
10734 else
10735 can_build_shared=no
10736 fi
10737 ;;
10738 esac
10739 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10740 # soname into executable. Probably we can add versioning support to
10741 # collect2, so additional links can be useful in future.
10742 if test "$aix_use_runtimelinking" = yes; then
10743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10744 # instead of lib<name>.a to let people know that these are not
10745 # typical AIX shared libraries.
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747 else
10748 # We preserve .a as extension for shared libraries through AIX4.2
10749 # and later when we are not doing run time linking.
10750 library_names_spec='${libname}${release}.a $libname.a'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 fi
10753 shlibpath_var=LIBPATH
10754 fi
10755 ;;
10756
10757 amigaos*)
10758 case $host_cpu in
10759 powerpc)
10760 # Since July 2007 AmigaOS4 officially supports .so libraries.
10761 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763 ;;
10764 m68k)
10765 library_names_spec='$libname.ixlibrary $libname.a'
10766 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10767 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'
10768 ;;
10769 esac
10770 ;;
10771
10772 beos*)
10773 library_names_spec='${libname}${shared_ext}'
10774 dynamic_linker="$host_os ld.so"
10775 shlibpath_var=LIBRARY_PATH
10776 ;;
10777
10778 bsdi[45]*)
10779 version_type=linux
10780 need_version=no
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10784 shlibpath_var=LD_LIBRARY_PATH
10785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10787 # the default ld.so.conf also contains /usr/contrib/lib and
10788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10789 # libtool to hard-code these into programs
10790 ;;
10791
10792 cygwin* | mingw* | pw32* | cegcc*)
10793 version_type=windows
10794 shrext_cmds=".dll"
10795 need_version=no
10796 need_lib_prefix=no
10797
10798 case $GCC,$host_os in
10799 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10800 library_names_spec='$libname.dll.a'
10801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10802 postinstall_cmds='base_file=`basename \${file}`~
10803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10804 dldir=$destdir/`dirname \$dlpath`~
10805 test -d \$dldir || mkdir -p \$dldir~
10806 $install_prog $dir/$dlname \$dldir/$dlname~
10807 chmod a+x \$dldir/$dlname~
10808 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10809 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10810 fi'
10811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10812 dlpath=$dir/\$dldll~
10813 $RM \$dlpath'
10814 shlibpath_overrides_runpath=yes
10815
10816 case $host_os in
10817 cygwin*)
10818 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10819 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10820
10821 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10822 ;;
10823 mingw* | cegcc*)
10824 # MinGW DLLs use traditional 'lib' prefix
10825 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10826 ;;
10827 pw32*)
10828 # pw32 DLLs use 'pw' prefix rather than 'lib'
10829 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10830 ;;
10831 esac
10832 ;;
10833
10834 *)
10835 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10836 ;;
10837 esac
10838 dynamic_linker='Win32 ld.exe'
10839 # FIXME: first we should search . and the directory the executable is in
10840 shlibpath_var=PATH
10841 ;;
10842
10843 darwin* | rhapsody*)
10844 dynamic_linker="$host_os dyld"
10845 version_type=darwin
10846 need_lib_prefix=no
10847 need_version=no
10848 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10849 soname_spec='${libname}${release}${major}$shared_ext'
10850 shlibpath_overrides_runpath=yes
10851 shlibpath_var=DYLD_LIBRARY_PATH
10852 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10853
10854 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10855 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10856 ;;
10857
10858 dgux*)
10859 version_type=linux
10860 need_lib_prefix=no
10861 need_version=no
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10863 soname_spec='${libname}${release}${shared_ext}$major'
10864 shlibpath_var=LD_LIBRARY_PATH
10865 ;;
10866
10867 freebsd* | dragonfly*)
10868 # DragonFly does not have aout. When/if they implement a new
10869 # versioning mechanism, adjust this.
10870 if test -x /usr/bin/objformat; then
10871 objformat=`/usr/bin/objformat`
10872 else
10873 case $host_os in
10874 freebsd[23].*) objformat=aout ;;
10875 *) objformat=elf ;;
10876 esac
10877 fi
10878 version_type=freebsd-$objformat
10879 case $version_type in
10880 freebsd-elf*)
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10882 need_version=no
10883 need_lib_prefix=no
10884 ;;
10885 freebsd-*)
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10887 need_version=yes
10888 ;;
10889 esac
10890 shlibpath_var=LD_LIBRARY_PATH
10891 case $host_os in
10892 freebsd2.*)
10893 shlibpath_overrides_runpath=yes
10894 ;;
10895 freebsd3.[01]* | freebsdelf3.[01]*)
10896 shlibpath_overrides_runpath=yes
10897 hardcode_into_libs=yes
10898 ;;
10899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10901 shlibpath_overrides_runpath=no
10902 hardcode_into_libs=yes
10903 ;;
10904 *) # from 4.6 on, and DragonFly
10905 shlibpath_overrides_runpath=yes
10906 hardcode_into_libs=yes
10907 ;;
10908 esac
10909 ;;
10910
10911 gnu*)
10912 version_type=linux
10913 need_lib_prefix=no
10914 need_version=no
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10916 soname_spec='${libname}${release}${shared_ext}$major'
10917 shlibpath_var=LD_LIBRARY_PATH
10918 hardcode_into_libs=yes
10919 ;;
10920
10921 haiku*)
10922 version_type=linux
10923 need_lib_prefix=no
10924 need_version=no
10925 dynamic_linker="$host_os runtime_loader"
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 shlibpath_var=LIBRARY_PATH
10929 shlibpath_overrides_runpath=yes
10930 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10931 hardcode_into_libs=yes
10932 ;;
10933
10934 hpux9* | hpux10* | hpux11*)
10935 # Give a soname corresponding to the major version so that dld.sl refuses to
10936 # link against other versions.
10937 version_type=sunos
10938 need_lib_prefix=no
10939 need_version=no
10940 case $host_cpu in
10941 ia64*)
10942 shrext_cmds='.so'
10943 hardcode_into_libs=yes
10944 dynamic_linker="$host_os dld.so"
10945 shlibpath_var=LD_LIBRARY_PATH
10946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 if test "X$HPUX_IA64_MODE" = X32; then
10950 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10951 else
10952 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10953 fi
10954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10955 ;;
10956 hppa*64*)
10957 shrext_cmds='.sl'
10958 hardcode_into_libs=yes
10959 dynamic_linker="$host_os dld.sl"
10960 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10966 ;;
10967 *)
10968 shrext_cmds='.sl'
10969 dynamic_linker="$host_os dld.sl"
10970 shlibpath_var=SHLIB_PATH
10971 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 ;;
10975 esac
10976 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10977 postinstall_cmds='chmod 555 $lib'
10978 # or fails outright, so override atomically:
10979 install_override_mode=555
10980 ;;
10981
10982 interix[3-9]*)
10983 version_type=linux
10984 need_lib_prefix=no
10985 need_version=no
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 shlibpath_overrides_runpath=no
10991 hardcode_into_libs=yes
10992 ;;
10993
10994 irix5* | irix6* | nonstopux*)
10995 case $host_os in
10996 nonstopux*) version_type=nonstopux ;;
10997 *)
10998 if test "$lt_cv_prog_gnu_ld" = yes; then
10999 version_type=linux
11000 else
11001 version_type=irix
11002 fi ;;
11003 esac
11004 need_lib_prefix=no
11005 need_version=no
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11008 case $host_os in
11009 irix5* | nonstopux*)
11010 libsuff= shlibsuff=
11011 ;;
11012 *)
11013 case $LD in # libtool.m4 will add one of these switches to LD
11014 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11015 libsuff= shlibsuff= libmagic=32-bit;;
11016 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11017 libsuff=32 shlibsuff=N32 libmagic=N32;;
11018 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11019 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11020 *) libsuff= shlibsuff= libmagic=never-match;;
11021 esac
11022 ;;
11023 esac
11024 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11025 shlibpath_overrides_runpath=no
11026 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11027 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11028 hardcode_into_libs=yes
11029 ;;
11030
11031 # No shared lib support for Linux oldld, aout, or coff.
11032 linux*oldld* | linux*aout* | linux*coff*)
11033 dynamic_linker=no
11034 ;;
11035
11036 # This must be Linux ELF.
11037 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11038 version_type=linux
11039 need_lib_prefix=no
11040 need_version=no
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 soname_spec='${libname}${release}${shared_ext}$major'
11043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=no
11046
11047 # Some binutils ld are patched to set DT_RUNPATH
11048 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 lt_cv_shlibpath_overrides_runpath=no
11052 save_LDFLAGS=$LDFLAGS
11053 save_libdir=$libdir
11054 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11055 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11058
11059 int
11060 main ()
11061 {
11062
11063 ;
11064 return 0;
11065 }
11066 _ACEOF
11067 if ac_fn_c_try_link "$LINENO"; then :
11068 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11069 lt_cv_shlibpath_overrides_runpath=yes
11070 fi
11071 fi
11072 rm -f core conftest.err conftest.$ac_objext \
11073 conftest$ac_exeext conftest.$ac_ext
11074 LDFLAGS=$save_LDFLAGS
11075 libdir=$save_libdir
11076
11077 fi
11078
11079 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11080
11081 # This implies no fast_install, which is unacceptable.
11082 # Some rework will be needed to allow for fast_install
11083 # before this can be enabled.
11084 hardcode_into_libs=yes
11085
11086 # Append ld.so.conf contents to the search path
11087 if test -f /etc/ld.so.conf; then
11088 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' ' '`
11089 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11090 fi
11091
11092 # We used to test for /lib/ld.so.1 and disable shared libraries on
11093 # powerpc, because MkLinux only supported shared libraries with the
11094 # GNU dynamic linker. Since this was broken with cross compilers,
11095 # most powerpc-linux boxes support dynamic linking these days and
11096 # people can always --disable-shared, the test was removed, and we
11097 # assume the GNU/Linux dynamic linker is in use.
11098 dynamic_linker='GNU/Linux ld.so'
11099 ;;
11100
11101 netbsd*)
11102 version_type=sunos
11103 need_lib_prefix=no
11104 need_version=no
11105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11108 dynamic_linker='NetBSD (a.out) ld.so'
11109 else
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 dynamic_linker='NetBSD ld.elf_so'
11113 fi
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=yes
11116 hardcode_into_libs=yes
11117 ;;
11118
11119 newsos6)
11120 version_type=linux
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 shlibpath_overrides_runpath=yes
11124 ;;
11125
11126 *nto* | *qnx*)
11127 version_type=qnx
11128 need_lib_prefix=no
11129 need_version=no
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11131 soname_spec='${libname}${release}${shared_ext}$major'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 shlibpath_overrides_runpath=no
11134 hardcode_into_libs=yes
11135 dynamic_linker='ldqnx.so'
11136 ;;
11137
11138 openbsd*)
11139 version_type=sunos
11140 sys_lib_dlsearch_path_spec="/usr/lib"
11141 need_lib_prefix=no
11142 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11143 case $host_os in
11144 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11145 *) need_version=no ;;
11146 esac
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11151 case $host_os in
11152 openbsd2.[89] | openbsd2.[89].*)
11153 shlibpath_overrides_runpath=no
11154 ;;
11155 *)
11156 shlibpath_overrides_runpath=yes
11157 ;;
11158 esac
11159 else
11160 shlibpath_overrides_runpath=yes
11161 fi
11162 ;;
11163
11164 os2*)
11165 libname_spec='$name'
11166 shrext_cmds=".dll"
11167 need_lib_prefix=no
11168 library_names_spec='$libname${shared_ext} $libname.a'
11169 dynamic_linker='OS/2 ld.exe'
11170 shlibpath_var=LIBPATH
11171 ;;
11172
11173 osf3* | osf4* | osf5*)
11174 version_type=osf
11175 need_lib_prefix=no
11176 need_version=no
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11181 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11182 ;;
11183
11184 rdos*)
11185 dynamic_linker=no
11186 ;;
11187
11188 solaris*)
11189 version_type=linux
11190 need_lib_prefix=no
11191 need_version=no
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=yes
11196 hardcode_into_libs=yes
11197 # ldd complains unless libraries are executable
11198 postinstall_cmds='chmod +x $lib'
11199 ;;
11200
11201 sunos4*)
11202 version_type=sunos
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11204 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 shlibpath_overrides_runpath=yes
11207 if test "$with_gnu_ld" = yes; then
11208 need_lib_prefix=no
11209 fi
11210 need_version=yes
11211 ;;
11212
11213 sysv4 | sysv4.3*)
11214 version_type=linux
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11216 soname_spec='${libname}${release}${shared_ext}$major'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 case $host_vendor in
11219 sni)
11220 shlibpath_overrides_runpath=no
11221 need_lib_prefix=no
11222 runpath_var=LD_RUN_PATH
11223 ;;
11224 siemens)
11225 need_lib_prefix=no
11226 ;;
11227 motorola)
11228 need_lib_prefix=no
11229 need_version=no
11230 shlibpath_overrides_runpath=no
11231 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11232 ;;
11233 esac
11234 ;;
11235
11236 sysv4*MP*)
11237 if test -d /usr/nec ;then
11238 version_type=linux
11239 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11240 soname_spec='$libname${shared_ext}.$major'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 fi
11243 ;;
11244
11245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11246 version_type=freebsd-elf
11247 need_lib_prefix=no
11248 need_version=no
11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11250 soname_spec='${libname}${release}${shared_ext}$major'
11251 shlibpath_var=LD_LIBRARY_PATH
11252 shlibpath_overrides_runpath=yes
11253 hardcode_into_libs=yes
11254 if test "$with_gnu_ld" = yes; then
11255 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11256 else
11257 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11258 case $host_os in
11259 sco3.2v5*)
11260 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11261 ;;
11262 esac
11263 fi
11264 sys_lib_dlsearch_path_spec='/usr/lib'
11265 ;;
11266
11267 tpf*)
11268 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11269 version_type=linux
11270 need_lib_prefix=no
11271 need_version=no
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273 shlibpath_var=LD_LIBRARY_PATH
11274 shlibpath_overrides_runpath=no
11275 hardcode_into_libs=yes
11276 ;;
11277
11278 uts4*)
11279 version_type=linux
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 shlibpath_var=LD_LIBRARY_PATH
11283 ;;
11284
11285 *)
11286 dynamic_linker=no
11287 ;;
11288 esac
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11290 $as_echo "$dynamic_linker" >&6; }
11291 test "$dynamic_linker" = no && can_build_shared=no
11292
11293 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11294 if test "$GCC" = yes; then
11295 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11296 fi
11297
11298 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11299 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11300 fi
11301 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11302 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11303 fi
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
11391
11392
11393
11394
11395
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11397 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11398 hardcode_action=
11399 if test -n "$hardcode_libdir_flag_spec" ||
11400 test -n "$runpath_var" ||
11401 test "X$hardcode_automatic" = "Xyes" ; then
11402
11403 # We can hardcode non-existent directories.
11404 if test "$hardcode_direct" != no &&
11405 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11406 # have to relink, otherwise we might link with an installed library
11407 # when we should be linking with a yet-to-be-installed one
11408 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11409 test "$hardcode_minus_L" != no; then
11410 # Linking always hardcodes the temporary library directory.
11411 hardcode_action=relink
11412 else
11413 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11414 hardcode_action=immediate
11415 fi
11416 else
11417 # We cannot hardcode anything, or else we can only hardcode existing
11418 # directories.
11419 hardcode_action=unsupported
11420 fi
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11422 $as_echo "$hardcode_action" >&6; }
11423
11424 if test "$hardcode_action" = relink ||
11425 test "$inherit_rpath" = yes; then
11426 # Fast installation is not supported
11427 enable_fast_install=no
11428 elif test "$shlibpath_overrides_runpath" = yes ||
11429 test "$enable_shared" = no; then
11430 # Fast installation is not necessary
11431 enable_fast_install=needless
11432 fi
11433
11434
11435
11436
11437
11438
11439 if test "x$enable_dlopen" != xyes; then
11440 enable_dlopen=unknown
11441 enable_dlopen_self=unknown
11442 enable_dlopen_self_static=unknown
11443 else
11444 lt_cv_dlopen=no
11445 lt_cv_dlopen_libs=
11446
11447 case $host_os in
11448 beos*)
11449 lt_cv_dlopen="load_add_on"
11450 lt_cv_dlopen_libs=
11451 lt_cv_dlopen_self=yes
11452 ;;
11453
11454 mingw* | pw32* | cegcc*)
11455 lt_cv_dlopen="LoadLibrary"
11456 lt_cv_dlopen_libs=
11457 ;;
11458
11459 cygwin*)
11460 lt_cv_dlopen="dlopen"
11461 lt_cv_dlopen_libs=
11462 ;;
11463
11464 darwin*)
11465 # if libdl is installed we need to link against it
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11467 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11468 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 ac_check_lib_save_LIBS=$LIBS
11472 LIBS="-ldl $LIBS"
11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474 /* end confdefs.h. */
11475
11476 /* Override any GCC internal prototype to avoid an error.
11477 Use char because int might match the return type of a GCC
11478 builtin and then its argument prototype would still apply. */
11479 #ifdef __cplusplus
11480 extern "C"
11481 #endif
11482 char dlopen ();
11483 int
11484 main ()
11485 {
11486 return dlopen ();
11487 ;
11488 return 0;
11489 }
11490 _ACEOF
11491 if ac_fn_c_try_link "$LINENO"; then :
11492 ac_cv_lib_dl_dlopen=yes
11493 else
11494 ac_cv_lib_dl_dlopen=no
11495 fi
11496 rm -f core conftest.err conftest.$ac_objext \
11497 conftest$ac_exeext conftest.$ac_ext
11498 LIBS=$ac_check_lib_save_LIBS
11499 fi
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11501 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11502 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11503 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11504 else
11505
11506 lt_cv_dlopen="dyld"
11507 lt_cv_dlopen_libs=
11508 lt_cv_dlopen_self=yes
11509
11510 fi
11511
11512 ;;
11513
11514 *)
11515 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11516 if test "x$ac_cv_func_shl_load" = x""yes; then :
11517 lt_cv_dlopen="shl_load"
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11520 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11521 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11524 ac_check_lib_save_LIBS=$LIBS
11525 LIBS="-ldld $LIBS"
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11528
11529 /* Override any GCC internal prototype to avoid an error.
11530 Use char because int might match the return type of a GCC
11531 builtin and then its argument prototype would still apply. */
11532 #ifdef __cplusplus
11533 extern "C"
11534 #endif
11535 char shl_load ();
11536 int
11537 main ()
11538 {
11539 return shl_load ();
11540 ;
11541 return 0;
11542 }
11543 _ACEOF
11544 if ac_fn_c_try_link "$LINENO"; then :
11545 ac_cv_lib_dld_shl_load=yes
11546 else
11547 ac_cv_lib_dld_shl_load=no
11548 fi
11549 rm -f core conftest.err conftest.$ac_objext \
11550 conftest$ac_exeext conftest.$ac_ext
11551 LIBS=$ac_check_lib_save_LIBS
11552 fi
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11554 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11555 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11556 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11557 else
11558 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11559 if test "x$ac_cv_func_dlopen" = x""yes; then :
11560 lt_cv_dlopen="dlopen"
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11563 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11564 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11565 $as_echo_n "(cached) " >&6
11566 else
11567 ac_check_lib_save_LIBS=$LIBS
11568 LIBS="-ldl $LIBS"
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11571
11572 /* Override any GCC internal prototype to avoid an error.
11573 Use char because int might match the return type of a GCC
11574 builtin and then its argument prototype would still apply. */
11575 #ifdef __cplusplus
11576 extern "C"
11577 #endif
11578 char dlopen ();
11579 int
11580 main ()
11581 {
11582 return dlopen ();
11583 ;
11584 return 0;
11585 }
11586 _ACEOF
11587 if ac_fn_c_try_link "$LINENO"; then :
11588 ac_cv_lib_dl_dlopen=yes
11589 else
11590 ac_cv_lib_dl_dlopen=no
11591 fi
11592 rm -f core conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext conftest.$ac_ext
11594 LIBS=$ac_check_lib_save_LIBS
11595 fi
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11597 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11598 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11600 else
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11602 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11603 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 ac_check_lib_save_LIBS=$LIBS
11607 LIBS="-lsvld $LIBS"
11608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609 /* end confdefs.h. */
11610
11611 /* Override any GCC internal prototype to avoid an error.
11612 Use char because int might match the return type of a GCC
11613 builtin and then its argument prototype would still apply. */
11614 #ifdef __cplusplus
11615 extern "C"
11616 #endif
11617 char dlopen ();
11618 int
11619 main ()
11620 {
11621 return dlopen ();
11622 ;
11623 return 0;
11624 }
11625 _ACEOF
11626 if ac_fn_c_try_link "$LINENO"; then :
11627 ac_cv_lib_svld_dlopen=yes
11628 else
11629 ac_cv_lib_svld_dlopen=no
11630 fi
11631 rm -f core conftest.err conftest.$ac_objext \
11632 conftest$ac_exeext conftest.$ac_ext
11633 LIBS=$ac_check_lib_save_LIBS
11634 fi
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11636 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11637 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11639 else
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11641 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11642 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 ac_check_lib_save_LIBS=$LIBS
11646 LIBS="-ldld $LIBS"
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649
11650 /* Override any GCC internal prototype to avoid an error.
11651 Use char because int might match the return type of a GCC
11652 builtin and then its argument prototype would still apply. */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 char dld_link ();
11657 int
11658 main ()
11659 {
11660 return dld_link ();
11661 ;
11662 return 0;
11663 }
11664 _ACEOF
11665 if ac_fn_c_try_link "$LINENO"; then :
11666 ac_cv_lib_dld_dld_link=yes
11667 else
11668 ac_cv_lib_dld_dld_link=no
11669 fi
11670 rm -f core conftest.err conftest.$ac_objext \
11671 conftest$ac_exeext conftest.$ac_ext
11672 LIBS=$ac_check_lib_save_LIBS
11673 fi
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11675 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11676 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11677 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11678 fi
11679
11680
11681 fi
11682
11683
11684 fi
11685
11686
11687 fi
11688
11689
11690 fi
11691
11692
11693 fi
11694
11695 ;;
11696 esac
11697
11698 if test "x$lt_cv_dlopen" != xno; then
11699 enable_dlopen=yes
11700 else
11701 enable_dlopen=no
11702 fi
11703
11704 case $lt_cv_dlopen in
11705 dlopen)
11706 save_CPPFLAGS="$CPPFLAGS"
11707 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11708
11709 save_LDFLAGS="$LDFLAGS"
11710 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11711
11712 save_LIBS="$LIBS"
11713 LIBS="$lt_cv_dlopen_libs $LIBS"
11714
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11716 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11717 if test "${lt_cv_dlopen_self+set}" = set; then :
11718 $as_echo_n "(cached) " >&6
11719 else
11720 if test "$cross_compiling" = yes; then :
11721 lt_cv_dlopen_self=cross
11722 else
11723 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11724 lt_status=$lt_dlunknown
11725 cat > conftest.$ac_ext <<_LT_EOF
11726 #line 11726 "configure"
11727 #include "confdefs.h"
11728
11729 #if HAVE_DLFCN_H
11730 #include <dlfcn.h>
11731 #endif
11732
11733 #include <stdio.h>
11734
11735 #ifdef RTLD_GLOBAL
11736 # define LT_DLGLOBAL RTLD_GLOBAL
11737 #else
11738 # ifdef DL_GLOBAL
11739 # define LT_DLGLOBAL DL_GLOBAL
11740 # else
11741 # define LT_DLGLOBAL 0
11742 # endif
11743 #endif
11744
11745 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11746 find out it does not work in some platform. */
11747 #ifndef LT_DLLAZY_OR_NOW
11748 # ifdef RTLD_LAZY
11749 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11750 # else
11751 # ifdef DL_LAZY
11752 # define LT_DLLAZY_OR_NOW DL_LAZY
11753 # else
11754 # ifdef RTLD_NOW
11755 # define LT_DLLAZY_OR_NOW RTLD_NOW
11756 # else
11757 # ifdef DL_NOW
11758 # define LT_DLLAZY_OR_NOW DL_NOW
11759 # else
11760 # define LT_DLLAZY_OR_NOW 0
11761 # endif
11762 # endif
11763 # endif
11764 # endif
11765 #endif
11766
11767 /* When -fvisbility=hidden is used, assume the code has been annotated
11768 correspondingly for the symbols needed. */
11769 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11770 void fnord () __attribute__((visibility("default")));
11771 #endif
11772
11773 void fnord () { int i=42; }
11774 int main ()
11775 {
11776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11777 int status = $lt_dlunknown;
11778
11779 if (self)
11780 {
11781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11782 else
11783 {
11784 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11785 else puts (dlerror ());
11786 }
11787 /* dlclose (self); */
11788 }
11789 else
11790 puts (dlerror ());
11791
11792 return status;
11793 }
11794 _LT_EOF
11795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11796 (eval $ac_link) 2>&5
11797 ac_status=$?
11798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11799 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11800 (./conftest; exit; ) >&5 2>/dev/null
11801 lt_status=$?
11802 case x$lt_status in
11803 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11804 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11805 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11806 esac
11807 else :
11808 # compilation failed
11809 lt_cv_dlopen_self=no
11810 fi
11811 fi
11812 rm -fr conftest*
11813
11814
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11817 $as_echo "$lt_cv_dlopen_self" >&6; }
11818
11819 if test "x$lt_cv_dlopen_self" = xyes; then
11820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11822 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11823 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11824 $as_echo_n "(cached) " >&6
11825 else
11826 if test "$cross_compiling" = yes; then :
11827 lt_cv_dlopen_self_static=cross
11828 else
11829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11830 lt_status=$lt_dlunknown
11831 cat > conftest.$ac_ext <<_LT_EOF
11832 #line 11832 "configure"
11833 #include "confdefs.h"
11834
11835 #if HAVE_DLFCN_H
11836 #include <dlfcn.h>
11837 #endif
11838
11839 #include <stdio.h>
11840
11841 #ifdef RTLD_GLOBAL
11842 # define LT_DLGLOBAL RTLD_GLOBAL
11843 #else
11844 # ifdef DL_GLOBAL
11845 # define LT_DLGLOBAL DL_GLOBAL
11846 # else
11847 # define LT_DLGLOBAL 0
11848 # endif
11849 #endif
11850
11851 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11852 find out it does not work in some platform. */
11853 #ifndef LT_DLLAZY_OR_NOW
11854 # ifdef RTLD_LAZY
11855 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11856 # else
11857 # ifdef DL_LAZY
11858 # define LT_DLLAZY_OR_NOW DL_LAZY
11859 # else
11860 # ifdef RTLD_NOW
11861 # define LT_DLLAZY_OR_NOW RTLD_NOW
11862 # else
11863 # ifdef DL_NOW
11864 # define LT_DLLAZY_OR_NOW DL_NOW
11865 # else
11866 # define LT_DLLAZY_OR_NOW 0
11867 # endif
11868 # endif
11869 # endif
11870 # endif
11871 #endif
11872
11873 /* When -fvisbility=hidden is used, assume the code has been annotated
11874 correspondingly for the symbols needed. */
11875 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11876 void fnord () __attribute__((visibility("default")));
11877 #endif
11878
11879 void fnord () { int i=42; }
11880 int main ()
11881 {
11882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11883 int status = $lt_dlunknown;
11884
11885 if (self)
11886 {
11887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11888 else
11889 {
11890 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11891 else puts (dlerror ());
11892 }
11893 /* dlclose (self); */
11894 }
11895 else
11896 puts (dlerror ());
11897
11898 return status;
11899 }
11900 _LT_EOF
11901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11902 (eval $ac_link) 2>&5
11903 ac_status=$?
11904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11905 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11906 (./conftest; exit; ) >&5 2>/dev/null
11907 lt_status=$?
11908 case x$lt_status in
11909 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11910 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11911 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11912 esac
11913 else :
11914 # compilation failed
11915 lt_cv_dlopen_self_static=no
11916 fi
11917 fi
11918 rm -fr conftest*
11919
11920
11921 fi
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11923 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11924 fi
11925
11926 CPPFLAGS="$save_CPPFLAGS"
11927 LDFLAGS="$save_LDFLAGS"
11928 LIBS="$save_LIBS"
11929 ;;
11930 esac
11931
11932 case $lt_cv_dlopen_self in
11933 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11934 *) enable_dlopen_self=unknown ;;
11935 esac
11936
11937 case $lt_cv_dlopen_self_static in
11938 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11939 *) enable_dlopen_self_static=unknown ;;
11940 esac
11941 fi
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959 striplib=
11960 old_striplib=
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11962 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11963 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11964 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11965 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967 $as_echo "yes" >&6; }
11968 else
11969 # FIXME - insert some real tests, host_os isn't really good enough
11970 case $host_os in
11971 darwin*)
11972 if test -n "$STRIP" ; then
11973 striplib="$STRIP -x"
11974 old_striplib="$STRIP -S"
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11976 $as_echo "yes" >&6; }
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11980 fi
11981 ;;
11982 *)
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
11985 ;;
11986 esac
11987 fi
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000 # Report which library types will actually be built
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12002 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12004 $as_echo "$can_build_shared" >&6; }
12005
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12007 $as_echo_n "checking whether to build shared libraries... " >&6; }
12008 test "$can_build_shared" = "no" && enable_shared=no
12009
12010 # On AIX, shared libraries and static libraries use the same namespace, and
12011 # are all built from PIC.
12012 case $host_os in
12013 aix3*)
12014 test "$enable_shared" = yes && enable_static=no
12015 if test -n "$RANLIB"; then
12016 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12017 postinstall_cmds='$RANLIB $lib'
12018 fi
12019 ;;
12020
12021 aix[4-9]*)
12022 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12023 test "$enable_shared" = yes && enable_static=no
12024 fi
12025 ;;
12026 esac
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12028 $as_echo "$enable_shared" >&6; }
12029
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12031 $as_echo_n "checking whether to build static libraries... " >&6; }
12032 # Make sure either enable_shared or enable_static is yes.
12033 test "$enable_shared" = yes || enable_static=yes
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12035 $as_echo "$enable_static" >&6; }
12036
12037
12038
12039
12040 fi
12041 ac_ext=c
12042 ac_cpp='$CPP $CPPFLAGS'
12043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12046
12047 CC="$lt_save_CC"
12048
12049 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12050 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12051 (test "X$CXX" != "Xg++"))) ; then
12052 ac_ext=cpp
12053 ac_cpp='$CXXCPP $CPPFLAGS'
12054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12058 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12059 if test -z "$CXXCPP"; then
12060 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 # Double quotes because CXXCPP needs to be expanded
12064 for CXXCPP in "$CXX -E" "/lib/cpp"
12065 do
12066 ac_preproc_ok=false
12067 for ac_cxx_preproc_warn_flag in '' yes
12068 do
12069 # Use a header file that comes with gcc, so configuring glibc
12070 # with a fresh cross-compiler works.
12071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12072 # <limits.h> exists even on freestanding compilers.
12073 # On the NeXT, cc -E runs the code through the compiler's parser,
12074 # not just through cpp. "Syntax error" is here to catch this case.
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12077 #ifdef __STDC__
12078 # include <limits.h>
12079 #else
12080 # include <assert.h>
12081 #endif
12082 Syntax error
12083 _ACEOF
12084 if ac_fn_cxx_try_cpp "$LINENO"; then :
12085
12086 else
12087 # Broken: fails on valid input.
12088 continue
12089 fi
12090 rm -f conftest.err conftest.$ac_ext
12091
12092 # OK, works on sane cases. Now check whether nonexistent headers
12093 # can be detected and how.
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12096 #include <ac_nonexistent.h>
12097 _ACEOF
12098 if ac_fn_cxx_try_cpp "$LINENO"; then :
12099 # Broken: success on invalid input.
12100 continue
12101 else
12102 # Passes both tests.
12103 ac_preproc_ok=:
12104 break
12105 fi
12106 rm -f conftest.err conftest.$ac_ext
12107
12108 done
12109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12110 rm -f conftest.err conftest.$ac_ext
12111 if $ac_preproc_ok; then :
12112 break
12113 fi
12114
12115 done
12116 ac_cv_prog_CXXCPP=$CXXCPP
12117
12118 fi
12119 CXXCPP=$ac_cv_prog_CXXCPP
12120 else
12121 ac_cv_prog_CXXCPP=$CXXCPP
12122 fi
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12124 $as_echo "$CXXCPP" >&6; }
12125 ac_preproc_ok=false
12126 for ac_cxx_preproc_warn_flag in '' yes
12127 do
12128 # Use a header file that comes with gcc, so configuring glibc
12129 # with a fresh cross-compiler works.
12130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12131 # <limits.h> exists even on freestanding compilers.
12132 # On the NeXT, cc -E runs the code through the compiler's parser,
12133 # not just through cpp. "Syntax error" is here to catch this case.
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136 #ifdef __STDC__
12137 # include <limits.h>
12138 #else
12139 # include <assert.h>
12140 #endif
12141 Syntax error
12142 _ACEOF
12143 if ac_fn_cxx_try_cpp "$LINENO"; then :
12144
12145 else
12146 # Broken: fails on valid input.
12147 continue
12148 fi
12149 rm -f conftest.err conftest.$ac_ext
12150
12151 # OK, works on sane cases. Now check whether nonexistent headers
12152 # can be detected and how.
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12155 #include <ac_nonexistent.h>
12156 _ACEOF
12157 if ac_fn_cxx_try_cpp "$LINENO"; then :
12158 # Broken: success on invalid input.
12159 continue
12160 else
12161 # Passes both tests.
12162 ac_preproc_ok=:
12163 break
12164 fi
12165 rm -f conftest.err conftest.$ac_ext
12166
12167 done
12168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12169 rm -f conftest.err conftest.$ac_ext
12170 if $ac_preproc_ok; then :
12171
12172 else
12173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12175 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12176 See \`config.log' for more details." "$LINENO" 5; }
12177 fi
12178
12179 ac_ext=c
12180 ac_cpp='$CPP $CPPFLAGS'
12181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12184
12185 else
12186 _lt_caught_CXX_error=yes
12187 fi
12188
12189 ac_ext=cpp
12190 ac_cpp='$CXXCPP $CPPFLAGS'
12191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12194
12195 archive_cmds_need_lc_CXX=no
12196 allow_undefined_flag_CXX=
12197 always_export_symbols_CXX=no
12198 archive_expsym_cmds_CXX=
12199 compiler_needs_object_CXX=no
12200 export_dynamic_flag_spec_CXX=
12201 hardcode_direct_CXX=no
12202 hardcode_direct_absolute_CXX=no
12203 hardcode_libdir_flag_spec_CXX=
12204 hardcode_libdir_flag_spec_ld_CXX=
12205 hardcode_libdir_separator_CXX=
12206 hardcode_minus_L_CXX=no
12207 hardcode_shlibpath_var_CXX=unsupported
12208 hardcode_automatic_CXX=no
12209 inherit_rpath_CXX=no
12210 module_cmds_CXX=
12211 module_expsym_cmds_CXX=
12212 link_all_deplibs_CXX=unknown
12213 old_archive_cmds_CXX=$old_archive_cmds
12214 reload_flag_CXX=$reload_flag
12215 reload_cmds_CXX=$reload_cmds
12216 no_undefined_flag_CXX=
12217 whole_archive_flag_spec_CXX=
12218 enable_shared_with_static_runtimes_CXX=no
12219
12220 # Source file extension for C++ test sources.
12221 ac_ext=cpp
12222
12223 # Object file extension for compiled C++ test sources.
12224 objext=o
12225 objext_CXX=$objext
12226
12227 # No sense in running all these tests if we already determined that
12228 # the CXX compiler isn't working. Some variables (like enable_shared)
12229 # are currently assumed to apply to all compilers on this platform,
12230 # and will be corrupted by setting them based on a non-working compiler.
12231 if test "$_lt_caught_CXX_error" != yes; then
12232 # Code to be used in simple compile tests
12233 lt_simple_compile_test_code="int some_variable = 0;"
12234
12235 # Code to be used in simple link tests
12236 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12237
12238 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12239
12240
12241
12242
12243
12244
12245 # If no C compiler was specified, use CC.
12246 LTCC=${LTCC-"$CC"}
12247
12248 # If no C compiler flags were specified, use CFLAGS.
12249 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12250
12251 # Allow CC to be a program name with arguments.
12252 compiler=$CC
12253
12254
12255 # save warnings/boilerplate of simple test code
12256 ac_outfile=conftest.$ac_objext
12257 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12258 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12259 _lt_compiler_boilerplate=`cat conftest.err`
12260 $RM conftest*
12261
12262 ac_outfile=conftest.$ac_objext
12263 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12264 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12265 _lt_linker_boilerplate=`cat conftest.err`
12266 $RM -r conftest*
12267
12268
12269 # Allow CC to be a program name with arguments.
12270 lt_save_CC=$CC
12271 lt_save_LD=$LD
12272 lt_save_GCC=$GCC
12273 GCC=$GXX
12274 lt_save_with_gnu_ld=$with_gnu_ld
12275 lt_save_path_LD=$lt_cv_path_LD
12276 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12277 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12278 else
12279 $as_unset lt_cv_prog_gnu_ld
12280 fi
12281 if test -n "${lt_cv_path_LDCXX+set}"; then
12282 lt_cv_path_LD=$lt_cv_path_LDCXX
12283 else
12284 $as_unset lt_cv_path_LD
12285 fi
12286 test -z "${LDCXX+set}" || LD=$LDCXX
12287 CC=${CXX-"c++"}
12288 compiler=$CC
12289 compiler_CXX=$CC
12290 for cc_temp in $compiler""; do
12291 case $cc_temp in
12292 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12293 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12294 \-*) ;;
12295 *) break;;
12296 esac
12297 done
12298 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12299
12300
12301 if test -n "$compiler"; then
12302 # We don't want -fno-exception when compiling C++ code, so set the
12303 # no_builtin_flag separately
12304 if test "$GXX" = yes; then
12305 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12306 else
12307 lt_prog_compiler_no_builtin_flag_CXX=
12308 fi
12309
12310 if test "$GXX" = yes; then
12311 # Set up default GNU C++ configuration
12312
12313
12314
12315 # Check whether --with-gnu-ld was given.
12316 if test "${with_gnu_ld+set}" = set; then :
12317 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12318 else
12319 with_gnu_ld=no
12320 fi
12321
12322 ac_prog=ld
12323 if test "$GCC" = yes; then
12324 # Check if gcc -print-prog-name=ld gives a path.
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12326 $as_echo_n "checking for ld used by $CC... " >&6; }
12327 case $host in
12328 *-*-mingw*)
12329 # gcc leaves a trailing carriage return which upsets mingw
12330 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12331 *)
12332 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12333 esac
12334 case $ac_prog in
12335 # Accept absolute paths.
12336 [\\/]* | ?:[\\/]*)
12337 re_direlt='/[^/][^/]*/\.\./'
12338 # Canonicalize the pathname of ld
12339 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12340 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12341 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12342 done
12343 test -z "$LD" && LD="$ac_prog"
12344 ;;
12345 "")
12346 # If it fails, then pretend we aren't using GCC.
12347 ac_prog=ld
12348 ;;
12349 *)
12350 # If it is relative, then search for the first ld in PATH.
12351 with_gnu_ld=unknown
12352 ;;
12353 esac
12354 elif test "$with_gnu_ld" = yes; then
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12356 $as_echo_n "checking for GNU ld... " >&6; }
12357 else
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12359 $as_echo_n "checking for non-GNU ld... " >&6; }
12360 fi
12361 if test "${lt_cv_path_LD+set}" = set; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12364 if test -z "$LD"; then
12365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12366 for ac_dir in $PATH; do
12367 IFS="$lt_save_ifs"
12368 test -z "$ac_dir" && ac_dir=.
12369 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12370 lt_cv_path_LD="$ac_dir/$ac_prog"
12371 # Check to see if the program is GNU ld. I'd rather use --version,
12372 # but apparently some variants of GNU ld only accept -v.
12373 # Break only if it was the GNU/non-GNU ld that we prefer.
12374 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12375 *GNU* | *'with BFD'*)
12376 test "$with_gnu_ld" != no && break
12377 ;;
12378 *)
12379 test "$with_gnu_ld" != yes && break
12380 ;;
12381 esac
12382 fi
12383 done
12384 IFS="$lt_save_ifs"
12385 else
12386 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12387 fi
12388 fi
12389
12390 LD="$lt_cv_path_LD"
12391 if test -n "$LD"; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12393 $as_echo "$LD" >&6; }
12394 else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12397 fi
12398 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12400 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12401 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12404 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12405 case `$LD -v 2>&1 </dev/null` in
12406 *GNU* | *'with BFD'*)
12407 lt_cv_prog_gnu_ld=yes
12408 ;;
12409 *)
12410 lt_cv_prog_gnu_ld=no
12411 ;;
12412 esac
12413 fi
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12415 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12416 with_gnu_ld=$lt_cv_prog_gnu_ld
12417
12418
12419
12420
12421
12422
12423
12424 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12425 # archiving commands below assume that GNU ld is being used.
12426 if test "$with_gnu_ld" = yes; then
12427 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12428 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'
12429
12430 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12431 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12432
12433 # If archive_cmds runs LD, not CC, wlarc should be empty
12434 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12435 # investigate it a little bit more. (MM)
12436 wlarc='${wl}'
12437
12438 # ancient GNU ld didn't support --whole-archive et. al.
12439 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12440 $GREP 'no-whole-archive' > /dev/null; then
12441 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12442 else
12443 whole_archive_flag_spec_CXX=
12444 fi
12445 else
12446 with_gnu_ld=no
12447 wlarc=
12448
12449 # A generic and very simple default shared library creation
12450 # command for GNU C++ for the case where it uses the native
12451 # linker, instead of GNU ld. If possible, this setting should
12452 # overridden to take advantage of the native linker features on
12453 # the platform it is being used on.
12454 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12455 fi
12456
12457 # Commands to make compiler produce verbose output that lists
12458 # what "hidden" libraries, object files and flags are used when
12459 # linking a shared library.
12460 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12461
12462 else
12463 GXX=no
12464 with_gnu_ld=no
12465 wlarc=
12466 fi
12467
12468 # PORTME: fill in a description of your system's C++ link characteristics
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12470 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12471 ld_shlibs_CXX=yes
12472 case $host_os in
12473 aix3*)
12474 # FIXME: insert proper C++ library support
12475 ld_shlibs_CXX=no
12476 ;;
12477 aix[4-9]*)
12478 if test "$host_cpu" = ia64; then
12479 # On IA64, the linker does run time linking by default, so we don't
12480 # have to do anything special.
12481 aix_use_runtimelinking=no
12482 exp_sym_flag='-Bexport'
12483 no_entry_flag=""
12484 else
12485 aix_use_runtimelinking=no
12486
12487 # Test if we are trying to use run time linking or normal
12488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12489 # need to do runtime linking.
12490 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12491 for ld_flag in $LDFLAGS; do
12492 case $ld_flag in
12493 *-brtl*)
12494 aix_use_runtimelinking=yes
12495 break
12496 ;;
12497 esac
12498 done
12499 ;;
12500 esac
12501
12502 exp_sym_flag='-bexport'
12503 no_entry_flag='-bnoentry'
12504 fi
12505
12506 # When large executables or shared objects are built, AIX ld can
12507 # have problems creating the table of contents. If linking a library
12508 # or program results in "error TOC overflow" add -mminimal-toc to
12509 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12510 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12511
12512 archive_cmds_CXX=''
12513 hardcode_direct_CXX=yes
12514 hardcode_direct_absolute_CXX=yes
12515 hardcode_libdir_separator_CXX=':'
12516 link_all_deplibs_CXX=yes
12517 file_list_spec_CXX='${wl}-f,'
12518
12519 if test "$GXX" = yes; then
12520 case $host_os in aix4.[012]|aix4.[012].*)
12521 # We only want to do this on AIX 4.2 and lower, the check
12522 # below for broken collect2 doesn't work under 4.3+
12523 collect2name=`${CC} -print-prog-name=collect2`
12524 if test -f "$collect2name" &&
12525 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12526 then
12527 # We have reworked collect2
12528 :
12529 else
12530 # We have old collect2
12531 hardcode_direct_CXX=unsupported
12532 # It fails to find uninstalled libraries when the uninstalled
12533 # path is not listed in the libpath. Setting hardcode_minus_L
12534 # to unsupported forces relinking
12535 hardcode_minus_L_CXX=yes
12536 hardcode_libdir_flag_spec_CXX='-L$libdir'
12537 hardcode_libdir_separator_CXX=
12538 fi
12539 esac
12540 shared_flag='-shared'
12541 if test "$aix_use_runtimelinking" = yes; then
12542 shared_flag="$shared_flag "'${wl}-G'
12543 fi
12544 else
12545 # not using gcc
12546 if test "$host_cpu" = ia64; then
12547 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12548 # chokes on -Wl,-G. The following line is correct:
12549 shared_flag='-G'
12550 else
12551 if test "$aix_use_runtimelinking" = yes; then
12552 shared_flag='${wl}-G'
12553 else
12554 shared_flag='${wl}-bM:SRE'
12555 fi
12556 fi
12557 fi
12558
12559 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12560 # It seems that -bexpall does not export symbols beginning with
12561 # underscore (_), so it is better to generate a list of symbols to
12562 # export.
12563 always_export_symbols_CXX=yes
12564 if test "$aix_use_runtimelinking" = yes; then
12565 # Warning - without using the other runtime loading flags (-brtl),
12566 # -berok will link without error, but may produce a broken library.
12567 allow_undefined_flag_CXX='-berok'
12568 # Determine the default libpath from the value encoded in an empty
12569 # executable.
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12572
12573 int
12574 main ()
12575 {
12576
12577 ;
12578 return 0;
12579 }
12580 _ACEOF
12581 if ac_fn_cxx_try_link "$LINENO"; then :
12582
12583 lt_aix_libpath_sed='
12584 /Import File Strings/,/^$/ {
12585 /^0/ {
12586 s/^0 *\(.*\)$/\1/
12587 p
12588 }
12589 }'
12590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12591 # Check for a 64-bit object if we didn't find anything.
12592 if test -z "$aix_libpath"; then
12593 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12594 fi
12595 fi
12596 rm -f core conftest.err conftest.$ac_objext \
12597 conftest$ac_exeext conftest.$ac_ext
12598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12599
12600 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12601
12602 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"
12603 else
12604 if test "$host_cpu" = ia64; then
12605 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12606 allow_undefined_flag_CXX="-z nodefs"
12607 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"
12608 else
12609 # Determine the default libpath from the value encoded in an
12610 # empty executable.
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12613
12614 int
12615 main ()
12616 {
12617
12618 ;
12619 return 0;
12620 }
12621 _ACEOF
12622 if ac_fn_cxx_try_link "$LINENO"; then :
12623
12624 lt_aix_libpath_sed='
12625 /Import File Strings/,/^$/ {
12626 /^0/ {
12627 s/^0 *\(.*\)$/\1/
12628 p
12629 }
12630 }'
12631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12632 # Check for a 64-bit object if we didn't find anything.
12633 if test -z "$aix_libpath"; then
12634 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12635 fi
12636 fi
12637 rm -f core conftest.err conftest.$ac_objext \
12638 conftest$ac_exeext conftest.$ac_ext
12639 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12640
12641 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12642 # Warning - without using the other run time loading flags,
12643 # -berok will link without error, but may produce a broken library.
12644 no_undefined_flag_CXX=' ${wl}-bernotok'
12645 allow_undefined_flag_CXX=' ${wl}-berok'
12646 if test "$with_gnu_ld" = yes; then
12647 # We only use this code for GNU lds that support --whole-archive.
12648 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12649 else
12650 # Exported symbols can be pulled into shared objects from archives
12651 whole_archive_flag_spec_CXX='$convenience'
12652 fi
12653 archive_cmds_need_lc_CXX=yes
12654 # This is similar to how AIX traditionally builds its shared
12655 # libraries.
12656 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'
12657 fi
12658 fi
12659 ;;
12660
12661 beos*)
12662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12663 allow_undefined_flag_CXX=unsupported
12664 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12665 # support --undefined. This deserves some investigation. FIXME
12666 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12667 else
12668 ld_shlibs_CXX=no
12669 fi
12670 ;;
12671
12672 chorus*)
12673 case $cc_basename in
12674 *)
12675 # FIXME: insert proper C++ library support
12676 ld_shlibs_CXX=no
12677 ;;
12678 esac
12679 ;;
12680
12681 cygwin* | mingw* | pw32* | cegcc*)
12682 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12683 # as there is no search path for DLLs.
12684 hardcode_libdir_flag_spec_CXX='-L$libdir'
12685 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12686 allow_undefined_flag_CXX=unsupported
12687 always_export_symbols_CXX=no
12688 enable_shared_with_static_runtimes_CXX=yes
12689
12690 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12691 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'
12692 # If the export-symbols file already is a .def file (1st line
12693 # is EXPORTS), use it as is; otherwise, prepend...
12694 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12695 cp $export_symbols $output_objdir/$soname.def;
12696 else
12697 echo EXPORTS > $output_objdir/$soname.def;
12698 cat $export_symbols >> $output_objdir/$soname.def;
12699 fi~
12700 $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'
12701 else
12702 ld_shlibs_CXX=no
12703 fi
12704 ;;
12705 darwin* | rhapsody*)
12706
12707
12708 archive_cmds_need_lc_CXX=no
12709 hardcode_direct_CXX=no
12710 hardcode_automatic_CXX=yes
12711 hardcode_shlibpath_var_CXX=unsupported
12712 if test "$lt_cv_ld_force_load" = "yes"; then
12713 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\"`'
12714 else
12715 whole_archive_flag_spec_CXX=''
12716 fi
12717 link_all_deplibs_CXX=yes
12718 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12719 case $cc_basename in
12720 ifort*) _lt_dar_can_shared=yes ;;
12721 *) _lt_dar_can_shared=$GCC ;;
12722 esac
12723 if test "$_lt_dar_can_shared" = "yes"; then
12724 output_verbose_link_cmd=func_echo_all
12725 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}"
12726 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12727 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}"
12728 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}"
12729 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12730 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}"
12731 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}"
12732 fi
12733
12734 else
12735 ld_shlibs_CXX=no
12736 fi
12737
12738 ;;
12739
12740 dgux*)
12741 case $cc_basename in
12742 ec++*)
12743 # FIXME: insert proper C++ library support
12744 ld_shlibs_CXX=no
12745 ;;
12746 ghcx*)
12747 # Green Hills C++ Compiler
12748 # FIXME: insert proper C++ library support
12749 ld_shlibs_CXX=no
12750 ;;
12751 *)
12752 # FIXME: insert proper C++ library support
12753 ld_shlibs_CXX=no
12754 ;;
12755 esac
12756 ;;
12757
12758 freebsd2.*)
12759 # C++ shared libraries reported to be fairly broken before
12760 # switch to ELF
12761 ld_shlibs_CXX=no
12762 ;;
12763
12764 freebsd-elf*)
12765 archive_cmds_need_lc_CXX=no
12766 ;;
12767
12768 freebsd* | dragonfly*)
12769 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12770 # conventions
12771 ld_shlibs_CXX=yes
12772 ;;
12773
12774 gnu*)
12775 ;;
12776
12777 haiku*)
12778 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12779 link_all_deplibs_CXX=yes
12780 ;;
12781
12782 hpux9*)
12783 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12784 hardcode_libdir_separator_CXX=:
12785 export_dynamic_flag_spec_CXX='${wl}-E'
12786 hardcode_direct_CXX=yes
12787 hardcode_minus_L_CXX=yes # Not in the search PATH,
12788 # but as the default
12789 # location of the library.
12790
12791 case $cc_basename in
12792 CC*)
12793 # FIXME: insert proper C++ library support
12794 ld_shlibs_CXX=no
12795 ;;
12796 aCC*)
12797 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'
12798 # Commands to make compiler produce verbose output that lists
12799 # what "hidden" libraries, object files and flags are used when
12800 # linking a shared library.
12801 #
12802 # There doesn't appear to be a way to prevent this compiler from
12803 # explicitly linking system object files so we need to strip them
12804 # from the output so that they don't get included in the library
12805 # dependencies.
12806 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"'
12807 ;;
12808 *)
12809 if test "$GXX" = yes; then
12810 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'
12811 else
12812 # FIXME: insert proper C++ library support
12813 ld_shlibs_CXX=no
12814 fi
12815 ;;
12816 esac
12817 ;;
12818
12819 hpux10*|hpux11*)
12820 if test $with_gnu_ld = no; then
12821 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12822 hardcode_libdir_separator_CXX=:
12823
12824 case $host_cpu in
12825 hppa*64*|ia64*)
12826 ;;
12827 *)
12828 export_dynamic_flag_spec_CXX='${wl}-E'
12829 ;;
12830 esac
12831 fi
12832 case $host_cpu in
12833 hppa*64*|ia64*)
12834 hardcode_direct_CXX=no
12835 hardcode_shlibpath_var_CXX=no
12836 ;;
12837 *)
12838 hardcode_direct_CXX=yes
12839 hardcode_direct_absolute_CXX=yes
12840 hardcode_minus_L_CXX=yes # Not in the search PATH,
12841 # but as the default
12842 # location of the library.
12843 ;;
12844 esac
12845
12846 case $cc_basename in
12847 CC*)
12848 # FIXME: insert proper C++ library support
12849 ld_shlibs_CXX=no
12850 ;;
12851 aCC*)
12852 case $host_cpu in
12853 hppa*64*)
12854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12855 ;;
12856 ia64*)
12857 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12858 ;;
12859 *)
12860 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12861 ;;
12862 esac
12863 # Commands to make compiler produce verbose output that lists
12864 # what "hidden" libraries, object files and flags are used when
12865 # linking a shared library.
12866 #
12867 # There doesn't appear to be a way to prevent this compiler from
12868 # explicitly linking system object files so we need to strip them
12869 # from the output so that they don't get included in the library
12870 # dependencies.
12871 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"'
12872 ;;
12873 *)
12874 if test "$GXX" = yes; then
12875 if test $with_gnu_ld = no; then
12876 case $host_cpu in
12877 hppa*64*)
12878 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12879 ;;
12880 ia64*)
12881 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12882 ;;
12883 *)
12884 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'
12885 ;;
12886 esac
12887 fi
12888 else
12889 # FIXME: insert proper C++ library support
12890 ld_shlibs_CXX=no
12891 fi
12892 ;;
12893 esac
12894 ;;
12895
12896 interix[3-9]*)
12897 hardcode_direct_CXX=no
12898 hardcode_shlibpath_var_CXX=no
12899 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12900 export_dynamic_flag_spec_CXX='${wl}-E'
12901 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12902 # Instead, shared libraries are loaded at an image base (0x10000000 by
12903 # default) and relocated if they conflict, which is a slow very memory
12904 # consuming and fragmenting process. To avoid this, we pick a random,
12905 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12906 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12907 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'
12908 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'
12909 ;;
12910 irix5* | irix6*)
12911 case $cc_basename in
12912 CC*)
12913 # SGI C++
12914 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'
12915
12916 # Archives containing C++ object files must be created using
12917 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12918 # necessary to make sure instantiated templates are included
12919 # in the archive.
12920 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12921 ;;
12922 *)
12923 if test "$GXX" = yes; then
12924 if test "$with_gnu_ld" = no; then
12925 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'
12926 else
12927 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'
12928 fi
12929 fi
12930 link_all_deplibs_CXX=yes
12931 ;;
12932 esac
12933 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12934 hardcode_libdir_separator_CXX=:
12935 inherit_rpath_CXX=yes
12936 ;;
12937
12938 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12939 case $cc_basename in
12940 KCC*)
12941 # Kuck and Associates, Inc. (KAI) C++ Compiler
12942
12943 # KCC will only create a shared library if the output file
12944 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12945 # to its proper name (with version) after linking.
12946 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'
12947 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'
12948 # Commands to make compiler produce verbose output that lists
12949 # what "hidden" libraries, object files and flags are used when
12950 # linking a shared library.
12951 #
12952 # There doesn't appear to be a way to prevent this compiler from
12953 # explicitly linking system object files so we need to strip them
12954 # from the output so that they don't get included in the library
12955 # dependencies.
12956 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"'
12957
12958 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12959 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12960
12961 # Archives containing C++ object files must be created using
12962 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12963 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12964 ;;
12965 icpc* | ecpc* )
12966 # Intel C++
12967 with_gnu_ld=yes
12968 # version 8.0 and above of icpc choke on multiply defined symbols
12969 # if we add $predep_objects and $postdep_objects, however 7.1 and
12970 # earlier do not add the objects themselves.
12971 case `$CC -V 2>&1` in
12972 *"Version 7."*)
12973 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974 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'
12975 ;;
12976 *) # Version 8.0 or newer
12977 tmp_idyn=
12978 case $host_cpu in
12979 ia64*) tmp_idyn=' -i_dynamic';;
12980 esac
12981 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12982 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'
12983 ;;
12984 esac
12985 archive_cmds_need_lc_CXX=no
12986 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12987 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12988 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12989 ;;
12990 pgCC* | pgcpp*)
12991 # Portland Group C++ compiler
12992 case `$CC -V` in
12993 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12994 prelink_cmds_CXX='tpldir=Template.dir~
12995 rm -rf $tpldir~
12996 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12997 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12998 old_archive_cmds_CXX='tpldir=Template.dir~
12999 rm -rf $tpldir~
13000 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13001 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13002 $RANLIB $oldlib'
13003 archive_cmds_CXX='tpldir=Template.dir~
13004 rm -rf $tpldir~
13005 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13006 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13007 archive_expsym_cmds_CXX='tpldir=Template.dir~
13008 rm -rf $tpldir~
13009 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13010 $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'
13011 ;;
13012 *) # Version 6 and above use weak symbols
13013 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13014 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'
13015 ;;
13016 esac
13017
13018 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13020 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'
13021 ;;
13022 cxx*)
13023 # Compaq C++
13024 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13025 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'
13026
13027 runpath_var=LD_RUN_PATH
13028 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13029 hardcode_libdir_separator_CXX=:
13030
13031 # Commands to make compiler produce verbose output that lists
13032 # what "hidden" libraries, object files and flags are used when
13033 # linking a shared library.
13034 #
13035 # There doesn't appear to be a way to prevent this compiler from
13036 # explicitly linking system object files so we need to strip them
13037 # from the output so that they don't get included in the library
13038 # dependencies.
13039 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'
13040 ;;
13041 xl* | mpixl* | bgxl*)
13042 # IBM XL 8.0 on PPC, with GNU ld
13043 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13044 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13045 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13046 if test "x$supports_anon_versioning" = xyes; then
13047 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13049 echo "local: *; };" >> $output_objdir/$libname.ver~
13050 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13051 fi
13052 ;;
13053 *)
13054 case `$CC -V 2>&1 | sed 5q` in
13055 *Sun\ C*)
13056 # Sun C++ 5.9
13057 no_undefined_flag_CXX=' -zdefs'
13058 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13059 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'
13060 hardcode_libdir_flag_spec_CXX='-R$libdir'
13061 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'
13062 compiler_needs_object_CXX=yes
13063
13064 # Not sure whether something based on
13065 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13066 # would be better.
13067 output_verbose_link_cmd='func_echo_all'
13068
13069 # Archives containing C++ object files must be created using
13070 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13071 # necessary to make sure instantiated templates are included
13072 # in the archive.
13073 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13074 ;;
13075 esac
13076 ;;
13077 esac
13078 ;;
13079
13080 lynxos*)
13081 # FIXME: insert proper C++ library support
13082 ld_shlibs_CXX=no
13083 ;;
13084
13085 m88k*)
13086 # FIXME: insert proper C++ library support
13087 ld_shlibs_CXX=no
13088 ;;
13089
13090 mvs*)
13091 case $cc_basename in
13092 cxx*)
13093 # FIXME: insert proper C++ library support
13094 ld_shlibs_CXX=no
13095 ;;
13096 *)
13097 # FIXME: insert proper C++ library support
13098 ld_shlibs_CXX=no
13099 ;;
13100 esac
13101 ;;
13102
13103 netbsd*)
13104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13105 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13106 wlarc=
13107 hardcode_libdir_flag_spec_CXX='-R$libdir'
13108 hardcode_direct_CXX=yes
13109 hardcode_shlibpath_var_CXX=no
13110 fi
13111 # Workaround some broken pre-1.5 toolchains
13112 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13113 ;;
13114
13115 *nto* | *qnx*)
13116 ld_shlibs_CXX=yes
13117 ;;
13118
13119 openbsd2*)
13120 # C++ shared libraries are fairly broken
13121 ld_shlibs_CXX=no
13122 ;;
13123
13124 openbsd*)
13125 if test -f /usr/libexec/ld.so; then
13126 hardcode_direct_CXX=yes
13127 hardcode_shlibpath_var_CXX=no
13128 hardcode_direct_absolute_CXX=yes
13129 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13130 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13131 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13132 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13133 export_dynamic_flag_spec_CXX='${wl}-E'
13134 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13135 fi
13136 output_verbose_link_cmd=func_echo_all
13137 else
13138 ld_shlibs_CXX=no
13139 fi
13140 ;;
13141
13142 osf3* | osf4* | osf5*)
13143 case $cc_basename in
13144 KCC*)
13145 # Kuck and Associates, Inc. (KAI) C++ Compiler
13146
13147 # KCC will only create a shared library if the output file
13148 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13149 # to its proper name (with version) after linking.
13150 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'
13151
13152 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13153 hardcode_libdir_separator_CXX=:
13154
13155 # Archives containing C++ object files must be created using
13156 # the KAI C++ compiler.
13157 case $host in
13158 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13159 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13160 esac
13161 ;;
13162 RCC*)
13163 # Rational C++ 2.4.1
13164 # FIXME: insert proper C++ library support
13165 ld_shlibs_CXX=no
13166 ;;
13167 cxx*)
13168 case $host in
13169 osf3*)
13170 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13171 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'
13172 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13173 ;;
13174 *)
13175 allow_undefined_flag_CXX=' -expect_unresolved \*'
13176 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'
13177 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13178 echo "-hidden">> $lib.exp~
13179 $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~
13180 $RM $lib.exp'
13181 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13182 ;;
13183 esac
13184
13185 hardcode_libdir_separator_CXX=:
13186
13187 # Commands to make compiler produce verbose output that lists
13188 # what "hidden" libraries, object files and flags are used when
13189 # linking a shared library.
13190 #
13191 # There doesn't appear to be a way to prevent this compiler from
13192 # explicitly linking system object files so we need to strip them
13193 # from the output so that they don't get included in the library
13194 # dependencies.
13195 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"'
13196 ;;
13197 *)
13198 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13199 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13200 case $host in
13201 osf3*)
13202 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'
13203 ;;
13204 *)
13205 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'
13206 ;;
13207 esac
13208
13209 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13210 hardcode_libdir_separator_CXX=:
13211
13212 # Commands to make compiler produce verbose output that lists
13213 # what "hidden" libraries, object files and flags are used when
13214 # linking a shared library.
13215 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13216
13217 else
13218 # FIXME: insert proper C++ library support
13219 ld_shlibs_CXX=no
13220 fi
13221 ;;
13222 esac
13223 ;;
13224
13225 psos*)
13226 # FIXME: insert proper C++ library support
13227 ld_shlibs_CXX=no
13228 ;;
13229
13230 sunos4*)
13231 case $cc_basename in
13232 CC*)
13233 # Sun C++ 4.x
13234 # FIXME: insert proper C++ library support
13235 ld_shlibs_CXX=no
13236 ;;
13237 lcc*)
13238 # Lucid
13239 # FIXME: insert proper C++ library support
13240 ld_shlibs_CXX=no
13241 ;;
13242 *)
13243 # FIXME: insert proper C++ library support
13244 ld_shlibs_CXX=no
13245 ;;
13246 esac
13247 ;;
13248
13249 solaris*)
13250 case $cc_basename in
13251 CC*)
13252 # Sun C++ 4.2, 5.x and Centerline C++
13253 archive_cmds_need_lc_CXX=yes
13254 no_undefined_flag_CXX=' -zdefs'
13255 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13256 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13257 $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'
13258
13259 hardcode_libdir_flag_spec_CXX='-R$libdir'
13260 hardcode_shlibpath_var_CXX=no
13261 case $host_os in
13262 solaris2.[0-5] | solaris2.[0-5].*) ;;
13263 *)
13264 # The compiler driver will combine and reorder linker options,
13265 # but understands `-z linker_flag'.
13266 # Supported since Solaris 2.6 (maybe 2.5.1?)
13267 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13268 ;;
13269 esac
13270 link_all_deplibs_CXX=yes
13271
13272 output_verbose_link_cmd='func_echo_all'
13273
13274 # Archives containing C++ object files must be created using
13275 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13276 # necessary to make sure instantiated templates are included
13277 # in the archive.
13278 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13279 ;;
13280 gcx*)
13281 # Green Hills C++ Compiler
13282 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13283
13284 # The C++ compiler must be used to create the archive.
13285 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13286 ;;
13287 *)
13288 # GNU C++ compiler with Solaris linker
13289 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13290 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13291 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13292 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13293 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13294 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13295
13296 # Commands to make compiler produce verbose output that lists
13297 # what "hidden" libraries, object files and flags are used when
13298 # linking a shared library.
13299 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13300 else
13301 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13302 # platform.
13303 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13304 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13305 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13306
13307 # Commands to make compiler produce verbose output that lists
13308 # what "hidden" libraries, object files and flags are used when
13309 # linking a shared library.
13310 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13311 fi
13312
13313 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13314 case $host_os in
13315 solaris2.[0-5] | solaris2.[0-5].*) ;;
13316 *)
13317 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13318 ;;
13319 esac
13320 fi
13321 ;;
13322 esac
13323 ;;
13324
13325 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13326 no_undefined_flag_CXX='${wl}-z,text'
13327 archive_cmds_need_lc_CXX=no
13328 hardcode_shlibpath_var_CXX=no
13329 runpath_var='LD_RUN_PATH'
13330
13331 case $cc_basename in
13332 CC*)
13333 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13334 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13335 ;;
13336 *)
13337 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13338 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13339 ;;
13340 esac
13341 ;;
13342
13343 sysv5* | sco3.2v5* | sco5v6*)
13344 # Note: We can NOT use -z defs as we might desire, because we do not
13345 # link with -lc, and that would cause any symbols used from libc to
13346 # always be unresolved, which means just about no library would
13347 # ever link correctly. If we're not using GNU ld we use -z text
13348 # though, which does catch some bad symbols but isn't as heavy-handed
13349 # as -z defs.
13350 no_undefined_flag_CXX='${wl}-z,text'
13351 allow_undefined_flag_CXX='${wl}-z,nodefs'
13352 archive_cmds_need_lc_CXX=no
13353 hardcode_shlibpath_var_CXX=no
13354 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13355 hardcode_libdir_separator_CXX=':'
13356 link_all_deplibs_CXX=yes
13357 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13358 runpath_var='LD_RUN_PATH'
13359
13360 case $cc_basename in
13361 CC*)
13362 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13363 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13364 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13365 '"$old_archive_cmds_CXX"
13366 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13367 '"$reload_cmds_CXX"
13368 ;;
13369 *)
13370 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13371 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13372 ;;
13373 esac
13374 ;;
13375
13376 tandem*)
13377 case $cc_basename in
13378 NCC*)
13379 # NonStop-UX NCC 3.20
13380 # FIXME: insert proper C++ library support
13381 ld_shlibs_CXX=no
13382 ;;
13383 *)
13384 # FIXME: insert proper C++ library support
13385 ld_shlibs_CXX=no
13386 ;;
13387 esac
13388 ;;
13389
13390 vxworks*)
13391 # FIXME: insert proper C++ library support
13392 ld_shlibs_CXX=no
13393 ;;
13394
13395 *)
13396 # FIXME: insert proper C++ library support
13397 ld_shlibs_CXX=no
13398 ;;
13399 esac
13400
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13402 $as_echo "$ld_shlibs_CXX" >&6; }
13403 test "$ld_shlibs_CXX" = no && can_build_shared=no
13404
13405 GCC_CXX="$GXX"
13406 LD_CXX="$LD"
13407
13408 ## CAVEAT EMPTOR:
13409 ## There is no encapsulation within the following macros, do not change
13410 ## the running order or otherwise move them around unless you know exactly
13411 ## what you are doing...
13412 # Dependencies to place before and after the object being linked:
13413 predep_objects_CXX=
13414 postdep_objects_CXX=
13415 predeps_CXX=
13416 postdeps_CXX=
13417 compiler_lib_search_path_CXX=
13418
13419 cat > conftest.$ac_ext <<_LT_EOF
13420 class Foo
13421 {
13422 public:
13423 Foo (void) { a = 0; }
13424 private:
13425 int a;
13426 };
13427 _LT_EOF
13428
13429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13430 (eval $ac_compile) 2>&5
13431 ac_status=$?
13432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13433 test $ac_status = 0; }; then
13434 # Parse the compiler output and extract the necessary
13435 # objects, libraries and library flags.
13436
13437 # Sentinel used to keep track of whether or not we are before
13438 # the conftest object file.
13439 pre_test_object_deps_done=no
13440
13441 for p in `eval "$output_verbose_link_cmd"`; do
13442 case $p in
13443
13444 -L* | -R* | -l*)
13445 # Some compilers place space between "-{L,R}" and the path.
13446 # Remove the space.
13447 if test $p = "-L" ||
13448 test $p = "-R"; then
13449 prev=$p
13450 continue
13451 else
13452 prev=
13453 fi
13454
13455 if test "$pre_test_object_deps_done" = no; then
13456 case $p in
13457 -L* | -R*)
13458 # Internal compiler library paths should come after those
13459 # provided the user. The postdeps already come after the
13460 # user supplied libs so there is no need to process them.
13461 if test -z "$compiler_lib_search_path_CXX"; then
13462 compiler_lib_search_path_CXX="${prev}${p}"
13463 else
13464 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13465 fi
13466 ;;
13467 # The "-l" case would never come before the object being
13468 # linked, so don't bother handling this case.
13469 esac
13470 else
13471 if test -z "$postdeps_CXX"; then
13472 postdeps_CXX="${prev}${p}"
13473 else
13474 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13475 fi
13476 fi
13477 ;;
13478
13479 *.$objext)
13480 # This assumes that the test object file only shows up
13481 # once in the compiler output.
13482 if test "$p" = "conftest.$objext"; then
13483 pre_test_object_deps_done=yes
13484 continue
13485 fi
13486
13487 if test "$pre_test_object_deps_done" = no; then
13488 if test -z "$predep_objects_CXX"; then
13489 predep_objects_CXX="$p"
13490 else
13491 predep_objects_CXX="$predep_objects_CXX $p"
13492 fi
13493 else
13494 if test -z "$postdep_objects_CXX"; then
13495 postdep_objects_CXX="$p"
13496 else
13497 postdep_objects_CXX="$postdep_objects_CXX $p"
13498 fi
13499 fi
13500 ;;
13501
13502 *) ;; # Ignore the rest.
13503
13504 esac
13505 done
13506
13507 # Clean up.
13508 rm -f a.out a.exe
13509 else
13510 echo "libtool.m4: error: problem compiling CXX test program"
13511 fi
13512
13513 $RM -f confest.$objext
13514
13515 # PORTME: override above test on systems where it is broken
13516 case $host_os in
13517 interix[3-9]*)
13518 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13519 # hack all around it, let's just trust "g++" to DTRT.
13520 predep_objects_CXX=
13521 postdep_objects_CXX=
13522 postdeps_CXX=
13523 ;;
13524
13525 linux*)
13526 case `$CC -V 2>&1 | sed 5q` in
13527 *Sun\ C*)
13528 # Sun C++ 5.9
13529
13530 # The more standards-conforming stlport4 library is
13531 # incompatible with the Cstd library. Avoid specifying
13532 # it if it's in CXXFLAGS. Ignore libCrun as
13533 # -library=stlport4 depends on it.
13534 case " $CXX $CXXFLAGS " in
13535 *" -library=stlport4 "*)
13536 solaris_use_stlport4=yes
13537 ;;
13538 esac
13539
13540 if test "$solaris_use_stlport4" != yes; then
13541 postdeps_CXX='-library=Cstd -library=Crun'
13542 fi
13543 ;;
13544 esac
13545 ;;
13546
13547 solaris*)
13548 case $cc_basename in
13549 CC*)
13550 # The more standards-conforming stlport4 library is
13551 # incompatible with the Cstd library. Avoid specifying
13552 # it if it's in CXXFLAGS. Ignore libCrun as
13553 # -library=stlport4 depends on it.
13554 case " $CXX $CXXFLAGS " in
13555 *" -library=stlport4 "*)
13556 solaris_use_stlport4=yes
13557 ;;
13558 esac
13559
13560 # Adding this requires a known-good setup of shared libraries for
13561 # Sun compiler versions before 5.6, else PIC objects from an old
13562 # archive will be linked into the output, leading to subtle bugs.
13563 if test "$solaris_use_stlport4" != yes; then
13564 postdeps_CXX='-library=Cstd -library=Crun'
13565 fi
13566 ;;
13567 esac
13568 ;;
13569 esac
13570
13571
13572 case " $postdeps_CXX " in
13573 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13574 esac
13575 compiler_lib_search_dirs_CXX=
13576 if test -n "${compiler_lib_search_path_CXX}"; then
13577 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13578 fi
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
13605
13606
13607
13608
13609
13610 lt_prog_compiler_wl_CXX=
13611 lt_prog_compiler_pic_CXX=
13612 lt_prog_compiler_static_CXX=
13613
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13615 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13616
13617 # C++ specific cases for pic, static, wl, etc.
13618 if test "$GXX" = yes; then
13619 lt_prog_compiler_wl_CXX='-Wl,'
13620 lt_prog_compiler_static_CXX='-static'
13621
13622 case $host_os in
13623 aix*)
13624 # All AIX code is PIC.
13625 if test "$host_cpu" = ia64; then
13626 # AIX 5 now supports IA64 processor
13627 lt_prog_compiler_static_CXX='-Bstatic'
13628 fi
13629 lt_prog_compiler_pic_CXX='-fPIC'
13630 ;;
13631
13632 amigaos*)
13633 case $host_cpu in
13634 powerpc)
13635 # see comment about AmigaOS4 .so support
13636 lt_prog_compiler_pic_CXX='-fPIC'
13637 ;;
13638 m68k)
13639 # FIXME: we need at least 68020 code to build shared libraries, but
13640 # adding the `-m68020' flag to GCC prevents building anything better,
13641 # like `-m68040'.
13642 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13643 ;;
13644 esac
13645 ;;
13646
13647 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13648 # PIC is the default for these OSes.
13649 ;;
13650 mingw* | cygwin* | os2* | pw32* | cegcc*)
13651 # This hack is so that the source file can tell whether it is being
13652 # built for inclusion in a dll (and should export symbols for example).
13653 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13654 # (--disable-auto-import) libraries
13655 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13656 ;;
13657 darwin* | rhapsody*)
13658 # PIC is the default on this platform
13659 # Common symbols not allowed in MH_DYLIB files
13660 lt_prog_compiler_pic_CXX='-fno-common'
13661 ;;
13662 *djgpp*)
13663 # DJGPP does not support shared libraries at all
13664 lt_prog_compiler_pic_CXX=
13665 ;;
13666 haiku*)
13667 # PIC is the default for Haiku.
13668 # The "-static" flag exists, but is broken.
13669 lt_prog_compiler_static_CXX=
13670 ;;
13671 interix[3-9]*)
13672 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13673 # Instead, we relocate shared libraries at runtime.
13674 ;;
13675 sysv4*MP*)
13676 if test -d /usr/nec; then
13677 lt_prog_compiler_pic_CXX=-Kconform_pic
13678 fi
13679 ;;
13680 hpux*)
13681 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13682 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13683 # sets the default TLS model and affects inlining.
13684 case $host_cpu in
13685 hppa*64*)
13686 ;;
13687 *)
13688 lt_prog_compiler_pic_CXX='-fPIC'
13689 ;;
13690 esac
13691 ;;
13692 *qnx* | *nto*)
13693 # QNX uses GNU C++, but need to define -shared option too, otherwise
13694 # it will coredump.
13695 lt_prog_compiler_pic_CXX='-fPIC -shared'
13696 ;;
13697 *)
13698 lt_prog_compiler_pic_CXX='-fPIC'
13699 ;;
13700 esac
13701 else
13702 case $host_os in
13703 aix[4-9]*)
13704 # All AIX code is PIC.
13705 if test "$host_cpu" = ia64; then
13706 # AIX 5 now supports IA64 processor
13707 lt_prog_compiler_static_CXX='-Bstatic'
13708 else
13709 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13710 fi
13711 ;;
13712 chorus*)
13713 case $cc_basename in
13714 cxch68*)
13715 # Green Hills C++ Compiler
13716 # _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"
13717 ;;
13718 esac
13719 ;;
13720 dgux*)
13721 case $cc_basename in
13722 ec++*)
13723 lt_prog_compiler_pic_CXX='-KPIC'
13724 ;;
13725 ghcx*)
13726 # Green Hills C++ Compiler
13727 lt_prog_compiler_pic_CXX='-pic'
13728 ;;
13729 *)
13730 ;;
13731 esac
13732 ;;
13733 freebsd* | dragonfly*)
13734 # FreeBSD uses GNU C++
13735 ;;
13736 hpux9* | hpux10* | hpux11*)
13737 case $cc_basename in
13738 CC*)
13739 lt_prog_compiler_wl_CXX='-Wl,'
13740 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13741 if test "$host_cpu" != ia64; then
13742 lt_prog_compiler_pic_CXX='+Z'
13743 fi
13744 ;;
13745 aCC*)
13746 lt_prog_compiler_wl_CXX='-Wl,'
13747 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13748 case $host_cpu in
13749 hppa*64*|ia64*)
13750 # +Z the default
13751 ;;
13752 *)
13753 lt_prog_compiler_pic_CXX='+Z'
13754 ;;
13755 esac
13756 ;;
13757 *)
13758 ;;
13759 esac
13760 ;;
13761 interix*)
13762 # This is c89, which is MS Visual C++ (no shared libs)
13763 # Anyone wants to do a port?
13764 ;;
13765 irix5* | irix6* | nonstopux*)
13766 case $cc_basename in
13767 CC*)
13768 lt_prog_compiler_wl_CXX='-Wl,'
13769 lt_prog_compiler_static_CXX='-non_shared'
13770 # CC pic flag -KPIC is the default.
13771 ;;
13772 *)
13773 ;;
13774 esac
13775 ;;
13776 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13777 case $cc_basename in
13778 KCC*)
13779 # KAI C++ Compiler
13780 lt_prog_compiler_wl_CXX='--backend -Wl,'
13781 lt_prog_compiler_pic_CXX='-fPIC'
13782 ;;
13783 ecpc* )
13784 # old Intel C++ for x86_64 which still supported -KPIC.
13785 lt_prog_compiler_wl_CXX='-Wl,'
13786 lt_prog_compiler_pic_CXX='-KPIC'
13787 lt_prog_compiler_static_CXX='-static'
13788 ;;
13789 icpc* )
13790 # Intel C++, used to be incompatible with GCC.
13791 # ICC 10 doesn't accept -KPIC any more.
13792 lt_prog_compiler_wl_CXX='-Wl,'
13793 lt_prog_compiler_pic_CXX='-fPIC'
13794 lt_prog_compiler_static_CXX='-static'
13795 ;;
13796 pgCC* | pgcpp*)
13797 # Portland Group C++ compiler
13798 lt_prog_compiler_wl_CXX='-Wl,'
13799 lt_prog_compiler_pic_CXX='-fpic'
13800 lt_prog_compiler_static_CXX='-Bstatic'
13801 ;;
13802 cxx*)
13803 # Compaq C++
13804 # Make sure the PIC flag is empty. It appears that all Alpha
13805 # Linux and Compaq Tru64 Unix objects are PIC.
13806 lt_prog_compiler_pic_CXX=
13807 lt_prog_compiler_static_CXX='-non_shared'
13808 ;;
13809 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13810 # IBM XL 8.0, 9.0 on PPC and BlueGene
13811 lt_prog_compiler_wl_CXX='-Wl,'
13812 lt_prog_compiler_pic_CXX='-qpic'
13813 lt_prog_compiler_static_CXX='-qstaticlink'
13814 ;;
13815 *)
13816 case `$CC -V 2>&1 | sed 5q` in
13817 *Sun\ C*)
13818 # Sun C++ 5.9
13819 lt_prog_compiler_pic_CXX='-KPIC'
13820 lt_prog_compiler_static_CXX='-Bstatic'
13821 lt_prog_compiler_wl_CXX='-Qoption ld '
13822 ;;
13823 esac
13824 ;;
13825 esac
13826 ;;
13827 lynxos*)
13828 ;;
13829 m88k*)
13830 ;;
13831 mvs*)
13832 case $cc_basename in
13833 cxx*)
13834 lt_prog_compiler_pic_CXX='-W c,exportall'
13835 ;;
13836 *)
13837 ;;
13838 esac
13839 ;;
13840 netbsd*)
13841 ;;
13842 *qnx* | *nto*)
13843 # QNX uses GNU C++, but need to define -shared option too, otherwise
13844 # it will coredump.
13845 lt_prog_compiler_pic_CXX='-fPIC -shared'
13846 ;;
13847 osf3* | osf4* | osf5*)
13848 case $cc_basename in
13849 KCC*)
13850 lt_prog_compiler_wl_CXX='--backend -Wl,'
13851 ;;
13852 RCC*)
13853 # Rational C++ 2.4.1
13854 lt_prog_compiler_pic_CXX='-pic'
13855 ;;
13856 cxx*)
13857 # Digital/Compaq C++
13858 lt_prog_compiler_wl_CXX='-Wl,'
13859 # Make sure the PIC flag is empty. It appears that all Alpha
13860 # Linux and Compaq Tru64 Unix objects are PIC.
13861 lt_prog_compiler_pic_CXX=
13862 lt_prog_compiler_static_CXX='-non_shared'
13863 ;;
13864 *)
13865 ;;
13866 esac
13867 ;;
13868 psos*)
13869 ;;
13870 solaris*)
13871 case $cc_basename in
13872 CC*)
13873 # Sun C++ 4.2, 5.x and Centerline C++
13874 lt_prog_compiler_pic_CXX='-KPIC'
13875 lt_prog_compiler_static_CXX='-Bstatic'
13876 lt_prog_compiler_wl_CXX='-Qoption ld '
13877 ;;
13878 gcx*)
13879 # Green Hills C++ Compiler
13880 lt_prog_compiler_pic_CXX='-PIC'
13881 ;;
13882 *)
13883 ;;
13884 esac
13885 ;;
13886 sunos4*)
13887 case $cc_basename in
13888 CC*)
13889 # Sun C++ 4.x
13890 lt_prog_compiler_pic_CXX='-pic'
13891 lt_prog_compiler_static_CXX='-Bstatic'
13892 ;;
13893 lcc*)
13894 # Lucid
13895 lt_prog_compiler_pic_CXX='-pic'
13896 ;;
13897 *)
13898 ;;
13899 esac
13900 ;;
13901 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13902 case $cc_basename in
13903 CC*)
13904 lt_prog_compiler_wl_CXX='-Wl,'
13905 lt_prog_compiler_pic_CXX='-KPIC'
13906 lt_prog_compiler_static_CXX='-Bstatic'
13907 ;;
13908 esac
13909 ;;
13910 tandem*)
13911 case $cc_basename in
13912 NCC*)
13913 # NonStop-UX NCC 3.20
13914 lt_prog_compiler_pic_CXX='-KPIC'
13915 ;;
13916 *)
13917 ;;
13918 esac
13919 ;;
13920 vxworks*)
13921 ;;
13922 *)
13923 lt_prog_compiler_can_build_shared_CXX=no
13924 ;;
13925 esac
13926 fi
13927
13928 case $host_os in
13929 # For platforms which do not support PIC, -DPIC is meaningless:
13930 *djgpp*)
13931 lt_prog_compiler_pic_CXX=
13932 ;;
13933 *)
13934 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13935 ;;
13936 esac
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13938 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13939
13940
13941
13942 #
13943 # Check to make sure the PIC flag actually works.
13944 #
13945 if test -n "$lt_prog_compiler_pic_CXX"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13947 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13948 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13949 $as_echo_n "(cached) " >&6
13950 else
13951 lt_cv_prog_compiler_pic_works_CXX=no
13952 ac_outfile=conftest.$ac_objext
13953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13954 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13955 # Insert the option either (1) after the last *FLAGS variable, or
13956 # (2) before a word containing "conftest.", or (3) at the end.
13957 # Note that $ac_compile itself does not contain backslashes and begins
13958 # with a dollar sign (not a hyphen), so the echo should work correctly.
13959 # The option is referenced via a variable to avoid confusing sed.
13960 lt_compile=`echo "$ac_compile" | $SED \
13961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13963 -e 's:$: $lt_compiler_flag:'`
13964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13965 (eval "$lt_compile" 2>conftest.err)
13966 ac_status=$?
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 if (exit $ac_status) && test -s "$ac_outfile"; then
13970 # The compiler can only warn and ignore the option if not recognized
13971 # So say no if there are warnings other than the usual output.
13972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13974 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13975 lt_cv_prog_compiler_pic_works_CXX=yes
13976 fi
13977 fi
13978 $RM conftest*
13979
13980 fi
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13982 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13983
13984 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13985 case $lt_prog_compiler_pic_CXX in
13986 "" | " "*) ;;
13987 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13988 esac
13989 else
13990 lt_prog_compiler_pic_CXX=
13991 lt_prog_compiler_can_build_shared_CXX=no
13992 fi
13993
13994 fi
13995
13996
13997
13998 #
13999 # Check to make sure the static flag actually works.
14000 #
14001 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14003 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14004 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14005 $as_echo_n "(cached) " >&6
14006 else
14007 lt_cv_prog_compiler_static_works_CXX=no
14008 save_LDFLAGS="$LDFLAGS"
14009 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14010 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14011 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14012 # The linker can only warn and ignore the option if not recognized
14013 # So say no if there are warnings
14014 if test -s conftest.err; then
14015 # Append any errors to the config.log.
14016 cat conftest.err 1>&5
14017 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14019 if diff conftest.exp conftest.er2 >/dev/null; then
14020 lt_cv_prog_compiler_static_works_CXX=yes
14021 fi
14022 else
14023 lt_cv_prog_compiler_static_works_CXX=yes
14024 fi
14025 fi
14026 $RM -r conftest*
14027 LDFLAGS="$save_LDFLAGS"
14028
14029 fi
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14031 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14032
14033 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14034 :
14035 else
14036 lt_prog_compiler_static_CXX=
14037 fi
14038
14039
14040
14041
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14043 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14044 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14045 $as_echo_n "(cached) " >&6
14046 else
14047 lt_cv_prog_compiler_c_o_CXX=no
14048 $RM -r conftest 2>/dev/null
14049 mkdir conftest
14050 cd conftest
14051 mkdir out
14052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14053
14054 lt_compiler_flag="-o out/conftest2.$ac_objext"
14055 # Insert the option either (1) after the last *FLAGS variable, or
14056 # (2) before a word containing "conftest.", or (3) at the end.
14057 # Note that $ac_compile itself does not contain backslashes and begins
14058 # with a dollar sign (not a hyphen), so the echo should work correctly.
14059 lt_compile=`echo "$ac_compile" | $SED \
14060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14062 -e 's:$: $lt_compiler_flag:'`
14063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14064 (eval "$lt_compile" 2>out/conftest.err)
14065 ac_status=$?
14066 cat out/conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14069 then
14070 # The compiler can only warn and ignore the option if not recognized
14071 # So say no if there are warnings
14072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14073 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14074 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14075 lt_cv_prog_compiler_c_o_CXX=yes
14076 fi
14077 fi
14078 chmod u+w . 2>&5
14079 $RM conftest*
14080 # SGI C++ compiler will create directory out/ii_files/ for
14081 # template instantiation
14082 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14083 $RM out/* && rmdir out
14084 cd ..
14085 $RM -r conftest
14086 $RM conftest*
14087
14088 fi
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14090 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14091
14092
14093
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14095 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14096 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14097 $as_echo_n "(cached) " >&6
14098 else
14099 lt_cv_prog_compiler_c_o_CXX=no
14100 $RM -r conftest 2>/dev/null
14101 mkdir conftest
14102 cd conftest
14103 mkdir out
14104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14105
14106 lt_compiler_flag="-o out/conftest2.$ac_objext"
14107 # Insert the option either (1) after the last *FLAGS variable, or
14108 # (2) before a word containing "conftest.", or (3) at the end.
14109 # Note that $ac_compile itself does not contain backslashes and begins
14110 # with a dollar sign (not a hyphen), so the echo should work correctly.
14111 lt_compile=`echo "$ac_compile" | $SED \
14112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14114 -e 's:$: $lt_compiler_flag:'`
14115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14116 (eval "$lt_compile" 2>out/conftest.err)
14117 ac_status=$?
14118 cat out/conftest.err >&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14121 then
14122 # The compiler can only warn and ignore the option if not recognized
14123 # So say no if there are warnings
14124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14125 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14126 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14127 lt_cv_prog_compiler_c_o_CXX=yes
14128 fi
14129 fi
14130 chmod u+w . 2>&5
14131 $RM conftest*
14132 # SGI C++ compiler will create directory out/ii_files/ for
14133 # template instantiation
14134 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14135 $RM out/* && rmdir out
14136 cd ..
14137 $RM -r conftest
14138 $RM conftest*
14139
14140 fi
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14142 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14143
14144
14145
14146
14147 hard_links="nottested"
14148 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14149 # do not overwrite the value of need_locks provided by the user
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14151 $as_echo_n "checking if we can lock with hard links... " >&6; }
14152 hard_links=yes
14153 $RM conftest*
14154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14155 touch conftest.a
14156 ln conftest.a conftest.b 2>&5 || hard_links=no
14157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14159 $as_echo "$hard_links" >&6; }
14160 if test "$hard_links" = no; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14162 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14163 need_locks=warn
14164 fi
14165 else
14166 need_locks=no
14167 fi
14168
14169
14170
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14172 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14173
14174 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14175 case $host_os in
14176 aix[4-9]*)
14177 # If we're using GNU nm, then we don't want the "-C" option.
14178 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14179 # Also, AIX nm treats weak defined symbols like other global defined
14180 # symbols, whereas GNU nm marks them as "W".
14181 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14182 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'
14183 else
14184 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'
14185 fi
14186 ;;
14187 pw32*)
14188 export_symbols_cmds_CXX="$ltdll_cmds"
14189 ;;
14190 cygwin* | mingw* | cegcc*)
14191 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'
14192 ;;
14193 *)
14194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14195 ;;
14196 esac
14197 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14198
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14200 $as_echo "$ld_shlibs_CXX" >&6; }
14201 test "$ld_shlibs_CXX" = no && can_build_shared=no
14202
14203 with_gnu_ld_CXX=$with_gnu_ld
14204
14205
14206
14207
14208
14209
14210 #
14211 # Do we need to explicitly link libc?
14212 #
14213 case "x$archive_cmds_need_lc_CXX" in
14214 x|xyes)
14215 # Assume -lc should be added
14216 archive_cmds_need_lc_CXX=yes
14217
14218 if test "$enable_shared" = yes && test "$GCC" = yes; then
14219 case $archive_cmds_CXX in
14220 *'~'*)
14221 # FIXME: we may have to deal with multi-command sequences.
14222 ;;
14223 '$CC '*)
14224 # Test whether the compiler implicitly links with -lc since on some
14225 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14226 # to ld, don't add -lc before -lgcc.
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14228 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14229 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14230 $as_echo_n "(cached) " >&6
14231 else
14232 $RM conftest*
14233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14234
14235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14236 (eval $ac_compile) 2>&5
14237 ac_status=$?
14238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14239 test $ac_status = 0; } 2>conftest.err; then
14240 soname=conftest
14241 lib=conftest
14242 libobjs=conftest.$ac_objext
14243 deplibs=
14244 wl=$lt_prog_compiler_wl_CXX
14245 pic_flag=$lt_prog_compiler_pic_CXX
14246 compiler_flags=-v
14247 linker_flags=-v
14248 verstring=
14249 output_objdir=.
14250 libname=conftest
14251 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14252 allow_undefined_flag_CXX=
14253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14254 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14255 ac_status=$?
14256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14257 test $ac_status = 0; }
14258 then
14259 lt_cv_archive_cmds_need_lc_CXX=no
14260 else
14261 lt_cv_archive_cmds_need_lc_CXX=yes
14262 fi
14263 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14264 else
14265 cat conftest.err 1>&5
14266 fi
14267 $RM conftest*
14268
14269 fi
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14271 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14272 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14273 ;;
14274 esac
14275 fi
14276 ;;
14277 esac
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
14337
14338
14339
14340
14341
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14343 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14344
14345 library_names_spec=
14346 libname_spec='lib$name'
14347 soname_spec=
14348 shrext_cmds=".so"
14349 postinstall_cmds=
14350 postuninstall_cmds=
14351 finish_cmds=
14352 finish_eval=
14353 shlibpath_var=
14354 shlibpath_overrides_runpath=unknown
14355 version_type=none
14356 dynamic_linker="$host_os ld.so"
14357 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14358 need_lib_prefix=unknown
14359 hardcode_into_libs=no
14360
14361 # when you set need_version to no, make sure it does not cause -set_version
14362 # flags to be left without arguments
14363 need_version=unknown
14364
14365 case $host_os in
14366 aix3*)
14367 version_type=linux
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14369 shlibpath_var=LIBPATH
14370
14371 # AIX 3 has no versioning support, so we append a major version to the name.
14372 soname_spec='${libname}${release}${shared_ext}$major'
14373 ;;
14374
14375 aix[4-9]*)
14376 version_type=linux
14377 need_lib_prefix=no
14378 need_version=no
14379 hardcode_into_libs=yes
14380 if test "$host_cpu" = ia64; then
14381 # AIX 5 supports IA64
14382 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14383 shlibpath_var=LD_LIBRARY_PATH
14384 else
14385 # With GCC up to 2.95.x, collect2 would create an import file
14386 # for dependence libraries. The import file would start with
14387 # the line `#! .'. This would cause the generated library to
14388 # depend on `.', always an invalid library. This was fixed in
14389 # development snapshots of GCC prior to 3.0.
14390 case $host_os in
14391 aix4 | aix4.[01] | aix4.[01].*)
14392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14393 echo ' yes '
14394 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14395 :
14396 else
14397 can_build_shared=no
14398 fi
14399 ;;
14400 esac
14401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14402 # soname into executable. Probably we can add versioning support to
14403 # collect2, so additional links can be useful in future.
14404 if test "$aix_use_runtimelinking" = yes; then
14405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14406 # instead of lib<name>.a to let people know that these are not
14407 # typical AIX shared libraries.
14408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14409 else
14410 # We preserve .a as extension for shared libraries through AIX4.2
14411 # and later when we are not doing run time linking.
14412 library_names_spec='${libname}${release}.a $libname.a'
14413 soname_spec='${libname}${release}${shared_ext}$major'
14414 fi
14415 shlibpath_var=LIBPATH
14416 fi
14417 ;;
14418
14419 amigaos*)
14420 case $host_cpu in
14421 powerpc)
14422 # Since July 2007 AmigaOS4 officially supports .so libraries.
14423 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425 ;;
14426 m68k)
14427 library_names_spec='$libname.ixlibrary $libname.a'
14428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14429 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'
14430 ;;
14431 esac
14432 ;;
14433
14434 beos*)
14435 library_names_spec='${libname}${shared_ext}'
14436 dynamic_linker="$host_os ld.so"
14437 shlibpath_var=LIBRARY_PATH
14438 ;;
14439
14440 bsdi[45]*)
14441 version_type=linux
14442 need_version=no
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444 soname_spec='${libname}${release}${shared_ext}$major'
14445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14446 shlibpath_var=LD_LIBRARY_PATH
14447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14449 # the default ld.so.conf also contains /usr/contrib/lib and
14450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14451 # libtool to hard-code these into programs
14452 ;;
14453
14454 cygwin* | mingw* | pw32* | cegcc*)
14455 version_type=windows
14456 shrext_cmds=".dll"
14457 need_version=no
14458 need_lib_prefix=no
14459
14460 case $GCC,$host_os in
14461 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14462 library_names_spec='$libname.dll.a'
14463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14464 postinstall_cmds='base_file=`basename \${file}`~
14465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14466 dldir=$destdir/`dirname \$dlpath`~
14467 test -d \$dldir || mkdir -p \$dldir~
14468 $install_prog $dir/$dlname \$dldir/$dlname~
14469 chmod a+x \$dldir/$dlname~
14470 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14471 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14472 fi'
14473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14474 dlpath=$dir/\$dldll~
14475 $RM \$dlpath'
14476 shlibpath_overrides_runpath=yes
14477
14478 case $host_os in
14479 cygwin*)
14480 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14481 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14482
14483 ;;
14484 mingw* | cegcc*)
14485 # MinGW DLLs use traditional 'lib' prefix
14486 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14487 ;;
14488 pw32*)
14489 # pw32 DLLs use 'pw' prefix rather than 'lib'
14490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14491 ;;
14492 esac
14493 ;;
14494
14495 *)
14496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14497 ;;
14498 esac
14499 dynamic_linker='Win32 ld.exe'
14500 # FIXME: first we should search . and the directory the executable is in
14501 shlibpath_var=PATH
14502 ;;
14503
14504 darwin* | rhapsody*)
14505 dynamic_linker="$host_os dyld"
14506 version_type=darwin
14507 need_lib_prefix=no
14508 need_version=no
14509 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14510 soname_spec='${libname}${release}${major}$shared_ext'
14511 shlibpath_overrides_runpath=yes
14512 shlibpath_var=DYLD_LIBRARY_PATH
14513 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14514
14515 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14516 ;;
14517
14518 dgux*)
14519 version_type=linux
14520 need_lib_prefix=no
14521 need_version=no
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14523 soname_spec='${libname}${release}${shared_ext}$major'
14524 shlibpath_var=LD_LIBRARY_PATH
14525 ;;
14526
14527 freebsd* | dragonfly*)
14528 # DragonFly does not have aout. When/if they implement a new
14529 # versioning mechanism, adjust this.
14530 if test -x /usr/bin/objformat; then
14531 objformat=`/usr/bin/objformat`
14532 else
14533 case $host_os in
14534 freebsd[23].*) objformat=aout ;;
14535 *) objformat=elf ;;
14536 esac
14537 fi
14538 version_type=freebsd-$objformat
14539 case $version_type in
14540 freebsd-elf*)
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14542 need_version=no
14543 need_lib_prefix=no
14544 ;;
14545 freebsd-*)
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14547 need_version=yes
14548 ;;
14549 esac
14550 shlibpath_var=LD_LIBRARY_PATH
14551 case $host_os in
14552 freebsd2.*)
14553 shlibpath_overrides_runpath=yes
14554 ;;
14555 freebsd3.[01]* | freebsdelf3.[01]*)
14556 shlibpath_overrides_runpath=yes
14557 hardcode_into_libs=yes
14558 ;;
14559 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14560 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14561 shlibpath_overrides_runpath=no
14562 hardcode_into_libs=yes
14563 ;;
14564 *) # from 4.6 on, and DragonFly
14565 shlibpath_overrides_runpath=yes
14566 hardcode_into_libs=yes
14567 ;;
14568 esac
14569 ;;
14570
14571 gnu*)
14572 version_type=linux
14573 need_lib_prefix=no
14574 need_version=no
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14576 soname_spec='${libname}${release}${shared_ext}$major'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 hardcode_into_libs=yes
14579 ;;
14580
14581 haiku*)
14582 version_type=linux
14583 need_lib_prefix=no
14584 need_version=no
14585 dynamic_linker="$host_os runtime_loader"
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14587 soname_spec='${libname}${release}${shared_ext}$major'
14588 shlibpath_var=LIBRARY_PATH
14589 shlibpath_overrides_runpath=yes
14590 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14591 hardcode_into_libs=yes
14592 ;;
14593
14594 hpux9* | hpux10* | hpux11*)
14595 # Give a soname corresponding to the major version so that dld.sl refuses to
14596 # link against other versions.
14597 version_type=sunos
14598 need_lib_prefix=no
14599 need_version=no
14600 case $host_cpu in
14601 ia64*)
14602 shrext_cmds='.so'
14603 hardcode_into_libs=yes
14604 dynamic_linker="$host_os dld.so"
14605 shlibpath_var=LD_LIBRARY_PATH
14606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14608 soname_spec='${libname}${release}${shared_ext}$major'
14609 if test "X$HPUX_IA64_MODE" = X32; then
14610 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14611 else
14612 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14613 fi
14614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14615 ;;
14616 hppa*64*)
14617 shrext_cmds='.sl'
14618 hardcode_into_libs=yes
14619 dynamic_linker="$host_os dld.sl"
14620 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14623 soname_spec='${libname}${release}${shared_ext}$major'
14624 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14626 ;;
14627 *)
14628 shrext_cmds='.sl'
14629 dynamic_linker="$host_os dld.sl"
14630 shlibpath_var=SHLIB_PATH
14631 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14633 soname_spec='${libname}${release}${shared_ext}$major'
14634 ;;
14635 esac
14636 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14637 postinstall_cmds='chmod 555 $lib'
14638 # or fails outright, so override atomically:
14639 install_override_mode=555
14640 ;;
14641
14642 interix[3-9]*)
14643 version_type=linux
14644 need_lib_prefix=no
14645 need_version=no
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14647 soname_spec='${libname}${release}${shared_ext}$major'
14648 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14649 shlibpath_var=LD_LIBRARY_PATH
14650 shlibpath_overrides_runpath=no
14651 hardcode_into_libs=yes
14652 ;;
14653
14654 irix5* | irix6* | nonstopux*)
14655 case $host_os in
14656 nonstopux*) version_type=nonstopux ;;
14657 *)
14658 if test "$lt_cv_prog_gnu_ld" = yes; then
14659 version_type=linux
14660 else
14661 version_type=irix
14662 fi ;;
14663 esac
14664 need_lib_prefix=no
14665 need_version=no
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14668 case $host_os in
14669 irix5* | nonstopux*)
14670 libsuff= shlibsuff=
14671 ;;
14672 *)
14673 case $LD in # libtool.m4 will add one of these switches to LD
14674 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14675 libsuff= shlibsuff= libmagic=32-bit;;
14676 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14677 libsuff=32 shlibsuff=N32 libmagic=N32;;
14678 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14679 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14680 *) libsuff= shlibsuff= libmagic=never-match;;
14681 esac
14682 ;;
14683 esac
14684 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14685 shlibpath_overrides_runpath=no
14686 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14687 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14688 hardcode_into_libs=yes
14689 ;;
14690
14691 # No shared lib support for Linux oldld, aout, or coff.
14692 linux*oldld* | linux*aout* | linux*coff*)
14693 dynamic_linker=no
14694 ;;
14695
14696 # This must be Linux ELF.
14697 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14698 version_type=linux
14699 need_lib_prefix=no
14700 need_version=no
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14702 soname_spec='${libname}${release}${shared_ext}$major'
14703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 shlibpath_overrides_runpath=no
14706
14707 # Some binutils ld are patched to set DT_RUNPATH
14708 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14709 $as_echo_n "(cached) " >&6
14710 else
14711 lt_cv_shlibpath_overrides_runpath=no
14712 save_LDFLAGS=$LDFLAGS
14713 save_libdir=$libdir
14714 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14715 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14718
14719 int
14720 main ()
14721 {
14722
14723 ;
14724 return 0;
14725 }
14726 _ACEOF
14727 if ac_fn_cxx_try_link "$LINENO"; then :
14728 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14729 lt_cv_shlibpath_overrides_runpath=yes
14730 fi
14731 fi
14732 rm -f core conftest.err conftest.$ac_objext \
14733 conftest$ac_exeext conftest.$ac_ext
14734 LDFLAGS=$save_LDFLAGS
14735 libdir=$save_libdir
14736
14737 fi
14738
14739 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14740
14741 # This implies no fast_install, which is unacceptable.
14742 # Some rework will be needed to allow for fast_install
14743 # before this can be enabled.
14744 hardcode_into_libs=yes
14745
14746 # Append ld.so.conf contents to the search path
14747 if test -f /etc/ld.so.conf; then
14748 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' ' '`
14749 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14750 fi
14751
14752 # We used to test for /lib/ld.so.1 and disable shared libraries on
14753 # powerpc, because MkLinux only supported shared libraries with the
14754 # GNU dynamic linker. Since this was broken with cross compilers,
14755 # most powerpc-linux boxes support dynamic linking these days and
14756 # people can always --disable-shared, the test was removed, and we
14757 # assume the GNU/Linux dynamic linker is in use.
14758 dynamic_linker='GNU/Linux ld.so'
14759 ;;
14760
14761 netbsd*)
14762 version_type=sunos
14763 need_lib_prefix=no
14764 need_version=no
14765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14768 dynamic_linker='NetBSD (a.out) ld.so'
14769 else
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14771 soname_spec='${libname}${release}${shared_ext}$major'
14772 dynamic_linker='NetBSD ld.elf_so'
14773 fi
14774 shlibpath_var=LD_LIBRARY_PATH
14775 shlibpath_overrides_runpath=yes
14776 hardcode_into_libs=yes
14777 ;;
14778
14779 newsos6)
14780 version_type=linux
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782 shlibpath_var=LD_LIBRARY_PATH
14783 shlibpath_overrides_runpath=yes
14784 ;;
14785
14786 *nto* | *qnx*)
14787 version_type=qnx
14788 need_lib_prefix=no
14789 need_version=no
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791 soname_spec='${libname}${release}${shared_ext}$major'
14792 shlibpath_var=LD_LIBRARY_PATH
14793 shlibpath_overrides_runpath=no
14794 hardcode_into_libs=yes
14795 dynamic_linker='ldqnx.so'
14796 ;;
14797
14798 openbsd*)
14799 version_type=sunos
14800 sys_lib_dlsearch_path_spec="/usr/lib"
14801 need_lib_prefix=no
14802 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14803 case $host_os in
14804 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14805 *) need_version=no ;;
14806 esac
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14809 shlibpath_var=LD_LIBRARY_PATH
14810 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14811 case $host_os in
14812 openbsd2.[89] | openbsd2.[89].*)
14813 shlibpath_overrides_runpath=no
14814 ;;
14815 *)
14816 shlibpath_overrides_runpath=yes
14817 ;;
14818 esac
14819 else
14820 shlibpath_overrides_runpath=yes
14821 fi
14822 ;;
14823
14824 os2*)
14825 libname_spec='$name'
14826 shrext_cmds=".dll"
14827 need_lib_prefix=no
14828 library_names_spec='$libname${shared_ext} $libname.a'
14829 dynamic_linker='OS/2 ld.exe'
14830 shlibpath_var=LIBPATH
14831 ;;
14832
14833 osf3* | osf4* | osf5*)
14834 version_type=osf
14835 need_lib_prefix=no
14836 need_version=no
14837 soname_spec='${libname}${release}${shared_ext}$major'
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14839 shlibpath_var=LD_LIBRARY_PATH
14840 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14841 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14842 ;;
14843
14844 rdos*)
14845 dynamic_linker=no
14846 ;;
14847
14848 solaris*)
14849 version_type=linux
14850 need_lib_prefix=no
14851 need_version=no
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14853 soname_spec='${libname}${release}${shared_ext}$major'
14854 shlibpath_var=LD_LIBRARY_PATH
14855 shlibpath_overrides_runpath=yes
14856 hardcode_into_libs=yes
14857 # ldd complains unless libraries are executable
14858 postinstall_cmds='chmod +x $lib'
14859 ;;
14860
14861 sunos4*)
14862 version_type=sunos
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14867 if test "$with_gnu_ld" = yes; then
14868 need_lib_prefix=no
14869 fi
14870 need_version=yes
14871 ;;
14872
14873 sysv4 | sysv4.3*)
14874 version_type=linux
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 case $host_vendor in
14879 sni)
14880 shlibpath_overrides_runpath=no
14881 need_lib_prefix=no
14882 runpath_var=LD_RUN_PATH
14883 ;;
14884 siemens)
14885 need_lib_prefix=no
14886 ;;
14887 motorola)
14888 need_lib_prefix=no
14889 need_version=no
14890 shlibpath_overrides_runpath=no
14891 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14892 ;;
14893 esac
14894 ;;
14895
14896 sysv4*MP*)
14897 if test -d /usr/nec ;then
14898 version_type=linux
14899 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14900 soname_spec='$libname${shared_ext}.$major'
14901 shlibpath_var=LD_LIBRARY_PATH
14902 fi
14903 ;;
14904
14905 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14906 version_type=freebsd-elf
14907 need_lib_prefix=no
14908 need_version=no
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14910 soname_spec='${libname}${release}${shared_ext}$major'
14911 shlibpath_var=LD_LIBRARY_PATH
14912 shlibpath_overrides_runpath=yes
14913 hardcode_into_libs=yes
14914 if test "$with_gnu_ld" = yes; then
14915 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14916 else
14917 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14918 case $host_os in
14919 sco3.2v5*)
14920 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14921 ;;
14922 esac
14923 fi
14924 sys_lib_dlsearch_path_spec='/usr/lib'
14925 ;;
14926
14927 tpf*)
14928 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14929 version_type=linux
14930 need_lib_prefix=no
14931 need_version=no
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 shlibpath_var=LD_LIBRARY_PATH
14934 shlibpath_overrides_runpath=no
14935 hardcode_into_libs=yes
14936 ;;
14937
14938 uts4*)
14939 version_type=linux
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 shlibpath_var=LD_LIBRARY_PATH
14943 ;;
14944
14945 *)
14946 dynamic_linker=no
14947 ;;
14948 esac
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14950 $as_echo "$dynamic_linker" >&6; }
14951 test "$dynamic_linker" = no && can_build_shared=no
14952
14953 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14954 if test "$GCC" = yes; then
14955 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14956 fi
14957
14958 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14959 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14960 fi
14961 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14962 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14963 fi
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
14997
14998
14999
15000
15001
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15003 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15004 hardcode_action_CXX=
15005 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15006 test -n "$runpath_var_CXX" ||
15007 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15008
15009 # We can hardcode non-existent directories.
15010 if test "$hardcode_direct_CXX" != no &&
15011 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15012 # have to relink, otherwise we might link with an installed library
15013 # when we should be linking with a yet-to-be-installed one
15014 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15015 test "$hardcode_minus_L_CXX" != no; then
15016 # Linking always hardcodes the temporary library directory.
15017 hardcode_action_CXX=relink
15018 else
15019 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15020 hardcode_action_CXX=immediate
15021 fi
15022 else
15023 # We cannot hardcode anything, or else we can only hardcode existing
15024 # directories.
15025 hardcode_action_CXX=unsupported
15026 fi
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15028 $as_echo "$hardcode_action_CXX" >&6; }
15029
15030 if test "$hardcode_action_CXX" = relink ||
15031 test "$inherit_rpath_CXX" = yes; then
15032 # Fast installation is not supported
15033 enable_fast_install=no
15034 elif test "$shlibpath_overrides_runpath" = yes ||
15035 test "$enable_shared" = no; then
15036 # Fast installation is not necessary
15037 enable_fast_install=needless
15038 fi
15039
15040
15041
15042
15043
15044
15045
15046 fi # test -n "$compiler"
15047
15048 CC=$lt_save_CC
15049 LDCXX=$LD
15050 LD=$lt_save_LD
15051 GCC=$lt_save_GCC
15052 with_gnu_ld=$lt_save_with_gnu_ld
15053 lt_cv_path_LDCXX=$lt_cv_path_LD
15054 lt_cv_path_LD=$lt_save_path_LD
15055 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15056 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15057 fi # test "$_lt_caught_CXX_error" != yes
15058
15059 ac_ext=c
15060 ac_cpp='$CPP $CPPFLAGS'
15061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077 ac_config_commands="$ac_config_commands libtool"
15078
15079
15080
15081
15082 # Only expand once:
15083
15084
15085
15086 # The tests for host and target for $enable_largefile require
15087 # canonical names.
15088
15089
15090
15091 # As the $enable_largefile decision depends on --enable-plugins we must set it
15092 # even in directories otherwise not depending on the $plugins option.
15093
15094
15095 maybe_plugins=no
15096 for ac_header in dlfcn.h
15097 do :
15098 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15099 "
15100 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15101 cat >>confdefs.h <<_ACEOF
15102 #define HAVE_DLFCN_H 1
15103 _ACEOF
15104 maybe_plugins=yes
15105 fi
15106
15107 done
15108
15109 for ac_header in windows.h
15110 do :
15111 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15112 "
15113 if test "x$ac_cv_header_windows_h" = x""yes; then :
15114 cat >>confdefs.h <<_ACEOF
15115 #define HAVE_WINDOWS_H 1
15116 _ACEOF
15117 maybe_plugins=yes
15118 fi
15119
15120 done
15121
15122
15123 # Check whether --enable-plugins was given.
15124 if test "${enable_plugins+set}" = set; then :
15125 enableval=$enable_plugins; case "${enableval}" in
15126 no) plugins=no ;;
15127 *) plugins=yes
15128 if test "$maybe_plugins" != "yes" ; then
15129 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15130 fi ;;
15131 esac
15132 else
15133 plugins=$maybe_plugins
15134
15135 fi
15136
15137 if test "$plugins" = "yes"; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15139 $as_echo_n "checking for library containing dlopen... " >&6; }
15140 if test "${ac_cv_search_dlopen+set}" = set; then :
15141 $as_echo_n "(cached) " >&6
15142 else
15143 ac_func_search_save_LIBS=$LIBS
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15146
15147 /* Override any GCC internal prototype to avoid an error.
15148 Use char because int might match the return type of a GCC
15149 builtin and then its argument prototype would still apply. */
15150 #ifdef __cplusplus
15151 extern "C"
15152 #endif
15153 char dlopen ();
15154 int
15155 main ()
15156 {
15157 return dlopen ();
15158 ;
15159 return 0;
15160 }
15161 _ACEOF
15162 for ac_lib in '' dl; do
15163 if test -z "$ac_lib"; then
15164 ac_res="none required"
15165 else
15166 ac_res=-l$ac_lib
15167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15168 fi
15169 if ac_fn_c_try_link "$LINENO"; then :
15170 ac_cv_search_dlopen=$ac_res
15171 fi
15172 rm -f core conftest.err conftest.$ac_objext \
15173 conftest$ac_exeext
15174 if test "${ac_cv_search_dlopen+set}" = set; then :
15175 break
15176 fi
15177 done
15178 if test "${ac_cv_search_dlopen+set}" = set; then :
15179
15180 else
15181 ac_cv_search_dlopen=no
15182 fi
15183 rm conftest.$ac_ext
15184 LIBS=$ac_func_search_save_LIBS
15185 fi
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15187 $as_echo "$ac_cv_search_dlopen" >&6; }
15188 ac_res=$ac_cv_search_dlopen
15189 if test "$ac_res" != no; then :
15190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15191
15192 fi
15193
15194 fi
15195
15196
15197 case "${host}" in
15198 sparc-*-solaris*|i[3-7]86-*-solaris*)
15199 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15200 # are mutually exclusive; and without procfs support, the bfd/ elf module
15201 # cannot provide certain routines such as elfcore_write_prpsinfo
15202 # or elfcore_write_prstatus. So unless the user explicitly requested
15203 # large-file support through the --enable-largefile switch, disable
15204 # large-file support in favor of procfs support.
15205 test "${target}" = "${host}" -a "x$plugins" = xno \
15206 && : ${enable_largefile="no"}
15207 ;;
15208 esac
15209
15210 # Check whether --enable-largefile was given.
15211 if test "${enable_largefile+set}" = set; then :
15212 enableval=$enable_largefile;
15213 fi
15214
15215 if test "$enable_largefile" != no; then
15216
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15218 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15219 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15220 $as_echo_n "(cached) " >&6
15221 else
15222 ac_cv_sys_largefile_CC=no
15223 if test "$GCC" != yes; then
15224 ac_save_CC=$CC
15225 while :; do
15226 # IRIX 6.2 and later do not support large files by default,
15227 # so use the C compiler's -n32 option if that helps.
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15230 #include <sys/types.h>
15231 /* Check that off_t can represent 2**63 - 1 correctly.
15232 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15233 since some C++ compilers masquerading as C compilers
15234 incorrectly reject 9223372036854775807. */
15235 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15237 && LARGE_OFF_T % 2147483647 == 1)
15238 ? 1 : -1];
15239 int
15240 main ()
15241 {
15242
15243 ;
15244 return 0;
15245 }
15246 _ACEOF
15247 if ac_fn_c_try_compile "$LINENO"; then :
15248 break
15249 fi
15250 rm -f core conftest.err conftest.$ac_objext
15251 CC="$CC -n32"
15252 if ac_fn_c_try_compile "$LINENO"; then :
15253 ac_cv_sys_largefile_CC=' -n32'; break
15254 fi
15255 rm -f core conftest.err conftest.$ac_objext
15256 break
15257 done
15258 CC=$ac_save_CC
15259 rm -f conftest.$ac_ext
15260 fi
15261 fi
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15263 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15264 if test "$ac_cv_sys_largefile_CC" != no; then
15265 CC=$CC$ac_cv_sys_largefile_CC
15266 fi
15267
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15269 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15270 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15271 $as_echo_n "(cached) " >&6
15272 else
15273 while :; do
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276 #include <sys/types.h>
15277 /* Check that off_t can represent 2**63 - 1 correctly.
15278 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15279 since some C++ compilers masquerading as C compilers
15280 incorrectly reject 9223372036854775807. */
15281 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15282 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15283 && LARGE_OFF_T % 2147483647 == 1)
15284 ? 1 : -1];
15285 int
15286 main ()
15287 {
15288
15289 ;
15290 return 0;
15291 }
15292 _ACEOF
15293 if ac_fn_c_try_compile "$LINENO"; then :
15294 ac_cv_sys_file_offset_bits=no; break
15295 fi
15296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15299 #define _FILE_OFFSET_BITS 64
15300 #include <sys/types.h>
15301 /* Check that off_t can represent 2**63 - 1 correctly.
15302 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15303 since some C++ compilers masquerading as C compilers
15304 incorrectly reject 9223372036854775807. */
15305 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15307 && LARGE_OFF_T % 2147483647 == 1)
15308 ? 1 : -1];
15309 int
15310 main ()
15311 {
15312
15313 ;
15314 return 0;
15315 }
15316 _ACEOF
15317 if ac_fn_c_try_compile "$LINENO"; then :
15318 ac_cv_sys_file_offset_bits=64; break
15319 fi
15320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321 ac_cv_sys_file_offset_bits=unknown
15322 break
15323 done
15324 fi
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15326 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15327 case $ac_cv_sys_file_offset_bits in #(
15328 no | unknown) ;;
15329 *)
15330 cat >>confdefs.h <<_ACEOF
15331 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15332 _ACEOF
15333 ;;
15334 esac
15335 rm -rf conftest*
15336 if test $ac_cv_sys_file_offset_bits = unknown; then
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15338 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15339 if test "${ac_cv_sys_large_files+set}" = set; then :
15340 $as_echo_n "(cached) " >&6
15341 else
15342 while :; do
15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15345 #include <sys/types.h>
15346 /* Check that off_t can represent 2**63 - 1 correctly.
15347 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15348 since some C++ compilers masquerading as C compilers
15349 incorrectly reject 9223372036854775807. */
15350 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15352 && LARGE_OFF_T % 2147483647 == 1)
15353 ? 1 : -1];
15354 int
15355 main ()
15356 {
15357
15358 ;
15359 return 0;
15360 }
15361 _ACEOF
15362 if ac_fn_c_try_compile "$LINENO"; then :
15363 ac_cv_sys_large_files=no; break
15364 fi
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15368 #define _LARGE_FILES 1
15369 #include <sys/types.h>
15370 /* Check that off_t can represent 2**63 - 1 correctly.
15371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15372 since some C++ compilers masquerading as C compilers
15373 incorrectly reject 9223372036854775807. */
15374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15376 && LARGE_OFF_T % 2147483647 == 1)
15377 ? 1 : -1];
15378 int
15379 main ()
15380 {
15381
15382 ;
15383 return 0;
15384 }
15385 _ACEOF
15386 if ac_fn_c_try_compile "$LINENO"; then :
15387 ac_cv_sys_large_files=1; break
15388 fi
15389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15390 ac_cv_sys_large_files=unknown
15391 break
15392 done
15393 fi
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15395 $as_echo "$ac_cv_sys_large_files" >&6; }
15396 case $ac_cv_sys_large_files in #(
15397 no | unknown) ;;
15398 *)
15399 cat >>confdefs.h <<_ACEOF
15400 #define _LARGE_FILES $ac_cv_sys_large_files
15401 _ACEOF
15402 ;;
15403 esac
15404 rm -rf conftest*
15405 fi
15406 fi
15407
15408
15409
15410
15411 # Check whether --with-lib-path was given.
15412 if test "${with_lib_path+set}" = set; then :
15413 withval=$with_lib_path; LIB_PATH=$withval
15414 fi
15415
15416 # Check whether --enable-targets was given.
15417 if test "${enable_targets+set}" = set; then :
15418 enableval=$enable_targets; case "${enableval}" in
15419 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15420 ;;
15421 no) enable_targets= ;;
15422 *) enable_targets=$enableval ;;
15423 esac
15424 fi
15425 # Check whether --enable-64-bit-bfd was given.
15426 if test "${enable_64_bit_bfd+set}" = set; then :
15427 enableval=$enable_64_bit_bfd; case "${enableval}" in
15428 yes) want64=true ;;
15429 no) want64=false ;;
15430 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15431 esac
15432 else
15433 want64=false
15434 fi
15435
15436
15437 # Check whether --with-sysroot was given.
15438 if test "${with_sysroot+set}" = set; then :
15439 withval=$with_sysroot;
15440 case ${with_sysroot} in
15441 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15442 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15443 esac
15444
15445 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15446 use_sysroot=yes
15447
15448 if test "x$prefix" = xNONE; then
15449 test_prefix=/usr/local
15450 else
15451 test_prefix=$prefix
15452 fi
15453 if test "x$exec_prefix" = xNONE; then
15454 test_exec_prefix=$test_prefix
15455 else
15456 test_exec_prefix=$exec_prefix
15457 fi
15458 case ${TARGET_SYSTEM_ROOT} in
15459 "${test_prefix}"|"${test_prefix}/"*|\
15460 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15461 '${prefix}'|'${prefix}/'*|\
15462 '${exec_prefix}'|'${exec_prefix}/'*)
15463 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15464 TARGET_SYSTEM_ROOT_DEFINE="$t"
15465 ;;
15466 esac
15467
15468 else
15469
15470 use_sysroot=no
15471 TARGET_SYSTEM_ROOT=
15472 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15473
15474 fi
15475
15476
15477
15478
15479
15480 # Check whether --enable-gold was given.
15481 if test "${enable_gold+set}" = set; then :
15482 enableval=$enable_gold; case "${enableval}" in
15483 default)
15484 install_as_default=no
15485 installed_linker=ld.bfd
15486 ;;
15487 yes|no)
15488 install_as_default=yes
15489 installed_linker=ld.bfd
15490 ;;
15491 *)
15492 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15493 ;;
15494 esac
15495 else
15496 install_as_default=yes
15497 installed_linker=ld.bfd
15498 fi
15499
15500
15501
15502
15503 # Check whether --enable-got was given.
15504 if test "${enable_got+set}" = set; then :
15505 enableval=$enable_got; case "${enableval}" in
15506 target | single | negative | multigot) got_handling=$enableval ;;
15507 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15508 esac
15509 else
15510 got_handling=target
15511 fi
15512
15513
15514 case "${got_handling}" in
15515 target)
15516
15517 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15518 ;;
15519 single)
15520
15521 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15522 ;;
15523 negative)
15524
15525 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15526 ;;
15527 multigot)
15528
15529 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15530 ;;
15531 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15532 esac
15533
15534 # PR gas/19109
15535 # Decide the default method for compressing debug sections.
15536 ac_default_compressed_debug_sections=unset
15537 # Provide a configure time option to override our default.
15538 # Check whether --enable-compressed_debug_sections was given.
15539 if test "${enable_compressed_debug_sections+set}" = set; then :
15540 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15541 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15542 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15543 esac
15544 fi
15545
15546 # Decide if -z relro should be enabled in ELF linker by default.
15547 ac_default_ld_z_relro=unset
15548 # Provide a configure time option to override our default.
15549 # Check whether --enable-relro was given.
15550 if test "${enable_relro+set}" = set; then :
15551 enableval=$enable_relro; case "${enableval}" in
15552 yes) ac_default_ld_z_relro=1 ;;
15553 no) ac_default_ld_z_relro=0 ;;
15554 esac
15555 fi
15556
15557
15558 # Set the 'development' global.
15559 . $srcdir/../bfd/development.sh
15560
15561 # Default set of GCC warnings to enable.
15562 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15563
15564 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h. */
15567 __GNUC__
15568 _ACEOF
15569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15570 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15571
15572 else
15573 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15574 fi
15575 rm -f conftest*
15576
15577
15578 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15580 /* end confdefs.h. */
15581 __GNUC__
15582 _ACEOF
15583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15584 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15585
15586 else
15587 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15588 fi
15589 rm -f conftest*
15590
15591
15592 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15593 WARN_WRITE_STRINGS=""
15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15596 __GNUC__
15597 _ACEOF
15598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15599 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15600
15601 else
15602 WARN_WRITE_STRINGS="-Wwrite-strings"
15603 fi
15604 rm -f conftest*
15605
15606
15607 # Check whether --enable-werror was given.
15608 if test "${enable_werror+set}" = set; then :
15609 enableval=$enable_werror; case "${enableval}" in
15610 yes | y) ERROR_ON_WARNING="yes" ;;
15611 no | n) ERROR_ON_WARNING="no" ;;
15612 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15613 esac
15614 fi
15615
15616
15617 # Disable -Wformat by default when using gcc on mingw
15618 case "${host}" in
15619 *-*-mingw32*)
15620 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15621 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15622 fi
15623 ;;
15624 *) ;;
15625 esac
15626
15627 # Enable -Werror by default when using gcc. Turn it off for releases.
15628 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15629 ERROR_ON_WARNING=yes
15630 fi
15631
15632 NO_WERROR=
15633 if test "${ERROR_ON_WARNING}" = yes ; then
15634 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15635 NO_WERROR="-Wno-error"
15636 fi
15637
15638 if test "${GCC}" = yes ; then
15639 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15640 fi
15641
15642 # Check whether --enable-build-warnings was given.
15643 if test "${enable_build_warnings+set}" = set; then :
15644 enableval=$enable_build_warnings; case "${enableval}" in
15645 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
15646 no) if test "${GCC}" = yes ; then
15647 WARN_CFLAGS="-w"
15648 fi;;
15649 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15650 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
15651 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15652 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
15653 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15654 esac
15655 fi
15656
15657
15658 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15659 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15660 fi
15661
15662
15663
15664
15665
15666
15667
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15669 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15670 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15671 $as_echo_n "(cached) " >&6
15672 else
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15675 #include <locale.h>
15676 int
15677 main ()
15678 {
15679 return LC_MESSAGES
15680 ;
15681 return 0;
15682 }
15683 _ACEOF
15684 if ac_fn_c_try_link "$LINENO"; then :
15685 am_cv_val_LC_MESSAGES=yes
15686 else
15687 am_cv_val_LC_MESSAGES=no
15688 fi
15689 rm -f core conftest.err conftest.$ac_objext \
15690 conftest$ac_exeext conftest.$ac_ext
15691 fi
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15693 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15694 if test $am_cv_val_LC_MESSAGES = yes; then
15695
15696 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15697
15698 fi
15699
15700
15701 ac_config_headers="$ac_config_headers config.h:config.in"
15702
15703
15704 # PR 14072
15705
15706
15707 if test -z "$target" ; then
15708 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15709 fi
15710 if test -z "$host" ; then
15711 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15712 fi
15713
15714 # host-specific stuff:
15715
15716 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
15717 # If we haven't got the data from the intl directory,
15718 # assume NLS is disabled.
15719 USE_NLS=no
15720 LIBINTL=
15721 LIBINTL_DEP=
15722 INCINTL=
15723 XGETTEXT=
15724 GMSGFMT=
15725 POSUB=
15726
15727 if test -f ../intl/config.intl; then
15728 . ../intl/config.intl
15729 fi
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15731 $as_echo_n "checking whether NLS is requested... " >&6; }
15732 if test x"$USE_NLS" != xyes; then
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15734 $as_echo "no" >&6; }
15735 else
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15737 $as_echo "yes" >&6; }
15738
15739 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15740
15741
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15743 $as_echo_n "checking for catalogs to be installed... " >&6; }
15744 # Look for .po and .gmo files in the source directory.
15745 CATALOGS=
15746 XLINGUAS=
15747 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15748 # If there aren't any .gmo files the shell will give us the
15749 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15750 # weeded out.
15751 case "$cat" in *\**)
15752 continue;;
15753 esac
15754 # The quadruple backslash is collapsed to a double backslash
15755 # by the backticks, then collapsed again by the double quotes,
15756 # leaving us with one backslash in the sed expression (right
15757 # before the dot that mustn't act as a wildcard).
15758 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15759 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15760 # The user is allowed to set LINGUAS to a list of languages to
15761 # install catalogs for. If it's empty that means "all of them."
15762 if test "x$LINGUAS" = x; then
15763 CATALOGS="$CATALOGS $cat"
15764 XLINGUAS="$XLINGUAS $lang"
15765 else
15766 case "$LINGUAS" in *$lang*)
15767 CATALOGS="$CATALOGS $cat"
15768 XLINGUAS="$XLINGUAS $lang"
15769 ;;
15770 esac
15771 fi
15772 done
15773 LINGUAS="$XLINGUAS"
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15775 $as_echo "$LINGUAS" >&6; }
15776
15777
15778 DATADIRNAME=share
15779
15780 INSTOBJEXT=.mo
15781
15782 GENCAT=gencat
15783
15784 CATOBJEXT=.gmo
15785
15786 fi
15787
15788 MKINSTALLDIRS=
15789 if test -n "$ac_aux_dir"; then
15790 case "$ac_aux_dir" in
15791 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15792 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15793 esac
15794 fi
15795 if test -z "$MKINSTALLDIRS"; then
15796 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15797 fi
15798
15799
15800
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15802 $as_echo_n "checking whether NLS is requested... " >&6; }
15803 # Check whether --enable-nls was given.
15804 if test "${enable_nls+set}" = set; then :
15805 enableval=$enable_nls; USE_NLS=$enableval
15806 else
15807 USE_NLS=yes
15808 fi
15809
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15811 $as_echo "$USE_NLS" >&6; }
15812
15813
15814
15815
15816
15817
15818 # Prepare PATH_SEPARATOR.
15819 # The user is always right.
15820 if test "${PATH_SEPARATOR+set}" != set; then
15821 echo "#! /bin/sh" >conf$$.sh
15822 echo "exit 0" >>conf$$.sh
15823 chmod +x conf$$.sh
15824 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15825 PATH_SEPARATOR=';'
15826 else
15827 PATH_SEPARATOR=:
15828 fi
15829 rm -f conf$$.sh
15830 fi
15831
15832 # Find out how to test for executable files. Don't use a zero-byte file,
15833 # as systems may use methods other than mode bits to determine executability.
15834 cat >conf$$.file <<_ASEOF
15835 #! /bin/sh
15836 exit 0
15837 _ASEOF
15838 chmod +x conf$$.file
15839 if test -x conf$$.file >/dev/null 2>&1; then
15840 ac_executable_p="test -x"
15841 else
15842 ac_executable_p="test -f"
15843 fi
15844 rm -f conf$$.file
15845
15846 # Extract the first word of "msgfmt", so it can be a program name with args.
15847 set dummy msgfmt; ac_word=$2
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15849 $as_echo_n "checking for $ac_word... " >&6; }
15850 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15851 $as_echo_n "(cached) " >&6
15852 else
15853 case "$MSGFMT" in
15854 [\\/]* | ?:[\\/]*)
15855 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15856 ;;
15857 *)
15858 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15859 for ac_dir in $PATH; do
15860 IFS="$ac_save_IFS"
15861 test -z "$ac_dir" && ac_dir=.
15862 for ac_exec_ext in '' $ac_executable_extensions; do
15863 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15864 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15865 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15866 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15867 break 2
15868 fi
15869 fi
15870 done
15871 done
15872 IFS="$ac_save_IFS"
15873 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15874 ;;
15875 esac
15876 fi
15877 MSGFMT="$ac_cv_path_MSGFMT"
15878 if test "$MSGFMT" != ":"; then
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15880 $as_echo "$MSGFMT" >&6; }
15881 else
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15883 $as_echo "no" >&6; }
15884 fi
15885
15886 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15887 set dummy gmsgfmt; ac_word=$2
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15889 $as_echo_n "checking for $ac_word... " >&6; }
15890 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15891 $as_echo_n "(cached) " >&6
15892 else
15893 case $GMSGFMT in
15894 [\\/]* | ?:[\\/]*)
15895 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15896 ;;
15897 *)
15898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15899 for as_dir in $PATH
15900 do
15901 IFS=$as_save_IFS
15902 test -z "$as_dir" && as_dir=.
15903 for ac_exec_ext in '' $ac_executable_extensions; do
15904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15905 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15907 break 2
15908 fi
15909 done
15910 done
15911 IFS=$as_save_IFS
15912
15913 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15914 ;;
15915 esac
15916 fi
15917 GMSGFMT=$ac_cv_path_GMSGFMT
15918 if test -n "$GMSGFMT"; then
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15920 $as_echo "$GMSGFMT" >&6; }
15921 else
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15923 $as_echo "no" >&6; }
15924 fi
15925
15926
15927
15928
15929 # Prepare PATH_SEPARATOR.
15930 # The user is always right.
15931 if test "${PATH_SEPARATOR+set}" != set; then
15932 echo "#! /bin/sh" >conf$$.sh
15933 echo "exit 0" >>conf$$.sh
15934 chmod +x conf$$.sh
15935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15936 PATH_SEPARATOR=';'
15937 else
15938 PATH_SEPARATOR=:
15939 fi
15940 rm -f conf$$.sh
15941 fi
15942
15943 # Find out how to test for executable files. Don't use a zero-byte file,
15944 # as systems may use methods other than mode bits to determine executability.
15945 cat >conf$$.file <<_ASEOF
15946 #! /bin/sh
15947 exit 0
15948 _ASEOF
15949 chmod +x conf$$.file
15950 if test -x conf$$.file >/dev/null 2>&1; then
15951 ac_executable_p="test -x"
15952 else
15953 ac_executable_p="test -f"
15954 fi
15955 rm -f conf$$.file
15956
15957 # Extract the first word of "xgettext", so it can be a program name with args.
15958 set dummy xgettext; ac_word=$2
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15960 $as_echo_n "checking for $ac_word... " >&6; }
15961 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15962 $as_echo_n "(cached) " >&6
15963 else
15964 case "$XGETTEXT" in
15965 [\\/]* | ?:[\\/]*)
15966 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15967 ;;
15968 *)
15969 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15970 for ac_dir in $PATH; do
15971 IFS="$ac_save_IFS"
15972 test -z "$ac_dir" && ac_dir=.
15973 for ac_exec_ext in '' $ac_executable_extensions; do
15974 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15975 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15976 (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
15977 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15978 break 2
15979 fi
15980 fi
15981 done
15982 done
15983 IFS="$ac_save_IFS"
15984 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15985 ;;
15986 esac
15987 fi
15988 XGETTEXT="$ac_cv_path_XGETTEXT"
15989 if test "$XGETTEXT" != ":"; then
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15991 $as_echo "$XGETTEXT" >&6; }
15992 else
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15994 $as_echo "no" >&6; }
15995 fi
15996
15997 rm -f messages.po
15998
15999
16000 # Prepare PATH_SEPARATOR.
16001 # The user is always right.
16002 if test "${PATH_SEPARATOR+set}" != set; then
16003 echo "#! /bin/sh" >conf$$.sh
16004 echo "exit 0" >>conf$$.sh
16005 chmod +x conf$$.sh
16006 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16007 PATH_SEPARATOR=';'
16008 else
16009 PATH_SEPARATOR=:
16010 fi
16011 rm -f conf$$.sh
16012 fi
16013
16014 # Find out how to test for executable files. Don't use a zero-byte file,
16015 # as systems may use methods other than mode bits to determine executability.
16016 cat >conf$$.file <<_ASEOF
16017 #! /bin/sh
16018 exit 0
16019 _ASEOF
16020 chmod +x conf$$.file
16021 if test -x conf$$.file >/dev/null 2>&1; then
16022 ac_executable_p="test -x"
16023 else
16024 ac_executable_p="test -f"
16025 fi
16026 rm -f conf$$.file
16027
16028 # Extract the first word of "msgmerge", so it can be a program name with args.
16029 set dummy msgmerge; ac_word=$2
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16031 $as_echo_n "checking for $ac_word... " >&6; }
16032 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16033 $as_echo_n "(cached) " >&6
16034 else
16035 case "$MSGMERGE" in
16036 [\\/]* | ?:[\\/]*)
16037 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16038 ;;
16039 *)
16040 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16041 for ac_dir in $PATH; do
16042 IFS="$ac_save_IFS"
16043 test -z "$ac_dir" && ac_dir=.
16044 for ac_exec_ext in '' $ac_executable_extensions; do
16045 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16046 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16047 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16048 break 2
16049 fi
16050 fi
16051 done
16052 done
16053 IFS="$ac_save_IFS"
16054 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16055 ;;
16056 esac
16057 fi
16058 MSGMERGE="$ac_cv_path_MSGMERGE"
16059 if test "$MSGMERGE" != ":"; then
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16061 $as_echo "$MSGMERGE" >&6; }
16062 else
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16064 $as_echo "no" >&6; }
16065 fi
16066
16067
16068 if test "$GMSGFMT" != ":"; then
16069 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16070 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16071 : ;
16072 else
16073 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16075 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16076 GMSGFMT=":"
16077 fi
16078 fi
16079
16080 if test "$XGETTEXT" != ":"; then
16081 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16082 (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
16083 : ;
16084 else
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16086 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16087 XGETTEXT=":"
16088 fi
16089 rm -f messages.po
16090 fi
16091
16092 ac_config_commands="$ac_config_commands default-1"
16093
16094
16095
16096
16097
16098 for ac_prog in 'bison -y' byacc
16099 do
16100 # Extract the first word of "$ac_prog", so it can be a program name with args.
16101 set dummy $ac_prog; ac_word=$2
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16103 $as_echo_n "checking for $ac_word... " >&6; }
16104 if test "${ac_cv_prog_YACC+set}" = set; then :
16105 $as_echo_n "(cached) " >&6
16106 else
16107 if test -n "$YACC"; then
16108 ac_cv_prog_YACC="$YACC" # Let the user override the test.
16109 else
16110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16111 for as_dir in $PATH
16112 do
16113 IFS=$as_save_IFS
16114 test -z "$as_dir" && as_dir=.
16115 for ac_exec_ext in '' $ac_executable_extensions; do
16116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16117 ac_cv_prog_YACC="$ac_prog"
16118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16119 break 2
16120 fi
16121 done
16122 done
16123 IFS=$as_save_IFS
16124
16125 fi
16126 fi
16127 YACC=$ac_cv_prog_YACC
16128 if test -n "$YACC"; then
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16130 $as_echo "$YACC" >&6; }
16131 else
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16133 $as_echo "no" >&6; }
16134 fi
16135
16136
16137 test -n "$YACC" && break
16138 done
16139 test -n "$YACC" || YACC="yacc"
16140
16141 for ac_prog in flex lex
16142 do
16143 # Extract the first word of "$ac_prog", so it can be a program name with args.
16144 set dummy $ac_prog; ac_word=$2
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16146 $as_echo_n "checking for $ac_word... " >&6; }
16147 if test "${ac_cv_prog_LEX+set}" = set; then :
16148 $as_echo_n "(cached) " >&6
16149 else
16150 if test -n "$LEX"; then
16151 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16152 else
16153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16154 for as_dir in $PATH
16155 do
16156 IFS=$as_save_IFS
16157 test -z "$as_dir" && as_dir=.
16158 for ac_exec_ext in '' $ac_executable_extensions; do
16159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16160 ac_cv_prog_LEX="$ac_prog"
16161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16162 break 2
16163 fi
16164 done
16165 done
16166 IFS=$as_save_IFS
16167
16168 fi
16169 fi
16170 LEX=$ac_cv_prog_LEX
16171 if test -n "$LEX"; then
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16173 $as_echo "$LEX" >&6; }
16174 else
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16176 $as_echo "no" >&6; }
16177 fi
16178
16179
16180 test -n "$LEX" && break
16181 done
16182 test -n "$LEX" || LEX=":"
16183
16184 case "$LEX" in
16185 :|*"missing "*) ;;
16186 *) cat >conftest.l <<_ACEOF
16187 %%
16188 a { ECHO; }
16189 b { REJECT; }
16190 c { yymore (); }
16191 d { yyless (1); }
16192 e { yyless (input () != 0); }
16193 f { unput (yytext[0]); }
16194 . { BEGIN INITIAL; }
16195 %%
16196 #ifdef YYTEXT_POINTER
16197 extern char *yytext;
16198 #endif
16199 int
16200 main (void)
16201 {
16202 return ! yylex () + ! yywrap ();
16203 }
16204 _ACEOF
16205 { { ac_try="$LEX conftest.l"
16206 case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16209 esac
16210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16211 $as_echo "$ac_try_echo"; } >&5
16212 (eval "$LEX conftest.l") 2>&5
16213 ac_status=$?
16214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16215 test $ac_status = 0; }
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16217 $as_echo_n "checking lex output file root... " >&6; }
16218 if test "${ac_cv_prog_lex_root+set}" = set; then :
16219 $as_echo_n "(cached) " >&6
16220 else
16221
16222 if test -f lex.yy.c; then
16223 ac_cv_prog_lex_root=lex.yy
16224 elif test -f lexyy.c; then
16225 ac_cv_prog_lex_root=lexyy
16226 else
16227 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16228 fi
16229 fi
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16231 $as_echo "$ac_cv_prog_lex_root" >&6; }
16232 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16233
16234 if test -z "${LEXLIB+set}"; then
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16236 $as_echo_n "checking lex library... " >&6; }
16237 if test "${ac_cv_lib_lex+set}" = set; then :
16238 $as_echo_n "(cached) " >&6
16239 else
16240
16241 ac_save_LIBS=$LIBS
16242 ac_cv_lib_lex='none needed'
16243 for ac_lib in '' -lfl -ll; do
16244 LIBS="$ac_lib $ac_save_LIBS"
16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246 /* end confdefs.h. */
16247 `cat $LEX_OUTPUT_ROOT.c`
16248 _ACEOF
16249 if ac_fn_c_try_link "$LINENO"; then :
16250 ac_cv_lib_lex=$ac_lib
16251 fi
16252 rm -f core conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16254 test "$ac_cv_lib_lex" != 'none needed' && break
16255 done
16256 LIBS=$ac_save_LIBS
16257
16258 fi
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16260 $as_echo "$ac_cv_lib_lex" >&6; }
16261 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16262 fi
16263
16264
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16266 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16267 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16268 $as_echo_n "(cached) " >&6
16269 else
16270 # POSIX says lex can declare yytext either as a pointer or an array; the
16271 # default is implementation-dependent. Figure out which it is, since
16272 # not all implementations provide the %pointer and %array declarations.
16273 ac_cv_prog_lex_yytext_pointer=no
16274 ac_save_LIBS=$LIBS
16275 LIBS="$LEXLIB $ac_save_LIBS"
16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277 /* end confdefs.h. */
16278 #define YYTEXT_POINTER 1
16279 `cat $LEX_OUTPUT_ROOT.c`
16280 _ACEOF
16281 if ac_fn_c_try_link "$LINENO"; then :
16282 ac_cv_prog_lex_yytext_pointer=yes
16283 fi
16284 rm -f core conftest.err conftest.$ac_objext \
16285 conftest$ac_exeext conftest.$ac_ext
16286 LIBS=$ac_save_LIBS
16287
16288 fi
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16290 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16291 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16292
16293 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16294
16295 fi
16296 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16297 ;;
16298 esac
16299 if test "$LEX" = :; then
16300 LEX=${am_missing_run}flex
16301 fi
16302
16303
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16305 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16306 # Check whether --enable-maintainer-mode was given.
16307 if test "${enable_maintainer_mode+set}" = set; then :
16308 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16309 else
16310 USE_MAINTAINER_MODE=no
16311 fi
16312
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16314 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16315 if test $USE_MAINTAINER_MODE = yes; then
16316 MAINTAINER_MODE_TRUE=
16317 MAINTAINER_MODE_FALSE='#'
16318 else
16319 MAINTAINER_MODE_TRUE='#'
16320 MAINTAINER_MODE_FALSE=
16321 fi
16322
16323 MAINT=$MAINTAINER_MODE_TRUE
16324
16325
16326 if false; then
16327 GENINSRC_NEVER_TRUE=
16328 GENINSRC_NEVER_FALSE='#'
16329 else
16330 GENINSRC_NEVER_TRUE='#'
16331 GENINSRC_NEVER_FALSE=
16332 fi
16333
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16335 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16336 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
16338 else
16339 echo abfoo >t1
16340 echo cdfoo >t2
16341 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16342 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16343 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16344 :
16345 else
16346 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16347 fi
16348 fi
16349 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16350 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16351 :
16352 else
16353 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16354 fi
16355 fi
16356 rm t1 t2
16357
16358 fi
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16360 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16361 do_compare="$gcc_cv_prog_cmp_skip"
16362
16363
16364
16365 . ${srcdir}/configure.host
16366
16367
16368
16369
16370
16371
16372
16373
16374 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
16375 do :
16376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16377 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16378 eval as_val=\$$as_ac_Header
16379 if test "x$as_val" = x""yes; then :
16380 cat >>confdefs.h <<_ACEOF
16381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16382 _ACEOF
16383
16384 fi
16385
16386 done
16387
16388 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16389 do :
16390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16391 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16392 eval as_val=\$$as_ac_Header
16393 if test "x$as_val" = x""yes; then :
16394 cat >>confdefs.h <<_ACEOF
16395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16396 _ACEOF
16397
16398 fi
16399
16400 done
16401
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16403 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16404 if test "${gcc_cv_header_string+set}" = set; then :
16405 $as_echo_n "(cached) " >&6
16406 else
16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408 /* end confdefs.h. */
16409 #include <string.h>
16410 #include <strings.h>
16411 int
16412 main ()
16413 {
16414
16415 ;
16416 return 0;
16417 }
16418 _ACEOF
16419 if ac_fn_c_try_compile "$LINENO"; then :
16420 gcc_cv_header_string=yes
16421 else
16422 gcc_cv_header_string=no
16423 fi
16424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16425 fi
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16427 $as_echo "$gcc_cv_header_string" >&6; }
16428 if test $gcc_cv_header_string = yes; then
16429
16430 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16431
16432 fi
16433
16434 for ac_func in glob mkstemp realpath sbrk setlocale waitpid
16435 do :
16436 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16437 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16438 eval as_val=\$$as_ac_var
16439 if test "x$as_val" = x""yes; then :
16440 cat >>confdefs.h <<_ACEOF
16441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16442 _ACEOF
16443
16444 fi
16445 done
16446
16447 for ac_func in open lseek close
16448 do :
16449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16450 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16451 eval as_val=\$$as_ac_var
16452 if test "x$as_val" = x""yes; then :
16453 cat >>confdefs.h <<_ACEOF
16454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16455 _ACEOF
16456
16457 fi
16458 done
16459
16460 ac_header_dirent=no
16461 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16462 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16464 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16466 $as_echo_n "(cached) " >&6
16467 else
16468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16469 /* end confdefs.h. */
16470 #include <sys/types.h>
16471 #include <$ac_hdr>
16472
16473 int
16474 main ()
16475 {
16476 if ((DIR *) 0)
16477 return 0;
16478 ;
16479 return 0;
16480 }
16481 _ACEOF
16482 if ac_fn_c_try_compile "$LINENO"; then :
16483 eval "$as_ac_Header=yes"
16484 else
16485 eval "$as_ac_Header=no"
16486 fi
16487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488 fi
16489 eval ac_res=\$$as_ac_Header
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16491 $as_echo "$ac_res" >&6; }
16492 eval as_val=\$$as_ac_Header
16493 if test "x$as_val" = x""yes; then :
16494 cat >>confdefs.h <<_ACEOF
16495 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16496 _ACEOF
16497
16498 ac_header_dirent=$ac_hdr; break
16499 fi
16500
16501 done
16502 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16503 if test $ac_header_dirent = dirent.h; then
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16505 $as_echo_n "checking for library containing opendir... " >&6; }
16506 if test "${ac_cv_search_opendir+set}" = set; then :
16507 $as_echo_n "(cached) " >&6
16508 else
16509 ac_func_search_save_LIBS=$LIBS
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16512
16513 /* Override any GCC internal prototype to avoid an error.
16514 Use char because int might match the return type of a GCC
16515 builtin and then its argument prototype would still apply. */
16516 #ifdef __cplusplus
16517 extern "C"
16518 #endif
16519 char opendir ();
16520 int
16521 main ()
16522 {
16523 return opendir ();
16524 ;
16525 return 0;
16526 }
16527 _ACEOF
16528 for ac_lib in '' dir; do
16529 if test -z "$ac_lib"; then
16530 ac_res="none required"
16531 else
16532 ac_res=-l$ac_lib
16533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16534 fi
16535 if ac_fn_c_try_link "$LINENO"; then :
16536 ac_cv_search_opendir=$ac_res
16537 fi
16538 rm -f core conftest.err conftest.$ac_objext \
16539 conftest$ac_exeext
16540 if test "${ac_cv_search_opendir+set}" = set; then :
16541 break
16542 fi
16543 done
16544 if test "${ac_cv_search_opendir+set}" = set; then :
16545
16546 else
16547 ac_cv_search_opendir=no
16548 fi
16549 rm conftest.$ac_ext
16550 LIBS=$ac_func_search_save_LIBS
16551 fi
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16553 $as_echo "$ac_cv_search_opendir" >&6; }
16554 ac_res=$ac_cv_search_opendir
16555 if test "$ac_res" != no; then :
16556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16557
16558 fi
16559
16560 else
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16562 $as_echo_n "checking for library containing opendir... " >&6; }
16563 if test "${ac_cv_search_opendir+set}" = set; then :
16564 $as_echo_n "(cached) " >&6
16565 else
16566 ac_func_search_save_LIBS=$LIBS
16567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16568 /* end confdefs.h. */
16569
16570 /* Override any GCC internal prototype to avoid an error.
16571 Use char because int might match the return type of a GCC
16572 builtin and then its argument prototype would still apply. */
16573 #ifdef __cplusplus
16574 extern "C"
16575 #endif
16576 char opendir ();
16577 int
16578 main ()
16579 {
16580 return opendir ();
16581 ;
16582 return 0;
16583 }
16584 _ACEOF
16585 for ac_lib in '' x; do
16586 if test -z "$ac_lib"; then
16587 ac_res="none required"
16588 else
16589 ac_res=-l$ac_lib
16590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16591 fi
16592 if ac_fn_c_try_link "$LINENO"; then :
16593 ac_cv_search_opendir=$ac_res
16594 fi
16595 rm -f core conftest.err conftest.$ac_objext \
16596 conftest$ac_exeext
16597 if test "${ac_cv_search_opendir+set}" = set; then :
16598 break
16599 fi
16600 done
16601 if test "${ac_cv_search_opendir+set}" = set; then :
16602
16603 else
16604 ac_cv_search_opendir=no
16605 fi
16606 rm conftest.$ac_ext
16607 LIBS=$ac_func_search_save_LIBS
16608 fi
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16610 $as_echo "$ac_cv_search_opendir" >&6; }
16611 ac_res=$ac_cv_search_opendir
16612 if test "$ac_res" != no; then :
16613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16614
16615 fi
16616
16617 fi
16618
16619
16620 for ac_header in stdlib.h unistd.h
16621 do :
16622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16623 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16624 eval as_val=\$$as_ac_Header
16625 if test "x$as_val" = x""yes; then :
16626 cat >>confdefs.h <<_ACEOF
16627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16628 _ACEOF
16629
16630 fi
16631
16632 done
16633
16634 for ac_func in getpagesize
16635 do :
16636 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16637 if test "x$ac_cv_func_getpagesize" = x""yes; then :
16638 cat >>confdefs.h <<_ACEOF
16639 #define HAVE_GETPAGESIZE 1
16640 _ACEOF
16641
16642 fi
16643 done
16644
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16646 $as_echo_n "checking for working mmap... " >&6; }
16647 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
16648 $as_echo_n "(cached) " >&6
16649 else
16650 if test "$cross_compiling" = yes; then :
16651 ac_cv_func_mmap_fixed_mapped=no
16652 else
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h. */
16655 $ac_includes_default
16656 /* malloc might have been renamed as rpl_malloc. */
16657 #undef malloc
16658
16659 /* Thanks to Mike Haertel and Jim Avera for this test.
16660 Here is a matrix of mmap possibilities:
16661 mmap private not fixed
16662 mmap private fixed at somewhere currently unmapped
16663 mmap private fixed at somewhere already mapped
16664 mmap shared not fixed
16665 mmap shared fixed at somewhere currently unmapped
16666 mmap shared fixed at somewhere already mapped
16667 For private mappings, we should verify that changes cannot be read()
16668 back from the file, nor mmap's back from the file at a different
16669 address. (There have been systems where private was not correctly
16670 implemented like the infamous i386 svr4.0, and systems where the
16671 VM page cache was not coherent with the file system buffer cache
16672 like early versions of FreeBSD and possibly contemporary NetBSD.)
16673 For shared mappings, we should conversely verify that changes get
16674 propagated back to all the places they're supposed to be.
16675
16676 Grep wants private fixed already mapped.
16677 The main things grep needs to know about mmap are:
16678 * does it exist and is it safe to write into the mmap'd area
16679 * how to use it (BSD variants) */
16680
16681 #include <fcntl.h>
16682 #include <sys/mman.h>
16683
16684 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16685 char *malloc ();
16686 #endif
16687
16688 /* This mess was copied from the GNU getpagesize.h. */
16689 #ifndef HAVE_GETPAGESIZE
16690 /* Assume that all systems that can run configure have sys/param.h. */
16691 # ifndef HAVE_SYS_PARAM_H
16692 # define HAVE_SYS_PARAM_H 1
16693 # endif
16694
16695 # ifdef _SC_PAGESIZE
16696 # define getpagesize() sysconf(_SC_PAGESIZE)
16697 # else /* no _SC_PAGESIZE */
16698 # ifdef HAVE_SYS_PARAM_H
16699 # include <sys/param.h>
16700 # ifdef EXEC_PAGESIZE
16701 # define getpagesize() EXEC_PAGESIZE
16702 # else /* no EXEC_PAGESIZE */
16703 # ifdef NBPG
16704 # define getpagesize() NBPG * CLSIZE
16705 # ifndef CLSIZE
16706 # define CLSIZE 1
16707 # endif /* no CLSIZE */
16708 # else /* no NBPG */
16709 # ifdef NBPC
16710 # define getpagesize() NBPC
16711 # else /* no NBPC */
16712 # ifdef PAGESIZE
16713 # define getpagesize() PAGESIZE
16714 # endif /* PAGESIZE */
16715 # endif /* no NBPC */
16716 # endif /* no NBPG */
16717 # endif /* no EXEC_PAGESIZE */
16718 # else /* no HAVE_SYS_PARAM_H */
16719 # define getpagesize() 8192 /* punt totally */
16720 # endif /* no HAVE_SYS_PARAM_H */
16721 # endif /* no _SC_PAGESIZE */
16722
16723 #endif /* no HAVE_GETPAGESIZE */
16724
16725 int
16726 main ()
16727 {
16728 char *data, *data2, *data3;
16729 int i, pagesize;
16730 int fd;
16731
16732 pagesize = getpagesize ();
16733
16734 /* First, make a file with some known garbage in it. */
16735 data = (char *) malloc (pagesize);
16736 if (!data)
16737 return 1;
16738 for (i = 0; i < pagesize; ++i)
16739 *(data + i) = rand ();
16740 umask (0);
16741 fd = creat ("conftest.mmap", 0600);
16742 if (fd < 0)
16743 return 1;
16744 if (write (fd, data, pagesize) != pagesize)
16745 return 1;
16746 close (fd);
16747
16748 /* Next, try to mmap the file at a fixed address which already has
16749 something else allocated at it. If we can, also make sure that
16750 we see the same garbage. */
16751 fd = open ("conftest.mmap", O_RDWR);
16752 if (fd < 0)
16753 return 1;
16754 data2 = (char *) malloc (2 * pagesize);
16755 if (!data2)
16756 return 1;
16757 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16758 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16759 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16760 return 1;
16761 for (i = 0; i < pagesize; ++i)
16762 if (*(data + i) != *(data2 + i))
16763 return 1;
16764
16765 /* Finally, make sure that changes to the mapped area do not
16766 percolate back to the file as seen by read(). (This is a bug on
16767 some variants of i386 svr4.0.) */
16768 for (i = 0; i < pagesize; ++i)
16769 *(data2 + i) = *(data2 + i) + 1;
16770 data3 = (char *) malloc (pagesize);
16771 if (!data3)
16772 return 1;
16773 if (read (fd, data3, pagesize) != pagesize)
16774 return 1;
16775 for (i = 0; i < pagesize; ++i)
16776 if (*(data + i) != *(data3 + i))
16777 return 1;
16778 close (fd);
16779 return 0;
16780 }
16781 _ACEOF
16782 if ac_fn_c_try_run "$LINENO"; then :
16783 ac_cv_func_mmap_fixed_mapped=yes
16784 else
16785 ac_cv_func_mmap_fixed_mapped=no
16786 fi
16787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16788 conftest.$ac_objext conftest.beam conftest.$ac_ext
16789 fi
16790
16791 fi
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16793 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16794 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16795
16796 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16797
16798 fi
16799 rm -f conftest.mmap
16800
16801
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16803 $as_echo_n "checking for library containing dlopen... " >&6; }
16804 if test "${ac_cv_search_dlopen+set}" = set; then :
16805 $as_echo_n "(cached) " >&6
16806 else
16807 ac_func_search_save_LIBS=$LIBS
16808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h. */
16810
16811 /* Override any GCC internal prototype to avoid an error.
16812 Use char because int might match the return type of a GCC
16813 builtin and then its argument prototype would still apply. */
16814 #ifdef __cplusplus
16815 extern "C"
16816 #endif
16817 char dlopen ();
16818 int
16819 main ()
16820 {
16821 return dlopen ();
16822 ;
16823 return 0;
16824 }
16825 _ACEOF
16826 for ac_lib in '' dl; do
16827 if test -z "$ac_lib"; then
16828 ac_res="none required"
16829 else
16830 ac_res=-l$ac_lib
16831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16832 fi
16833 if ac_fn_c_try_link "$LINENO"; then :
16834 ac_cv_search_dlopen=$ac_res
16835 fi
16836 rm -f core conftest.err conftest.$ac_objext \
16837 conftest$ac_exeext
16838 if test "${ac_cv_search_dlopen+set}" = set; then :
16839 break
16840 fi
16841 done
16842 if test "${ac_cv_search_dlopen+set}" = set; then :
16843
16844 else
16845 ac_cv_search_dlopen=no
16846 fi
16847 rm conftest.$ac_ext
16848 LIBS=$ac_func_search_save_LIBS
16849 fi
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16851 $as_echo "$ac_cv_search_dlopen" >&6; }
16852 ac_res=$ac_cv_search_dlopen
16853 if test "$ac_res" != no; then :
16854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16855
16856 fi
16857
16858 if test x$plugins = xyes; then
16859 ENABLE_PLUGINS_TRUE=
16860 ENABLE_PLUGINS_FALSE='#'
16861 else
16862 ENABLE_PLUGINS_TRUE='#'
16863 ENABLE_PLUGINS_FALSE=
16864 fi
16865
16866
16867 # Check whether --enable-initfini-array was given.
16868 if test "${enable_initfini_array+set}" = set; then :
16869 enableval=$enable_initfini_array; case "${enableval}" in
16870 yes|no) ;;
16871 *) as_fn_error "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
16872 esac
16873 else
16874 enable_initfini_array=yes
16875 fi
16876
16877
16878 if test $enable_initfini_array = yes; then
16879
16880 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16881
16882 fi
16883
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16885 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16886 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16887 $as_echo_n "(cached) " >&6
16888 else
16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890 /* end confdefs.h. */
16891 #include <unistd.h>
16892 int
16893 main ()
16894 {
16895 extern int getopt (int, char *const*, const char *);
16896 ;
16897 return 0;
16898 }
16899 _ACEOF
16900 if ac_fn_c_try_compile "$LINENO"; then :
16901 ld_cv_decl_getopt_unistd_h=yes
16902 else
16903 ld_cv_decl_getopt_unistd_h=no
16904 fi
16905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16906 fi
16907
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16909 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
16910 if test $ld_cv_decl_getopt_unistd_h = yes; then
16911
16912 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16913
16914 fi
16915
16916
16917 case "${host}" in
16918 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16919
16920 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16921 ;;
16922 esac
16923
16924 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16925 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16926 ac_have_decl=1
16927 else
16928 ac_have_decl=0
16929 fi
16930
16931 cat >>confdefs.h <<_ACEOF
16932 #define HAVE_DECL_STRSTR $ac_have_decl
16933 _ACEOF
16934 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16935 if test "x$ac_cv_have_decl_free" = x""yes; then :
16936 ac_have_decl=1
16937 else
16938 ac_have_decl=0
16939 fi
16940
16941 cat >>confdefs.h <<_ACEOF
16942 #define HAVE_DECL_FREE $ac_have_decl
16943 _ACEOF
16944 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16945 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16946 ac_have_decl=1
16947 else
16948 ac_have_decl=0
16949 fi
16950
16951 cat >>confdefs.h <<_ACEOF
16952 #define HAVE_DECL_SBRK $ac_have_decl
16953 _ACEOF
16954 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16955 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16956 ac_have_decl=1
16957 else
16958 ac_have_decl=0
16959 fi
16960
16961 cat >>confdefs.h <<_ACEOF
16962 #define HAVE_DECL_GETENV $ac_have_decl
16963 _ACEOF
16964 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16965 if test "x$ac_cv_have_decl_environ" = x""yes; then :
16966 ac_have_decl=1
16967 else
16968 ac_have_decl=0
16969 fi
16970
16971 cat >>confdefs.h <<_ACEOF
16972 #define HAVE_DECL_ENVIRON $ac_have_decl
16973 _ACEOF
16974
16975
16976 # When converting linker scripts into strings for use in emulation
16977 # files, use astring.sed if the compiler supports ANSI string
16978 # concatenation, or ostring.sed otherwise. This is to support the
16979 # broken Microsoft MSVC compiler, which limits the length of string
16980 # constants, while still supporting pre-ANSI compilers which do not
16981 # support string concatenation.
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16983 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16984 if test "${ld_cv_string_concatenation+set}" = set; then :
16985 $as_echo_n "(cached) " >&6
16986 else
16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988 /* end confdefs.h. */
16989
16990 int
16991 main ()
16992 {
16993 char *a = "a" "a";
16994 ;
16995 return 0;
16996 }
16997 _ACEOF
16998 if ac_fn_c_try_compile "$LINENO"; then :
16999 ld_cv_string_concatenation=yes
17000 else
17001 ld_cv_string_concatenation=no
17002 fi
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004 fi
17005
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17007 $as_echo "$ld_cv_string_concatenation" >&6; }
17008 if test "$ld_cv_string_concatenation" = "yes"; then
17009 STRINGIFY=astring.sed
17010 else
17011 STRINGIFY=ostring.sed
17012 fi
17013
17014
17015 # target-specific stuff:
17016
17017 all_targets=
17018 EMUL=
17019 all_emuls=
17020 all_emul_extras=
17021 all_libpath=
17022
17023 rm -f tdirs
17024
17025 # If the host is 64-bit, then we enable 64-bit targets by default.
17026 # This is consistent with what ../bfd/configure.ac does.
17027 if test x${want64} = xfalse; then
17028 # The cast to long int works around a bug in the HP C Compiler
17029 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17030 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17031 # This bug is HP SR number 8606223364.
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17033 $as_echo_n "checking size of void *... " >&6; }
17034 if test "${ac_cv_sizeof_void_p+set}" = set; then :
17035 $as_echo_n "(cached) " >&6
17036 else
17037 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17038
17039 else
17040 if test "$ac_cv_type_void_p" = yes; then
17041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17043 { as_fn_set_status 77
17044 as_fn_error "cannot compute sizeof (void *)
17045 See \`config.log' for more details." "$LINENO" 5; }; }
17046 else
17047 ac_cv_sizeof_void_p=0
17048 fi
17049 fi
17050
17051 fi
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17053 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17054
17055
17056
17057 cat >>confdefs.h <<_ACEOF
17058 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17059 _ACEOF
17060
17061
17062 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17063 want64=true
17064 fi
17065 fi
17066
17067 elf_list_options=FALSE
17068 elf_shlib_list_options=FALSE
17069 elf_plt_unwind_list_options=FALSE
17070 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17071 do
17072 if test "$targ_alias" = "all"; then
17073 all_targets=true
17074 elf_list_options=TRUE
17075 elf_shlib_list_options=TRUE
17076 elf_plt_unwind_list_options=TRUE
17077 else
17078 # Canonicalize the secondary target names.
17079 result=`$ac_config_sub $targ_alias 2>/dev/null`
17080 if test -n "$result"; then
17081 targ=$result
17082 else
17083 targ=$targ_alias
17084 fi
17085
17086 . ${srcdir}/configure.tgt
17087
17088 if test "$targ" = "$target"; then
17089 EMUL=$targ_emul
17090 fi
17091
17092 if test x${want64} = xfalse; then
17093 . ${srcdir}/../bfd/config.bfd
17094 fi
17095
17096 if test x${want64} = xtrue; then
17097 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17098 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17099 fi
17100
17101 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17102 case " $all_emuls " in
17103 *" e${i}.o "*) ;;
17104 *)
17105 all_emuls="$all_emuls e${i}.o"
17106 eval result=\$tdir_$i
17107 test -z "$result" && result=$targ_alias
17108 echo tdir_$i=$result >> tdirs
17109 case "${i}" in
17110 *elf*)
17111 elf_list_options=TRUE
17112 ;;
17113 *)
17114 if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17115 elf_list_options=TRUE
17116 fi
17117 ;;
17118 esac
17119 if test "$elf_list_options" = "TRUE"; then
17120 . ${srcdir}/emulparams/${i}.sh
17121 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17122 elf_shlib_list_options=TRUE
17123 fi
17124 if test x${PLT_UNWIND} = xyes; then
17125 elf_plt_unwind_list_options=TRUE
17126 fi
17127 fi
17128 ;;
17129 esac
17130 done
17131
17132 for i in $targ_emul $targ_extra_libpath; do
17133 case " $all_libpath " in
17134 *" ${i} "*) ;;
17135 *)
17136 if test -z "$all_libpath"; then
17137 all_libpath=${i}
17138 else
17139 all_libpath="$all_libpath ${i}"
17140 fi
17141 ;;
17142 esac
17143 done
17144
17145 for i in $targ_extra_ofiles; do
17146 case " $all_emul_extras " in
17147 *" ${i} "*) ;;
17148 *)
17149 all_emul_extras="$all_emul_extras ${i}"
17150 ;;
17151 esac
17152 done
17153
17154 fi
17155 done
17156
17157 if test x$ac_default_compressed_debug_sections = xyes ; then
17158
17159 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17160
17161 fi
17162
17163 if test "${ac_default_ld_z_relro}" = unset; then
17164 ac_default_ld_z_relro=0
17165 fi
17166
17167 cat >>confdefs.h <<_ACEOF
17168 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17169 _ACEOF
17170
17171
17172
17173
17174
17175
17176
17177 TDIRS=tdirs
17178
17179
17180 if test x${all_targets} = xtrue; then
17181 if test x${want64} = xtrue; then
17182 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17183 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17184 else
17185 EMULATION_OFILES='$(ALL_EMULATIONS)'
17186 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17187 fi
17188 else
17189 EMULATION_OFILES=$all_emuls
17190 EMUL_EXTRA_OFILES=$all_emul_extras
17191 fi
17192
17193
17194
17195
17196 EMULATION_LIBPATH=$all_libpath
17197
17198
17199 if test x${enable_static} = xno; then
17200 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17201 else
17202 TESTBFDLIB="../bfd/.libs/libbfd.a"
17203 fi
17204
17205
17206 target_vendor=${target_vendor=$host_vendor}
17207 case "$target_vendor" in
17208 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17209 *) EXTRA_SHLIB_EXTENSION= ;;
17210 esac
17211
17212 case "$target_os" in
17213 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17214 esac
17215
17216 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17217
17218 cat >>confdefs.h <<_ACEOF
17219 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17220 _ACEOF
17221
17222 fi
17223
17224
17225
17226
17227
17228
17229 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17230
17231 cat >confcache <<\_ACEOF
17232 # This file is a shell script that caches the results of configure
17233 # tests run on this system so they can be shared between configure
17234 # scripts and configure runs, see configure's option --config-cache.
17235 # It is not useful on other systems. If it contains results you don't
17236 # want to keep, you may remove or edit it.
17237 #
17238 # config.status only pays attention to the cache file if you give it
17239 # the --recheck option to rerun configure.
17240 #
17241 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17242 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17243 # following values.
17244
17245 _ACEOF
17246
17247 # The following way of writing the cache mishandles newlines in values,
17248 # but we know of no workaround that is simple, portable, and efficient.
17249 # So, we kill variables containing newlines.
17250 # Ultrix sh set writes to stderr and can't be redirected directly,
17251 # and sets the high bit in the cache file unless we assign to the vars.
17252 (
17253 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17254 eval ac_val=\$$ac_var
17255 case $ac_val in #(
17256 *${as_nl}*)
17257 case $ac_var in #(
17258 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17259 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17260 esac
17261 case $ac_var in #(
17262 _ | IFS | as_nl) ;; #(
17263 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17264 *) { eval $ac_var=; unset $ac_var;} ;;
17265 esac ;;
17266 esac
17267 done
17268
17269 (set) 2>&1 |
17270 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17271 *${as_nl}ac_space=\ *)
17272 # `set' does not quote correctly, so add quotes: double-quote
17273 # substitution turns \\\\ into \\, and sed turns \\ into \.
17274 sed -n \
17275 "s/'/'\\\\''/g;
17276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17277 ;; #(
17278 *)
17279 # `set' quotes correctly as required by POSIX, so do not add quotes.
17280 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17281 ;;
17282 esac |
17283 sort
17284 ) |
17285 sed '
17286 /^ac_cv_env_/b end
17287 t clear
17288 :clear
17289 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17290 t end
17291 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17292 :end' >>confcache
17293 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17294 if test -w "$cache_file"; then
17295 test "x$cache_file" != "x/dev/null" &&
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17297 $as_echo "$as_me: updating cache $cache_file" >&6;}
17298 cat confcache >$cache_file
17299 else
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17301 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17302 fi
17303 fi
17304 rm -f confcache
17305
17306 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17307 # Let make expand exec_prefix.
17308 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17309
17310 DEFS=-DHAVE_CONFIG_H
17311
17312 ac_libobjs=
17313 ac_ltlibobjs=
17314 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17315 # 1. Remove the extension, and $U if already installed.
17316 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17317 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17318 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17319 # will be set to the directory where LIBOBJS objects are built.
17320 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17321 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17322 done
17323 LIBOBJS=$ac_libobjs
17324
17325 LTLIBOBJS=$ac_ltlibobjs
17326
17327
17328 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17329 as_fn_error "conditional \"AMDEP\" was never defined.
17330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17331 fi
17332 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17333 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17335 fi
17336 if test -n "$EXEEXT"; then
17337 am__EXEEXT_TRUE=
17338 am__EXEEXT_FALSE='#'
17339 else
17340 am__EXEEXT_TRUE='#'
17341 am__EXEEXT_FALSE=
17342 fi
17343
17344 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17345 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17347 fi
17348 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17349 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17351 fi
17352 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17353 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17355 fi
17356 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17357 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17359 fi
17360 if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17361 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17363 fi
17364
17365 : ${CONFIG_STATUS=./config.status}
17366 ac_write_fail=0
17367 ac_clean_files_save=$ac_clean_files
17368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17370 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17371 as_write_fail=0
17372 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17373 #! $SHELL
17374 # Generated by $as_me.
17375 # Run this file to recreate the current configuration.
17376 # Compiler output produced by configure, useful for debugging
17377 # configure, is in config.log if it exists.
17378
17379 debug=false
17380 ac_cs_recheck=false
17381 ac_cs_silent=false
17382
17383 SHELL=\${CONFIG_SHELL-$SHELL}
17384 export SHELL
17385 _ASEOF
17386 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17387 ## -------------------- ##
17388 ## M4sh Initialization. ##
17389 ## -------------------- ##
17390
17391 # Be more Bourne compatible
17392 DUALCASE=1; export DUALCASE # for MKS sh
17393 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17394 emulate sh
17395 NULLCMD=:
17396 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17397 # is contrary to our usage. Disable this feature.
17398 alias -g '${1+"$@"}'='"$@"'
17399 setopt NO_GLOB_SUBST
17400 else
17401 case `(set -o) 2>/dev/null` in #(
17402 *posix*) :
17403 set -o posix ;; #(
17404 *) :
17405 ;;
17406 esac
17407 fi
17408
17409
17410 as_nl='
17411 '
17412 export as_nl
17413 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17414 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17415 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17417 # Prefer a ksh shell builtin over an external printf program on Solaris,
17418 # but without wasting forks for bash or zsh.
17419 if test -z "$BASH_VERSION$ZSH_VERSION" \
17420 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17421 as_echo='print -r --'
17422 as_echo_n='print -rn --'
17423 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17424 as_echo='printf %s\n'
17425 as_echo_n='printf %s'
17426 else
17427 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17428 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17429 as_echo_n='/usr/ucb/echo -n'
17430 else
17431 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17432 as_echo_n_body='eval
17433 arg=$1;
17434 case $arg in #(
17435 *"$as_nl"*)
17436 expr "X$arg" : "X\\(.*\\)$as_nl";
17437 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17438 esac;
17439 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17440 '
17441 export as_echo_n_body
17442 as_echo_n='sh -c $as_echo_n_body as_echo'
17443 fi
17444 export as_echo_body
17445 as_echo='sh -c $as_echo_body as_echo'
17446 fi
17447
17448 # The user is always right.
17449 if test "${PATH_SEPARATOR+set}" != set; then
17450 PATH_SEPARATOR=:
17451 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17452 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17453 PATH_SEPARATOR=';'
17454 }
17455 fi
17456
17457
17458 # IFS
17459 # We need space, tab and new line, in precisely that order. Quoting is
17460 # there to prevent editors from complaining about space-tab.
17461 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17462 # splitting by setting IFS to empty value.)
17463 IFS=" "" $as_nl"
17464
17465 # Find who we are. Look in the path if we contain no directory separator.
17466 case $0 in #((
17467 *[\\/]* ) as_myself=$0 ;;
17468 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17469 for as_dir in $PATH
17470 do
17471 IFS=$as_save_IFS
17472 test -z "$as_dir" && as_dir=.
17473 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17474 done
17475 IFS=$as_save_IFS
17476
17477 ;;
17478 esac
17479 # We did not find ourselves, most probably we were run as `sh COMMAND'
17480 # in which case we are not to be found in the path.
17481 if test "x$as_myself" = x; then
17482 as_myself=$0
17483 fi
17484 if test ! -f "$as_myself"; then
17485 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17486 exit 1
17487 fi
17488
17489 # Unset variables that we do not need and which cause bugs (e.g. in
17490 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17491 # suppresses any "Segmentation fault" message there. '((' could
17492 # trigger a bug in pdksh 5.2.14.
17493 for as_var in BASH_ENV ENV MAIL MAILPATH
17494 do eval test x\${$as_var+set} = xset \
17495 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17496 done
17497 PS1='$ '
17498 PS2='> '
17499 PS4='+ '
17500
17501 # NLS nuisances.
17502 LC_ALL=C
17503 export LC_ALL
17504 LANGUAGE=C
17505 export LANGUAGE
17506
17507 # CDPATH.
17508 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17509
17510
17511 # as_fn_error ERROR [LINENO LOG_FD]
17512 # ---------------------------------
17513 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17514 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17515 # script with status $?, using 1 if that was 0.
17516 as_fn_error ()
17517 {
17518 as_status=$?; test $as_status -eq 0 && as_status=1
17519 if test "$3"; then
17520 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17521 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17522 fi
17523 $as_echo "$as_me: error: $1" >&2
17524 as_fn_exit $as_status
17525 } # as_fn_error
17526
17527
17528 # as_fn_set_status STATUS
17529 # -----------------------
17530 # Set $? to STATUS, without forking.
17531 as_fn_set_status ()
17532 {
17533 return $1
17534 } # as_fn_set_status
17535
17536 # as_fn_exit STATUS
17537 # -----------------
17538 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17539 as_fn_exit ()
17540 {
17541 set +e
17542 as_fn_set_status $1
17543 exit $1
17544 } # as_fn_exit
17545
17546 # as_fn_unset VAR
17547 # ---------------
17548 # Portably unset VAR.
17549 as_fn_unset ()
17550 {
17551 { eval $1=; unset $1;}
17552 }
17553 as_unset=as_fn_unset
17554 # as_fn_append VAR VALUE
17555 # ----------------------
17556 # Append the text in VALUE to the end of the definition contained in VAR. Take
17557 # advantage of any shell optimizations that allow amortized linear growth over
17558 # repeated appends, instead of the typical quadratic growth present in naive
17559 # implementations.
17560 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17561 eval 'as_fn_append ()
17562 {
17563 eval $1+=\$2
17564 }'
17565 else
17566 as_fn_append ()
17567 {
17568 eval $1=\$$1\$2
17569 }
17570 fi # as_fn_append
17571
17572 # as_fn_arith ARG...
17573 # ------------------
17574 # Perform arithmetic evaluation on the ARGs, and store the result in the
17575 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17576 # must be portable across $(()) and expr.
17577 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17578 eval 'as_fn_arith ()
17579 {
17580 as_val=$(( $* ))
17581 }'
17582 else
17583 as_fn_arith ()
17584 {
17585 as_val=`expr "$@" || test $? -eq 1`
17586 }
17587 fi # as_fn_arith
17588
17589
17590 if expr a : '\(a\)' >/dev/null 2>&1 &&
17591 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17592 as_expr=expr
17593 else
17594 as_expr=false
17595 fi
17596
17597 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17598 as_basename=basename
17599 else
17600 as_basename=false
17601 fi
17602
17603 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17604 as_dirname=dirname
17605 else
17606 as_dirname=false
17607 fi
17608
17609 as_me=`$as_basename -- "$0" ||
17610 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17611 X"$0" : 'X\(//\)$' \| \
17612 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17613 $as_echo X/"$0" |
17614 sed '/^.*\/\([^/][^/]*\)\/*$/{
17615 s//\1/
17616 q
17617 }
17618 /^X\/\(\/\/\)$/{
17619 s//\1/
17620 q
17621 }
17622 /^X\/\(\/\).*/{
17623 s//\1/
17624 q
17625 }
17626 s/.*/./; q'`
17627
17628 # Avoid depending upon Character Ranges.
17629 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17630 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17631 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17632 as_cr_digits='0123456789'
17633 as_cr_alnum=$as_cr_Letters$as_cr_digits
17634
17635 ECHO_C= ECHO_N= ECHO_T=
17636 case `echo -n x` in #(((((
17637 -n*)
17638 case `echo 'xy\c'` in
17639 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17640 xy) ECHO_C='\c';;
17641 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17642 ECHO_T=' ';;
17643 esac;;
17644 *)
17645 ECHO_N='-n';;
17646 esac
17647
17648 rm -f conf$$ conf$$.exe conf$$.file
17649 if test -d conf$$.dir; then
17650 rm -f conf$$.dir/conf$$.file
17651 else
17652 rm -f conf$$.dir
17653 mkdir conf$$.dir 2>/dev/null
17654 fi
17655 if (echo >conf$$.file) 2>/dev/null; then
17656 if ln -s conf$$.file conf$$ 2>/dev/null; then
17657 as_ln_s='ln -s'
17658 # ... but there are two gotchas:
17659 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17660 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17661 # In both cases, we have to default to `cp -p'.
17662 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17663 as_ln_s='cp -p'
17664 elif ln conf$$.file conf$$ 2>/dev/null; then
17665 as_ln_s=ln
17666 else
17667 as_ln_s='cp -p'
17668 fi
17669 else
17670 as_ln_s='cp -p'
17671 fi
17672 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17673 rmdir conf$$.dir 2>/dev/null
17674
17675
17676 # as_fn_mkdir_p
17677 # -------------
17678 # Create "$as_dir" as a directory, including parents if necessary.
17679 as_fn_mkdir_p ()
17680 {
17681
17682 case $as_dir in #(
17683 -*) as_dir=./$as_dir;;
17684 esac
17685 test -d "$as_dir" || eval $as_mkdir_p || {
17686 as_dirs=
17687 while :; do
17688 case $as_dir in #(
17689 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17690 *) as_qdir=$as_dir;;
17691 esac
17692 as_dirs="'$as_qdir' $as_dirs"
17693 as_dir=`$as_dirname -- "$as_dir" ||
17694 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17695 X"$as_dir" : 'X\(//\)[^/]' \| \
17696 X"$as_dir" : 'X\(//\)$' \| \
17697 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17698 $as_echo X"$as_dir" |
17699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17700 s//\1/
17701 q
17702 }
17703 /^X\(\/\/\)[^/].*/{
17704 s//\1/
17705 q
17706 }
17707 /^X\(\/\/\)$/{
17708 s//\1/
17709 q
17710 }
17711 /^X\(\/\).*/{
17712 s//\1/
17713 q
17714 }
17715 s/.*/./; q'`
17716 test -d "$as_dir" && break
17717 done
17718 test -z "$as_dirs" || eval "mkdir $as_dirs"
17719 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17720
17721
17722 } # as_fn_mkdir_p
17723 if mkdir -p . 2>/dev/null; then
17724 as_mkdir_p='mkdir -p "$as_dir"'
17725 else
17726 test -d ./-p && rmdir ./-p
17727 as_mkdir_p=false
17728 fi
17729
17730 if test -x / >/dev/null 2>&1; then
17731 as_test_x='test -x'
17732 else
17733 if ls -dL / >/dev/null 2>&1; then
17734 as_ls_L_option=L
17735 else
17736 as_ls_L_option=
17737 fi
17738 as_test_x='
17739 eval sh -c '\''
17740 if test -d "$1"; then
17741 test -d "$1/.";
17742 else
17743 case $1 in #(
17744 -*)set "./$1";;
17745 esac;
17746 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17747 ???[sx]*):;;*)false;;esac;fi
17748 '\'' sh
17749 '
17750 fi
17751 as_executable_p=$as_test_x
17752
17753 # Sed expression to map a string onto a valid CPP name.
17754 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17755
17756 # Sed expression to map a string onto a valid variable name.
17757 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17758
17759
17760 exec 6>&1
17761 ## ----------------------------------- ##
17762 ## Main body of $CONFIG_STATUS script. ##
17763 ## ----------------------------------- ##
17764 _ASEOF
17765 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17766
17767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17768 # Save the log message, to keep $0 and so on meaningful, and to
17769 # report actual input values of CONFIG_FILES etc. instead of their
17770 # values after options handling.
17771 ac_log="
17772 This file was extended by ld $as_me 2.26.51, which was
17773 generated by GNU Autoconf 2.64. Invocation command line was
17774
17775 CONFIG_FILES = $CONFIG_FILES
17776 CONFIG_HEADERS = $CONFIG_HEADERS
17777 CONFIG_LINKS = $CONFIG_LINKS
17778 CONFIG_COMMANDS = $CONFIG_COMMANDS
17779 $ $0 $@
17780
17781 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17782 "
17783
17784 _ACEOF
17785
17786 case $ac_config_files in *"
17787 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17788 esac
17789
17790 case $ac_config_headers in *"
17791 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17792 esac
17793
17794
17795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17796 # Files that config.status was made for.
17797 config_files="$ac_config_files"
17798 config_headers="$ac_config_headers"
17799 config_commands="$ac_config_commands"
17800
17801 _ACEOF
17802
17803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17804 ac_cs_usage="\
17805 \`$as_me' instantiates files and other configuration actions
17806 from templates according to the current configuration. Unless the files
17807 and actions are specified as TAGs, all are instantiated by default.
17808
17809 Usage: $0 [OPTION]... [TAG]...
17810
17811 -h, --help print this help, then exit
17812 -V, --version print version number and configuration settings, then exit
17813 -q, --quiet, --silent
17814 do not print progress messages
17815 -d, --debug don't remove temporary files
17816 --recheck update $as_me by reconfiguring in the same conditions
17817 --file=FILE[:TEMPLATE]
17818 instantiate the configuration file FILE
17819 --header=FILE[:TEMPLATE]
17820 instantiate the configuration header FILE
17821
17822 Configuration files:
17823 $config_files
17824
17825 Configuration headers:
17826 $config_headers
17827
17828 Configuration commands:
17829 $config_commands
17830
17831 Report bugs to the package provider."
17832
17833 _ACEOF
17834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17835 ac_cs_version="\\
17836 ld config.status 2.26.51
17837 configured by $0, generated by GNU Autoconf 2.64,
17838 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17839
17840 Copyright (C) 2009 Free Software Foundation, Inc.
17841 This config.status script is free software; the Free Software Foundation
17842 gives unlimited permission to copy, distribute and modify it."
17843
17844 ac_pwd='$ac_pwd'
17845 srcdir='$srcdir'
17846 INSTALL='$INSTALL'
17847 MKDIR_P='$MKDIR_P'
17848 AWK='$AWK'
17849 test -n "\$AWK" || AWK=awk
17850 _ACEOF
17851
17852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17853 # The default lists apply if the user does not specify any file.
17854 ac_need_defaults=:
17855 while test $# != 0
17856 do
17857 case $1 in
17858 --*=*)
17859 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17860 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17861 ac_shift=:
17862 ;;
17863 *)
17864 ac_option=$1
17865 ac_optarg=$2
17866 ac_shift=shift
17867 ;;
17868 esac
17869
17870 case $ac_option in
17871 # Handling of the options.
17872 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17873 ac_cs_recheck=: ;;
17874 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17875 $as_echo "$ac_cs_version"; exit ;;
17876 --debug | --debu | --deb | --de | --d | -d )
17877 debug=: ;;
17878 --file | --fil | --fi | --f )
17879 $ac_shift
17880 case $ac_optarg in
17881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17882 esac
17883 as_fn_append CONFIG_FILES " '$ac_optarg'"
17884 ac_need_defaults=false;;
17885 --header | --heade | --head | --hea )
17886 $ac_shift
17887 case $ac_optarg in
17888 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17889 esac
17890 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17891 ac_need_defaults=false;;
17892 --he | --h)
17893 # Conflict between --help and --header
17894 as_fn_error "ambiguous option: \`$1'
17895 Try \`$0 --help' for more information.";;
17896 --help | --hel | -h )
17897 $as_echo "$ac_cs_usage"; exit ;;
17898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17899 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17900 ac_cs_silent=: ;;
17901
17902 # This is an error.
17903 -*) as_fn_error "unrecognized option: \`$1'
17904 Try \`$0 --help' for more information." ;;
17905
17906 *) as_fn_append ac_config_targets " $1"
17907 ac_need_defaults=false ;;
17908
17909 esac
17910 shift
17911 done
17912
17913 ac_configure_extra_args=
17914
17915 if $ac_cs_silent; then
17916 exec 6>/dev/null
17917 ac_configure_extra_args="$ac_configure_extra_args --silent"
17918 fi
17919
17920 _ACEOF
17921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17922 if \$ac_cs_recheck; then
17923 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17924 shift
17925 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17926 CONFIG_SHELL='$SHELL'
17927 export CONFIG_SHELL
17928 exec "\$@"
17929 fi
17930
17931 _ACEOF
17932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17933 exec 5>>config.log
17934 {
17935 echo
17936 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17937 ## Running $as_me. ##
17938 _ASBOX
17939 $as_echo "$ac_log"
17940 } >&5
17941
17942 _ACEOF
17943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17944 #
17945 # INIT-COMMANDS
17946 #
17947 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17948
17949
17950 # The HP-UX ksh and POSIX shell print the target directory to stdout
17951 # if CDPATH is set.
17952 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17953
17954 sed_quote_subst='$sed_quote_subst'
17955 double_quote_subst='$double_quote_subst'
17956 delay_variable_subst='$delay_variable_subst'
17957 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17958 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17959 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17960 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17961 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17962 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17963 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17964 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17965 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17966 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17967 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17968 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17969 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17970 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17971 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17972 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17973 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17974 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17975 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17976 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17977 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17978 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17979 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17980 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17981 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17982 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17983 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17984 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17985 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17986 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17987 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17988 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17989 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17990 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17991 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17992 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17993 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17994 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17995 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17996 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17997 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17998 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17999 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18000 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18001 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18002 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18003 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18004 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18005 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"`'
18006 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18007 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18008 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18009 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18010 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18011 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18012 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18013 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18014 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18015 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18016 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18017 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18018 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18019 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18020 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18021 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18022 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18023 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18024 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18025 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18026 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18027 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18028 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18029 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18030 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18031 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18032 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18033 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18034 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18035 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18036 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18037 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18038 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18039 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18040 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18041 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18042 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18043 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18044 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18045 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18046 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18047 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18048 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18049 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18050 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18051 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18052 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18053 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18054 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18055 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18056 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18057 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18058 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18059 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18060 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18061 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18062 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18063 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18064 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18065 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18066 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18067 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18068 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18069 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18070 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18071 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18072 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18073 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18074 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18075 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18076 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18077 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18078 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18079 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18080 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18081 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18082 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18083 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18084 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18085 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18086 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18087 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18088 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18089 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18090 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18091 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18092 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18093 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18094 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18095 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18096 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18097 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18098 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18099 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18100 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18101 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18102 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18103 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18104 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18105 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18106 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18107 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18108 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18109 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18110 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18111 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18112 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18113 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18114 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18115 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18116 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18117 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18118 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18119 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18120 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18121 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18122 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18123 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18124 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18125 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18126 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18127 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18128 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18129 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18130 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18131 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18132
18133 LTCC='$LTCC'
18134 LTCFLAGS='$LTCFLAGS'
18135 compiler='$compiler_DEFAULT'
18136
18137 # A function that is used when there is no print builtin or printf.
18138 func_fallback_echo ()
18139 {
18140 eval 'cat <<_LTECHO_EOF
18141 \$1
18142 _LTECHO_EOF'
18143 }
18144
18145 # Quote evaled strings.
18146 for var in SHELL \
18147 ECHO \
18148 SED \
18149 GREP \
18150 EGREP \
18151 FGREP \
18152 LD \
18153 NM \
18154 LN_S \
18155 lt_SP2NL \
18156 lt_NL2SP \
18157 reload_flag \
18158 OBJDUMP \
18159 deplibs_check_method \
18160 file_magic_cmd \
18161 AR \
18162 AR_FLAGS \
18163 STRIP \
18164 RANLIB \
18165 CC \
18166 CFLAGS \
18167 compiler \
18168 lt_cv_sys_global_symbol_pipe \
18169 lt_cv_sys_global_symbol_to_cdecl \
18170 lt_cv_sys_global_symbol_to_c_name_address \
18171 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18172 lt_prog_compiler_no_builtin_flag \
18173 lt_prog_compiler_wl \
18174 lt_prog_compiler_pic \
18175 lt_prog_compiler_static \
18176 lt_cv_prog_compiler_c_o \
18177 need_locks \
18178 DSYMUTIL \
18179 NMEDIT \
18180 LIPO \
18181 OTOOL \
18182 OTOOL64 \
18183 shrext_cmds \
18184 export_dynamic_flag_spec \
18185 whole_archive_flag_spec \
18186 compiler_needs_object \
18187 with_gnu_ld \
18188 allow_undefined_flag \
18189 no_undefined_flag \
18190 hardcode_libdir_flag_spec \
18191 hardcode_libdir_flag_spec_ld \
18192 hardcode_libdir_separator \
18193 fix_srcfile_path \
18194 exclude_expsyms \
18195 include_expsyms \
18196 file_list_spec \
18197 variables_saved_for_relink \
18198 libname_spec \
18199 library_names_spec \
18200 soname_spec \
18201 install_override_mode \
18202 finish_eval \
18203 old_striplib \
18204 striplib \
18205 compiler_lib_search_dirs \
18206 predep_objects \
18207 postdep_objects \
18208 predeps \
18209 postdeps \
18210 compiler_lib_search_path \
18211 LD_CXX \
18212 reload_flag_CXX \
18213 compiler_CXX \
18214 lt_prog_compiler_no_builtin_flag_CXX \
18215 lt_prog_compiler_wl_CXX \
18216 lt_prog_compiler_pic_CXX \
18217 lt_prog_compiler_static_CXX \
18218 lt_cv_prog_compiler_c_o_CXX \
18219 export_dynamic_flag_spec_CXX \
18220 whole_archive_flag_spec_CXX \
18221 compiler_needs_object_CXX \
18222 with_gnu_ld_CXX \
18223 allow_undefined_flag_CXX \
18224 no_undefined_flag_CXX \
18225 hardcode_libdir_flag_spec_CXX \
18226 hardcode_libdir_flag_spec_ld_CXX \
18227 hardcode_libdir_separator_CXX \
18228 fix_srcfile_path_CXX \
18229 exclude_expsyms_CXX \
18230 include_expsyms_CXX \
18231 file_list_spec_CXX \
18232 compiler_lib_search_dirs_CXX \
18233 predep_objects_CXX \
18234 postdep_objects_CXX \
18235 predeps_CXX \
18236 postdeps_CXX \
18237 compiler_lib_search_path_CXX; do
18238 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18239 *[\\\\\\\`\\"\\\$]*)
18240 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18241 ;;
18242 *)
18243 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18244 ;;
18245 esac
18246 done
18247
18248 # Double-quote double-evaled strings.
18249 for var in reload_cmds \
18250 old_postinstall_cmds \
18251 old_postuninstall_cmds \
18252 old_archive_cmds \
18253 extract_expsyms_cmds \
18254 old_archive_from_new_cmds \
18255 old_archive_from_expsyms_cmds \
18256 archive_cmds \
18257 archive_expsym_cmds \
18258 module_cmds \
18259 module_expsym_cmds \
18260 export_symbols_cmds \
18261 prelink_cmds \
18262 postinstall_cmds \
18263 postuninstall_cmds \
18264 finish_cmds \
18265 sys_lib_search_path_spec \
18266 sys_lib_dlsearch_path_spec \
18267 reload_cmds_CXX \
18268 old_archive_cmds_CXX \
18269 old_archive_from_new_cmds_CXX \
18270 old_archive_from_expsyms_cmds_CXX \
18271 archive_cmds_CXX \
18272 archive_expsym_cmds_CXX \
18273 module_cmds_CXX \
18274 module_expsym_cmds_CXX \
18275 export_symbols_cmds_CXX \
18276 prelink_cmds_CXX; do
18277 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18278 *[\\\\\\\`\\"\\\$]*)
18279 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18280 ;;
18281 *)
18282 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18283 ;;
18284 esac
18285 done
18286
18287 ac_aux_dir='$ac_aux_dir'
18288 xsi_shell='$xsi_shell'
18289 lt_shell_append='$lt_shell_append'
18290
18291 # See if we are running on zsh, and set the options which allow our
18292 # commands through without removal of \ escapes INIT.
18293 if test -n "\${ZSH_VERSION+set}" ; then
18294 setopt NO_GLOB_SUBST
18295 fi
18296
18297
18298 PACKAGE='$PACKAGE'
18299 VERSION='$VERSION'
18300 TIMESTAMP='$TIMESTAMP'
18301 RM='$RM'
18302 ofile='$ofile'
18303
18304
18305
18306
18307
18308 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18309 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18310 # from automake.
18311 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18312 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18313 LINGUAS="${LINGUAS-%UNSET%}"
18314
18315
18316 _ACEOF
18317
18318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18319
18320 # Handling of arguments.
18321 for ac_config_target in $ac_config_targets
18322 do
18323 case $ac_config_target in
18324 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18325 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18326 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18327 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18328 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18329 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18330
18331 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18332 esac
18333 done
18334
18335
18336 # If the user did not use the arguments to specify the items to instantiate,
18337 # then the envvar interface is used. Set only those that are not.
18338 # We use the long form for the default assignment because of an extremely
18339 # bizarre bug on SunOS 4.1.3.
18340 if $ac_need_defaults; then
18341 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18342 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18343 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18344 fi
18345
18346 # Have a temporary directory for convenience. Make it in the build tree
18347 # simply because there is no reason against having it here, and in addition,
18348 # creating and moving files from /tmp can sometimes cause problems.
18349 # Hook for its removal unless debugging.
18350 # Note that there is a small window in which the directory will not be cleaned:
18351 # after its creation but before its name has been assigned to `$tmp'.
18352 $debug ||
18353 {
18354 tmp=
18355 trap 'exit_status=$?
18356 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18357 ' 0
18358 trap 'as_fn_exit 1' 1 2 13 15
18359 }
18360 # Create a (secure) tmp directory for tmp files.
18361
18362 {
18363 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18364 test -n "$tmp" && test -d "$tmp"
18365 } ||
18366 {
18367 tmp=./conf$$-$RANDOM
18368 (umask 077 && mkdir "$tmp")
18369 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18370
18371 # Set up the scripts for CONFIG_FILES section.
18372 # No need to generate them if there are no CONFIG_FILES.
18373 # This happens for instance with `./config.status config.h'.
18374 if test -n "$CONFIG_FILES"; then
18375
18376 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18377 ac_cs_awk_getline=:
18378 ac_cs_awk_pipe_init=
18379 ac_cs_awk_read_file='
18380 while ((getline aline < (F[key])) > 0)
18381 print(aline)
18382 close(F[key])'
18383 ac_cs_awk_pipe_fini=
18384 else
18385 ac_cs_awk_getline=false
18386 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18387 ac_cs_awk_read_file='
18388 print "|#_!!_#|"
18389 print "cat " F[key] " &&"
18390 '$ac_cs_awk_pipe_init
18391 # The final `:' finishes the AND list.
18392 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18393 fi
18394 ac_cr=`echo X | tr X '\015'`
18395 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18396 # But we know of no other shell where ac_cr would be empty at this
18397 # point, so we can use a bashism as a fallback.
18398 if test "x$ac_cr" = x; then
18399 eval ac_cr=\$\'\\r\'
18400 fi
18401 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18402 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18403 ac_cs_awk_cr='\r'
18404 else
18405 ac_cs_awk_cr=$ac_cr
18406 fi
18407
18408 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18409 _ACEOF
18410
18411 # Create commands to substitute file output variables.
18412 {
18413 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18414 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18415 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18416 echo "_ACAWK" &&
18417 echo "_ACEOF"
18418 } >conf$$files.sh &&
18419 . ./conf$$files.sh ||
18420 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18421 rm -f conf$$files.sh
18422
18423 {
18424 echo "cat >conf$$subs.awk <<_ACEOF" &&
18425 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18426 echo "_ACEOF"
18427 } >conf$$subs.sh ||
18428 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18429 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18430 ac_delim='%!_!# '
18431 for ac_last_try in false false false false false :; do
18432 . ./conf$$subs.sh ||
18433 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18434
18435 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18436 if test $ac_delim_n = $ac_delim_num; then
18437 break
18438 elif $ac_last_try; then
18439 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18440 else
18441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18442 fi
18443 done
18444 rm -f conf$$subs.sh
18445
18446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18447 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18448 _ACEOF
18449 sed -n '
18450 h
18451 s/^/S["/; s/!.*/"]=/
18452 p
18453 g
18454 s/^[^!]*!//
18455 :repl
18456 t repl
18457 s/'"$ac_delim"'$//
18458 t delim
18459 :nl
18460 h
18461 s/\(.\{148\}\).*/\1/
18462 t more1
18463 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18464 p
18465 n
18466 b repl
18467 :more1
18468 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18469 p
18470 g
18471 s/.\{148\}//
18472 t nl
18473 :delim
18474 h
18475 s/\(.\{148\}\).*/\1/
18476 t more2
18477 s/["\\]/\\&/g; s/^/"/; s/$/"/
18478 p
18479 b
18480 :more2
18481 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18482 p
18483 g
18484 s/.\{148\}//
18485 t delim
18486 ' <conf$$subs.awk | sed '
18487 /^[^""]/{
18488 N
18489 s/\n//
18490 }
18491 ' >>$CONFIG_STATUS || ac_write_fail=1
18492 rm -f conf$$subs.awk
18493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18494 _ACAWK
18495 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18496 for (key in S) S_is_set[key] = 1
18497 FS = "\a"
18498 \$ac_cs_awk_pipe_init
18499 }
18500 {
18501 line = $ 0
18502 nfields = split(line, field, "@")
18503 substed = 0
18504 len = length(field[1])
18505 for (i = 2; i < nfields; i++) {
18506 key = field[i]
18507 keylen = length(key)
18508 if (S_is_set[key]) {
18509 value = S[key]
18510 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18511 len += length(value) + length(field[++i])
18512 substed = 1
18513 } else
18514 len += 1 + keylen
18515 }
18516 if (nfields == 3 && !substed) {
18517 key = field[2]
18518 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18519 \$ac_cs_awk_read_file
18520 next
18521 }
18522 }
18523 print line
18524 }
18525 \$ac_cs_awk_pipe_fini
18526 _ACAWK
18527 _ACEOF
18528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18529 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18530 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18531 else
18532 cat
18533 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18534 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18535 _ACEOF
18536
18537 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18538 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18539 # trailing colons and then remove the whole line if VPATH becomes empty
18540 # (actually we leave an empty line to preserve line numbers).
18541 if test "x$srcdir" = x.; then
18542 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18543 s/:*\$(srcdir):*/:/
18544 s/:*\${srcdir}:*/:/
18545 s/:*@srcdir@:*/:/
18546 s/^\([^=]*=[ ]*\):*/\1/
18547 s/:*$//
18548 s/^[^=]*=[ ]*$//
18549 }'
18550 fi
18551
18552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18553 fi # test -n "$CONFIG_FILES"
18554
18555 # Set up the scripts for CONFIG_HEADERS section.
18556 # No need to generate them if there are no CONFIG_HEADERS.
18557 # This happens for instance with `./config.status Makefile'.
18558 if test -n "$CONFIG_HEADERS"; then
18559 cat >"$tmp/defines.awk" <<\_ACAWK ||
18560 BEGIN {
18561 _ACEOF
18562
18563 # Transform confdefs.h into an awk script `defines.awk', embedded as
18564 # here-document in config.status, that substitutes the proper values into
18565 # config.h.in to produce config.h.
18566
18567 # Create a delimiter string that does not exist in confdefs.h, to ease
18568 # handling of long lines.
18569 ac_delim='%!_!# '
18570 for ac_last_try in false false :; do
18571 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18572 if test -z "$ac_t"; then
18573 break
18574 elif $ac_last_try; then
18575 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18576 else
18577 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18578 fi
18579 done
18580
18581 # For the awk script, D is an array of macro values keyed by name,
18582 # likewise P contains macro parameters if any. Preserve backslash
18583 # newline sequences.
18584
18585 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18586 sed -n '
18587 s/.\{148\}/&'"$ac_delim"'/g
18588 t rset
18589 :rset
18590 s/^[ ]*#[ ]*define[ ][ ]*/ /
18591 t def
18592 d
18593 :def
18594 s/\\$//
18595 t bsnl
18596 s/["\\]/\\&/g
18597 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18598 D["\1"]=" \3"/p
18599 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18600 d
18601 :bsnl
18602 s/["\\]/\\&/g
18603 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18604 D["\1"]=" \3\\\\\\n"\\/p
18605 t cont
18606 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18607 t cont
18608 d
18609 :cont
18610 n
18611 s/.\{148\}/&'"$ac_delim"'/g
18612 t clear
18613 :clear
18614 s/\\$//
18615 t bsnlc
18616 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18617 d
18618 :bsnlc
18619 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18620 b cont
18621 ' <confdefs.h | sed '
18622 s/'"$ac_delim"'/"\\\
18623 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18624
18625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18626 for (key in D) D_is_set[key] = 1
18627 FS = "\a"
18628 }
18629 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18630 line = \$ 0
18631 split(line, arg, " ")
18632 if (arg[1] == "#") {
18633 defundef = arg[2]
18634 mac1 = arg[3]
18635 } else {
18636 defundef = substr(arg[1], 2)
18637 mac1 = arg[2]
18638 }
18639 split(mac1, mac2, "(") #)
18640 macro = mac2[1]
18641 prefix = substr(line, 1, index(line, defundef) - 1)
18642 if (D_is_set[macro]) {
18643 # Preserve the white space surrounding the "#".
18644 print prefix "define", macro P[macro] D[macro]
18645 next
18646 } else {
18647 # Replace #undef with comments. This is necessary, for example,
18648 # in the case of _POSIX_SOURCE, which is predefined and required
18649 # on some systems where configure will not decide to define it.
18650 if (defundef == "undef") {
18651 print "/*", prefix defundef, macro, "*/"
18652 next
18653 }
18654 }
18655 }
18656 { print }
18657 _ACAWK
18658 _ACEOF
18659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18660 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18661 fi # test -n "$CONFIG_HEADERS"
18662
18663
18664 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18665 shift
18666 for ac_tag
18667 do
18668 case $ac_tag in
18669 :[FHLC]) ac_mode=$ac_tag; continue;;
18670 esac
18671 case $ac_mode$ac_tag in
18672 :[FHL]*:*);;
18673 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18674 :[FH]-) ac_tag=-:-;;
18675 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18676 esac
18677 ac_save_IFS=$IFS
18678 IFS=:
18679 set x $ac_tag
18680 IFS=$ac_save_IFS
18681 shift
18682 ac_file=$1
18683 shift
18684
18685 case $ac_mode in
18686 :L) ac_source=$1;;
18687 :[FH])
18688 ac_file_inputs=
18689 for ac_f
18690 do
18691 case $ac_f in
18692 -) ac_f="$tmp/stdin";;
18693 *) # Look for the file first in the build tree, then in the source tree
18694 # (if the path is not absolute). The absolute path cannot be DOS-style,
18695 # because $ac_f cannot contain `:'.
18696 test -f "$ac_f" ||
18697 case $ac_f in
18698 [\\/$]*) false;;
18699 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18700 esac ||
18701 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18702 esac
18703 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18704 as_fn_append ac_file_inputs " '$ac_f'"
18705 done
18706
18707 # Let's still pretend it is `configure' which instantiates (i.e., don't
18708 # use $as_me), people would be surprised to read:
18709 # /* config.h. Generated by config.status. */
18710 configure_input='Generated from '`
18711 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18712 `' by configure.'
18713 if test x"$ac_file" != x-; then
18714 configure_input="$ac_file. $configure_input"
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18716 $as_echo "$as_me: creating $ac_file" >&6;}
18717 fi
18718 # Neutralize special characters interpreted by sed in replacement strings.
18719 case $configure_input in #(
18720 *\&* | *\|* | *\\* )
18721 ac_sed_conf_input=`$as_echo "$configure_input" |
18722 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18723 *) ac_sed_conf_input=$configure_input;;
18724 esac
18725
18726 case $ac_tag in
18727 *:-:* | *:-) cat >"$tmp/stdin" \
18728 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18729 esac
18730 ;;
18731 esac
18732
18733 ac_dir=`$as_dirname -- "$ac_file" ||
18734 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18735 X"$ac_file" : 'X\(//\)[^/]' \| \
18736 X"$ac_file" : 'X\(//\)$' \| \
18737 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18738 $as_echo X"$ac_file" |
18739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18740 s//\1/
18741 q
18742 }
18743 /^X\(\/\/\)[^/].*/{
18744 s//\1/
18745 q
18746 }
18747 /^X\(\/\/\)$/{
18748 s//\1/
18749 q
18750 }
18751 /^X\(\/\).*/{
18752 s//\1/
18753 q
18754 }
18755 s/.*/./; q'`
18756 as_dir="$ac_dir"; as_fn_mkdir_p
18757 ac_builddir=.
18758
18759 case "$ac_dir" in
18760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18761 *)
18762 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18763 # A ".." for each directory in $ac_dir_suffix.
18764 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18765 case $ac_top_builddir_sub in
18766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18768 esac ;;
18769 esac
18770 ac_abs_top_builddir=$ac_pwd
18771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18772 # for backward compatibility:
18773 ac_top_builddir=$ac_top_build_prefix
18774
18775 case $srcdir in
18776 .) # We are building in place.
18777 ac_srcdir=.
18778 ac_top_srcdir=$ac_top_builddir_sub
18779 ac_abs_top_srcdir=$ac_pwd ;;
18780 [\\/]* | ?:[\\/]* ) # Absolute name.
18781 ac_srcdir=$srcdir$ac_dir_suffix;
18782 ac_top_srcdir=$srcdir
18783 ac_abs_top_srcdir=$srcdir ;;
18784 *) # Relative name.
18785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18786 ac_top_srcdir=$ac_top_build_prefix$srcdir
18787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18788 esac
18789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18790
18791
18792 case $ac_mode in
18793 :F)
18794 #
18795 # CONFIG_FILE
18796 #
18797
18798 case $INSTALL in
18799 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18800 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18801 esac
18802 ac_MKDIR_P=$MKDIR_P
18803 case $MKDIR_P in
18804 [\\/$]* | ?:[\\/]* ) ;;
18805 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18806 esac
18807 _ACEOF
18808
18809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18810 # If the template does not know about datarootdir, expand it.
18811 # FIXME: This hack should be removed a few years after 2.60.
18812 ac_datarootdir_hack=; ac_datarootdir_seen=
18813 ac_sed_dataroot='
18814 /datarootdir/ {
18815 p
18816 q
18817 }
18818 /@datadir@/p
18819 /@docdir@/p
18820 /@infodir@/p
18821 /@localedir@/p
18822 /@mandir@/p'
18823 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18824 *datarootdir*) ac_datarootdir_seen=yes;;
18825 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18827 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18828 _ACEOF
18829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18830 ac_datarootdir_hack='
18831 s&@datadir@&$datadir&g
18832 s&@docdir@&$docdir&g
18833 s&@infodir@&$infodir&g
18834 s&@localedir@&$localedir&g
18835 s&@mandir@&$mandir&g
18836 s&\\\${datarootdir}&$datarootdir&g' ;;
18837 esac
18838 _ACEOF
18839
18840 # Neutralize VPATH when `$srcdir' = `.'.
18841 # Shell code in configure.ac might set extrasub.
18842 # FIXME: do we really want to maintain this feature?
18843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18844 ac_sed_extra="$ac_vpsub
18845 $extrasub
18846 _ACEOF
18847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18848 :t
18849 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18850 s|@configure_input@|$ac_sed_conf_input|;t t
18851 s&@top_builddir@&$ac_top_builddir_sub&;t t
18852 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18853 s&@srcdir@&$ac_srcdir&;t t
18854 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18855 s&@top_srcdir@&$ac_top_srcdir&;t t
18856 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18857 s&@builddir@&$ac_builddir&;t t
18858 s&@abs_builddir@&$ac_abs_builddir&;t t
18859 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18860 s&@INSTALL@&$ac_INSTALL&;t t
18861 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18862 $ac_datarootdir_hack
18863 "
18864 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18865 if $ac_cs_awk_getline; then
18866 $AWK -f "$tmp/subs.awk"
18867 else
18868 $AWK -f "$tmp/subs.awk" | $SHELL
18869 fi >$tmp/out \
18870 || as_fn_error "could not create $ac_file" "$LINENO" 5
18871
18872 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18873 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18874 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18876 which seems to be undefined. Please make sure it is defined." >&5
18877 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18878 which seems to be undefined. Please make sure it is defined." >&2;}
18879
18880 rm -f "$tmp/stdin"
18881 case $ac_file in
18882 -) cat "$tmp/out" && rm -f "$tmp/out";;
18883 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18884 esac \
18885 || as_fn_error "could not create $ac_file" "$LINENO" 5
18886 ;;
18887 :H)
18888 #
18889 # CONFIG_HEADER
18890 #
18891 if test x"$ac_file" != x-; then
18892 {
18893 $as_echo "/* $configure_input */" \
18894 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18895 } >"$tmp/config.h" \
18896 || as_fn_error "could not create $ac_file" "$LINENO" 5
18897 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18899 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18900 else
18901 rm -f "$ac_file"
18902 mv "$tmp/config.h" "$ac_file" \
18903 || as_fn_error "could not create $ac_file" "$LINENO" 5
18904 fi
18905 else
18906 $as_echo "/* $configure_input */" \
18907 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18908 || as_fn_error "could not create -" "$LINENO" 5
18909 fi
18910 # Compute "$ac_file"'s index in $config_headers.
18911 _am_arg="$ac_file"
18912 _am_stamp_count=1
18913 for _am_header in $config_headers :; do
18914 case $_am_header in
18915 $_am_arg | $_am_arg:* )
18916 break ;;
18917 * )
18918 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18919 esac
18920 done
18921 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18922 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18923 X"$_am_arg" : 'X\(//\)[^/]' \| \
18924 X"$_am_arg" : 'X\(//\)$' \| \
18925 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18926 $as_echo X"$_am_arg" |
18927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18928 s//\1/
18929 q
18930 }
18931 /^X\(\/\/\)[^/].*/{
18932 s//\1/
18933 q
18934 }
18935 /^X\(\/\/\)$/{
18936 s//\1/
18937 q
18938 }
18939 /^X\(\/\).*/{
18940 s//\1/
18941 q
18942 }
18943 s/.*/./; q'`/stamp-h$_am_stamp_count
18944 ;;
18945
18946 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18947 $as_echo "$as_me: executing $ac_file commands" >&6;}
18948 ;;
18949 esac
18950
18951
18952 case $ac_file$ac_mode in
18953 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18954 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18955 # are listed without --file. Let's play safe and only enable the eval
18956 # if we detect the quoting.
18957 case $CONFIG_FILES in
18958 *\'*) eval set x "$CONFIG_FILES" ;;
18959 *) set x $CONFIG_FILES ;;
18960 esac
18961 shift
18962 for mf
18963 do
18964 # Strip MF so we end up with the name of the file.
18965 mf=`echo "$mf" | sed -e 's/:.*$//'`
18966 # Check whether this is an Automake generated Makefile or not.
18967 # We used to match only the files named `Makefile.in', but
18968 # some people rename them; so instead we look at the file content.
18969 # Grep'ing the first line is not enough: some people post-process
18970 # each Makefile.in and add a new line on top of each file to say so.
18971 # Grep'ing the whole file is not good either: AIX grep has a line
18972 # limit of 2048, but all sed's we know have understand at least 4000.
18973 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18974 dirpart=`$as_dirname -- "$mf" ||
18975 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18976 X"$mf" : 'X\(//\)[^/]' \| \
18977 X"$mf" : 'X\(//\)$' \| \
18978 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18979 $as_echo X"$mf" |
18980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18981 s//\1/
18982 q
18983 }
18984 /^X\(\/\/\)[^/].*/{
18985 s//\1/
18986 q
18987 }
18988 /^X\(\/\/\)$/{
18989 s//\1/
18990 q
18991 }
18992 /^X\(\/\).*/{
18993 s//\1/
18994 q
18995 }
18996 s/.*/./; q'`
18997 else
18998 continue
18999 fi
19000 # Extract the definition of DEPDIR, am__include, and am__quote
19001 # from the Makefile without running `make'.
19002 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19003 test -z "$DEPDIR" && continue
19004 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19005 test -z "am__include" && continue
19006 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19007 # When using ansi2knr, U may be empty or an underscore; expand it
19008 U=`sed -n 's/^U = //p' < "$mf"`
19009 # Find all dependency output files, they are included files with
19010 # $(DEPDIR) in their names. We invoke sed twice because it is the
19011 # simplest approach to changing $(DEPDIR) to its actual value in the
19012 # expansion.
19013 for file in `sed -n "
19014 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19015 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19016 # Make sure the directory exists.
19017 test -f "$dirpart/$file" && continue
19018 fdir=`$as_dirname -- "$file" ||
19019 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19020 X"$file" : 'X\(//\)[^/]' \| \
19021 X"$file" : 'X\(//\)$' \| \
19022 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19023 $as_echo X"$file" |
19024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19025 s//\1/
19026 q
19027 }
19028 /^X\(\/\/\)[^/].*/{
19029 s//\1/
19030 q
19031 }
19032 /^X\(\/\/\)$/{
19033 s//\1/
19034 q
19035 }
19036 /^X\(\/\).*/{
19037 s//\1/
19038 q
19039 }
19040 s/.*/./; q'`
19041 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19042 # echo "creating $dirpart/$file"
19043 echo '# dummy' > "$dirpart/$file"
19044 done
19045 done
19046 }
19047 ;;
19048 "libtool":C)
19049
19050 # See if we are running on zsh, and set the options which allow our
19051 # commands through without removal of \ escapes.
19052 if test -n "${ZSH_VERSION+set}" ; then
19053 setopt NO_GLOB_SUBST
19054 fi
19055
19056 cfgfile="${ofile}T"
19057 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19058 $RM "$cfgfile"
19059
19060 cat <<_LT_EOF >> "$cfgfile"
19061 #! $SHELL
19062
19063 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19064 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19065 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19066 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19067 #
19068 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19069 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19070 # Written by Gordon Matzigkeit, 1996
19071 #
19072 # This file is part of GNU Libtool.
19073 #
19074 # GNU Libtool is free software; you can redistribute it and/or
19075 # modify it under the terms of the GNU General Public License as
19076 # published by the Free Software Foundation; either version 2 of
19077 # the License, or (at your option) any later version.
19078 #
19079 # As a special exception to the GNU General Public License,
19080 # if you distribute this file as part of a program or library that
19081 # is built using GNU Libtool, you may include this file under the
19082 # same distribution terms that you use for the rest of that program.
19083 #
19084 # GNU Libtool is distributed in the hope that it will be useful,
19085 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19086 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19087 # GNU General Public License for more details.
19088 #
19089 # You should have received a copy of the GNU General Public License
19090 # along with GNU Libtool; see the file COPYING. If not, a copy
19091 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19092 # obtained by writing to the Free Software Foundation, Inc.,
19093 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19094
19095
19096 # The names of the tagged configurations supported by this script.
19097 available_tags="CXX "
19098
19099 # ### BEGIN LIBTOOL CONFIG
19100
19101 # Which release of libtool.m4 was used?
19102 macro_version=$macro_version
19103 macro_revision=$macro_revision
19104
19105 # Whether or not to build shared libraries.
19106 build_libtool_libs=$enable_shared
19107
19108 # Whether or not to build static libraries.
19109 build_old_libs=$enable_static
19110
19111 # What type of objects to build.
19112 pic_mode=$pic_mode
19113
19114 # Whether or not to optimize for fast installation.
19115 fast_install=$enable_fast_install
19116
19117 # Shell to use when invoking shell scripts.
19118 SHELL=$lt_SHELL
19119
19120 # An echo program that protects backslashes.
19121 ECHO=$lt_ECHO
19122
19123 # The host system.
19124 host_alias=$host_alias
19125 host=$host
19126 host_os=$host_os
19127
19128 # The build system.
19129 build_alias=$build_alias
19130 build=$build
19131 build_os=$build_os
19132
19133 # A sed program that does not truncate output.
19134 SED=$lt_SED
19135
19136 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19137 Xsed="\$SED -e 1s/^X//"
19138
19139 # A grep program that handles long lines.
19140 GREP=$lt_GREP
19141
19142 # An ERE matcher.
19143 EGREP=$lt_EGREP
19144
19145 # A literal string matcher.
19146 FGREP=$lt_FGREP
19147
19148 # A BSD- or MS-compatible name lister.
19149 NM=$lt_NM
19150
19151 # Whether we need soft or hard links.
19152 LN_S=$lt_LN_S
19153
19154 # What is the maximum length of a command?
19155 max_cmd_len=$max_cmd_len
19156
19157 # Object file suffix (normally "o").
19158 objext=$ac_objext
19159
19160 # Executable file suffix (normally "").
19161 exeext=$exeext
19162
19163 # whether the shell understands "unset".
19164 lt_unset=$lt_unset
19165
19166 # turn spaces into newlines.
19167 SP2NL=$lt_lt_SP2NL
19168
19169 # turn newlines into spaces.
19170 NL2SP=$lt_lt_NL2SP
19171
19172 # An object symbol dumper.
19173 OBJDUMP=$lt_OBJDUMP
19174
19175 # Method to check whether dependent libraries are shared objects.
19176 deplibs_check_method=$lt_deplibs_check_method
19177
19178 # Command to use when deplibs_check_method == "file_magic".
19179 file_magic_cmd=$lt_file_magic_cmd
19180
19181 # The archiver.
19182 AR=$lt_AR
19183 AR_FLAGS=$lt_AR_FLAGS
19184
19185 # A symbol stripping program.
19186 STRIP=$lt_STRIP
19187
19188 # Commands used to install an old-style archive.
19189 RANLIB=$lt_RANLIB
19190 old_postinstall_cmds=$lt_old_postinstall_cmds
19191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19192
19193 # Whether to use a lock for old archive extraction.
19194 lock_old_archive_extraction=$lock_old_archive_extraction
19195
19196 # A C compiler.
19197 LTCC=$lt_CC
19198
19199 # LTCC compiler flags.
19200 LTCFLAGS=$lt_CFLAGS
19201
19202 # Take the output of nm and produce a listing of raw symbols and C names.
19203 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19204
19205 # Transform the output of nm in a proper C declaration.
19206 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19207
19208 # Transform the output of nm in a C name address pair.
19209 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19210
19211 # Transform the output of nm in a C name address pair when lib prefix is needed.
19212 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19213
19214 # The name of the directory that contains temporary libtool files.
19215 objdir=$objdir
19216
19217 # Used to examine libraries when file_magic_cmd begins with "file".
19218 MAGIC_CMD=$MAGIC_CMD
19219
19220 # Must we lock files when doing compilation?
19221 need_locks=$lt_need_locks
19222
19223 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19224 DSYMUTIL=$lt_DSYMUTIL
19225
19226 # Tool to change global to local symbols on Mac OS X.
19227 NMEDIT=$lt_NMEDIT
19228
19229 # Tool to manipulate fat objects and archives on Mac OS X.
19230 LIPO=$lt_LIPO
19231
19232 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19233 OTOOL=$lt_OTOOL
19234
19235 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19236 OTOOL64=$lt_OTOOL64
19237
19238 # Old archive suffix (normally "a").
19239 libext=$libext
19240
19241 # Shared library suffix (normally ".so").
19242 shrext_cmds=$lt_shrext_cmds
19243
19244 # The commands to extract the exported symbol list from a shared archive.
19245 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19246
19247 # Variables whose values should be saved in libtool wrapper scripts and
19248 # restored at link time.
19249 variables_saved_for_relink=$lt_variables_saved_for_relink
19250
19251 # Do we need the "lib" prefix for modules?
19252 need_lib_prefix=$need_lib_prefix
19253
19254 # Do we need a version for libraries?
19255 need_version=$need_version
19256
19257 # Library versioning type.
19258 version_type=$version_type
19259
19260 # Shared library runtime path variable.
19261 runpath_var=$runpath_var
19262
19263 # Shared library path variable.
19264 shlibpath_var=$shlibpath_var
19265
19266 # Is shlibpath searched before the hard-coded library search path?
19267 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19268
19269 # Format of library name prefix.
19270 libname_spec=$lt_libname_spec
19271
19272 # List of archive names. First name is the real one, the rest are links.
19273 # The last name is the one that the linker finds with -lNAME
19274 library_names_spec=$lt_library_names_spec
19275
19276 # The coded name of the library, if different from the real name.
19277 soname_spec=$lt_soname_spec
19278
19279 # Permission mode override for installation of shared libraries.
19280 install_override_mode=$lt_install_override_mode
19281
19282 # Command to use after installation of a shared archive.
19283 postinstall_cmds=$lt_postinstall_cmds
19284
19285 # Command to use after uninstallation of a shared archive.
19286 postuninstall_cmds=$lt_postuninstall_cmds
19287
19288 # Commands used to finish a libtool library installation in a directory.
19289 finish_cmds=$lt_finish_cmds
19290
19291 # As "finish_cmds", except a single script fragment to be evaled but
19292 # not shown.
19293 finish_eval=$lt_finish_eval
19294
19295 # Whether we should hardcode library paths into libraries.
19296 hardcode_into_libs=$hardcode_into_libs
19297
19298 # Compile-time system search path for libraries.
19299 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19300
19301 # Run-time system search path for libraries.
19302 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19303
19304 # Whether dlopen is supported.
19305 dlopen_support=$enable_dlopen
19306
19307 # Whether dlopen of programs is supported.
19308 dlopen_self=$enable_dlopen_self
19309
19310 # Whether dlopen of statically linked programs is supported.
19311 dlopen_self_static=$enable_dlopen_self_static
19312
19313 # Commands to strip libraries.
19314 old_striplib=$lt_old_striplib
19315 striplib=$lt_striplib
19316
19317
19318 # The linker used to build libraries.
19319 LD=$lt_LD
19320
19321 # How to create reloadable object files.
19322 reload_flag=$lt_reload_flag
19323 reload_cmds=$lt_reload_cmds
19324
19325 # Commands used to build an old-style archive.
19326 old_archive_cmds=$lt_old_archive_cmds
19327
19328 # A language specific compiler.
19329 CC=$lt_compiler
19330
19331 # Is the compiler the GNU compiler?
19332 with_gcc=$GCC
19333
19334 # Compiler flag to turn off builtin functions.
19335 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19336
19337 # How to pass a linker flag through the compiler.
19338 wl=$lt_lt_prog_compiler_wl
19339
19340 # Additional compiler flags for building library objects.
19341 pic_flag=$lt_lt_prog_compiler_pic
19342
19343 # Compiler flag to prevent dynamic linking.
19344 link_static_flag=$lt_lt_prog_compiler_static
19345
19346 # Does compiler simultaneously support -c and -o options?
19347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19348
19349 # Whether or not to add -lc for building shared libraries.
19350 build_libtool_need_lc=$archive_cmds_need_lc
19351
19352 # Whether or not to disallow shared libs when runtime libs are static.
19353 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19354
19355 # Compiler flag to allow reflexive dlopens.
19356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19357
19358 # Compiler flag to generate shared objects directly from archives.
19359 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19360
19361 # Whether the compiler copes with passing no objects directly.
19362 compiler_needs_object=$lt_compiler_needs_object
19363
19364 # Create an old-style archive from a shared archive.
19365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19366
19367 # Create a temporary old-style archive to link instead of a shared archive.
19368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19369
19370 # Commands used to build a shared archive.
19371 archive_cmds=$lt_archive_cmds
19372 archive_expsym_cmds=$lt_archive_expsym_cmds
19373
19374 # Commands used to build a loadable module if different from building
19375 # a shared archive.
19376 module_cmds=$lt_module_cmds
19377 module_expsym_cmds=$lt_module_expsym_cmds
19378
19379 # Whether we are building with GNU ld or not.
19380 with_gnu_ld=$lt_with_gnu_ld
19381
19382 # Flag that allows shared libraries with undefined symbols to be built.
19383 allow_undefined_flag=$lt_allow_undefined_flag
19384
19385 # Flag that enforces no undefined symbols.
19386 no_undefined_flag=$lt_no_undefined_flag
19387
19388 # Flag to hardcode \$libdir into a binary during linking.
19389 # This must work even if \$libdir does not exist
19390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19391
19392 # If ld is used when linking, flag to hardcode \$libdir into a binary
19393 # during linking. This must work even if \$libdir does not exist.
19394 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19395
19396 # Whether we need a single "-rpath" flag with a separated argument.
19397 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19398
19399 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19400 # DIR into the resulting binary.
19401 hardcode_direct=$hardcode_direct
19402
19403 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19404 # DIR into the resulting binary and the resulting library dependency is
19405 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19406 # library is relocated.
19407 hardcode_direct_absolute=$hardcode_direct_absolute
19408
19409 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19410 # into the resulting binary.
19411 hardcode_minus_L=$hardcode_minus_L
19412
19413 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19414 # into the resulting binary.
19415 hardcode_shlibpath_var=$hardcode_shlibpath_var
19416
19417 # Set to "yes" if building a shared library automatically hardcodes DIR
19418 # into the library and all subsequent libraries and executables linked
19419 # against it.
19420 hardcode_automatic=$hardcode_automatic
19421
19422 # Set to yes if linker adds runtime paths of dependent libraries
19423 # to runtime path list.
19424 inherit_rpath=$inherit_rpath
19425
19426 # Whether libtool must link a program against all its dependency libraries.
19427 link_all_deplibs=$link_all_deplibs
19428
19429 # Fix the shell variable \$srcfile for the compiler.
19430 fix_srcfile_path=$lt_fix_srcfile_path
19431
19432 # Set to "yes" if exported symbols are required.
19433 always_export_symbols=$always_export_symbols
19434
19435 # The commands to list exported symbols.
19436 export_symbols_cmds=$lt_export_symbols_cmds
19437
19438 # Symbols that should not be listed in the preloaded symbols.
19439 exclude_expsyms=$lt_exclude_expsyms
19440
19441 # Symbols that must always be exported.
19442 include_expsyms=$lt_include_expsyms
19443
19444 # Commands necessary for linking programs (against libraries) with templates.
19445 prelink_cmds=$lt_prelink_cmds
19446
19447 # Specify filename containing input files.
19448 file_list_spec=$lt_file_list_spec
19449
19450 # How to hardcode a shared library path into an executable.
19451 hardcode_action=$hardcode_action
19452
19453 # The directories searched by this compiler when creating a shared library.
19454 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19455
19456 # Dependencies to place before and after the objects being linked to
19457 # create a shared library.
19458 predep_objects=$lt_predep_objects
19459 postdep_objects=$lt_postdep_objects
19460 predeps=$lt_predeps
19461 postdeps=$lt_postdeps
19462
19463 # The library search path used internally by the compiler when linking
19464 # a shared library.
19465 compiler_lib_search_path=$lt_compiler_lib_search_path
19466
19467 # ### END LIBTOOL CONFIG
19468
19469 _LT_EOF
19470
19471 case $host_os in
19472 aix3*)
19473 cat <<\_LT_EOF >> "$cfgfile"
19474 # AIX sometimes has problems with the GCC collect2 program. For some
19475 # reason, if we set the COLLECT_NAMES environment variable, the problems
19476 # vanish in a puff of smoke.
19477 if test "X${COLLECT_NAMES+set}" != Xset; then
19478 COLLECT_NAMES=
19479 export COLLECT_NAMES
19480 fi
19481 _LT_EOF
19482 ;;
19483 esac
19484
19485
19486 ltmain="$ac_aux_dir/ltmain.sh"
19487
19488
19489 # We use sed instead of cat because bash on DJGPP gets confused if
19490 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19491 # text mode, it properly converts lines to CR/LF. This bash problem
19492 # is reportedly fixed, but why not run on old versions too?
19493 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19494 || (rm -f "$cfgfile"; exit 1)
19495
19496 case $xsi_shell in
19497 yes)
19498 cat << \_LT_EOF >> "$cfgfile"
19499
19500 # func_dirname file append nondir_replacement
19501 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19502 # otherwise set result to NONDIR_REPLACEMENT.
19503 func_dirname ()
19504 {
19505 case ${1} in
19506 */*) func_dirname_result="${1%/*}${2}" ;;
19507 * ) func_dirname_result="${3}" ;;
19508 esac
19509 }
19510
19511 # func_basename file
19512 func_basename ()
19513 {
19514 func_basename_result="${1##*/}"
19515 }
19516
19517 # func_dirname_and_basename file append nondir_replacement
19518 # perform func_basename and func_dirname in a single function
19519 # call:
19520 # dirname: Compute the dirname of FILE. If nonempty,
19521 # add APPEND to the result, otherwise set result
19522 # to NONDIR_REPLACEMENT.
19523 # value returned in "$func_dirname_result"
19524 # basename: Compute filename of FILE.
19525 # value retuned in "$func_basename_result"
19526 # Implementation must be kept synchronized with func_dirname
19527 # and func_basename. For efficiency, we do not delegate to
19528 # those functions but instead duplicate the functionality here.
19529 func_dirname_and_basename ()
19530 {
19531 case ${1} in
19532 */*) func_dirname_result="${1%/*}${2}" ;;
19533 * ) func_dirname_result="${3}" ;;
19534 esac
19535 func_basename_result="${1##*/}"
19536 }
19537
19538 # func_stripname prefix suffix name
19539 # strip PREFIX and SUFFIX off of NAME.
19540 # PREFIX and SUFFIX must not contain globbing or regex special
19541 # characters, hashes, percent signs, but SUFFIX may contain a leading
19542 # dot (in which case that matches only a dot).
19543 func_stripname ()
19544 {
19545 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19546 # positional parameters, so assign one to ordinary parameter first.
19547 func_stripname_result=${3}
19548 func_stripname_result=${func_stripname_result#"${1}"}
19549 func_stripname_result=${func_stripname_result%"${2}"}
19550 }
19551
19552 # func_opt_split
19553 func_opt_split ()
19554 {
19555 func_opt_split_opt=${1%%=*}
19556 func_opt_split_arg=${1#*=}
19557 }
19558
19559 # func_lo2o object
19560 func_lo2o ()
19561 {
19562 case ${1} in
19563 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19564 *) func_lo2o_result=${1} ;;
19565 esac
19566 }
19567
19568 # func_xform libobj-or-source
19569 func_xform ()
19570 {
19571 func_xform_result=${1%.*}.lo
19572 }
19573
19574 # func_arith arithmetic-term...
19575 func_arith ()
19576 {
19577 func_arith_result=$(( $* ))
19578 }
19579
19580 # func_len string
19581 # STRING may not start with a hyphen.
19582 func_len ()
19583 {
19584 func_len_result=${#1}
19585 }
19586
19587 _LT_EOF
19588 ;;
19589 *) # Bourne compatible functions.
19590 cat << \_LT_EOF >> "$cfgfile"
19591
19592 # func_dirname file append nondir_replacement
19593 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19594 # otherwise set result to NONDIR_REPLACEMENT.
19595 func_dirname ()
19596 {
19597 # Extract subdirectory from the argument.
19598 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19599 if test "X$func_dirname_result" = "X${1}"; then
19600 func_dirname_result="${3}"
19601 else
19602 func_dirname_result="$func_dirname_result${2}"
19603 fi
19604 }
19605
19606 # func_basename file
19607 func_basename ()
19608 {
19609 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19610 }
19611
19612
19613 # func_stripname prefix suffix name
19614 # strip PREFIX and SUFFIX off of NAME.
19615 # PREFIX and SUFFIX must not contain globbing or regex special
19616 # characters, hashes, percent signs, but SUFFIX may contain a leading
19617 # dot (in which case that matches only a dot).
19618 # func_strip_suffix prefix name
19619 func_stripname ()
19620 {
19621 case ${2} in
19622 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19623 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19624 esac
19625 }
19626
19627 # sed scripts:
19628 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19629 my_sed_long_arg='1s/^-[^=]*=//'
19630
19631 # func_opt_split
19632 func_opt_split ()
19633 {
19634 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19635 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19636 }
19637
19638 # func_lo2o object
19639 func_lo2o ()
19640 {
19641 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19642 }
19643
19644 # func_xform libobj-or-source
19645 func_xform ()
19646 {
19647 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19648 }
19649
19650 # func_arith arithmetic-term...
19651 func_arith ()
19652 {
19653 func_arith_result=`expr "$@"`
19654 }
19655
19656 # func_len string
19657 # STRING may not start with a hyphen.
19658 func_len ()
19659 {
19660 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19661 }
19662
19663 _LT_EOF
19664 esac
19665
19666 case $lt_shell_append in
19667 yes)
19668 cat << \_LT_EOF >> "$cfgfile"
19669
19670 # func_append var value
19671 # Append VALUE to the end of shell variable VAR.
19672 func_append ()
19673 {
19674 eval "$1+=\$2"
19675 }
19676 _LT_EOF
19677 ;;
19678 *)
19679 cat << \_LT_EOF >> "$cfgfile"
19680
19681 # func_append var value
19682 # Append VALUE to the end of shell variable VAR.
19683 func_append ()
19684 {
19685 eval "$1=\$$1\$2"
19686 }
19687
19688 _LT_EOF
19689 ;;
19690 esac
19691
19692
19693 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19694 || (rm -f "$cfgfile"; exit 1)
19695
19696 mv -f "$cfgfile" "$ofile" ||
19697 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19698 chmod +x "$ofile"
19699
19700
19701 cat <<_LT_EOF >> "$ofile"
19702
19703 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19704
19705 # The linker used to build libraries.
19706 LD=$lt_LD_CXX
19707
19708 # How to create reloadable object files.
19709 reload_flag=$lt_reload_flag_CXX
19710 reload_cmds=$lt_reload_cmds_CXX
19711
19712 # Commands used to build an old-style archive.
19713 old_archive_cmds=$lt_old_archive_cmds_CXX
19714
19715 # A language specific compiler.
19716 CC=$lt_compiler_CXX
19717
19718 # Is the compiler the GNU compiler?
19719 with_gcc=$GCC_CXX
19720
19721 # Compiler flag to turn off builtin functions.
19722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19723
19724 # How to pass a linker flag through the compiler.
19725 wl=$lt_lt_prog_compiler_wl_CXX
19726
19727 # Additional compiler flags for building library objects.
19728 pic_flag=$lt_lt_prog_compiler_pic_CXX
19729
19730 # Compiler flag to prevent dynamic linking.
19731 link_static_flag=$lt_lt_prog_compiler_static_CXX
19732
19733 # Does compiler simultaneously support -c and -o options?
19734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19735
19736 # Whether or not to add -lc for building shared libraries.
19737 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19738
19739 # Whether or not to disallow shared libs when runtime libs are static.
19740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19741
19742 # Compiler flag to allow reflexive dlopens.
19743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19744
19745 # Compiler flag to generate shared objects directly from archives.
19746 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19747
19748 # Whether the compiler copes with passing no objects directly.
19749 compiler_needs_object=$lt_compiler_needs_object_CXX
19750
19751 # Create an old-style archive from a shared archive.
19752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19753
19754 # Create a temporary old-style archive to link instead of a shared archive.
19755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19756
19757 # Commands used to build a shared archive.
19758 archive_cmds=$lt_archive_cmds_CXX
19759 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19760
19761 # Commands used to build a loadable module if different from building
19762 # a shared archive.
19763 module_cmds=$lt_module_cmds_CXX
19764 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19765
19766 # Whether we are building with GNU ld or not.
19767 with_gnu_ld=$lt_with_gnu_ld_CXX
19768
19769 # Flag that allows shared libraries with undefined symbols to be built.
19770 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19771
19772 # Flag that enforces no undefined symbols.
19773 no_undefined_flag=$lt_no_undefined_flag_CXX
19774
19775 # Flag to hardcode \$libdir into a binary during linking.
19776 # This must work even if \$libdir does not exist
19777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19778
19779 # If ld is used when linking, flag to hardcode \$libdir into a binary
19780 # during linking. This must work even if \$libdir does not exist.
19781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19782
19783 # Whether we need a single "-rpath" flag with a separated argument.
19784 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19785
19786 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19787 # DIR into the resulting binary.
19788 hardcode_direct=$hardcode_direct_CXX
19789
19790 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19791 # DIR into the resulting binary and the resulting library dependency is
19792 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19793 # library is relocated.
19794 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19795
19796 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19797 # into the resulting binary.
19798 hardcode_minus_L=$hardcode_minus_L_CXX
19799
19800 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19801 # into the resulting binary.
19802 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19803
19804 # Set to "yes" if building a shared library automatically hardcodes DIR
19805 # into the library and all subsequent libraries and executables linked
19806 # against it.
19807 hardcode_automatic=$hardcode_automatic_CXX
19808
19809 # Set to yes if linker adds runtime paths of dependent libraries
19810 # to runtime path list.
19811 inherit_rpath=$inherit_rpath_CXX
19812
19813 # Whether libtool must link a program against all its dependency libraries.
19814 link_all_deplibs=$link_all_deplibs_CXX
19815
19816 # Fix the shell variable \$srcfile for the compiler.
19817 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19818
19819 # Set to "yes" if exported symbols are required.
19820 always_export_symbols=$always_export_symbols_CXX
19821
19822 # The commands to list exported symbols.
19823 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19824
19825 # Symbols that should not be listed in the preloaded symbols.
19826 exclude_expsyms=$lt_exclude_expsyms_CXX
19827
19828 # Symbols that must always be exported.
19829 include_expsyms=$lt_include_expsyms_CXX
19830
19831 # Commands necessary for linking programs (against libraries) with templates.
19832 prelink_cmds=$lt_prelink_cmds_CXX
19833
19834 # Specify filename containing input files.
19835 file_list_spec=$lt_file_list_spec_CXX
19836
19837 # How to hardcode a shared library path into an executable.
19838 hardcode_action=$hardcode_action_CXX
19839
19840 # The directories searched by this compiler when creating a shared library.
19841 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19842
19843 # Dependencies to place before and after the objects being linked to
19844 # create a shared library.
19845 predep_objects=$lt_predep_objects_CXX
19846 postdep_objects=$lt_postdep_objects_CXX
19847 predeps=$lt_predeps_CXX
19848 postdeps=$lt_postdeps_CXX
19849
19850 # The library search path used internally by the compiler when linking
19851 # a shared library.
19852 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19853
19854 # ### END LIBTOOL TAG CONFIG: CXX
19855 _LT_EOF
19856
19857 ;;
19858 "default-1":C)
19859 for ac_file in $CONFIG_FILES; do
19860 # Support "outfile[:infile[:infile...]]"
19861 case "$ac_file" in
19862 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19863 esac
19864 # PO directories have a Makefile.in generated from Makefile.in.in.
19865 case "$ac_file" in */Makefile.in)
19866 # Adjust a relative srcdir.
19867 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19868 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19869 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19870 # In autoconf-2.13 it is called $ac_given_srcdir.
19871 # In autoconf-2.50 it is called $srcdir.
19872 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19873 case "$ac_given_srcdir" in
19874 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19875 /*) top_srcdir="$ac_given_srcdir" ;;
19876 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19877 esac
19878 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19879 rm -f "$ac_dir/POTFILES"
19880 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19881 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19882 POMAKEFILEDEPS="POTFILES.in"
19883 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19884 # on $ac_dir but don't depend on user-specified configuration
19885 # parameters.
19886 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19887 # The LINGUAS file contains the set of available languages.
19888 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19889 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
19890 fi
19891 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19892 # Hide the ALL_LINGUAS assigment from automake.
19893 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19894 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19895 else
19896 # The set of available languages was given in configure.ac.
19897 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19898 fi
19899 case "$ac_given_srcdir" in
19900 .) srcdirpre= ;;
19901 *) srcdirpre='$(srcdir)/' ;;
19902 esac
19903 POFILES=
19904 GMOFILES=
19905 UPDATEPOFILES=
19906 DUMMYPOFILES=
19907 for lang in $ALL_LINGUAS; do
19908 POFILES="$POFILES $srcdirpre$lang.po"
19909 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19910 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19911 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19912 done
19913 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19914 # environment variable.
19915 INST_LINGUAS=
19916 if test -n "$ALL_LINGUAS"; then
19917 for presentlang in $ALL_LINGUAS; do
19918 useit=no
19919 if test "%UNSET%" != "$LINGUAS"; then
19920 desiredlanguages="$LINGUAS"
19921 else
19922 desiredlanguages="$ALL_LINGUAS"
19923 fi
19924 for desiredlang in $desiredlanguages; do
19925 # Use the presentlang catalog if desiredlang is
19926 # a. equal to presentlang, or
19927 # b. a variant of presentlang (because in this case,
19928 # presentlang can be used as a fallback for messages
19929 # which are not translated in the desiredlang catalog).
19930 case "$desiredlang" in
19931 "$presentlang"*) useit=yes;;
19932 esac
19933 done
19934 if test $useit = yes; then
19935 INST_LINGUAS="$INST_LINGUAS $presentlang"
19936 fi
19937 done
19938 fi
19939 CATALOGS=
19940 if test -n "$INST_LINGUAS"; then
19941 for lang in $INST_LINGUAS; do
19942 CATALOGS="$CATALOGS $lang.gmo"
19943 done
19944 fi
19945 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19946 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"
19947 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19948 if test -f "$f"; then
19949 case "$f" in
19950 *.orig | *.bak | *~) ;;
19951 *) cat "$f" >> "$ac_dir/Makefile" ;;
19952 esac
19953 fi
19954 done
19955 fi
19956 ;;
19957 esac
19958 done ;;
19959
19960 esac
19961 done # for ac_tag
19962
19963
19964 as_fn_exit 0
19965 _ACEOF
19966 ac_clean_files=$ac_clean_files_save
19967
19968 test $ac_write_fail = 0 ||
19969 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19970
19971
19972 # configure is writing to config.log, and then calls config.status.
19973 # config.status does its own redirection, appending to config.log.
19974 # Unfortunately, on DOS this fails, as config.log is still kept open
19975 # by configure, so config.status won't be able to write to it; its
19976 # output is simply discarded. So we exec the FD to /dev/null,
19977 # effectively closing config.log, so it can be properly (re)opened and
19978 # appended to by config.status. When coming back to configure, we
19979 # need to make the FD available again.
19980 if test "$no_create" != yes; then
19981 ac_cs_success=:
19982 ac_config_status_args=
19983 test "$silent" = yes &&
19984 ac_config_status_args="$ac_config_status_args --quiet"
19985 exec 5>/dev/null
19986 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19987 exec 5>>config.log
19988 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19989 # would make configure fail if this is the last instruction.
19990 $ac_cs_success || as_fn_exit $?
19991 fi
19992 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19994 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19995 fi
19996
This page took 0.613945 seconds and 4 git commands to generate.