Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for flxmlrpc 0.1.4.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell [email protected] and
250 $0: [email protected] about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='flxmlrpc'
572 PACKAGE_TARNAME='flxmlrpc'
573 PACKAGE_VERSION='0.1.4'
574 PACKAGE_STRING='flxmlrpc 0.1.4'
575 PACKAGE_BUGREPORT='[email protected]'
576 PACKAGE_URL='http://www.w1hkj.com'
577
578 ac_unique_file="include/XmlRpc.h"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 API_VERSION
619 PACKAGE_VERSION_MICRO
620 PACKAGE_VERSION_MINOR
621 PACKAGE_VERSION_MAJOR
622 AM_CXXFLAGS
623 AM_CFLAGS
624 AM_CPPFLAGS
625 WINEXELDFLAGS
626 WINLDFLAGS
627 OSXLDFLAGS
628 AM_LDFLAGS
629 LIBOBJS
630 ALLOCA
631 MATH_LIBS
632 PKG_CONFIG_LIBDIR
633 PKG_CONFIG_PATH
634 PKG_CONFIG
635 ENABLE_CXX_FALSE
636 ENABLE_CXX_TRUE
637 cf_with_cxx
638 CXXCPP
639 OTOOL64
640 OTOOL
641 LIPO
642 NMEDIT
643 DSYMUTIL
644 MANIFEST_TOOL
645 RANLIB
646 ac_ct_AR
647 AR
648 DLLTOOL
649 OBJDUMP
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 EGREP
656 GREP
657 SED
658 host_os
659 host_vendor
660 host_cpu
661 host
662 build_os
663 build_vendor
664 build_cpu
665 build
666 LIBTOOL
667 LN_S
668 CPP
669 am__fastdepCXX_FALSE
670 am__fastdepCXX_TRUE
671 CXXDEPMODE
672 ac_ct_CXX
673 CXXFLAGS
674 CXX
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__quote
683 am__include
684 DEPDIR
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
691 CC
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 localstatedir
739 sharedstatedir
740 sysconfdir
741 datadir
742 datarootdir
743 libexecdir
744 sbindir
745 bindir
746 program_transform_name
747 prefix
748 exec_prefix
749 PACKAGE_URL
750 PACKAGE_BUGREPORT
751 PACKAGE_STRING
752 PACKAGE_VERSION
753 PACKAGE_TARNAME
754 PACKAGE_NAME
755 PATH_SEPARATOR
756 SHELL'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_silent_rules
761 enable_dependency_tracking
762 enable_shared
763 enable_static
764 with_pic
765 enable_fast_install
766 with_gnu_ld
767 with_sysroot
768 enable_libtool_lock
769 '
770 ac_precious_vars='build_alias
771 host_alias
772 target_alias
773 CC
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS
778 CXX
779 CXXFLAGS
780 CCC
781 CPP
782 CXXCPP
783 PKG_CONFIG
784 PKG_CONFIG_PATH
785 PKG_CONFIG_LIBDIR'
786
787
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 ac_unrecognized_opts=
792 ac_unrecognized_sep=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
835
836 ac_prev=
837 ac_dashdash=
838 for ac_option
839 do
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
843 ac_prev=
844 continue
845 fi
846
847 case $ac_option in
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *=) ac_optarg= ;;
850 *) ac_optarg=yes ;;
851 esac
852
853 # Accept the important Cygnus configure options, so we can diagnose typos.
854
855 case $ac_dashdash$ac_option in
856 --)
857 ac_dashdash=yes ;;
858
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 bindir=$ac_optarg ;;
863
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
868
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
875
876 --config-cache | -C)
877 cache_file=config.cache ;;
878
879 -datadir | --datadir | --datadi | --datad)
880 ac_prev=datadir ;;
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
883
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
890
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=no ;;
906
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
911
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
916
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=\$ac_optarg ;;
932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
952
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
957
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 libdir=$ac_optarg ;;
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
987
988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1044
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1061
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;;
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
1091 sharedstatedir=$ac_optarg ;;
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
1096 site=$ac_optarg ;;
1097
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1120
1121 -with-* | --with-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=\$ac_optarg ;;
1136
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=no ;;
1152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information"
1173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181 esac
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 ;;
1192
1193 esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error $? "missing argument to $ac_option"
1199 fi
1200
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1203 no) ;;
1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 esac
1207 fi
1208
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1214 do
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1217 case $ac_val in
1218 */ )
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1221 esac
1222 # Be sure to have absolute directory names.
1223 case $ac_val in
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 esac
1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used" >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1292 fi
1293 else
1294 ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 \`configure' configures flxmlrpc 0.1.4 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/flxmlrpc]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381 _ACEOF
1382
1383 cat <<\_ACEOF
1384
1385 Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of flxmlrpc 0.1.4:";;
1399 esac
1400 cat <<\_ACEOF
1401
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-silent-rules less verbose build output (undo: `make V=1')
1407 --disable-silent-rules verbose build output (undo: `make V=0')
1408 --disable-dependency-tracking speeds up one-time build
1409 --enable-dependency-tracking do not reject slow dependency extractors
1410 --enable-shared[=PKGS] build shared libraries [default=yes]
1411 --enable-static[=PKGS] build static libraries [default=yes]
1412 --enable-fast-install[=PKGS]
1413 optimize for fast installation [default=yes]
1414 --disable-libtool-lock avoid locking (might break parallel builds)
1415
1416 Optional Packages:
1417 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1419 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1420 both]
1421 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1422 --with-sysroot=DIR Search for dependent libraries within DIR
1423 (or the compiler's sysroot if not specified).
1424
1425 Some influential environment variables:
1426 CC C compiler command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1429 nonstandard directory <lib dir>
1430 LIBS libraries to pass to the linker, e.g. -l<library>
1431 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
1433 CXX C++ compiler command
1434 CXXFLAGS C++ compiler flags
1435 CPP C preprocessor
1436 CXXCPP C++ preprocessor
1437 PKG_CONFIG path to pkg-config utility
1438 PKG_CONFIG_PATH
1439 directories to add to pkg-config's search path
1440 PKG_CONFIG_LIBDIR
1441 path overriding pkg-config's built-in search path
1442
1443 Use these variables to override the choices made by `configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1445
1446 Report bugs to <[email protected]>.
1447 flxmlrpc home page: <http://www.w1hkj.com>.
1448 _ACEOF
1449 ac_status=$?
1450 fi
1451
1452 if test "$ac_init_help" = "recursive"; then
1453 # If there are subdirs, report their specific --help.
1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455 test -d "$ac_dir" ||
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457 continue
1458 ac_builddir=.
1459
1460 case "$ac_dir" in
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *)
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 esac ;;
1470 esac
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1475
1476 case $srcdir in
1477 .) # We are building in place.
1478 ac_srcdir=.
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
1482 ac_srcdir=$srcdir$ac_dir_suffix;
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1485 *) # Relative name.
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 esac
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure" --help=recursive
1500 else
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 fi || ac_status=$?
1503 cd "$ac_pwd" || { ac_status=$?; break; }
1504 done
1505 fi
1506
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1509 cat <<\_ACEOF
1510 flxmlrpc configure 0.1.4
1511 generated by GNU Autoconf 2.68
1512
1513 Copyright (C) 2010 Free Software Foundation, Inc.
1514 This configure script is free software; the Free Software Foundation
1515 gives unlimited permission to copy, distribute and modify it.
1516 _ACEOF
1517 exit
1518 fi
1519
1520 ## ------------------------ ##
1521 ## Autoconf initialization. ##
1522 ## ------------------------ ##
1523
1524 # ac_fn_c_try_compile LINENO
1525 # --------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_compile ()
1528 {
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1532 case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1544 fi
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1550 ac_retval=0
1551 else
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=1
1556 fi
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1559
1560 } # ac_fn_c_try_compile
1561
1562 # ac_fn_cxx_try_compile LINENO
1563 # ----------------------------
1564 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_cxx_try_compile ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1570 case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_cxx_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1588 ac_retval=0
1589 else
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594 fi
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1597
1598 } # ac_fn_cxx_try_compile
1599
1600 # ac_fn_c_try_cpp LINENO
1601 # ----------------------
1602 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_cpp ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_cpp conftest.$ac_ext"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1619 fi
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } > conftest.i && {
1622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 }; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630 ac_retval=1
1631 fi
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_cpp
1636
1637 # ac_fn_c_try_link LINENO
1638 # -----------------------
1639 # Try to link conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_link ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext conftest$ac_exeext
1644 if { { ac_try="$ac_link"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_link") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest$ac_exeext && {
1663 test "$cross_compiling" = yes ||
1664 $as_test_x conftest$ac_exeext
1665 }; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672 fi
1673 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675 # interfere with the next link command; also delete a directory that is
1676 # left behind by Apple's compiler. We do this before executing the actions.
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_link
1682
1683 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684 # -------------------------------------------------------
1685 # Tests whether HEADER exists and can be compiled using the include files in
1686 # INCLUDES, setting the cache variable VAR accordingly.
1687 ac_fn_c_check_header_compile ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1694 else
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h. */
1697 $4
1698 #include <$2>
1699 _ACEOF
1700 if ac_fn_c_try_compile "$LINENO"; then :
1701 eval "$3=yes"
1702 else
1703 eval "$3=no"
1704 fi
1705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706 fi
1707 eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709 $as_echo "$ac_res" >&6; }
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711
1712 } # ac_fn_c_check_header_compile
1713
1714 # ac_fn_c_try_run LINENO
1715 # ----------------------
1716 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717 # that executables *can* be run.
1718 ac_fn_c_try_run ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_link"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732 { { case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_try") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; }; }; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: program exited with status $ac_status" >&5
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=$ac_status
1749 fi
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_run
1755
1756 # ac_fn_c_check_func LINENO FUNC VAR
1757 # ----------------------------------
1758 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1759 ac_fn_c_check_func ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766 else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1771 #define $2 innocuous_$2
1772
1773 /* System header to define __stub macros and hopefully few prototypes,
1774 which can conflict with char $2 (); below.
1775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776 <limits.h> exists even on freestanding compilers. */
1777
1778 #ifdef __STDC__
1779 # include <limits.h>
1780 #else
1781 # include <assert.h>
1782 #endif
1783
1784 #undef $2
1785
1786 /* Override any GCC internal prototype to avoid an error.
1787 Use char because int might match the return type of a GCC
1788 builtin and then its argument prototype would still apply. */
1789 #ifdef __cplusplus
1790 extern "C"
1791 #endif
1792 char $2 ();
1793 /* The GNU C library defines this for functions which it implements
1794 to always fail with ENOSYS. Some functions are actually named
1795 something starting with __ and the normal name is an alias. */
1796 #if defined __stub_$2 || defined __stub___$2
1797 choke me
1798 #endif
1799
1800 int
1801 main ()
1802 {
1803 return $2 ();
1804 ;
1805 return 0;
1806 }
1807 _ACEOF
1808 if ac_fn_c_try_link "$LINENO"; then :
1809 eval "$3=yes"
1810 else
1811 eval "$3=no"
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext \
1814 conftest$ac_exeext conftest.$ac_ext
1815 fi
1816 eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821 } # ac_fn_c_check_func
1822
1823 # ac_fn_cxx_try_cpp LINENO
1824 # ------------------------
1825 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_cxx_try_cpp ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1837 ac_status=$?
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1842 fi
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } > conftest.i && {
1845 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1846 test ! -s conftest.err
1847 }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=1
1854 fi
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1857
1858 } # ac_fn_cxx_try_cpp
1859
1860 # ac_fn_cxx_try_link LINENO
1861 # -------------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_cxx_try_link ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext conftest$ac_exeext
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1875 ac_status=$?
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1880 fi
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_cxx_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 $as_test_x conftest$ac_exeext
1888 }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=1
1895 fi
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1903
1904 } # ac_fn_cxx_try_link
1905
1906 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1909 # the include files in INCLUDES and setting the cache variable VAR
1910 # accordingly.
1911 ac_fn_c_check_header_mongrel ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if eval \${$3+:} false; then :
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1919 fi
1920 eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 else
1924 # Is the header compilable?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1926 $as_echo_n "checking $2 usability... " >&6; }
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1929 $4
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 ac_header_compiler=yes
1934 else
1935 ac_header_compiler=no
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1939 $as_echo "$ac_header_compiler" >&6; }
1940
1941 # Is the header present?
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1943 $as_echo_n "checking $2 presence... " >&6; }
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 #include <$2>
1947 _ACEOF
1948 if ac_fn_c_try_cpp "$LINENO"; then :
1949 ac_header_preproc=yes
1950 else
1951 ac_header_preproc=no
1952 fi
1953 rm -f conftest.err conftest.i conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1955 $as_echo "$ac_header_preproc" >&6; }
1956
1957 # So? What about this header?
1958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1959 yes:no: )
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1961 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1964 ;;
1965 no:yes:* )
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1967 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1969 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1971 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1973 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1975 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1976 ( $as_echo "## ---------------------------------- ##
1977 ## Report this to [email protected] ##
1978 ## ---------------------------------- ##"
1979 ) | sed "s/^/$as_me: WARNING: /" >&2
1980 ;;
1981 esac
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval \${$3+:} false; then :
1985 $as_echo_n "(cached) " >&6
1986 else
1987 eval "$3=\$ac_header_compiler"
1988 fi
1989 eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 fi
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995 } # ac_fn_c_check_header_mongrel
1996
1997 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1998 # -------------------------------------------
1999 # Tests whether TYPE exists after having included INCLUDES, setting cache
2000 # variable VAR accordingly.
2001 ac_fn_c_check_type ()
2002 {
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2008 else
2009 eval "$3=no"
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $4
2013 int
2014 main ()
2015 {
2016 if (sizeof ($2))
2017 return 0;
2018 ;
2019 return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 int
2027 main ()
2028 {
2029 if (sizeof (($2)))
2030 return 0;
2031 ;
2032 return 0;
2033 }
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036
2037 else
2038 eval "$3=yes"
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 fi
2044 eval ac_res=\$$3
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049 } # ac_fn_c_check_type
2050 cat >config.log <<_ACEOF
2051 This file contains any messages produced by compilers while
2052 running configure, to aid debugging if configure makes a mistake.
2053
2054 It was created by flxmlrpc $as_me 0.1.4, which was
2055 generated by GNU Autoconf 2.68. Invocation command line was
2056
2057 $ $0 $@
2058
2059 _ACEOF
2060 exec 5>>config.log
2061 {
2062 cat <<_ASUNAME
2063 ## --------- ##
2064 ## Platform. ##
2065 ## --------- ##
2066
2067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2072
2073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2074 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2075
2076 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2077 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2079 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2080 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2081 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2082 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2083
2084 _ASUNAME
2085
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 $as_echo "PATH: $as_dir"
2092 done
2093 IFS=$as_save_IFS
2094
2095 } >&5
2096
2097 cat >&5 <<_ACEOF
2098
2099
2100 ## ----------- ##
2101 ## Core tests. ##
2102 ## ----------- ##
2103
2104 _ACEOF
2105
2106
2107 # Keep a trace of the command line.
2108 # Strip out --no-create and --no-recursion so they do not pile up.
2109 # Strip out --silent because we don't want to record it for future runs.
2110 # Also quote any args containing shell meta-characters.
2111 # Make two passes to allow for proper duplicate-argument suppression.
2112 ac_configure_args=
2113 ac_configure_args0=
2114 ac_configure_args1=
2115 ac_must_keep_next=false
2116 for ac_pass in 1 2
2117 do
2118 for ac_arg
2119 do
2120 case $ac_arg in
2121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2123 | -silent | --silent | --silen | --sile | --sil)
2124 continue ;;
2125 *\'*)
2126 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2127 esac
2128 case $ac_pass in
2129 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2130 2)
2131 as_fn_append ac_configure_args1 " '$ac_arg'"
2132 if test $ac_must_keep_next = true; then
2133 ac_must_keep_next=false # Got value, back to normal.
2134 else
2135 case $ac_arg in
2136 *=* | --config-cache | -C | -disable-* | --disable-* \
2137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2139 | -with-* | --with-* | -without-* | --without-* | --x)
2140 case "$ac_configure_args0 " in
2141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2142 esac
2143 ;;
2144 -* ) ac_must_keep_next=true ;;
2145 esac
2146 fi
2147 as_fn_append ac_configure_args " '$ac_arg'"
2148 ;;
2149 esac
2150 done
2151 done
2152 { ac_configure_args0=; unset ac_configure_args0;}
2153 { ac_configure_args1=; unset ac_configure_args1;}
2154
2155 # When interrupted or exit'd, cleanup temporary files, and complete
2156 # config.log. We remove comments because anyway the quotes in there
2157 # would cause problems or look ugly.
2158 # WARNING: Use '\'' to represent an apostrophe within the trap.
2159 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2160 trap 'exit_status=$?
2161 # Save into config.log some information that might help in debugging.
2162 {
2163 echo
2164
2165 $as_echo "## ---------------- ##
2166 ## Cache variables. ##
2167 ## ---------------- ##"
2168 echo
2169 # The following way of writing the cache mishandles newlines in values,
2170 (
2171 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2172 eval ac_val=\$$ac_var
2173 case $ac_val in #(
2174 *${as_nl}*)
2175 case $ac_var in #(
2176 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2177 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2178 esac
2179 case $ac_var in #(
2180 _ | IFS | as_nl) ;; #(
2181 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2182 *) { eval $ac_var=; unset $ac_var;} ;;
2183 esac ;;
2184 esac
2185 done
2186 (set) 2>&1 |
2187 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2188 *${as_nl}ac_space=\ *)
2189 sed -n \
2190 "s/'\''/'\''\\\\'\'''\''/g;
2191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2192 ;; #(
2193 *)
2194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2195 ;;
2196 esac |
2197 sort
2198 )
2199 echo
2200
2201 $as_echo "## ----------------- ##
2202 ## Output variables. ##
2203 ## ----------------- ##"
2204 echo
2205 for ac_var in $ac_subst_vars
2206 do
2207 eval ac_val=\$$ac_var
2208 case $ac_val in
2209 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210 esac
2211 $as_echo "$ac_var='\''$ac_val'\''"
2212 done | sort
2213 echo
2214
2215 if test -n "$ac_subst_files"; then
2216 $as_echo "## ------------------- ##
2217 ## File substitutions. ##
2218 ## ------------------- ##"
2219 echo
2220 for ac_var in $ac_subst_files
2221 do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225 esac
2226 $as_echo "$ac_var='\''$ac_val'\''"
2227 done | sort
2228 echo
2229 fi
2230
2231 if test -s confdefs.h; then
2232 $as_echo "## ----------- ##
2233 ## confdefs.h. ##
2234 ## ----------- ##"
2235 echo
2236 cat confdefs.h
2237 echo
2238 fi
2239 test "$ac_signal" != 0 &&
2240 $as_echo "$as_me: caught signal $ac_signal"
2241 $as_echo "$as_me: exit $exit_status"
2242 } >&5
2243 rm -f core *.core core.conftest.* &&
2244 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2245 exit $exit_status
2246 ' 0
2247 for ac_signal in 1 2 13 15; do
2248 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2249 done
2250 ac_signal=0
2251
2252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2253 rm -f -r conftest* confdefs.h
2254
2255 $as_echo "/* confdefs.h */" > confdefs.h
2256
2257 # Predefined preprocessor variables.
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_NAME "$PACKAGE_NAME"
2261 _ACEOF
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2265 _ACEOF
2266
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2269 _ACEOF
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_STRING "$PACKAGE_STRING"
2273 _ACEOF
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2277 _ACEOF
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_URL "$PACKAGE_URL"
2281 _ACEOF
2282
2283
2284 # Let the site file select an alternate cache file if it wants to.
2285 # Prefer an explicitly selected file to automatically selected ones.
2286 ac_site_file1=NONE
2287 ac_site_file2=NONE
2288 if test -n "$CONFIG_SITE"; then
2289 # We do not want a PATH search for config.site.
2290 case $CONFIG_SITE in #((
2291 -*) ac_site_file1=./$CONFIG_SITE;;
2292 */*) ac_site_file1=$CONFIG_SITE;;
2293 *) ac_site_file1=./$CONFIG_SITE;;
2294 esac
2295 elif test "x$prefix" != xNONE; then
2296 ac_site_file1=$prefix/share/config.site
2297 ac_site_file2=$prefix/etc/config.site
2298 else
2299 ac_site_file1=$ac_default_prefix/share/config.site
2300 ac_site_file2=$ac_default_prefix/etc/config.site
2301 fi
2302 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2303 do
2304 test "x$ac_site_file" = xNONE && continue
2305 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2307 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2308 sed 's/^/| /' "$ac_site_file" >&5
2309 . "$ac_site_file" \
2310 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 as_fn_error $? "failed to load site script $ac_site_file
2313 See \`config.log' for more details" "$LINENO" 5; }
2314 fi
2315 done
2316
2317 if test -r "$cache_file"; then
2318 # Some versions of bash will fail to source /dev/null (special files
2319 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2320 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2322 $as_echo "$as_me: loading cache $cache_file" >&6;}
2323 case $cache_file in
2324 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2325 *) . "./$cache_file";;
2326 esac
2327 fi
2328 else
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2330 $as_echo "$as_me: creating cache $cache_file" >&6;}
2331 >$cache_file
2332 fi
2333
2334 # Check that the precious variables saved in the cache have kept the same
2335 # value.
2336 ac_cache_corrupted=false
2337 for ac_var in $ac_precious_vars; do
2338 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2339 eval ac_new_set=\$ac_env_${ac_var}_set
2340 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2341 eval ac_new_val=\$ac_env_${ac_var}_value
2342 case $ac_old_set,$ac_new_set in
2343 set,)
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2345 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2346 ac_cache_corrupted=: ;;
2347 ,set)
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2349 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2350 ac_cache_corrupted=: ;;
2351 ,);;
2352 *)
2353 if test "x$ac_old_val" != "x$ac_new_val"; then
2354 # differences in whitespace do not lead to failure.
2355 ac_old_val_w=`echo x $ac_old_val`
2356 ac_new_val_w=`echo x $ac_new_val`
2357 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2359 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2360 ac_cache_corrupted=:
2361 else
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2363 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2364 eval $ac_var=\$ac_old_val
2365 fi
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2367 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2369 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2370 fi;;
2371 esac
2372 # Pass precious variables to config.status.
2373 if test "$ac_new_set" = set; then
2374 case $ac_new_val in
2375 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2376 *) ac_arg=$ac_var=$ac_new_val ;;
2377 esac
2378 case " $ac_configure_args " in
2379 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2380 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2381 esac
2382 fi
2383 done
2384 if $ac_cache_corrupted; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2388 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2389 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2390 fi
2391 ## -------------------- ##
2392 ## Main body of script. ##
2393 ## -------------------- ##
2394
2395 ac_ext=c
2396 ac_cpp='$CPP $CPPFLAGS'
2397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400
2401
2402
2403
2404 ac_config_headers="$ac_config_headers include/config.h"
2405
2406
2407
2408 ac_aux_dir=
2409 for ac_dir in build-aux "$srcdir"/build-aux; do
2410 if test -f "$ac_dir/install-sh"; then
2411 ac_aux_dir=$ac_dir
2412 ac_install_sh="$ac_aux_dir/install-sh -c"
2413 break
2414 elif test -f "$ac_dir/install.sh"; then
2415 ac_aux_dir=$ac_dir
2416 ac_install_sh="$ac_aux_dir/install.sh -c"
2417 break
2418 elif test -f "$ac_dir/shtool"; then
2419 ac_aux_dir=$ac_dir
2420 ac_install_sh="$ac_aux_dir/shtool install -c"
2421 break
2422 fi
2423 done
2424 if test -z "$ac_aux_dir"; then
2425 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2426 fi
2427
2428 # These three variables are undocumented and unsupported,
2429 # and are intended to be withdrawn in a future Autoconf release.
2430 # They can cause serious problems if a builder's source tree is in a directory
2431 # whose full name contains unusual characters.
2432 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2433 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2434 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2435
2436
2437
2438 ## ------------------------ ##
2439 ## Automake Initialisation. ##
2440 ## ------------------------ ##
2441
2442 am__api_version='1.11'
2443
2444 # Find a good install program. We prefer a C program (faster),
2445 # so one script is as good as another. But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2450 # AIX /bin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # OS/2's system install, which has a completely different semantic
2456 # ./install, which can be erroneously created by make from ./install.sh.
2457 # Reject install programs that cannot install multiple files.
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2460 if test -z "$INSTALL"; then
2461 if ${ac_cv_path_install+:} false; then :
2462 $as_echo_n "(cached) " >&6
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 # Account for people who put trailing slashes in PATH elements.
2470 case $as_dir/ in #((
2471 ./ | .// | /[cC]/* | \
2472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2473 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2474 /usr/ucb/* ) ;;
2475 *)
2476 # OSF1 and SCO ODT 3.0 have their own names for install.
2477 # Don't use installbsd from OSF since it installs stuff as root
2478 # by default.
2479 for ac_prog in ginstall scoinst install; do
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2482 if test $ac_prog = install &&
2483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484 # AIX install. It has an incompatible calling convention.
2485 :
2486 elif test $ac_prog = install &&
2487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # program-specific install script used by HP pwplus--don't use.
2489 :
2490 else
2491 rm -rf conftest.one conftest.two conftest.dir
2492 echo one > conftest.one
2493 echo two > conftest.two
2494 mkdir conftest.dir
2495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2496 test -s conftest.one && test -s conftest.two &&
2497 test -s conftest.dir/conftest.one &&
2498 test -s conftest.dir/conftest.two
2499 then
2500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501 break 3
2502 fi
2503 fi
2504 fi
2505 done
2506 done
2507 ;;
2508 esac
2509
2510 done
2511 IFS=$as_save_IFS
2512
2513 rm -rf conftest.one conftest.two conftest.dir
2514
2515 fi
2516 if test "${ac_cv_path_install+set}" = set; then
2517 INSTALL=$ac_cv_path_install
2518 else
2519 # As a last resort, use the slow shell script. Don't cache a
2520 # value for INSTALL within a source directory, because that will
2521 # break other packages using the cache if that directory is
2522 # removed, or if the value is a relative name.
2523 INSTALL=$ac_install_sh
2524 fi
2525 fi
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2527 $as_echo "$INSTALL" >&6; }
2528
2529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2530 # It thinks the first close brace ends the variable substitution.
2531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2532
2533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2534
2535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2536
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2538 $as_echo_n "checking whether build environment is sane... " >&6; }
2539 # Just in case
2540 sleep 1
2541 echo timestamp > conftest.file
2542 # Reject unsafe characters in $srcdir or the absolute working directory
2543 # name. Accept space and tab only in the latter.
2544 am_lf='
2545 '
2546 case `pwd` in
2547 *[\\\"\#\$\&\'\`$am_lf]*)
2548 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2549 esac
2550 case $srcdir in
2551 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2552 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2553 esac
2554
2555 # Do `set' in a subshell so we don't clobber the current shell's
2556 # arguments. Must try -L first in case configure is actually a
2557 # symlink; some systems play weird games with the mod time of symlinks
2558 # (eg FreeBSD returns the mod time of the symlink's containing
2559 # directory).
2560 if (
2561 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2562 if test "$*" = "X"; then
2563 # -L didn't work.
2564 set X `ls -t "$srcdir/configure" conftest.file`
2565 fi
2566 rm -f conftest.file
2567 if test "$*" != "X $srcdir/configure conftest.file" \
2568 && test "$*" != "X conftest.file $srcdir/configure"; then
2569
2570 # If neither matched, then we have a broken ls. This can happen
2571 # if, for instance, CONFIG_SHELL is bash and it inherits a
2572 # broken ls alias from the environment. This has actually
2573 # happened. Such a system could not be considered "sane".
2574 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2575 alias in your environment" "$LINENO" 5
2576 fi
2577
2578 test "$2" = conftest.file
2579 )
2580 then
2581 # Ok.
2582 :
2583 else
2584 as_fn_error $? "newly created file is older than distributed files!
2585 Check your system clock" "$LINENO" 5
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588 $as_echo "yes" >&6; }
2589 test "$program_prefix" != NONE &&
2590 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2591 # Use a double $ so make ignores it.
2592 test "$program_suffix" != NONE &&
2593 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2594 # Double any \ or $.
2595 # By default was `s,x,x', remove it if useless.
2596 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2597 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2598
2599 # expand $ac_aux_dir to an absolute path
2600 am_aux_dir=`cd $ac_aux_dir && pwd`
2601
2602 if test x"${MISSING+set}" != xset; then
2603 case $am_aux_dir in
2604 *\ * | *\ *)
2605 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2606 *)
2607 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2608 esac
2609 fi
2610 # Use eval to expand $SHELL
2611 if eval "$MISSING --run true"; then
2612 am_missing_run="$MISSING --run "
2613 else
2614 am_missing_run=
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2616 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2617 fi
2618
2619 if test x"${install_sh}" != xset; then
2620 case $am_aux_dir in
2621 *\ * | *\ *)
2622 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2623 *)
2624 install_sh="\${SHELL} $am_aux_dir/install-sh"
2625 esac
2626 fi
2627
2628 # Installed binaries are usually stripped using `strip' when the user
2629 # run `make install-strip'. However `strip' might not be the right
2630 # tool to use in cross-compilation environments, therefore Automake
2631 # will honor the `STRIP' environment variable to overrule this program.
2632 if test "$cross_compiling" != no; then
2633 if test -n "$ac_tool_prefix"; then
2634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2635 set dummy ${ac_tool_prefix}strip; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_STRIP+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 if test -n "$STRIP"; then
2642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2654 fi
2655 done
2656 done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 STRIP=$ac_cv_prog_STRIP
2662 if test -n "$STRIP"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2664 $as_echo "$STRIP" >&6; }
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 fi
2669
2670
2671 fi
2672 if test -z "$ac_cv_prog_STRIP"; then
2673 ac_ct_STRIP=$STRIP
2674 # Extract the first word of "strip", so it can be a program name with args.
2675 set dummy strip; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$ac_ct_STRIP"; then
2682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_ac_ct_STRIP="strip"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2702 if test -n "$ac_ct_STRIP"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2704 $as_echo "$ac_ct_STRIP" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710 if test "x$ac_ct_STRIP" = x; then
2711 STRIP=":"
2712 else
2713 case $cross_compiling:$ac_tool_warned in
2714 yes:)
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2717 ac_tool_warned=yes ;;
2718 esac
2719 STRIP=$ac_ct_STRIP
2720 fi
2721 else
2722 STRIP="$ac_cv_prog_STRIP"
2723 fi
2724
2725 fi
2726 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2727
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2729 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2730 if test -z "$MKDIR_P"; then
2731 if ${ac_cv_path_mkdir+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2736 do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_prog in mkdir gmkdir; do
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2742 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2743 'mkdir (GNU coreutils) '* | \
2744 'mkdir (coreutils) '* | \
2745 'mkdir (fileutils) '4.1*)
2746 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2747 break 3;;
2748 esac
2749 done
2750 done
2751 done
2752 IFS=$as_save_IFS
2753
2754 fi
2755
2756 test -d ./--version && rmdir ./--version
2757 if test "${ac_cv_path_mkdir+set}" = set; then
2758 MKDIR_P="$ac_cv_path_mkdir -p"
2759 else
2760 # As a last resort, use the slow shell script. Don't cache a
2761 # value for MKDIR_P within a source directory, because that will
2762 # break other packages using the cache if that directory is
2763 # removed, or if the value is a relative name.
2764 MKDIR_P="$ac_install_sh -d"
2765 fi
2766 fi
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2768 $as_echo "$MKDIR_P" >&6; }
2769
2770 mkdir_p="$MKDIR_P"
2771 case $mkdir_p in
2772 [\\/$]* | ?:[\\/]*) ;;
2773 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2774 esac
2775
2776 for ac_prog in gawk mawk nawk awk
2777 do
2778 # Extract the first word of "$ac_prog", so it can be a program name with args.
2779 set dummy $ac_prog; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_AWK+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$AWK"; then
2786 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_AWK="$ac_prog"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 AWK=$ac_cv_prog_AWK
2806 if test -n "$AWK"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2808 $as_echo "$AWK" >&6; }
2809 else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814
2815 test -n "$AWK" && break
2816 done
2817
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2819 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2820 set x ${MAKE-make}
2821 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2822 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 cat >conftest.make <<\_ACEOF
2826 SHELL = /bin/sh
2827 all:
2828 @echo '@@@%%%=$(MAKE)=@@@%%%'
2829 _ACEOF
2830 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2831 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2832 *@@@%%%=?*=@@@%%%*)
2833 eval ac_cv_prog_make_${ac_make}_set=yes;;
2834 *)
2835 eval ac_cv_prog_make_${ac_make}_set=no;;
2836 esac
2837 rm -f conftest.make
2838 fi
2839 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2841 $as_echo "yes" >&6; }
2842 SET_MAKE=
2843 else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2846 SET_MAKE="MAKE=${MAKE-make}"
2847 fi
2848
2849 rm -rf .tst 2>/dev/null
2850 mkdir .tst 2>/dev/null
2851 if test -d .tst; then
2852 am__leading_dot=.
2853 else
2854 am__leading_dot=_
2855 fi
2856 rmdir .tst 2>/dev/null
2857
2858 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2859 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2860 # is not polluted with repeated "-I."
2861 am__isrc=' -I$(srcdir)'
2862 # test to see if srcdir already configured
2863 if test -f $srcdir/config.status; then
2864 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2865 fi
2866 fi
2867
2868 # test whether we have cygpath
2869 if test -z "$CYGPATH_W"; then
2870 if (cygpath --version) >/dev/null 2>/dev/null; then
2871 CYGPATH_W='cygpath -w'
2872 else
2873 CYGPATH_W=echo
2874 fi
2875 fi
2876
2877
2878 # Define the identity of the package.
2879 PACKAGE='flxmlrpc'
2880 VERSION='0.1.4'
2881
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE "$PACKAGE"
2885 _ACEOF
2886
2887
2888 cat >>confdefs.h <<_ACEOF
2889 #define VERSION "$VERSION"
2890 _ACEOF
2891
2892 # Some tools Automake needs.
2893
2894 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2895
2896
2897 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2898
2899
2900 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2901
2902
2903 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2904
2905
2906 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2907
2908 # We need awk for the "check" target. The system "awk" is bad on
2909 # some platforms.
2910 # Always define AMTAR for backward compatibility. Yes, it's still used
2911 # in the wild :-( We should find a proper way to deprecate it ...
2912 AMTAR='$${TAR-tar}'
2913
2914 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2915
2916
2917
2918
2919
2920
2921 # Check whether --enable-silent-rules was given.
2922 if test "${enable_silent_rules+set}" = set; then :
2923 enableval=$enable_silent_rules;
2924 fi
2925
2926 case $enable_silent_rules in
2927 yes) AM_DEFAULT_VERBOSITY=0;;
2928 no) AM_DEFAULT_VERBOSITY=1;;
2929 *) AM_DEFAULT_VERBOSITY=0;;
2930 esac
2931 am_make=${MAKE-make}
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2933 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2934 if ${am_cv_make_support_nested_variables+:} false; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if $as_echo 'TRUE=$(BAR$(V))
2938 BAR0=false
2939 BAR1=true
2940 V=1
2941 am__doit:
2942 @$(TRUE)
2943 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2944 am_cv_make_support_nested_variables=yes
2945 else
2946 am_cv_make_support_nested_variables=no
2947 fi
2948 fi
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2950 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2951 if test $am_cv_make_support_nested_variables = yes; then
2952 AM_V='$(V)'
2953 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2954 else
2955 AM_V=$AM_DEFAULT_VERBOSITY
2956 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2957 fi
2958 AM_BACKSLASH='\'
2959
2960
2961 ## -------------------------------- ##
2962 ## flxmlrpc specific configuration. ##
2963 ## -------------------------------- ##
2964
2965 # Add flxmlrpc header include paths
2966 AM_CPPFLAGS="${AM_CPPFLAGS} -I\$(top_srcdir)/include -I\$(top_srcdir)/src"
2967
2968 ## --------------- ##
2969 ## Program checks ##
2970 ## --------------- ##
2971
2972 ac_ext=c
2973 ac_cpp='$CPP $CPPFLAGS'
2974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2977 if test -n "$ac_tool_prefix"; then
2978 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2979 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_CC+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999 done
3000 done
3001 IFS=$as_save_IFS
3002
3003 fi
3004 fi
3005 CC=$ac_cv_prog_CC
3006 if test -n "$CC"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3008 $as_echo "$CC" >&6; }
3009 else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3012 fi
3013
3014
3015 fi
3016 if test -z "$ac_cv_prog_CC"; then
3017 ac_ct_CC=$CC
3018 # Extract the first word of "gcc", so it can be a program name with args.
3019 set dummy gcc; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$ac_ct_CC"; then
3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_ac_ct_CC="gcc"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039 done
3040 done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046 if test -n "$ac_ct_CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3048 $as_echo "$ac_ct_CC" >&6; }
3049 else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054 if test "x$ac_ct_CC" = x; then
3055 CC=""
3056 else
3057 case $cross_compiling:$ac_tool_warned in
3058 yes:)
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3061 ac_tool_warned=yes ;;
3062 esac
3063 CC=$ac_ct_CC
3064 fi
3065 else
3066 CC="$ac_cv_prog_CC"
3067 fi
3068
3069 if test -z "$CC"; then
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}cc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_CC+:} false; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088 ac_cv_prog_CC="${ac_tool_prefix}cc"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 CC=$ac_cv_prog_CC
3099 if test -n "$CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 fi
3109 fi
3110 if test -z "$CC"; then
3111 # Extract the first word of "cc", so it can be a program name with args.
3112 set dummy cc; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_CC+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test -n "$CC"; then
3119 ac_cv_prog_CC="$CC" # Let the user override the test.
3120 else
3121 ac_prog_rejected=no
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3130 ac_prog_rejected=yes
3131 continue
3132 fi
3133 ac_cv_prog_CC="cc"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137 done
3138 done
3139 IFS=$as_save_IFS
3140
3141 if test $ac_prog_rejected = yes; then
3142 # We found a bogon in the path, so make sure we never use it.
3143 set dummy $ac_cv_prog_CC
3144 shift
3145 if test $# != 0; then
3146 # We chose a different compiler from the bogus one.
3147 # However, it has the same basename, so the bogon will be chosen
3148 # first if we set CC to just the basename; use the full file name.
3149 shift
3150 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3151 fi
3152 fi
3153 fi
3154 fi
3155 CC=$ac_cv_prog_CC
3156 if test -n "$CC"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158 $as_echo "$CC" >&6; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163
3164
3165 fi
3166 if test -z "$CC"; then
3167 if test -n "$ac_tool_prefix"; then
3168 for ac_prog in cl.exe
3169 do
3170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_CC+:} false; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191 done
3192 done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 CC=$ac_cv_prog_CC
3198 if test -n "$CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 $as_echo "$CC" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 fi
3205
3206
3207 test -n "$CC" && break
3208 done
3209 fi
3210 if test -z "$CC"; then
3211 ac_ct_CC=$CC
3212 for ac_prog in cl.exe
3213 do
3214 # Extract the first word of "$ac_prog", so it can be a program name with args.
3215 set dummy $ac_prog; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$ac_ct_CC"; then
3222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_prog_ac_ct_CC="$ac_prog"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3234 fi
3235 done
3236 done
3237 IFS=$as_save_IFS
3238
3239 fi
3240 fi
3241 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3242 if test -n "$ac_ct_CC"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3244 $as_echo "$ac_ct_CC" >&6; }
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3248 fi
3249
3250
3251 test -n "$ac_ct_CC" && break
3252 done
3253
3254 if test "x$ac_ct_CC" = x; then
3255 CC=""
3256 else
3257 case $cross_compiling:$ac_tool_warned in
3258 yes:)
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3261 ac_tool_warned=yes ;;
3262 esac
3263 CC=$ac_ct_CC
3264 fi
3265 fi
3266
3267 fi
3268
3269
3270 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error $? "no acceptable C compiler found in \$PATH
3273 See \`config.log' for more details" "$LINENO" 5; }
3274
3275 # Provide some information about the compiler.
3276 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3277 set X $ac_compile
3278 ac_compiler=$2
3279 for ac_option in --version -v -V -qversion; do
3280 { { ac_try="$ac_compiler $ac_option >&5"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3288 ac_status=$?
3289 if test -s conftest.err; then
3290 sed '10a\
3291 ... rest of stderr output deleted ...
3292 10q' conftest.err >conftest.er1
3293 cat conftest.er1 >&5
3294 fi
3295 rm -f conftest.er1 conftest.err
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297 test $ac_status = 0; }
3298 done
3299
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3302
3303 int
3304 main ()
3305 {
3306
3307 ;
3308 return 0;
3309 }
3310 _ACEOF
3311 ac_clean_files_save=$ac_clean_files
3312 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3313 # Try to create an executable without -o first, disregard a.out.
3314 # It will help us diagnose broken compilers, and finding out an intuition
3315 # of exeext.
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3317 $as_echo_n "checking whether the C compiler works... " >&6; }
3318 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3319
3320 # The possible output files:
3321 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3322
3323 ac_rmfiles=
3324 for ac_file in $ac_files
3325 do
3326 case $ac_file in
3327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3328 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3329 esac
3330 done
3331 rm -f $ac_rmfiles
3332
3333 if { { ac_try="$ac_link_default"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_link_default") 2>&5
3341 ac_status=$?
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }; then :
3344 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3345 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3346 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3347 # so that the user can short-circuit this test for compilers unknown to
3348 # Autoconf.
3349 for ac_file in $ac_files ''
3350 do
3351 test -f "$ac_file" || continue
3352 case $ac_file in
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3354 ;;
3355 [ab].out )
3356 # We found the default executable, but exeext='' is most
3357 # certainly right.
3358 break;;
3359 *.* )
3360 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3361 then :; else
3362 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3363 fi
3364 # We set ac_cv_exeext here because the later test for it is not
3365 # safe: cross compilers may not add the suffix if given an `-o'
3366 # argument, so we may need to know it at that point already.
3367 # Even if this section looks crufty: it has the advantage of
3368 # actually working.
3369 break;;
3370 * )
3371 break;;
3372 esac
3373 done
3374 test "$ac_cv_exeext" = no && ac_cv_exeext=
3375
3376 else
3377 ac_file=''
3378 fi
3379 if test -z "$ac_file"; then :
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 $as_echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error 77 "C compiler cannot create executables
3388 See \`config.log' for more details" "$LINENO" 5; }
3389 else
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3391 $as_echo "yes" >&6; }
3392 fi
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3394 $as_echo_n "checking for C compiler default output file name... " >&6; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3396 $as_echo "$ac_file" >&6; }
3397 ac_exeext=$ac_cv_exeext
3398
3399 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3400 ac_clean_files=$ac_clean_files_save
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3402 $as_echo_n "checking for suffix of executables... " >&6; }
3403 if { { ac_try="$ac_link"
3404 case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_link") 2>&5
3411 ac_status=$?
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }; then :
3414 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3415 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3416 # work properly (i.e., refer to `conftest.exe'), while it won't with
3417 # `rm'.
3418 for ac_file in conftest.exe conftest conftest.*; do
3419 test -f "$ac_file" || continue
3420 case $ac_file in
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3422 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3423 break;;
3424 * ) break;;
3425 esac
3426 done
3427 else
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3431 See \`config.log' for more details" "$LINENO" 5; }
3432 fi
3433 rm -f conftest conftest$ac_cv_exeext
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3435 $as_echo "$ac_cv_exeext" >&6; }
3436
3437 rm -f conftest.$ac_ext
3438 EXEEXT=$ac_cv_exeext
3439 ac_exeext=$EXEEXT
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3442 #include <stdio.h>
3443 int
3444 main ()
3445 {
3446 FILE *f = fopen ("conftest.out", "w");
3447 return ferror (f) || fclose (f) != 0;
3448
3449 ;
3450 return 0;
3451 }
3452 _ACEOF
3453 ac_clean_files="$ac_clean_files conftest.out"
3454 # Check that the compiler produces executables we can run. If not, either
3455 # the compiler is broken, or we cross compile.
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3457 $as_echo_n "checking whether we are cross compiling... " >&6; }
3458 if test "$cross_compiling" != yes; then
3459 { { ac_try="$ac_link"
3460 case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466 (eval "$ac_link") 2>&5
3467 ac_status=$?
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }
3470 if { ac_try='./conftest$ac_cv_exeext'
3471 { { case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_try") 2>&5
3478 ac_status=$?
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }; }; then
3481 cross_compiling=no
3482 else
3483 if test "$cross_compiling" = maybe; then
3484 cross_compiling=yes
3485 else
3486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error $? "cannot run C compiled programs.
3489 If you meant to cross compile, use \`--host'.
3490 See \`config.log' for more details" "$LINENO" 5; }
3491 fi
3492 fi
3493 fi
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3495 $as_echo "$cross_compiling" >&6; }
3496
3497 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3498 ac_clean_files=$ac_clean_files_save
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3500 $as_echo_n "checking for suffix of object files... " >&6; }
3501 if ${ac_cv_objext+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.o conftest.obj
3516 if { { ac_try="$ac_compile"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_compile") 2>&5
3524 ac_status=$?
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }; then :
3527 for ac_file in conftest.o conftest.obj conftest.*; do
3528 test -f "$ac_file" || continue;
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3532 break;;
3533 esac
3534 done
3535 else
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3538
3539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541 as_fn_error $? "cannot compute suffix of object files: cannot compile
3542 See \`config.log' for more details" "$LINENO" 5; }
3543 fi
3544 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3545 fi
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3547 $as_echo "$ac_cv_objext" >&6; }
3548 OBJEXT=$ac_cv_objext
3549 ac_objext=$OBJEXT
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3551 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3552 if ${ac_cv_c_compiler_gnu+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557
3558 int
3559 main ()
3560 {
3561 #ifndef __GNUC__
3562 choke me
3563 #endif
3564
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570 ac_compiler_gnu=yes
3571 else
3572 ac_compiler_gnu=no
3573 fi
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3576
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3579 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3580 if test $ac_compiler_gnu = yes; then
3581 GCC=yes
3582 else
3583 GCC=
3584 fi
3585 ac_test_CFLAGS=${CFLAGS+set}
3586 ac_save_CFLAGS=$CFLAGS
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3588 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3589 if ${ac_cv_prog_cc_g+:} false; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 ac_save_c_werror_flag=$ac_c_werror_flag
3593 ac_c_werror_flag=yes
3594 ac_cv_prog_cc_g=no
3595 CFLAGS="-g"
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598
3599 int
3600 main ()
3601 {
3602
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 if ac_fn_c_try_compile "$LINENO"; then :
3608 ac_cv_prog_cc_g=yes
3609 else
3610 CFLAGS=""
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613
3614 int
3615 main ()
3616 {
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623
3624 else
3625 ac_c_werror_flag=$ac_save_c_werror_flag
3626 CFLAGS="-g"
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629
3630 int
3631 main ()
3632 {
3633
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 if ac_fn_c_try_compile "$LINENO"; then :
3639 ac_cv_prog_cc_g=yes
3640 fi
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 fi
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 fi
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 ac_c_werror_flag=$ac_save_c_werror_flag
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3649 $as_echo "$ac_cv_prog_cc_g" >&6; }
3650 if test "$ac_test_CFLAGS" = set; then
3651 CFLAGS=$ac_save_CFLAGS
3652 elif test $ac_cv_prog_cc_g = yes; then
3653 if test "$GCC" = yes; then
3654 CFLAGS="-g -O2"
3655 else
3656 CFLAGS="-g"
3657 fi
3658 else
3659 if test "$GCC" = yes; then
3660 CFLAGS="-O2"
3661 else
3662 CFLAGS=
3663 fi
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3666 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3667 if ${ac_cv_prog_cc_c89+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 ac_cv_prog_cc_c89=no
3671 ac_save_CC=$CC
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674 #include <stdarg.h>
3675 #include <stdio.h>
3676 #include <sys/types.h>
3677 #include <sys/stat.h>
3678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3679 struct buf { int x; };
3680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3681 static char *e (p, i)
3682 char **p;
3683 int i;
3684 {
3685 return p[i];
3686 }
3687 static char *f (char * (*g) (char **, int), char **p, ...)
3688 {
3689 char *s;
3690 va_list v;
3691 va_start (v,p);
3692 s = g (p, va_arg (v,int));
3693 va_end (v);
3694 return s;
3695 }
3696
3697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3698 function prototypes and stuff, but not '\xHH' hex character constants.
3699 These don't provoke an error unfortunately, instead are silently treated
3700 as 'x'. The following induces an error, until -std is added to get
3701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3702 array size at least. It's necessary to write '\x00'==0 to get something
3703 that's true only with -std. */
3704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3705
3706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3707 inside strings and character constants. */
3708 #define FOO(x) 'x'
3709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3710
3711 int test (int i, double x);
3712 struct s1 {int (*f) (int a);};
3713 struct s2 {int (*f) (double a);};
3714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3715 int argc;
3716 char **argv;
3717 int
3718 main ()
3719 {
3720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3721 ;
3722 return 0;
3723 }
3724 _ACEOF
3725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3727 do
3728 CC="$ac_save_CC $ac_arg"
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730 ac_cv_prog_cc_c89=$ac_arg
3731 fi
3732 rm -f core conftest.err conftest.$ac_objext
3733 test "x$ac_cv_prog_cc_c89" != "xno" && break
3734 done
3735 rm -f conftest.$ac_ext
3736 CC=$ac_save_CC
3737
3738 fi
3739 # AC_CACHE_VAL
3740 case "x$ac_cv_prog_cc_c89" in
3741 x)
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3743 $as_echo "none needed" >&6; } ;;
3744 xno)
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3746 $as_echo "unsupported" >&6; } ;;
3747 *)
3748 CC="$CC $ac_cv_prog_cc_c89"
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3750 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3751 esac
3752 if test "x$ac_cv_prog_cc_c89" != xno; then :
3753
3754 fi
3755
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761 DEPDIR="${am__leading_dot}deps"
3762
3763 ac_config_commands="$ac_config_commands depfiles"
3764
3765
3766 am_make=${MAKE-make}
3767 cat > confinc << 'END'
3768 am__doit:
3769 @echo this is the am__doit target
3770 .PHONY: am__doit
3771 END
3772 # If we don't find an include directive, just comment out the code.
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3774 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3775 am__include="#"
3776 am__quote=
3777 _am_result=none
3778 # First try GNU make style include.
3779 echo "include confinc" > confmf
3780 # Ignore all kinds of additional output from `make'.
3781 case `$am_make -s -f confmf 2> /dev/null` in #(
3782 *the\ am__doit\ target*)
3783 am__include=include
3784 am__quote=
3785 _am_result=GNU
3786 ;;
3787 esac
3788 # Now try BSD make style include.
3789 if test "$am__include" = "#"; then
3790 echo '.include "confinc"' > confmf
3791 case `$am_make -s -f confmf 2> /dev/null` in #(
3792 *the\ am__doit\ target*)
3793 am__include=.include
3794 am__quote="\""
3795 _am_result=BSD
3796 ;;
3797 esac
3798 fi
3799
3800
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3802 $as_echo "$_am_result" >&6; }
3803 rm -f confinc confmf
3804
3805 # Check whether --enable-dependency-tracking was given.
3806 if test "${enable_dependency_tracking+set}" = set; then :
3807 enableval=$enable_dependency_tracking;
3808 fi
3809
3810 if test "x$enable_dependency_tracking" != xno; then
3811 am_depcomp="$ac_aux_dir/depcomp"
3812 AMDEPBACKSLASH='\'
3813 am__nodep='_no'
3814 fi
3815 if test "x$enable_dependency_tracking" != xno; then
3816 AMDEP_TRUE=
3817 AMDEP_FALSE='#'
3818 else
3819 AMDEP_TRUE='#'
3820 AMDEP_FALSE=
3821 fi
3822
3823
3824
3825 depcc="$CC" am_compiler_list=
3826
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3828 $as_echo_n "checking dependency style of $depcc... " >&6; }
3829 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3830 $as_echo_n "(cached) " >&6
3831 else
3832 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3833 # We make a subdir and do the tests there. Otherwise we can end up
3834 # making bogus files that we don't know about and never remove. For
3835 # instance it was reported that on HP-UX the gcc test will end up
3836 # making a dummy file named `D' -- because `-MD' means `put the output
3837 # in D'.
3838 rm -rf conftest.dir
3839 mkdir conftest.dir
3840 # Copy depcomp to subdir because otherwise we won't find it if we're
3841 # using a relative directory.
3842 cp "$am_depcomp" conftest.dir
3843 cd conftest.dir
3844 # We will build objects and dependencies in a subdirectory because
3845 # it helps to detect inapplicable dependency modes. For instance
3846 # both Tru64's cc and ICC support -MD to output dependencies as a
3847 # side effect of compilation, but ICC will put the dependencies in
3848 # the current directory while Tru64 will put them in the object
3849 # directory.
3850 mkdir sub
3851
3852 am_cv_CC_dependencies_compiler_type=none
3853 if test "$am_compiler_list" = ""; then
3854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3855 fi
3856 am__universal=false
3857 case " $depcc " in #(
3858 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3859 esac
3860
3861 for depmode in $am_compiler_list; do
3862 # Setup a source with many dependencies, because some compilers
3863 # like to wrap large dependency lists on column 80 (with \), and
3864 # we should not choose a depcomp mode which is confused by this.
3865 #
3866 # We need to recreate these files for each test, as the compiler may
3867 # overwrite some of them when testing with obscure command lines.
3868 # This happens at least with the AIX C compiler.
3869 : > sub/conftest.c
3870 for i in 1 2 3 4 5 6; do
3871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3872 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3873 # Solaris 8's {/usr,}/bin/sh.
3874 touch sub/conftst$i.h
3875 done
3876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3877
3878 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3879 # mode. It turns out that the SunPro C++ compiler does not properly
3880 # handle `-M -o', and we need to detect this. Also, some Intel
3881 # versions had trouble with output in subdirs
3882 am__obj=sub/conftest.${OBJEXT-o}
3883 am__minus_obj="-o $am__obj"
3884 case $depmode in
3885 gcc)
3886 # This depmode causes a compiler race in universal mode.
3887 test "$am__universal" = false || continue
3888 ;;
3889 nosideeffect)
3890 # after this tag, mechanisms are not by side-effect, so they'll
3891 # only be used when explicitly requested
3892 if test "x$enable_dependency_tracking" = xyes; then
3893 continue
3894 else
3895 break
3896 fi
3897 ;;
3898 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3899 # This compiler won't grok `-c -o', but also, the minuso test has
3900 # not run yet. These depmodes are late enough in the game, and
3901 # so weak that their functioning should not be impacted.
3902 am__obj=conftest.${OBJEXT-o}
3903 am__minus_obj=
3904 ;;
3905 none) break ;;
3906 esac
3907 if depmode=$depmode \
3908 source=sub/conftest.c object=$am__obj \
3909 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3910 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3911 >/dev/null 2>conftest.err &&
3912 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3913 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3914 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3915 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3916 # icc doesn't choke on unknown options, it will just issue warnings
3917 # or remarks (even with -Werror). So we grep stderr for any message
3918 # that says an option was ignored or not supported.
3919 # When given -MP, icc 7.0 and 7.1 complain thusly:
3920 # icc: Command line warning: ignoring option '-M'; no argument required
3921 # The diagnosis changed in icc 8.0:
3922 # icc: Command line remark: option '-MP' not supported
3923 if (grep 'ignoring option' conftest.err ||
3924 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3925 am_cv_CC_dependencies_compiler_type=$depmode
3926 break
3927 fi
3928 fi
3929 done
3930
3931 cd ..
3932 rm -rf conftest.dir
3933 else
3934 am_cv_CC_dependencies_compiler_type=none
3935 fi
3936
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3939 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3940 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3941
3942 if
3943 test "x$enable_dependency_tracking" != xno \
3944 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3945 am__fastdepCC_TRUE=
3946 am__fastdepCC_FALSE='#'
3947 else
3948 am__fastdepCC_TRUE='#'
3949 am__fastdepCC_FALSE=
3950 fi
3951
3952
3953 ac_ext=cpp
3954 ac_cpp='$CXXCPP $CPPFLAGS'
3955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3958 if test -z "$CXX"; then
3959 if test -n "$CCC"; then
3960 CXX=$CCC
3961 else
3962 if test -n "$ac_tool_prefix"; then
3963 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3964 do
3965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968 $as_echo_n "checking for $ac_word... " >&6; }
3969 if ${ac_cv_prog_CXX+:} false; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 if test -n "$CXX"; then
3973 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3974 else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3977 do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 break 2
3985 fi
3986 done
3987 done
3988 IFS=$as_save_IFS
3989
3990 fi
3991 fi
3992 CXX=$ac_cv_prog_CXX
3993 if test -n "$CXX"; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3995 $as_echo "$CXX" >&6; }
3996 else
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
3999 fi
4000
4001
4002 test -n "$CXX" && break
4003 done
4004 fi
4005 if test -z "$CXX"; then
4006 ac_ct_CXX=$CXX
4007 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4008 do
4009 # Extract the first word of "$ac_prog", so it can be a program name with args.
4010 set dummy $ac_prog; ac_word=$2
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4012 $as_echo_n "checking for $ac_word... " >&6; }
4013 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 if test -n "$ac_ct_CXX"; then
4017 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4018 else
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 for as_dir in $PATH
4021 do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4026 ac_cv_prog_ac_ct_CXX="$ac_prog"
4027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 break 2
4029 fi
4030 done
4031 done
4032 IFS=$as_save_IFS
4033
4034 fi
4035 fi
4036 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4037 if test -n "$ac_ct_CXX"; then
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4039 $as_echo "$ac_ct_CXX" >&6; }
4040 else
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4042 $as_echo "no" >&6; }
4043 fi
4044
4045
4046 test -n "$ac_ct_CXX" && break
4047 done
4048
4049 if test "x$ac_ct_CXX" = x; then
4050 CXX="g++"
4051 else
4052 case $cross_compiling:$ac_tool_warned in
4053 yes:)
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4056 ac_tool_warned=yes ;;
4057 esac
4058 CXX=$ac_ct_CXX
4059 fi
4060 fi
4061
4062 fi
4063 fi
4064 # Provide some information about the compiler.
4065 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4066 set X $ac_compile
4067 ac_compiler=$2
4068 for ac_option in --version -v -V -qversion; do
4069 { { ac_try="$ac_compiler $ac_option >&5"
4070 case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073 esac
4074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4075 $as_echo "$ac_try_echo"; } >&5
4076 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4077 ac_status=$?
4078 if test -s conftest.err; then
4079 sed '10a\
4080 ... rest of stderr output deleted ...
4081 10q' conftest.err >conftest.er1
4082 cat conftest.er1 >&5
4083 fi
4084 rm -f conftest.er1 conftest.err
4085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086 test $ac_status = 0; }
4087 done
4088
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4090 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4091 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4092 $as_echo_n "(cached) " >&6
4093 else
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096
4097 int
4098 main ()
4099 {
4100 #ifndef __GNUC__
4101 choke me
4102 #endif
4103
4104 ;
4105 return 0;
4106 }
4107 _ACEOF
4108 if ac_fn_cxx_try_compile "$LINENO"; then :
4109 ac_compiler_gnu=yes
4110 else
4111 ac_compiler_gnu=no
4112 fi
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4115
4116 fi
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4118 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4119 if test $ac_compiler_gnu = yes; then
4120 GXX=yes
4121 else
4122 GXX=
4123 fi
4124 ac_test_CXXFLAGS=${CXXFLAGS+set}
4125 ac_save_CXXFLAGS=$CXXFLAGS
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4127 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4128 if ${ac_cv_prog_cxx_g+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4132 ac_cxx_werror_flag=yes
4133 ac_cv_prog_cxx_g=no
4134 CXXFLAGS="-g"
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137
4138 int
4139 main ()
4140 {
4141
4142 ;
4143 return 0;
4144 }
4145 _ACEOF
4146 if ac_fn_cxx_try_compile "$LINENO"; then :
4147 ac_cv_prog_cxx_g=yes
4148 else
4149 CXXFLAGS=""
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152
4153 int
4154 main ()
4155 {
4156
4157 ;
4158 return 0;
4159 }
4160 _ACEOF
4161 if ac_fn_cxx_try_compile "$LINENO"; then :
4162
4163 else
4164 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4165 CXXFLAGS="-g"
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168
4169 int
4170 main ()
4171 {
4172
4173 ;
4174 return 0;
4175 }
4176 _ACEOF
4177 if ac_fn_cxx_try_compile "$LINENO"; then :
4178 ac_cv_prog_cxx_g=yes
4179 fi
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 fi
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 fi
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4188 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4189 if test "$ac_test_CXXFLAGS" = set; then
4190 CXXFLAGS=$ac_save_CXXFLAGS
4191 elif test $ac_cv_prog_cxx_g = yes; then
4192 if test "$GXX" = yes; then
4193 CXXFLAGS="-g -O2"
4194 else
4195 CXXFLAGS="-g"
4196 fi
4197 else
4198 if test "$GXX" = yes; then
4199 CXXFLAGS="-O2"
4200 else
4201 CXXFLAGS=
4202 fi
4203 fi
4204 ac_ext=c
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209
4210 depcc="$CXX" am_compiler_list=
4211
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4213 $as_echo_n "checking dependency style of $depcc... " >&6; }
4214 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4218 # We make a subdir and do the tests there. Otherwise we can end up
4219 # making bogus files that we don't know about and never remove. For
4220 # instance it was reported that on HP-UX the gcc test will end up
4221 # making a dummy file named `D' -- because `-MD' means `put the output
4222 # in D'.
4223 rm -rf conftest.dir
4224 mkdir conftest.dir
4225 # Copy depcomp to subdir because otherwise we won't find it if we're
4226 # using a relative directory.
4227 cp "$am_depcomp" conftest.dir
4228 cd conftest.dir
4229 # We will build objects and dependencies in a subdirectory because
4230 # it helps to detect inapplicable dependency modes. For instance
4231 # both Tru64's cc and ICC support -MD to output dependencies as a
4232 # side effect of compilation, but ICC will put the dependencies in
4233 # the current directory while Tru64 will put them in the object
4234 # directory.
4235 mkdir sub
4236
4237 am_cv_CXX_dependencies_compiler_type=none
4238 if test "$am_compiler_list" = ""; then
4239 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4240 fi
4241 am__universal=false
4242 case " $depcc " in #(
4243 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4244 esac
4245
4246 for depmode in $am_compiler_list; do
4247 # Setup a source with many dependencies, because some compilers
4248 # like to wrap large dependency lists on column 80 (with \), and
4249 # we should not choose a depcomp mode which is confused by this.
4250 #
4251 # We need to recreate these files for each test, as the compiler may
4252 # overwrite some of them when testing with obscure command lines.
4253 # This happens at least with the AIX C compiler.
4254 : > sub/conftest.c
4255 for i in 1 2 3 4 5 6; do
4256 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4257 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4258 # Solaris 8's {/usr,}/bin/sh.
4259 touch sub/conftst$i.h
4260 done
4261 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4262
4263 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4264 # mode. It turns out that the SunPro C++ compiler does not properly
4265 # handle `-M -o', and we need to detect this. Also, some Intel
4266 # versions had trouble with output in subdirs
4267 am__obj=sub/conftest.${OBJEXT-o}
4268 am__minus_obj="-o $am__obj"
4269 case $depmode in
4270 gcc)
4271 # This depmode causes a compiler race in universal mode.
4272 test "$am__universal" = false || continue
4273 ;;
4274 nosideeffect)
4275 # after this tag, mechanisms are not by side-effect, so they'll
4276 # only be used when explicitly requested
4277 if test "x$enable_dependency_tracking" = xyes; then
4278 continue
4279 else
4280 break
4281 fi
4282 ;;
4283 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4284 # This compiler won't grok `-c -o', but also, the minuso test has
4285 # not run yet. These depmodes are late enough in the game, and
4286 # so weak that their functioning should not be impacted.
4287 am__obj=conftest.${OBJEXT-o}
4288 am__minus_obj=
4289 ;;
4290 none) break ;;
4291 esac
4292 if depmode=$depmode \
4293 source=sub/conftest.c object=$am__obj \
4294 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4295 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4296 >/dev/null 2>conftest.err &&
4297 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4298 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4299 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4300 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4301 # icc doesn't choke on unknown options, it will just issue warnings
4302 # or remarks (even with -Werror). So we grep stderr for any message
4303 # that says an option was ignored or not supported.
4304 # When given -MP, icc 7.0 and 7.1 complain thusly:
4305 # icc: Command line warning: ignoring option '-M'; no argument required
4306 # The diagnosis changed in icc 8.0:
4307 # icc: Command line remark: option '-MP' not supported
4308 if (grep 'ignoring option' conftest.err ||
4309 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4310 am_cv_CXX_dependencies_compiler_type=$depmode
4311 break
4312 fi
4313 fi
4314 done
4315
4316 cd ..
4317 rm -rf conftest.dir
4318 else
4319 am_cv_CXX_dependencies_compiler_type=none
4320 fi
4321
4322 fi
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4324 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4325 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4326
4327 if
4328 test "x$enable_dependency_tracking" != xno \
4329 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4330 am__fastdepCXX_TRUE=
4331 am__fastdepCXX_FALSE='#'
4332 else
4333 am__fastdepCXX_TRUE='#'
4334 am__fastdepCXX_FALSE=
4335 fi
4336
4337
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4344 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4345 # On Suns, sometimes $CPP names a directory.
4346 if test -n "$CPP" && test -d "$CPP"; then
4347 CPP=
4348 fi
4349 if test -z "$CPP"; then
4350 if ${ac_cv_prog_CPP+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 # Double quotes because CPP needs to be expanded
4354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4355 do
4356 ac_preproc_ok=false
4357 for ac_c_preproc_warn_flag in '' yes
4358 do
4359 # Use a header file that comes with gcc, so configuring glibc
4360 # with a fresh cross-compiler works.
4361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362 # <limits.h> exists even on freestanding compilers.
4363 # On the NeXT, cc -E runs the code through the compiler's parser,
4364 # not just through cpp. "Syntax error" is here to catch this case.
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367 #ifdef __STDC__
4368 # include <limits.h>
4369 #else
4370 # include <assert.h>
4371 #endif
4372 Syntax error
4373 _ACEOF
4374 if ac_fn_c_try_cpp "$LINENO"; then :
4375
4376 else
4377 # Broken: fails on valid input.
4378 continue
4379 fi
4380 rm -f conftest.err conftest.i conftest.$ac_ext
4381
4382 # OK, works on sane cases. Now check whether nonexistent headers
4383 # can be detected and how.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 #include <ac_nonexistent.h>
4387 _ACEOF
4388 if ac_fn_c_try_cpp "$LINENO"; then :
4389 # Broken: success on invalid input.
4390 continue
4391 else
4392 # Passes both tests.
4393 ac_preproc_ok=:
4394 break
4395 fi
4396 rm -f conftest.err conftest.i conftest.$ac_ext
4397
4398 done
4399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4400 rm -f conftest.i conftest.err conftest.$ac_ext
4401 if $ac_preproc_ok; then :
4402 break
4403 fi
4404
4405 done
4406 ac_cv_prog_CPP=$CPP
4407
4408 fi
4409 CPP=$ac_cv_prog_CPP
4410 else
4411 ac_cv_prog_CPP=$CPP
4412 fi
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4414 $as_echo "$CPP" >&6; }
4415 ac_preproc_ok=false
4416 for ac_c_preproc_warn_flag in '' yes
4417 do
4418 # Use a header file that comes with gcc, so configuring glibc
4419 # with a fresh cross-compiler works.
4420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4421 # <limits.h> exists even on freestanding compilers.
4422 # On the NeXT, cc -E runs the code through the compiler's parser,
4423 # not just through cpp. "Syntax error" is here to catch this case.
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426 #ifdef __STDC__
4427 # include <limits.h>
4428 #else
4429 # include <assert.h>
4430 #endif
4431 Syntax error
4432 _ACEOF
4433 if ac_fn_c_try_cpp "$LINENO"; then :
4434
4435 else
4436 # Broken: fails on valid input.
4437 continue
4438 fi
4439 rm -f conftest.err conftest.i conftest.$ac_ext
4440
4441 # OK, works on sane cases. Now check whether nonexistent headers
4442 # can be detected and how.
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445 #include <ac_nonexistent.h>
4446 _ACEOF
4447 if ac_fn_c_try_cpp "$LINENO"; then :
4448 # Broken: success on invalid input.
4449 continue
4450 else
4451 # Passes both tests.
4452 ac_preproc_ok=:
4453 break
4454 fi
4455 rm -f conftest.err conftest.i conftest.$ac_ext
4456
4457 done
4458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4459 rm -f conftest.i conftest.err conftest.$ac_ext
4460 if $ac_preproc_ok; then :
4461
4462 else
4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4466 See \`config.log' for more details" "$LINENO" 5; }
4467 fi
4468
4469 ac_ext=c
4470 ac_cpp='$CPP $CPPFLAGS'
4471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4474
4475 for ac_prog in gawk mawk nawk awk
4476 do
4477 # Extract the first word of "$ac_prog", so it can be a program name with args.
4478 set dummy $ac_prog; ac_word=$2
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480 $as_echo_n "checking for $ac_word... " >&6; }
4481 if ${ac_cv_prog_AWK+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 if test -n "$AWK"; then
4485 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4486 else
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4489 do
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4494 ac_cv_prog_AWK="$ac_prog"
4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4497 fi
4498 done
4499 done
4500 IFS=$as_save_IFS
4501
4502 fi
4503 fi
4504 AWK=$ac_cv_prog_AWK
4505 if test -n "$AWK"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4507 $as_echo "$AWK" >&6; }
4508 else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510 $as_echo "no" >&6; }
4511 fi
4512
4513
4514 test -n "$AWK" && break
4515 done
4516
4517
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4519 $as_echo_n "checking whether ln -s works... " >&6; }
4520 LN_S=$as_ln_s
4521 if test "$LN_S" = "ln -s"; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523 $as_echo "yes" >&6; }
4524 else
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4526 $as_echo "no, using $LN_S" >&6; }
4527 fi
4528
4529 if test "x$CC" != xcc; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4531 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4532 else
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4534 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4535 fi
4536 set dummy $CC; ac_cc=`$as_echo "$2" |
4537 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4538 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543
4544 int
4545 main ()
4546 {
4547
4548 ;
4549 return 0;
4550 }
4551 _ACEOF
4552 # Make sure it works both with $CC and with simple cc.
4553 # We do the test twice because some compilers refuse to overwrite an
4554 # existing .o file with -o, though they will create one.
4555 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4556 rm -f conftest2.*
4557 if { { case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4562 $as_echo "$ac_try_echo"; } >&5
4563 (eval "$ac_try") 2>&5
4564 ac_status=$?
4565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4566 test $ac_status = 0; } &&
4567 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_try") 2>&5
4574 ac_status=$?
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; };
4577 then
4578 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4579 if test "x$CC" != xcc; then
4580 # Test first that cc exists at all.
4581 if { ac_try='cc -c conftest.$ac_ext >&5'
4582 { { case "(($ac_try" in
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4585 esac
4586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4587 $as_echo "$ac_try_echo"; } >&5
4588 (eval "$ac_try") 2>&5
4589 ac_status=$?
4590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4591 test $ac_status = 0; }; }; then
4592 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4593 rm -f conftest2.*
4594 if { { case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597 esac
4598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4599 $as_echo "$ac_try_echo"; } >&5
4600 (eval "$ac_try") 2>&5
4601 ac_status=$?
4602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4603 test $ac_status = 0; } &&
4604 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4607 esac
4608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4609 $as_echo "$ac_try_echo"; } >&5
4610 (eval "$ac_try") 2>&5
4611 ac_status=$?
4612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4613 test $ac_status = 0; };
4614 then
4615 # cc works too.
4616 :
4617 else
4618 # cc exists but doesn't like -o.
4619 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4620 fi
4621 fi
4622 fi
4623 else
4624 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4625 fi
4626 rm -f core conftest*
4627
4628 fi
4629 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4631 $as_echo "yes" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4635
4636 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4637
4638 fi
4639
4640 # FIXME: we rely on the cache variable name because
4641 # there is no other way.
4642 set dummy $CC
4643 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4644 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4645 if test "$am_t" != yes; then
4646 # Losing compiler, so override with the script.
4647 # FIXME: It is wrong to rewrite CC.
4648 # But if we don't then we get into trouble of one sort or another.
4649 # A longer-term fix would be to have automake use am__CC in this case,
4650 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4651 CC="$am_aux_dir/compile $CC"
4652 fi
4653
4654
4655 case `pwd` in
4656 *\ * | *\ *)
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4658 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4659 esac
4660
4661
4662
4663 macro_version='2.4.2'
4664 macro_revision='1.3337'
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678 ltmain="$ac_aux_dir/ltmain.sh"
4679
4680 # Make sure we can run config.sub.
4681 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4682 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4685 $as_echo_n "checking build system type... " >&6; }
4686 if ${ac_cv_build+:} false; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 ac_build_alias=$build_alias
4690 test "x$ac_build_alias" = x &&
4691 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4692 test "x$ac_build_alias" = x &&
4693 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4694 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4695 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4696
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4699 $as_echo "$ac_cv_build" >&6; }
4700 case $ac_cv_build in
4701 *-*-*) ;;
4702 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4703 esac
4704 build=$ac_cv_build
4705 ac_save_IFS=$IFS; IFS='-'
4706 set x $ac_cv_build
4707 shift
4708 build_cpu=$1
4709 build_vendor=$2
4710 shift; shift
4711 # Remember, the first character of IFS is used to create $*,
4712 # except with old shells:
4713 build_os=$*
4714 IFS=$ac_save_IFS
4715 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4716
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4719 $as_echo_n "checking host system type... " >&6; }
4720 if ${ac_cv_host+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test "x$host_alias" = x; then
4724 ac_cv_host=$ac_cv_build
4725 else
4726 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4727 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4728 fi
4729
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4732 $as_echo "$ac_cv_host" >&6; }
4733 case $ac_cv_host in
4734 *-*-*) ;;
4735 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4736 esac
4737 host=$ac_cv_host
4738 ac_save_IFS=$IFS; IFS='-'
4739 set x $ac_cv_host
4740 shift
4741 host_cpu=$1
4742 host_vendor=$2
4743 shift; shift
4744 # Remember, the first character of IFS is used to create $*,
4745 # except with old shells:
4746 host_os=$*
4747 IFS=$ac_save_IFS
4748 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4749
4750
4751 # Backslashify metacharacters that are still active within
4752 # double-quoted strings.
4753 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4754
4755 # Same as above, but do not quote variable references.
4756 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4757
4758 # Sed substitution to delay expansion of an escaped shell variable in a
4759 # double_quote_subst'ed string.
4760 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4761
4762 # Sed substitution to delay expansion of an escaped single quote.
4763 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4764
4765 # Sed substitution to avoid accidental globbing in evaled expressions
4766 no_glob_subst='s/\*/\\\*/g'
4767
4768 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4769 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4770 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4773 $as_echo_n "checking how to print strings... " >&6; }
4774 # Test print first, because it will be a builtin if present.
4775 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4776 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4777 ECHO='print -r --'
4778 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4779 ECHO='printf %s\n'
4780 else
4781 # Use this function as a fallback that always works.
4782 func_fallback_echo ()
4783 {
4784 eval 'cat <<_LTECHO_EOF
4785 $1
4786 _LTECHO_EOF'
4787 }
4788 ECHO='func_fallback_echo'
4789 fi
4790
4791 # func_echo_all arg...
4792 # Invoke $ECHO with all args, space-separated.
4793 func_echo_all ()
4794 {
4795 $ECHO ""
4796 }
4797
4798 case "$ECHO" in
4799 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4800 $as_echo "printf" >&6; } ;;
4801 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4802 $as_echo "print -r" >&6; } ;;
4803 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4804 $as_echo "cat" >&6; } ;;
4805 esac
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4821 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4822 if ${ac_cv_path_SED+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4826 for ac_i in 1 2 3 4 5 6 7; do
4827 ac_script="$ac_script$as_nl$ac_script"
4828 done
4829 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4830 { ac_script=; unset ac_script;}
4831 if test -z "$SED"; then
4832 ac_path_SED_found=false
4833 # Loop through the user's path and test for each of PROGNAME-LIST
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_prog in sed gsed; do
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4842 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4843 # Check for GNU ac_path_SED and select it if it is found.
4844 # Check for GNU $ac_path_SED
4845 case `"$ac_path_SED" --version 2>&1` in
4846 *GNU*)
4847 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4848 *)
4849 ac_count=0
4850 $as_echo_n 0123456789 >"conftest.in"
4851 while :
4852 do
4853 cat "conftest.in" "conftest.in" >"conftest.tmp"
4854 mv "conftest.tmp" "conftest.in"
4855 cp "conftest.in" "conftest.nl"
4856 $as_echo '' >> "conftest.nl"
4857 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4859 as_fn_arith $ac_count + 1 && ac_count=$as_val
4860 if test $ac_count -gt ${ac_path_SED_max-0}; then
4861 # Best one so far, save it but keep looking for a better one
4862 ac_cv_path_SED="$ac_path_SED"
4863 ac_path_SED_max=$ac_count
4864 fi
4865 # 10*(2^10) chars as input seems more than enough
4866 test $ac_count -gt 10 && break
4867 done
4868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4869 esac
4870
4871 $ac_path_SED_found && break 3
4872 done
4873 done
4874 done
4875 IFS=$as_save_IFS
4876 if test -z "$ac_cv_path_SED"; then
4877 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4878 fi
4879 else
4880 ac_cv_path_SED=$SED
4881 fi
4882
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4885 $as_echo "$ac_cv_path_SED" >&6; }
4886 SED="$ac_cv_path_SED"
4887 rm -f conftest.sed
4888
4889 test -z "$SED" && SED=sed
4890 Xsed="$SED -e 1s/^X//"
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4903 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4904 if ${ac_cv_path_GREP+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 if test -z "$GREP"; then
4908 ac_path_GREP_found=false
4909 # Loop through the user's path and test for each of PROGNAME-LIST
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4912 do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_prog in grep ggrep; do
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4918 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4919 # Check for GNU ac_path_GREP and select it if it is found.
4920 # Check for GNU $ac_path_GREP
4921 case `"$ac_path_GREP" --version 2>&1` in
4922 *GNU*)
4923 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4924 *)
4925 ac_count=0
4926 $as_echo_n 0123456789 >"conftest.in"
4927 while :
4928 do
4929 cat "conftest.in" "conftest.in" >"conftest.tmp"
4930 mv "conftest.tmp" "conftest.in"
4931 cp "conftest.in" "conftest.nl"
4932 $as_echo 'GREP' >> "conftest.nl"
4933 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4935 as_fn_arith $ac_count + 1 && ac_count=$as_val
4936 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4937 # Best one so far, save it but keep looking for a better one
4938 ac_cv_path_GREP="$ac_path_GREP"
4939 ac_path_GREP_max=$ac_count
4940 fi
4941 # 10*(2^10) chars as input seems more than enough
4942 test $ac_count -gt 10 && break
4943 done
4944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4945 esac
4946
4947 $ac_path_GREP_found && break 3
4948 done
4949 done
4950 done
4951 IFS=$as_save_IFS
4952 if test -z "$ac_cv_path_GREP"; then
4953 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4954 fi
4955 else
4956 ac_cv_path_GREP=$GREP
4957 fi
4958
4959 fi
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4961 $as_echo "$ac_cv_path_GREP" >&6; }
4962 GREP="$ac_cv_path_GREP"
4963
4964
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4966 $as_echo_n "checking for egrep... " >&6; }
4967 if ${ac_cv_path_EGREP+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4971 then ac_cv_path_EGREP="$GREP -E"
4972 else
4973 if test -z "$EGREP"; then
4974 ac_path_EGREP_found=false
4975 # Loop through the user's path and test for each of PROGNAME-LIST
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4978 do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_prog in egrep; do
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4984 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4985 # Check for GNU ac_path_EGREP and select it if it is found.
4986 # Check for GNU $ac_path_EGREP
4987 case `"$ac_path_EGREP" --version 2>&1` in
4988 *GNU*)
4989 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4990 *)
4991 ac_count=0
4992 $as_echo_n 0123456789 >"conftest.in"
4993 while :
4994 do
4995 cat "conftest.in" "conftest.in" >"conftest.tmp"
4996 mv "conftest.tmp" "conftest.in"
4997 cp "conftest.in" "conftest.nl"
4998 $as_echo 'EGREP' >> "conftest.nl"
4999 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5000 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5001 as_fn_arith $ac_count + 1 && ac_count=$as_val
5002 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5003 # Best one so far, save it but keep looking for a better one
5004 ac_cv_path_EGREP="$ac_path_EGREP"
5005 ac_path_EGREP_max=$ac_count
5006 fi
5007 # 10*(2^10) chars as input seems more than enough
5008 test $ac_count -gt 10 && break
5009 done
5010 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5011 esac
5012
5013 $ac_path_EGREP_found && break 3
5014 done
5015 done
5016 done
5017 IFS=$as_save_IFS
5018 if test -z "$ac_cv_path_EGREP"; then
5019 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5020 fi
5021 else
5022 ac_cv_path_EGREP=$EGREP
5023 fi
5024
5025 fi
5026 fi
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5028 $as_echo "$ac_cv_path_EGREP" >&6; }
5029 EGREP="$ac_cv_path_EGREP"
5030
5031
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5033 $as_echo_n "checking for fgrep... " >&6; }
5034 if ${ac_cv_path_FGREP+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5038 then ac_cv_path_FGREP="$GREP -F"
5039 else
5040 if test -z "$FGREP"; then
5041 ac_path_FGREP_found=false
5042 # Loop through the user's path and test for each of PROGNAME-LIST
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5045 do
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_prog in fgrep; do
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5051 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5052 # Check for GNU ac_path_FGREP and select it if it is found.
5053 # Check for GNU $ac_path_FGREP
5054 case `"$ac_path_FGREP" --version 2>&1` in
5055 *GNU*)
5056 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5057 *)
5058 ac_count=0
5059 $as_echo_n 0123456789 >"conftest.in"
5060 while :
5061 do
5062 cat "conftest.in" "conftest.in" >"conftest.tmp"
5063 mv "conftest.tmp" "conftest.in"
5064 cp "conftest.in" "conftest.nl"
5065 $as_echo 'FGREP' >> "conftest.nl"
5066 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5068 as_fn_arith $ac_count + 1 && ac_count=$as_val
5069 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5070 # Best one so far, save it but keep looking for a better one
5071 ac_cv_path_FGREP="$ac_path_FGREP"
5072 ac_path_FGREP_max=$ac_count
5073 fi
5074 # 10*(2^10) chars as input seems more than enough
5075 test $ac_count -gt 10 && break
5076 done
5077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5078 esac
5079
5080 $ac_path_FGREP_found && break 3
5081 done
5082 done
5083 done
5084 IFS=$as_save_IFS
5085 if test -z "$ac_cv_path_FGREP"; then
5086 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5087 fi
5088 else
5089 ac_cv_path_FGREP=$FGREP
5090 fi
5091
5092 fi
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5095 $as_echo "$ac_cv_path_FGREP" >&6; }
5096 FGREP="$ac_cv_path_FGREP"
5097
5098
5099 test -z "$GREP" && GREP=grep
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119 # Check whether --with-gnu-ld was given.
5120 if test "${with_gnu_ld+set}" = set; then :
5121 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5122 else
5123 with_gnu_ld=no
5124 fi
5125
5126 ac_prog=ld
5127 if test "$GCC" = yes; then
5128 # Check if gcc -print-prog-name=ld gives a path.
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5130 $as_echo_n "checking for ld used by $CC... " >&6; }
5131 case $host in
5132 *-*-mingw*)
5133 # gcc leaves a trailing carriage return which upsets mingw
5134 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5135 *)
5136 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5137 esac
5138 case $ac_prog in
5139 # Accept absolute paths.
5140 [\\/]* | ?:[\\/]*)
5141 re_direlt='/[^/][^/]*/\.\./'
5142 # Canonicalize the pathname of ld
5143 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5144 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5145 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5146 done
5147 test -z "$LD" && LD="$ac_prog"
5148 ;;
5149 "")
5150 # If it fails, then pretend we aren't using GCC.
5151 ac_prog=ld
5152 ;;
5153 *)
5154 # If it is relative, then search for the first ld in PATH.
5155 with_gnu_ld=unknown
5156 ;;
5157 esac
5158 elif test "$with_gnu_ld" = yes; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5160 $as_echo_n "checking for GNU ld... " >&6; }
5161 else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5163 $as_echo_n "checking for non-GNU ld... " >&6; }
5164 fi
5165 if ${lt_cv_path_LD+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -z "$LD"; then
5169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5170 for ac_dir in $PATH; do
5171 IFS="$lt_save_ifs"
5172 test -z "$ac_dir" && ac_dir=.
5173 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5174 lt_cv_path_LD="$ac_dir/$ac_prog"
5175 # Check to see if the program is GNU ld. I'd rather use --version,
5176 # but apparently some variants of GNU ld only accept -v.
5177 # Break only if it was the GNU/non-GNU ld that we prefer.
5178 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5179 *GNU* | *'with BFD'*)
5180 test "$with_gnu_ld" != no && break
5181 ;;
5182 *)
5183 test "$with_gnu_ld" != yes && break
5184 ;;
5185 esac
5186 fi
5187 done
5188 IFS="$lt_save_ifs"
5189 else
5190 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5191 fi
5192 fi
5193
5194 LD="$lt_cv_path_LD"
5195 if test -n "$LD"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5197 $as_echo "$LD" >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5201 fi
5202 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5204 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5205 if ${lt_cv_prog_gnu_ld+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5209 case `$LD -v 2>&1 </dev/null` in
5210 *GNU* | *'with BFD'*)
5211 lt_cv_prog_gnu_ld=yes
5212 ;;
5213 *)
5214 lt_cv_prog_gnu_ld=no
5215 ;;
5216 esac
5217 fi
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5219 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5220 with_gnu_ld=$lt_cv_prog_gnu_ld
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5231 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5232 if ${lt_cv_path_NM+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 if test -n "$NM"; then
5236 # Let the user override the test.
5237 lt_cv_path_NM="$NM"
5238 else
5239 lt_nm_to_check="${ac_tool_prefix}nm"
5240 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5241 lt_nm_to_check="$lt_nm_to_check nm"
5242 fi
5243 for lt_tmp_nm in $lt_nm_to_check; do
5244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5245 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5246 IFS="$lt_save_ifs"
5247 test -z "$ac_dir" && ac_dir=.
5248 tmp_nm="$ac_dir/$lt_tmp_nm"
5249 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5250 # Check to see if the nm accepts a BSD-compat flag.
5251 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5252 # nm: unknown option "B" ignored
5253 # Tru64's nm complains that /dev/null is an invalid object file
5254 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5255 */dev/null* | *'Invalid file or object type'*)
5256 lt_cv_path_NM="$tmp_nm -B"
5257 break
5258 ;;
5259 *)
5260 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5261 */dev/null*)
5262 lt_cv_path_NM="$tmp_nm -p"
5263 break
5264 ;;
5265 *)
5266 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5267 continue # so that we can try to find one that supports BSD flags
5268 ;;
5269 esac
5270 ;;
5271 esac
5272 fi
5273 done
5274 IFS="$lt_save_ifs"
5275 done
5276 : ${lt_cv_path_NM=no}
5277 fi
5278 fi
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5280 $as_echo "$lt_cv_path_NM" >&6; }
5281 if test "$lt_cv_path_NM" != "no"; then
5282 NM="$lt_cv_path_NM"
5283 else
5284 # Didn't find any BSD compatible name lister, look for dumpbin.
5285 if test -n "$DUMPBIN"; then :
5286 # Let the user override the test.
5287 else
5288 if test -n "$ac_tool_prefix"; then
5289 for ac_prog in dumpbin "link -dump"
5290 do
5291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_prog_DUMPBIN+:} false; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if test -n "$DUMPBIN"; then
5299 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5311 fi
5312 done
5313 done
5314 IFS=$as_save_IFS
5315
5316 fi
5317 fi
5318 DUMPBIN=$ac_cv_prog_DUMPBIN
5319 if test -n "$DUMPBIN"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5321 $as_echo "$DUMPBIN" >&6; }
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326
5327
5328 test -n "$DUMPBIN" && break
5329 done
5330 fi
5331 if test -z "$DUMPBIN"; then
5332 ac_ct_DUMPBIN=$DUMPBIN
5333 for ac_prog in dumpbin "link -dump"
5334 do
5335 # Extract the first word of "$ac_prog", so it can be a program name with args.
5336 set dummy $ac_prog; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if test -n "$ac_ct_DUMPBIN"; then
5343 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5347 do
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5352 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5355 fi
5356 done
5357 done
5358 IFS=$as_save_IFS
5359
5360 fi
5361 fi
5362 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5363 if test -n "$ac_ct_DUMPBIN"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5365 $as_echo "$ac_ct_DUMPBIN" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 fi
5370
5371
5372 test -n "$ac_ct_DUMPBIN" && break
5373 done
5374
5375 if test "x$ac_ct_DUMPBIN" = x; then
5376 DUMPBIN=":"
5377 else
5378 case $cross_compiling:$ac_tool_warned in
5379 yes:)
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5382 ac_tool_warned=yes ;;
5383 esac
5384 DUMPBIN=$ac_ct_DUMPBIN
5385 fi
5386 fi
5387
5388 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5389 *COFF*)
5390 DUMPBIN="$DUMPBIN -symbols"
5391 ;;
5392 *)
5393 DUMPBIN=:
5394 ;;
5395 esac
5396 fi
5397
5398 if test "$DUMPBIN" != ":"; then
5399 NM="$DUMPBIN"
5400 fi
5401 fi
5402 test -z "$NM" && NM=nm
5403
5404
5405
5406
5407
5408
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5410 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5411 if ${lt_cv_nm_interface+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 lt_cv_nm_interface="BSD nm"
5415 echo "int some_variable = 0;" > conftest.$ac_ext
5416 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5417 (eval "$ac_compile" 2>conftest.err)
5418 cat conftest.err >&5
5419 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5420 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5421 cat conftest.err >&5
5422 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5423 cat conftest.out >&5
5424 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5425 lt_cv_nm_interface="MS dumpbin"
5426 fi
5427 rm -f conftest*
5428 fi
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5430 $as_echo "$lt_cv_nm_interface" >&6; }
5431
5432 # find the maximum length of command line arguments
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5434 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5435 if ${lt_cv_sys_max_cmd_len+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 i=0
5439 teststring="ABCD"
5440
5441 case $build_os in
5442 msdosdjgpp*)
5443 # On DJGPP, this test can blow up pretty badly due to problems in libc
5444 # (any single argument exceeding 2000 bytes causes a buffer overrun
5445 # during glob expansion). Even if it were fixed, the result of this
5446 # check would be larger than it should be.
5447 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5448 ;;
5449
5450 gnu*)
5451 # Under GNU Hurd, this test is not required because there is
5452 # no limit to the length of command line arguments.
5453 # Libtool will interpret -1 as no limit whatsoever
5454 lt_cv_sys_max_cmd_len=-1;
5455 ;;
5456
5457 cygwin* | mingw* | cegcc*)
5458 # On Win9x/ME, this test blows up -- it succeeds, but takes
5459 # about 5 minutes as the teststring grows exponentially.
5460 # Worse, since 9x/ME are not pre-emptively multitasking,
5461 # you end up with a "frozen" computer, even though with patience
5462 # the test eventually succeeds (with a max line length of 256k).
5463 # Instead, let's just punt: use the minimum linelength reported by
5464 # all of the supported platforms: 8192 (on NT/2K/XP).
5465 lt_cv_sys_max_cmd_len=8192;
5466 ;;
5467
5468 mint*)
5469 # On MiNT this can take a long time and run out of memory.
5470 lt_cv_sys_max_cmd_len=8192;
5471 ;;
5472
5473 amigaos*)
5474 # On AmigaOS with pdksh, this test takes hours, literally.
5475 # So we just punt and use a minimum line length of 8192.
5476 lt_cv_sys_max_cmd_len=8192;
5477 ;;
5478
5479 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5480 # This has been around since 386BSD, at least. Likely further.
5481 if test -x /sbin/sysctl; then
5482 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5483 elif test -x /usr/sbin/sysctl; then
5484 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5485 else
5486 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5487 fi
5488 # And add a safety zone
5489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5491 ;;
5492
5493 interix*)
5494 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5495 lt_cv_sys_max_cmd_len=196608
5496 ;;
5497
5498 os2*)
5499 # The test takes a long time on OS/2.
5500 lt_cv_sys_max_cmd_len=8192
5501 ;;
5502
5503 osf*)
5504 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5505 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5506 # nice to cause kernel panics so lets avoid the loop below.
5507 # First set a reasonable default.
5508 lt_cv_sys_max_cmd_len=16384
5509 #
5510 if test -x /sbin/sysconfig; then
5511 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5512 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5513 esac
5514 fi
5515 ;;
5516 sco3.2v5*)
5517 lt_cv_sys_max_cmd_len=102400
5518 ;;
5519 sysv5* | sco5v6* | sysv4.2uw2*)
5520 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5521 if test -n "$kargmax"; then
5522 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5523 else
5524 lt_cv_sys_max_cmd_len=32768
5525 fi
5526 ;;
5527 *)
5528 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5529 if test -n "$lt_cv_sys_max_cmd_len"; then
5530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5532 else
5533 # Make teststring a little bigger before we do anything with it.
5534 # a 1K string should be a reasonable start.
5535 for i in 1 2 3 4 5 6 7 8 ; do
5536 teststring=$teststring$teststring
5537 done
5538 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5539 # If test is not a shell built-in, we'll probably end up computing a
5540 # maximum length that is only half of the actual maximum length, but
5541 # we can't tell.
5542 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5543 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5544 test $i != 17 # 1/2 MB should be enough
5545 do
5546 i=`expr $i + 1`
5547 teststring=$teststring$teststring
5548 done
5549 # Only check the string length outside the loop.
5550 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5551 teststring=
5552 # Add a significant safety factor because C++ compilers can tack on
5553 # massive amounts of additional arguments before passing them to the
5554 # linker. It appears as though 1/2 is a usable value.
5555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5556 fi
5557 ;;
5558 esac
5559
5560 fi
5561
5562 if test -n $lt_cv_sys_max_cmd_len ; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5564 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5567 $as_echo "none" >&6; }
5568 fi
5569 max_cmd_len=$lt_cv_sys_max_cmd_len
5570
5571
5572
5573
5574
5575
5576 : ${CP="cp -f"}
5577 : ${MV="mv -f"}
5578 : ${RM="rm -f"}
5579
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5581 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5582 # Try some XSI features
5583 xsi_shell=no
5584 ( _lt_dummy="a/b/c"
5585 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5586 = c,a/b,b/c, \
5587 && eval 'test $(( 1 + 1 )) -eq 2 \
5588 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5589 && xsi_shell=yes
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5591 $as_echo "$xsi_shell" >&6; }
5592
5593
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5595 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5596 lt_shell_append=no
5597 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5598 >/dev/null 2>&1 \
5599 && lt_shell_append=yes
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5601 $as_echo "$lt_shell_append" >&6; }
5602
5603
5604 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5605 lt_unset=unset
5606 else
5607 lt_unset=false
5608 fi
5609
5610
5611
5612
5613
5614 # test EBCDIC or ASCII
5615 case `echo X|tr X '\101'` in
5616 A) # ASCII based system
5617 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5618 lt_SP2NL='tr \040 \012'
5619 lt_NL2SP='tr \015\012 \040\040'
5620 ;;
5621 *) # EBCDIC based system
5622 lt_SP2NL='tr \100 \n'
5623 lt_NL2SP='tr \r\n \100\100'
5624 ;;
5625 esac
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5636 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5637 if ${lt_cv_to_host_file_cmd+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 case $host in
5641 *-*-mingw* )
5642 case $build in
5643 *-*-mingw* ) # actually msys
5644 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5645 ;;
5646 *-*-cygwin* )
5647 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5648 ;;
5649 * ) # otherwise, assume *nix
5650 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5651 ;;
5652 esac
5653 ;;
5654 *-*-cygwin* )
5655 case $build in
5656 *-*-mingw* ) # actually msys
5657 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5658 ;;
5659 *-*-cygwin* )
5660 lt_cv_to_host_file_cmd=func_convert_file_noop
5661 ;;
5662 * ) # otherwise, assume *nix
5663 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5664 ;;
5665 esac
5666 ;;
5667 * ) # unhandled hosts (and "normal" native builds)
5668 lt_cv_to_host_file_cmd=func_convert_file_noop
5669 ;;
5670 esac
5671
5672 fi
5673
5674 to_host_file_cmd=$lt_cv_to_host_file_cmd
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5676 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5677
5678
5679
5680
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5683 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5684 if ${lt_cv_to_tool_file_cmd+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 #assume ordinary cross tools, or native build.
5688 lt_cv_to_tool_file_cmd=func_convert_file_noop
5689 case $host in
5690 *-*-mingw* )
5691 case $build in
5692 *-*-mingw* ) # actually msys
5693 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5694 ;;
5695 esac
5696 ;;
5697 esac
5698
5699 fi
5700
5701 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5703 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5704
5705
5706
5707
5708
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5710 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5711 if ${lt_cv_ld_reload_flag+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713 else
5714 lt_cv_ld_reload_flag='-r'
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5717 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5718 reload_flag=$lt_cv_ld_reload_flag
5719 case $reload_flag in
5720 "" | " "*) ;;
5721 *) reload_flag=" $reload_flag" ;;
5722 esac
5723 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5724 case $host_os in
5725 cygwin* | mingw* | pw32* | cegcc*)
5726 if test "$GCC" != yes; then
5727 reload_cmds=false
5728 fi
5729 ;;
5730 darwin*)
5731 if test "$GCC" = yes; then
5732 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5733 else
5734 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5735 fi
5736 ;;
5737 esac
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747 if test -n "$ac_tool_prefix"; then
5748 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5749 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_prog_OBJDUMP+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 if test -n "$OBJDUMP"; then
5756 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5760 do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5765 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5768 fi
5769 done
5770 done
5771 IFS=$as_save_IFS
5772
5773 fi
5774 fi
5775 OBJDUMP=$ac_cv_prog_OBJDUMP
5776 if test -n "$OBJDUMP"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5778 $as_echo "$OBJDUMP" >&6; }
5779 else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5782 fi
5783
5784
5785 fi
5786 if test -z "$ac_cv_prog_OBJDUMP"; then
5787 ac_ct_OBJDUMP=$OBJDUMP
5788 # Extract the first word of "objdump", so it can be a program name with args.
5789 set dummy objdump; ac_word=$2
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5791 $as_echo_n "checking for $ac_word... " >&6; }
5792 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 if test -n "$ac_ct_OBJDUMP"; then
5796 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5797 else
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5800 do
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5805 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 break 2
5808 fi
5809 done
5810 done
5811 IFS=$as_save_IFS
5812
5813 fi
5814 fi
5815 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5816 if test -n "$ac_ct_OBJDUMP"; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5818 $as_echo "$ac_ct_OBJDUMP" >&6; }
5819 else
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821 $as_echo "no" >&6; }
5822 fi
5823
5824 if test "x$ac_ct_OBJDUMP" = x; then
5825 OBJDUMP="false"
5826 else
5827 case $cross_compiling:$ac_tool_warned in
5828 yes:)
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5831 ac_tool_warned=yes ;;
5832 esac
5833 OBJDUMP=$ac_ct_OBJDUMP
5834 fi
5835 else
5836 OBJDUMP="$ac_cv_prog_OBJDUMP"
5837 fi
5838
5839 test -z "$OBJDUMP" && OBJDUMP=objdump
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5850 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5851 if ${lt_cv_deplibs_check_method+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 lt_cv_file_magic_cmd='$MAGIC_CMD'
5855 lt_cv_file_magic_test_file=
5856 lt_cv_deplibs_check_method='unknown'
5857 # Need to set the preceding variable on all platforms that support
5858 # interlibrary dependencies.
5859 # 'none' -- dependencies not supported.
5860 # `unknown' -- same as none, but documents that we really don't know.
5861 # 'pass_all' -- all dependencies passed with no checks.
5862 # 'test_compile' -- check by making test program.
5863 # 'file_magic [[regex]]' -- check by looking for files in library path
5864 # which responds to the $file_magic_cmd with a given extended regex.
5865 # If you have `file' or equivalent on your system and you're not sure
5866 # whether `pass_all' will *always* work, you probably want this one.
5867
5868 case $host_os in
5869 aix[4-9]*)
5870 lt_cv_deplibs_check_method=pass_all
5871 ;;
5872
5873 beos*)
5874 lt_cv_deplibs_check_method=pass_all
5875 ;;
5876
5877 bsdi[45]*)
5878 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5879 lt_cv_file_magic_cmd='/usr/bin/file -L'
5880 lt_cv_file_magic_test_file=/shlib/libc.so
5881 ;;
5882
5883 cygwin*)
5884 # func_win32_libid is a shell function defined in ltmain.sh
5885 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5886 lt_cv_file_magic_cmd='func_win32_libid'
5887 ;;
5888
5889 mingw* | pw32*)
5890 # Base MSYS/MinGW do not provide the 'file' command needed by
5891 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5892 # unless we find 'file', for example because we are cross-compiling.
5893 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5894 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5895 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5896 lt_cv_file_magic_cmd='func_win32_libid'
5897 else
5898 # Keep this pattern in sync with the one in func_win32_libid.
5899 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5900 lt_cv_file_magic_cmd='$OBJDUMP -f'
5901 fi
5902 ;;
5903
5904 cegcc*)
5905 # use the weaker test based on 'objdump'. See mingw*.
5906 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5907 lt_cv_file_magic_cmd='$OBJDUMP -f'
5908 ;;
5909
5910 darwin* | rhapsody*)
5911 lt_cv_deplibs_check_method=pass_all
5912 ;;
5913
5914 freebsd* | dragonfly*)
5915 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5916 case $host_cpu in
5917 i*86 )
5918 # Not sure whether the presence of OpenBSD here was a mistake.
5919 # Let's accept both of them until this is cleared up.
5920 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5921 lt_cv_file_magic_cmd=/usr/bin/file
5922 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5923 ;;
5924 esac
5925 else
5926 lt_cv_deplibs_check_method=pass_all
5927 fi
5928 ;;
5929
5930 gnu*)
5931 lt_cv_deplibs_check_method=pass_all
5932 ;;
5933
5934 haiku*)
5935 lt_cv_deplibs_check_method=pass_all
5936 ;;
5937
5938 hpux10.20* | hpux11*)
5939 lt_cv_file_magic_cmd=/usr/bin/file
5940 case $host_cpu in
5941 ia64*)
5942 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5943 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5944 ;;
5945 hppa*64*)
5946 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]'
5947 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5948 ;;
5949 *)
5950 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5951 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5952 ;;
5953 esac
5954 ;;
5955
5956 interix[3-9]*)
5957 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5959 ;;
5960
5961 irix5* | irix6* | nonstopux*)
5962 case $LD in
5963 *-32|*"-32 ") libmagic=32-bit;;
5964 *-n32|*"-n32 ") libmagic=N32;;
5965 *-64|*"-64 ") libmagic=64-bit;;
5966 *) libmagic=never-match;;
5967 esac
5968 lt_cv_deplibs_check_method=pass_all
5969 ;;
5970
5971 # This must be glibc/ELF.
5972 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5973 lt_cv_deplibs_check_method=pass_all
5974 ;;
5975
5976 netbsd* | netbsdelf*-gnu)
5977 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5979 else
5980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5981 fi
5982 ;;
5983
5984 newos6*)
5985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5986 lt_cv_file_magic_cmd=/usr/bin/file
5987 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5988 ;;
5989
5990 *nto* | *qnx*)
5991 lt_cv_deplibs_check_method=pass_all
5992 ;;
5993
5994 openbsd*)
5995 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5997 else
5998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5999 fi
6000 ;;
6001
6002 osf3* | osf4* | osf5*)
6003 lt_cv_deplibs_check_method=pass_all
6004 ;;
6005
6006 rdos*)
6007 lt_cv_deplibs_check_method=pass_all
6008 ;;
6009
6010 solaris*)
6011 lt_cv_deplibs_check_method=pass_all
6012 ;;
6013
6014 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6015 lt_cv_deplibs_check_method=pass_all
6016 ;;
6017
6018 sysv4 | sysv4.3*)
6019 case $host_vendor in
6020 motorola)
6021 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]'
6022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6023 ;;
6024 ncr)
6025 lt_cv_deplibs_check_method=pass_all
6026 ;;
6027 sequent)
6028 lt_cv_file_magic_cmd='/bin/file'
6029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6030 ;;
6031 sni)
6032 lt_cv_file_magic_cmd='/bin/file'
6033 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6034 lt_cv_file_magic_test_file=/lib/libc.so
6035 ;;
6036 siemens)
6037 lt_cv_deplibs_check_method=pass_all
6038 ;;
6039 pc)
6040 lt_cv_deplibs_check_method=pass_all
6041 ;;
6042 esac
6043 ;;
6044
6045 tpf*)
6046 lt_cv_deplibs_check_method=pass_all
6047 ;;
6048 esac
6049
6050 fi
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6052 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6053
6054 file_magic_glob=
6055 want_nocaseglob=no
6056 if test "$build" = "$host"; then
6057 case $host_os in
6058 mingw* | pw32*)
6059 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6060 want_nocaseglob=yes
6061 else
6062 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6063 fi
6064 ;;
6065 esac
6066 fi
6067
6068 file_magic_cmd=$lt_cv_file_magic_cmd
6069 deplibs_check_method=$lt_cv_deplibs_check_method
6070 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 if test -n "$ac_tool_prefix"; then
6094 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6097 $as_echo_n "checking for $ac_word... " >&6; }
6098 if ${ac_cv_prog_DLLTOOL+:} false; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6101 if test -n "$DLLTOOL"; then
6102 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107 IFS=$as_save_IFS
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6111 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 break 2
6114 fi
6115 done
6116 done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 DLLTOOL=$ac_cv_prog_DLLTOOL
6122 if test -n "$DLLTOOL"; then
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6124 $as_echo "$DLLTOOL" >&6; }
6125 else
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 $as_echo "no" >&6; }
6128 fi
6129
6130
6131 fi
6132 if test -z "$ac_cv_prog_DLLTOOL"; then
6133 ac_ct_DLLTOOL=$DLLTOOL
6134 # Extract the first word of "dlltool", so it can be a program name with args.
6135 set dummy dlltool; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 if test -n "$ac_ct_DLLTOOL"; then
6142 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155 done
6156 done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6162 if test -n "$ac_ct_DLLTOOL"; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6164 $as_echo "$ac_ct_DLLTOOL" >&6; }
6165 else
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6168 fi
6169
6170 if test "x$ac_ct_DLLTOOL" = x; then
6171 DLLTOOL="false"
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 DLLTOOL=$ac_ct_DLLTOOL
6180 fi
6181 else
6182 DLLTOOL="$ac_cv_prog_DLLTOOL"
6183 fi
6184
6185 test -z "$DLLTOOL" && DLLTOOL=dlltool
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6197 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6198 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 lt_cv_sharedlib_from_linklib_cmd='unknown'
6202
6203 case $host_os in
6204 cygwin* | mingw* | pw32* | cegcc*)
6205 # two different shell functions defined in ltmain.sh
6206 # decide which to use based on capabilities of $DLLTOOL
6207 case `$DLLTOOL --help 2>&1` in
6208 *--identify-strict*)
6209 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6210 ;;
6211 *)
6212 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6213 ;;
6214 esac
6215 ;;
6216 *)
6217 # fallback: assume linklib IS sharedlib
6218 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6219 ;;
6220 esac
6221
6222 fi
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6224 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6225 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6226 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6227
6228
6229
6230
6231
6232
6233
6234
6235 if test -n "$ac_tool_prefix"; then
6236 for ac_prog in ar
6237 do
6238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if ${ac_cv_prog_AR+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 if test -n "$AR"; then
6246 ac_cv_prog_AR="$AR" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 break 2
6258 fi
6259 done
6260 done
6261 IFS=$as_save_IFS
6262
6263 fi
6264 fi
6265 AR=$ac_cv_prog_AR
6266 if test -n "$AR"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6268 $as_echo "$AR" >&6; }
6269 else
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6272 fi
6273
6274
6275 test -n "$AR" && break
6276 done
6277 fi
6278 if test -z "$AR"; then
6279 ac_ct_AR=$AR
6280 for ac_prog in ar
6281 do
6282 # Extract the first word of "$ac_prog", so it can be a program name with args.
6283 set dummy $ac_prog; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 if test -n "$ac_ct_AR"; then
6290 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_prog_ac_ct_AR="$ac_prog"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303 done
6304 done
6305 IFS=$as_save_IFS
6306
6307 fi
6308 fi
6309 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6310 if test -n "$ac_ct_AR"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6312 $as_echo "$ac_ct_AR" >&6; }
6313 else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6316 fi
6317
6318
6319 test -n "$ac_ct_AR" && break
6320 done
6321
6322 if test "x$ac_ct_AR" = x; then
6323 AR="false"
6324 else
6325 case $cross_compiling:$ac_tool_warned in
6326 yes:)
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329 ac_tool_warned=yes ;;
6330 esac
6331 AR=$ac_ct_AR
6332 fi
6333 fi
6334
6335 : ${AR=ar}
6336 : ${AR_FLAGS=cru}
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6349 $as_echo_n "checking for archiver @FILE support... " >&6; }
6350 if ${lt_cv_ar_at_file+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 lt_cv_ar_at_file=no
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356
6357 int
6358 main ()
6359 {
6360
6361 ;
6362 return 0;
6363 }
6364 _ACEOF
6365 if ac_fn_c_try_compile "$LINENO"; then :
6366 echo conftest.$ac_objext > conftest.lst
6367 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6369 (eval $lt_ar_try) 2>&5
6370 ac_status=$?
6371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6372 test $ac_status = 0; }
6373 if test "$ac_status" -eq 0; then
6374 # Ensure the archiver fails upon bogus file names.
6375 rm -f conftest.$ac_objext libconftest.a
6376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6377 (eval $lt_ar_try) 2>&5
6378 ac_status=$?
6379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6380 test $ac_status = 0; }
6381 if test "$ac_status" -ne 0; then
6382 lt_cv_ar_at_file=@
6383 fi
6384 fi
6385 rm -f conftest.* libconftest.a
6386
6387 fi
6388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389
6390 fi
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6392 $as_echo "$lt_cv_ar_at_file" >&6; }
6393
6394 if test "x$lt_cv_ar_at_file" = xno; then
6395 archiver_list_spec=
6396 else
6397 archiver_list_spec=$lt_cv_ar_at_file
6398 fi
6399
6400
6401
6402
6403
6404
6405
6406 if test -n "$ac_tool_prefix"; then
6407 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6408 set dummy ${ac_tool_prefix}strip; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if ${ac_cv_prog_STRIP+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 if test -n "$STRIP"; then
6415 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6416 else
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6427 fi
6428 done
6429 done
6430 IFS=$as_save_IFS
6431
6432 fi
6433 fi
6434 STRIP=$ac_cv_prog_STRIP
6435 if test -n "$STRIP"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6437 $as_echo "$STRIP" >&6; }
6438 else
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6441 fi
6442
6443
6444 fi
6445 if test -z "$ac_cv_prog_STRIP"; then
6446 ac_ct_STRIP=$STRIP
6447 # Extract the first word of "strip", so it can be a program name with args.
6448 set dummy strip; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 if test -n "$ac_ct_STRIP"; then
6455 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_ac_ct_STRIP="strip"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6475 if test -n "$ac_ct_STRIP"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6477 $as_echo "$ac_ct_STRIP" >&6; }
6478 else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6481 fi
6482
6483 if test "x$ac_ct_STRIP" = x; then
6484 STRIP=":"
6485 else
6486 case $cross_compiling:$ac_tool_warned in
6487 yes:)
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6490 ac_tool_warned=yes ;;
6491 esac
6492 STRIP=$ac_ct_STRIP
6493 fi
6494 else
6495 STRIP="$ac_cv_prog_STRIP"
6496 fi
6497
6498 test -z "$STRIP" && STRIP=:
6499
6500
6501
6502
6503
6504
6505 if test -n "$ac_tool_prefix"; then
6506 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6507 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509 $as_echo_n "checking for $ac_word... " >&6; }
6510 if ${ac_cv_prog_RANLIB+:} false; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 if test -n "$RANLIB"; then
6514 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6515 else
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6518 do
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6523 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6526 fi
6527 done
6528 done
6529 IFS=$as_save_IFS
6530
6531 fi
6532 fi
6533 RANLIB=$ac_cv_prog_RANLIB
6534 if test -n "$RANLIB"; then
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6536 $as_echo "$RANLIB" >&6; }
6537 else
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539 $as_echo "no" >&6; }
6540 fi
6541
6542
6543 fi
6544 if test -z "$ac_cv_prog_RANLIB"; then
6545 ac_ct_RANLIB=$RANLIB
6546 # Extract the first word of "ranlib", so it can be a program name with args.
6547 set dummy ranlib; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 if test -n "$ac_ct_RANLIB"; then
6554 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_prog_ac_ct_RANLIB="ranlib"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567 done
6568 done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6574 if test -n "$ac_ct_RANLIB"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6576 $as_echo "$ac_ct_RANLIB" >&6; }
6577 else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581
6582 if test "x$ac_ct_RANLIB" = x; then
6583 RANLIB=":"
6584 else
6585 case $cross_compiling:$ac_tool_warned in
6586 yes:)
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589 ac_tool_warned=yes ;;
6590 esac
6591 RANLIB=$ac_ct_RANLIB
6592 fi
6593 else
6594 RANLIB="$ac_cv_prog_RANLIB"
6595 fi
6596
6597 test -z "$RANLIB" && RANLIB=:
6598
6599
6600
6601
6602
6603
6604 # Determine commands to create old-style static archives.
6605 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6606 old_postinstall_cmds='chmod 644 $oldlib'
6607 old_postuninstall_cmds=
6608
6609 if test -n "$RANLIB"; then
6610 case $host_os in
6611 openbsd*)
6612 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6613 ;;
6614 *)
6615 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6616 ;;
6617 esac
6618 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6619 fi
6620
6621 case $host_os in
6622 darwin*)
6623 lock_old_archive_extraction=yes ;;
6624 *)
6625 lock_old_archive_extraction=no ;;
6626 esac
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666 # If no C compiler was specified, use CC.
6667 LTCC=${LTCC-"$CC"}
6668
6669 # If no C compiler flags were specified, use CFLAGS.
6670 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6671
6672 # Allow CC to be a program name with arguments.
6673 compiler=$CC
6674
6675
6676 # Check for command to grab the raw symbol name followed by C symbol from nm.
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6678 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6679 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682
6683 # These are sane defaults that work on at least a few old systems.
6684 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6685
6686 # Character class describing NM global symbol codes.
6687 symcode='[BCDEGRST]'
6688
6689 # Regexp to match symbols that can be accessed directly from C.
6690 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6691
6692 # Define system-specific variables.
6693 case $host_os in
6694 aix*)
6695 symcode='[BCDT]'
6696 ;;
6697 cygwin* | mingw* | pw32* | cegcc*)
6698 symcode='[ABCDGISTW]'
6699 ;;
6700 hpux*)
6701 if test "$host_cpu" = ia64; then
6702 symcode='[ABCDEGRST]'
6703 fi
6704 ;;
6705 irix* | nonstopux*)
6706 symcode='[BCDEGRST]'
6707 ;;
6708 osf*)
6709 symcode='[BCDEGQRST]'
6710 ;;
6711 solaris*)
6712 symcode='[BDRT]'
6713 ;;
6714 sco3.2v5*)
6715 symcode='[DT]'
6716 ;;
6717 sysv4.2uw2*)
6718 symcode='[DT]'
6719 ;;
6720 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6721 symcode='[ABDT]'
6722 ;;
6723 sysv4)
6724 symcode='[DFNSTU]'
6725 ;;
6726 esac
6727
6728 # If we're using GNU nm, then use its standard symbol codes.
6729 case `$NM -V 2>&1` in
6730 *GNU* | *'with BFD'*)
6731 symcode='[ABCDGIRSTW]' ;;
6732 esac
6733
6734 # Transform an extracted symbol line into a proper C declaration.
6735 # Some systems (esp. on ia64) link data and code symbols differently,
6736 # so use this general approach.
6737 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6738
6739 # Transform an extracted symbol line into symbol name and symbol address
6740 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6741 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'"
6742
6743 # Handle CRLF in mingw tool chain
6744 opt_cr=
6745 case $build_os in
6746 mingw*)
6747 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6748 ;;
6749 esac
6750
6751 # Try without a prefix underscore, then with it.
6752 for ac_symprfx in "" "_"; do
6753
6754 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6755 symxfrm="\\1 $ac_symprfx\\2 \\2"
6756
6757 # Write the raw and C identifiers.
6758 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6759 # Fake it for dumpbin and say T for any non-static function
6760 # and D for any global variable.
6761 # Also find C++ and __fastcall symbols from MSVC++,
6762 # which start with @ or ?.
6763 lt_cv_sys_global_symbol_pipe="$AWK '"\
6764 " {last_section=section; section=\$ 3};"\
6765 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6766 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6767 " \$ 0!~/External *\|/{next};"\
6768 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6769 " {if(hide[section]) next};"\
6770 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6771 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6772 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6773 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6774 " ' prfx=^$ac_symprfx"
6775 else
6776 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6777 fi
6778 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6779
6780 # Check to see that the pipe works correctly.
6781 pipe_works=no
6782
6783 rm -f conftest*
6784 cat > conftest.$ac_ext <<_LT_EOF
6785 #ifdef __cplusplus
6786 extern "C" {
6787 #endif
6788 char nm_test_var;
6789 void nm_test_func(void);
6790 void nm_test_func(void){}
6791 #ifdef __cplusplus
6792 }
6793 #endif
6794 int main(){nm_test_var='a';nm_test_func();return(0);}
6795 _LT_EOF
6796
6797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6798 (eval $ac_compile) 2>&5
6799 ac_status=$?
6800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6801 test $ac_status = 0; }; then
6802 # Now try to grab the symbols.
6803 nlist=conftest.nm
6804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6805 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6806 ac_status=$?
6807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6808 test $ac_status = 0; } && test -s "$nlist"; then
6809 # Try sorting and uniquifying the output.
6810 if sort "$nlist" | uniq > "$nlist"T; then
6811 mv -f "$nlist"T "$nlist"
6812 else
6813 rm -f "$nlist"T
6814 fi
6815
6816 # Make sure that we snagged all the symbols we need.
6817 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6818 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6819 cat <<_LT_EOF > conftest.$ac_ext
6820 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6821 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6822 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6823 relocations are performed -- see ld's documentation on pseudo-relocs. */
6824 # define LT_DLSYM_CONST
6825 #elif defined(__osf__)
6826 /* This system does not cope well with relocations in const data. */
6827 # define LT_DLSYM_CONST
6828 #else
6829 # define LT_DLSYM_CONST const
6830 #endif
6831
6832 #ifdef __cplusplus
6833 extern "C" {
6834 #endif
6835
6836 _LT_EOF
6837 # Now generate the symbol file.
6838 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6839
6840 cat <<_LT_EOF >> conftest.$ac_ext
6841
6842 /* The mapping between symbol names and symbols. */
6843 LT_DLSYM_CONST struct {
6844 const char *name;
6845 void *address;
6846 }
6847 lt__PROGRAM__LTX_preloaded_symbols[] =
6848 {
6849 { "@PROGRAM@", (void *) 0 },
6850 _LT_EOF
6851 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6852 cat <<\_LT_EOF >> conftest.$ac_ext
6853 {0, (void *) 0}
6854 };
6855
6856 /* This works around a problem in FreeBSD linker */
6857 #ifdef FREEBSD_WORKAROUND
6858 static const void *lt_preloaded_setup() {
6859 return lt__PROGRAM__LTX_preloaded_symbols;
6860 }
6861 #endif
6862
6863 #ifdef __cplusplus
6864 }
6865 #endif
6866 _LT_EOF
6867 # Now try linking the two files.
6868 mv conftest.$ac_objext conftstm.$ac_objext
6869 lt_globsym_save_LIBS=$LIBS
6870 lt_globsym_save_CFLAGS=$CFLAGS
6871 LIBS="conftstm.$ac_objext"
6872 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6874 (eval $ac_link) 2>&5
6875 ac_status=$?
6876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6877 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6878 pipe_works=yes
6879 fi
6880 LIBS=$lt_globsym_save_LIBS
6881 CFLAGS=$lt_globsym_save_CFLAGS
6882 else
6883 echo "cannot find nm_test_func in $nlist" >&5
6884 fi
6885 else
6886 echo "cannot find nm_test_var in $nlist" >&5
6887 fi
6888 else
6889 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6890 fi
6891 else
6892 echo "$progname: failed program was:" >&5
6893 cat conftest.$ac_ext >&5
6894 fi
6895 rm -rf conftest* conftst*
6896
6897 # Do not use the global_symbol_pipe unless it works.
6898 if test "$pipe_works" = yes; then
6899 break
6900 else
6901 lt_cv_sys_global_symbol_pipe=
6902 fi
6903 done
6904
6905 fi
6906
6907 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6908 lt_cv_sys_global_symbol_to_cdecl=
6909 fi
6910 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6912 $as_echo "failed" >&6; }
6913 else
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6915 $as_echo "ok" >&6; }
6916 fi
6917
6918 # Response file support.
6919 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6920 nm_file_list_spec='@'
6921 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6922 nm_file_list_spec='@'
6923 fi
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6952 $as_echo_n "checking for sysroot... " >&6; }
6953
6954 # Check whether --with-sysroot was given.
6955 if test "${with_sysroot+set}" = set; then :
6956 withval=$with_sysroot;
6957 else
6958 with_sysroot=no
6959 fi
6960
6961
6962 lt_sysroot=
6963 case ${with_sysroot} in #(
6964 yes)
6965 if test "$GCC" = yes; then
6966 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6967 fi
6968 ;; #(
6969 /*)
6970 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6971 ;; #(
6972 no|'')
6973 ;; #(
6974 *)
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6976 $as_echo "${with_sysroot}" >&6; }
6977 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6978 ;;
6979 esac
6980
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6982 $as_echo "${lt_sysroot:-no}" >&6; }
6983
6984
6985
6986
6987
6988 # Check whether --enable-libtool-lock was given.
6989 if test "${enable_libtool_lock+set}" = set; then :
6990 enableval=$enable_libtool_lock;
6991 fi
6992
6993 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6994
6995 # Some flags need to be propagated to the compiler or linker for good
6996 # libtool support.
6997 case $host in
6998 ia64-*-hpux*)
6999 # Find out which ABI we are using.
7000 echo 'int i;' > conftest.$ac_ext
7001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7002 (eval $ac_compile) 2>&5
7003 ac_status=$?
7004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7005 test $ac_status = 0; }; then
7006 case `/usr/bin/file conftest.$ac_objext` in
7007 *ELF-32*)
7008 HPUX_IA64_MODE="32"
7009 ;;
7010 *ELF-64*)
7011 HPUX_IA64_MODE="64"
7012 ;;
7013 esac
7014 fi
7015 rm -rf conftest*
7016 ;;
7017 *-*-irix6*)
7018 # Find out which ABI we are using.
7019 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7021 (eval $ac_compile) 2>&5
7022 ac_status=$?
7023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7024 test $ac_status = 0; }; then
7025 if test "$lt_cv_prog_gnu_ld" = yes; then
7026 case `/usr/bin/file conftest.$ac_objext` in
7027 *32-bit*)
7028 LD="${LD-ld} -melf32bsmip"
7029 ;;
7030 *N32*)
7031 LD="${LD-ld} -melf32bmipn32"
7032 ;;
7033 *64-bit*)
7034 LD="${LD-ld} -melf64bmip"
7035 ;;
7036 esac
7037 else
7038 case `/usr/bin/file conftest.$ac_objext` in
7039 *32-bit*)
7040 LD="${LD-ld} -32"
7041 ;;
7042 *N32*)
7043 LD="${LD-ld} -n32"
7044 ;;
7045 *64-bit*)
7046 LD="${LD-ld} -64"
7047 ;;
7048 esac
7049 fi
7050 fi
7051 rm -rf conftest*
7052 ;;
7053
7054 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7055 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7056 # Find out which ABI we are using.
7057 echo 'int i;' > conftest.$ac_ext
7058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7059 (eval $ac_compile) 2>&5
7060 ac_status=$?
7061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7062 test $ac_status = 0; }; then
7063 case `/usr/bin/file conftest.o` in
7064 *32-bit*)
7065 case $host in
7066 x86_64-*kfreebsd*-gnu)
7067 LD="${LD-ld} -m elf_i386_fbsd"
7068 ;;
7069 x86_64-*linux*)
7070 LD="${LD-ld} -m elf_i386"
7071 ;;
7072 ppc64-*linux*|powerpc64-*linux*)
7073 LD="${LD-ld} -m elf32ppclinux"
7074 ;;
7075 s390x-*linux*)
7076 LD="${LD-ld} -m elf_s390"
7077 ;;
7078 sparc64-*linux*)
7079 LD="${LD-ld} -m elf32_sparc"
7080 ;;
7081 esac
7082 ;;
7083 *64-bit*)
7084 case $host in
7085 x86_64-*kfreebsd*-gnu)
7086 LD="${LD-ld} -m elf_x86_64_fbsd"
7087 ;;
7088 x86_64-*linux*)
7089 LD="${LD-ld} -m elf_x86_64"
7090 ;;
7091 ppc*-*linux*|powerpc*-*linux*)
7092 LD="${LD-ld} -m elf64ppc"
7093 ;;
7094 s390*-*linux*|s390*-*tpf*)
7095 LD="${LD-ld} -m elf64_s390"
7096 ;;
7097 sparc*-*linux*)
7098 LD="${LD-ld} -m elf64_sparc"
7099 ;;
7100 esac
7101 ;;
7102 esac
7103 fi
7104 rm -rf conftest*
7105 ;;
7106
7107 *-*-sco3.2v5*)
7108 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7109 SAVE_CFLAGS="$CFLAGS"
7110 CFLAGS="$CFLAGS -belf"
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7112 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7113 if ${lt_cv_cc_needs_belf+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 ac_ext=c
7117 ac_cpp='$CPP $CPPFLAGS'
7118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7121
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7124
7125 int
7126 main ()
7127 {
7128
7129 ;
7130 return 0;
7131 }
7132 _ACEOF
7133 if ac_fn_c_try_link "$LINENO"; then :
7134 lt_cv_cc_needs_belf=yes
7135 else
7136 lt_cv_cc_needs_belf=no
7137 fi
7138 rm -f core conftest.err conftest.$ac_objext \
7139 conftest$ac_exeext conftest.$ac_ext
7140 ac_ext=c
7141 ac_cpp='$CPP $CPPFLAGS'
7142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7145
7146 fi
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7148 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7149 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7150 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7151 CFLAGS="$SAVE_CFLAGS"
7152 fi
7153 ;;
7154 *-*solaris*)
7155 # Find out which ABI we are using.
7156 echo 'int i;' > conftest.$ac_ext
7157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7158 (eval $ac_compile) 2>&5
7159 ac_status=$?
7160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7161 test $ac_status = 0; }; then
7162 case `/usr/bin/file conftest.o` in
7163 *64-bit*)
7164 case $lt_cv_prog_gnu_ld in
7165 yes*)
7166 case $host in
7167 i?86-*-solaris*)
7168 LD="${LD-ld} -m elf_x86_64"
7169 ;;
7170 sparc*-*-solaris*)
7171 LD="${LD-ld} -m elf64_sparc"
7172 ;;
7173 esac
7174 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7175 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7176 LD="${LD-ld}_sol2"
7177 fi
7178 ;;
7179 *)
7180 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7181 LD="${LD-ld} -64"
7182 fi
7183 ;;
7184 esac
7185 ;;
7186 esac
7187 fi
7188 rm -rf conftest*
7189 ;;
7190 esac
7191
7192 need_locks="$enable_libtool_lock"
7193
7194 if test -n "$ac_tool_prefix"; then
7195 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7196 set dummy ${ac_tool_prefix}mt; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 if test -n "$MANIFEST_TOOL"; then
7203 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216 done
7217 done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7223 if test -n "$MANIFEST_TOOL"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7225 $as_echo "$MANIFEST_TOOL" >&6; }
7226 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7229 fi
7230
7231
7232 fi
7233 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7234 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7235 # Extract the first word of "mt", so it can be a program name with args.
7236 set dummy mt; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 if test -n "$ac_ct_MANIFEST_TOOL"; then
7243 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7252 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256 done
7257 done
7258 IFS=$as_save_IFS
7259
7260 fi
7261 fi
7262 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7263 if test -n "$ac_ct_MANIFEST_TOOL"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7265 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7266 else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7269 fi
7270
7271 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7272 MANIFEST_TOOL=":"
7273 else
7274 case $cross_compiling:$ac_tool_warned in
7275 yes:)
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278 ac_tool_warned=yes ;;
7279 esac
7280 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7281 fi
7282 else
7283 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7284 fi
7285
7286 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7288 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7289 if ${lt_cv_path_mainfest_tool+:} false; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 lt_cv_path_mainfest_tool=no
7293 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7294 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7295 cat conftest.err >&5
7296 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7297 lt_cv_path_mainfest_tool=yes
7298 fi
7299 rm -f conftest*
7300 fi
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7302 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7303 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7304 MANIFEST_TOOL=:
7305 fi
7306
7307
7308
7309
7310
7311
7312 case $host_os in
7313 rhapsody* | darwin*)
7314 if test -n "$ac_tool_prefix"; then
7315 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7316 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 if test -n "$DSYMUTIL"; then
7323 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7332 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336 done
7337 done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7343 if test -n "$DSYMUTIL"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7345 $as_echo "$DSYMUTIL" >&6; }
7346 else
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351
7352 fi
7353 if test -z "$ac_cv_prog_DSYMUTIL"; then
7354 ac_ct_DSYMUTIL=$DSYMUTIL
7355 # Extract the first word of "dsymutil", so it can be a program name with args.
7356 set dummy dsymutil; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 if test -n "$ac_ct_DSYMUTIL"; then
7363 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7383 if test -n "$ac_ct_DSYMUTIL"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7385 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391 if test "x$ac_ct_DSYMUTIL" = x; then
7392 DSYMUTIL=":"
7393 else
7394 case $cross_compiling:$ac_tool_warned in
7395 yes:)
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7399 esac
7400 DSYMUTIL=$ac_ct_DSYMUTIL
7401 fi
7402 else
7403 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7404 fi
7405
7406 if test -n "$ac_tool_prefix"; then
7407 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_prog_NMEDIT+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 if test -n "$NMEDIT"; then
7415 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7427 fi
7428 done
7429 done
7430 IFS=$as_save_IFS
7431
7432 fi
7433 fi
7434 NMEDIT=$ac_cv_prog_NMEDIT
7435 if test -n "$NMEDIT"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7437 $as_echo "$NMEDIT" >&6; }
7438 else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7441 fi
7442
7443
7444 fi
7445 if test -z "$ac_cv_prog_NMEDIT"; then
7446 ac_ct_NMEDIT=$NMEDIT
7447 # Extract the first word of "nmedit", so it can be a program name with args.
7448 set dummy nmedit; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$ac_ct_NMEDIT"; then
7455 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7475 if test -n "$ac_ct_NMEDIT"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7477 $as_echo "$ac_ct_NMEDIT" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483 if test "x$ac_ct_NMEDIT" = x; then
7484 NMEDIT=":"
7485 else
7486 case $cross_compiling:$ac_tool_warned in
7487 yes:)
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7490 ac_tool_warned=yes ;;
7491 esac
7492 NMEDIT=$ac_ct_NMEDIT
7493 fi
7494 else
7495 NMEDIT="$ac_cv_prog_NMEDIT"
7496 fi
7497
7498 if test -n "$ac_tool_prefix"; then
7499 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7500 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if ${ac_cv_prog_LIPO+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 if test -n "$LIPO"; then
7507 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7516 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7519 fi
7520 done
7521 done
7522 IFS=$as_save_IFS
7523
7524 fi
7525 fi
7526 LIPO=$ac_cv_prog_LIPO
7527 if test -n "$LIPO"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7529 $as_echo "$LIPO" >&6; }
7530 else
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535
7536 fi
7537 if test -z "$ac_cv_prog_LIPO"; then
7538 ac_ct_LIPO=$LIPO
7539 # Extract the first word of "lipo", so it can be a program name with args.
7540 set dummy lipo; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 if test -n "$ac_ct_LIPO"; then
7547 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7556 ac_cv_prog_ac_ct_LIPO="lipo"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7559 fi
7560 done
7561 done
7562 IFS=$as_save_IFS
7563
7564 fi
7565 fi
7566 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7567 if test -n "$ac_ct_LIPO"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7569 $as_echo "$ac_ct_LIPO" >&6; }
7570 else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573 fi
7574
7575 if test "x$ac_ct_LIPO" = x; then
7576 LIPO=":"
7577 else
7578 case $cross_compiling:$ac_tool_warned in
7579 yes:)
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582 ac_tool_warned=yes ;;
7583 esac
7584 LIPO=$ac_ct_LIPO
7585 fi
7586 else
7587 LIPO="$ac_cv_prog_LIPO"
7588 fi
7589
7590 if test -n "$ac_tool_prefix"; then
7591 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7592 set dummy ${ac_tool_prefix}otool; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if ${ac_cv_prog_OTOOL+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 if test -n "$OTOOL"; then
7599 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7600 else
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612 done
7613 done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 OTOOL=$ac_cv_prog_OTOOL
7619 if test -n "$OTOOL"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7621 $as_echo "$OTOOL" >&6; }
7622 else
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 fi
7626
7627
7628 fi
7629 if test -z "$ac_cv_prog_OTOOL"; then
7630 ac_ct_OTOOL=$OTOOL
7631 # Extract the first word of "otool", so it can be a program name with args.
7632 set dummy otool; ac_word=$2
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634 $as_echo_n "checking for $ac_word... " >&6; }
7635 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 if test -n "$ac_ct_OTOOL"; then
7639 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7640 else
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7648 ac_cv_prog_ac_ct_OTOOL="otool"
7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 break 2
7651 fi
7652 done
7653 done
7654 IFS=$as_save_IFS
7655
7656 fi
7657 fi
7658 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7659 if test -n "$ac_ct_OTOOL"; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7661 $as_echo "$ac_ct_OTOOL" >&6; }
7662 else
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7665 fi
7666
7667 if test "x$ac_ct_OTOOL" = x; then
7668 OTOOL=":"
7669 else
7670 case $cross_compiling:$ac_tool_warned in
7671 yes:)
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7674 ac_tool_warned=yes ;;
7675 esac
7676 OTOOL=$ac_ct_OTOOL
7677 fi
7678 else
7679 OTOOL="$ac_cv_prog_OTOOL"
7680 fi
7681
7682 if test -n "$ac_tool_prefix"; then
7683 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7684 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if ${ac_cv_prog_OTOOL64+:} false; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 if test -n "$OTOOL64"; then
7691 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7695 do
7696 IFS=$as_save_IFS
7697 test -z "$as_dir" && as_dir=.
7698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7700 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 break 2
7703 fi
7704 done
7705 done
7706 IFS=$as_save_IFS
7707
7708 fi
7709 fi
7710 OTOOL64=$ac_cv_prog_OTOOL64
7711 if test -n "$OTOOL64"; then
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7713 $as_echo "$OTOOL64" >&6; }
7714 else
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7717 fi
7718
7719
7720 fi
7721 if test -z "$ac_cv_prog_OTOOL64"; then
7722 ac_ct_OTOOL64=$OTOOL64
7723 # Extract the first word of "otool64", so it can be a program name with args.
7724 set dummy otool64; ac_word=$2
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726 $as_echo_n "checking for $ac_word... " >&6; }
7727 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 if test -n "$ac_ct_OTOOL64"; then
7731 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7732 else
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7735 do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7740 ac_cv_prog_ac_ct_OTOOL64="otool64"
7741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 break 2
7743 fi
7744 done
7745 done
7746 IFS=$as_save_IFS
7747
7748 fi
7749 fi
7750 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7751 if test -n "$ac_ct_OTOOL64"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7753 $as_echo "$ac_ct_OTOOL64" >&6; }
7754 else
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7757 fi
7758
7759 if test "x$ac_ct_OTOOL64" = x; then
7760 OTOOL64=":"
7761 else
7762 case $cross_compiling:$ac_tool_warned in
7763 yes:)
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7766 ac_tool_warned=yes ;;
7767 esac
7768 OTOOL64=$ac_ct_OTOOL64
7769 fi
7770 else
7771 OTOOL64="$ac_cv_prog_OTOOL64"
7772 fi
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7801 $as_echo_n "checking for -single_module linker flag... " >&6; }
7802 if ${lt_cv_apple_cc_single_mod+:} false; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7805 lt_cv_apple_cc_single_mod=no
7806 if test -z "${LT_MULTI_MODULE}"; then
7807 # By default we will add the -single_module flag. You can override
7808 # by either setting the environment variable LT_MULTI_MODULE
7809 # non-empty at configure time, or by adding -multi_module to the
7810 # link flags.
7811 rm -rf libconftest.dylib*
7812 echo "int foo(void){return 1;}" > conftest.c
7813 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7814 -dynamiclib -Wl,-single_module conftest.c" >&5
7815 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7816 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7817 _lt_result=$?
7818 # If there is a non-empty error log, and "single_module"
7819 # appears in it, assume the flag caused a linker warning
7820 if test -s conftest.err && $GREP single_module conftest.err; then
7821 cat conftest.err >&5
7822 # Otherwise, if the output was created with a 0 exit code from
7823 # the compiler, it worked.
7824 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7825 lt_cv_apple_cc_single_mod=yes
7826 else
7827 cat conftest.err >&5
7828 fi
7829 rm -rf libconftest.dylib*
7830 rm -f conftest.*
7831 fi
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7834 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7835
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7837 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7838 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 lt_cv_ld_exported_symbols_list=no
7842 save_LDFLAGS=$LDFLAGS
7843 echo "_main" > conftest.sym
7844 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7847
7848 int
7849 main ()
7850 {
7851
7852 ;
7853 return 0;
7854 }
7855 _ACEOF
7856 if ac_fn_c_try_link "$LINENO"; then :
7857 lt_cv_ld_exported_symbols_list=yes
7858 else
7859 lt_cv_ld_exported_symbols_list=no
7860 fi
7861 rm -f core conftest.err conftest.$ac_objext \
7862 conftest$ac_exeext conftest.$ac_ext
7863 LDFLAGS="$save_LDFLAGS"
7864
7865 fi
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7867 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7868
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7870 $as_echo_n "checking for -force_load linker flag... " >&6; }
7871 if ${lt_cv_ld_force_load+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 lt_cv_ld_force_load=no
7875 cat > conftest.c << _LT_EOF
7876 int forced_loaded() { return 2;}
7877 _LT_EOF
7878 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7879 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7880 echo "$AR cru libconftest.a conftest.o" >&5
7881 $AR cru libconftest.a conftest.o 2>&5
7882 echo "$RANLIB libconftest.a" >&5
7883 $RANLIB libconftest.a 2>&5
7884 cat > conftest.c << _LT_EOF
7885 int main() { return 0;}
7886 _LT_EOF
7887 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7888 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7889 _lt_result=$?
7890 if test -s conftest.err && $GREP force_load conftest.err; then
7891 cat conftest.err >&5
7892 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7893 lt_cv_ld_force_load=yes
7894 else
7895 cat conftest.err >&5
7896 fi
7897 rm -f conftest.err libconftest.a conftest conftest.c
7898 rm -rf conftest.dSYM
7899
7900 fi
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7902 $as_echo "$lt_cv_ld_force_load" >&6; }
7903 case $host_os in
7904 rhapsody* | darwin1.[012])
7905 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7906 darwin1.*)
7907 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7908 darwin*) # darwin 5.x on
7909 # if running on 10.5 or later, the deployment target defaults
7910 # to the OS version, if on x86, and 10.4, the deployment
7911 # target defaults to 10.4. Don't you love it?
7912 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7913 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7914 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7915 10.[012]*)
7916 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7917 10.*)
7918 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7919 esac
7920 ;;
7921 esac
7922 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7923 _lt_dar_single_mod='$single_module'
7924 fi
7925 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7926 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7927 else
7928 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7929 fi
7930 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7931 _lt_dsymutil='~$DSYMUTIL $lib || :'
7932 else
7933 _lt_dsymutil=
7934 fi
7935 ;;
7936 esac
7937
7938
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7940 $as_echo_n "checking for ANSI C header files... " >&6; }
7941 if ${ac_cv_header_stdc+:} false; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7946 #include <stdlib.h>
7947 #include <stdarg.h>
7948 #include <string.h>
7949 #include <float.h>
7950
7951 int
7952 main ()
7953 {
7954
7955 ;
7956 return 0;
7957 }
7958 _ACEOF
7959 if ac_fn_c_try_compile "$LINENO"; then :
7960 ac_cv_header_stdc=yes
7961 else
7962 ac_cv_header_stdc=no
7963 fi
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965
7966 if test $ac_cv_header_stdc = yes; then
7967 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7970 #include <string.h>
7971
7972 _ACEOF
7973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7974 $EGREP "memchr" >/dev/null 2>&1; then :
7975
7976 else
7977 ac_cv_header_stdc=no
7978 fi
7979 rm -f conftest*
7980
7981 fi
7982
7983 if test $ac_cv_header_stdc = yes; then
7984 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987 #include <stdlib.h>
7988
7989 _ACEOF
7990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7991 $EGREP "free" >/dev/null 2>&1; then :
7992
7993 else
7994 ac_cv_header_stdc=no
7995 fi
7996 rm -f conftest*
7997
7998 fi
7999
8000 if test $ac_cv_header_stdc = yes; then
8001 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8002 if test "$cross_compiling" = yes; then :
8003 :
8004 else
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8007 #include <ctype.h>
8008 #include <stdlib.h>
8009 #if ((' ' & 0x0FF) == 0x020)
8010 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8011 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8012 #else
8013 # define ISLOWER(c) \
8014 (('a' <= (c) && (c) <= 'i') \
8015 || ('j' <= (c) && (c) <= 'r') \
8016 || ('s' <= (c) && (c) <= 'z'))
8017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8018 #endif
8019
8020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8021 int
8022 main ()
8023 {
8024 int i;
8025 for (i = 0; i < 256; i++)
8026 if (XOR (islower (i), ISLOWER (i))
8027 || toupper (i) != TOUPPER (i))
8028 return 2;
8029 return 0;
8030 }
8031 _ACEOF
8032 if ac_fn_c_try_run "$LINENO"; then :
8033
8034 else
8035 ac_cv_header_stdc=no
8036 fi
8037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8038 conftest.$ac_objext conftest.beam conftest.$ac_ext
8039 fi
8040
8041 fi
8042 fi
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8044 $as_echo "$ac_cv_header_stdc" >&6; }
8045 if test $ac_cv_header_stdc = yes; then
8046
8047 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8048
8049 fi
8050
8051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8052 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8053 inttypes.h stdint.h unistd.h
8054 do :
8055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8056 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8057 "
8058 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8059 cat >>confdefs.h <<_ACEOF
8060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8061 _ACEOF
8062
8063 fi
8064
8065 done
8066
8067
8068 for ac_header in dlfcn.h
8069 do :
8070 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8071 "
8072 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8073 cat >>confdefs.h <<_ACEOF
8074 #define HAVE_DLFCN_H 1
8075 _ACEOF
8076
8077 fi
8078
8079 done
8080
8081
8082
8083
8084 func_stripname_cnf ()
8085 {
8086 case ${2} in
8087 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8088 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8089 esac
8090 } # func_stripname_cnf
8091
8092
8093
8094
8095
8096 # Set options
8097
8098
8099
8100 enable_dlopen=no
8101
8102
8103 enable_win32_dll=no
8104
8105
8106 # Check whether --enable-shared was given.
8107 if test "${enable_shared+set}" = set; then :
8108 enableval=$enable_shared; p=${PACKAGE-default}
8109 case $enableval in
8110 yes) enable_shared=yes ;;
8111 no) enable_shared=no ;;
8112 *)
8113 enable_shared=no
8114 # Look at the argument we got. We use all the common list separators.
8115 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8116 for pkg in $enableval; do
8117 IFS="$lt_save_ifs"
8118 if test "X$pkg" = "X$p"; then
8119 enable_shared=yes
8120 fi
8121 done
8122 IFS="$lt_save_ifs"
8123 ;;
8124 esac
8125 else
8126 enable_shared=yes
8127 fi
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 # Check whether --enable-static was given.
8138 if test "${enable_static+set}" = set; then :
8139 enableval=$enable_static; p=${PACKAGE-default}
8140 case $enableval in
8141 yes) enable_static=yes ;;
8142 no) enable_static=no ;;
8143 *)
8144 enable_static=no
8145 # Look at the argument we got. We use all the common list separators.
8146 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8147 for pkg in $enableval; do
8148 IFS="$lt_save_ifs"
8149 if test "X$pkg" = "X$p"; then
8150 enable_static=yes
8151 fi
8152 done
8153 IFS="$lt_save_ifs"
8154 ;;
8155 esac
8156 else
8157 enable_static=yes
8158 fi
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169 # Check whether --with-pic was given.
8170 if test "${with_pic+set}" = set; then :
8171 withval=$with_pic; lt_p=${PACKAGE-default}
8172 case $withval in
8173 yes|no) pic_mode=$withval ;;
8174 *)
8175 pic_mode=default
8176 # Look at the argument we got. We use all the common list separators.
8177 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8178 for lt_pkg in $withval; do
8179 IFS="$lt_save_ifs"
8180 if test "X$lt_pkg" = "X$lt_p"; then
8181 pic_mode=yes
8182 fi
8183 done
8184 IFS="$lt_save_ifs"
8185 ;;
8186 esac
8187 else
8188 pic_mode=default
8189 fi
8190
8191
8192 test -z "$pic_mode" && pic_mode=default
8193
8194
8195
8196
8197
8198
8199
8200 # Check whether --enable-fast-install was given.
8201 if test "${enable_fast_install+set}" = set; then :
8202 enableval=$enable_fast_install; p=${PACKAGE-default}
8203 case $enableval in
8204 yes) enable_fast_install=yes ;;
8205 no) enable_fast_install=no ;;
8206 *)
8207 enable_fast_install=no
8208 # Look at the argument we got. We use all the common list separators.
8209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8210 for pkg in $enableval; do
8211 IFS="$lt_save_ifs"
8212 if test "X$pkg" = "X$p"; then
8213 enable_fast_install=yes
8214 fi
8215 done
8216 IFS="$lt_save_ifs"
8217 ;;
8218 esac
8219 else
8220 enable_fast_install=yes
8221 fi
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233 # This can be used to rebuild libtool when needed
8234 LIBTOOL_DEPS="$ltmain"
8235
8236 # Always use our own libtool.
8237 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268 test -z "$LN_S" && LN_S="ln -s"
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283 if test -n "${ZSH_VERSION+set}" ; then
8284 setopt NO_GLOB_SUBST
8285 fi
8286
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8288 $as_echo_n "checking for objdir... " >&6; }
8289 if ${lt_cv_objdir+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 rm -f .libs 2>/dev/null
8293 mkdir .libs 2>/dev/null
8294 if test -d .libs; then
8295 lt_cv_objdir=.libs
8296 else
8297 # MS-DOS does not allow filenames that begin with a dot.
8298 lt_cv_objdir=_libs
8299 fi
8300 rmdir .libs 2>/dev/null
8301 fi
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8303 $as_echo "$lt_cv_objdir" >&6; }
8304 objdir=$lt_cv_objdir
8305
8306
8307
8308
8309
8310 cat >>confdefs.h <<_ACEOF
8311 #define LT_OBJDIR "$lt_cv_objdir/"
8312 _ACEOF
8313
8314
8315
8316
8317 case $host_os in
8318 aix3*)
8319 # AIX sometimes has problems with the GCC collect2 program. For some
8320 # reason, if we set the COLLECT_NAMES environment variable, the problems
8321 # vanish in a puff of smoke.
8322 if test "X${COLLECT_NAMES+set}" != Xset; then
8323 COLLECT_NAMES=
8324 export COLLECT_NAMES
8325 fi
8326 ;;
8327 esac
8328
8329 # Global variables:
8330 ofile=libtool
8331 can_build_shared=yes
8332
8333 # All known linkers require a `.a' archive for static linking (except MSVC,
8334 # which needs '.lib').
8335 libext=a
8336
8337 with_gnu_ld="$lt_cv_prog_gnu_ld"
8338
8339 old_CC="$CC"
8340 old_CFLAGS="$CFLAGS"
8341
8342 # Set sane defaults for various variables
8343 test -z "$CC" && CC=cc
8344 test -z "$LTCC" && LTCC=$CC
8345 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8346 test -z "$LD" && LD=ld
8347 test -z "$ac_objext" && ac_objext=o
8348
8349 for cc_temp in $compiler""; do
8350 case $cc_temp in
8351 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8352 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8353 \-*) ;;
8354 *) break;;
8355 esac
8356 done
8357 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8358
8359
8360 # Only perform the check for file, if the check method requires it
8361 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8362 case $deplibs_check_method in
8363 file_magic*)
8364 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8366 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8367 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 case $MAGIC_CMD in
8371 [\\/*] | ?:[\\/]*)
8372 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8373 ;;
8374 *)
8375 lt_save_MAGIC_CMD="$MAGIC_CMD"
8376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8377 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8378 for ac_dir in $ac_dummy; do
8379 IFS="$lt_save_ifs"
8380 test -z "$ac_dir" && ac_dir=.
8381 if test -f $ac_dir/${ac_tool_prefix}file; then
8382 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8383 if test -n "$file_magic_test_file"; then
8384 case $deplibs_check_method in
8385 "file_magic "*)
8386 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8388 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8389 $EGREP "$file_magic_regex" > /dev/null; then
8390 :
8391 else
8392 cat <<_LT_EOF 1>&2
8393
8394 *** Warning: the command libtool uses to detect shared libraries,
8395 *** $file_magic_cmd, produces output that libtool cannot recognize.
8396 *** The result is that libtool may fail to recognize shared libraries
8397 *** as such. This will affect the creation of libtool libraries that
8398 *** depend on shared libraries, but programs linked with such libtool
8399 *** libraries will work regardless of this problem. Nevertheless, you
8400 *** may want to report the problem to your system manager and/or to
8401 *** [email protected]
8402
8403 _LT_EOF
8404 fi ;;
8405 esac
8406 fi
8407 break
8408 fi
8409 done
8410 IFS="$lt_save_ifs"
8411 MAGIC_CMD="$lt_save_MAGIC_CMD"
8412 ;;
8413 esac
8414 fi
8415
8416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8417 if test -n "$MAGIC_CMD"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8419 $as_echo "$MAGIC_CMD" >&6; }
8420 else
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8423 fi
8424
8425
8426
8427
8428
8429 if test -z "$lt_cv_path_MAGIC_CMD"; then
8430 if test -n "$ac_tool_prefix"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8432 $as_echo_n "checking for file... " >&6; }
8433 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8434 $as_echo_n "(cached) " >&6
8435 else
8436 case $MAGIC_CMD in
8437 [\\/*] | ?:[\\/]*)
8438 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8439 ;;
8440 *)
8441 lt_save_MAGIC_CMD="$MAGIC_CMD"
8442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8443 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8444 for ac_dir in $ac_dummy; do
8445 IFS="$lt_save_ifs"
8446 test -z "$ac_dir" && ac_dir=.
8447 if test -f $ac_dir/file; then
8448 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8449 if test -n "$file_magic_test_file"; then
8450 case $deplibs_check_method in
8451 "file_magic "*)
8452 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8454 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8455 $EGREP "$file_magic_regex" > /dev/null; then
8456 :
8457 else
8458 cat <<_LT_EOF 1>&2
8459
8460 *** Warning: the command libtool uses to detect shared libraries,
8461 *** $file_magic_cmd, produces output that libtool cannot recognize.
8462 *** The result is that libtool may fail to recognize shared libraries
8463 *** as such. This will affect the creation of libtool libraries that
8464 *** depend on shared libraries, but programs linked with such libtool
8465 *** libraries will work regardless of this problem. Nevertheless, you
8466 *** may want to report the problem to your system manager and/or to
8467 *** [email protected]
8468
8469 _LT_EOF
8470 fi ;;
8471 esac
8472 fi
8473 break
8474 fi
8475 done
8476 IFS="$lt_save_ifs"
8477 MAGIC_CMD="$lt_save_MAGIC_CMD"
8478 ;;
8479 esac
8480 fi
8481
8482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8483 if test -n "$MAGIC_CMD"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8485 $as_echo "$MAGIC_CMD" >&6; }
8486 else
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 $as_echo "no" >&6; }
8489 fi
8490
8491
8492 else
8493 MAGIC_CMD=:
8494 fi
8495 fi
8496
8497 fi
8498 ;;
8499 esac
8500
8501 # Use C for the default configuration in the libtool script
8502
8503 lt_save_CC="$CC"
8504 ac_ext=c
8505 ac_cpp='$CPP $CPPFLAGS'
8506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8509
8510
8511 # Source file extension for C test sources.
8512 ac_ext=c
8513
8514 # Object file extension for compiled C test sources.
8515 objext=o
8516 objext=$objext
8517
8518 # Code to be used in simple compile tests
8519 lt_simple_compile_test_code="int some_variable = 0;"
8520
8521 # Code to be used in simple link tests
8522 lt_simple_link_test_code='int main(){return(0);}'
8523
8524
8525
8526
8527
8528
8529
8530 # If no C compiler was specified, use CC.
8531 LTCC=${LTCC-"$CC"}
8532
8533 # If no C compiler flags were specified, use CFLAGS.
8534 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8535
8536 # Allow CC to be a program name with arguments.
8537 compiler=$CC
8538
8539 # Save the default compiler, since it gets overwritten when the other
8540 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8541 compiler_DEFAULT=$CC
8542
8543 # save warnings/boilerplate of simple test code
8544 ac_outfile=conftest.$ac_objext
8545 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8546 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8547 _lt_compiler_boilerplate=`cat conftest.err`
8548 $RM conftest*
8549
8550 ac_outfile=conftest.$ac_objext
8551 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8552 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8553 _lt_linker_boilerplate=`cat conftest.err`
8554 $RM -r conftest*
8555
8556
8557 ## CAVEAT EMPTOR:
8558 ## There is no encapsulation within the following macros, do not change
8559 ## the running order or otherwise move them around unless you know exactly
8560 ## what you are doing...
8561 if test -n "$compiler"; then
8562
8563 lt_prog_compiler_no_builtin_flag=
8564
8565 if test "$GCC" = yes; then
8566 case $cc_basename in
8567 nvcc*)
8568 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8569 *)
8570 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8571 esac
8572
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8574 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8575 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 lt_cv_prog_compiler_rtti_exceptions=no
8579 ac_outfile=conftest.$ac_objext
8580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8581 lt_compiler_flag="-fno-rtti -fno-exceptions"
8582 # Insert the option either (1) after the last *FLAGS variable, or
8583 # (2) before a word containing "conftest.", or (3) at the end.
8584 # Note that $ac_compile itself does not contain backslashes and begins
8585 # with a dollar sign (not a hyphen), so the echo should work correctly.
8586 # The option is referenced via a variable to avoid confusing sed.
8587 lt_compile=`echo "$ac_compile" | $SED \
8588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8590 -e 's:$: $lt_compiler_flag:'`
8591 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8592 (eval "$lt_compile" 2>conftest.err)
8593 ac_status=$?
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 if (exit $ac_status) && test -s "$ac_outfile"; then
8597 # The compiler can only warn and ignore the option if not recognized
8598 # So say no if there are warnings other than the usual output.
8599 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8600 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8601 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8602 lt_cv_prog_compiler_rtti_exceptions=yes
8603 fi
8604 fi
8605 $RM conftest*
8606
8607 fi
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8609 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8610
8611 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8612 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8613 else
8614 :
8615 fi
8616
8617 fi
8618
8619
8620
8621
8622
8623
8624 lt_prog_compiler_wl=
8625 lt_prog_compiler_pic=
8626 lt_prog_compiler_static=
8627
8628
8629 if test "$GCC" = yes; then
8630 lt_prog_compiler_wl='-Wl,'
8631 lt_prog_compiler_static='-static'
8632
8633 case $host_os in
8634 aix*)
8635 # All AIX code is PIC.
8636 if test "$host_cpu" = ia64; then
8637 # AIX 5 now supports IA64 processor
8638 lt_prog_compiler_static='-Bstatic'
8639 fi
8640 ;;
8641
8642 amigaos*)
8643 case $host_cpu in
8644 powerpc)
8645 # see comment about AmigaOS4 .so support
8646 lt_prog_compiler_pic='-fPIC'
8647 ;;
8648 m68k)
8649 # FIXME: we need at least 68020 code to build shared libraries, but
8650 # adding the `-m68020' flag to GCC prevents building anything better,
8651 # like `-m68040'.
8652 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8653 ;;
8654 esac
8655 ;;
8656
8657 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8658 # PIC is the default for these OSes.
8659 ;;
8660
8661 mingw* | cygwin* | pw32* | os2* | cegcc*)
8662 # This hack is so that the source file can tell whether it is being
8663 # built for inclusion in a dll (and should export symbols for example).
8664 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8665 # (--disable-auto-import) libraries
8666 lt_prog_compiler_pic='-DDLL_EXPORT'
8667 ;;
8668
8669 darwin* | rhapsody*)
8670 # PIC is the default on this platform
8671 # Common symbols not allowed in MH_DYLIB files
8672 lt_prog_compiler_pic='-fno-common'
8673 ;;
8674
8675 haiku*)
8676 # PIC is the default for Haiku.
8677 # The "-static" flag exists, but is broken.
8678 lt_prog_compiler_static=
8679 ;;
8680
8681 hpux*)
8682 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8683 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8684 # sets the default TLS model and affects inlining.
8685 case $host_cpu in
8686 hppa*64*)
8687 # +Z the default
8688 ;;
8689 *)
8690 lt_prog_compiler_pic='-fPIC'
8691 ;;
8692 esac
8693 ;;
8694
8695 interix[3-9]*)
8696 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8697 # Instead, we relocate shared libraries at runtime.
8698 ;;
8699
8700 msdosdjgpp*)
8701 # Just because we use GCC doesn't mean we suddenly get shared libraries
8702 # on systems that don't support them.
8703 lt_prog_compiler_can_build_shared=no
8704 enable_shared=no
8705 ;;
8706
8707 *nto* | *qnx*)
8708 # QNX uses GNU C++, but need to define -shared option too, otherwise
8709 # it will coredump.
8710 lt_prog_compiler_pic='-fPIC -shared'
8711 ;;
8712
8713 sysv4*MP*)
8714 if test -d /usr/nec; then
8715 lt_prog_compiler_pic=-Kconform_pic
8716 fi
8717 ;;
8718
8719 *)
8720 lt_prog_compiler_pic='-fPIC'
8721 ;;
8722 esac
8723
8724 case $cc_basename in
8725 nvcc*) # Cuda Compiler Driver 2.2
8726 lt_prog_compiler_wl='-Xlinker '
8727 if test -n "$lt_prog_compiler_pic"; then
8728 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8729 fi
8730 ;;
8731 esac
8732 else
8733 # PORTME Check for flag to pass linker flags through the system compiler.
8734 case $host_os in
8735 aix*)
8736 lt_prog_compiler_wl='-Wl,'
8737 if test "$host_cpu" = ia64; then
8738 # AIX 5 now supports IA64 processor
8739 lt_prog_compiler_static='-Bstatic'
8740 else
8741 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8742 fi
8743 ;;
8744
8745 mingw* | cygwin* | pw32* | os2* | cegcc*)
8746 # This hack is so that the source file can tell whether it is being
8747 # built for inclusion in a dll (and should export symbols for example).
8748 lt_prog_compiler_pic='-DDLL_EXPORT'
8749 ;;
8750
8751 hpux9* | hpux10* | hpux11*)
8752 lt_prog_compiler_wl='-Wl,'
8753 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8754 # not for PA HP-UX.
8755 case $host_cpu in
8756 hppa*64*|ia64*)
8757 # +Z the default
8758 ;;
8759 *)
8760 lt_prog_compiler_pic='+Z'
8761 ;;
8762 esac
8763 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8764 lt_prog_compiler_static='${wl}-a ${wl}archive'
8765 ;;
8766
8767 irix5* | irix6* | nonstopux*)
8768 lt_prog_compiler_wl='-Wl,'
8769 # PIC (with -KPIC) is the default.
8770 lt_prog_compiler_static='-non_shared'
8771 ;;
8772
8773 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8774 case $cc_basename in
8775 # old Intel for x86_64 which still supported -KPIC.
8776 ecc*)
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-KPIC'
8779 lt_prog_compiler_static='-static'
8780 ;;
8781 # icc used to be incompatible with GCC.
8782 # ICC 10 doesn't accept -KPIC any more.
8783 icc* | ifort*)
8784 lt_prog_compiler_wl='-Wl,'
8785 lt_prog_compiler_pic='-fPIC'
8786 lt_prog_compiler_static='-static'
8787 ;;
8788 # Lahey Fortran 8.1.
8789 lf95*)
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_pic='--shared'
8792 lt_prog_compiler_static='--static'
8793 ;;
8794 nagfor*)
8795 # NAG Fortran compiler
8796 lt_prog_compiler_wl='-Wl,-Wl,,'
8797 lt_prog_compiler_pic='-PIC'
8798 lt_prog_compiler_static='-Bstatic'
8799 ;;
8800 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8801 # Portland Group compilers (*not* the Pentium gcc compiler,
8802 # which looks to be a dead project)
8803 lt_prog_compiler_wl='-Wl,'
8804 lt_prog_compiler_pic='-fpic'
8805 lt_prog_compiler_static='-Bstatic'
8806 ;;
8807 ccc*)
8808 lt_prog_compiler_wl='-Wl,'
8809 # All Alpha code is PIC.
8810 lt_prog_compiler_static='-non_shared'
8811 ;;
8812 xl* | bgxl* | bgf* | mpixl*)
8813 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8814 lt_prog_compiler_wl='-Wl,'
8815 lt_prog_compiler_pic='-qpic'
8816 lt_prog_compiler_static='-qstaticlink'
8817 ;;
8818 *)
8819 case `$CC -V 2>&1 | sed 5q` in
8820 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8821 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8822 lt_prog_compiler_pic='-KPIC'
8823 lt_prog_compiler_static='-Bstatic'
8824 lt_prog_compiler_wl=''
8825 ;;
8826 *Sun\ F* | *Sun*Fortran*)
8827 lt_prog_compiler_pic='-KPIC'
8828 lt_prog_compiler_static='-Bstatic'
8829 lt_prog_compiler_wl='-Qoption ld '
8830 ;;
8831 *Sun\ C*)
8832 # Sun C 5.9
8833 lt_prog_compiler_pic='-KPIC'
8834 lt_prog_compiler_static='-Bstatic'
8835 lt_prog_compiler_wl='-Wl,'
8836 ;;
8837 *Intel*\ [CF]*Compiler*)
8838 lt_prog_compiler_wl='-Wl,'
8839 lt_prog_compiler_pic='-fPIC'
8840 lt_prog_compiler_static='-static'
8841 ;;
8842 *Portland\ Group*)
8843 lt_prog_compiler_wl='-Wl,'
8844 lt_prog_compiler_pic='-fpic'
8845 lt_prog_compiler_static='-Bstatic'
8846 ;;
8847 esac
8848 ;;
8849 esac
8850 ;;
8851
8852 newsos6)
8853 lt_prog_compiler_pic='-KPIC'
8854 lt_prog_compiler_static='-Bstatic'
8855 ;;
8856
8857 *nto* | *qnx*)
8858 # QNX uses GNU C++, but need to define -shared option too, otherwise
8859 # it will coredump.
8860 lt_prog_compiler_pic='-fPIC -shared'
8861 ;;
8862
8863 osf3* | osf4* | osf5*)
8864 lt_prog_compiler_wl='-Wl,'
8865 # All OSF/1 code is PIC.
8866 lt_prog_compiler_static='-non_shared'
8867 ;;
8868
8869 rdos*)
8870 lt_prog_compiler_static='-non_shared'
8871 ;;
8872
8873 solaris*)
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-Bstatic'
8876 case $cc_basename in
8877 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8878 lt_prog_compiler_wl='-Qoption ld ';;
8879 *)
8880 lt_prog_compiler_wl='-Wl,';;
8881 esac
8882 ;;
8883
8884 sunos4*)
8885 lt_prog_compiler_wl='-Qoption ld '
8886 lt_prog_compiler_pic='-PIC'
8887 lt_prog_compiler_static='-Bstatic'
8888 ;;
8889
8890 sysv4 | sysv4.2uw2* | sysv4.3*)
8891 lt_prog_compiler_wl='-Wl,'
8892 lt_prog_compiler_pic='-KPIC'
8893 lt_prog_compiler_static='-Bstatic'
8894 ;;
8895
8896 sysv4*MP*)
8897 if test -d /usr/nec ;then
8898 lt_prog_compiler_pic='-Kconform_pic'
8899 lt_prog_compiler_static='-Bstatic'
8900 fi
8901 ;;
8902
8903 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8904 lt_prog_compiler_wl='-Wl,'
8905 lt_prog_compiler_pic='-KPIC'
8906 lt_prog_compiler_static='-Bstatic'
8907 ;;
8908
8909 unicos*)
8910 lt_prog_compiler_wl='-Wl,'
8911 lt_prog_compiler_can_build_shared=no
8912 ;;
8913
8914 uts4*)
8915 lt_prog_compiler_pic='-pic'
8916 lt_prog_compiler_static='-Bstatic'
8917 ;;
8918
8919 *)
8920 lt_prog_compiler_can_build_shared=no
8921 ;;
8922 esac
8923 fi
8924
8925 case $host_os in
8926 # For platforms which do not support PIC, -DPIC is meaningless:
8927 *djgpp*)
8928 lt_prog_compiler_pic=
8929 ;;
8930 *)
8931 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8932 ;;
8933 esac
8934
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8936 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8937 if ${lt_cv_prog_compiler_pic+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8941 fi
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8943 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8944 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8945
8946 #
8947 # Check to make sure the PIC flag actually works.
8948 #
8949 if test -n "$lt_prog_compiler_pic"; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8951 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8952 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8953 $as_echo_n "(cached) " >&6
8954 else
8955 lt_cv_prog_compiler_pic_works=no
8956 ac_outfile=conftest.$ac_objext
8957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8958 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8959 # Insert the option either (1) after the last *FLAGS variable, or
8960 # (2) before a word containing "conftest.", or (3) at the end.
8961 # Note that $ac_compile itself does not contain backslashes and begins
8962 # with a dollar sign (not a hyphen), so the echo should work correctly.
8963 # The option is referenced via a variable to avoid confusing sed.
8964 lt_compile=`echo "$ac_compile" | $SED \
8965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8967 -e 's:$: $lt_compiler_flag:'`
8968 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8969 (eval "$lt_compile" 2>conftest.err)
8970 ac_status=$?
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 if (exit $ac_status) && test -s "$ac_outfile"; then
8974 # The compiler can only warn and ignore the option if not recognized
8975 # So say no if there are warnings other than the usual output.
8976 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8978 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8979 lt_cv_prog_compiler_pic_works=yes
8980 fi
8981 fi
8982 $RM conftest*
8983
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8986 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8987
8988 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8989 case $lt_prog_compiler_pic in
8990 "" | " "*) ;;
8991 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8992 esac
8993 else
8994 lt_prog_compiler_pic=
8995 lt_prog_compiler_can_build_shared=no
8996 fi
8997
8998 fi
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010 #
9011 # Check to make sure the static flag actually works.
9012 #
9013 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9015 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9016 if ${lt_cv_prog_compiler_static_works+:} false; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 lt_cv_prog_compiler_static_works=no
9020 save_LDFLAGS="$LDFLAGS"
9021 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9022 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9023 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9024 # The linker can only warn and ignore the option if not recognized
9025 # So say no if there are warnings
9026 if test -s conftest.err; then
9027 # Append any errors to the config.log.
9028 cat conftest.err 1>&5
9029 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9031 if diff conftest.exp conftest.er2 >/dev/null; then
9032 lt_cv_prog_compiler_static_works=yes
9033 fi
9034 else
9035 lt_cv_prog_compiler_static_works=yes
9036 fi
9037 fi
9038 $RM -r conftest*
9039 LDFLAGS="$save_LDFLAGS"
9040
9041 fi
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9043 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9044
9045 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9046 :
9047 else
9048 lt_prog_compiler_static=
9049 fi
9050
9051
9052
9053
9054
9055
9056
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9058 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9059 if ${lt_cv_prog_compiler_c_o+:} false; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 lt_cv_prog_compiler_c_o=no
9063 $RM -r conftest 2>/dev/null
9064 mkdir conftest
9065 cd conftest
9066 mkdir out
9067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9068
9069 lt_compiler_flag="-o out/conftest2.$ac_objext"
9070 # Insert the option either (1) after the last *FLAGS variable, or
9071 # (2) before a word containing "conftest.", or (3) at the end.
9072 # Note that $ac_compile itself does not contain backslashes and begins
9073 # with a dollar sign (not a hyphen), so the echo should work correctly.
9074 lt_compile=`echo "$ac_compile" | $SED \
9075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9077 -e 's:$: $lt_compiler_flag:'`
9078 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9079 (eval "$lt_compile" 2>out/conftest.err)
9080 ac_status=$?
9081 cat out/conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9084 then
9085 # The compiler can only warn and ignore the option if not recognized
9086 # So say no if there are warnings
9087 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9088 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9089 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9090 lt_cv_prog_compiler_c_o=yes
9091 fi
9092 fi
9093 chmod u+w . 2>&5
9094 $RM conftest*
9095 # SGI C++ compiler will create directory out/ii_files/ for
9096 # template instantiation
9097 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9098 $RM out/* && rmdir out
9099 cd ..
9100 $RM -r conftest
9101 $RM conftest*
9102
9103 fi
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9105 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9106
9107
9108
9109
9110
9111
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9113 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9114 if ${lt_cv_prog_compiler_c_o+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 lt_cv_prog_compiler_c_o=no
9118 $RM -r conftest 2>/dev/null
9119 mkdir conftest
9120 cd conftest
9121 mkdir out
9122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9123
9124 lt_compiler_flag="-o out/conftest2.$ac_objext"
9125 # Insert the option either (1) after the last *FLAGS variable, or
9126 # (2) before a word containing "conftest.", or (3) at the end.
9127 # Note that $ac_compile itself does not contain backslashes and begins
9128 # with a dollar sign (not a hyphen), so the echo should work correctly.
9129 lt_compile=`echo "$ac_compile" | $SED \
9130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9132 -e 's:$: $lt_compiler_flag:'`
9133 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9134 (eval "$lt_compile" 2>out/conftest.err)
9135 ac_status=$?
9136 cat out/conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9139 then
9140 # The compiler can only warn and ignore the option if not recognized
9141 # So say no if there are warnings
9142 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9143 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9144 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9145 lt_cv_prog_compiler_c_o=yes
9146 fi
9147 fi
9148 chmod u+w . 2>&5
9149 $RM conftest*
9150 # SGI C++ compiler will create directory out/ii_files/ for
9151 # template instantiation
9152 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9153 $RM out/* && rmdir out
9154 cd ..
9155 $RM -r conftest
9156 $RM conftest*
9157
9158 fi
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9160 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9161
9162
9163
9164
9165 hard_links="nottested"
9166 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9167 # do not overwrite the value of need_locks provided by the user
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9169 $as_echo_n "checking if we can lock with hard links... " >&6; }
9170 hard_links=yes
9171 $RM conftest*
9172 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9173 touch conftest.a
9174 ln conftest.a conftest.b 2>&5 || hard_links=no
9175 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9177 $as_echo "$hard_links" >&6; }
9178 if test "$hard_links" = no; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9180 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9181 need_locks=warn
9182 fi
9183 else
9184 need_locks=no
9185 fi
9186
9187
9188
9189
9190
9191
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9193 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9194
9195 runpath_var=
9196 allow_undefined_flag=
9197 always_export_symbols=no
9198 archive_cmds=
9199 archive_expsym_cmds=
9200 compiler_needs_object=no
9201 enable_shared_with_static_runtimes=no
9202 export_dynamic_flag_spec=
9203 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9204 hardcode_automatic=no
9205 hardcode_direct=no
9206 hardcode_direct_absolute=no
9207 hardcode_libdir_flag_spec=
9208 hardcode_libdir_separator=
9209 hardcode_minus_L=no
9210 hardcode_shlibpath_var=unsupported
9211 inherit_rpath=no
9212 link_all_deplibs=unknown
9213 module_cmds=
9214 module_expsym_cmds=
9215 old_archive_from_new_cmds=
9216 old_archive_from_expsyms_cmds=
9217 thread_safe_flag_spec=
9218 whole_archive_flag_spec=
9219 # include_expsyms should be a list of space-separated symbols to be *always*
9220 # included in the symbol list
9221 include_expsyms=
9222 # exclude_expsyms can be an extended regexp of symbols to exclude
9223 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9224 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9225 # as well as any symbol that contains `d'.
9226 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9227 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9228 # platforms (ab)use it in PIC code, but their linkers get confused if
9229 # the symbol is explicitly referenced. Since portable code cannot
9230 # rely on this symbol name, it's probably fine to never include it in
9231 # preloaded symbol tables.
9232 # Exclude shared library initialization/finalization symbols.
9233 extract_expsyms_cmds=
9234
9235 case $host_os in
9236 cygwin* | mingw* | pw32* | cegcc*)
9237 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9238 # When not using gcc, we currently assume that we are using
9239 # Microsoft Visual C++.
9240 if test "$GCC" != yes; then
9241 with_gnu_ld=no
9242 fi
9243 ;;
9244 interix*)
9245 # we just hope/assume this is gcc and not c89 (= MSVC++)
9246 with_gnu_ld=yes
9247 ;;
9248 openbsd*)
9249 with_gnu_ld=no
9250 ;;
9251 linux* | k*bsd*-gnu | gnu*)
9252 link_all_deplibs=no
9253 ;;
9254 esac
9255
9256 ld_shlibs=yes
9257
9258 # On some targets, GNU ld is compatible enough with the native linker
9259 # that we're better off using the native interface for both.
9260 lt_use_gnu_ld_interface=no
9261 if test "$with_gnu_ld" = yes; then
9262 case $host_os in
9263 aix*)
9264 # The AIX port of GNU ld has always aspired to compatibility
9265 # with the native linker. However, as the warning in the GNU ld
9266 # block says, versions before 2.19.5* couldn't really create working
9267 # shared libraries, regardless of the interface used.
9268 case `$LD -v 2>&1` in
9269 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9270 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9271 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9272 *)
9273 lt_use_gnu_ld_interface=yes
9274 ;;
9275 esac
9276 ;;
9277 *)
9278 lt_use_gnu_ld_interface=yes
9279 ;;
9280 esac
9281 fi
9282
9283 if test "$lt_use_gnu_ld_interface" = yes; then
9284 # If archive_cmds runs LD, not CC, wlarc should be empty
9285 wlarc='${wl}'
9286
9287 # Set some defaults for GNU ld with shared library support. These
9288 # are reset later if shared libraries are not supported. Putting them
9289 # here allows them to be overridden if necessary.
9290 runpath_var=LD_RUN_PATH
9291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292 export_dynamic_flag_spec='${wl}--export-dynamic'
9293 # ancient GNU ld didn't support --whole-archive et. al.
9294 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9295 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9296 else
9297 whole_archive_flag_spec=
9298 fi
9299 supports_anon_versioning=no
9300 case `$LD -v 2>&1` in
9301 *GNU\ gold*) supports_anon_versioning=yes ;;
9302 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9303 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9304 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9305 *\ 2.11.*) ;; # other 2.11 versions
9306 *) supports_anon_versioning=yes ;;
9307 esac
9308
9309 # See if GNU ld supports shared libraries.
9310 case $host_os in
9311 aix[3-9]*)
9312 # On AIX/PPC, the GNU linker is very broken
9313 if test "$host_cpu" != ia64; then
9314 ld_shlibs=no
9315 cat <<_LT_EOF 1>&2
9316
9317 *** Warning: the GNU linker, at least up to release 2.19, is reported
9318 *** to be unable to reliably create shared libraries on AIX.
9319 *** Therefore, libtool is disabling shared libraries support. If you
9320 *** really care for shared libraries, you may want to install binutils
9321 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9322 *** You will then need to restart the configuration process.
9323
9324 _LT_EOF
9325 fi
9326 ;;
9327
9328 amigaos*)
9329 case $host_cpu in
9330 powerpc)
9331 # see comment about AmigaOS4 .so support
9332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333 archive_expsym_cmds=''
9334 ;;
9335 m68k)
9336 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)'
9337 hardcode_libdir_flag_spec='-L$libdir'
9338 hardcode_minus_L=yes
9339 ;;
9340 esac
9341 ;;
9342
9343 beos*)
9344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9345 allow_undefined_flag=unsupported
9346 # Joseph Beckenbach <[email protected]> says some releases of gcc
9347 # support --undefined. This deserves some investigation. FIXME
9348 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349 else
9350 ld_shlibs=no
9351 fi
9352 ;;
9353
9354 cygwin* | mingw* | pw32* | cegcc*)
9355 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9356 # as there is no search path for DLLs.
9357 hardcode_libdir_flag_spec='-L$libdir'
9358 export_dynamic_flag_spec='${wl}--export-all-symbols'
9359 allow_undefined_flag=unsupported
9360 always_export_symbols=no
9361 enable_shared_with_static_runtimes=yes
9362 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9363 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9364
9365 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9367 # If the export-symbols file already is a .def file (1st line
9368 # is EXPORTS), use it as is; otherwise, prepend...
9369 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9370 cp $export_symbols $output_objdir/$soname.def;
9371 else
9372 echo EXPORTS > $output_objdir/$soname.def;
9373 cat $export_symbols >> $output_objdir/$soname.def;
9374 fi~
9375 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9376 else
9377 ld_shlibs=no
9378 fi
9379 ;;
9380
9381 haiku*)
9382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383 link_all_deplibs=yes
9384 ;;
9385
9386 interix[3-9]*)
9387 hardcode_direct=no
9388 hardcode_shlibpath_var=no
9389 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9390 export_dynamic_flag_spec='${wl}-E'
9391 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9392 # Instead, shared libraries are loaded at an image base (0x10000000 by
9393 # default) and relocated if they conflict, which is a slow very memory
9394 # consuming and fragmenting process. To avoid this, we pick a random,
9395 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9396 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9398 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'
9399 ;;
9400
9401 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9402 tmp_diet=no
9403 if test "$host_os" = linux-dietlibc; then
9404 case $cc_basename in
9405 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9406 esac
9407 fi
9408 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9409 && test "$tmp_diet" = no
9410 then
9411 tmp_addflag=' $pic_flag'
9412 tmp_sharedflag='-shared'
9413 case $cc_basename,$host_cpu in
9414 pgcc*) # Portland Group C compiler
9415 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'
9416 tmp_addflag=' $pic_flag'
9417 ;;
9418 pgf77* | pgf90* | pgf95* | pgfortran*)
9419 # Portland Group f77 and f90 compilers
9420 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'
9421 tmp_addflag=' $pic_flag -Mnomain' ;;
9422 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9423 tmp_addflag=' -i_dynamic' ;;
9424 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9425 tmp_addflag=' -i_dynamic -nofor_main' ;;
9426 ifc* | ifort*) # Intel Fortran compiler
9427 tmp_addflag=' -nofor_main' ;;
9428 lf95*) # Lahey Fortran 8.1
9429 whole_archive_flag_spec=
9430 tmp_sharedflag='--shared' ;;
9431 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9432 tmp_sharedflag='-qmkshrobj'
9433 tmp_addflag= ;;
9434 nvcc*) # Cuda Compiler Driver 2.2
9435 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'
9436 compiler_needs_object=yes
9437 ;;
9438 esac
9439 case `$CC -V 2>&1 | sed 5q` in
9440 *Sun\ C*) # Sun C 5.9
9441 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'
9442 compiler_needs_object=yes
9443 tmp_sharedflag='-G' ;;
9444 *Sun\ F*) # Sun Fortran 8.3
9445 tmp_sharedflag='-G' ;;
9446 esac
9447 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9448
9449 if test "x$supports_anon_versioning" = xyes; then
9450 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9451 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9452 echo "local: *; };" >> $output_objdir/$libname.ver~
9453 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9454 fi
9455
9456 case $cc_basename in
9457 xlf* | bgf* | bgxlf* | mpixlf*)
9458 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9459 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9461 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9462 if test "x$supports_anon_versioning" = xyes; then
9463 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9465 echo "local: *; };" >> $output_objdir/$libname.ver~
9466 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9467 fi
9468 ;;
9469 esac
9470 else
9471 ld_shlibs=no
9472 fi
9473 ;;
9474
9475 netbsd* | netbsdelf*-gnu)
9476 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9477 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9478 wlarc=
9479 else
9480 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9481 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9482 fi
9483 ;;
9484
9485 solaris*)
9486 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9487 ld_shlibs=no
9488 cat <<_LT_EOF 1>&2
9489
9490 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9491 *** create shared libraries on Solaris systems. Therefore, libtool
9492 *** is disabling shared libraries support. We urge you to upgrade GNU
9493 *** binutils to release 2.9.1 or newer. Another option is to modify
9494 *** your PATH or compiler configuration so that the native linker is
9495 *** used, and then restart.
9496
9497 _LT_EOF
9498 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9499 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9500 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9501 else
9502 ld_shlibs=no
9503 fi
9504 ;;
9505
9506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9507 case `$LD -v 2>&1` in
9508 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9509 ld_shlibs=no
9510 cat <<_LT_EOF 1>&2
9511
9512 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9513 *** reliably create shared libraries on SCO systems. Therefore, libtool
9514 *** is disabling shared libraries support. We urge you to upgrade GNU
9515 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9516 *** your PATH or compiler configuration so that the native linker is
9517 *** used, and then restart.
9518
9519 _LT_EOF
9520 ;;
9521 *)
9522 # For security reasons, it is highly recommended that you always
9523 # use absolute paths for naming shared libraries, and exclude the
9524 # DT_RUNPATH tag from executables and libraries. But doing so
9525 # requires that you compile everything twice, which is a pain.
9526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9529 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9530 else
9531 ld_shlibs=no
9532 fi
9533 ;;
9534 esac
9535 ;;
9536
9537 sunos4*)
9538 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9539 wlarc=
9540 hardcode_direct=yes
9541 hardcode_shlibpath_var=no
9542 ;;
9543
9544 *)
9545 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9546 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9548 else
9549 ld_shlibs=no
9550 fi
9551 ;;
9552 esac
9553
9554 if test "$ld_shlibs" = no; then
9555 runpath_var=
9556 hardcode_libdir_flag_spec=
9557 export_dynamic_flag_spec=
9558 whole_archive_flag_spec=
9559 fi
9560 else
9561 # PORTME fill in a description of your system's linker (not GNU ld)
9562 case $host_os in
9563 aix3*)
9564 allow_undefined_flag=unsupported
9565 always_export_symbols=yes
9566 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'
9567 # Note: this linker hardcodes the directories in LIBPATH if there
9568 # are no directories specified by -L.
9569 hardcode_minus_L=yes
9570 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9571 # Neither direct hardcoding nor static linking is supported with a
9572 # broken collect2.
9573 hardcode_direct=unsupported
9574 fi
9575 ;;
9576
9577 aix[4-9]*)
9578 if test "$host_cpu" = ia64; then
9579 # On IA64, the linker does run time linking by default, so we don't
9580 # have to do anything special.
9581 aix_use_runtimelinking=no
9582 exp_sym_flag='-Bexport'
9583 no_entry_flag=""
9584 else
9585 # If we're using GNU nm, then we don't want the "-C" option.
9586 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9587 # Also, AIX nm treats weak defined symbols like other global
9588 # defined symbols, whereas GNU nm marks them as "W".
9589 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9590 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'
9591 else
9592 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9593 fi
9594 aix_use_runtimelinking=no
9595
9596 # Test if we are trying to use run time linking or normal
9597 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9598 # need to do runtime linking.
9599 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9600 for ld_flag in $LDFLAGS; do
9601 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9602 aix_use_runtimelinking=yes
9603 break
9604 fi
9605 done
9606 ;;
9607 esac
9608
9609 exp_sym_flag='-bexport'
9610 no_entry_flag='-bnoentry'
9611 fi
9612
9613 # When large executables or shared objects are built, AIX ld can
9614 # have problems creating the table of contents. If linking a library
9615 # or program results in "error TOC overflow" add -mminimal-toc to
9616 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9617 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9618
9619 archive_cmds=''
9620 hardcode_direct=yes
9621 hardcode_direct_absolute=yes
9622 hardcode_libdir_separator=':'
9623 link_all_deplibs=yes
9624 file_list_spec='${wl}-f,'
9625
9626 if test "$GCC" = yes; then
9627 case $host_os in aix4.[012]|aix4.[012].*)
9628 # We only want to do this on AIX 4.2 and lower, the check
9629 # below for broken collect2 doesn't work under 4.3+
9630 collect2name=`${CC} -print-prog-name=collect2`
9631 if test -f "$collect2name" &&
9632 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9633 then
9634 # We have reworked collect2
9635 :
9636 else
9637 # We have old collect2
9638 hardcode_direct=unsupported
9639 # It fails to find uninstalled libraries when the uninstalled
9640 # path is not listed in the libpath. Setting hardcode_minus_L
9641 # to unsupported forces relinking
9642 hardcode_minus_L=yes
9643 hardcode_libdir_flag_spec='-L$libdir'
9644 hardcode_libdir_separator=
9645 fi
9646 ;;
9647 esac
9648 shared_flag='-shared'
9649 if test "$aix_use_runtimelinking" = yes; then
9650 shared_flag="$shared_flag "'${wl}-G'
9651 fi
9652 link_all_deplibs=no
9653 else
9654 # not using gcc
9655 if test "$host_cpu" = ia64; then
9656 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9657 # chokes on -Wl,-G. The following line is correct:
9658 shared_flag='-G'
9659 else
9660 if test "$aix_use_runtimelinking" = yes; then
9661 shared_flag='${wl}-G'
9662 else
9663 shared_flag='${wl}-bM:SRE'
9664 fi
9665 fi
9666 fi
9667
9668 export_dynamic_flag_spec='${wl}-bexpall'
9669 # It seems that -bexpall does not export symbols beginning with
9670 # underscore (_), so it is better to generate a list of symbols to export.
9671 always_export_symbols=yes
9672 if test "$aix_use_runtimelinking" = yes; then
9673 # Warning - without using the other runtime loading flags (-brtl),
9674 # -berok will link without error, but may produce a broken library.
9675 allow_undefined_flag='-berok'
9676 # Determine the default libpath from the value encoded in an
9677 # empty executable.
9678 if test "${lt_cv_aix_libpath+set}" = set; then
9679 aix_libpath=$lt_cv_aix_libpath
9680 else
9681 if ${lt_cv_aix_libpath_+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686
9687 int
9688 main ()
9689 {
9690
9691 ;
9692 return 0;
9693 }
9694 _ACEOF
9695 if ac_fn_c_try_link "$LINENO"; then :
9696
9697 lt_aix_libpath_sed='
9698 /Import File Strings/,/^$/ {
9699 /^0/ {
9700 s/^0 *\([^ ]*\) *$/\1/
9701 p
9702 }
9703 }'
9704 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9705 # Check for a 64-bit object if we didn't find anything.
9706 if test -z "$lt_cv_aix_libpath_"; then
9707 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9708 fi
9709 fi
9710 rm -f core conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
9712 if test -z "$lt_cv_aix_libpath_"; then
9713 lt_cv_aix_libpath_="/usr/lib:/lib"
9714 fi
9715
9716 fi
9717
9718 aix_libpath=$lt_cv_aix_libpath_
9719 fi
9720
9721 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9722 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"
9723 else
9724 if test "$host_cpu" = ia64; then
9725 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9726 allow_undefined_flag="-z nodefs"
9727 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"
9728 else
9729 # Determine the default libpath from the value encoded in an
9730 # empty executable.
9731 if test "${lt_cv_aix_libpath+set}" = set; then
9732 aix_libpath=$lt_cv_aix_libpath
9733 else
9734 if ${lt_cv_aix_libpath_+:} false; then :
9735 $as_echo_n "(cached) " >&6
9736 else
9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738 /* end confdefs.h. */
9739
9740 int
9741 main ()
9742 {
9743
9744 ;
9745 return 0;
9746 }
9747 _ACEOF
9748 if ac_fn_c_try_link "$LINENO"; then :
9749
9750 lt_aix_libpath_sed='
9751 /Import File Strings/,/^$/ {
9752 /^0/ {
9753 s/^0 *\([^ ]*\) *$/\1/
9754 p
9755 }
9756 }'
9757 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9758 # Check for a 64-bit object if we didn't find anything.
9759 if test -z "$lt_cv_aix_libpath_"; then
9760 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9761 fi
9762 fi
9763 rm -f core conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765 if test -z "$lt_cv_aix_libpath_"; then
9766 lt_cv_aix_libpath_="/usr/lib:/lib"
9767 fi
9768
9769 fi
9770
9771 aix_libpath=$lt_cv_aix_libpath_
9772 fi
9773
9774 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9775 # Warning - without using the other run time loading flags,
9776 # -berok will link without error, but may produce a broken library.
9777 no_undefined_flag=' ${wl}-bernotok'
9778 allow_undefined_flag=' ${wl}-berok'
9779 if test "$with_gnu_ld" = yes; then
9780 # We only use this code for GNU lds that support --whole-archive.
9781 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9782 else
9783 # Exported symbols can be pulled into shared objects from archives
9784 whole_archive_flag_spec='$convenience'
9785 fi
9786 archive_cmds_need_lc=yes
9787 # This is similar to how AIX traditionally builds its shared libraries.
9788 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'
9789 fi
9790 fi
9791 ;;
9792
9793 amigaos*)
9794 case $host_cpu in
9795 powerpc)
9796 # see comment about AmigaOS4 .so support
9797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798 archive_expsym_cmds=''
9799 ;;
9800 m68k)
9801 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)'
9802 hardcode_libdir_flag_spec='-L$libdir'
9803 hardcode_minus_L=yes
9804 ;;
9805 esac
9806 ;;
9807
9808 bsdi[45]*)
9809 export_dynamic_flag_spec=-rdynamic
9810 ;;
9811
9812 cygwin* | mingw* | pw32* | cegcc*)
9813 # When not using gcc, we currently assume that we are using
9814 # Microsoft Visual C++.
9815 # hardcode_libdir_flag_spec is actually meaningless, as there is
9816 # no search path for DLLs.
9817 case $cc_basename in
9818 cl*)
9819 # Native MSVC
9820 hardcode_libdir_flag_spec=' '
9821 allow_undefined_flag=unsupported
9822 always_export_symbols=yes
9823 file_list_spec='@'
9824 # Tell ltmain to make .lib files, not .a files.
9825 libext=lib
9826 # Tell ltmain to make .dll files, not .so files.
9827 shrext_cmds=".dll"
9828 # FIXME: Setting linknames here is a bad hack.
9829 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9830 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9831 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9832 else
9833 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9834 fi~
9835 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9836 linknames='
9837 # The linker will not automatically build a static lib if we build a DLL.
9838 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9839 enable_shared_with_static_runtimes=yes
9840 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9841 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9842 # Don't use ranlib
9843 old_postinstall_cmds='chmod 644 $oldlib'
9844 postlink_cmds='lt_outputfile="@OUTPUT@"~
9845 lt_tool_outputfile="@TOOL_OUTPUT@"~
9846 case $lt_outputfile in
9847 *.exe|*.EXE) ;;
9848 *)
9849 lt_outputfile="$lt_outputfile.exe"
9850 lt_tool_outputfile="$lt_tool_outputfile.exe"
9851 ;;
9852 esac~
9853 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9854 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9855 $RM "$lt_outputfile.manifest";
9856 fi'
9857 ;;
9858 *)
9859 # Assume MSVC wrapper
9860 hardcode_libdir_flag_spec=' '
9861 allow_undefined_flag=unsupported
9862 # Tell ltmain to make .lib files, not .a files.
9863 libext=lib
9864 # Tell ltmain to make .dll files, not .so files.
9865 shrext_cmds=".dll"
9866 # FIXME: Setting linknames here is a bad hack.
9867 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9868 # The linker will automatically build a .lib file if we build a DLL.
9869 old_archive_from_new_cmds='true'
9870 # FIXME: Should let the user specify the lib program.
9871 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9872 enable_shared_with_static_runtimes=yes
9873 ;;
9874 esac
9875 ;;
9876
9877 darwin* | rhapsody*)
9878
9879
9880 archive_cmds_need_lc=no
9881 hardcode_direct=no
9882 hardcode_automatic=yes
9883 hardcode_shlibpath_var=unsupported
9884 if test "$lt_cv_ld_force_load" = "yes"; then
9885 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\"`'
9886
9887 else
9888 whole_archive_flag_spec=''
9889 fi
9890 link_all_deplibs=yes
9891 allow_undefined_flag="$_lt_dar_allow_undefined"
9892 case $cc_basename in
9893 ifort*) _lt_dar_can_shared=yes ;;
9894 *) _lt_dar_can_shared=$GCC ;;
9895 esac
9896 if test "$_lt_dar_can_shared" = "yes"; then
9897 output_verbose_link_cmd=func_echo_all
9898 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9899 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9900 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}"
9901 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}"
9902
9903 else
9904 ld_shlibs=no
9905 fi
9906
9907 ;;
9908
9909 dgux*)
9910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9911 hardcode_libdir_flag_spec='-L$libdir'
9912 hardcode_shlibpath_var=no
9913 ;;
9914
9915 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9916 # support. Future versions do this automatically, but an explicit c++rt0.o
9917 # does not break anything, and helps significantly (at the cost of a little
9918 # extra space).
9919 freebsd2.2*)
9920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9921 hardcode_libdir_flag_spec='-R$libdir'
9922 hardcode_direct=yes
9923 hardcode_shlibpath_var=no
9924 ;;
9925
9926 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9927 freebsd2.*)
9928 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9929 hardcode_direct=yes
9930 hardcode_minus_L=yes
9931 hardcode_shlibpath_var=no
9932 ;;
9933
9934 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9935 freebsd* | dragonfly*)
9936 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9937 hardcode_libdir_flag_spec='-R$libdir'
9938 hardcode_direct=yes
9939 hardcode_shlibpath_var=no
9940 ;;
9941
9942 hpux9*)
9943 if test "$GCC" = yes; then
9944 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9945 else
9946 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'
9947 fi
9948 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9949 hardcode_libdir_separator=:
9950 hardcode_direct=yes
9951
9952 # hardcode_minus_L: Not really in the search PATH,
9953 # but as the default location of the library.
9954 hardcode_minus_L=yes
9955 export_dynamic_flag_spec='${wl}-E'
9956 ;;
9957
9958 hpux10*)
9959 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9960 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9961 else
9962 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9963 fi
9964 if test "$with_gnu_ld" = no; then
9965 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9966 hardcode_libdir_separator=:
9967 hardcode_direct=yes
9968 hardcode_direct_absolute=yes
9969 export_dynamic_flag_spec='${wl}-E'
9970 # hardcode_minus_L: Not really in the search PATH,
9971 # but as the default location of the library.
9972 hardcode_minus_L=yes
9973 fi
9974 ;;
9975
9976 hpux11*)
9977 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9978 case $host_cpu in
9979 hppa*64*)
9980 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9981 ;;
9982 ia64*)
9983 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9984 ;;
9985 *)
9986 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9987 ;;
9988 esac
9989 else
9990 case $host_cpu in
9991 hppa*64*)
9992 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 ;;
9994 ia64*)
9995 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9996 ;;
9997 *)
9998
9999 # Older versions of the 11.00 compiler do not understand -b yet
10000 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10002 $as_echo_n "checking if $CC understands -b... " >&6; }
10003 if ${lt_cv_prog_compiler__b+:} false; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10006 lt_cv_prog_compiler__b=no
10007 save_LDFLAGS="$LDFLAGS"
10008 LDFLAGS="$LDFLAGS -b"
10009 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10010 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10011 # The linker can only warn and ignore the option if not recognized
10012 # So say no if there are warnings
10013 if test -s conftest.err; then
10014 # Append any errors to the config.log.
10015 cat conftest.err 1>&5
10016 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10018 if diff conftest.exp conftest.er2 >/dev/null; then
10019 lt_cv_prog_compiler__b=yes
10020 fi
10021 else
10022 lt_cv_prog_compiler__b=yes
10023 fi
10024 fi
10025 $RM -r conftest*
10026 LDFLAGS="$save_LDFLAGS"
10027
10028 fi
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10030 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10031
10032 if test x"$lt_cv_prog_compiler__b" = xyes; then
10033 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10034 else
10035 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10036 fi
10037
10038 ;;
10039 esac
10040 fi
10041 if test "$with_gnu_ld" = no; then
10042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10043 hardcode_libdir_separator=:
10044
10045 case $host_cpu in
10046 hppa*64*|ia64*)
10047 hardcode_direct=no
10048 hardcode_shlibpath_var=no
10049 ;;
10050 *)
10051 hardcode_direct=yes
10052 hardcode_direct_absolute=yes
10053 export_dynamic_flag_spec='${wl}-E'
10054
10055 # hardcode_minus_L: Not really in the search PATH,
10056 # but as the default location of the library.
10057 hardcode_minus_L=yes
10058 ;;
10059 esac
10060 fi
10061 ;;
10062
10063 irix5* | irix6* | nonstopux*)
10064 if test "$GCC" = yes; then
10065 archive_cmds='$CC -shared $pic_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'
10066 # Try to use the -exported_symbol ld option, if it does not
10067 # work, assume that -exports_file does not work either and
10068 # implicitly export all symbols.
10069 # This should be the same for all languages, so no per-tag cache variable.
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10071 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10072 if ${lt_cv_irix_exported_symbol+:} false; then :
10073 $as_echo_n "(cached) " >&6
10074 else
10075 save_LDFLAGS="$LDFLAGS"
10076 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10079 int foo (void) { return 0; }
10080 _ACEOF
10081 if ac_fn_c_try_link "$LINENO"; then :
10082 lt_cv_irix_exported_symbol=yes
10083 else
10084 lt_cv_irix_exported_symbol=no
10085 fi
10086 rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088 LDFLAGS="$save_LDFLAGS"
10089 fi
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10091 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10092 if test "$lt_cv_irix_exported_symbol" = yes; then
10093 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
10094 fi
10095 else
10096 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'
10097 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'
10098 fi
10099 archive_cmds_need_lc='no'
10100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10101 hardcode_libdir_separator=:
10102 inherit_rpath=yes
10103 link_all_deplibs=yes
10104 ;;
10105
10106 netbsd* | netbsdelf*-gnu)
10107 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10108 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10109 else
10110 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10111 fi
10112 hardcode_libdir_flag_spec='-R$libdir'
10113 hardcode_direct=yes
10114 hardcode_shlibpath_var=no
10115 ;;
10116
10117 newsos6)
10118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10119 hardcode_direct=yes
10120 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10121 hardcode_libdir_separator=:
10122 hardcode_shlibpath_var=no
10123 ;;
10124
10125 *nto* | *qnx*)
10126 ;;
10127
10128 openbsd*)
10129 if test -f /usr/libexec/ld.so; then
10130 hardcode_direct=yes
10131 hardcode_shlibpath_var=no
10132 hardcode_direct_absolute=yes
10133 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10134 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10135 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10136 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10137 export_dynamic_flag_spec='${wl}-E'
10138 else
10139 case $host_os in
10140 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10142 hardcode_libdir_flag_spec='-R$libdir'
10143 ;;
10144 *)
10145 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10146 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10147 ;;
10148 esac
10149 fi
10150 else
10151 ld_shlibs=no
10152 fi
10153 ;;
10154
10155 os2*)
10156 hardcode_libdir_flag_spec='-L$libdir'
10157 hardcode_minus_L=yes
10158 allow_undefined_flag=unsupported
10159 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'
10160 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10161 ;;
10162
10163 osf3*)
10164 if test "$GCC" = yes; then
10165 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10166 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'
10167 else
10168 allow_undefined_flag=' -expect_unresolved \*'
10169 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'
10170 fi
10171 archive_cmds_need_lc='no'
10172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10173 hardcode_libdir_separator=:
10174 ;;
10175
10176 osf4* | osf5*) # as osf3* with the addition of -msym flag
10177 if test "$GCC" = yes; then
10178 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10179 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
10180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10181 else
10182 allow_undefined_flag=' -expect_unresolved \*'
10183 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'
10184 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~
10185 $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'
10186
10187 # Both c and cxx compiler support -rpath directly
10188 hardcode_libdir_flag_spec='-rpath $libdir'
10189 fi
10190 archive_cmds_need_lc='no'
10191 hardcode_libdir_separator=:
10192 ;;
10193
10194 solaris*)
10195 no_undefined_flag=' -z defs'
10196 if test "$GCC" = yes; then
10197 wlarc='${wl}'
10198 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10199 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10200 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10201 else
10202 case `$CC -V 2>&1` in
10203 *"Compilers 5.0"*)
10204 wlarc=''
10205 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10206 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10207 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10208 ;;
10209 *)
10210 wlarc='${wl}'
10211 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10212 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10213 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10214 ;;
10215 esac
10216 fi
10217 hardcode_libdir_flag_spec='-R$libdir'
10218 hardcode_shlibpath_var=no
10219 case $host_os in
10220 solaris2.[0-5] | solaris2.[0-5].*) ;;
10221 *)
10222 # The compiler driver will combine and reorder linker options,
10223 # but understands `-z linker_flag'. GCC discards it without `$wl',
10224 # but is careful enough not to reorder.
10225 # Supported since Solaris 2.6 (maybe 2.5.1?)
10226 if test "$GCC" = yes; then
10227 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10228 else
10229 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10230 fi
10231 ;;
10232 esac
10233 link_all_deplibs=yes
10234 ;;
10235
10236 sunos4*)
10237 if test "x$host_vendor" = xsequent; then
10238 # Use $CC to link under sequent, because it throws in some extra .o
10239 # files that make .init and .fini sections work.
10240 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10241 else
10242 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10243 fi
10244 hardcode_libdir_flag_spec='-L$libdir'
10245 hardcode_direct=yes
10246 hardcode_minus_L=yes
10247 hardcode_shlibpath_var=no
10248 ;;
10249
10250 sysv4)
10251 case $host_vendor in
10252 sni)
10253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254 hardcode_direct=yes # is this really true???
10255 ;;
10256 siemens)
10257 ## LD is ld it makes a PLAMLIB
10258 ## CC just makes a GrossModule.
10259 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10260 reload_cmds='$CC -r -o $output$reload_objs'
10261 hardcode_direct=no
10262 ;;
10263 motorola)
10264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10266 ;;
10267 esac
10268 runpath_var='LD_RUN_PATH'
10269 hardcode_shlibpath_var=no
10270 ;;
10271
10272 sysv4.3*)
10273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10274 hardcode_shlibpath_var=no
10275 export_dynamic_flag_spec='-Bexport'
10276 ;;
10277
10278 sysv4*MP*)
10279 if test -d /usr/nec; then
10280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281 hardcode_shlibpath_var=no
10282 runpath_var=LD_RUN_PATH
10283 hardcode_runpath_var=yes
10284 ld_shlibs=yes
10285 fi
10286 ;;
10287
10288 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10289 no_undefined_flag='${wl}-z,text'
10290 archive_cmds_need_lc=no
10291 hardcode_shlibpath_var=no
10292 runpath_var='LD_RUN_PATH'
10293
10294 if test "$GCC" = yes; then
10295 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 else
10298 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10299 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10300 fi
10301 ;;
10302
10303 sysv5* | sco3.2v5* | sco5v6*)
10304 # Note: We can NOT use -z defs as we might desire, because we do not
10305 # link with -lc, and that would cause any symbols used from libc to
10306 # always be unresolved, which means just about no library would
10307 # ever link correctly. If we're not using GNU ld we use -z text
10308 # though, which does catch some bad symbols but isn't as heavy-handed
10309 # as -z defs.
10310 no_undefined_flag='${wl}-z,text'
10311 allow_undefined_flag='${wl}-z,nodefs'
10312 archive_cmds_need_lc=no
10313 hardcode_shlibpath_var=no
10314 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10315 hardcode_libdir_separator=':'
10316 link_all_deplibs=yes
10317 export_dynamic_flag_spec='${wl}-Bexport'
10318 runpath_var='LD_RUN_PATH'
10319
10320 if test "$GCC" = yes; then
10321 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10323 else
10324 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10326 fi
10327 ;;
10328
10329 uts4*)
10330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10331 hardcode_libdir_flag_spec='-L$libdir'
10332 hardcode_shlibpath_var=no
10333 ;;
10334
10335 *)
10336 ld_shlibs=no
10337 ;;
10338 esac
10339
10340 if test x$host_vendor = xsni; then
10341 case $host in
10342 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10343 export_dynamic_flag_spec='${wl}-Blargedynsym'
10344 ;;
10345 esac
10346 fi
10347 fi
10348
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10350 $as_echo "$ld_shlibs" >&6; }
10351 test "$ld_shlibs" = no && can_build_shared=no
10352
10353 with_gnu_ld=$with_gnu_ld
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369 #
10370 # Do we need to explicitly link libc?
10371 #
10372 case "x$archive_cmds_need_lc" in
10373 x|xyes)
10374 # Assume -lc should be added
10375 archive_cmds_need_lc=yes
10376
10377 if test "$enable_shared" = yes && test "$GCC" = yes; then
10378 case $archive_cmds in
10379 *'~'*)
10380 # FIXME: we may have to deal with multi-command sequences.
10381 ;;
10382 '$CC '*)
10383 # Test whether the compiler implicitly links with -lc since on some
10384 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10385 # to ld, don't add -lc before -lgcc.
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10387 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10388 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 $RM conftest*
10392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10393
10394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10395 (eval $ac_compile) 2>&5
10396 ac_status=$?
10397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10398 test $ac_status = 0; } 2>conftest.err; then
10399 soname=conftest
10400 lib=conftest
10401 libobjs=conftest.$ac_objext
10402 deplibs=
10403 wl=$lt_prog_compiler_wl
10404 pic_flag=$lt_prog_compiler_pic
10405 compiler_flags=-v
10406 linker_flags=-v
10407 verstring=
10408 output_objdir=.
10409 libname=conftest
10410 lt_save_allow_undefined_flag=$allow_undefined_flag
10411 allow_undefined_flag=
10412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10413 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10414 ac_status=$?
10415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10416 test $ac_status = 0; }
10417 then
10418 lt_cv_archive_cmds_need_lc=no
10419 else
10420 lt_cv_archive_cmds_need_lc=yes
10421 fi
10422 allow_undefined_flag=$lt_save_allow_undefined_flag
10423 else
10424 cat conftest.err 1>&5
10425 fi
10426 $RM conftest*
10427
10428 fi
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10430 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10431 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10432 ;;
10433 esac
10434 fi
10435 ;;
10436 esac
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10590 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10591
10592 if test "$GCC" = yes; then
10593 case $host_os in
10594 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10595 *) lt_awk_arg="/^libraries:/" ;;
10596 esac
10597 case $host_os in
10598 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10599 *) lt_sed_strip_eq="s,=/,/,g" ;;
10600 esac
10601 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10602 case $lt_search_path_spec in
10603 *\;*)
10604 # if the path contains ";" then we assume it to be the separator
10605 # otherwise default to the standard path separator (i.e. ":") - it is
10606 # assumed that no part of a normal pathname contains ";" but that should
10607 # okay in the real world where ";" in dirpaths is itself problematic.
10608 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10609 ;;
10610 *)
10611 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10612 ;;
10613 esac
10614 # Ok, now we have the path, separated by spaces, we can step through it
10615 # and add multilib dir if necessary.
10616 lt_tmp_lt_search_path_spec=
10617 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10618 for lt_sys_path in $lt_search_path_spec; do
10619 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10620 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10621 else
10622 test -d "$lt_sys_path" && \
10623 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10624 fi
10625 done
10626 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10627 BEGIN {RS=" "; FS="/|\n";} {
10628 lt_foo="";
10629 lt_count=0;
10630 for (lt_i = NF; lt_i > 0; lt_i--) {
10631 if ($lt_i != "" && $lt_i != ".") {
10632 if ($lt_i == "..") {
10633 lt_count++;
10634 } else {
10635 if (lt_count == 0) {
10636 lt_foo="/" $lt_i lt_foo;
10637 } else {
10638 lt_count--;
10639 }
10640 }
10641 }
10642 }
10643 if (lt_foo != "") { lt_freq[lt_foo]++; }
10644 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10645 }'`
10646 # AWK program above erroneously prepends '/' to C:/dos/paths
10647 # for these hosts.
10648 case $host_os in
10649 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10650 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10651 esac
10652 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10653 else
10654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10655 fi
10656 library_names_spec=
10657 libname_spec='lib$name'
10658 soname_spec=
10659 shrext_cmds=".so"
10660 postinstall_cmds=
10661 postuninstall_cmds=
10662 finish_cmds=
10663 finish_eval=
10664 shlibpath_var=
10665 shlibpath_overrides_runpath=unknown
10666 version_type=none
10667 dynamic_linker="$host_os ld.so"
10668 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10669 need_lib_prefix=unknown
10670 hardcode_into_libs=no
10671
10672 # when you set need_version to no, make sure it does not cause -set_version
10673 # flags to be left without arguments
10674 need_version=unknown
10675
10676 case $host_os in
10677 aix3*)
10678 version_type=linux # correct to gnu/linux during the next big refactor
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10680 shlibpath_var=LIBPATH
10681
10682 # AIX 3 has no versioning support, so we append a major version to the name.
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 ;;
10685
10686 aix[4-9]*)
10687 version_type=linux # correct to gnu/linux during the next big refactor
10688 need_lib_prefix=no
10689 need_version=no
10690 hardcode_into_libs=yes
10691 if test "$host_cpu" = ia64; then
10692 # AIX 5 supports IA64
10693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 else
10696 # With GCC up to 2.95.x, collect2 would create an import file
10697 # for dependence libraries. The import file would start with
10698 # the line `#! .'. This would cause the generated library to
10699 # depend on `.', always an invalid library. This was fixed in
10700 # development snapshots of GCC prior to 3.0.
10701 case $host_os in
10702 aix4 | aix4.[01] | aix4.[01].*)
10703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10704 echo ' yes '
10705 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10706 :
10707 else
10708 can_build_shared=no
10709 fi
10710 ;;
10711 esac
10712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10713 # soname into executable. Probably we can add versioning support to
10714 # collect2, so additional links can be useful in future.
10715 if test "$aix_use_runtimelinking" = yes; then
10716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10717 # instead of lib<name>.a to let people know that these are not
10718 # typical AIX shared libraries.
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 else
10721 # We preserve .a as extension for shared libraries through AIX4.2
10722 # and later when we are not doing run time linking.
10723 library_names_spec='${libname}${release}.a $libname.a'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 fi
10726 shlibpath_var=LIBPATH
10727 fi
10728 ;;
10729
10730 amigaos*)
10731 case $host_cpu in
10732 powerpc)
10733 # Since July 2007 AmigaOS4 officially supports .so libraries.
10734 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736 ;;
10737 m68k)
10738 library_names_spec='$libname.ixlibrary $libname.a'
10739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10740 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'
10741 ;;
10742 esac
10743 ;;
10744
10745 beos*)
10746 library_names_spec='${libname}${shared_ext}'
10747 dynamic_linker="$host_os ld.so"
10748 shlibpath_var=LIBRARY_PATH
10749 ;;
10750
10751 bsdi[45]*)
10752 version_type=linux # correct to gnu/linux during the next big refactor
10753 need_version=no
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10757 shlibpath_var=LD_LIBRARY_PATH
10758 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10759 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10760 # the default ld.so.conf also contains /usr/contrib/lib and
10761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10762 # libtool to hard-code these into programs
10763 ;;
10764
10765 cygwin* | mingw* | pw32* | cegcc*)
10766 version_type=windows
10767 shrext_cmds=".dll"
10768 need_version=no
10769 need_lib_prefix=no
10770
10771 case $GCC,$cc_basename in
10772 yes,*)
10773 # gcc
10774 library_names_spec='$libname.dll.a'
10775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10776 postinstall_cmds='base_file=`basename \${file}`~
10777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10778 dldir=$destdir/`dirname \$dlpath`~
10779 test -d \$dldir || mkdir -p \$dldir~
10780 $install_prog $dir/$dlname \$dldir/$dlname~
10781 chmod a+x \$dldir/$dlname~
10782 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10783 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10784 fi'
10785 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10786 dlpath=$dir/\$dldll~
10787 $RM \$dlpath'
10788 shlibpath_overrides_runpath=yes
10789
10790 case $host_os in
10791 cygwin*)
10792 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10793 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10794
10795 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10796 ;;
10797 mingw* | cegcc*)
10798 # MinGW DLLs use traditional 'lib' prefix
10799 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10800 ;;
10801 pw32*)
10802 # pw32 DLLs use 'pw' prefix rather than 'lib'
10803 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10804 ;;
10805 esac
10806 dynamic_linker='Win32 ld.exe'
10807 ;;
10808
10809 *,cl*)
10810 # Native MSVC
10811 libname_spec='$name'
10812 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10813 library_names_spec='${libname}.dll.lib'
10814
10815 case $build_os in
10816 mingw*)
10817 sys_lib_search_path_spec=
10818 lt_save_ifs=$IFS
10819 IFS=';'
10820 for lt_path in $LIB
10821 do
10822 IFS=$lt_save_ifs
10823 # Let DOS variable expansion print the short 8.3 style file name.
10824 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10825 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10826 done
10827 IFS=$lt_save_ifs
10828 # Convert to MSYS style.
10829 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10830 ;;
10831 cygwin*)
10832 # Convert to unix form, then to dos form, then back to unix form
10833 # but this time dos style (no spaces!) so that the unix form looks
10834 # like /cygdrive/c/PROGRA~1:/cygdr...
10835 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10836 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10837 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10838 ;;
10839 *)
10840 sys_lib_search_path_spec="$LIB"
10841 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10842 # It is most probably a Windows format PATH.
10843 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10844 else
10845 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10846 fi
10847 # FIXME: find the short name or the path components, as spaces are
10848 # common. (e.g. "Program Files" -> "PROGRA~1")
10849 ;;
10850 esac
10851
10852 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10853 postinstall_cmds='base_file=`basename \${file}`~
10854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10855 dldir=$destdir/`dirname \$dlpath`~
10856 test -d \$dldir || mkdir -p \$dldir~
10857 $install_prog $dir/$dlname \$dldir/$dlname'
10858 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10859 dlpath=$dir/\$dldll~
10860 $RM \$dlpath'
10861 shlibpath_overrides_runpath=yes
10862 dynamic_linker='Win32 link.exe'
10863 ;;
10864
10865 *)
10866 # Assume MSVC wrapper
10867 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10868 dynamic_linker='Win32 ld.exe'
10869 ;;
10870 esac
10871 # FIXME: first we should search . and the directory the executable is in
10872 shlibpath_var=PATH
10873 ;;
10874
10875 darwin* | rhapsody*)
10876 dynamic_linker="$host_os dyld"
10877 version_type=darwin
10878 need_lib_prefix=no
10879 need_version=no
10880 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10881 soname_spec='${libname}${release}${major}$shared_ext'
10882 shlibpath_overrides_runpath=yes
10883 shlibpath_var=DYLD_LIBRARY_PATH
10884 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10885
10886 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10887 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10888 ;;
10889
10890 dgux*)
10891 version_type=linux # correct to gnu/linux during the next big refactor
10892 need_lib_prefix=no
10893 need_version=no
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 ;;
10898
10899 freebsd* | dragonfly*)
10900 # DragonFly does not have aout. When/if they implement a new
10901 # versioning mechanism, adjust this.
10902 if test -x /usr/bin/objformat; then
10903 objformat=`/usr/bin/objformat`
10904 else
10905 case $host_os in
10906 freebsd[23].*) objformat=aout ;;
10907 *) objformat=elf ;;
10908 esac
10909 fi
10910 version_type=freebsd-$objformat
10911 case $version_type in
10912 freebsd-elf*)
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10914 need_version=no
10915 need_lib_prefix=no
10916 ;;
10917 freebsd-*)
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10919 need_version=yes
10920 ;;
10921 esac
10922 shlibpath_var=LD_LIBRARY_PATH
10923 case $host_os in
10924 freebsd2.*)
10925 shlibpath_overrides_runpath=yes
10926 ;;
10927 freebsd3.[01]* | freebsdelf3.[01]*)
10928 shlibpath_overrides_runpath=yes
10929 hardcode_into_libs=yes
10930 ;;
10931 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10932 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10933 shlibpath_overrides_runpath=no
10934 hardcode_into_libs=yes
10935 ;;
10936 *) # from 4.6 on, and DragonFly
10937 shlibpath_overrides_runpath=yes
10938 hardcode_into_libs=yes
10939 ;;
10940 esac
10941 ;;
10942
10943 gnu*)
10944 version_type=linux # correct to gnu/linux during the next big refactor
10945 need_lib_prefix=no
10946 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath=no
10951 hardcode_into_libs=yes
10952 ;;
10953
10954 haiku*)
10955 version_type=linux # correct to gnu/linux during the next big refactor
10956 need_lib_prefix=no
10957 need_version=no
10958 dynamic_linker="$host_os runtime_loader"
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LIBRARY_PATH
10962 shlibpath_overrides_runpath=yes
10963 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10964 hardcode_into_libs=yes
10965 ;;
10966
10967 hpux9* | hpux10* | hpux11*)
10968 # Give a soname corresponding to the major version so that dld.sl refuses to
10969 # link against other versions.
10970 version_type=sunos
10971 need_lib_prefix=no
10972 need_version=no
10973 case $host_cpu in
10974 ia64*)
10975 shrext_cmds='.so'
10976 hardcode_into_libs=yes
10977 dynamic_linker="$host_os dld.so"
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 if test "X$HPUX_IA64_MODE" = X32; then
10983 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10984 else
10985 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10986 fi
10987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10988 ;;
10989 hppa*64*)
10990 shrext_cmds='.sl'
10991 hardcode_into_libs=yes
10992 dynamic_linker="$host_os dld.sl"
10993 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10999 ;;
11000 *)
11001 shrext_cmds='.sl'
11002 dynamic_linker="$host_os dld.sl"
11003 shlibpath_var=SHLIB_PATH
11004 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 ;;
11008 esac
11009 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11010 postinstall_cmds='chmod 555 $lib'
11011 # or fails outright, so override atomically:
11012 install_override_mode=555
11013 ;;
11014
11015 interix[3-9]*)
11016 version_type=linux # correct to gnu/linux during the next big refactor
11017 need_lib_prefix=no
11018 need_version=no
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11020 soname_spec='${libname}${release}${shared_ext}$major'
11021 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=no
11024 hardcode_into_libs=yes
11025 ;;
11026
11027 irix5* | irix6* | nonstopux*)
11028 case $host_os in
11029 nonstopux*) version_type=nonstopux ;;
11030 *)
11031 if test "$lt_cv_prog_gnu_ld" = yes; then
11032 version_type=linux # correct to gnu/linux during the next big refactor
11033 else
11034 version_type=irix
11035 fi ;;
11036 esac
11037 need_lib_prefix=no
11038 need_version=no
11039 soname_spec='${libname}${release}${shared_ext}$major'
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11041 case $host_os in
11042 irix5* | nonstopux*)
11043 libsuff= shlibsuff=
11044 ;;
11045 *)
11046 case $LD in # libtool.m4 will add one of these switches to LD
11047 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11048 libsuff= shlibsuff= libmagic=32-bit;;
11049 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11050 libsuff=32 shlibsuff=N32 libmagic=N32;;
11051 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11052 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11053 *) libsuff= shlibsuff= libmagic=never-match;;
11054 esac
11055 ;;
11056 esac
11057 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11058 shlibpath_overrides_runpath=no
11059 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11060 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11061 hardcode_into_libs=yes
11062 ;;
11063
11064 # No shared lib support for Linux oldld, aout, or coff.
11065 linux*oldld* | linux*aout* | linux*coff*)
11066 dynamic_linker=no
11067 ;;
11068
11069 # This must be glibc/ELF.
11070 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11071 version_type=linux # correct to gnu/linux during the next big refactor
11072 need_lib_prefix=no
11073 need_version=no
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 soname_spec='${libname}${release}${shared_ext}$major'
11076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11077 shlibpath_var=LD_LIBRARY_PATH
11078 shlibpath_overrides_runpath=no
11079
11080 # Some binutils ld are patched to set DT_RUNPATH
11081 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11082 $as_echo_n "(cached) " >&6
11083 else
11084 lt_cv_shlibpath_overrides_runpath=no
11085 save_LDFLAGS=$LDFLAGS
11086 save_libdir=$libdir
11087 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11088 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11090 /* end confdefs.h. */
11091
11092 int
11093 main ()
11094 {
11095
11096 ;
11097 return 0;
11098 }
11099 _ACEOF
11100 if ac_fn_c_try_link "$LINENO"; then :
11101 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11102 lt_cv_shlibpath_overrides_runpath=yes
11103 fi
11104 fi
11105 rm -f core conftest.err conftest.$ac_objext \
11106 conftest$ac_exeext conftest.$ac_ext
11107 LDFLAGS=$save_LDFLAGS
11108 libdir=$save_libdir
11109
11110 fi
11111
11112 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11113
11114 # This implies no fast_install, which is unacceptable.
11115 # Some rework will be needed to allow for fast_install
11116 # before this can be enabled.
11117 hardcode_into_libs=yes
11118
11119 # Append ld.so.conf contents to the search path
11120 if test -f /etc/ld.so.conf; then
11121 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' ' '`
11122 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11123 fi
11124
11125 # We used to test for /lib/ld.so.1 and disable shared libraries on
11126 # powerpc, because MkLinux only supported shared libraries with the
11127 # GNU dynamic linker. Since this was broken with cross compilers,
11128 # most powerpc-linux boxes support dynamic linking these days and
11129 # people can always --disable-shared, the test was removed, and we
11130 # assume the GNU/Linux dynamic linker is in use.
11131 dynamic_linker='GNU/Linux ld.so'
11132 ;;
11133
11134 netbsdelf*-gnu)
11135 version_type=linux
11136 need_lib_prefix=no
11137 need_version=no
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11139 soname_spec='${libname}${release}${shared_ext}$major'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 shlibpath_overrides_runpath=no
11142 hardcode_into_libs=yes
11143 dynamic_linker='NetBSD ld.elf_so'
11144 ;;
11145
11146 netbsd*)
11147 version_type=sunos
11148 need_lib_prefix=no
11149 need_version=no
11150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11153 dynamic_linker='NetBSD (a.out) ld.so'
11154 else
11155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11156 soname_spec='${libname}${release}${shared_ext}$major'
11157 dynamic_linker='NetBSD ld.elf_so'
11158 fi
11159 shlibpath_var=LD_LIBRARY_PATH
11160 shlibpath_overrides_runpath=yes
11161 hardcode_into_libs=yes
11162 ;;
11163
11164 newsos6)
11165 version_type=linux # correct to gnu/linux during the next big refactor
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 shlibpath_overrides_runpath=yes
11169 ;;
11170
11171 *nto* | *qnx*)
11172 version_type=qnx
11173 need_lib_prefix=no
11174 need_version=no
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 shlibpath_overrides_runpath=no
11179 hardcode_into_libs=yes
11180 dynamic_linker='ldqnx.so'
11181 ;;
11182
11183 openbsd*)
11184 version_type=sunos
11185 sys_lib_dlsearch_path_spec="/usr/lib"
11186 need_lib_prefix=no
11187 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11188 case $host_os in
11189 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11190 *) need_version=no ;;
11191 esac
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11196 case $host_os in
11197 openbsd2.[89] | openbsd2.[89].*)
11198 shlibpath_overrides_runpath=no
11199 ;;
11200 *)
11201 shlibpath_overrides_runpath=yes
11202 ;;
11203 esac
11204 else
11205 shlibpath_overrides_runpath=yes
11206 fi
11207 ;;
11208
11209 os2*)
11210 libname_spec='$name'
11211 shrext_cmds=".dll"
11212 need_lib_prefix=no
11213 library_names_spec='$libname${shared_ext} $libname.a'
11214 dynamic_linker='OS/2 ld.exe'
11215 shlibpath_var=LIBPATH
11216 ;;
11217
11218 osf3* | osf4* | osf5*)
11219 version_type=osf
11220 need_lib_prefix=no
11221 need_version=no
11222 soname_spec='${libname}${release}${shared_ext}$major'
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11224 shlibpath_var=LD_LIBRARY_PATH
11225 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11226 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11227 ;;
11228
11229 rdos*)
11230 dynamic_linker=no
11231 ;;
11232
11233 solaris*)
11234 version_type=linux # correct to gnu/linux during the next big refactor
11235 need_lib_prefix=no
11236 need_version=no
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11238 soname_spec='${libname}${release}${shared_ext}$major'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 shlibpath_overrides_runpath=yes
11241 hardcode_into_libs=yes
11242 # ldd complains unless libraries are executable
11243 postinstall_cmds='chmod +x $lib'
11244 ;;
11245
11246 sunos4*)
11247 version_type=sunos
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11249 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11250 shlibpath_var=LD_LIBRARY_PATH
11251 shlibpath_overrides_runpath=yes
11252 if test "$with_gnu_ld" = yes; then
11253 need_lib_prefix=no
11254 fi
11255 need_version=yes
11256 ;;
11257
11258 sysv4 | sysv4.3*)
11259 version_type=linux # correct to gnu/linux during the next big refactor
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11261 soname_spec='${libname}${release}${shared_ext}$major'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 case $host_vendor in
11264 sni)
11265 shlibpath_overrides_runpath=no
11266 need_lib_prefix=no
11267 runpath_var=LD_RUN_PATH
11268 ;;
11269 siemens)
11270 need_lib_prefix=no
11271 ;;
11272 motorola)
11273 need_lib_prefix=no
11274 need_version=no
11275 shlibpath_overrides_runpath=no
11276 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11277 ;;
11278 esac
11279 ;;
11280
11281 sysv4*MP*)
11282 if test -d /usr/nec ;then
11283 version_type=linux # correct to gnu/linux during the next big refactor
11284 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11285 soname_spec='$libname${shared_ext}.$major'
11286 shlibpath_var=LD_LIBRARY_PATH
11287 fi
11288 ;;
11289
11290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11291 version_type=freebsd-elf
11292 need_lib_prefix=no
11293 need_version=no
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11295 soname_spec='${libname}${release}${shared_ext}$major'
11296 shlibpath_var=LD_LIBRARY_PATH
11297 shlibpath_overrides_runpath=yes
11298 hardcode_into_libs=yes
11299 if test "$with_gnu_ld" = yes; then
11300 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11301 else
11302 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11303 case $host_os in
11304 sco3.2v5*)
11305 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11306 ;;
11307 esac
11308 fi
11309 sys_lib_dlsearch_path_spec='/usr/lib'
11310 ;;
11311
11312 tpf*)
11313 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11314 version_type=linux # correct to gnu/linux during the next big refactor
11315 need_lib_prefix=no
11316 need_version=no
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318 shlibpath_var=LD_LIBRARY_PATH
11319 shlibpath_overrides_runpath=no
11320 hardcode_into_libs=yes
11321 ;;
11322
11323 uts4*)
11324 version_type=linux # correct to gnu/linux during the next big refactor
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326 soname_spec='${libname}${release}${shared_ext}$major'
11327 shlibpath_var=LD_LIBRARY_PATH
11328 ;;
11329
11330 *)
11331 dynamic_linker=no
11332 ;;
11333 esac
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11335 $as_echo "$dynamic_linker" >&6; }
11336 test "$dynamic_linker" = no && can_build_shared=no
11337
11338 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11339 if test "$GCC" = yes; then
11340 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11341 fi
11342
11343 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11344 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11345 fi
11346 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11347 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11348 fi
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
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11442 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11443 hardcode_action=
11444 if test -n "$hardcode_libdir_flag_spec" ||
11445 test -n "$runpath_var" ||
11446 test "X$hardcode_automatic" = "Xyes" ; then
11447
11448 # We can hardcode non-existent directories.
11449 if test "$hardcode_direct" != no &&
11450 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11451 # have to relink, otherwise we might link with an installed library
11452 # when we should be linking with a yet-to-be-installed one
11453 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11454 test "$hardcode_minus_L" != no; then
11455 # Linking always hardcodes the temporary library directory.
11456 hardcode_action=relink
11457 else
11458 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11459 hardcode_action=immediate
11460 fi
11461 else
11462 # We cannot hardcode anything, or else we can only hardcode existing
11463 # directories.
11464 hardcode_action=unsupported
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11467 $as_echo "$hardcode_action" >&6; }
11468
11469 if test "$hardcode_action" = relink ||
11470 test "$inherit_rpath" = yes; then
11471 # Fast installation is not supported
11472 enable_fast_install=no
11473 elif test "$shlibpath_overrides_runpath" = yes ||
11474 test "$enable_shared" = no; then
11475 # Fast installation is not necessary
11476 enable_fast_install=needless
11477 fi
11478
11479
11480
11481
11482
11483
11484 if test "x$enable_dlopen" != xyes; then
11485 enable_dlopen=unknown
11486 enable_dlopen_self=unknown
11487 enable_dlopen_self_static=unknown
11488 else
11489 lt_cv_dlopen=no
11490 lt_cv_dlopen_libs=
11491
11492 case $host_os in
11493 beos*)
11494 lt_cv_dlopen="load_add_on"
11495 lt_cv_dlopen_libs=
11496 lt_cv_dlopen_self=yes
11497 ;;
11498
11499 mingw* | pw32* | cegcc*)
11500 lt_cv_dlopen="LoadLibrary"
11501 lt_cv_dlopen_libs=
11502 ;;
11503
11504 cygwin*)
11505 lt_cv_dlopen="dlopen"
11506 lt_cv_dlopen_libs=
11507 ;;
11508
11509 darwin*)
11510 # if libdl is installed we need to link against it
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11512 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11513 if ${ac_cv_lib_dl_dlopen+:} false; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 ac_check_lib_save_LIBS=$LIBS
11517 LIBS="-ldl $LIBS"
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11520
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 char dlopen ();
11528 int
11529 main ()
11530 {
11531 return dlopen ();
11532 ;
11533 return 0;
11534 }
11535 _ACEOF
11536 if ac_fn_c_try_link "$LINENO"; then :
11537 ac_cv_lib_dl_dlopen=yes
11538 else
11539 ac_cv_lib_dl_dlopen=no
11540 fi
11541 rm -f core conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
11543 LIBS=$ac_check_lib_save_LIBS
11544 fi
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11546 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11547 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11549 else
11550
11551 lt_cv_dlopen="dyld"
11552 lt_cv_dlopen_libs=
11553 lt_cv_dlopen_self=yes
11554
11555 fi
11556
11557 ;;
11558
11559 *)
11560 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11561 if test "x$ac_cv_func_shl_load" = xyes; then :
11562 lt_cv_dlopen="shl_load"
11563 else
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11565 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11566 if ${ac_cv_lib_dld_shl_load+:} false; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 ac_check_lib_save_LIBS=$LIBS
11570 LIBS="-ldld $LIBS"
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11573
11574 /* Override any GCC internal prototype to avoid an error.
11575 Use char because int might match the return type of a GCC
11576 builtin and then its argument prototype would still apply. */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 char shl_load ();
11581 int
11582 main ()
11583 {
11584 return shl_load ();
11585 ;
11586 return 0;
11587 }
11588 _ACEOF
11589 if ac_fn_c_try_link "$LINENO"; then :
11590 ac_cv_lib_dld_shl_load=yes
11591 else
11592 ac_cv_lib_dld_shl_load=no
11593 fi
11594 rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11596 LIBS=$ac_check_lib_save_LIBS
11597 fi
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11599 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11600 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11601 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11602 else
11603 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11604 if test "x$ac_cv_func_dlopen" = xyes; then :
11605 lt_cv_dlopen="dlopen"
11606 else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11608 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11609 if ${ac_cv_lib_dl_dlopen+:} false; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 ac_check_lib_save_LIBS=$LIBS
11613 LIBS="-ldl $LIBS"
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11616
11617 /* Override any GCC internal prototype to avoid an error.
11618 Use char because int might match the return type of a GCC
11619 builtin and then its argument prototype would still apply. */
11620 #ifdef __cplusplus
11621 extern "C"
11622 #endif
11623 char dlopen ();
11624 int
11625 main ()
11626 {
11627 return dlopen ();
11628 ;
11629 return 0;
11630 }
11631 _ACEOF
11632 if ac_fn_c_try_link "$LINENO"; then :
11633 ac_cv_lib_dl_dlopen=yes
11634 else
11635 ac_cv_lib_dl_dlopen=no
11636 fi
11637 rm -f core conftest.err conftest.$ac_objext \
11638 conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11640 fi
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11642 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11643 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11644 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11645 else
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11647 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11648 if ${ac_cv_lib_svld_dlopen+:} false; then :
11649 $as_echo_n "(cached) " >&6
11650 else
11651 ac_check_lib_save_LIBS=$LIBS
11652 LIBS="-lsvld $LIBS"
11653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h. */
11655
11656 /* Override any GCC internal prototype to avoid an error.
11657 Use char because int might match the return type of a GCC
11658 builtin and then its argument prototype would still apply. */
11659 #ifdef __cplusplus
11660 extern "C"
11661 #endif
11662 char dlopen ();
11663 int
11664 main ()
11665 {
11666 return dlopen ();
11667 ;
11668 return 0;
11669 }
11670 _ACEOF
11671 if ac_fn_c_try_link "$LINENO"; then :
11672 ac_cv_lib_svld_dlopen=yes
11673 else
11674 ac_cv_lib_svld_dlopen=no
11675 fi
11676 rm -f core conftest.err conftest.$ac_objext \
11677 conftest$ac_exeext conftest.$ac_ext
11678 LIBS=$ac_check_lib_save_LIBS
11679 fi
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11681 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11682 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11684 else
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11686 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11687 if ${ac_cv_lib_dld_dld_link+:} false; then :
11688 $as_echo_n "(cached) " >&6
11689 else
11690 ac_check_lib_save_LIBS=$LIBS
11691 LIBS="-ldld $LIBS"
11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h. */
11694
11695 /* Override any GCC internal prototype to avoid an error.
11696 Use char because int might match the return type of a GCC
11697 builtin and then its argument prototype would still apply. */
11698 #ifdef __cplusplus
11699 extern "C"
11700 #endif
11701 char dld_link ();
11702 int
11703 main ()
11704 {
11705 return dld_link ();
11706 ;
11707 return 0;
11708 }
11709 _ACEOF
11710 if ac_fn_c_try_link "$LINENO"; then :
11711 ac_cv_lib_dld_dld_link=yes
11712 else
11713 ac_cv_lib_dld_dld_link=no
11714 fi
11715 rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11717 LIBS=$ac_check_lib_save_LIBS
11718 fi
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11720 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11721 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11722 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11723 fi
11724
11725
11726 fi
11727
11728
11729 fi
11730
11731
11732 fi
11733
11734
11735 fi
11736
11737
11738 fi
11739
11740 ;;
11741 esac
11742
11743 if test "x$lt_cv_dlopen" != xno; then
11744 enable_dlopen=yes
11745 else
11746 enable_dlopen=no
11747 fi
11748
11749 case $lt_cv_dlopen in
11750 dlopen)
11751 save_CPPFLAGS="$CPPFLAGS"
11752 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11753
11754 save_LDFLAGS="$LDFLAGS"
11755 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11756
11757 save_LIBS="$LIBS"
11758 LIBS="$lt_cv_dlopen_libs $LIBS"
11759
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11761 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11762 if ${lt_cv_dlopen_self+:} false; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 if test "$cross_compiling" = yes; then :
11766 lt_cv_dlopen_self=cross
11767 else
11768 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11769 lt_status=$lt_dlunknown
11770 cat > conftest.$ac_ext <<_LT_EOF
11771 #line $LINENO "configure"
11772 #include "confdefs.h"
11773
11774 #if HAVE_DLFCN_H
11775 #include <dlfcn.h>
11776 #endif
11777
11778 #include <stdio.h>
11779
11780 #ifdef RTLD_GLOBAL
11781 # define LT_DLGLOBAL RTLD_GLOBAL
11782 #else
11783 # ifdef DL_GLOBAL
11784 # define LT_DLGLOBAL DL_GLOBAL
11785 # else
11786 # define LT_DLGLOBAL 0
11787 # endif
11788 #endif
11789
11790 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11791 find out it does not work in some platform. */
11792 #ifndef LT_DLLAZY_OR_NOW
11793 # ifdef RTLD_LAZY
11794 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11795 # else
11796 # ifdef DL_LAZY
11797 # define LT_DLLAZY_OR_NOW DL_LAZY
11798 # else
11799 # ifdef RTLD_NOW
11800 # define LT_DLLAZY_OR_NOW RTLD_NOW
11801 # else
11802 # ifdef DL_NOW
11803 # define LT_DLLAZY_OR_NOW DL_NOW
11804 # else
11805 # define LT_DLLAZY_OR_NOW 0
11806 # endif
11807 # endif
11808 # endif
11809 # endif
11810 #endif
11811
11812 /* When -fvisbility=hidden is used, assume the code has been annotated
11813 correspondingly for the symbols needed. */
11814 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11815 int fnord () __attribute__((visibility("default")));
11816 #endif
11817
11818 int fnord () { return 42; }
11819 int main ()
11820 {
11821 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11822 int status = $lt_dlunknown;
11823
11824 if (self)
11825 {
11826 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11827 else
11828 {
11829 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11830 else puts (dlerror ());
11831 }
11832 /* dlclose (self); */
11833 }
11834 else
11835 puts (dlerror ());
11836
11837 return status;
11838 }
11839 _LT_EOF
11840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11841 (eval $ac_link) 2>&5
11842 ac_status=$?
11843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11844 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11845 (./conftest; exit; ) >&5 2>/dev/null
11846 lt_status=$?
11847 case x$lt_status in
11848 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11849 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11850 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11851 esac
11852 else :
11853 # compilation failed
11854 lt_cv_dlopen_self=no
11855 fi
11856 fi
11857 rm -fr conftest*
11858
11859
11860 fi
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11862 $as_echo "$lt_cv_dlopen_self" >&6; }
11863
11864 if test "x$lt_cv_dlopen_self" = xyes; then
11865 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11867 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11868 if ${lt_cv_dlopen_self_static+:} false; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 if test "$cross_compiling" = yes; then :
11872 lt_cv_dlopen_self_static=cross
11873 else
11874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11875 lt_status=$lt_dlunknown
11876 cat > conftest.$ac_ext <<_LT_EOF
11877 #line $LINENO "configure"
11878 #include "confdefs.h"
11879
11880 #if HAVE_DLFCN_H
11881 #include <dlfcn.h>
11882 #endif
11883
11884 #include <stdio.h>
11885
11886 #ifdef RTLD_GLOBAL
11887 # define LT_DLGLOBAL RTLD_GLOBAL
11888 #else
11889 # ifdef DL_GLOBAL
11890 # define LT_DLGLOBAL DL_GLOBAL
11891 # else
11892 # define LT_DLGLOBAL 0
11893 # endif
11894 #endif
11895
11896 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11897 find out it does not work in some platform. */
11898 #ifndef LT_DLLAZY_OR_NOW
11899 # ifdef RTLD_LAZY
11900 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11901 # else
11902 # ifdef DL_LAZY
11903 # define LT_DLLAZY_OR_NOW DL_LAZY
11904 # else
11905 # ifdef RTLD_NOW
11906 # define LT_DLLAZY_OR_NOW RTLD_NOW
11907 # else
11908 # ifdef DL_NOW
11909 # define LT_DLLAZY_OR_NOW DL_NOW
11910 # else
11911 # define LT_DLLAZY_OR_NOW 0
11912 # endif
11913 # endif
11914 # endif
11915 # endif
11916 #endif
11917
11918 /* When -fvisbility=hidden is used, assume the code has been annotated
11919 correspondingly for the symbols needed. */
11920 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11921 int fnord () __attribute__((visibility("default")));
11922 #endif
11923
11924 int fnord () { return 42; }
11925 int main ()
11926 {
11927 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11928 int status = $lt_dlunknown;
11929
11930 if (self)
11931 {
11932 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11933 else
11934 {
11935 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11936 else puts (dlerror ());
11937 }
11938 /* dlclose (self); */
11939 }
11940 else
11941 puts (dlerror ());
11942
11943 return status;
11944 }
11945 _LT_EOF
11946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11947 (eval $ac_link) 2>&5
11948 ac_status=$?
11949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11950 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11951 (./conftest; exit; ) >&5 2>/dev/null
11952 lt_status=$?
11953 case x$lt_status in
11954 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11955 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11956 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11957 esac
11958 else :
11959 # compilation failed
11960 lt_cv_dlopen_self_static=no
11961 fi
11962 fi
11963 rm -fr conftest*
11964
11965
11966 fi
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11968 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11969 fi
11970
11971 CPPFLAGS="$save_CPPFLAGS"
11972 LDFLAGS="$save_LDFLAGS"
11973 LIBS="$save_LIBS"
11974 ;;
11975 esac
11976
11977 case $lt_cv_dlopen_self in
11978 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11979 *) enable_dlopen_self=unknown ;;
11980 esac
11981
11982 case $lt_cv_dlopen_self_static in
11983 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11984 *) enable_dlopen_self_static=unknown ;;
11985 esac
11986 fi
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004 striplib=
12005 old_striplib=
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12007 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12008 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12009 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12010 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12012 $as_echo "yes" >&6; }
12013 else
12014 # FIXME - insert some real tests, host_os isn't really good enough
12015 case $host_os in
12016 darwin*)
12017 if test -n "$STRIP" ; then
12018 striplib="$STRIP -x"
12019 old_striplib="$STRIP -S"
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12021 $as_echo "yes" >&6; }
12022 else
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12025 fi
12026 ;;
12027 *)
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029 $as_echo "no" >&6; }
12030 ;;
12031 esac
12032 fi
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045 # Report which library types will actually be built
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12047 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12049 $as_echo "$can_build_shared" >&6; }
12050
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12052 $as_echo_n "checking whether to build shared libraries... " >&6; }
12053 test "$can_build_shared" = "no" && enable_shared=no
12054
12055 # On AIX, shared libraries and static libraries use the same namespace, and
12056 # are all built from PIC.
12057 case $host_os in
12058 aix3*)
12059 test "$enable_shared" = yes && enable_static=no
12060 if test -n "$RANLIB"; then
12061 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12062 postinstall_cmds='$RANLIB $lib'
12063 fi
12064 ;;
12065
12066 aix[4-9]*)
12067 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12068 test "$enable_shared" = yes && enable_static=no
12069 fi
12070 ;;
12071 esac
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12073 $as_echo "$enable_shared" >&6; }
12074
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12076 $as_echo_n "checking whether to build static libraries... " >&6; }
12077 # Make sure either enable_shared or enable_static is yes.
12078 test "$enable_shared" = yes || enable_static=yes
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12080 $as_echo "$enable_static" >&6; }
12081
12082
12083
12084
12085 fi
12086 ac_ext=c
12087 ac_cpp='$CPP $CPPFLAGS'
12088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12091
12092 CC="$lt_save_CC"
12093
12094 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12095 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12096 (test "X$CXX" != "Xg++"))) ; then
12097 ac_ext=cpp
12098 ac_cpp='$CXXCPP $CPPFLAGS'
12099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12103 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12104 if test -z "$CXXCPP"; then
12105 if ${ac_cv_prog_CXXCPP+:} false; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 # Double quotes because CXXCPP needs to be expanded
12109 for CXXCPP in "$CXX -E" "/lib/cpp"
12110 do
12111 ac_preproc_ok=false
12112 for ac_cxx_preproc_warn_flag in '' yes
12113 do
12114 # Use a header file that comes with gcc, so configuring glibc
12115 # with a fresh cross-compiler works.
12116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12117 # <limits.h> exists even on freestanding compilers.
12118 # On the NeXT, cc -E runs the code through the compiler's parser,
12119 # not just through cpp. "Syntax error" is here to catch this case.
12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12122 #ifdef __STDC__
12123 # include <limits.h>
12124 #else
12125 # include <assert.h>
12126 #endif
12127 Syntax error
12128 _ACEOF
12129 if ac_fn_cxx_try_cpp "$LINENO"; then :
12130
12131 else
12132 # Broken: fails on valid input.
12133 continue
12134 fi
12135 rm -f conftest.err conftest.i conftest.$ac_ext
12136
12137 # OK, works on sane cases. Now check whether nonexistent headers
12138 # can be detected and how.
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141 #include <ac_nonexistent.h>
12142 _ACEOF
12143 if ac_fn_cxx_try_cpp "$LINENO"; then :
12144 # Broken: success on invalid input.
12145 continue
12146 else
12147 # Passes both tests.
12148 ac_preproc_ok=:
12149 break
12150 fi
12151 rm -f conftest.err conftest.i conftest.$ac_ext
12152
12153 done
12154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12155 rm -f conftest.i conftest.err conftest.$ac_ext
12156 if $ac_preproc_ok; then :
12157 break
12158 fi
12159
12160 done
12161 ac_cv_prog_CXXCPP=$CXXCPP
12162
12163 fi
12164 CXXCPP=$ac_cv_prog_CXXCPP
12165 else
12166 ac_cv_prog_CXXCPP=$CXXCPP
12167 fi
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12169 $as_echo "$CXXCPP" >&6; }
12170 ac_preproc_ok=false
12171 for ac_cxx_preproc_warn_flag in '' yes
12172 do
12173 # Use a header file that comes with gcc, so configuring glibc
12174 # with a fresh cross-compiler works.
12175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12176 # <limits.h> exists even on freestanding compilers.
12177 # On the NeXT, cc -E runs the code through the compiler's parser,
12178 # not just through cpp. "Syntax error" is here to catch this case.
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h. */
12181 #ifdef __STDC__
12182 # include <limits.h>
12183 #else
12184 # include <assert.h>
12185 #endif
12186 Syntax error
12187 _ACEOF
12188 if ac_fn_cxx_try_cpp "$LINENO"; then :
12189
12190 else
12191 # Broken: fails on valid input.
12192 continue
12193 fi
12194 rm -f conftest.err conftest.i conftest.$ac_ext
12195
12196 # OK, works on sane cases. Now check whether nonexistent headers
12197 # can be detected and how.
12198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h. */
12200 #include <ac_nonexistent.h>
12201 _ACEOF
12202 if ac_fn_cxx_try_cpp "$LINENO"; then :
12203 # Broken: success on invalid input.
12204 continue
12205 else
12206 # Passes both tests.
12207 ac_preproc_ok=:
12208 break
12209 fi
12210 rm -f conftest.err conftest.i conftest.$ac_ext
12211
12212 done
12213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12214 rm -f conftest.i conftest.err conftest.$ac_ext
12215 if $ac_preproc_ok; then :
12216
12217 else
12218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12220 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12221 See \`config.log' for more details" "$LINENO" 5; }
12222 fi
12223
12224 ac_ext=c
12225 ac_cpp='$CPP $CPPFLAGS'
12226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12229
12230 else
12231 _lt_caught_CXX_error=yes
12232 fi
12233
12234 ac_ext=cpp
12235 ac_cpp='$CXXCPP $CPPFLAGS'
12236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12239
12240 archive_cmds_need_lc_CXX=no
12241 allow_undefined_flag_CXX=
12242 always_export_symbols_CXX=no
12243 archive_expsym_cmds_CXX=
12244 compiler_needs_object_CXX=no
12245 export_dynamic_flag_spec_CXX=
12246 hardcode_direct_CXX=no
12247 hardcode_direct_absolute_CXX=no
12248 hardcode_libdir_flag_spec_CXX=
12249 hardcode_libdir_separator_CXX=
12250 hardcode_minus_L_CXX=no
12251 hardcode_shlibpath_var_CXX=unsupported
12252 hardcode_automatic_CXX=no
12253 inherit_rpath_CXX=no
12254 module_cmds_CXX=
12255 module_expsym_cmds_CXX=
12256 link_all_deplibs_CXX=unknown
12257 old_archive_cmds_CXX=$old_archive_cmds
12258 reload_flag_CXX=$reload_flag
12259 reload_cmds_CXX=$reload_cmds
12260 no_undefined_flag_CXX=
12261 whole_archive_flag_spec_CXX=
12262 enable_shared_with_static_runtimes_CXX=no
12263
12264 # Source file extension for C++ test sources.
12265 ac_ext=cpp
12266
12267 # Object file extension for compiled C++ test sources.
12268 objext=o
12269 objext_CXX=$objext
12270
12271 # No sense in running all these tests if we already determined that
12272 # the CXX compiler isn't working. Some variables (like enable_shared)
12273 # are currently assumed to apply to all compilers on this platform,
12274 # and will be corrupted by setting them based on a non-working compiler.
12275 if test "$_lt_caught_CXX_error" != yes; then
12276 # Code to be used in simple compile tests
12277 lt_simple_compile_test_code="int some_variable = 0;"
12278
12279 # Code to be used in simple link tests
12280 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12281
12282 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12283
12284
12285
12286
12287
12288
12289 # If no C compiler was specified, use CC.
12290 LTCC=${LTCC-"$CC"}
12291
12292 # If no C compiler flags were specified, use CFLAGS.
12293 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12294
12295 # Allow CC to be a program name with arguments.
12296 compiler=$CC
12297
12298
12299 # save warnings/boilerplate of simple test code
12300 ac_outfile=conftest.$ac_objext
12301 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12302 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12303 _lt_compiler_boilerplate=`cat conftest.err`
12304 $RM conftest*
12305
12306 ac_outfile=conftest.$ac_objext
12307 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12308 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12309 _lt_linker_boilerplate=`cat conftest.err`
12310 $RM -r conftest*
12311
12312
12313 # Allow CC to be a program name with arguments.
12314 lt_save_CC=$CC
12315 lt_save_CFLAGS=$CFLAGS
12316 lt_save_LD=$LD
12317 lt_save_GCC=$GCC
12318 GCC=$GXX
12319 lt_save_with_gnu_ld=$with_gnu_ld
12320 lt_save_path_LD=$lt_cv_path_LD
12321 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12322 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12323 else
12324 $as_unset lt_cv_prog_gnu_ld
12325 fi
12326 if test -n "${lt_cv_path_LDCXX+set}"; then
12327 lt_cv_path_LD=$lt_cv_path_LDCXX
12328 else
12329 $as_unset lt_cv_path_LD
12330 fi
12331 test -z "${LDCXX+set}" || LD=$LDCXX
12332 CC=${CXX-"c++"}
12333 CFLAGS=$CXXFLAGS
12334 compiler=$CC
12335 compiler_CXX=$CC
12336 for cc_temp in $compiler""; do
12337 case $cc_temp in
12338 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12339 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12340 \-*) ;;
12341 *) break;;
12342 esac
12343 done
12344 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12345
12346
12347 if test -n "$compiler"; then
12348 # We don't want -fno-exception when compiling C++ code, so set the
12349 # no_builtin_flag separately
12350 if test "$GXX" = yes; then
12351 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12352 else
12353 lt_prog_compiler_no_builtin_flag_CXX=
12354 fi
12355
12356 if test "$GXX" = yes; then
12357 # Set up default GNU C++ configuration
12358
12359
12360
12361 # Check whether --with-gnu-ld was given.
12362 if test "${with_gnu_ld+set}" = set; then :
12363 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12364 else
12365 with_gnu_ld=no
12366 fi
12367
12368 ac_prog=ld
12369 if test "$GCC" = yes; then
12370 # Check if gcc -print-prog-name=ld gives a path.
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12372 $as_echo_n "checking for ld used by $CC... " >&6; }
12373 case $host in
12374 *-*-mingw*)
12375 # gcc leaves a trailing carriage return which upsets mingw
12376 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12377 *)
12378 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12379 esac
12380 case $ac_prog in
12381 # Accept absolute paths.
12382 [\\/]* | ?:[\\/]*)
12383 re_direlt='/[^/][^/]*/\.\./'
12384 # Canonicalize the pathname of ld
12385 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12386 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12387 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12388 done
12389 test -z "$LD" && LD="$ac_prog"
12390 ;;
12391 "")
12392 # If it fails, then pretend we aren't using GCC.
12393 ac_prog=ld
12394 ;;
12395 *)
12396 # If it is relative, then search for the first ld in PATH.
12397 with_gnu_ld=unknown
12398 ;;
12399 esac
12400 elif test "$with_gnu_ld" = yes; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12402 $as_echo_n "checking for GNU ld... " >&6; }
12403 else
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12405 $as_echo_n "checking for non-GNU ld... " >&6; }
12406 fi
12407 if ${lt_cv_path_LD+:} false; then :
12408 $as_echo_n "(cached) " >&6
12409 else
12410 if test -z "$LD"; then
12411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12412 for ac_dir in $PATH; do
12413 IFS="$lt_save_ifs"
12414 test -z "$ac_dir" && ac_dir=.
12415 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12416 lt_cv_path_LD="$ac_dir/$ac_prog"
12417 # Check to see if the program is GNU ld. I'd rather use --version,
12418 # but apparently some variants of GNU ld only accept -v.
12419 # Break only if it was the GNU/non-GNU ld that we prefer.
12420 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12421 *GNU* | *'with BFD'*)
12422 test "$with_gnu_ld" != no && break
12423 ;;
12424 *)
12425 test "$with_gnu_ld" != yes && break
12426 ;;
12427 esac
12428 fi
12429 done
12430 IFS="$lt_save_ifs"
12431 else
12432 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12433 fi
12434 fi
12435
12436 LD="$lt_cv_path_LD"
12437 if test -n "$LD"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12439 $as_echo "$LD" >&6; }
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12443 fi
12444 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12446 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12447 if ${lt_cv_prog_gnu_ld+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12451 case `$LD -v 2>&1 </dev/null` in
12452 *GNU* | *'with BFD'*)
12453 lt_cv_prog_gnu_ld=yes
12454 ;;
12455 *)
12456 lt_cv_prog_gnu_ld=no
12457 ;;
12458 esac
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12461 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12462 with_gnu_ld=$lt_cv_prog_gnu_ld
12463
12464
12465
12466
12467
12468
12469
12470 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12471 # archiving commands below assume that GNU ld is being used.
12472 if test "$with_gnu_ld" = yes; then
12473 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12474 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'
12475
12476 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12477 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12478
12479 # If archive_cmds runs LD, not CC, wlarc should be empty
12480 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12481 # investigate it a little bit more. (MM)
12482 wlarc='${wl}'
12483
12484 # ancient GNU ld didn't support --whole-archive et. al.
12485 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12486 $GREP 'no-whole-archive' > /dev/null; then
12487 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12488 else
12489 whole_archive_flag_spec_CXX=
12490 fi
12491 else
12492 with_gnu_ld=no
12493 wlarc=
12494
12495 # A generic and very simple default shared library creation
12496 # command for GNU C++ for the case where it uses the native
12497 # linker, instead of GNU ld. If possible, this setting should
12498 # overridden to take advantage of the native linker features on
12499 # the platform it is being used on.
12500 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12501 fi
12502
12503 # Commands to make compiler produce verbose output that lists
12504 # what "hidden" libraries, object files and flags are used when
12505 # linking a shared library.
12506 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12507
12508 else
12509 GXX=no
12510 with_gnu_ld=no
12511 wlarc=
12512 fi
12513
12514 # PORTME: fill in a description of your system's C++ link characteristics
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12516 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12517 ld_shlibs_CXX=yes
12518 case $host_os in
12519 aix3*)
12520 # FIXME: insert proper C++ library support
12521 ld_shlibs_CXX=no
12522 ;;
12523 aix[4-9]*)
12524 if test "$host_cpu" = ia64; then
12525 # On IA64, the linker does run time linking by default, so we don't
12526 # have to do anything special.
12527 aix_use_runtimelinking=no
12528 exp_sym_flag='-Bexport'
12529 no_entry_flag=""
12530 else
12531 aix_use_runtimelinking=no
12532
12533 # Test if we are trying to use run time linking or normal
12534 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12535 # need to do runtime linking.
12536 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12537 for ld_flag in $LDFLAGS; do
12538 case $ld_flag in
12539 *-brtl*)
12540 aix_use_runtimelinking=yes
12541 break
12542 ;;
12543 esac
12544 done
12545 ;;
12546 esac
12547
12548 exp_sym_flag='-bexport'
12549 no_entry_flag='-bnoentry'
12550 fi
12551
12552 # When large executables or shared objects are built, AIX ld can
12553 # have problems creating the table of contents. If linking a library
12554 # or program results in "error TOC overflow" add -mminimal-toc to
12555 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12556 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12557
12558 archive_cmds_CXX=''
12559 hardcode_direct_CXX=yes
12560 hardcode_direct_absolute_CXX=yes
12561 hardcode_libdir_separator_CXX=':'
12562 link_all_deplibs_CXX=yes
12563 file_list_spec_CXX='${wl}-f,'
12564
12565 if test "$GXX" = yes; then
12566 case $host_os in aix4.[012]|aix4.[012].*)
12567 # We only want to do this on AIX 4.2 and lower, the check
12568 # below for broken collect2 doesn't work under 4.3+
12569 collect2name=`${CC} -print-prog-name=collect2`
12570 if test -f "$collect2name" &&
12571 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12572 then
12573 # We have reworked collect2
12574 :
12575 else
12576 # We have old collect2
12577 hardcode_direct_CXX=unsupported
12578 # It fails to find uninstalled libraries when the uninstalled
12579 # path is not listed in the libpath. Setting hardcode_minus_L
12580 # to unsupported forces relinking
12581 hardcode_minus_L_CXX=yes
12582 hardcode_libdir_flag_spec_CXX='-L$libdir'
12583 hardcode_libdir_separator_CXX=
12584 fi
12585 esac
12586 shared_flag='-shared'
12587 if test "$aix_use_runtimelinking" = yes; then
12588 shared_flag="$shared_flag "'${wl}-G'
12589 fi
12590 else
12591 # not using gcc
12592 if test "$host_cpu" = ia64; then
12593 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12594 # chokes on -Wl,-G. The following line is correct:
12595 shared_flag='-G'
12596 else
12597 if test "$aix_use_runtimelinking" = yes; then
12598 shared_flag='${wl}-G'
12599 else
12600 shared_flag='${wl}-bM:SRE'
12601 fi
12602 fi
12603 fi
12604
12605 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12606 # It seems that -bexpall does not export symbols beginning with
12607 # underscore (_), so it is better to generate a list of symbols to
12608 # export.
12609 always_export_symbols_CXX=yes
12610 if test "$aix_use_runtimelinking" = yes; then
12611 # Warning - without using the other runtime loading flags (-brtl),
12612 # -berok will link without error, but may produce a broken library.
12613 allow_undefined_flag_CXX='-berok'
12614 # Determine the default libpath from the value encoded in an empty
12615 # executable.
12616 if test "${lt_cv_aix_libpath+set}" = set; then
12617 aix_libpath=$lt_cv_aix_libpath
12618 else
12619 if ${lt_cv_aix_libpath__CXX+:} false; then :
12620 $as_echo_n "(cached) " >&6
12621 else
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12624
12625 int
12626 main ()
12627 {
12628
12629 ;
12630 return 0;
12631 }
12632 _ACEOF
12633 if ac_fn_cxx_try_link "$LINENO"; then :
12634
12635 lt_aix_libpath_sed='
12636 /Import File Strings/,/^$/ {
12637 /^0/ {
12638 s/^0 *\([^ ]*\) *$/\1/
12639 p
12640 }
12641 }'
12642 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12643 # Check for a 64-bit object if we didn't find anything.
12644 if test -z "$lt_cv_aix_libpath__CXX"; then
12645 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12646 fi
12647 fi
12648 rm -f core conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12650 if test -z "$lt_cv_aix_libpath__CXX"; then
12651 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12652 fi
12653
12654 fi
12655
12656 aix_libpath=$lt_cv_aix_libpath__CXX
12657 fi
12658
12659 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12660
12661 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"
12662 else
12663 if test "$host_cpu" = ia64; then
12664 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12665 allow_undefined_flag_CXX="-z nodefs"
12666 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"
12667 else
12668 # Determine the default libpath from the value encoded in an
12669 # empty executable.
12670 if test "${lt_cv_aix_libpath+set}" = set; then
12671 aix_libpath=$lt_cv_aix_libpath
12672 else
12673 if ${lt_cv_aix_libpath__CXX+:} false; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678
12679 int
12680 main ()
12681 {
12682
12683 ;
12684 return 0;
12685 }
12686 _ACEOF
12687 if ac_fn_cxx_try_link "$LINENO"; then :
12688
12689 lt_aix_libpath_sed='
12690 /Import File Strings/,/^$/ {
12691 /^0/ {
12692 s/^0 *\([^ ]*\) *$/\1/
12693 p
12694 }
12695 }'
12696 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12697 # Check for a 64-bit object if we didn't find anything.
12698 if test -z "$lt_cv_aix_libpath__CXX"; then
12699 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12700 fi
12701 fi
12702 rm -f core conftest.err conftest.$ac_objext \
12703 conftest$ac_exeext conftest.$ac_ext
12704 if test -z "$lt_cv_aix_libpath__CXX"; then
12705 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12706 fi
12707
12708 fi
12709
12710 aix_libpath=$lt_cv_aix_libpath__CXX
12711 fi
12712
12713 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12714 # Warning - without using the other run time loading flags,
12715 # -berok will link without error, but may produce a broken library.
12716 no_undefined_flag_CXX=' ${wl}-bernotok'
12717 allow_undefined_flag_CXX=' ${wl}-berok'
12718 if test "$with_gnu_ld" = yes; then
12719 # We only use this code for GNU lds that support --whole-archive.
12720 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12721 else
12722 # Exported symbols can be pulled into shared objects from archives
12723 whole_archive_flag_spec_CXX='$convenience'
12724 fi
12725 archive_cmds_need_lc_CXX=yes
12726 # This is similar to how AIX traditionally builds its shared
12727 # libraries.
12728 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'
12729 fi
12730 fi
12731 ;;
12732
12733 beos*)
12734 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12735 allow_undefined_flag_CXX=unsupported
12736 # Joseph Beckenbach <[email protected]> says some releases of gcc
12737 # support --undefined. This deserves some investigation. FIXME
12738 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12739 else
12740 ld_shlibs_CXX=no
12741 fi
12742 ;;
12743
12744 chorus*)
12745 case $cc_basename in
12746 *)
12747 # FIXME: insert proper C++ library support
12748 ld_shlibs_CXX=no
12749 ;;
12750 esac
12751 ;;
12752
12753 cygwin* | mingw* | pw32* | cegcc*)
12754 case $GXX,$cc_basename in
12755 ,cl* | no,cl*)
12756 # Native MSVC
12757 # hardcode_libdir_flag_spec is actually meaningless, as there is
12758 # no search path for DLLs.
12759 hardcode_libdir_flag_spec_CXX=' '
12760 allow_undefined_flag_CXX=unsupported
12761 always_export_symbols_CXX=yes
12762 file_list_spec_CXX='@'
12763 # Tell ltmain to make .lib files, not .a files.
12764 libext=lib
12765 # Tell ltmain to make .dll files, not .so files.
12766 shrext_cmds=".dll"
12767 # FIXME: Setting linknames here is a bad hack.
12768 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12769 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12770 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12771 else
12772 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12773 fi~
12774 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12775 linknames='
12776 # The linker will not automatically build a static lib if we build a DLL.
12777 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12778 enable_shared_with_static_runtimes_CXX=yes
12779 # Don't use ranlib
12780 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12781 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12782 lt_tool_outputfile="@TOOL_OUTPUT@"~
12783 case $lt_outputfile in
12784 *.exe|*.EXE) ;;
12785 *)
12786 lt_outputfile="$lt_outputfile.exe"
12787 lt_tool_outputfile="$lt_tool_outputfile.exe"
12788 ;;
12789 esac~
12790 func_to_tool_file "$lt_outputfile"~
12791 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12792 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12793 $RM "$lt_outputfile.manifest";
12794 fi'
12795 ;;
12796 *)
12797 # g++
12798 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12799 # as there is no search path for DLLs.
12800 hardcode_libdir_flag_spec_CXX='-L$libdir'
12801 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12802 allow_undefined_flag_CXX=unsupported
12803 always_export_symbols_CXX=no
12804 enable_shared_with_static_runtimes_CXX=yes
12805
12806 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12807 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'
12808 # If the export-symbols file already is a .def file (1st line
12809 # is EXPORTS), use it as is; otherwise, prepend...
12810 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12811 cp $export_symbols $output_objdir/$soname.def;
12812 else
12813 echo EXPORTS > $output_objdir/$soname.def;
12814 cat $export_symbols >> $output_objdir/$soname.def;
12815 fi~
12816 $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'
12817 else
12818 ld_shlibs_CXX=no
12819 fi
12820 ;;
12821 esac
12822 ;;
12823 darwin* | rhapsody*)
12824
12825
12826 archive_cmds_need_lc_CXX=no
12827 hardcode_direct_CXX=no
12828 hardcode_automatic_CXX=yes
12829 hardcode_shlibpath_var_CXX=unsupported
12830 if test "$lt_cv_ld_force_load" = "yes"; then
12831 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\"`'
12832
12833 else
12834 whole_archive_flag_spec_CXX=''
12835 fi
12836 link_all_deplibs_CXX=yes
12837 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12838 case $cc_basename in
12839 ifort*) _lt_dar_can_shared=yes ;;
12840 *) _lt_dar_can_shared=$GCC ;;
12841 esac
12842 if test "$_lt_dar_can_shared" = "yes"; then
12843 output_verbose_link_cmd=func_echo_all
12844 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}"
12845 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12846 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}"
12847 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}"
12848 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12849 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}"
12850 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}"
12851 fi
12852
12853 else
12854 ld_shlibs_CXX=no
12855 fi
12856
12857 ;;
12858
12859 dgux*)
12860 case $cc_basename in
12861 ec++*)
12862 # FIXME: insert proper C++ library support
12863 ld_shlibs_CXX=no
12864 ;;
12865 ghcx*)
12866 # Green Hills C++ Compiler
12867 # FIXME: insert proper C++ library support
12868 ld_shlibs_CXX=no
12869 ;;
12870 *)
12871 # FIXME: insert proper C++ library support
12872 ld_shlibs_CXX=no
12873 ;;
12874 esac
12875 ;;
12876
12877 freebsd2.*)
12878 # C++ shared libraries reported to be fairly broken before
12879 # switch to ELF
12880 ld_shlibs_CXX=no
12881 ;;
12882
12883 freebsd-elf*)
12884 archive_cmds_need_lc_CXX=no
12885 ;;
12886
12887 freebsd* | dragonfly*)
12888 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12889 # conventions
12890 ld_shlibs_CXX=yes
12891 ;;
12892
12893 gnu*)
12894 ;;
12895
12896 haiku*)
12897 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12898 link_all_deplibs_CXX=yes
12899 ;;
12900
12901 hpux9*)
12902 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12903 hardcode_libdir_separator_CXX=:
12904 export_dynamic_flag_spec_CXX='${wl}-E'
12905 hardcode_direct_CXX=yes
12906 hardcode_minus_L_CXX=yes # Not in the search PATH,
12907 # but as the default
12908 # location of the library.
12909
12910 case $cc_basename in
12911 CC*)
12912 # FIXME: insert proper C++ library support
12913 ld_shlibs_CXX=no
12914 ;;
12915 aCC*)
12916 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'
12917 # Commands to make compiler produce verbose output that lists
12918 # what "hidden" libraries, object files and flags are used when
12919 # linking a shared library.
12920 #
12921 # There doesn't appear to be a way to prevent this compiler from
12922 # explicitly linking system object files so we need to strip them
12923 # from the output so that they don't get included in the library
12924 # dependencies.
12925 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"'
12926 ;;
12927 *)
12928 if test "$GXX" = yes; then
12929 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
12930 else
12931 # FIXME: insert proper C++ library support
12932 ld_shlibs_CXX=no
12933 fi
12934 ;;
12935 esac
12936 ;;
12937
12938 hpux10*|hpux11*)
12939 if test $with_gnu_ld = no; then
12940 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12941 hardcode_libdir_separator_CXX=:
12942
12943 case $host_cpu in
12944 hppa*64*|ia64*)
12945 ;;
12946 *)
12947 export_dynamic_flag_spec_CXX='${wl}-E'
12948 ;;
12949 esac
12950 fi
12951 case $host_cpu in
12952 hppa*64*|ia64*)
12953 hardcode_direct_CXX=no
12954 hardcode_shlibpath_var_CXX=no
12955 ;;
12956 *)
12957 hardcode_direct_CXX=yes
12958 hardcode_direct_absolute_CXX=yes
12959 hardcode_minus_L_CXX=yes # Not in the search PATH,
12960 # but as the default
12961 # location of the library.
12962 ;;
12963 esac
12964
12965 case $cc_basename in
12966 CC*)
12967 # FIXME: insert proper C++ library support
12968 ld_shlibs_CXX=no
12969 ;;
12970 aCC*)
12971 case $host_cpu in
12972 hppa*64*)
12973 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12974 ;;
12975 ia64*)
12976 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12977 ;;
12978 *)
12979 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12980 ;;
12981 esac
12982 # Commands to make compiler produce verbose output that lists
12983 # what "hidden" libraries, object files and flags are used when
12984 # linking a shared library.
12985 #
12986 # There doesn't appear to be a way to prevent this compiler from
12987 # explicitly linking system object files so we need to strip them
12988 # from the output so that they don't get included in the library
12989 # dependencies.
12990 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"'
12991 ;;
12992 *)
12993 if test "$GXX" = yes; then
12994 if test $with_gnu_ld = no; then
12995 case $host_cpu in
12996 hppa*64*)
12997 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12998 ;;
12999 ia64*)
13000 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13001 ;;
13002 *)
13003 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13004 ;;
13005 esac
13006 fi
13007 else
13008 # FIXME: insert proper C++ library support
13009 ld_shlibs_CXX=no
13010 fi
13011 ;;
13012 esac
13013 ;;
13014
13015 interix[3-9]*)
13016 hardcode_direct_CXX=no
13017 hardcode_shlibpath_var_CXX=no
13018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13019 export_dynamic_flag_spec_CXX='${wl}-E'
13020 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13021 # Instead, shared libraries are loaded at an image base (0x10000000 by
13022 # default) and relocated if they conflict, which is a slow very memory
13023 # consuming and fragmenting process. To avoid this, we pick a random,
13024 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13025 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13026 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'
13027 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'
13028 ;;
13029 irix5* | irix6*)
13030 case $cc_basename in
13031 CC*)
13032 # SGI C++
13033 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'
13034
13035 # Archives containing C++ object files must be created using
13036 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13037 # necessary to make sure instantiated templates are included
13038 # in the archive.
13039 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13040 ;;
13041 *)
13042 if test "$GXX" = yes; then
13043 if test "$with_gnu_ld" = no; then
13044 archive_cmds_CXX='$CC -shared $pic_flag -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'
13045 else
13046 archive_cmds_CXX='$CC -shared $pic_flag -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'
13047 fi
13048 fi
13049 link_all_deplibs_CXX=yes
13050 ;;
13051 esac
13052 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13053 hardcode_libdir_separator_CXX=:
13054 inherit_rpath_CXX=yes
13055 ;;
13056
13057 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13058 case $cc_basename in
13059 KCC*)
13060 # Kuck and Associates, Inc. (KAI) C++ Compiler
13061
13062 # KCC will only create a shared library if the output file
13063 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13064 # to its proper name (with version) after linking.
13065 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'
13066 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'
13067 # Commands to make compiler produce verbose output that lists
13068 # what "hidden" libraries, object files and flags are used when
13069 # linking a shared library.
13070 #
13071 # There doesn't appear to be a way to prevent this compiler from
13072 # explicitly linking system object files so we need to strip them
13073 # from the output so that they don't get included in the library
13074 # dependencies.
13075 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"'
13076
13077 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13078 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13079
13080 # Archives containing C++ object files must be created using
13081 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13082 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13083 ;;
13084 icpc* | ecpc* )
13085 # Intel C++
13086 with_gnu_ld=yes
13087 # version 8.0 and above of icpc choke on multiply defined symbols
13088 # if we add $predep_objects and $postdep_objects, however 7.1 and
13089 # earlier do not add the objects themselves.
13090 case `$CC -V 2>&1` in
13091 *"Version 7."*)
13092 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13093 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'
13094 ;;
13095 *) # Version 8.0 or newer
13096 tmp_idyn=
13097 case $host_cpu in
13098 ia64*) tmp_idyn=' -i_dynamic';;
13099 esac
13100 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13101 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'
13102 ;;
13103 esac
13104 archive_cmds_need_lc_CXX=no
13105 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13106 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13107 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13108 ;;
13109 pgCC* | pgcpp*)
13110 # Portland Group C++ compiler
13111 case `$CC -V` in
13112 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13113 prelink_cmds_CXX='tpldir=Template.dir~
13114 rm -rf $tpldir~
13115 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13116 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13117 old_archive_cmds_CXX='tpldir=Template.dir~
13118 rm -rf $tpldir~
13119 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13120 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13121 $RANLIB $oldlib'
13122 archive_cmds_CXX='tpldir=Template.dir~
13123 rm -rf $tpldir~
13124 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13125 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13126 archive_expsym_cmds_CXX='tpldir=Template.dir~
13127 rm -rf $tpldir~
13128 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13129 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13130 ;;
13131 *) # Version 6 and above use weak symbols
13132 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13133 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'
13134 ;;
13135 esac
13136
13137 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13138 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13139 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'
13140 ;;
13141 cxx*)
13142 # Compaq C++
13143 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13144 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'
13145
13146 runpath_var=LD_RUN_PATH
13147 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13148 hardcode_libdir_separator_CXX=:
13149
13150 # Commands to make compiler produce verbose output that lists
13151 # what "hidden" libraries, object files and flags are used when
13152 # linking a shared library.
13153 #
13154 # There doesn't appear to be a way to prevent this compiler from
13155 # explicitly linking system object files so we need to strip them
13156 # from the output so that they don't get included in the library
13157 # dependencies.
13158 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'
13159 ;;
13160 xl* | mpixl* | bgxl*)
13161 # IBM XL 8.0 on PPC, with GNU ld
13162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13163 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13164 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13165 if test "x$supports_anon_versioning" = xyes; then
13166 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13167 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13168 echo "local: *; };" >> $output_objdir/$libname.ver~
13169 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13170 fi
13171 ;;
13172 *)
13173 case `$CC -V 2>&1 | sed 5q` in
13174 *Sun\ C*)
13175 # Sun C++ 5.9
13176 no_undefined_flag_CXX=' -zdefs'
13177 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13178 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'
13179 hardcode_libdir_flag_spec_CXX='-R$libdir'
13180 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'
13181 compiler_needs_object_CXX=yes
13182
13183 # Not sure whether something based on
13184 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13185 # would be better.
13186 output_verbose_link_cmd='func_echo_all'
13187
13188 # Archives containing C++ object files must be created using
13189 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13190 # necessary to make sure instantiated templates are included
13191 # in the archive.
13192 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13193 ;;
13194 esac
13195 ;;
13196 esac
13197 ;;
13198
13199 lynxos*)
13200 # FIXME: insert proper C++ library support
13201 ld_shlibs_CXX=no
13202 ;;
13203
13204 m88k*)
13205 # FIXME: insert proper C++ library support
13206 ld_shlibs_CXX=no
13207 ;;
13208
13209 mvs*)
13210 case $cc_basename in
13211 cxx*)
13212 # FIXME: insert proper C++ library support
13213 ld_shlibs_CXX=no
13214 ;;
13215 *)
13216 # FIXME: insert proper C++ library support
13217 ld_shlibs_CXX=no
13218 ;;
13219 esac
13220 ;;
13221
13222 netbsd*)
13223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13224 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13225 wlarc=
13226 hardcode_libdir_flag_spec_CXX='-R$libdir'
13227 hardcode_direct_CXX=yes
13228 hardcode_shlibpath_var_CXX=no
13229 fi
13230 # Workaround some broken pre-1.5 toolchains
13231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13232 ;;
13233
13234 *nto* | *qnx*)
13235 ld_shlibs_CXX=yes
13236 ;;
13237
13238 openbsd2*)
13239 # C++ shared libraries are fairly broken
13240 ld_shlibs_CXX=no
13241 ;;
13242
13243 openbsd*)
13244 if test -f /usr/libexec/ld.so; then
13245 hardcode_direct_CXX=yes
13246 hardcode_shlibpath_var_CXX=no
13247 hardcode_direct_absolute_CXX=yes
13248 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13249 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13251 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13252 export_dynamic_flag_spec_CXX='${wl}-E'
13253 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13254 fi
13255 output_verbose_link_cmd=func_echo_all
13256 else
13257 ld_shlibs_CXX=no
13258 fi
13259 ;;
13260
13261 osf3* | osf4* | osf5*)
13262 case $cc_basename in
13263 KCC*)
13264 # Kuck and Associates, Inc. (KAI) C++ Compiler
13265
13266 # KCC will only create a shared library if the output file
13267 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13268 # to its proper name (with version) after linking.
13269 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'
13270
13271 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13272 hardcode_libdir_separator_CXX=:
13273
13274 # Archives containing C++ object files must be created using
13275 # the KAI C++ compiler.
13276 case $host in
13277 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13278 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13279 esac
13280 ;;
13281 RCC*)
13282 # Rational C++ 2.4.1
13283 # FIXME: insert proper C++ library support
13284 ld_shlibs_CXX=no
13285 ;;
13286 cxx*)
13287 case $host in
13288 osf3*)
13289 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13290 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'
13291 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13292 ;;
13293 *)
13294 allow_undefined_flag_CXX=' -expect_unresolved \*'
13295 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'
13296 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13297 echo "-hidden">> $lib.exp~
13298 $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~
13299 $RM $lib.exp'
13300 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13301 ;;
13302 esac
13303
13304 hardcode_libdir_separator_CXX=:
13305
13306 # Commands to make compiler produce verbose output that lists
13307 # what "hidden" libraries, object files and flags are used when
13308 # linking a shared library.
13309 #
13310 # There doesn't appear to be a way to prevent this compiler from
13311 # explicitly linking system object files so we need to strip them
13312 # from the output so that they don't get included in the library
13313 # dependencies.
13314 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"'
13315 ;;
13316 *)
13317 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13318 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13319 case $host in
13320 osf3*)
13321 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'
13322 ;;
13323 *)
13324 archive_cmds_CXX='$CC -shared $pic_flag -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'
13325 ;;
13326 esac
13327
13328 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13329 hardcode_libdir_separator_CXX=:
13330
13331 # Commands to make compiler produce verbose output that lists
13332 # what "hidden" libraries, object files and flags are used when
13333 # linking a shared library.
13334 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13335
13336 else
13337 # FIXME: insert proper C++ library support
13338 ld_shlibs_CXX=no
13339 fi
13340 ;;
13341 esac
13342 ;;
13343
13344 psos*)
13345 # FIXME: insert proper C++ library support
13346 ld_shlibs_CXX=no
13347 ;;
13348
13349 sunos4*)
13350 case $cc_basename in
13351 CC*)
13352 # Sun C++ 4.x
13353 # FIXME: insert proper C++ library support
13354 ld_shlibs_CXX=no
13355 ;;
13356 lcc*)
13357 # Lucid
13358 # FIXME: insert proper C++ library support
13359 ld_shlibs_CXX=no
13360 ;;
13361 *)
13362 # FIXME: insert proper C++ library support
13363 ld_shlibs_CXX=no
13364 ;;
13365 esac
13366 ;;
13367
13368 solaris*)
13369 case $cc_basename in
13370 CC* | sunCC*)
13371 # Sun C++ 4.2, 5.x and Centerline C++
13372 archive_cmds_need_lc_CXX=yes
13373 no_undefined_flag_CXX=' -zdefs'
13374 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13375 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13376 $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'
13377
13378 hardcode_libdir_flag_spec_CXX='-R$libdir'
13379 hardcode_shlibpath_var_CXX=no
13380 case $host_os in
13381 solaris2.[0-5] | solaris2.[0-5].*) ;;
13382 *)
13383 # The compiler driver will combine and reorder linker options,
13384 # but understands `-z linker_flag'.
13385 # Supported since Solaris 2.6 (maybe 2.5.1?)
13386 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13387 ;;
13388 esac
13389 link_all_deplibs_CXX=yes
13390
13391 output_verbose_link_cmd='func_echo_all'
13392
13393 # Archives containing C++ object files must be created using
13394 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13395 # necessary to make sure instantiated templates are included
13396 # in the archive.
13397 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13398 ;;
13399 gcx*)
13400 # Green Hills C++ Compiler
13401 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13402
13403 # The C++ compiler must be used to create the archive.
13404 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13405 ;;
13406 *)
13407 # GNU C++ compiler with Solaris linker
13408 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13409 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13410 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13411 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13412 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13413 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13414
13415 # Commands to make compiler produce verbose output that lists
13416 # what "hidden" libraries, object files and flags are used when
13417 # linking a shared library.
13418 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13419 else
13420 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13421 # platform.
13422 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13423 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13424 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13425
13426 # Commands to make compiler produce verbose output that lists
13427 # what "hidden" libraries, object files and flags are used when
13428 # linking a shared library.
13429 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13430 fi
13431
13432 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13433 case $host_os in
13434 solaris2.[0-5] | solaris2.[0-5].*) ;;
13435 *)
13436 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13437 ;;
13438 esac
13439 fi
13440 ;;
13441 esac
13442 ;;
13443
13444 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13445 no_undefined_flag_CXX='${wl}-z,text'
13446 archive_cmds_need_lc_CXX=no
13447 hardcode_shlibpath_var_CXX=no
13448 runpath_var='LD_RUN_PATH'
13449
13450 case $cc_basename in
13451 CC*)
13452 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13453 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13454 ;;
13455 *)
13456 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13457 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13458 ;;
13459 esac
13460 ;;
13461
13462 sysv5* | sco3.2v5* | sco5v6*)
13463 # Note: We can NOT use -z defs as we might desire, because we do not
13464 # link with -lc, and that would cause any symbols used from libc to
13465 # always be unresolved, which means just about no library would
13466 # ever link correctly. If we're not using GNU ld we use -z text
13467 # though, which does catch some bad symbols but isn't as heavy-handed
13468 # as -z defs.
13469 no_undefined_flag_CXX='${wl}-z,text'
13470 allow_undefined_flag_CXX='${wl}-z,nodefs'
13471 archive_cmds_need_lc_CXX=no
13472 hardcode_shlibpath_var_CXX=no
13473 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13474 hardcode_libdir_separator_CXX=':'
13475 link_all_deplibs_CXX=yes
13476 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13477 runpath_var='LD_RUN_PATH'
13478
13479 case $cc_basename in
13480 CC*)
13481 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13482 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13483 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13484 '"$old_archive_cmds_CXX"
13485 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13486 '"$reload_cmds_CXX"
13487 ;;
13488 *)
13489 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13490 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13491 ;;
13492 esac
13493 ;;
13494
13495 tandem*)
13496 case $cc_basename in
13497 NCC*)
13498 # NonStop-UX NCC 3.20
13499 # FIXME: insert proper C++ library support
13500 ld_shlibs_CXX=no
13501 ;;
13502 *)
13503 # FIXME: insert proper C++ library support
13504 ld_shlibs_CXX=no
13505 ;;
13506 esac
13507 ;;
13508
13509 vxworks*)
13510 # FIXME: insert proper C++ library support
13511 ld_shlibs_CXX=no
13512 ;;
13513
13514 *)
13515 # FIXME: insert proper C++ library support
13516 ld_shlibs_CXX=no
13517 ;;
13518 esac
13519
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13521 $as_echo "$ld_shlibs_CXX" >&6; }
13522 test "$ld_shlibs_CXX" = no && can_build_shared=no
13523
13524 GCC_CXX="$GXX"
13525 LD_CXX="$LD"
13526
13527 ## CAVEAT EMPTOR:
13528 ## There is no encapsulation within the following macros, do not change
13529 ## the running order or otherwise move them around unless you know exactly
13530 ## what you are doing...
13531 # Dependencies to place before and after the object being linked:
13532 predep_objects_CXX=
13533 postdep_objects_CXX=
13534 predeps_CXX=
13535 postdeps_CXX=
13536 compiler_lib_search_path_CXX=
13537
13538 cat > conftest.$ac_ext <<_LT_EOF
13539 class Foo
13540 {
13541 public:
13542 Foo (void) { a = 0; }
13543 private:
13544 int a;
13545 };
13546 _LT_EOF
13547
13548
13549 _lt_libdeps_save_CFLAGS=$CFLAGS
13550 case "$CC $CFLAGS " in #(
13551 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13552 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13553 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13554 esac
13555
13556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13557 (eval $ac_compile) 2>&5
13558 ac_status=$?
13559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13560 test $ac_status = 0; }; then
13561 # Parse the compiler output and extract the necessary
13562 # objects, libraries and library flags.
13563
13564 # Sentinel used to keep track of whether or not we are before
13565 # the conftest object file.
13566 pre_test_object_deps_done=no
13567
13568 for p in `eval "$output_verbose_link_cmd"`; do
13569 case ${prev}${p} in
13570
13571 -L* | -R* | -l*)
13572 # Some compilers place space between "-{L,R}" and the path.
13573 # Remove the space.
13574 if test $p = "-L" ||
13575 test $p = "-R"; then
13576 prev=$p
13577 continue
13578 fi
13579
13580 # Expand the sysroot to ease extracting the directories later.
13581 if test -z "$prev"; then
13582 case $p in
13583 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13584 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13585 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13586 esac
13587 fi
13588 case $p in
13589 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13590 esac
13591 if test "$pre_test_object_deps_done" = no; then
13592 case ${prev} in
13593 -L | -R)
13594 # Internal compiler library paths should come after those
13595 # provided the user. The postdeps already come after the
13596 # user supplied libs so there is no need to process them.
13597 if test -z "$compiler_lib_search_path_CXX"; then
13598 compiler_lib_search_path_CXX="${prev}${p}"
13599 else
13600 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13601 fi
13602 ;;
13603 # The "-l" case would never come before the object being
13604 # linked, so don't bother handling this case.
13605 esac
13606 else
13607 if test -z "$postdeps_CXX"; then
13608 postdeps_CXX="${prev}${p}"
13609 else
13610 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13611 fi
13612 fi
13613 prev=
13614 ;;
13615
13616 *.lto.$objext) ;; # Ignore GCC LTO objects
13617 *.$objext)
13618 # This assumes that the test object file only shows up
13619 # once in the compiler output.
13620 if test "$p" = "conftest.$objext"; then
13621 pre_test_object_deps_done=yes
13622 continue
13623 fi
13624
13625 if test "$pre_test_object_deps_done" = no; then
13626 if test -z "$predep_objects_CXX"; then
13627 predep_objects_CXX="$p"
13628 else
13629 predep_objects_CXX="$predep_objects_CXX $p"
13630 fi
13631 else
13632 if test -z "$postdep_objects_CXX"; then
13633 postdep_objects_CXX="$p"
13634 else
13635 postdep_objects_CXX="$postdep_objects_CXX $p"
13636 fi
13637 fi
13638 ;;
13639
13640 *) ;; # Ignore the rest.
13641
13642 esac
13643 done
13644
13645 # Clean up.
13646 rm -f a.out a.exe
13647 else
13648 echo "libtool.m4: error: problem compiling CXX test program"
13649 fi
13650
13651 $RM -f confest.$objext
13652 CFLAGS=$_lt_libdeps_save_CFLAGS
13653
13654 # PORTME: override above test on systems where it is broken
13655 case $host_os in
13656 interix[3-9]*)
13657 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13658 # hack all around it, let's just trust "g++" to DTRT.
13659 predep_objects_CXX=
13660 postdep_objects_CXX=
13661 postdeps_CXX=
13662 ;;
13663
13664 linux*)
13665 case `$CC -V 2>&1 | sed 5q` in
13666 *Sun\ C*)
13667 # Sun C++ 5.9
13668
13669 # The more standards-conforming stlport4 library is
13670 # incompatible with the Cstd library. Avoid specifying
13671 # it if it's in CXXFLAGS. Ignore libCrun as
13672 # -library=stlport4 depends on it.
13673 case " $CXX $CXXFLAGS " in
13674 *" -library=stlport4 "*)
13675 solaris_use_stlport4=yes
13676 ;;
13677 esac
13678
13679 if test "$solaris_use_stlport4" != yes; then
13680 postdeps_CXX='-library=Cstd -library=Crun'
13681 fi
13682 ;;
13683 esac
13684 ;;
13685
13686 solaris*)
13687 case $cc_basename in
13688 CC* | sunCC*)
13689 # The more standards-conforming stlport4 library is
13690 # incompatible with the Cstd library. Avoid specifying
13691 # it if it's in CXXFLAGS. Ignore libCrun as
13692 # -library=stlport4 depends on it.
13693 case " $CXX $CXXFLAGS " in
13694 *" -library=stlport4 "*)
13695 solaris_use_stlport4=yes
13696 ;;
13697 esac
13698
13699 # Adding this requires a known-good setup of shared libraries for
13700 # Sun compiler versions before 5.6, else PIC objects from an old
13701 # archive will be linked into the output, leading to subtle bugs.
13702 if test "$solaris_use_stlport4" != yes; then
13703 postdeps_CXX='-library=Cstd -library=Crun'
13704 fi
13705 ;;
13706 esac
13707 ;;
13708 esac
13709
13710
13711 case " $postdeps_CXX " in
13712 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13713 esac
13714 compiler_lib_search_dirs_CXX=
13715 if test -n "${compiler_lib_search_path_CXX}"; then
13716 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13717 fi
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749 lt_prog_compiler_wl_CXX=
13750 lt_prog_compiler_pic_CXX=
13751 lt_prog_compiler_static_CXX=
13752
13753
13754 # C++ specific cases for pic, static, wl, etc.
13755 if test "$GXX" = yes; then
13756 lt_prog_compiler_wl_CXX='-Wl,'
13757 lt_prog_compiler_static_CXX='-static'
13758
13759 case $host_os in
13760 aix*)
13761 # All AIX code is PIC.
13762 if test "$host_cpu" = ia64; then
13763 # AIX 5 now supports IA64 processor
13764 lt_prog_compiler_static_CXX='-Bstatic'
13765 fi
13766 ;;
13767
13768 amigaos*)
13769 case $host_cpu in
13770 powerpc)
13771 # see comment about AmigaOS4 .so support
13772 lt_prog_compiler_pic_CXX='-fPIC'
13773 ;;
13774 m68k)
13775 # FIXME: we need at least 68020 code to build shared libraries, but
13776 # adding the `-m68020' flag to GCC prevents building anything better,
13777 # like `-m68040'.
13778 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13779 ;;
13780 esac
13781 ;;
13782
13783 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13784 # PIC is the default for these OSes.
13785 ;;
13786 mingw* | cygwin* | os2* | pw32* | cegcc*)
13787 # This hack is so that the source file can tell whether it is being
13788 # built for inclusion in a dll (and should export symbols for example).
13789 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13790 # (--disable-auto-import) libraries
13791 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13792 ;;
13793 darwin* | rhapsody*)
13794 # PIC is the default on this platform
13795 # Common symbols not allowed in MH_DYLIB files
13796 lt_prog_compiler_pic_CXX='-fno-common'
13797 ;;
13798 *djgpp*)
13799 # DJGPP does not support shared libraries at all
13800 lt_prog_compiler_pic_CXX=
13801 ;;
13802 haiku*)
13803 # PIC is the default for Haiku.
13804 # The "-static" flag exists, but is broken.
13805 lt_prog_compiler_static_CXX=
13806 ;;
13807 interix[3-9]*)
13808 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13809 # Instead, we relocate shared libraries at runtime.
13810 ;;
13811 sysv4*MP*)
13812 if test -d /usr/nec; then
13813 lt_prog_compiler_pic_CXX=-Kconform_pic
13814 fi
13815 ;;
13816 hpux*)
13817 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13818 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13819 # sets the default TLS model and affects inlining.
13820 case $host_cpu in
13821 hppa*64*)
13822 ;;
13823 *)
13824 lt_prog_compiler_pic_CXX='-fPIC'
13825 ;;
13826 esac
13827 ;;
13828 *qnx* | *nto*)
13829 # QNX uses GNU C++, but need to define -shared option too, otherwise
13830 # it will coredump.
13831 lt_prog_compiler_pic_CXX='-fPIC -shared'
13832 ;;
13833 *)
13834 lt_prog_compiler_pic_CXX='-fPIC'
13835 ;;
13836 esac
13837 else
13838 case $host_os in
13839 aix[4-9]*)
13840 # All AIX code is PIC.
13841 if test "$host_cpu" = ia64; then
13842 # AIX 5 now supports IA64 processor
13843 lt_prog_compiler_static_CXX='-Bstatic'
13844 else
13845 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13846 fi
13847 ;;
13848 chorus*)
13849 case $cc_basename in
13850 cxch68*)
13851 # Green Hills C++ Compiler
13852 # _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"
13853 ;;
13854 esac
13855 ;;
13856 mingw* | cygwin* | os2* | pw32* | cegcc*)
13857 # This hack is so that the source file can tell whether it is being
13858 # built for inclusion in a dll (and should export symbols for example).
13859 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13860 ;;
13861 dgux*)
13862 case $cc_basename in
13863 ec++*)
13864 lt_prog_compiler_pic_CXX='-KPIC'
13865 ;;
13866 ghcx*)
13867 # Green Hills C++ Compiler
13868 lt_prog_compiler_pic_CXX='-pic'
13869 ;;
13870 *)
13871 ;;
13872 esac
13873 ;;
13874 freebsd* | dragonfly*)
13875 # FreeBSD uses GNU C++
13876 ;;
13877 hpux9* | hpux10* | hpux11*)
13878 case $cc_basename in
13879 CC*)
13880 lt_prog_compiler_wl_CXX='-Wl,'
13881 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13882 if test "$host_cpu" != ia64; then
13883 lt_prog_compiler_pic_CXX='+Z'
13884 fi
13885 ;;
13886 aCC*)
13887 lt_prog_compiler_wl_CXX='-Wl,'
13888 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13889 case $host_cpu in
13890 hppa*64*|ia64*)
13891 # +Z the default
13892 ;;
13893 *)
13894 lt_prog_compiler_pic_CXX='+Z'
13895 ;;
13896 esac
13897 ;;
13898 *)
13899 ;;
13900 esac
13901 ;;
13902 interix*)
13903 # This is c89, which is MS Visual C++ (no shared libs)
13904 # Anyone wants to do a port?
13905 ;;
13906 irix5* | irix6* | nonstopux*)
13907 case $cc_basename in
13908 CC*)
13909 lt_prog_compiler_wl_CXX='-Wl,'
13910 lt_prog_compiler_static_CXX='-non_shared'
13911 # CC pic flag -KPIC is the default.
13912 ;;
13913 *)
13914 ;;
13915 esac
13916 ;;
13917 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13918 case $cc_basename in
13919 KCC*)
13920 # KAI C++ Compiler
13921 lt_prog_compiler_wl_CXX='--backend -Wl,'
13922 lt_prog_compiler_pic_CXX='-fPIC'
13923 ;;
13924 ecpc* )
13925 # old Intel C++ for x86_64 which still supported -KPIC.
13926 lt_prog_compiler_wl_CXX='-Wl,'
13927 lt_prog_compiler_pic_CXX='-KPIC'
13928 lt_prog_compiler_static_CXX='-static'
13929 ;;
13930 icpc* )
13931 # Intel C++, used to be incompatible with GCC.
13932 # ICC 10 doesn't accept -KPIC any more.
13933 lt_prog_compiler_wl_CXX='-Wl,'
13934 lt_prog_compiler_pic_CXX='-fPIC'
13935 lt_prog_compiler_static_CXX='-static'
13936 ;;
13937 pgCC* | pgcpp*)
13938 # Portland Group C++ compiler
13939 lt_prog_compiler_wl_CXX='-Wl,'
13940 lt_prog_compiler_pic_CXX='-fpic'
13941 lt_prog_compiler_static_CXX='-Bstatic'
13942 ;;
13943 cxx*)
13944 # Compaq C++
13945 # Make sure the PIC flag is empty. It appears that all Alpha
13946 # Linux and Compaq Tru64 Unix objects are PIC.
13947 lt_prog_compiler_pic_CXX=
13948 lt_prog_compiler_static_CXX='-non_shared'
13949 ;;
13950 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13951 # IBM XL 8.0, 9.0 on PPC and BlueGene
13952 lt_prog_compiler_wl_CXX='-Wl,'
13953 lt_prog_compiler_pic_CXX='-qpic'
13954 lt_prog_compiler_static_CXX='-qstaticlink'
13955 ;;
13956 *)
13957 case `$CC -V 2>&1 | sed 5q` in
13958 *Sun\ C*)
13959 # Sun C++ 5.9
13960 lt_prog_compiler_pic_CXX='-KPIC'
13961 lt_prog_compiler_static_CXX='-Bstatic'
13962 lt_prog_compiler_wl_CXX='-Qoption ld '
13963 ;;
13964 esac
13965 ;;
13966 esac
13967 ;;
13968 lynxos*)
13969 ;;
13970 m88k*)
13971 ;;
13972 mvs*)
13973 case $cc_basename in
13974 cxx*)
13975 lt_prog_compiler_pic_CXX='-W c,exportall'
13976 ;;
13977 *)
13978 ;;
13979 esac
13980 ;;
13981 netbsd* | netbsdelf*-gnu)
13982 ;;
13983 *qnx* | *nto*)
13984 # QNX uses GNU C++, but need to define -shared option too, otherwise
13985 # it will coredump.
13986 lt_prog_compiler_pic_CXX='-fPIC -shared'
13987 ;;
13988 osf3* | osf4* | osf5*)
13989 case $cc_basename in
13990 KCC*)
13991 lt_prog_compiler_wl_CXX='--backend -Wl,'
13992 ;;
13993 RCC*)
13994 # Rational C++ 2.4.1
13995 lt_prog_compiler_pic_CXX='-pic'
13996 ;;
13997 cxx*)
13998 # Digital/Compaq C++
13999 lt_prog_compiler_wl_CXX='-Wl,'
14000 # Make sure the PIC flag is empty. It appears that all Alpha
14001 # Linux and Compaq Tru64 Unix objects are PIC.
14002 lt_prog_compiler_pic_CXX=
14003 lt_prog_compiler_static_CXX='-non_shared'
14004 ;;
14005 *)
14006 ;;
14007 esac
14008 ;;
14009 psos*)
14010 ;;
14011 solaris*)
14012 case $cc_basename in
14013 CC* | sunCC*)
14014 # Sun C++ 4.2, 5.x and Centerline C++
14015 lt_prog_compiler_pic_CXX='-KPIC'
14016 lt_prog_compiler_static_CXX='-Bstatic'
14017 lt_prog_compiler_wl_CXX='-Qoption ld '
14018 ;;
14019 gcx*)
14020 # Green Hills C++ Compiler
14021 lt_prog_compiler_pic_CXX='-PIC'
14022 ;;
14023 *)
14024 ;;
14025 esac
14026 ;;
14027 sunos4*)
14028 case $cc_basename in
14029 CC*)
14030 # Sun C++ 4.x
14031 lt_prog_compiler_pic_CXX='-pic'
14032 lt_prog_compiler_static_CXX='-Bstatic'
14033 ;;
14034 lcc*)
14035 # Lucid
14036 lt_prog_compiler_pic_CXX='-pic'
14037 ;;
14038 *)
14039 ;;
14040 esac
14041 ;;
14042 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14043 case $cc_basename in
14044 CC*)
14045 lt_prog_compiler_wl_CXX='-Wl,'
14046 lt_prog_compiler_pic_CXX='-KPIC'
14047 lt_prog_compiler_static_CXX='-Bstatic'
14048 ;;
14049 esac
14050 ;;
14051 tandem*)
14052 case $cc_basename in
14053 NCC*)
14054 # NonStop-UX NCC 3.20
14055 lt_prog_compiler_pic_CXX='-KPIC'
14056 ;;
14057 *)
14058 ;;
14059 esac
14060 ;;
14061 vxworks*)
14062 ;;
14063 *)
14064 lt_prog_compiler_can_build_shared_CXX=no
14065 ;;
14066 esac
14067 fi
14068
14069 case $host_os in
14070 # For platforms which do not support PIC, -DPIC is meaningless:
14071 *djgpp*)
14072 lt_prog_compiler_pic_CXX=
14073 ;;
14074 *)
14075 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14076 ;;
14077 esac
14078
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14080 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14081 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14082 $as_echo_n "(cached) " >&6
14083 else
14084 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14085 fi
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14087 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14088 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14089
14090 #
14091 # Check to make sure the PIC flag actually works.
14092 #
14093 if test -n "$lt_prog_compiler_pic_CXX"; then
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14095 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14096 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14097 $as_echo_n "(cached) " >&6
14098 else
14099 lt_cv_prog_compiler_pic_works_CXX=no
14100 ac_outfile=conftest.$ac_objext
14101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14102 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14103 # Insert the option either (1) after the last *FLAGS variable, or
14104 # (2) before a word containing "conftest.", or (3) at the end.
14105 # Note that $ac_compile itself does not contain backslashes and begins
14106 # with a dollar sign (not a hyphen), so the echo should work correctly.
14107 # The option is referenced via a variable to avoid confusing sed.
14108 lt_compile=`echo "$ac_compile" | $SED \
14109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14111 -e 's:$: $lt_compiler_flag:'`
14112 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14113 (eval "$lt_compile" 2>conftest.err)
14114 ac_status=$?
14115 cat conftest.err >&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 if (exit $ac_status) && test -s "$ac_outfile"; then
14118 # The compiler can only warn and ignore the option if not recognized
14119 # So say no if there are warnings other than the usual output.
14120 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14122 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14123 lt_cv_prog_compiler_pic_works_CXX=yes
14124 fi
14125 fi
14126 $RM conftest*
14127
14128 fi
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14130 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14131
14132 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14133 case $lt_prog_compiler_pic_CXX in
14134 "" | " "*) ;;
14135 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14136 esac
14137 else
14138 lt_prog_compiler_pic_CXX=
14139 lt_prog_compiler_can_build_shared_CXX=no
14140 fi
14141
14142 fi
14143
14144
14145
14146
14147
14148 #
14149 # Check to make sure the static flag actually works.
14150 #
14151 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14153 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14154 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 lt_cv_prog_compiler_static_works_CXX=no
14158 save_LDFLAGS="$LDFLAGS"
14159 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14160 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14161 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14162 # The linker can only warn and ignore the option if not recognized
14163 # So say no if there are warnings
14164 if test -s conftest.err; then
14165 # Append any errors to the config.log.
14166 cat conftest.err 1>&5
14167 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14169 if diff conftest.exp conftest.er2 >/dev/null; then
14170 lt_cv_prog_compiler_static_works_CXX=yes
14171 fi
14172 else
14173 lt_cv_prog_compiler_static_works_CXX=yes
14174 fi
14175 fi
14176 $RM -r conftest*
14177 LDFLAGS="$save_LDFLAGS"
14178
14179 fi
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14181 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14182
14183 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14184 :
14185 else
14186 lt_prog_compiler_static_CXX=
14187 fi
14188
14189
14190
14191
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14193 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14194 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14195 $as_echo_n "(cached) " >&6
14196 else
14197 lt_cv_prog_compiler_c_o_CXX=no
14198 $RM -r conftest 2>/dev/null
14199 mkdir conftest
14200 cd conftest
14201 mkdir out
14202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14203
14204 lt_compiler_flag="-o out/conftest2.$ac_objext"
14205 # Insert the option either (1) after the last *FLAGS variable, or
14206 # (2) before a word containing "conftest.", or (3) at the end.
14207 # Note that $ac_compile itself does not contain backslashes and begins
14208 # with a dollar sign (not a hyphen), so the echo should work correctly.
14209 lt_compile=`echo "$ac_compile" | $SED \
14210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14212 -e 's:$: $lt_compiler_flag:'`
14213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14214 (eval "$lt_compile" 2>out/conftest.err)
14215 ac_status=$?
14216 cat out/conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14219 then
14220 # The compiler can only warn and ignore the option if not recognized
14221 # So say no if there are warnings
14222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14225 lt_cv_prog_compiler_c_o_CXX=yes
14226 fi
14227 fi
14228 chmod u+w . 2>&5
14229 $RM conftest*
14230 # SGI C++ compiler will create directory out/ii_files/ for
14231 # template instantiation
14232 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14233 $RM out/* && rmdir out
14234 cd ..
14235 $RM -r conftest
14236 $RM conftest*
14237
14238 fi
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14240 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14241
14242
14243
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14245 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14246 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 lt_cv_prog_compiler_c_o_CXX=no
14250 $RM -r conftest 2>/dev/null
14251 mkdir conftest
14252 cd conftest
14253 mkdir out
14254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14255
14256 lt_compiler_flag="-o out/conftest2.$ac_objext"
14257 # Insert the option either (1) after the last *FLAGS variable, or
14258 # (2) before a word containing "conftest.", or (3) at the end.
14259 # Note that $ac_compile itself does not contain backslashes and begins
14260 # with a dollar sign (not a hyphen), so the echo should work correctly.
14261 lt_compile=`echo "$ac_compile" | $SED \
14262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14264 -e 's:$: $lt_compiler_flag:'`
14265 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14266 (eval "$lt_compile" 2>out/conftest.err)
14267 ac_status=$?
14268 cat out/conftest.err >&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14271 then
14272 # The compiler can only warn and ignore the option if not recognized
14273 # So say no if there are warnings
14274 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14275 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14276 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14277 lt_cv_prog_compiler_c_o_CXX=yes
14278 fi
14279 fi
14280 chmod u+w . 2>&5
14281 $RM conftest*
14282 # SGI C++ compiler will create directory out/ii_files/ for
14283 # template instantiation
14284 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14285 $RM out/* && rmdir out
14286 cd ..
14287 $RM -r conftest
14288 $RM conftest*
14289
14290 fi
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14292 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14293
14294
14295
14296
14297 hard_links="nottested"
14298 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14299 # do not overwrite the value of need_locks provided by the user
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14301 $as_echo_n "checking if we can lock with hard links... " >&6; }
14302 hard_links=yes
14303 $RM conftest*
14304 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14305 touch conftest.a
14306 ln conftest.a conftest.b 2>&5 || hard_links=no
14307 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14309 $as_echo "$hard_links" >&6; }
14310 if test "$hard_links" = no; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14312 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14313 need_locks=warn
14314 fi
14315 else
14316 need_locks=no
14317 fi
14318
14319
14320
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14322 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14323
14324 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14325 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14326 case $host_os in
14327 aix[4-9]*)
14328 # If we're using GNU nm, then we don't want the "-C" option.
14329 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14330 # Also, AIX nm treats weak defined symbols like other global defined
14331 # symbols, whereas GNU nm marks them as "W".
14332 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14333 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'
14334 else
14335 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14336 fi
14337 ;;
14338 pw32*)
14339 export_symbols_cmds_CXX="$ltdll_cmds"
14340 ;;
14341 cygwin* | mingw* | cegcc*)
14342 case $cc_basename in
14343 cl*)
14344 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14345 ;;
14346 *)
14347 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14348 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14349 ;;
14350 esac
14351 ;;
14352 linux* | k*bsd*-gnu | gnu*)
14353 link_all_deplibs_CXX=no
14354 ;;
14355 *)
14356 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14357 ;;
14358 esac
14359
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14361 $as_echo "$ld_shlibs_CXX" >&6; }
14362 test "$ld_shlibs_CXX" = no && can_build_shared=no
14363
14364 with_gnu_ld_CXX=$with_gnu_ld
14365
14366
14367
14368
14369
14370
14371 #
14372 # Do we need to explicitly link libc?
14373 #
14374 case "x$archive_cmds_need_lc_CXX" in
14375 x|xyes)
14376 # Assume -lc should be added
14377 archive_cmds_need_lc_CXX=yes
14378
14379 if test "$enable_shared" = yes && test "$GCC" = yes; then
14380 case $archive_cmds_CXX in
14381 *'~'*)
14382 # FIXME: we may have to deal with multi-command sequences.
14383 ;;
14384 '$CC '*)
14385 # Test whether the compiler implicitly links with -lc since on some
14386 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14387 # to ld, don't add -lc before -lgcc.
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14389 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14390 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 $RM conftest*
14394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14395
14396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14397 (eval $ac_compile) 2>&5
14398 ac_status=$?
14399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14400 test $ac_status = 0; } 2>conftest.err; then
14401 soname=conftest
14402 lib=conftest
14403 libobjs=conftest.$ac_objext
14404 deplibs=
14405 wl=$lt_prog_compiler_wl_CXX
14406 pic_flag=$lt_prog_compiler_pic_CXX
14407 compiler_flags=-v
14408 linker_flags=-v
14409 verstring=
14410 output_objdir=.
14411 libname=conftest
14412 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14413 allow_undefined_flag_CXX=
14414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14415 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14416 ac_status=$?
14417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14418 test $ac_status = 0; }
14419 then
14420 lt_cv_archive_cmds_need_lc_CXX=no
14421 else
14422 lt_cv_archive_cmds_need_lc_CXX=yes
14423 fi
14424 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14425 else
14426 cat conftest.err 1>&5
14427 fi
14428 $RM conftest*
14429
14430 fi
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14432 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14433 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14434 ;;
14435 esac
14436 fi
14437 ;;
14438 esac
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14502 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14503
14504 library_names_spec=
14505 libname_spec='lib$name'
14506 soname_spec=
14507 shrext_cmds=".so"
14508 postinstall_cmds=
14509 postuninstall_cmds=
14510 finish_cmds=
14511 finish_eval=
14512 shlibpath_var=
14513 shlibpath_overrides_runpath=unknown
14514 version_type=none
14515 dynamic_linker="$host_os ld.so"
14516 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14517 need_lib_prefix=unknown
14518 hardcode_into_libs=no
14519
14520 # when you set need_version to no, make sure it does not cause -set_version
14521 # flags to be left without arguments
14522 need_version=unknown
14523
14524 case $host_os in
14525 aix3*)
14526 version_type=linux # correct to gnu/linux during the next big refactor
14527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14528 shlibpath_var=LIBPATH
14529
14530 # AIX 3 has no versioning support, so we append a major version to the name.
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 ;;
14533
14534 aix[4-9]*)
14535 version_type=linux # correct to gnu/linux during the next big refactor
14536 need_lib_prefix=no
14537 need_version=no
14538 hardcode_into_libs=yes
14539 if test "$host_cpu" = ia64; then
14540 # AIX 5 supports IA64
14541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14542 shlibpath_var=LD_LIBRARY_PATH
14543 else
14544 # With GCC up to 2.95.x, collect2 would create an import file
14545 # for dependence libraries. The import file would start with
14546 # the line `#! .'. This would cause the generated library to
14547 # depend on `.', always an invalid library. This was fixed in
14548 # development snapshots of GCC prior to 3.0.
14549 case $host_os in
14550 aix4 | aix4.[01] | aix4.[01].*)
14551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14552 echo ' yes '
14553 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14554 :
14555 else
14556 can_build_shared=no
14557 fi
14558 ;;
14559 esac
14560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14561 # soname into executable. Probably we can add versioning support to
14562 # collect2, so additional links can be useful in future.
14563 if test "$aix_use_runtimelinking" = yes; then
14564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14565 # instead of lib<name>.a to let people know that these are not
14566 # typical AIX shared libraries.
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568 else
14569 # We preserve .a as extension for shared libraries through AIX4.2
14570 # and later when we are not doing run time linking.
14571 library_names_spec='${libname}${release}.a $libname.a'
14572 soname_spec='${libname}${release}${shared_ext}$major'
14573 fi
14574 shlibpath_var=LIBPATH
14575 fi
14576 ;;
14577
14578 amigaos*)
14579 case $host_cpu in
14580 powerpc)
14581 # Since July 2007 AmigaOS4 officially supports .so libraries.
14582 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14584 ;;
14585 m68k)
14586 library_names_spec='$libname.ixlibrary $libname.a'
14587 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14588 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'
14589 ;;
14590 esac
14591 ;;
14592
14593 beos*)
14594 library_names_spec='${libname}${shared_ext}'
14595 dynamic_linker="$host_os ld.so"
14596 shlibpath_var=LIBRARY_PATH
14597 ;;
14598
14599 bsdi[45]*)
14600 version_type=linux # correct to gnu/linux during the next big refactor
14601 need_version=no
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14603 soname_spec='${libname}${release}${shared_ext}$major'
14604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14605 shlibpath_var=LD_LIBRARY_PATH
14606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14608 # the default ld.so.conf also contains /usr/contrib/lib and
14609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14610 # libtool to hard-code these into programs
14611 ;;
14612
14613 cygwin* | mingw* | pw32* | cegcc*)
14614 version_type=windows
14615 shrext_cmds=".dll"
14616 need_version=no
14617 need_lib_prefix=no
14618
14619 case $GCC,$cc_basename in
14620 yes,*)
14621 # gcc
14622 library_names_spec='$libname.dll.a'
14623 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14624 postinstall_cmds='base_file=`basename \${file}`~
14625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14626 dldir=$destdir/`dirname \$dlpath`~
14627 test -d \$dldir || mkdir -p \$dldir~
14628 $install_prog $dir/$dlname \$dldir/$dlname~
14629 chmod a+x \$dldir/$dlname~
14630 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14631 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14632 fi'
14633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14634 dlpath=$dir/\$dldll~
14635 $RM \$dlpath'
14636 shlibpath_overrides_runpath=yes
14637
14638 case $host_os in
14639 cygwin*)
14640 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14642
14643 ;;
14644 mingw* | cegcc*)
14645 # MinGW DLLs use traditional 'lib' prefix
14646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14647 ;;
14648 pw32*)
14649 # pw32 DLLs use 'pw' prefix rather than 'lib'
14650 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14651 ;;
14652 esac
14653 dynamic_linker='Win32 ld.exe'
14654 ;;
14655
14656 *,cl*)
14657 # Native MSVC
14658 libname_spec='$name'
14659 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14660 library_names_spec='${libname}.dll.lib'
14661
14662 case $build_os in
14663 mingw*)
14664 sys_lib_search_path_spec=
14665 lt_save_ifs=$IFS
14666 IFS=';'
14667 for lt_path in $LIB
14668 do
14669 IFS=$lt_save_ifs
14670 # Let DOS variable expansion print the short 8.3 style file name.
14671 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14672 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14673 done
14674 IFS=$lt_save_ifs
14675 # Convert to MSYS style.
14676 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14677 ;;
14678 cygwin*)
14679 # Convert to unix form, then to dos form, then back to unix form
14680 # but this time dos style (no spaces!) so that the unix form looks
14681 # like /cygdrive/c/PROGRA~1:/cygdr...
14682 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14683 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14684 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14685 ;;
14686 *)
14687 sys_lib_search_path_spec="$LIB"
14688 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14689 # It is most probably a Windows format PATH.
14690 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14691 else
14692 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14693 fi
14694 # FIXME: find the short name or the path components, as spaces are
14695 # common. (e.g. "Program Files" -> "PROGRA~1")
14696 ;;
14697 esac
14698
14699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14700 postinstall_cmds='base_file=`basename \${file}`~
14701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14702 dldir=$destdir/`dirname \$dlpath`~
14703 test -d \$dldir || mkdir -p \$dldir~
14704 $install_prog $dir/$dlname \$dldir/$dlname'
14705 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14706 dlpath=$dir/\$dldll~
14707 $RM \$dlpath'
14708 shlibpath_overrides_runpath=yes
14709 dynamic_linker='Win32 link.exe'
14710 ;;
14711
14712 *)
14713 # Assume MSVC wrapper
14714 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14715 dynamic_linker='Win32 ld.exe'
14716 ;;
14717 esac
14718 # FIXME: first we should search . and the directory the executable is in
14719 shlibpath_var=PATH
14720 ;;
14721
14722 darwin* | rhapsody*)
14723 dynamic_linker="$host_os dyld"
14724 version_type=darwin
14725 need_lib_prefix=no
14726 need_version=no
14727 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14728 soname_spec='${libname}${release}${major}$shared_ext'
14729 shlibpath_overrides_runpath=yes
14730 shlibpath_var=DYLD_LIBRARY_PATH
14731 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14732
14733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14734 ;;
14735
14736 dgux*)
14737 version_type=linux # correct to gnu/linux during the next big refactor
14738 need_lib_prefix=no
14739 need_version=no
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 shlibpath_var=LD_LIBRARY_PATH
14743 ;;
14744
14745 freebsd* | dragonfly*)
14746 # DragonFly does not have aout. When/if they implement a new
14747 # versioning mechanism, adjust this.
14748 if test -x /usr/bin/objformat; then
14749 objformat=`/usr/bin/objformat`
14750 else
14751 case $host_os in
14752 freebsd[23].*) objformat=aout ;;
14753 *) objformat=elf ;;
14754 esac
14755 fi
14756 version_type=freebsd-$objformat
14757 case $version_type in
14758 freebsd-elf*)
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14760 need_version=no
14761 need_lib_prefix=no
14762 ;;
14763 freebsd-*)
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14765 need_version=yes
14766 ;;
14767 esac
14768 shlibpath_var=LD_LIBRARY_PATH
14769 case $host_os in
14770 freebsd2.*)
14771 shlibpath_overrides_runpath=yes
14772 ;;
14773 freebsd3.[01]* | freebsdelf3.[01]*)
14774 shlibpath_overrides_runpath=yes
14775 hardcode_into_libs=yes
14776 ;;
14777 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14778 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14779 shlibpath_overrides_runpath=no
14780 hardcode_into_libs=yes
14781 ;;
14782 *) # from 4.6 on, and DragonFly
14783 shlibpath_overrides_runpath=yes
14784 hardcode_into_libs=yes
14785 ;;
14786 esac
14787 ;;
14788
14789 gnu*)
14790 version_type=linux # correct to gnu/linux during the next big refactor
14791 need_lib_prefix=no
14792 need_version=no
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14794 soname_spec='${libname}${release}${shared_ext}$major'
14795 shlibpath_var=LD_LIBRARY_PATH
14796 shlibpath_overrides_runpath=no
14797 hardcode_into_libs=yes
14798 ;;
14799
14800 haiku*)
14801 version_type=linux # correct to gnu/linux during the next big refactor
14802 need_lib_prefix=no
14803 need_version=no
14804 dynamic_linker="$host_os runtime_loader"
14805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14806 soname_spec='${libname}${release}${shared_ext}$major'
14807 shlibpath_var=LIBRARY_PATH
14808 shlibpath_overrides_runpath=yes
14809 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14810 hardcode_into_libs=yes
14811 ;;
14812
14813 hpux9* | hpux10* | hpux11*)
14814 # Give a soname corresponding to the major version so that dld.sl refuses to
14815 # link against other versions.
14816 version_type=sunos
14817 need_lib_prefix=no
14818 need_version=no
14819 case $host_cpu in
14820 ia64*)
14821 shrext_cmds='.so'
14822 hardcode_into_libs=yes
14823 dynamic_linker="$host_os dld.so"
14824 shlibpath_var=LD_LIBRARY_PATH
14825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14827 soname_spec='${libname}${release}${shared_ext}$major'
14828 if test "X$HPUX_IA64_MODE" = X32; then
14829 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14830 else
14831 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14832 fi
14833 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14834 ;;
14835 hppa*64*)
14836 shrext_cmds='.sl'
14837 hardcode_into_libs=yes
14838 dynamic_linker="$host_os dld.sl"
14839 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14842 soname_spec='${libname}${release}${shared_ext}$major'
14843 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14844 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14845 ;;
14846 *)
14847 shrext_cmds='.sl'
14848 dynamic_linker="$host_os dld.sl"
14849 shlibpath_var=SHLIB_PATH
14850 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14852 soname_spec='${libname}${release}${shared_ext}$major'
14853 ;;
14854 esac
14855 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14856 postinstall_cmds='chmod 555 $lib'
14857 # or fails outright, so override atomically:
14858 install_override_mode=555
14859 ;;
14860
14861 interix[3-9]*)
14862 version_type=linux # correct to gnu/linux during the next big refactor
14863 need_lib_prefix=no
14864 need_version=no
14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14866 soname_spec='${libname}${release}${shared_ext}$major'
14867 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14868 shlibpath_var=LD_LIBRARY_PATH
14869 shlibpath_overrides_runpath=no
14870 hardcode_into_libs=yes
14871 ;;
14872
14873 irix5* | irix6* | nonstopux*)
14874 case $host_os in
14875 nonstopux*) version_type=nonstopux ;;
14876 *)
14877 if test "$lt_cv_prog_gnu_ld" = yes; then
14878 version_type=linux # correct to gnu/linux during the next big refactor
14879 else
14880 version_type=irix
14881 fi ;;
14882 esac
14883 need_lib_prefix=no
14884 need_version=no
14885 soname_spec='${libname}${release}${shared_ext}$major'
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14887 case $host_os in
14888 irix5* | nonstopux*)
14889 libsuff= shlibsuff=
14890 ;;
14891 *)
14892 case $LD in # libtool.m4 will add one of these switches to LD
14893 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14894 libsuff= shlibsuff= libmagic=32-bit;;
14895 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14896 libsuff=32 shlibsuff=N32 libmagic=N32;;
14897 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14898 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14899 *) libsuff= shlibsuff= libmagic=never-match;;
14900 esac
14901 ;;
14902 esac
14903 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14904 shlibpath_overrides_runpath=no
14905 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14906 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14907 hardcode_into_libs=yes
14908 ;;
14909
14910 # No shared lib support for Linux oldld, aout, or coff.
14911 linux*oldld* | linux*aout* | linux*coff*)
14912 dynamic_linker=no
14913 ;;
14914
14915 # This must be glibc/ELF.
14916 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14917 version_type=linux # correct to gnu/linux during the next big refactor
14918 need_lib_prefix=no
14919 need_version=no
14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921 soname_spec='${libname}${release}${shared_ext}$major'
14922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14923 shlibpath_var=LD_LIBRARY_PATH
14924 shlibpath_overrides_runpath=no
14925
14926 # Some binutils ld are patched to set DT_RUNPATH
14927 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14928 $as_echo_n "(cached) " >&6
14929 else
14930 lt_cv_shlibpath_overrides_runpath=no
14931 save_LDFLAGS=$LDFLAGS
14932 save_libdir=$libdir
14933 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14934 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14937
14938 int
14939 main ()
14940 {
14941
14942 ;
14943 return 0;
14944 }
14945 _ACEOF
14946 if ac_fn_cxx_try_link "$LINENO"; then :
14947 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14948 lt_cv_shlibpath_overrides_runpath=yes
14949 fi
14950 fi
14951 rm -f core conftest.err conftest.$ac_objext \
14952 conftest$ac_exeext conftest.$ac_ext
14953 LDFLAGS=$save_LDFLAGS
14954 libdir=$save_libdir
14955
14956 fi
14957
14958 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14959
14960 # This implies no fast_install, which is unacceptable.
14961 # Some rework will be needed to allow for fast_install
14962 # before this can be enabled.
14963 hardcode_into_libs=yes
14964
14965 # Append ld.so.conf contents to the search path
14966 if test -f /etc/ld.so.conf; then
14967 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' ' '`
14968 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14969 fi
14970
14971 # We used to test for /lib/ld.so.1 and disable shared libraries on
14972 # powerpc, because MkLinux only supported shared libraries with the
14973 # GNU dynamic linker. Since this was broken with cross compilers,
14974 # most powerpc-linux boxes support dynamic linking these days and
14975 # people can always --disable-shared, the test was removed, and we
14976 # assume the GNU/Linux dynamic linker is in use.
14977 dynamic_linker='GNU/Linux ld.so'
14978 ;;
14979
14980 netbsdelf*-gnu)
14981 version_type=linux
14982 need_lib_prefix=no
14983 need_version=no
14984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14985 soname_spec='${libname}${release}${shared_ext}$major'
14986 shlibpath_var=LD_LIBRARY_PATH
14987 shlibpath_overrides_runpath=no
14988 hardcode_into_libs=yes
14989 dynamic_linker='NetBSD ld.elf_so'
14990 ;;
14991
14992 netbsd*)
14993 version_type=sunos
14994 need_lib_prefix=no
14995 need_version=no
14996 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14999 dynamic_linker='NetBSD (a.out) ld.so'
15000 else
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 dynamic_linker='NetBSD ld.elf_so'
15004 fi
15005 shlibpath_var=LD_LIBRARY_PATH
15006 shlibpath_overrides_runpath=yes
15007 hardcode_into_libs=yes
15008 ;;
15009
15010 newsos6)
15011 version_type=linux # correct to gnu/linux during the next big refactor
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15013 shlibpath_var=LD_LIBRARY_PATH
15014 shlibpath_overrides_runpath=yes
15015 ;;
15016
15017 *nto* | *qnx*)
15018 version_type=qnx
15019 need_lib_prefix=no
15020 need_version=no
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15022 soname_spec='${libname}${release}${shared_ext}$major'
15023 shlibpath_var=LD_LIBRARY_PATH
15024 shlibpath_overrides_runpath=no
15025 hardcode_into_libs=yes
15026 dynamic_linker='ldqnx.so'
15027 ;;
15028
15029 openbsd*)
15030 version_type=sunos
15031 sys_lib_dlsearch_path_spec="/usr/lib"
15032 need_lib_prefix=no
15033 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15034 case $host_os in
15035 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15036 *) need_version=no ;;
15037 esac
15038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15040 shlibpath_var=LD_LIBRARY_PATH
15041 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15042 case $host_os in
15043 openbsd2.[89] | openbsd2.[89].*)
15044 shlibpath_overrides_runpath=no
15045 ;;
15046 *)
15047 shlibpath_overrides_runpath=yes
15048 ;;
15049 esac
15050 else
15051 shlibpath_overrides_runpath=yes
15052 fi
15053 ;;
15054
15055 os2*)
15056 libname_spec='$name'
15057 shrext_cmds=".dll"
15058 need_lib_prefix=no
15059 library_names_spec='$libname${shared_ext} $libname.a'
15060 dynamic_linker='OS/2 ld.exe'
15061 shlibpath_var=LIBPATH
15062 ;;
15063
15064 osf3* | osf4* | osf5*)
15065 version_type=osf
15066 need_lib_prefix=no
15067 need_version=no
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070 shlibpath_var=LD_LIBRARY_PATH
15071 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15072 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15073 ;;
15074
15075 rdos*)
15076 dynamic_linker=no
15077 ;;
15078
15079 solaris*)
15080 version_type=linux # correct to gnu/linux during the next big refactor
15081 need_lib_prefix=no
15082 need_version=no
15083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15084 soname_spec='${libname}${release}${shared_ext}$major'
15085 shlibpath_var=LD_LIBRARY_PATH
15086 shlibpath_overrides_runpath=yes
15087 hardcode_into_libs=yes
15088 # ldd complains unless libraries are executable
15089 postinstall_cmds='chmod +x $lib'
15090 ;;
15091
15092 sunos4*)
15093 version_type=sunos
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15095 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15096 shlibpath_var=LD_LIBRARY_PATH
15097 shlibpath_overrides_runpath=yes
15098 if test "$with_gnu_ld" = yes; then
15099 need_lib_prefix=no
15100 fi
15101 need_version=yes
15102 ;;
15103
15104 sysv4 | sysv4.3*)
15105 version_type=linux # correct to gnu/linux during the next big refactor
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 case $host_vendor in
15110 sni)
15111 shlibpath_overrides_runpath=no
15112 need_lib_prefix=no
15113 runpath_var=LD_RUN_PATH
15114 ;;
15115 siemens)
15116 need_lib_prefix=no
15117 ;;
15118 motorola)
15119 need_lib_prefix=no
15120 need_version=no
15121 shlibpath_overrides_runpath=no
15122 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15123 ;;
15124 esac
15125 ;;
15126
15127 sysv4*MP*)
15128 if test -d /usr/nec ;then
15129 version_type=linux # correct to gnu/linux during the next big refactor
15130 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15131 soname_spec='$libname${shared_ext}.$major'
15132 shlibpath_var=LD_LIBRARY_PATH
15133 fi
15134 ;;
15135
15136 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15137 version_type=freebsd-elf
15138 need_lib_prefix=no
15139 need_version=no
15140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15141 soname_spec='${libname}${release}${shared_ext}$major'
15142 shlibpath_var=LD_LIBRARY_PATH
15143 shlibpath_overrides_runpath=yes
15144 hardcode_into_libs=yes
15145 if test "$with_gnu_ld" = yes; then
15146 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15147 else
15148 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15149 case $host_os in
15150 sco3.2v5*)
15151 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15152 ;;
15153 esac
15154 fi
15155 sys_lib_dlsearch_path_spec='/usr/lib'
15156 ;;
15157
15158 tpf*)
15159 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15160 version_type=linux # correct to gnu/linux during the next big refactor
15161 need_lib_prefix=no
15162 need_version=no
15163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15164 shlibpath_var=LD_LIBRARY_PATH
15165 shlibpath_overrides_runpath=no
15166 hardcode_into_libs=yes
15167 ;;
15168
15169 uts4*)
15170 version_type=linux # correct to gnu/linux during the next big refactor
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15172 soname_spec='${libname}${release}${shared_ext}$major'
15173 shlibpath_var=LD_LIBRARY_PATH
15174 ;;
15175
15176 *)
15177 dynamic_linker=no
15178 ;;
15179 esac
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15181 $as_echo "$dynamic_linker" >&6; }
15182 test "$dynamic_linker" = no && can_build_shared=no
15183
15184 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15185 if test "$GCC" = yes; then
15186 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15187 fi
15188
15189 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15190 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15191 fi
15192 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15193 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15194 fi
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15234 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15235 hardcode_action_CXX=
15236 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15237 test -n "$runpath_var_CXX" ||
15238 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15239
15240 # We can hardcode non-existent directories.
15241 if test "$hardcode_direct_CXX" != no &&
15242 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15243 # have to relink, otherwise we might link with an installed library
15244 # when we should be linking with a yet-to-be-installed one
15245 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15246 test "$hardcode_minus_L_CXX" != no; then
15247 # Linking always hardcodes the temporary library directory.
15248 hardcode_action_CXX=relink
15249 else
15250 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15251 hardcode_action_CXX=immediate
15252 fi
15253 else
15254 # We cannot hardcode anything, or else we can only hardcode existing
15255 # directories.
15256 hardcode_action_CXX=unsupported
15257 fi
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15259 $as_echo "$hardcode_action_CXX" >&6; }
15260
15261 if test "$hardcode_action_CXX" = relink ||
15262 test "$inherit_rpath_CXX" = yes; then
15263 # Fast installation is not supported
15264 enable_fast_install=no
15265 elif test "$shlibpath_overrides_runpath" = yes ||
15266 test "$enable_shared" = no; then
15267 # Fast installation is not necessary
15268 enable_fast_install=needless
15269 fi
15270
15271
15272
15273
15274
15275
15276
15277 fi # test -n "$compiler"
15278
15279 CC=$lt_save_CC
15280 CFLAGS=$lt_save_CFLAGS
15281 LDCXX=$LD
15282 LD=$lt_save_LD
15283 GCC=$lt_save_GCC
15284 with_gnu_ld=$lt_save_with_gnu_ld
15285 lt_cv_path_LDCXX=$lt_cv_path_LD
15286 lt_cv_path_LD=$lt_save_path_LD
15287 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15288 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15289 fi # test "$_lt_caught_CXX_error" != yes
15290
15291 ac_ext=c
15292 ac_cpp='$CPP $CPPFLAGS'
15293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311 ac_config_commands="$ac_config_commands libtool"
15312
15313
15314
15315
15316 # Only expand once:
15317
15318
15319
15320 # Extract the first word of ""${CXX}"", so it can be a program name with args.
15321 set dummy "${CXX}"; ac_word=$2
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15323 $as_echo_n "checking for $ac_word... " >&6; }
15324 if ${ac_cv_prog_cf_with_cxx+:} false; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327 if test -n "$cf_with_cxx"; then
15328 ac_cv_prog_cf_with_cxx="$cf_with_cxx" # Let the user override the test.
15329 else
15330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331 for as_dir in $PATH
15332 do
15333 IFS=$as_save_IFS
15334 test -z "$as_dir" && as_dir=.
15335 for ac_exec_ext in '' $ac_executable_extensions; do
15336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15337 ac_cv_prog_cf_with_cxx="yes"
15338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15339 break 2
15340 fi
15341 done
15342 done
15343 IFS=$as_save_IFS
15344
15345 test -z "$ac_cv_prog_cf_with_cxx" && ac_cv_prog_cf_with_cxx="no"
15346 fi
15347 fi
15348 cf_with_cxx=$ac_cv_prog_cf_with_cxx
15349 if test -n "$cf_with_cxx"; then
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_with_cxx" >&5
15351 $as_echo "$cf_with_cxx" >&6; }
15352 else
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15354 $as_echo "no" >&6; }
15355 fi
15356
15357
15358 if test x"${cf_with_cxx}" = "xyes"; then
15359 ENABLE_CXX_TRUE=
15360 ENABLE_CXX_FALSE='#'
15361 else
15362 ENABLE_CXX_TRUE='#'
15363 ENABLE_CXX_FALSE=
15364 fi
15365
15366
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15368 $as_echo_n "checking for inline... " >&6; }
15369 if ${ac_cv_c_inline+:} false; then :
15370 $as_echo_n "(cached) " >&6
15371 else
15372 ac_cv_c_inline=no
15373 for ac_kw in inline __inline__ __inline; do
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15376 #ifndef __cplusplus
15377 typedef int foo_t;
15378 static $ac_kw foo_t static_foo () {return 0; }
15379 $ac_kw foo_t foo () {return 0; }
15380 #endif
15381
15382 _ACEOF
15383 if ac_fn_c_try_compile "$LINENO"; then :
15384 ac_cv_c_inline=$ac_kw
15385 fi
15386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387 test "$ac_cv_c_inline" != no && break
15388 done
15389
15390 fi
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15392 $as_echo "$ac_cv_c_inline" >&6; }
15393
15394 case $ac_cv_c_inline in
15395 inline | yes) ;;
15396 *)
15397 case $ac_cv_c_inline in
15398 no) ac_val=;;
15399 *) ac_val=$ac_cv_c_inline;;
15400 esac
15401 cat >>confdefs.h <<_ACEOF
15402 #ifndef __cplusplus
15403 #define inline $ac_val
15404 #endif
15405 _ACEOF
15406 ;;
15407 esac
15408
15409
15410 # Check for pkg-config program, used for configuring some libraries.
15411 #
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15422 if test -n "$ac_tool_prefix"; then
15423 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15424 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15426 $as_echo_n "checking for $ac_word... " >&6; }
15427 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15428 $as_echo_n "(cached) " >&6
15429 else
15430 case $PKG_CONFIG in
15431 [\\/]* | ?:[\\/]*)
15432 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15433 ;;
15434 *)
15435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15436 for as_dir in $PATH
15437 do
15438 IFS=$as_save_IFS
15439 test -z "$as_dir" && as_dir=.
15440 for ac_exec_ext in '' $ac_executable_extensions; do
15441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15442 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15444 break 2
15445 fi
15446 done
15447 done
15448 IFS=$as_save_IFS
15449
15450 ;;
15451 esac
15452 fi
15453 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15454 if test -n "$PKG_CONFIG"; then
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15456 $as_echo "$PKG_CONFIG" >&6; }
15457 else
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459 $as_echo "no" >&6; }
15460 fi
15461
15462
15463 fi
15464 if test -z "$ac_cv_path_PKG_CONFIG"; then
15465 ac_pt_PKG_CONFIG=$PKG_CONFIG
15466 # Extract the first word of "pkg-config", so it can be a program name with args.
15467 set dummy pkg-config; ac_word=$2
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15469 $as_echo_n "checking for $ac_word... " >&6; }
15470 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15471 $as_echo_n "(cached) " >&6
15472 else
15473 case $ac_pt_PKG_CONFIG in
15474 [\\/]* | ?:[\\/]*)
15475 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15476 ;;
15477 *)
15478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15479 for as_dir in $PATH
15480 do
15481 IFS=$as_save_IFS
15482 test -z "$as_dir" && as_dir=.
15483 for ac_exec_ext in '' $ac_executable_extensions; do
15484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15485 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15487 break 2
15488 fi
15489 done
15490 done
15491 IFS=$as_save_IFS
15492
15493 ;;
15494 esac
15495 fi
15496 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15497 if test -n "$ac_pt_PKG_CONFIG"; then
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15499 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15500 else
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15502 $as_echo "no" >&6; }
15503 fi
15504
15505 if test "x$ac_pt_PKG_CONFIG" = x; then
15506 PKG_CONFIG=""
15507 else
15508 case $cross_compiling:$ac_tool_warned in
15509 yes:)
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15512 ac_tool_warned=yes ;;
15513 esac
15514 PKG_CONFIG=$ac_pt_PKG_CONFIG
15515 fi
15516 else
15517 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15518 fi
15519
15520 fi
15521 if test -n "$PKG_CONFIG"; then
15522 _pkg_min_version=0.9.0
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15524 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15525 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15527 $as_echo "yes" >&6; }
15528 else
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15530 $as_echo "no" >&6; }
15531 PKG_CONFIG=""
15532 fi
15533 fi
15534 #PKG_INSTALLDIR
15535
15536 ## -------------------------------------------- ##
15537 ## Various parts of flxmlrpc need these headers ##
15538 ## -------------------------------------------- ##
15539
15540 for ac_header in errno.h fcntl.h getopt.h limits.h locale.h malloc.h \
15541 netdb.h sgtty.h stddef.h termio.h termios.h values.h \
15542 arpa/inet.h dev/ppbus/ppbconf.hdev/ppbus/ppi.h \
15543 linux/hidraw.h linux/ioctl.h netinet/in.h \
15544 sys/ioccom.h sys/ioctl.h sys/param.h sys/socket.h sys/stat.h sys/time.h
15545 do :
15546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15547 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15548 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15549 cat >>confdefs.h <<_ACEOF
15550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15551 _ACEOF
15552
15553 fi
15554
15555 done
15556
15557
15558
15559
15560 ## ------------------------------------ ##
15561 ## System capability and library checks ##
15562 ## ------------------------------------ ##
15563
15564
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
15566 $as_echo_n "checking POSIX termios... " >&6; }
15567 if ${ac_cv_sys_posix_termios+:} false; then :
15568 $as_echo_n "(cached) " >&6
15569 else
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15572 #include <sys/types.h>
15573 #include <unistd.h>
15574 #include <termios.h>
15575
15576 int
15577 main ()
15578 {
15579 /* SunOS 4.0.3 has termios.h but not the library calls. */
15580 tcgetattr(0, 0);
15581 ;
15582 return 0;
15583 }
15584 _ACEOF
15585 if ac_fn_c_try_link "$LINENO"; then :
15586 ac_cv_sys_posix_termios=yes
15587 else
15588 ac_cv_sys_posix_termios=no
15589 fi
15590 rm -f core conftest.err conftest.$ac_objext \
15591 conftest$ac_exeext conftest.$ac_ext
15592 fi
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
15594 $as_echo "$ac_cv_sys_posix_termios" >&6; }
15595
15596
15597 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15598 if test "x$ac_cv_type_size_t" = xyes; then :
15599
15600 else
15601
15602 cat >>confdefs.h <<_ACEOF
15603 #define size_t unsigned int
15604 _ACEOF
15605
15606 fi
15607
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15609 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15610 if ${ac_cv_header_time+:} false; then :
15611 $as_echo_n "(cached) " >&6
15612 else
15613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15614 /* end confdefs.h. */
15615 #include <sys/types.h>
15616 #include <sys/time.h>
15617 #include <time.h>
15618
15619 int
15620 main ()
15621 {
15622 if ((struct tm *) 0)
15623 return 0;
15624 ;
15625 return 0;
15626 }
15627 _ACEOF
15628 if ac_fn_c_try_compile "$LINENO"; then :
15629 ac_cv_header_time=yes
15630 else
15631 ac_cv_header_time=no
15632 fi
15633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634 fi
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15636 $as_echo "$ac_cv_header_time" >&6; }
15637 if test $ac_cv_header_time = yes; then
15638
15639 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15640
15641 fi
15642
15643 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "#include <signal.h>
15644 "
15645 if test "x$ac_cv_type_siginfo_t" = xyes; then :
15646
15647 cat >>confdefs.h <<_ACEOF
15648 #define HAVE_SIGINFO_T 1
15649 _ACEOF
15650
15651
15652 fi
15653
15654
15655
15656
15657 # The following comes from SC_TCL_LINK_LIBS
15658 # we redefine them here because we want a separate NET_LIBS var
15659
15660 #--------------------------------------------------------------------
15661 # On a few very rare systems, all of the libm.a stuff is
15662 # already in libc.a. Set compiler flags accordingly.
15663 #--------------------------------------------------------------------
15664 ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
15665 if test "x$ac_cv_func_sin" = xyes; then :
15666 MATH_LIBS=""
15667 else
15668 MATH_LIBS="-lm"
15669 fi
15670
15671
15672
15673 #--------------------------------------------------------------------
15674 # Check for the existence of the -lsocket and -lnsl libraries.
15675 # The order here is important, so that they end up in the right
15676 # order in the command line generated by make. Here are some
15677 # special considerations:
15678 # 1. Use "connect" and "accept" to check for -lsocket, and
15679 # "gethostbyname" to check for -lnsl.
15680 # 2. Use each function name only once: cannot redo a check because
15681 # autoconf caches the results of the last check and will not redo it.
15682 # 3. Use -lnsl and -lsocket only if they supply procedures that
15683 # are not already present in the normal libraries. This is because
15684 # IRIX 5.2 has libraries, but they aren't needed and they're
15685 # bogus: they goof up name resolution if used.
15686 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
15687 # To get around this problem, check for both libraries together
15688 # if -lsocket doesn't work by itself.
15689 #--------------------------------------------------------------------
15690 hl_checkBoth=0
15691 hl_oldLibs=$LIBS
15692
15693 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15694 if test "x$ac_cv_func_connect" = xyes; then :
15695 hl_checkSocket=0
15696 else
15697 hl_checkSocket=1
15698 fi
15699
15700
15701 if test "$hl_checkSocket" = 1; then :
15702
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
15704 $as_echo_n "checking for main in -lsocket... " >&6; }
15705 if ${ac_cv_lib_socket_main+:} false; then :
15706 $as_echo_n "(cached) " >&6
15707 else
15708 ac_check_lib_save_LIBS=$LIBS
15709 LIBS="-lsocket $LIBS"
15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15712
15713
15714 int
15715 main ()
15716 {
15717 return main ();
15718 ;
15719 return 0;
15720 }
15721 _ACEOF
15722 if ac_fn_c_try_link "$LINENO"; then :
15723 ac_cv_lib_socket_main=yes
15724 else
15725 ac_cv_lib_socket_main=no
15726 fi
15727 rm -f core conftest.err conftest.$ac_objext \
15728 conftest$ac_exeext conftest.$ac_ext
15729 LIBS=$ac_check_lib_save_LIBS
15730 fi
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
15732 $as_echo "$ac_cv_lib_socket_main" >&6; }
15733 if test "x$ac_cv_lib_socket_main" = xyes; then :
15734 NET_LIBS="$NET_LIBS -lsocket"
15735 else
15736 hl_checkBoth=1
15737 fi
15738
15739
15740 fi
15741
15742 if test "$hl_checkBoth" = 1; then :
15743
15744 hl2_oldLibs=$LIBS
15745 LIBS="$LIBS -lsocket -lnsl"
15746 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15747 if test "x$ac_cv_func_accept" = xyes; then :
15748 hl_checkNsl=0
15749 else
15750 LIBS=$hl2_oldLibs
15751 fi
15752
15753
15754 fi
15755
15756 # separate Name Service Library
15757 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15758 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15759
15760 else
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15762 $as_echo_n "checking for main in -lnsl... " >&6; }
15763 if ${ac_cv_lib_nsl_main+:} false; then :
15764 $as_echo_n "(cached) " >&6
15765 else
15766 ac_check_lib_save_LIBS=$LIBS
15767 LIBS="-lnsl $LIBS"
15768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15769 /* end confdefs.h. */
15770
15771
15772 int
15773 main ()
15774 {
15775 return main ();
15776 ;
15777 return 0;
15778 }
15779 _ACEOF
15780 if ac_fn_c_try_link "$LINENO"; then :
15781 ac_cv_lib_nsl_main=yes
15782 else
15783 ac_cv_lib_nsl_main=no
15784 fi
15785 rm -f core conftest.err conftest.$ac_objext \
15786 conftest$ac_exeext conftest.$ac_ext
15787 LIBS=$ac_check_lib_save_LIBS
15788 fi
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15790 $as_echo "$ac_cv_lib_nsl_main" >&6; }
15791 if test "x$ac_cv_lib_nsl_main" = xyes; then :
15792 NET_LIBS="$NET_LIBS -lnsl"
15793 fi
15794
15795
15796 fi
15797
15798
15799 # Winsock2 32 bit
15800 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15801 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15802
15803 else
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
15805 $as_echo_n "checking for main in -lws2_32... " >&6; }
15806 if ${ac_cv_lib_ws2_32_main+:} false; then :
15807 $as_echo_n "(cached) " >&6
15808 else
15809 ac_check_lib_save_LIBS=$LIBS
15810 LIBS="-lws2_32 $LIBS"
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15813
15814
15815 int
15816 main ()
15817 {
15818 return main ();
15819 ;
15820 return 0;
15821 }
15822 _ACEOF
15823 if ac_fn_c_try_link "$LINENO"; then :
15824 ac_cv_lib_ws2_32_main=yes
15825 else
15826 ac_cv_lib_ws2_32_main=no
15827 fi
15828 rm -f core conftest.err conftest.$ac_objext \
15829 conftest$ac_exeext conftest.$ac_ext
15830 LIBS=$ac_check_lib_save_LIBS
15831 fi
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
15833 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
15834 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
15835 NET_LIBS="$NET_LIBS -lws2_32"
15836 fi
15837
15838
15839 fi
15840
15841
15842 LIBS="$LIBS $NET_LIBS"
15843
15844 ## End flxmlrpc socket test ##
15845
15846
15847 for ac_func in cfmakeraw floor getpagesize getpagesize gettimeofday inet_ntoa \
15848 ioctl memchr memmove memset pow rint select setitimer setlocale sigaction \
15849 snprintf socket sqrt strchr strdup strerror strncasecmp strrchr strstr strtol
15850 do :
15851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15853 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15854 cat >>confdefs.h <<_ACEOF
15855 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15856 _ACEOF
15857
15858 fi
15859 done
15860
15861 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15862 # for constant arguments. Useless!
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15864 $as_echo_n "checking for working alloca.h... " >&6; }
15865 if ${ac_cv_working_alloca_h+:} false; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15870 #include <alloca.h>
15871 int
15872 main ()
15873 {
15874 char *p = (char *) alloca (2 * sizeof (int));
15875 if (p) return 0;
15876 ;
15877 return 0;
15878 }
15879 _ACEOF
15880 if ac_fn_c_try_link "$LINENO"; then :
15881 ac_cv_working_alloca_h=yes
15882 else
15883 ac_cv_working_alloca_h=no
15884 fi
15885 rm -f core conftest.err conftest.$ac_objext \
15886 conftest$ac_exeext conftest.$ac_ext
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15889 $as_echo "$ac_cv_working_alloca_h" >&6; }
15890 if test $ac_cv_working_alloca_h = yes; then
15891
15892 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15893
15894 fi
15895
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15897 $as_echo_n "checking for alloca... " >&6; }
15898 if ${ac_cv_func_alloca_works+:} false; then :
15899 $as_echo_n "(cached) " >&6
15900 else
15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902 /* end confdefs.h. */
15903 #ifdef __GNUC__
15904 # define alloca __builtin_alloca
15905 #else
15906 # ifdef _MSC_VER
15907 # include <malloc.h>
15908 # define alloca _alloca
15909 # else
15910 # ifdef HAVE_ALLOCA_H
15911 # include <alloca.h>
15912 # else
15913 # ifdef _AIX
15914 #pragma alloca
15915 # else
15916 # ifndef alloca /* predefined by HP cc +Olibcalls */
15917 void *alloca (size_t);
15918 # endif
15919 # endif
15920 # endif
15921 # endif
15922 #endif
15923
15924 int
15925 main ()
15926 {
15927 char *p = (char *) alloca (1);
15928 if (p) return 0;
15929 ;
15930 return 0;
15931 }
15932 _ACEOF
15933 if ac_fn_c_try_link "$LINENO"; then :
15934 ac_cv_func_alloca_works=yes
15935 else
15936 ac_cv_func_alloca_works=no
15937 fi
15938 rm -f core conftest.err conftest.$ac_objext \
15939 conftest$ac_exeext conftest.$ac_ext
15940 fi
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15942 $as_echo "$ac_cv_func_alloca_works" >&6; }
15943
15944 if test $ac_cv_func_alloca_works = yes; then
15945
15946 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15947
15948 else
15949 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15950 # that cause trouble. Some versions do not even contain alloca or
15951 # contain a buggy version. If you still want to use their alloca,
15952 # use ar to extract alloca.o from them instead of compiling alloca.c.
15953
15954 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15955
15956 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15957
15958
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15960 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15961 if ${ac_cv_os_cray+:} false; then :
15962 $as_echo_n "(cached) " >&6
15963 else
15964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15965 /* end confdefs.h. */
15966 #if defined CRAY && ! defined CRAY2
15967 webecray
15968 #else
15969 wenotbecray
15970 #endif
15971
15972 _ACEOF
15973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15974 $EGREP "webecray" >/dev/null 2>&1; then :
15975 ac_cv_os_cray=yes
15976 else
15977 ac_cv_os_cray=no
15978 fi
15979 rm -f conftest*
15980
15981 fi
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15983 $as_echo "$ac_cv_os_cray" >&6; }
15984 if test $ac_cv_os_cray = yes; then
15985 for ac_func in _getb67 GETB67 getb67; do
15986 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15987 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15988 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15989
15990 cat >>confdefs.h <<_ACEOF
15991 #define CRAY_STACKSEG_END $ac_func
15992 _ACEOF
15993
15994 break
15995 fi
15996
15997 done
15998 fi
15999
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16001 $as_echo_n "checking stack direction for C alloca... " >&6; }
16002 if ${ac_cv_c_stack_direction+:} false; then :
16003 $as_echo_n "(cached) " >&6
16004 else
16005 if test "$cross_compiling" = yes; then :
16006 ac_cv_c_stack_direction=0
16007 else
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16010 $ac_includes_default
16011 int
16012 find_stack_direction ()
16013 {
16014 static char *addr = 0;
16015 auto char dummy;
16016 if (addr == 0)
16017 {
16018 addr = &dummy;
16019 return find_stack_direction ();
16020 }
16021 else
16022 return (&dummy > addr) ? 1 : -1;
16023 }
16024
16025 int
16026 main ()
16027 {
16028 return find_stack_direction () < 0;
16029 }
16030 _ACEOF
16031 if ac_fn_c_try_run "$LINENO"; then :
16032 ac_cv_c_stack_direction=1
16033 else
16034 ac_cv_c_stack_direction=-1
16035 fi
16036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16037 conftest.$ac_objext conftest.beam conftest.$ac_ext
16038 fi
16039
16040 fi
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16042 $as_echo "$ac_cv_c_stack_direction" >&6; }
16043 cat >>confdefs.h <<_ACEOF
16044 #define STACK_DIRECTION $ac_cv_c_stack_direction
16045 _ACEOF
16046
16047
16048 fi
16049
16050
16051 case " $LIBOBJS " in
16052 *" termios.$ac_objext "* ) ;;
16053 *) LIBOBJS="$LIBOBJS termios.$ac_objext"
16054 ;;
16055 esac
16056
16057
16058 ## ------------------------ ##
16059 ## libtool Initialisation. ##
16060 ## ------------------------ ##
16061
16062
16063
16064
16065
16066
16067 ## -------------------------- ##
16068 ## Custom host configurations ##
16069 ## -------------------------- ##
16070
16071 case "$host_os" in #(
16072 freebsd*) :
16073
16074 AM_CPPFLAGS="-I/usr/local/include ${AM_CPPFLAGS}"
16075 AM_LDFLAGS="${AM_LDFLAGS} -L/usr/local/lib"
16076 ;; #(
16077 darwin* | rhapsody*) :
16078
16079 # Trick from http://fink.sourceforge.net/doc/porting/
16080 # TODO: check the compiler actually does support these options
16081 AM_CFLAGS="${AM_CFLAGS} -no-cpp-precomp"
16082 AM_CXXFLAGS="${AM_CXXFLAGS} -no-cpp-precomp"
16083
16084 # Tell the OS X linker to allocate enough space inside the
16085 # libflxmlrpc.X.dylib shared object for install_name_tool(1) to
16086 # work. This is useful when including flxmlrpc in an app bundle.
16087 OSXLDFLAGS="-Wl,-headerpad_max_install_names"
16088 ;; #(
16089 mingw* | pw32* | cygwin*) :
16090
16091 WINLDFLAGS="-Wl,--output-def,libflxmlrpc.def -Wl,--add-stdcall-alias"
16092
16093
16094 # Enable ld's "auto import" for executables
16095 WINEXELDFLAGS="-Wl,--enable-auto-import"
16096
16097 ;; #(
16098 *) :
16099 ;;
16100 esac
16101
16102
16103 ## ---------------------- ##
16104 ## External package tests ##
16105 ## ---------------------- ##
16106
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 struct/array initializers are supported" >&5
16108 $as_echo_n "checking whether C99 struct/array initializers are supported... " >&6; }
16109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110 /* end confdefs.h. */
16111
16112 int
16113 main ()
16114 {
16115 struct{char a;int b;}s[8]={[3]={.b=5}};
16116 ;
16117 return 0;
16118 }
16119 _ACEOF
16120 if ac_fn_c_try_compile "$LINENO"; then :
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16122 $as_echo "yes" >&6; }
16123 else
16124 as_fn_error $? "\"\"
16125 \"You need a C99 compliant C compiler that supports struct/array intializers.\"
16126 \"Have you considered GCC lately?.\"" "$LINENO" 5
16127
16128 fi
16129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16130
16131 ## ------------ ##
16132 ## Final output ##
16133 ## ------------ ##
16134
16135
16136
16137
16138
16139 PACKAGE_VERSION_MAJOR=0
16140
16141 PACKAGE_VERSION_MINOR=1
16142
16143 PACKAGE_VERSION_MICRO=4
16144
16145 API_VERSION=1:0:0
16146
16147
16148 ac_config_files="$ac_config_files flxmlrpc.pc:flxmlrpc.pc.in Makefile m4/Makefile include/Makefile src/Makefile"
16149
16150
16151 cat >confcache <<\_ACEOF
16152 # This file is a shell script that caches the results of configure
16153 # tests run on this system so they can be shared between configure
16154 # scripts and configure runs, see configure's option --config-cache.
16155 # It is not useful on other systems. If it contains results you don't
16156 # want to keep, you may remove or edit it.
16157 #
16158 # config.status only pays attention to the cache file if you give it
16159 # the --recheck option to rerun configure.
16160 #
16161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16163 # following values.
16164
16165 _ACEOF
16166
16167 # The following way of writing the cache mishandles newlines in values,
16168 # but we know of no workaround that is simple, portable, and efficient.
16169 # So, we kill variables containing newlines.
16170 # Ultrix sh set writes to stderr and can't be redirected directly,
16171 # and sets the high bit in the cache file unless we assign to the vars.
16172 (
16173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16174 eval ac_val=\$$ac_var
16175 case $ac_val in #(
16176 *${as_nl}*)
16177 case $ac_var in #(
16178 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16179 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16180 esac
16181 case $ac_var in #(
16182 _ | IFS | as_nl) ;; #(
16183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16184 *) { eval $ac_var=; unset $ac_var;} ;;
16185 esac ;;
16186 esac
16187 done
16188
16189 (set) 2>&1 |
16190 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16191 *${as_nl}ac_space=\ *)
16192 # `set' does not quote correctly, so add quotes: double-quote
16193 # substitution turns \\\\ into \\, and sed turns \\ into \.
16194 sed -n \
16195 "s/'/'\\\\''/g;
16196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16197 ;; #(
16198 *)
16199 # `set' quotes correctly as required by POSIX, so do not add quotes.
16200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16201 ;;
16202 esac |
16203 sort
16204 ) |
16205 sed '
16206 /^ac_cv_env_/b end
16207 t clear
16208 :clear
16209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16210 t end
16211 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16212 :end' >>confcache
16213 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16214 if test -w "$cache_file"; then
16215 if test "x$cache_file" != "x/dev/null"; then
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16217 $as_echo "$as_me: updating cache $cache_file" >&6;}
16218 if test ! -f "$cache_file" || test -h "$cache_file"; then
16219 cat confcache >"$cache_file"
16220 else
16221 case $cache_file in #(
16222 */* | ?:*)
16223 mv -f confcache "$cache_file"$$ &&
16224 mv -f "$cache_file"$$ "$cache_file" ;; #(
16225 *)
16226 mv -f confcache "$cache_file" ;;
16227 esac
16228 fi
16229 fi
16230 else
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16232 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16233 fi
16234 fi
16235 rm -f confcache
16236
16237 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16238 # Let make expand exec_prefix.
16239 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16240
16241 DEFS=-DHAVE_CONFIG_H
16242
16243 ac_libobjs=
16244 ac_ltlibobjs=
16245 U=
16246 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16247 # 1. Remove the extension, and $U if already installed.
16248 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16249 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16250 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16251 # will be set to the directory where LIBOBJS objects are built.
16252 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16253 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16254 done
16255 LIBOBJS=$ac_libobjs
16256
16257 LTLIBOBJS=$ac_ltlibobjs
16258
16259
16260 if test -n "$EXEEXT"; then
16261 am__EXEEXT_TRUE=
16262 am__EXEEXT_FALSE='#'
16263 else
16264 am__EXEEXT_TRUE='#'
16265 am__EXEEXT_FALSE=
16266 fi
16267
16268 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16269 as_fn_error $? "conditional \"AMDEP\" was never defined.
16270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16271 fi
16272 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16273 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16275 fi
16276 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16277 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16279 fi
16280 if test -z "${ENABLE_CXX_TRUE}" && test -z "${ENABLE_CXX_FALSE}"; then
16281 as_fn_error $? "conditional \"ENABLE_CXX\" was never defined.
16282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16283 fi
16284
16285 : "${CONFIG_STATUS=./config.status}"
16286 ac_write_fail=0
16287 ac_clean_files_save=$ac_clean_files
16288 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16290 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16291 as_write_fail=0
16292 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16293 #! $SHELL
16294 # Generated by $as_me.
16295 # Run this file to recreate the current configuration.
16296 # Compiler output produced by configure, useful for debugging
16297 # configure, is in config.log if it exists.
16298
16299 debug=false
16300 ac_cs_recheck=false
16301 ac_cs_silent=false
16302
16303 SHELL=\${CONFIG_SHELL-$SHELL}
16304 export SHELL
16305 _ASEOF
16306 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16307 ## -------------------- ##
16308 ## M4sh Initialization. ##
16309 ## -------------------- ##
16310
16311 # Be more Bourne compatible
16312 DUALCASE=1; export DUALCASE # for MKS sh
16313 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16314 emulate sh
16315 NULLCMD=:
16316 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16317 # is contrary to our usage. Disable this feature.
16318 alias -g '${1+"$@"}'='"$@"'
16319 setopt NO_GLOB_SUBST
16320 else
16321 case `(set -o) 2>/dev/null` in #(
16322 *posix*) :
16323 set -o posix ;; #(
16324 *) :
16325 ;;
16326 esac
16327 fi
16328
16329
16330 as_nl='
16331 '
16332 export as_nl
16333 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16334 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16335 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16336 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16337 # Prefer a ksh shell builtin over an external printf program on Solaris,
16338 # but without wasting forks for bash or zsh.
16339 if test -z "$BASH_VERSION$ZSH_VERSION" \
16340 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16341 as_echo='print -r --'
16342 as_echo_n='print -rn --'
16343 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16344 as_echo='printf %s\n'
16345 as_echo_n='printf %s'
16346 else
16347 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16348 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16349 as_echo_n='/usr/ucb/echo -n'
16350 else
16351 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16352 as_echo_n_body='eval
16353 arg=$1;
16354 case $arg in #(
16355 *"$as_nl"*)
16356 expr "X$arg" : "X\\(.*\\)$as_nl";
16357 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16358 esac;
16359 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16360 '
16361 export as_echo_n_body
16362 as_echo_n='sh -c $as_echo_n_body as_echo'
16363 fi
16364 export as_echo_body
16365 as_echo='sh -c $as_echo_body as_echo'
16366 fi
16367
16368 # The user is always right.
16369 if test "${PATH_SEPARATOR+set}" != set; then
16370 PATH_SEPARATOR=:
16371 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16372 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16373 PATH_SEPARATOR=';'
16374 }
16375 fi
16376
16377
16378 # IFS
16379 # We need space, tab and new line, in precisely that order. Quoting is
16380 # there to prevent editors from complaining about space-tab.
16381 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16382 # splitting by setting IFS to empty value.)
16383 IFS=" "" $as_nl"
16384
16385 # Find who we are. Look in the path if we contain no directory separator.
16386 as_myself=
16387 case $0 in #((
16388 *[\\/]* ) as_myself=$0 ;;
16389 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16390 for as_dir in $PATH
16391 do
16392 IFS=$as_save_IFS
16393 test -z "$as_dir" && as_dir=.
16394 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16395 done
16396 IFS=$as_save_IFS
16397
16398 ;;
16399 esac
16400 # We did not find ourselves, most probably we were run as `sh COMMAND'
16401 # in which case we are not to be found in the path.
16402 if test "x$as_myself" = x; then
16403 as_myself=$0
16404 fi
16405 if test ! -f "$as_myself"; then
16406 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16407 exit 1
16408 fi
16409
16410 # Unset variables that we do not need and which cause bugs (e.g. in
16411 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16412 # suppresses any "Segmentation fault" message there. '((' could
16413 # trigger a bug in pdksh 5.2.14.
16414 for as_var in BASH_ENV ENV MAIL MAILPATH
16415 do eval test x\${$as_var+set} = xset \
16416 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16417 done
16418 PS1='$ '
16419 PS2='> '
16420 PS4='+ '
16421
16422 # NLS nuisances.
16423 LC_ALL=C
16424 export LC_ALL
16425 LANGUAGE=C
16426 export LANGUAGE
16427
16428 # CDPATH.
16429 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16430
16431
16432 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16433 # ----------------------------------------
16434 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16435 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16436 # script with STATUS, using 1 if that was 0.
16437 as_fn_error ()
16438 {
16439 as_status=$1; test $as_status -eq 0 && as_status=1
16440 if test "$4"; then
16441 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16442 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16443 fi
16444 $as_echo "$as_me: error: $2" >&2
16445 as_fn_exit $as_status
16446 } # as_fn_error
16447
16448
16449 # as_fn_set_status STATUS
16450 # -----------------------
16451 # Set $? to STATUS, without forking.
16452 as_fn_set_status ()
16453 {
16454 return $1
16455 } # as_fn_set_status
16456
16457 # as_fn_exit STATUS
16458 # -----------------
16459 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16460 as_fn_exit ()
16461 {
16462 set +e
16463 as_fn_set_status $1
16464 exit $1
16465 } # as_fn_exit
16466
16467 # as_fn_unset VAR
16468 # ---------------
16469 # Portably unset VAR.
16470 as_fn_unset ()
16471 {
16472 { eval $1=; unset $1;}
16473 }
16474 as_unset=as_fn_unset
16475 # as_fn_append VAR VALUE
16476 # ----------------------
16477 # Append the text in VALUE to the end of the definition contained in VAR. Take
16478 # advantage of any shell optimizations that allow amortized linear growth over
16479 # repeated appends, instead of the typical quadratic growth present in naive
16480 # implementations.
16481 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16482 eval 'as_fn_append ()
16483 {
16484 eval $1+=\$2
16485 }'
16486 else
16487 as_fn_append ()
16488 {
16489 eval $1=\$$1\$2
16490 }
16491 fi # as_fn_append
16492
16493 # as_fn_arith ARG...
16494 # ------------------
16495 # Perform arithmetic evaluation on the ARGs, and store the result in the
16496 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16497 # must be portable across $(()) and expr.
16498 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16499 eval 'as_fn_arith ()
16500 {
16501 as_val=$(( $* ))
16502 }'
16503 else
16504 as_fn_arith ()
16505 {
16506 as_val=`expr "$@" || test $? -eq 1`
16507 }
16508 fi # as_fn_arith
16509
16510
16511 if expr a : '\(a\)' >/dev/null 2>&1 &&
16512 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16513 as_expr=expr
16514 else
16515 as_expr=false
16516 fi
16517
16518 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16519 as_basename=basename
16520 else
16521 as_basename=false
16522 fi
16523
16524 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16525 as_dirname=dirname
16526 else
16527 as_dirname=false
16528 fi
16529
16530 as_me=`$as_basename -- "$0" ||
16531 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16532 X"$0" : 'X\(//\)$' \| \
16533 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16534 $as_echo X/"$0" |
16535 sed '/^.*\/\([^/][^/]*\)\/*$/{
16536 s//\1/
16537 q
16538 }
16539 /^X\/\(\/\/\)$/{
16540 s//\1/
16541 q
16542 }
16543 /^X\/\(\/\).*/{
16544 s//\1/
16545 q
16546 }
16547 s/.*/./; q'`
16548
16549 # Avoid depending upon Character Ranges.
16550 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16551 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16552 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16553 as_cr_digits='0123456789'
16554 as_cr_alnum=$as_cr_Letters$as_cr_digits
16555
16556 ECHO_C= ECHO_N= ECHO_T=
16557 case `echo -n x` in #(((((
16558 -n*)
16559 case `echo 'xy\c'` in
16560 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16561 xy) ECHO_C='\c';;
16562 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16563 ECHO_T=' ';;
16564 esac;;
16565 *)
16566 ECHO_N='-n';;
16567 esac
16568
16569 rm -f conf$$ conf$$.exe conf$$.file
16570 if test -d conf$$.dir; then
16571 rm -f conf$$.dir/conf$$.file
16572 else
16573 rm -f conf$$.dir
16574 mkdir conf$$.dir 2>/dev/null
16575 fi
16576 if (echo >conf$$.file) 2>/dev/null; then
16577 if ln -s conf$$.file conf$$ 2>/dev/null; then
16578 as_ln_s='ln -s'
16579 # ... but there are two gotchas:
16580 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16581 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16582 # In both cases, we have to default to `cp -p'.
16583 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16584 as_ln_s='cp -p'
16585 elif ln conf$$.file conf$$ 2>/dev/null; then
16586 as_ln_s=ln
16587 else
16588 as_ln_s='cp -p'
16589 fi
16590 else
16591 as_ln_s='cp -p'
16592 fi
16593 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16594 rmdir conf$$.dir 2>/dev/null
16595
16596
16597 # as_fn_mkdir_p
16598 # -------------
16599 # Create "$as_dir" as a directory, including parents if necessary.
16600 as_fn_mkdir_p ()
16601 {
16602
16603 case $as_dir in #(
16604 -*) as_dir=./$as_dir;;
16605 esac
16606 test -d "$as_dir" || eval $as_mkdir_p || {
16607 as_dirs=
16608 while :; do
16609 case $as_dir in #(
16610 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16611 *) as_qdir=$as_dir;;
16612 esac
16613 as_dirs="'$as_qdir' $as_dirs"
16614 as_dir=`$as_dirname -- "$as_dir" ||
16615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16616 X"$as_dir" : 'X\(//\)[^/]' \| \
16617 X"$as_dir" : 'X\(//\)$' \| \
16618 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16619 $as_echo X"$as_dir" |
16620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16621 s//\1/
16622 q
16623 }
16624 /^X\(\/\/\)[^/].*/{
16625 s//\1/
16626 q
16627 }
16628 /^X\(\/\/\)$/{
16629 s//\1/
16630 q
16631 }
16632 /^X\(\/\).*/{
16633 s//\1/
16634 q
16635 }
16636 s/.*/./; q'`
16637 test -d "$as_dir" && break
16638 done
16639 test -z "$as_dirs" || eval "mkdir $as_dirs"
16640 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16641
16642
16643 } # as_fn_mkdir_p
16644 if mkdir -p . 2>/dev/null; then
16645 as_mkdir_p='mkdir -p "$as_dir"'
16646 else
16647 test -d ./-p && rmdir ./-p
16648 as_mkdir_p=false
16649 fi
16650
16651 if test -x / >/dev/null 2>&1; then
16652 as_test_x='test -x'
16653 else
16654 if ls -dL / >/dev/null 2>&1; then
16655 as_ls_L_option=L
16656 else
16657 as_ls_L_option=
16658 fi
16659 as_test_x='
16660 eval sh -c '\''
16661 if test -d "$1"; then
16662 test -d "$1/.";
16663 else
16664 case $1 in #(
16665 -*)set "./$1";;
16666 esac;
16667 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16668 ???[sx]*):;;*)false;;esac;fi
16669 '\'' sh
16670 '
16671 fi
16672 as_executable_p=$as_test_x
16673
16674 # Sed expression to map a string onto a valid CPP name.
16675 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16676
16677 # Sed expression to map a string onto a valid variable name.
16678 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16679
16680
16681 exec 6>&1
16682 ## ----------------------------------- ##
16683 ## Main body of $CONFIG_STATUS script. ##
16684 ## ----------------------------------- ##
16685 _ASEOF
16686 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16687
16688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16689 # Save the log message, to keep $0 and so on meaningful, and to
16690 # report actual input values of CONFIG_FILES etc. instead of their
16691 # values after options handling.
16692 ac_log="
16693 This file was extended by flxmlrpc $as_me 0.1.4, which was
16694 generated by GNU Autoconf 2.68. Invocation command line was
16695
16696 CONFIG_FILES = $CONFIG_FILES
16697 CONFIG_HEADERS = $CONFIG_HEADERS
16698 CONFIG_LINKS = $CONFIG_LINKS
16699 CONFIG_COMMANDS = $CONFIG_COMMANDS
16700 $ $0 $@
16701
16702 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16703 "
16704
16705 _ACEOF
16706
16707 case $ac_config_files in *"
16708 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16709 esac
16710
16711 case $ac_config_headers in *"
16712 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16713 esac
16714
16715
16716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16717 # Files that config.status was made for.
16718 config_files="$ac_config_files"
16719 config_headers="$ac_config_headers"
16720 config_commands="$ac_config_commands"
16721
16722 _ACEOF
16723
16724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16725 ac_cs_usage="\
16726 \`$as_me' instantiates files and other configuration actions
16727 from templates according to the current configuration. Unless the files
16728 and actions are specified as TAGs, all are instantiated by default.
16729
16730 Usage: $0 [OPTION]... [TAG]...
16731
16732 -h, --help print this help, then exit
16733 -V, --version print version number and configuration settings, then exit
16734 --config print configuration, then exit
16735 -q, --quiet, --silent
16736 do not print progress messages
16737 -d, --debug don't remove temporary files
16738 --recheck update $as_me by reconfiguring in the same conditions
16739 --file=FILE[:TEMPLATE]
16740 instantiate the configuration file FILE
16741 --header=FILE[:TEMPLATE]
16742 instantiate the configuration header FILE
16743
16744 Configuration files:
16745 $config_files
16746
16747 Configuration headers:
16748 $config_headers
16749
16750 Configuration commands:
16751 $config_commands
16752
16753 Report bugs to <[email protected]>.
16754 flxmlrpc home page: <http://www.w1hkj.com>."
16755
16756 _ACEOF
16757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16758 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16759 ac_cs_version="\\
16760 flxmlrpc config.status 0.1.4
16761 configured by $0, generated by GNU Autoconf 2.68,
16762 with options \\"\$ac_cs_config\\"
16763
16764 Copyright (C) 2010 Free Software Foundation, Inc.
16765 This config.status script is free software; the Free Software Foundation
16766 gives unlimited permission to copy, distribute and modify it."
16767
16768 ac_pwd='$ac_pwd'
16769 srcdir='$srcdir'
16770 INSTALL='$INSTALL'
16771 MKDIR_P='$MKDIR_P'
16772 AWK='$AWK'
16773 test -n "\$AWK" || AWK=awk
16774 _ACEOF
16775
16776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16777 # The default lists apply if the user does not specify any file.
16778 ac_need_defaults=:
16779 while test $# != 0
16780 do
16781 case $1 in
16782 --*=?*)
16783 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16784 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16785 ac_shift=:
16786 ;;
16787 --*=)
16788 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16789 ac_optarg=
16790 ac_shift=:
16791 ;;
16792 *)
16793 ac_option=$1
16794 ac_optarg=$2
16795 ac_shift=shift
16796 ;;
16797 esac
16798
16799 case $ac_option in
16800 # Handling of the options.
16801 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16802 ac_cs_recheck=: ;;
16803 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16804 $as_echo "$ac_cs_version"; exit ;;
16805 --config | --confi | --conf | --con | --co | --c )
16806 $as_echo "$ac_cs_config"; exit ;;
16807 --debug | --debu | --deb | --de | --d | -d )
16808 debug=: ;;
16809 --file | --fil | --fi | --f )
16810 $ac_shift
16811 case $ac_optarg in
16812 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16813 '') as_fn_error $? "missing file argument" ;;
16814 esac
16815 as_fn_append CONFIG_FILES " '$ac_optarg'"
16816 ac_need_defaults=false;;
16817 --header | --heade | --head | --hea )
16818 $ac_shift
16819 case $ac_optarg in
16820 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16821 esac
16822 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16823 ac_need_defaults=false;;
16824 --he | --h)
16825 # Conflict between --help and --header
16826 as_fn_error $? "ambiguous option: \`$1'
16827 Try \`$0 --help' for more information.";;
16828 --help | --hel | -h )
16829 $as_echo "$ac_cs_usage"; exit ;;
16830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16831 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16832 ac_cs_silent=: ;;
16833
16834 # This is an error.
16835 -*) as_fn_error $? "unrecognized option: \`$1'
16836 Try \`$0 --help' for more information." ;;
16837
16838 *) as_fn_append ac_config_targets " $1"
16839 ac_need_defaults=false ;;
16840
16841 esac
16842 shift
16843 done
16844
16845 ac_configure_extra_args=
16846
16847 if $ac_cs_silent; then
16848 exec 6>/dev/null
16849 ac_configure_extra_args="$ac_configure_extra_args --silent"
16850 fi
16851
16852 _ACEOF
16853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16854 if \$ac_cs_recheck; then
16855 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16856 shift
16857 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16858 CONFIG_SHELL='$SHELL'
16859 export CONFIG_SHELL
16860 exec "\$@"
16861 fi
16862
16863 _ACEOF
16864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16865 exec 5>>config.log
16866 {
16867 echo
16868 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16869 ## Running $as_me. ##
16870 _ASBOX
16871 $as_echo "$ac_log"
16872 } >&5
16873
16874 _ACEOF
16875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16876 #
16877 # INIT-COMMANDS
16878 #
16879 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16880
16881
16882 # The HP-UX ksh and POSIX shell print the target directory to stdout
16883 # if CDPATH is set.
16884 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16885
16886 sed_quote_subst='$sed_quote_subst'
16887 double_quote_subst='$double_quote_subst'
16888 delay_variable_subst='$delay_variable_subst'
16889 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16890 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16891 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16892 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16893 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16894 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16895 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16896 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16897 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16898 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16899 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16900 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16901 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16902 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16903 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16904 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16905 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16906 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16907 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16908 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16909 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16910 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16911 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16912 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16913 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16914 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16915 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16916 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16917 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16918 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16919 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16920 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16921 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16922 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16923 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16924 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16925 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16926 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16927 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16928 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16929 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16930 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16931 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16932 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16933 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16934 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16935 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16936 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16937 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16938 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16939 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16940 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16941 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16942 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16943 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16944 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16945 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"`'
16946 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16947 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16948 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16949 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16950 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16951 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16952 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16953 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16954 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16955 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16956 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16957 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16958 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16959 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16960 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16961 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16962 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16963 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16964 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16965 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16966 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16967 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16968 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16969 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16970 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16971 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16972 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16973 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16974 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16975 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16976 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16977 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16978 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16979 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16980 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16981 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16982 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16983 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16984 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16985 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16986 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16987 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16988 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16989 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16990 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16991 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16992 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16993 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16994 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16995 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16996 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16997 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16998 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16999 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17000 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17001 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17002 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17003 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17004 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17005 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17006 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17007 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17008 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17009 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17010 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17011 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17012 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17013 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17014 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17015 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17016 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17017 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17018 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17019 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17020 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17021 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17022 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17023 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17024 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17025 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17026 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17027 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17028 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17029 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17030 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17031 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17032 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17033 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17034 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17035 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17036 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17037 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17038 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17039 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17040 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17041 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17042 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17043 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17044 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17045 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17046 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17047 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17048 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17049 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17050 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17051 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17052 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17053 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17054 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17055 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17056 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17057 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17058 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17059 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17060 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17061 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17062 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17063 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17064 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17065 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17066 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17067 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17068 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17069 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17070 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17071 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17072 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17073
17074 LTCC='$LTCC'
17075 LTCFLAGS='$LTCFLAGS'
17076 compiler='$compiler_DEFAULT'
17077
17078 # A function that is used when there is no print builtin or printf.
17079 func_fallback_echo ()
17080 {
17081 eval 'cat <<_LTECHO_EOF
17082 \$1
17083 _LTECHO_EOF'
17084 }
17085
17086 # Quote evaled strings.
17087 for var in SHELL \
17088 ECHO \
17089 PATH_SEPARATOR \
17090 SED \
17091 GREP \
17092 EGREP \
17093 FGREP \
17094 LD \
17095 NM \
17096 LN_S \
17097 lt_SP2NL \
17098 lt_NL2SP \
17099 reload_flag \
17100 OBJDUMP \
17101 deplibs_check_method \
17102 file_magic_cmd \
17103 file_magic_glob \
17104 want_nocaseglob \
17105 DLLTOOL \
17106 sharedlib_from_linklib_cmd \
17107 AR \
17108 AR_FLAGS \
17109 archiver_list_spec \
17110 STRIP \
17111 RANLIB \
17112 CC \
17113 CFLAGS \
17114 compiler \
17115 lt_cv_sys_global_symbol_pipe \
17116 lt_cv_sys_global_symbol_to_cdecl \
17117 lt_cv_sys_global_symbol_to_c_name_address \
17118 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17119 nm_file_list_spec \
17120 lt_prog_compiler_no_builtin_flag \
17121 lt_prog_compiler_pic \
17122 lt_prog_compiler_wl \
17123 lt_prog_compiler_static \
17124 lt_cv_prog_compiler_c_o \
17125 need_locks \
17126 MANIFEST_TOOL \
17127 DSYMUTIL \
17128 NMEDIT \
17129 LIPO \
17130 OTOOL \
17131 OTOOL64 \
17132 shrext_cmds \
17133 export_dynamic_flag_spec \
17134 whole_archive_flag_spec \
17135 compiler_needs_object \
17136 with_gnu_ld \
17137 allow_undefined_flag \
17138 no_undefined_flag \
17139 hardcode_libdir_flag_spec \
17140 hardcode_libdir_separator \
17141 exclude_expsyms \
17142 include_expsyms \
17143 file_list_spec \
17144 variables_saved_for_relink \
17145 libname_spec \
17146 library_names_spec \
17147 soname_spec \
17148 install_override_mode \
17149 finish_eval \
17150 old_striplib \
17151 striplib \
17152 compiler_lib_search_dirs \
17153 predep_objects \
17154 postdep_objects \
17155 predeps \
17156 postdeps \
17157 compiler_lib_search_path \
17158 LD_CXX \
17159 reload_flag_CXX \
17160 compiler_CXX \
17161 lt_prog_compiler_no_builtin_flag_CXX \
17162 lt_prog_compiler_pic_CXX \
17163 lt_prog_compiler_wl_CXX \
17164 lt_prog_compiler_static_CXX \
17165 lt_cv_prog_compiler_c_o_CXX \
17166 export_dynamic_flag_spec_CXX \
17167 whole_archive_flag_spec_CXX \
17168 compiler_needs_object_CXX \
17169 with_gnu_ld_CXX \
17170 allow_undefined_flag_CXX \
17171 no_undefined_flag_CXX \
17172 hardcode_libdir_flag_spec_CXX \
17173 hardcode_libdir_separator_CXX \
17174 exclude_expsyms_CXX \
17175 include_expsyms_CXX \
17176 file_list_spec_CXX \
17177 compiler_lib_search_dirs_CXX \
17178 predep_objects_CXX \
17179 postdep_objects_CXX \
17180 predeps_CXX \
17181 postdeps_CXX \
17182 compiler_lib_search_path_CXX; do
17183 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17184 *[\\\\\\\`\\"\\\$]*)
17185 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17186 ;;
17187 *)
17188 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17189 ;;
17190 esac
17191 done
17192
17193 # Double-quote double-evaled strings.
17194 for var in reload_cmds \
17195 old_postinstall_cmds \
17196 old_postuninstall_cmds \
17197 old_archive_cmds \
17198 extract_expsyms_cmds \
17199 old_archive_from_new_cmds \
17200 old_archive_from_expsyms_cmds \
17201 archive_cmds \
17202 archive_expsym_cmds \
17203 module_cmds \
17204 module_expsym_cmds \
17205 export_symbols_cmds \
17206 prelink_cmds \
17207 postlink_cmds \
17208 postinstall_cmds \
17209 postuninstall_cmds \
17210 finish_cmds \
17211 sys_lib_search_path_spec \
17212 sys_lib_dlsearch_path_spec \
17213 reload_cmds_CXX \
17214 old_archive_cmds_CXX \
17215 old_archive_from_new_cmds_CXX \
17216 old_archive_from_expsyms_cmds_CXX \
17217 archive_cmds_CXX \
17218 archive_expsym_cmds_CXX \
17219 module_cmds_CXX \
17220 module_expsym_cmds_CXX \
17221 export_symbols_cmds_CXX \
17222 prelink_cmds_CXX \
17223 postlink_cmds_CXX; do
17224 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17225 *[\\\\\\\`\\"\\\$]*)
17226 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17227 ;;
17228 *)
17229 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17230 ;;
17231 esac
17232 done
17233
17234 ac_aux_dir='$ac_aux_dir'
17235 xsi_shell='$xsi_shell'
17236 lt_shell_append='$lt_shell_append'
17237
17238 # See if we are running on zsh, and set the options which allow our
17239 # commands through without removal of \ escapes INIT.
17240 if test -n "\${ZSH_VERSION+set}" ; then
17241 setopt NO_GLOB_SUBST
17242 fi
17243
17244
17245 PACKAGE='$PACKAGE'
17246 VERSION='$VERSION'
17247 TIMESTAMP='$TIMESTAMP'
17248 RM='$RM'
17249 ofile='$ofile'
17250
17251
17252
17253
17254
17255
17256 _ACEOF
17257
17258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17259
17260 # Handling of arguments.
17261 for ac_config_target in $ac_config_targets
17262 do
17263 case $ac_config_target in
17264 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17265 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17266 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17267 "flxmlrpc.pc") CONFIG_FILES="$CONFIG_FILES flxmlrpc.pc:flxmlrpc.pc.in" ;;
17268 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17269 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17270 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17271 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17272
17273 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17274 esac
17275 done
17276
17277
17278 # If the user did not use the arguments to specify the items to instantiate,
17279 # then the envvar interface is used. Set only those that are not.
17280 # We use the long form for the default assignment because of an extremely
17281 # bizarre bug on SunOS 4.1.3.
17282 if $ac_need_defaults; then
17283 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17284 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17285 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17286 fi
17287
17288 # Have a temporary directory for convenience. Make it in the build tree
17289 # simply because there is no reason against having it here, and in addition,
17290 # creating and moving files from /tmp can sometimes cause problems.
17291 # Hook for its removal unless debugging.
17292 # Note that there is a small window in which the directory will not be cleaned:
17293 # after its creation but before its name has been assigned to `$tmp'.
17294 $debug ||
17295 {
17296 tmp= ac_tmp=
17297 trap 'exit_status=$?
17298 : "${ac_tmp:=$tmp}"
17299 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17300 ' 0
17301 trap 'as_fn_exit 1' 1 2 13 15
17302 }
17303 # Create a (secure) tmp directory for tmp files.
17304
17305 {
17306 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17307 test -d "$tmp"
17308 } ||
17309 {
17310 tmp=./conf$$-$RANDOM
17311 (umask 077 && mkdir "$tmp")
17312 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17313 ac_tmp=$tmp
17314
17315 # Set up the scripts for CONFIG_FILES section.
17316 # No need to generate them if there are no CONFIG_FILES.
17317 # This happens for instance with `./config.status config.h'.
17318 if test -n "$CONFIG_FILES"; then
17319
17320
17321 ac_cr=`echo X | tr X '\015'`
17322 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17323 # But we know of no other shell where ac_cr would be empty at this
17324 # point, so we can use a bashism as a fallback.
17325 if test "x$ac_cr" = x; then
17326 eval ac_cr=\$\'\\r\'
17327 fi
17328 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17329 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17330 ac_cs_awk_cr='\\r'
17331 else
17332 ac_cs_awk_cr=$ac_cr
17333 fi
17334
17335 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17336 _ACEOF
17337
17338
17339 {
17340 echo "cat >conf$$subs.awk <<_ACEOF" &&
17341 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17342 echo "_ACEOF"
17343 } >conf$$subs.sh ||
17344 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17345 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17346 ac_delim='%!_!# '
17347 for ac_last_try in false false false false false :; do
17348 . ./conf$$subs.sh ||
17349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17350
17351 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17352 if test $ac_delim_n = $ac_delim_num; then
17353 break
17354 elif $ac_last_try; then
17355 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17356 else
17357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17358 fi
17359 done
17360 rm -f conf$$subs.sh
17361
17362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17363 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17364 _ACEOF
17365 sed -n '
17366 h
17367 s/^/S["/; s/!.*/"]=/
17368 p
17369 g
17370 s/^[^!]*!//
17371 :repl
17372 t repl
17373 s/'"$ac_delim"'$//
17374 t delim
17375 :nl
17376 h
17377 s/\(.\{148\}\)..*/\1/
17378 t more1
17379 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17380 p
17381 n
17382 b repl
17383 :more1
17384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17385 p
17386 g
17387 s/.\{148\}//
17388 t nl
17389 :delim
17390 h
17391 s/\(.\{148\}\)..*/\1/
17392 t more2
17393 s/["\\]/\\&/g; s/^/"/; s/$/"/
17394 p
17395 b
17396 :more2
17397 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17398 p
17399 g
17400 s/.\{148\}//
17401 t delim
17402 ' <conf$$subs.awk | sed '
17403 /^[^""]/{
17404 N
17405 s/\n//
17406 }
17407 ' >>$CONFIG_STATUS || ac_write_fail=1
17408 rm -f conf$$subs.awk
17409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17410 _ACAWK
17411 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17412 for (key in S) S_is_set[key] = 1
17413 FS = ""
17414
17415 }
17416 {
17417 line = $ 0
17418 nfields = split(line, field, "@")
17419 substed = 0
17420 len = length(field[1])
17421 for (i = 2; i < nfields; i++) {
17422 key = field[i]
17423 keylen = length(key)
17424 if (S_is_set[key]) {
17425 value = S[key]
17426 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17427 len += length(value) + length(field[++i])
17428 substed = 1
17429 } else
17430 len += 1 + keylen
17431 }
17432
17433 print line
17434 }
17435
17436 _ACAWK
17437 _ACEOF
17438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17439 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17440 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17441 else
17442 cat
17443 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17444 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17445 _ACEOF
17446
17447 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17448 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17449 # trailing colons and then remove the whole line if VPATH becomes empty
17450 # (actually we leave an empty line to preserve line numbers).
17451 if test "x$srcdir" = x.; then
17452 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17453 h
17454 s///
17455 s/^/:/
17456 s/[ ]*$/:/
17457 s/:\$(srcdir):/:/g
17458 s/:\${srcdir}:/:/g
17459 s/:@srcdir@:/:/g
17460 s/^:*//
17461 s/:*$//
17462 x
17463 s/\(=[ ]*\).*/\1/
17464 G
17465 s/\n//
17466 s/^[^=]*=[ ]*$//
17467 }'
17468 fi
17469
17470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17471 fi # test -n "$CONFIG_FILES"
17472
17473 # Set up the scripts for CONFIG_HEADERS section.
17474 # No need to generate them if there are no CONFIG_HEADERS.
17475 # This happens for instance with `./config.status Makefile'.
17476 if test -n "$CONFIG_HEADERS"; then
17477 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17478 BEGIN {
17479 _ACEOF
17480
17481 # Transform confdefs.h into an awk script `defines.awk', embedded as
17482 # here-document in config.status, that substitutes the proper values into
17483 # config.h.in to produce config.h.
17484
17485 # Create a delimiter string that does not exist in confdefs.h, to ease
17486 # handling of long lines.
17487 ac_delim='%!_!# '
17488 for ac_last_try in false false :; do
17489 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17490 if test -z "$ac_tt"; then
17491 break
17492 elif $ac_last_try; then
17493 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17494 else
17495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17496 fi
17497 done
17498
17499 # For the awk script, D is an array of macro values keyed by name,
17500 # likewise P contains macro parameters if any. Preserve backslash
17501 # newline sequences.
17502
17503 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17504 sed -n '
17505 s/.\{148\}/&'"$ac_delim"'/g
17506 t rset
17507 :rset
17508 s/^[ ]*#[ ]*define[ ][ ]*/ /
17509 t def
17510 d
17511 :def
17512 s/\\$//
17513 t bsnl
17514 s/["\\]/\\&/g
17515 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17516 D["\1"]=" \3"/p
17517 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17518 d
17519 :bsnl
17520 s/["\\]/\\&/g
17521 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17522 D["\1"]=" \3\\\\\\n"\\/p
17523 t cont
17524 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17525 t cont
17526 d
17527 :cont
17528 n
17529 s/.\{148\}/&'"$ac_delim"'/g
17530 t clear
17531 :clear
17532 s/\\$//
17533 t bsnlc
17534 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17535 d
17536 :bsnlc
17537 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17538 b cont
17539 ' <confdefs.h | sed '
17540 s/'"$ac_delim"'/"\\\
17541 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17542
17543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17544 for (key in D) D_is_set[key] = 1
17545 FS = ""
17546 }
17547 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17548 line = \$ 0
17549 split(line, arg, " ")
17550 if (arg[1] == "#") {
17551 defundef = arg[2]
17552 mac1 = arg[3]
17553 } else {
17554 defundef = substr(arg[1], 2)
17555 mac1 = arg[2]
17556 }
17557 split(mac1, mac2, "(") #)
17558 macro = mac2[1]
17559 prefix = substr(line, 1, index(line, defundef) - 1)
17560 if (D_is_set[macro]) {
17561 # Preserve the white space surrounding the "#".
17562 print prefix "define", macro P[macro] D[macro]
17563 next
17564 } else {
17565 # Replace #undef with comments. This is necessary, for example,
17566 # in the case of _POSIX_SOURCE, which is predefined and required
17567 # on some systems where configure will not decide to define it.
17568 if (defundef == "undef") {
17569 print "/*", prefix defundef, macro, "*/"
17570 next
17571 }
17572 }
17573 }
17574 { print }
17575 _ACAWK
17576 _ACEOF
17577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17578 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17579 fi # test -n "$CONFIG_HEADERS"
17580
17581
17582 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17583 shift
17584 for ac_tag
17585 do
17586 case $ac_tag in
17587 :[FHLC]) ac_mode=$ac_tag; continue;;
17588 esac
17589 case $ac_mode$ac_tag in
17590 :[FHL]*:*);;
17591 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17592 :[FH]-) ac_tag=-:-;;
17593 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17594 esac
17595 ac_save_IFS=$IFS
17596 IFS=:
17597 set x $ac_tag
17598 IFS=$ac_save_IFS
17599 shift
17600 ac_file=$1
17601 shift
17602
17603 case $ac_mode in
17604 :L) ac_source=$1;;
17605 :[FH])
17606 ac_file_inputs=
17607 for ac_f
17608 do
17609 case $ac_f in
17610 -) ac_f="$ac_tmp/stdin";;
17611 *) # Look for the file first in the build tree, then in the source tree
17612 # (if the path is not absolute). The absolute path cannot be DOS-style,
17613 # because $ac_f cannot contain `:'.
17614 test -f "$ac_f" ||
17615 case $ac_f in
17616 [\\/$]*) false;;
17617 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17618 esac ||
17619 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17620 esac
17621 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17622 as_fn_append ac_file_inputs " '$ac_f'"
17623 done
17624
17625 # Let's still pretend it is `configure' which instantiates (i.e., don't
17626 # use $as_me), people would be surprised to read:
17627 # /* config.h. Generated by config.status. */
17628 configure_input='Generated from '`
17629 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17630 `' by configure.'
17631 if test x"$ac_file" != x-; then
17632 configure_input="$ac_file. $configure_input"
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17634 $as_echo "$as_me: creating $ac_file" >&6;}
17635 fi
17636 # Neutralize special characters interpreted by sed in replacement strings.
17637 case $configure_input in #(
17638 *\&* | *\|* | *\\* )
17639 ac_sed_conf_input=`$as_echo "$configure_input" |
17640 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17641 *) ac_sed_conf_input=$configure_input;;
17642 esac
17643
17644 case $ac_tag in
17645 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17647 esac
17648 ;;
17649 esac
17650
17651 ac_dir=`$as_dirname -- "$ac_file" ||
17652 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17653 X"$ac_file" : 'X\(//\)[^/]' \| \
17654 X"$ac_file" : 'X\(//\)$' \| \
17655 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17656 $as_echo X"$ac_file" |
17657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17658 s//\1/
17659 q
17660 }
17661 /^X\(\/\/\)[^/].*/{
17662 s//\1/
17663 q
17664 }
17665 /^X\(\/\/\)$/{
17666 s//\1/
17667 q
17668 }
17669 /^X\(\/\).*/{
17670 s//\1/
17671 q
17672 }
17673 s/.*/./; q'`
17674 as_dir="$ac_dir"; as_fn_mkdir_p
17675 ac_builddir=.
17676
17677 case "$ac_dir" in
17678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17679 *)
17680 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17681 # A ".." for each directory in $ac_dir_suffix.
17682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17683 case $ac_top_builddir_sub in
17684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17686 esac ;;
17687 esac
17688 ac_abs_top_builddir=$ac_pwd
17689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17690 # for backward compatibility:
17691 ac_top_builddir=$ac_top_build_prefix
17692
17693 case $srcdir in
17694 .) # We are building in place.
17695 ac_srcdir=.
17696 ac_top_srcdir=$ac_top_builddir_sub
17697 ac_abs_top_srcdir=$ac_pwd ;;
17698 [\\/]* | ?:[\\/]* ) # Absolute name.
17699 ac_srcdir=$srcdir$ac_dir_suffix;
17700 ac_top_srcdir=$srcdir
17701 ac_abs_top_srcdir=$srcdir ;;
17702 *) # Relative name.
17703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17704 ac_top_srcdir=$ac_top_build_prefix$srcdir
17705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17706 esac
17707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17708
17709
17710 case $ac_mode in
17711 :F)
17712 #
17713 # CONFIG_FILE
17714 #
17715
17716 case $INSTALL in
17717 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17718 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17719 esac
17720 ac_MKDIR_P=$MKDIR_P
17721 case $MKDIR_P in
17722 [\\/$]* | ?:[\\/]* ) ;;
17723 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17724 esac
17725 _ACEOF
17726
17727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17728 # If the template does not know about datarootdir, expand it.
17729 # FIXME: This hack should be removed a few years after 2.60.
17730 ac_datarootdir_hack=; ac_datarootdir_seen=
17731 ac_sed_dataroot='
17732 /datarootdir/ {
17733 p
17734 q
17735 }
17736 /@datadir@/p
17737 /@docdir@/p
17738 /@infodir@/p
17739 /@localedir@/p
17740 /@mandir@/p'
17741 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17742 *datarootdir*) ac_datarootdir_seen=yes;;
17743 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17745 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17746 _ACEOF
17747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17748 ac_datarootdir_hack='
17749 s&@datadir@&$datadir&g
17750 s&@docdir@&$docdir&g
17751 s&@infodir@&$infodir&g
17752 s&@localedir@&$localedir&g
17753 s&@mandir@&$mandir&g
17754 s&\\\${datarootdir}&$datarootdir&g' ;;
17755 esac
17756 _ACEOF
17757
17758 # Neutralize VPATH when `$srcdir' = `.'.
17759 # Shell code in configure.ac might set extrasub.
17760 # FIXME: do we really want to maintain this feature?
17761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17762 ac_sed_extra="$ac_vpsub
17763 $extrasub
17764 _ACEOF
17765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17766 :t
17767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17768 s|@configure_input@|$ac_sed_conf_input|;t t
17769 s&@top_builddir@&$ac_top_builddir_sub&;t t
17770 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17771 s&@srcdir@&$ac_srcdir&;t t
17772 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17773 s&@top_srcdir@&$ac_top_srcdir&;t t
17774 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17775 s&@builddir@&$ac_builddir&;t t
17776 s&@abs_builddir@&$ac_abs_builddir&;t t
17777 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17778 s&@INSTALL@&$ac_INSTALL&;t t
17779 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17780 $ac_datarootdir_hack
17781 "
17782 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17783 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17784
17785 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17786 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17787 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17788 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17790 which seems to be undefined. Please make sure it is defined" >&5
17791 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17792 which seems to be undefined. Please make sure it is defined" >&2;}
17793
17794 rm -f "$ac_tmp/stdin"
17795 case $ac_file in
17796 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17797 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17798 esac \
17799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17800 ;;
17801 :H)
17802 #
17803 # CONFIG_HEADER
17804 #
17805 if test x"$ac_file" != x-; then
17806 {
17807 $as_echo "/* $configure_input */" \
17808 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17809 } >"$ac_tmp/config.h" \
17810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17811 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17813 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17814 else
17815 rm -f "$ac_file"
17816 mv "$ac_tmp/config.h" "$ac_file" \
17817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17818 fi
17819 else
17820 $as_echo "/* $configure_input */" \
17821 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17822 || as_fn_error $? "could not create -" "$LINENO" 5
17823 fi
17824 # Compute "$ac_file"'s index in $config_headers.
17825 _am_arg="$ac_file"
17826 _am_stamp_count=1
17827 for _am_header in $config_headers :; do
17828 case $_am_header in
17829 $_am_arg | $_am_arg:* )
17830 break ;;
17831 * )
17832 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17833 esac
17834 done
17835 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17836 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17837 X"$_am_arg" : 'X\(//\)[^/]' \| \
17838 X"$_am_arg" : 'X\(//\)$' \| \
17839 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17840 $as_echo X"$_am_arg" |
17841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17842 s//\1/
17843 q
17844 }
17845 /^X\(\/\/\)[^/].*/{
17846 s//\1/
17847 q
17848 }
17849 /^X\(\/\/\)$/{
17850 s//\1/
17851 q
17852 }
17853 /^X\(\/\).*/{
17854 s//\1/
17855 q
17856 }
17857 s/.*/./; q'`/stamp-h$_am_stamp_count
17858 ;;
17859
17860 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17861 $as_echo "$as_me: executing $ac_file commands" >&6;}
17862 ;;
17863 esac
17864
17865
17866 case $ac_file$ac_mode in
17867 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17868 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17869 # are listed without --file. Let's play safe and only enable the eval
17870 # if we detect the quoting.
17871 case $CONFIG_FILES in
17872 *\'*) eval set x "$CONFIG_FILES" ;;
17873 *) set x $CONFIG_FILES ;;
17874 esac
17875 shift
17876 for mf
17877 do
17878 # Strip MF so we end up with the name of the file.
17879 mf=`echo "$mf" | sed -e 's/:.*$//'`
17880 # Check whether this is an Automake generated Makefile or not.
17881 # We used to match only the files named `Makefile.in', but
17882 # some people rename them; so instead we look at the file content.
17883 # Grep'ing the first line is not enough: some people post-process
17884 # each Makefile.in and add a new line on top of each file to say so.
17885 # Grep'ing the whole file is not good either: AIX grep has a line
17886 # limit of 2048, but all sed's we know have understand at least 4000.
17887 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17888 dirpart=`$as_dirname -- "$mf" ||
17889 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17890 X"$mf" : 'X\(//\)[^/]' \| \
17891 X"$mf" : 'X\(//\)$' \| \
17892 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17893 $as_echo X"$mf" |
17894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17895 s//\1/
17896 q
17897 }
17898 /^X\(\/\/\)[^/].*/{
17899 s//\1/
17900 q
17901 }
17902 /^X\(\/\/\)$/{
17903 s//\1/
17904 q
17905 }
17906 /^X\(\/\).*/{
17907 s//\1/
17908 q
17909 }
17910 s/.*/./; q'`
17911 else
17912 continue
17913 fi
17914 # Extract the definition of DEPDIR, am__include, and am__quote
17915 # from the Makefile without running `make'.
17916 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17917 test -z "$DEPDIR" && continue
17918 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17919 test -z "am__include" && continue
17920 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17921 # When using ansi2knr, U may be empty or an underscore; expand it
17922 U=`sed -n 's/^U = //p' < "$mf"`
17923 # Find all dependency output files, they are included files with
17924 # $(DEPDIR) in their names. We invoke sed twice because it is the
17925 # simplest approach to changing $(DEPDIR) to its actual value in the
17926 # expansion.
17927 for file in `sed -n "
17928 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17929 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17930 # Make sure the directory exists.
17931 test -f "$dirpart/$file" && continue
17932 fdir=`$as_dirname -- "$file" ||
17933 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17934 X"$file" : 'X\(//\)[^/]' \| \
17935 X"$file" : 'X\(//\)$' \| \
17936 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17937 $as_echo X"$file" |
17938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17939 s//\1/
17940 q
17941 }
17942 /^X\(\/\/\)[^/].*/{
17943 s//\1/
17944 q
17945 }
17946 /^X\(\/\/\)$/{
17947 s//\1/
17948 q
17949 }
17950 /^X\(\/\).*/{
17951 s//\1/
17952 q
17953 }
17954 s/.*/./; q'`
17955 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17956 # echo "creating $dirpart/$file"
17957 echo '# dummy' > "$dirpart/$file"
17958 done
17959 done
17960 }
17961 ;;
17962 "libtool":C)
17963
17964 # See if we are running on zsh, and set the options which allow our
17965 # commands through without removal of \ escapes.
17966 if test -n "${ZSH_VERSION+set}" ; then
17967 setopt NO_GLOB_SUBST
17968 fi
17969
17970 cfgfile="${ofile}T"
17971 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17972 $RM "$cfgfile"
17973
17974 cat <<_LT_EOF >> "$cfgfile"
17975 #! $SHELL
17976
17977 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17978 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17979 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17980 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17981 #
17982 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17983 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17984 # Foundation, Inc.
17985 # Written by Gordon Matzigkeit, 1996
17986 #
17987 # This file is part of GNU Libtool.
17988 #
17989 # GNU Libtool is free software; you can redistribute it and/or
17990 # modify it under the terms of the GNU General Public License as
17991 # published by the Free Software Foundation; either version 2 of
17992 # the License, or (at your option) any later version.
17993 #
17994 # As a special exception to the GNU General Public License,
17995 # if you distribute this file as part of a program or library that
17996 # is built using GNU Libtool, you may include this file under the
17997 # same distribution terms that you use for the rest of that program.
17998 #
17999 # GNU Libtool is distributed in the hope that it will be useful,
18000 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18001 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18002 # GNU General Public License for more details.
18003 #
18004 # You should have received a copy of the GNU General Public License
18005 # along with GNU Libtool; see the file COPYING. If not, a copy
18006 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18007 # obtained by writing to the Free Software Foundation, Inc.,
18008 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18009
18010
18011 # The names of the tagged configurations supported by this script.
18012 available_tags="CXX "
18013
18014 # ### BEGIN LIBTOOL CONFIG
18015
18016 # Which release of libtool.m4 was used?
18017 macro_version=$macro_version
18018 macro_revision=$macro_revision
18019
18020 # Whether or not to build shared libraries.
18021 build_libtool_libs=$enable_shared
18022
18023 # Whether or not to build static libraries.
18024 build_old_libs=$enable_static
18025
18026 # What type of objects to build.
18027 pic_mode=$pic_mode
18028
18029 # Whether or not to optimize for fast installation.
18030 fast_install=$enable_fast_install
18031
18032 # Shell to use when invoking shell scripts.
18033 SHELL=$lt_SHELL
18034
18035 # An echo program that protects backslashes.
18036 ECHO=$lt_ECHO
18037
18038 # The PATH separator for the build system.
18039 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18040
18041 # The host system.
18042 host_alias=$host_alias
18043 host=$host
18044 host_os=$host_os
18045
18046 # The build system.
18047 build_alias=$build_alias
18048 build=$build
18049 build_os=$build_os
18050
18051 # A sed program that does not truncate output.
18052 SED=$lt_SED
18053
18054 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18055 Xsed="\$SED -e 1s/^X//"
18056
18057 # A grep program that handles long lines.
18058 GREP=$lt_GREP
18059
18060 # An ERE matcher.
18061 EGREP=$lt_EGREP
18062
18063 # A literal string matcher.
18064 FGREP=$lt_FGREP
18065
18066 # A BSD- or MS-compatible name lister.
18067 NM=$lt_NM
18068
18069 # Whether we need soft or hard links.
18070 LN_S=$lt_LN_S
18071
18072 # What is the maximum length of a command?
18073 max_cmd_len=$max_cmd_len
18074
18075 # Object file suffix (normally "o").
18076 objext=$ac_objext
18077
18078 # Executable file suffix (normally "").
18079 exeext=$exeext
18080
18081 # whether the shell understands "unset".
18082 lt_unset=$lt_unset
18083
18084 # turn spaces into newlines.
18085 SP2NL=$lt_lt_SP2NL
18086
18087 # turn newlines into spaces.
18088 NL2SP=$lt_lt_NL2SP
18089
18090 # convert \$build file names to \$host format.
18091 to_host_file_cmd=$lt_cv_to_host_file_cmd
18092
18093 # convert \$build files to toolchain format.
18094 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18095
18096 # An object symbol dumper.
18097 OBJDUMP=$lt_OBJDUMP
18098
18099 # Method to check whether dependent libraries are shared objects.
18100 deplibs_check_method=$lt_deplibs_check_method
18101
18102 # Command to use when deplibs_check_method = "file_magic".
18103 file_magic_cmd=$lt_file_magic_cmd
18104
18105 # How to find potential files when deplibs_check_method = "file_magic".
18106 file_magic_glob=$lt_file_magic_glob
18107
18108 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18109 want_nocaseglob=$lt_want_nocaseglob
18110
18111 # DLL creation program.
18112 DLLTOOL=$lt_DLLTOOL
18113
18114 # Command to associate shared and link libraries.
18115 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18116
18117 # The archiver.
18118 AR=$lt_AR
18119
18120 # Flags to create an archive.
18121 AR_FLAGS=$lt_AR_FLAGS
18122
18123 # How to feed a file listing to the archiver.
18124 archiver_list_spec=$lt_archiver_list_spec
18125
18126 # A symbol stripping program.
18127 STRIP=$lt_STRIP
18128
18129 # Commands used to install an old-style archive.
18130 RANLIB=$lt_RANLIB
18131 old_postinstall_cmds=$lt_old_postinstall_cmds
18132 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18133
18134 # Whether to use a lock for old archive extraction.
18135 lock_old_archive_extraction=$lock_old_archive_extraction
18136
18137 # A C compiler.
18138 LTCC=$lt_CC
18139
18140 # LTCC compiler flags.
18141 LTCFLAGS=$lt_CFLAGS
18142
18143 # Take the output of nm and produce a listing of raw symbols and C names.
18144 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18145
18146 # Transform the output of nm in a proper C declaration.
18147 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18148
18149 # Transform the output of nm in a C name address pair.
18150 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18151
18152 # Transform the output of nm in a C name address pair when lib prefix is needed.
18153 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18154
18155 # Specify filename containing input files for \$NM.
18156 nm_file_list_spec=$lt_nm_file_list_spec
18157
18158 # The root where to search for dependent libraries,and in which our libraries should be installed.
18159 lt_sysroot=$lt_sysroot
18160
18161 # The name of the directory that contains temporary libtool files.
18162 objdir=$objdir
18163
18164 # Used to examine libraries when file_magic_cmd begins with "file".
18165 MAGIC_CMD=$MAGIC_CMD
18166
18167 # Must we lock files when doing compilation?
18168 need_locks=$lt_need_locks
18169
18170 # Manifest tool.
18171 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18172
18173 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18174 DSYMUTIL=$lt_DSYMUTIL
18175
18176 # Tool to change global to local symbols on Mac OS X.
18177 NMEDIT=$lt_NMEDIT
18178
18179 # Tool to manipulate fat objects and archives on Mac OS X.
18180 LIPO=$lt_LIPO
18181
18182 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18183 OTOOL=$lt_OTOOL
18184
18185 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18186 OTOOL64=$lt_OTOOL64
18187
18188 # Old archive suffix (normally "a").
18189 libext=$libext
18190
18191 # Shared library suffix (normally ".so").
18192 shrext_cmds=$lt_shrext_cmds
18193
18194 # The commands to extract the exported symbol list from a shared archive.
18195 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18196
18197 # Variables whose values should be saved in libtool wrapper scripts and
18198 # restored at link time.
18199 variables_saved_for_relink=$lt_variables_saved_for_relink
18200
18201 # Do we need the "lib" prefix for modules?
18202 need_lib_prefix=$need_lib_prefix
18203
18204 # Do we need a version for libraries?
18205 need_version=$need_version
18206
18207 # Library versioning type.
18208 version_type=$version_type
18209
18210 # Shared library runtime path variable.
18211 runpath_var=$runpath_var
18212
18213 # Shared library path variable.
18214 shlibpath_var=$shlibpath_var
18215
18216 # Is shlibpath searched before the hard-coded library search path?
18217 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18218
18219 # Format of library name prefix.
18220 libname_spec=$lt_libname_spec
18221
18222 # List of archive names. First name is the real one, the rest are links.
18223 # The last name is the one that the linker finds with -lNAME
18224 library_names_spec=$lt_library_names_spec
18225
18226 # The coded name of the library, if different from the real name.
18227 soname_spec=$lt_soname_spec
18228
18229 # Permission mode override for installation of shared libraries.
18230 install_override_mode=$lt_install_override_mode
18231
18232 # Command to use after installation of a shared archive.
18233 postinstall_cmds=$lt_postinstall_cmds
18234
18235 # Command to use after uninstallation of a shared archive.
18236 postuninstall_cmds=$lt_postuninstall_cmds
18237
18238 # Commands used to finish a libtool library installation in a directory.
18239 finish_cmds=$lt_finish_cmds
18240
18241 # As "finish_cmds", except a single script fragment to be evaled but
18242 # not shown.
18243 finish_eval=$lt_finish_eval
18244
18245 # Whether we should hardcode library paths into libraries.
18246 hardcode_into_libs=$hardcode_into_libs
18247
18248 # Compile-time system search path for libraries.
18249 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18250
18251 # Run-time system search path for libraries.
18252 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18253
18254 # Whether dlopen is supported.
18255 dlopen_support=$enable_dlopen
18256
18257 # Whether dlopen of programs is supported.
18258 dlopen_self=$enable_dlopen_self
18259
18260 # Whether dlopen of statically linked programs is supported.
18261 dlopen_self_static=$enable_dlopen_self_static
18262
18263 # Commands to strip libraries.
18264 old_striplib=$lt_old_striplib
18265 striplib=$lt_striplib
18266
18267
18268 # The linker used to build libraries.
18269 LD=$lt_LD
18270
18271 # How to create reloadable object files.
18272 reload_flag=$lt_reload_flag
18273 reload_cmds=$lt_reload_cmds
18274
18275 # Commands used to build an old-style archive.
18276 old_archive_cmds=$lt_old_archive_cmds
18277
18278 # A language specific compiler.
18279 CC=$lt_compiler
18280
18281 # Is the compiler the GNU compiler?
18282 with_gcc=$GCC
18283
18284 # Compiler flag to turn off builtin functions.
18285 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18286
18287 # Additional compiler flags for building library objects.
18288 pic_flag=$lt_lt_prog_compiler_pic
18289
18290 # How to pass a linker flag through the compiler.
18291 wl=$lt_lt_prog_compiler_wl
18292
18293 # Compiler flag to prevent dynamic linking.
18294 link_static_flag=$lt_lt_prog_compiler_static
18295
18296 # Does compiler simultaneously support -c and -o options?
18297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18298
18299 # Whether or not to add -lc for building shared libraries.
18300 build_libtool_need_lc=$archive_cmds_need_lc
18301
18302 # Whether or not to disallow shared libs when runtime libs are static.
18303 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18304
18305 # Compiler flag to allow reflexive dlopens.
18306 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18307
18308 # Compiler flag to generate shared objects directly from archives.
18309 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18310
18311 # Whether the compiler copes with passing no objects directly.
18312 compiler_needs_object=$lt_compiler_needs_object
18313
18314 # Create an old-style archive from a shared archive.
18315 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18316
18317 # Create a temporary old-style archive to link instead of a shared archive.
18318 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18319
18320 # Commands used to build a shared archive.
18321 archive_cmds=$lt_archive_cmds
18322 archive_expsym_cmds=$lt_archive_expsym_cmds
18323
18324 # Commands used to build a loadable module if different from building
18325 # a shared archive.
18326 module_cmds=$lt_module_cmds
18327 module_expsym_cmds=$lt_module_expsym_cmds
18328
18329 # Whether we are building with GNU ld or not.
18330 with_gnu_ld=$lt_with_gnu_ld
18331
18332 # Flag that allows shared libraries with undefined symbols to be built.
18333 allow_undefined_flag=$lt_allow_undefined_flag
18334
18335 # Flag that enforces no undefined symbols.
18336 no_undefined_flag=$lt_no_undefined_flag
18337
18338 # Flag to hardcode \$libdir into a binary during linking.
18339 # This must work even if \$libdir does not exist
18340 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18341
18342 # Whether we need a single "-rpath" flag with a separated argument.
18343 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18344
18345 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18346 # DIR into the resulting binary.
18347 hardcode_direct=$hardcode_direct
18348
18349 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18350 # DIR into the resulting binary and the resulting library dependency is
18351 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18352 # library is relocated.
18353 hardcode_direct_absolute=$hardcode_direct_absolute
18354
18355 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18356 # into the resulting binary.
18357 hardcode_minus_L=$hardcode_minus_L
18358
18359 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18360 # into the resulting binary.
18361 hardcode_shlibpath_var=$hardcode_shlibpath_var
18362
18363 # Set to "yes" if building a shared library automatically hardcodes DIR
18364 # into the library and all subsequent libraries and executables linked
18365 # against it.
18366 hardcode_automatic=$hardcode_automatic
18367
18368 # Set to yes if linker adds runtime paths of dependent libraries
18369 # to runtime path list.
18370 inherit_rpath=$inherit_rpath
18371
18372 # Whether libtool must link a program against all its dependency libraries.
18373 link_all_deplibs=$link_all_deplibs
18374
18375 # Set to "yes" if exported symbols are required.
18376 always_export_symbols=$always_export_symbols
18377
18378 # The commands to list exported symbols.
18379 export_symbols_cmds=$lt_export_symbols_cmds
18380
18381 # Symbols that should not be listed in the preloaded symbols.
18382 exclude_expsyms=$lt_exclude_expsyms
18383
18384 # Symbols that must always be exported.
18385 include_expsyms=$lt_include_expsyms
18386
18387 # Commands necessary for linking programs (against libraries) with templates.
18388 prelink_cmds=$lt_prelink_cmds
18389
18390 # Commands necessary for finishing linking programs.
18391 postlink_cmds=$lt_postlink_cmds
18392
18393 # Specify filename containing input files.
18394 file_list_spec=$lt_file_list_spec
18395
18396 # How to hardcode a shared library path into an executable.
18397 hardcode_action=$hardcode_action
18398
18399 # The directories searched by this compiler when creating a shared library.
18400 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18401
18402 # Dependencies to place before and after the objects being linked to
18403 # create a shared library.
18404 predep_objects=$lt_predep_objects
18405 postdep_objects=$lt_postdep_objects
18406 predeps=$lt_predeps
18407 postdeps=$lt_postdeps
18408
18409 # The library search path used internally by the compiler when linking
18410 # a shared library.
18411 compiler_lib_search_path=$lt_compiler_lib_search_path
18412
18413 # ### END LIBTOOL CONFIG
18414
18415 _LT_EOF
18416
18417 case $host_os in
18418 aix3*)
18419 cat <<\_LT_EOF >> "$cfgfile"
18420 # AIX sometimes has problems with the GCC collect2 program. For some
18421 # reason, if we set the COLLECT_NAMES environment variable, the problems
18422 # vanish in a puff of smoke.
18423 if test "X${COLLECT_NAMES+set}" != Xset; then
18424 COLLECT_NAMES=
18425 export COLLECT_NAMES
18426 fi
18427 _LT_EOF
18428 ;;
18429 esac
18430
18431
18432 ltmain="$ac_aux_dir/ltmain.sh"
18433
18434
18435 # We use sed instead of cat because bash on DJGPP gets confused if
18436 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18437 # text mode, it properly converts lines to CR/LF. This bash problem
18438 # is reportedly fixed, but why not run on old versions too?
18439 sed '$q' "$ltmain" >> "$cfgfile" \
18440 || (rm -f "$cfgfile"; exit 1)
18441
18442 if test x"$xsi_shell" = xyes; then
18443 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18444 func_dirname ()\
18445 {\
18446 \ case ${1} in\
18447 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18448 \ * ) func_dirname_result="${3}" ;;\
18449 \ esac\
18450 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18451 && mv -f "$cfgfile.tmp" "$cfgfile" \
18452 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18453 test 0 -eq $? || _lt_function_replace_fail=:
18454
18455
18456 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18457 func_basename ()\
18458 {\
18459 \ func_basename_result="${1##*/}"\
18460 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18461 && mv -f "$cfgfile.tmp" "$cfgfile" \
18462 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18463 test 0 -eq $? || _lt_function_replace_fail=:
18464
18465
18466 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18467 func_dirname_and_basename ()\
18468 {\
18469 \ case ${1} in\
18470 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18471 \ * ) func_dirname_result="${3}" ;;\
18472 \ esac\
18473 \ func_basename_result="${1##*/}"\
18474 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18475 && mv -f "$cfgfile.tmp" "$cfgfile" \
18476 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18477 test 0 -eq $? || _lt_function_replace_fail=:
18478
18479
18480 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18481 func_stripname ()\
18482 {\
18483 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18484 \ # positional parameters, so assign one to ordinary parameter first.\
18485 \ func_stripname_result=${3}\
18486 \ func_stripname_result=${func_stripname_result#"${1}"}\
18487 \ func_stripname_result=${func_stripname_result%"${2}"}\
18488 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18489 && mv -f "$cfgfile.tmp" "$cfgfile" \
18490 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18491 test 0 -eq $? || _lt_function_replace_fail=:
18492
18493
18494 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18495 func_split_long_opt ()\
18496 {\
18497 \ func_split_long_opt_name=${1%%=*}\
18498 \ func_split_long_opt_arg=${1#*=}\
18499 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18500 && mv -f "$cfgfile.tmp" "$cfgfile" \
18501 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18502 test 0 -eq $? || _lt_function_replace_fail=:
18503
18504
18505 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18506 func_split_short_opt ()\
18507 {\
18508 \ func_split_short_opt_arg=${1#??}\
18509 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18510 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18511 && mv -f "$cfgfile.tmp" "$cfgfile" \
18512 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18513 test 0 -eq $? || _lt_function_replace_fail=:
18514
18515
18516 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18517 func_lo2o ()\
18518 {\
18519 \ case ${1} in\
18520 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18521 \ *) func_lo2o_result=${1} ;;\
18522 \ esac\
18523 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18524 && mv -f "$cfgfile.tmp" "$cfgfile" \
18525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18526 test 0 -eq $? || _lt_function_replace_fail=:
18527
18528
18529 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18530 func_xform ()\
18531 {\
18532 func_xform_result=${1%.*}.lo\
18533 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18534 && mv -f "$cfgfile.tmp" "$cfgfile" \
18535 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18536 test 0 -eq $? || _lt_function_replace_fail=:
18537
18538
18539 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18540 func_arith ()\
18541 {\
18542 func_arith_result=$(( $* ))\
18543 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18544 && mv -f "$cfgfile.tmp" "$cfgfile" \
18545 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18546 test 0 -eq $? || _lt_function_replace_fail=:
18547
18548
18549 sed -e '/^func_len ()$/,/^} # func_len /c\
18550 func_len ()\
18551 {\
18552 func_len_result=${#1}\
18553 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18554 && mv -f "$cfgfile.tmp" "$cfgfile" \
18555 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18556 test 0 -eq $? || _lt_function_replace_fail=:
18557
18558 fi
18559
18560 if test x"$lt_shell_append" = xyes; then
18561 sed -e '/^func_append ()$/,/^} # func_append /c\
18562 func_append ()\
18563 {\
18564 eval "${1}+=\\${2}"\
18565 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18566 && mv -f "$cfgfile.tmp" "$cfgfile" \
18567 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18568 test 0 -eq $? || _lt_function_replace_fail=:
18569
18570
18571 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18572 func_append_quoted ()\
18573 {\
18574 \ func_quote_for_eval "${2}"\
18575 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18576 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18577 && mv -f "$cfgfile.tmp" "$cfgfile" \
18578 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18579 test 0 -eq $? || _lt_function_replace_fail=:
18580
18581
18582 # Save a `func_append' function call where possible by direct use of '+='
18583 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18584 && mv -f "$cfgfile.tmp" "$cfgfile" \
18585 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18586 test 0 -eq $? || _lt_function_replace_fail=:
18587 else
18588 # Save a `func_append' function call even when '+=' is not available
18589 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18590 && mv -f "$cfgfile.tmp" "$cfgfile" \
18591 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18592 test 0 -eq $? || _lt_function_replace_fail=:
18593 fi
18594
18595 if test x"$_lt_function_replace_fail" = x":"; then
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18597 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18598 fi
18599
18600
18601 mv -f "$cfgfile" "$ofile" ||
18602 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18603 chmod +x "$ofile"
18604
18605
18606 cat <<_LT_EOF >> "$ofile"
18607
18608 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18609
18610 # The linker used to build libraries.
18611 LD=$lt_LD_CXX
18612
18613 # How to create reloadable object files.
18614 reload_flag=$lt_reload_flag_CXX
18615 reload_cmds=$lt_reload_cmds_CXX
18616
18617 # Commands used to build an old-style archive.
18618 old_archive_cmds=$lt_old_archive_cmds_CXX
18619
18620 # A language specific compiler.
18621 CC=$lt_compiler_CXX
18622
18623 # Is the compiler the GNU compiler?
18624 with_gcc=$GCC_CXX
18625
18626 # Compiler flag to turn off builtin functions.
18627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18628
18629 # Additional compiler flags for building library objects.
18630 pic_flag=$lt_lt_prog_compiler_pic_CXX
18631
18632 # How to pass a linker flag through the compiler.
18633 wl=$lt_lt_prog_compiler_wl_CXX
18634
18635 # Compiler flag to prevent dynamic linking.
18636 link_static_flag=$lt_lt_prog_compiler_static_CXX
18637
18638 # Does compiler simultaneously support -c and -o options?
18639 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18640
18641 # Whether or not to add -lc for building shared libraries.
18642 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18643
18644 # Whether or not to disallow shared libs when runtime libs are static.
18645 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18646
18647 # Compiler flag to allow reflexive dlopens.
18648 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18649
18650 # Compiler flag to generate shared objects directly from archives.
18651 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18652
18653 # Whether the compiler copes with passing no objects directly.
18654 compiler_needs_object=$lt_compiler_needs_object_CXX
18655
18656 # Create an old-style archive from a shared archive.
18657 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18658
18659 # Create a temporary old-style archive to link instead of a shared archive.
18660 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18661
18662 # Commands used to build a shared archive.
18663 archive_cmds=$lt_archive_cmds_CXX
18664 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18665
18666 # Commands used to build a loadable module if different from building
18667 # a shared archive.
18668 module_cmds=$lt_module_cmds_CXX
18669 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18670
18671 # Whether we are building with GNU ld or not.
18672 with_gnu_ld=$lt_with_gnu_ld_CXX
18673
18674 # Flag that allows shared libraries with undefined symbols to be built.
18675 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18676
18677 # Flag that enforces no undefined symbols.
18678 no_undefined_flag=$lt_no_undefined_flag_CXX
18679
18680 # Flag to hardcode \$libdir into a binary during linking.
18681 # This must work even if \$libdir does not exist
18682 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18683
18684 # Whether we need a single "-rpath" flag with a separated argument.
18685 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18686
18687 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18688 # DIR into the resulting binary.
18689 hardcode_direct=$hardcode_direct_CXX
18690
18691 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18692 # DIR into the resulting binary and the resulting library dependency is
18693 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18694 # library is relocated.
18695 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18696
18697 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18698 # into the resulting binary.
18699 hardcode_minus_L=$hardcode_minus_L_CXX
18700
18701 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18702 # into the resulting binary.
18703 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18704
18705 # Set to "yes" if building a shared library automatically hardcodes DIR
18706 # into the library and all subsequent libraries and executables linked
18707 # against it.
18708 hardcode_automatic=$hardcode_automatic_CXX
18709
18710 # Set to yes if linker adds runtime paths of dependent libraries
18711 # to runtime path list.
18712 inherit_rpath=$inherit_rpath_CXX
18713
18714 # Whether libtool must link a program against all its dependency libraries.
18715 link_all_deplibs=$link_all_deplibs_CXX
18716
18717 # Set to "yes" if exported symbols are required.
18718 always_export_symbols=$always_export_symbols_CXX
18719
18720 # The commands to list exported symbols.
18721 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18722
18723 # Symbols that should not be listed in the preloaded symbols.
18724 exclude_expsyms=$lt_exclude_expsyms_CXX
18725
18726 # Symbols that must always be exported.
18727 include_expsyms=$lt_include_expsyms_CXX
18728
18729 # Commands necessary for linking programs (against libraries) with templates.
18730 prelink_cmds=$lt_prelink_cmds_CXX
18731
18732 # Commands necessary for finishing linking programs.
18733 postlink_cmds=$lt_postlink_cmds_CXX
18734
18735 # Specify filename containing input files.
18736 file_list_spec=$lt_file_list_spec_CXX
18737
18738 # How to hardcode a shared library path into an executable.
18739 hardcode_action=$hardcode_action_CXX
18740
18741 # The directories searched by this compiler when creating a shared library.
18742 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18743
18744 # Dependencies to place before and after the objects being linked to
18745 # create a shared library.
18746 predep_objects=$lt_predep_objects_CXX
18747 postdep_objects=$lt_postdep_objects_CXX
18748 predeps=$lt_predeps_CXX
18749 postdeps=$lt_postdeps_CXX
18750
18751 # The library search path used internally by the compiler when linking
18752 # a shared library.
18753 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18754
18755 # ### END LIBTOOL TAG CONFIG: CXX
18756 _LT_EOF
18757
18758 ;;
18759
18760 esac
18761 done # for ac_tag
18762
18763
18764 as_fn_exit 0
18765 _ACEOF
18766 ac_clean_files=$ac_clean_files_save
18767
18768 test $ac_write_fail = 0 ||
18769 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18770
18771
18772 # configure is writing to config.log, and then calls config.status.
18773 # config.status does its own redirection, appending to config.log.
18774 # Unfortunately, on DOS this fails, as config.log is still kept open
18775 # by configure, so config.status won't be able to write to it; its
18776 # output is simply discarded. So we exec the FD to /dev/null,
18777 # effectively closing config.log, so it can be properly (re)opened and
18778 # appended to by config.status. When coming back to configure, we
18779 # need to make the FD available again.
18780 if test "$no_create" != yes; then
18781 ac_cs_success=:
18782 ac_config_status_args=
18783 test "$silent" = yes &&
18784 ac_config_status_args="$ac_config_status_args --quiet"
18785 exec 5>/dev/null
18786 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18787 exec 5>>config.log
18788 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18789 # would make configure fail if this is the last instruction.
18790 $ac_cs_success || as_fn_exit 1
18791 fi
18792 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18794 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18795 fi
18796
18797
18798 echo \
18799 "----------------------------------------------------------------------
18800
18801 ${PACKAGE_NAME} Version ${PACKAGE_VERSION} configuration:
18802
18803 Prefix ${prefix}
18804 Preprocessor ${CPP} ${CPPFLAGS}
18805 C Compiler ${CC} ${CFLAGS}
18806 C++ Compiler ${CXX} ${CXXFLAGS}
18807
18808 Package features:
18809 Enable shared libs ${enable_shared}
18810 Enable static libs ${enable_static}
18811
18812 -----------------------------------------------------------------------"