Debian Codegraph @

debian/external_deps/fetk/gamer/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for gamer 1.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_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 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238
239 (
240 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
241 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
242 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
243 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
244 PATH=/empty FPATH=/empty; export PATH FPATH
245 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
246 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" )) || { (exit 1); exit 1; }
247 ") 2> /dev/null; then
248 :
249 else
250 as_candidate_shells=
251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
252 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
253 do
254 IFS=$as_save_IFS
255 test -z "$as_dir" && as_dir=.
256 case $as_dir in
257 /*)
258 for as_base in sh bash ksh sh5; do
259 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
260 done;;
261 esac
262 done
263 IFS=$as_save_IFS
264
265
266 for as_shell in $as_candidate_shells $SHELL; do
267 # Try only shells that exist, to save several forks.
268 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
269 { ("$as_shell") 2> /dev/null <<\_ASEOF
270 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
271 emulate sh
272 NULLCMD=:
273 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
274 # is contrary to our usage. Disable this feature.
275 alias -g '${1+"$@"}'='"$@"'
276 setopt NO_GLOB_SUBST
277 else
278 case `(set -o) 2>/dev/null` in
279 *posix*) set -o posix ;;
280 esac
281
282 fi
283
284
285 :
286 _ASEOF
287 }; then
288 CONFIG_SHELL=$as_shell
289 as_have_required=yes
290 if { "$as_shell" 2> /dev/null <<\_ASEOF
291 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
292 emulate sh
293 NULLCMD=:
294 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
295 # is contrary to our usage. Disable this feature.
296 alias -g '${1+"$@"}'='"$@"'
297 setopt NO_GLOB_SUBST
298 else
299 case `(set -o) 2>/dev/null` in
300 *posix*) set -o posix ;;
301 esac
302
303 fi
304
305
306 :
307 (as_func_return () {
308 (exit $1)
309 }
310 as_func_success () {
311 as_func_return 0
312 }
313 as_func_failure () {
314 as_func_return 1
315 }
316 as_func_ret_success () {
317 return 0
318 }
319 as_func_ret_failure () {
320 return 1
321 }
322
323 exitcode=0
324 if as_func_success; then
325 :
326 else
327 exitcode=1
328 echo as_func_success failed.
329 fi
330
331 if as_func_failure; then
332 exitcode=1
333 echo as_func_failure succeeded.
334 fi
335
336 if as_func_ret_success; then
337 :
338 else
339 exitcode=1
340 echo as_func_ret_success failed.
341 fi
342
343 if as_func_ret_failure; then
344 exitcode=1
345 echo as_func_ret_failure succeeded.
346 fi
347
348 if ( set x; as_func_ret_success y && test x = "$1" ); then
349 :
350 else
351 exitcode=1
352 echo positional parameters were not saved.
353 fi
354
355 test $exitcode = 0) || { (exit 1); exit 1; }
356
357 (
358 as_lineno_1=$LINENO
359 as_lineno_2=$LINENO
360 test "x$as_lineno_1" != "x$as_lineno_2" &&
361 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
362
363 (
364 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
365 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
366 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
367 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
368 PATH=/empty FPATH=/empty; export PATH FPATH
369 test "X`printf %s $ECHO`" = "X$ECHO" \
370 || test "X`print -r -- $ECHO`" = "X$ECHO" )) || { (exit 1); exit 1; }
371
372 _ASEOF
373 }; then
374 break
375 fi
376
377 fi
378
379 done
380
381 if test "x$CONFIG_SHELL" != x; then
382 for as_var in BASH_ENV ENV
383 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
384 done
385 export CONFIG_SHELL
386 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
387 fi
388
389
390 if test $as_have_required = no; then
391 echo This script requires a shell more modern than all the
392 echo shells that I found on your system. Please install a
393 echo modern shell, or manually run the script under such a
394 echo shell if you do have one.
395 { (exit 1); exit 1; }
396 fi
397
398
399 fi
400
401 fi
402
403
404
405 (eval "as_func_return () {
406 (exit \$1)
407 }
408 as_func_success () {
409 as_func_return 0
410 }
411 as_func_failure () {
412 as_func_return 1
413 }
414 as_func_ret_success () {
415 return 0
416 }
417 as_func_ret_failure () {
418 return 1
419 }
420
421 exitcode=0
422 if as_func_success; then
423 :
424 else
425 exitcode=1
426 echo as_func_success failed.
427 fi
428
429 if as_func_failure; then
430 exitcode=1
431 echo as_func_failure succeeded.
432 fi
433
434 if as_func_ret_success; then
435 :
436 else
437 exitcode=1
438 echo as_func_ret_success failed.
439 fi
440
441 if as_func_ret_failure; then
442 exitcode=1
443 echo as_func_ret_failure succeeded.
444 fi
445
446 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
447 :
448 else
449 exitcode=1
450 echo positional parameters were not saved.
451 fi
452
453 test \$exitcode = 0") || {
454 echo No shell found that supports shell functions.
455 echo Please tell [email protected] about your system,
456 echo including any error possibly output before this message.
457 echo This can help us improve future autoconf versions.
458 echo Configuration will now proceed without shell functions.
459 }
460
461
462
463 as_lineno_1=$LINENO
464 as_lineno_2=$LINENO
465 test "x$as_lineno_1" != "x$as_lineno_2" &&
466 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
467
468 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
469 # uniformly replaced by the line number. The first 'sed' inserts a
470 # line-number line after each line using $LINENO; the second 'sed'
471 # does the real work. The second script uses 'N' to pair each
472 # line-number line with the line containing $LINENO, and appends
473 # trailing '-' during substitution so that $LINENO is not a special
474 # case at line end.
475 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
476 # scripts with optimization help from Paolo Bonzini. Blame Lee
477 # E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
495 { (exit 1); exit 1; }; }
496
497 # Don't try to exec as it changes $[0], causing all sort of problems
498 # (the dirname of $[0] is not the place where we might find the
499 # original and so on. Autoconf is especially sensitive to this).
500 . "./$as_me.lineno"
501 # Exit status is that of the last command.
502 exit
503 }
504
505
506 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
507 as_dirname=dirname
508 else
509 as_dirname=false
510 fi
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in
514 -n*)
515 case `echo 'x\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) ECHO_C='\c';;
518 esac;;
519 *)
520 ECHO_N='-n';;
521 esac
522 if expr a : '\(a\)' >/dev/null 2>&1 &&
523 test "X`expr 00001 : '.*\(...\)'`" = X001; then
524 as_expr=expr
525 else
526 as_expr=false
527 fi
528
529 rm -f conf$$ conf$$.exe conf$$.file
530 if test -d conf$$.dir; then
531 rm -f conf$$.dir/conf$$.file
532 else
533 rm -f conf$$.dir
534 mkdir conf$$.dir 2>/dev/null
535 fi
536 if (echo >conf$$.file) 2>/dev/null; then
537 if ln -s conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s='ln -s'
539 # ... but there are two gotchas:
540 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
541 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
542 # In both cases, we have to default to `cp -p'.
543 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
544 as_ln_s='cp -p'
545 elif ln conf$$.file conf$$ 2>/dev/null; then
546 as_ln_s=ln
547 else
548 as_ln_s='cp -p'
549 fi
550 else
551 as_ln_s='cp -p'
552 fi
553 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
554 rmdir conf$$.dir 2>/dev/null
555
556 if mkdir -p . 2>/dev/null; then
557 as_mkdir_p=:
558 else
559 test -d ./-p && rmdir ./-p
560 as_mkdir_p=false
561 fi
562
563 if test -x / >/dev/null 2>&1; then
564 as_test_x='test -x'
565 else
566 if ls -dL / >/dev/null 2>&1; then
567 as_ls_L_option=L
568 else
569 as_ls_L_option=
570 fi
571 as_test_x='
572 eval sh -c '\''
573 if test -d "$1"; then
574 test -d "$1/.";
575 else
576 case $1 in
577 -*)set "./$1";;
578 esac;
579 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
580 ???[sx]*):;;*)false;;esac;fi
581 '\'' sh
582 '
583 fi
584 as_executable_p=$as_test_x
585
586 # Sed expression to map a string onto a valid CPP name.
587 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
588
589 # Sed expression to map a string onto a valid variable name.
590 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
591
592
593 SHELL=${CONFIG_SHELL-/bin/sh}
594
595
596 exec 7<&0 </dev/null 6>&1
597
598 # Name of the host.
599 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
600 # so uname gets run too.
601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603 #
604 # Initializations.
605 #
606 ac_default_prefix=/usr/local
607 ac_clean_files=
608 ac_config_libobj_dir=.
609 LIBOBJS=
610 cross_compiling=no
611 subdirs=
612 MFLAGS=
613 MAKEFLAGS=
614 SHELL=${CONFIG_SHELL-/bin/sh}
615
616 # Identity of this package.
617 PACKAGE_NAME='gamer'
618 PACKAGE_TARNAME='gamer'
619 PACKAGE_VERSION='1.0'
620 PACKAGE_STRING='gamer 1.0'
621 PACKAGE_BUGREPORT='[email protected]'
622
623 ac_unique_file="src/aaa_inc/gamer/gamer.h"
624 ac_default_prefix=${HOME}
625 # Factoring default headers for most tests.
626 ac_includes_default="\
627 #include <stdio.h>
628 #ifdef HAVE_SYS_TYPES_H
629 # include <sys/types.h>
630 #endif
631 #ifdef HAVE_SYS_STAT_H
632 # include <sys/stat.h>
633 #endif
634 #ifdef STDC_HEADERS
635 # include <stdlib.h>
636 # include <stddef.h>
637 #else
638 # ifdef HAVE_STDLIB_H
639 # include <stdlib.h>
640 # endif
641 #endif
642 #ifdef HAVE_STRING_H
643 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
644 # include <memory.h>
645 # endif
646 # include <string.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_INTTYPES_H
652 # include <inttypes.h>
653 #endif
654 #ifdef HAVE_STDINT_H
655 # include <stdint.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_subst_vars='am__EXEEXT_FALSE
662 am__EXEEXT_TRUE
663 LTLIBOBJS
664 LIBOBJS
665 MAKE_DOC
666 MAKE_DOC_FALSE
667 MAKE_DOC_TRUE
668 dot_path
669 doxygen_path
670 maloc_inc
671 maloc_lib
672 zfence_lib
673 zfence
674 profile_lib
675 profile
676 pedantic_ansi
677 wall_pedantic_ansi
678 wall_pedantic
679 wall
680 mpi_lib
681 rl_lib
682 fetk_cpu_vendor_os
683 thread_lib
684 socket_lib
685 nsl_lib
686 liberty_lib
687 math_lib
688 CXXCPP
689 OTOOL64
690 OTOOL
691 LIPO
692 NMEDIT
693 DSYMUTIL
694 MANIFEST_TOOL
695 RANLIB
696 ac_ct_AR
697 AR
698 DLLTOOL
699 OBJDUMP
700 LN_S
701 NM
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 EGREP
707 GREP
708 SED
709 LIBTOOL
710 am__fastdepCXX_FALSE
711 am__fastdepCXX_TRUE
712 CXXDEPMODE
713 ac_ct_CXX
714 CXXFLAGS
715 CXX
716 CPP
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 AMDEPBACKSLASH
721 AMDEP_FALSE
722 AMDEP_TRUE
723 am__quote
724 am__include
725 DEPDIR
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 MAINT
734 MAINTAINER_MODE_FALSE
735 MAINTAINER_MODE_TRUE
736 FETK_VERSION
737 am__untar
738 am__tar
739 AMTAR
740 am__leading_dot
741 SET_MAKE
742 AWK
743 mkdir_p
744 MKDIR_P
745 INSTALL_STRIP_PROGRAM
746 STRIP
747 install_sh
748 MAKEINFO
749 AUTOHEADER
750 AUTOMAKE
751 AUTOCONF
752 ACLOCAL
753 VERSION
754 PACKAGE
755 CYGPATH_W
756 am__isrc
757 INSTALL_DATA
758 INSTALL_SCRIPT
759 INSTALL_PROGRAM
760 target_os
761 target_vendor
762 target_cpu
763 target
764 host_os
765 host_vendor
766 host_cpu
767 host
768 build_os
769 build_vendor
770 build_cpu
771 build
772 target_alias
773 host_alias
774 build_alias
775 LIBS
776 ECHO_T
777 ECHO_N
778 ECHO_C
779 DEFS
780 mandir
781 localedir
782 libdir
783 psdir
784 pdfdir
785 dvidir
786 htmldir
787 infodir
788 docdir
789 oldincludedir
790 includedir
791 localstatedir
792 sharedstatedir
793 sysconfdir
794 datadir
795 datarootdir
796 libexecdir
797 sbindir
798 bindir
799 program_transform_name
800 prefix
801 exec_prefix
802 PACKAGE_BUGREPORT
803 PACKAGE_STRING
804 PACKAGE_VERSION
805 PACKAGE_TARNAME
806 PACKAGE_NAME
807 PATH_SEPARATOR
808 SHELL'
809 ac_subst_files=''
810 ac_user_opts='
811 enable_option_checking
812 enable_maintainer_mode
813 enable_dependency_tracking
814 enable_static
815 enable_shared
816 with_pic
817 enable_fast_install
818 with_gnu_ld
819 with_sysroot
820 enable_libtool_lock
821 enable_triplet
822 enable_vdebug
823 enable_pansi
824 enable_gprof
825 enable_efence
826 with_doxygen
827 with_dot
828 '
829 ac_precious_vars='build_alias
830 host_alias
831 target_alias
832 CC
833 CFLAGS
834 LDFLAGS
835 LIBS
836 CPPFLAGS
837 CPP
838 CXX
839 CXXFLAGS
840 CCC
841 CXXCPP'
842
843
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
865
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
891
892 ac_prev=
893 ac_dashdash=
894 for ac_option
895 do
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
901 fi
902
903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
907
908 # Accept the important Cygnus configure options, so we can diagnose typos.
909
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
918
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
933
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
938
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
951 { (exit 1); exit 1; }; }
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=no ;;
962
963 -docdir | --docdir | --docdi | --doc | --do)
964 ac_prev=docdir ;;
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 docdir=$ac_optarg ;;
967
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969 ac_prev=dvidir ;;
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 dvidir=$ac_optarg ;;
972
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
978 { (exit 1); exit 1; }; }
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
989
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
998
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1002
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1009
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1014
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1020
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1027
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1032
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1037
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1044
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1049
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1056
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1061
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1065
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1069
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1073
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1082
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1087
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1094
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1101
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1118
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1123
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1128
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1132
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1138
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1149
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1154
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1159
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1166
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1171
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1174
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1177
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1183 { (exit 1); exit 1; }; }
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1194
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1211
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1229
1230 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232 { (exit 1); exit 1; }; }
1233 ;;
1234
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1239 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240 { (exit 1); exit 1; }; }
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1243
1244 *)
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 ;;
1251
1252 esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1258 { (exit 1); exit 1; }; }
1259 fi
1260
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1265 { (exit 1); exit 1; }; } ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 esac
1268 fi
1269
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1275 do
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1278 case $ac_val in
1279 */ )
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1282 esac
1283 # Be sure to have absolute directory names.
1284 case $ac_val in
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 esac
1288 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289 { (exit 1); exit 1; }; }
1290 done
1291
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1298
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304 If a cross compiler is detected then cross compile mode will be used." >&2
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1307 fi
1308 fi
1309
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313 test "$silent" = yes && exec 6>/dev/null
1314
1315
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1320 { (exit 1); exit 1; }; }
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1323 { (exit 1); exit 1; }; }
1324
1325
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\).*/{
1349 s//\1/
1350 q
1351 }
1352 s/.*/./; q'`
1353 srcdir=$ac_confdir
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 srcdir=..
1356 fi
1357 else
1358 ac_srcdir_defaulted=no
1359 fi
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363 { (exit 1); exit 1; }; }
1364 fi
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1368 { (exit 1); exit 1; }; }
1369 pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 srcdir=.
1373 fi
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394 \`configure' configures gamer 1.0 to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/gamer]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447 _ACEOF
1448
1449 cat <<\_ACEOF
1450
1451 Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455
1456 System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 --target=TARGET configure for building compilers for TARGET [HOST]
1460 _ACEOF
1461 fi
1462
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of gamer 1.0:";;
1466 esac
1467 cat <<\_ACEOF
1468
1469 Optional Features:
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --enable-maintainer-mode enable make rules and dependencies not useful
1474 (and sometimes confusing) to the casual installer
1475 --disable-dependency-tracking speeds up one-time build
1476 --enable-dependency-tracking do not reject slow dependency extractors
1477 --enable-static[=PKGS] build static libraries [default=no]
1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-fast-install[=PKGS]
1480 optimize for fast installation [default=yes]
1481 --disable-libtool-lock avoid locking (might break parallel builds)
1482 --disable-triplet disable CPU-VENDOR-OS install triplet [default=no]
1483 --enable-vdebug enable debug compilation default=no
1484 --enable-pansi enable pedantic ANSI compilation
1485 --enable-gprof enable gprof profiling default=no
1486 --enable-efence enable ElectricFence malloc lib default=no
1487
1488 Optional Packages:
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-pic try to use only PIC/non-PIC objects [default=use
1492 both]
1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1494 --with-sysroot=DIR Search for dependent libraries within DIR
1495 (or the compiler's sysroot if not specified).
1496 --with-doxygen Doxygen path
1497 --with-dot Dot path
1498
1499 Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
1507 CPP C preprocessor
1508 CXX C++ compiler command
1509 CXXFLAGS C++ compiler flags
1510 CXXCPP C++ preprocessor
1511
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 Report bugs to <[email protected]>.
1516 _ACEOF
1517 ac_status=$?
1518 fi
1519
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" ||
1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525 continue
1526 ac_builddir=.
1527
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *)
1531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1543
1544 case $srcdir in
1545 .) # We are building in place.
1546 ac_srcdir=.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1553 *) # Relative name.
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1568 else
1569 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 fi || ac_status=$?
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1572 done
1573 fi
1574
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577 cat <<\_ACEOF
1578 gamer configure 1.0
1579 generated by GNU Autoconf 2.63
1580
1581 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1582 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586 exit
1587 fi
1588 cat >config.log <<_ACEOF
1589 This file contains any messages produced by compilers while
1590 running configure, to aid debugging if configure makes a mistake.
1591
1592 It was created by gamer $as_me 1.0, which was
1593 generated by GNU Autoconf 2.63. Invocation command line was
1594
1595 $ $0 $@
1596
1597 _ACEOF
1598 exec 5>>config.log
1599 {
1600 cat <<_ASUNAME
1601 ## --------- ##
1602 ## Platform. ##
1603 ## --------- ##
1604
1605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1606 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1607 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1608 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1609 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1610
1611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1612 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1613
1614 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1615 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1617 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1618 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1619 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1620 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1621
1622 _ASUNAME
1623
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 $as_echo "PATH: $as_dir"
1630 done
1631 IFS=$as_save_IFS
1632
1633 } >&5
1634
1635 cat >&5 <<_ACEOF
1636
1637
1638 ## ----------- ##
1639 ## Core tests. ##
1640 ## ----------- ##
1641
1642 _ACEOF
1643
1644
1645 # Keep a trace of the command line.
1646 # Strip out --no-create and --no-recursion so they do not pile up.
1647 # Strip out --silent because we don't want to record it for future runs.
1648 # Also quote any args containing shell meta-characters.
1649 # Make two passes to allow for proper duplicate-argument suppression.
1650 ac_configure_args=
1651 ac_configure_args0=
1652 ac_configure_args1=
1653 ac_must_keep_next=false
1654 for ac_pass in 1 2
1655 do
1656 for ac_arg
1657 do
1658 case $ac_arg in
1659 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661 | -silent | --silent | --silen | --sile | --sil)
1662 continue ;;
1663 *\'*)
1664 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1665 esac
1666 case $ac_pass in
1667 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1668 2)
1669 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1670 if test $ac_must_keep_next = true; then
1671 ac_must_keep_next=false # Got value, back to normal.
1672 else
1673 case $ac_arg in
1674 *=* | --config-cache | -C | -disable-* | --disable-* \
1675 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1676 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1677 | -with-* | --with-* | -without-* | --without-* | --x)
1678 case "$ac_configure_args0 " in
1679 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1680 esac
1681 ;;
1682 -* ) ac_must_keep_next=true ;;
1683 esac
1684 fi
1685 ac_configure_args="$ac_configure_args '$ac_arg'"
1686 ;;
1687 esac
1688 done
1689 done
1690 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1691 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1692
1693 # When interrupted or exit'd, cleanup temporary files, and complete
1694 # config.log. We remove comments because anyway the quotes in there
1695 # would cause problems or look ugly.
1696 # WARNING: Use '\'' to represent an apostrophe within the trap.
1697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1698 trap 'exit_status=$?
1699 # Save into config.log some information that might help in debugging.
1700 {
1701 echo
1702
1703 cat <<\_ASBOX
1704 ## ---------------- ##
1705 ## Cache variables. ##
1706 ## ---------------- ##
1707 _ASBOX
1708 echo
1709 # The following way of writing the cache mishandles newlines in values,
1710 (
1711 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1712 eval ac_val=\$$ac_var
1713 case $ac_val in #(
1714 *${as_nl}*)
1715 case $ac_var in #(
1716 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1717 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1718 esac
1719 case $ac_var in #(
1720 _ | IFS | as_nl) ;; #(
1721 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1722 *) $as_unset $ac_var ;;
1723 esac ;;
1724 esac
1725 done
1726 (set) 2>&1 |
1727 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1728 *${as_nl}ac_space=\ *)
1729 sed -n \
1730 "s/'\''/'\''\\\\'\'''\''/g;
1731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732 ;; #(
1733 *)
1734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1735 ;;
1736 esac |
1737 sort
1738 )
1739 echo
1740
1741 cat <<\_ASBOX
1742 ## ----------------- ##
1743 ## Output variables. ##
1744 ## ----------------- ##
1745 _ASBOX
1746 echo
1747 for ac_var in $ac_subst_vars
1748 do
1749 eval ac_val=\$$ac_var
1750 case $ac_val in
1751 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 esac
1753 $as_echo "$ac_var='\''$ac_val'\''"
1754 done | sort
1755 echo
1756
1757 if test -n "$ac_subst_files"; then
1758 cat <<\_ASBOX
1759 ## ------------------- ##
1760 ## File substitutions. ##
1761 ## ------------------- ##
1762 _ASBOX
1763 echo
1764 for ac_var in $ac_subst_files
1765 do
1766 eval ac_val=\$$ac_var
1767 case $ac_val in
1768 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 esac
1770 $as_echo "$ac_var='\''$ac_val'\''"
1771 done | sort
1772 echo
1773 fi
1774
1775 if test -s confdefs.h; then
1776 cat <<\_ASBOX
1777 ## ----------- ##
1778 ## confdefs.h. ##
1779 ## ----------- ##
1780 _ASBOX
1781 echo
1782 cat confdefs.h
1783 echo
1784 fi
1785 test "$ac_signal" != 0 &&
1786 $as_echo "$as_me: caught signal $ac_signal"
1787 $as_echo "$as_me: exit $exit_status"
1788 } >&5
1789 rm -f core *.core core.conftest.* &&
1790 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1791 exit $exit_status
1792 ' 0
1793 for ac_signal in 1 2 13 15; do
1794 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795 done
1796 ac_signal=0
1797
1798 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1799 rm -f -r conftest* confdefs.h
1800
1801 # Predefined preprocessor variables.
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_NAME "$PACKAGE_NAME"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810 _ACEOF
1811
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1815 _ACEOF
1816
1817
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_STRING "$PACKAGE_STRING"
1820 _ACEOF
1821
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825 _ACEOF
1826
1827
1828 # Let the site file select an alternate cache file if it wants to.
1829 # Prefer an explicitly selected file to automatically selected ones.
1830 ac_site_file1=NONE
1831 ac_site_file2=NONE
1832 if test -n "$CONFIG_SITE"; then
1833 ac_site_file1=$CONFIG_SITE
1834 elif test "x$prefix" != xNONE; then
1835 ac_site_file1=$prefix/share/config.site
1836 ac_site_file2=$prefix/etc/config.site
1837 else
1838 ac_site_file1=$ac_default_prefix/share/config.site
1839 ac_site_file2=$ac_default_prefix/etc/config.site
1840 fi
1841 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1842 do
1843 test "x$ac_site_file" = xNONE && continue
1844 if test -r "$ac_site_file"; then
1845 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1846 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1847 sed 's/^/| /' "$ac_site_file" >&5
1848 . "$ac_site_file"
1849 fi
1850 done
1851
1852 if test -r "$cache_file"; then
1853 # Some versions of bash will fail to source /dev/null (special
1854 # files actually), so we avoid doing that.
1855 if test -f "$cache_file"; then
1856 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1857 $as_echo "$as_me: loading cache $cache_file" >&6;}
1858 case $cache_file in
1859 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1860 *) . "./$cache_file";;
1861 esac
1862 fi
1863 else
1864 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1865 $as_echo "$as_me: creating cache $cache_file" >&6;}
1866 >$cache_file
1867 fi
1868
1869 # Check that the precious variables saved in the cache have kept the same
1870 # value.
1871 ac_cache_corrupted=false
1872 for ac_var in $ac_precious_vars; do
1873 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874 eval ac_new_set=\$ac_env_${ac_var}_set
1875 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1876 eval ac_new_val=\$ac_env_${ac_var}_value
1877 case $ac_old_set,$ac_new_set in
1878 set,)
1879 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1880 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1882 ,set)
1883 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1884 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1886 ,);;
1887 *)
1888 if test "x$ac_old_val" != "x$ac_new_val"; then
1889 # differences in whitespace do not lead to failure.
1890 ac_old_val_w=`echo x $ac_old_val`
1891 ac_new_val_w=`echo x $ac_new_val`
1892 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1893 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895 ac_cache_corrupted=:
1896 else
1897 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1898 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1899 eval $ac_var=\$ac_old_val
1900 fi
1901 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1902 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1903 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1904 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1905 fi;;
1906 esac
1907 # Pass precious variables to config.status.
1908 if test "$ac_new_set" = set; then
1909 case $ac_new_val in
1910 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1911 *) ac_arg=$ac_var=$ac_new_val ;;
1912 esac
1913 case " $ac_configure_args " in
1914 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1915 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916 esac
1917 fi
1918 done
1919 if $ac_cache_corrupted; then
1920 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1922 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1923 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1924 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1925 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1926 { (exit 1); exit 1; }; }
1927 fi
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953 ac_ext=c
1954 ac_cpp='$CPP $CPPFLAGS'
1955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958
1959
1960
1961 ac_config_headers="$ac_config_headers src/aaa_inc/gamercf.h"
1962
1963 ac_aux_dir=
1964 for ac_dir in config "$srcdir"/config; do
1965 if test -f "$ac_dir/install-sh"; then
1966 ac_aux_dir=$ac_dir
1967 ac_install_sh="$ac_aux_dir/install-sh -c"
1968 break
1969 elif test -f "$ac_dir/install.sh"; then
1970 ac_aux_dir=$ac_dir
1971 ac_install_sh="$ac_aux_dir/install.sh -c"
1972 break
1973 elif test -f "$ac_dir/shtool"; then
1974 ac_aux_dir=$ac_dir
1975 ac_install_sh="$ac_aux_dir/shtool install -c"
1976 break
1977 fi
1978 done
1979 if test -z "$ac_aux_dir"; then
1980 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1981 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1982 { (exit 1); exit 1; }; }
1983 fi
1984
1985 # These three variables are undocumented and unsupported,
1986 # and are intended to be withdrawn in a future Autoconf release.
1987 # They can cause serious problems if a builder's source tree is in a directory
1988 # whose full name contains unusual characters.
1989 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1990 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1991 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1992
1993
1994
1995 # Make sure we can run config.sub.
1996 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1997 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1998 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1999 { (exit 1); exit 1; }; }
2000
2001 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2002 $as_echo_n "checking build system type... " >&6; }
2003 if test "${ac_cv_build+set}" = set; then
2004 $as_echo_n "(cached) " >&6
2005 else
2006 ac_build_alias=$build_alias
2007 test "x$ac_build_alias" = x &&
2008 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2009 test "x$ac_build_alias" = x &&
2010 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2011 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2012 { (exit 1); exit 1; }; }
2013 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2014 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2015 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2016 { (exit 1); exit 1; }; }
2017
2018 fi
2019 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2020 $as_echo "$ac_cv_build" >&6; }
2021 case $ac_cv_build in
2022 *-*-*) ;;
2023 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2024 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2025 { (exit 1); exit 1; }; };;
2026 esac
2027 build=$ac_cv_build
2028 ac_save_IFS=$IFS; IFS='-'
2029 set x $ac_cv_build
2030 shift
2031 build_cpu=$1
2032 build_vendor=$2
2033 shift; shift
2034 # Remember, the first character of IFS is used to create $*,
2035 # except with old shells:
2036 build_os=$*
2037 IFS=$ac_save_IFS
2038 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2039
2040
2041 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2042 $as_echo_n "checking host system type... " >&6; }
2043 if test "${ac_cv_host+set}" = set; then
2044 $as_echo_n "(cached) " >&6
2045 else
2046 if test "x$host_alias" = x; then
2047 ac_cv_host=$ac_cv_build
2048 else
2049 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2050 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2051 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2052 { (exit 1); exit 1; }; }
2053 fi
2054
2055 fi
2056 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2057 $as_echo "$ac_cv_host" >&6; }
2058 case $ac_cv_host in
2059 *-*-*) ;;
2060 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2061 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2062 { (exit 1); exit 1; }; };;
2063 esac
2064 host=$ac_cv_host
2065 ac_save_IFS=$IFS; IFS='-'
2066 set x $ac_cv_host
2067 shift
2068 host_cpu=$1
2069 host_vendor=$2
2070 shift; shift
2071 # Remember, the first character of IFS is used to create $*,
2072 # except with old shells:
2073 host_os=$*
2074 IFS=$ac_save_IFS
2075 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2076
2077
2078 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2079 $as_echo_n "checking target system type... " >&6; }
2080 if test "${ac_cv_target+set}" = set; then
2081 $as_echo_n "(cached) " >&6
2082 else
2083 if test "x$target_alias" = x; then
2084 ac_cv_target=$ac_cv_host
2085 else
2086 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2087 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2088 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2089 { (exit 1); exit 1; }; }
2090 fi
2091
2092 fi
2093 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2094 $as_echo "$ac_cv_target" >&6; }
2095 case $ac_cv_target in
2096 *-*-*) ;;
2097 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2098 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2099 { (exit 1); exit 1; }; };;
2100 esac
2101 target=$ac_cv_target
2102 ac_save_IFS=$IFS; IFS='-'
2103 set x $ac_cv_target
2104 shift
2105 target_cpu=$1
2106 target_vendor=$2
2107 shift; shift
2108 # Remember, the first character of IFS is used to create $*,
2109 # except with old shells:
2110 target_os=$*
2111 IFS=$ac_save_IFS
2112 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2113
2114
2115 # The aliases save the names the user supplied, while $host etc.
2116 # will get canonicalized.
2117 test -n "$target_alias" &&
2118 test "$program_prefix$program_suffix$program_transform_name" = \
2119 NONENONEs,x,x, &&
2120 program_prefix=${target_alias}-
2121
2122 am__api_version='1.11'
2123
2124 # Find a good install program. We prefer a C program (faster),
2125 # so one script is as good as another. But avoid the broken or
2126 # incompatible versions:
2127 # SysV /etc/install, /usr/sbin/install
2128 # SunOS /usr/etc/install
2129 # IRIX /sbin/install
2130 # AIX /bin/install
2131 # AmigaOS /C/install, which installs bootblocks on floppy discs
2132 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2133 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2134 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2135 # OS/2's system install, which has a completely different semantic
2136 # ./install, which can be erroneously created by make from ./install.sh.
2137 # Reject install programs that cannot install multiple files.
2138 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2139 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2140 if test -z "$INSTALL"; then
2141 if test "${ac_cv_path_install+set}" = set; then
2142 $as_echo_n "(cached) " >&6
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 # Account for people who put trailing slashes in PATH elements.
2150 case $as_dir/ in
2151 ./ | .// | /cC/* | \
2152 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2153 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2154 /usr/ucb/* ) ;;
2155 *)
2156 # OSF1 and SCO ODT 3.0 have their own names for install.
2157 # Don't use installbsd from OSF since it installs stuff as root
2158 # by default.
2159 for ac_prog in ginstall scoinst install; do
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2162 if test $ac_prog = install &&
2163 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2164 # AIX install. It has an incompatible calling convention.
2165 :
2166 elif test $ac_prog = install &&
2167 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168 # program-specific install script used by HP pwplus--don't use.
2169 :
2170 else
2171 rm -rf conftest.one conftest.two conftest.dir
2172 echo one > conftest.one
2173 echo two > conftest.two
2174 mkdir conftest.dir
2175 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2176 test -s conftest.one && test -s conftest.two &&
2177 test -s conftest.dir/conftest.one &&
2178 test -s conftest.dir/conftest.two
2179 then
2180 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2181 break 3
2182 fi
2183 fi
2184 fi
2185 done
2186 done
2187 ;;
2188 esac
2189
2190 done
2191 IFS=$as_save_IFS
2192
2193 rm -rf conftest.one conftest.two conftest.dir
2194
2195 fi
2196 if test "${ac_cv_path_install+set}" = set; then
2197 INSTALL=$ac_cv_path_install
2198 else
2199 # As a last resort, use the slow shell script. Don't cache a
2200 # value for INSTALL within a source directory, because that will
2201 # break other packages using the cache if that directory is
2202 # removed, or if the value is a relative name.
2203 INSTALL=$ac_install_sh
2204 fi
2205 fi
2206 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2207 $as_echo "$INSTALL" >&6; }
2208
2209 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2210 # It thinks the first close brace ends the variable substitution.
2211 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2212
2213 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2214
2215 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2216
2217 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2218 $as_echo_n "checking whether build environment is sane... " >&6; }
2219 # Just in case
2220 sleep 1
2221 echo timestamp > conftest.file
2222 # Reject unsafe characters in $srcdir or the absolute working directory
2223 # name. Accept space and tab only in the latter.
2224 am_lf='
2225 '
2226 case `pwd` in
2227 *[\\\"\#\$\&\'\`$am_lf]*)
2228 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2229 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2230 { (exit 1); exit 1; }; };;
2231 esac
2232 case $srcdir in
2233 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2234 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2235 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2236 { (exit 1); exit 1; }; };;
2237 esac
2238
2239 # Do `set' in a subshell so we don't clobber the current shell's
2240 # arguments. Must try -L first in case configure is actually a
2241 # symlink; some systems play weird games with the mod time of symlinks
2242 # (eg FreeBSD returns the mod time of the symlink's containing
2243 # directory).
2244 if (
2245 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2246 if test "$*" = "X"; then
2247 # -L didn't work.
2248 set X `ls -t "$srcdir/configure" conftest.file`
2249 fi
2250 rm -f conftest.file
2251 if test "$*" != "X $srcdir/configure conftest.file" \
2252 && test "$*" != "X conftest.file $srcdir/configure"; then
2253
2254 # If neither matched, then we have a broken ls. This can happen
2255 # if, for instance, CONFIG_SHELL is bash and it inherits a
2256 # broken ls alias from the environment. This has actually
2257 # happened. Such a system could not be considered "sane".
2258 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2259 alias in your environment" >&5
2260 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2261 alias in your environment" >&2;}
2262 { (exit 1); exit 1; }; }
2263 fi
2264
2265 test "$2" = conftest.file
2266 )
2267 then
2268 # Ok.
2269 :
2270 else
2271 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2272 Check your system clock" >&5
2273 $as_echo "$as_me: error: newly created file is older than distributed files!
2274 Check your system clock" >&2;}
2275 { (exit 1); exit 1; }; }
2276 fi
2277 { $as_echo "$as_me:$LINENO: result: yes" >&5
2278 $as_echo "yes" >&6; }
2279 test "$program_prefix" != NONE &&
2280 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2281 # Use a double $ so make ignores it.
2282 test "$program_suffix" != NONE &&
2283 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2284 # Double any \ or $.
2285 # By default was `s,x,x', remove it if useless.
2286 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2287 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2288
2289 # expand $ac_aux_dir to an absolute path
2290 am_aux_dir=`cd $ac_aux_dir && pwd`
2291
2292 if test x"${MISSING+set}" != xset; then
2293 case $am_aux_dir in
2294 *\ * | *\ *)
2295 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2296 *)
2297 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2298 esac
2299 fi
2300 # Use eval to expand $SHELL
2301 if eval "$MISSING --run true"; then
2302 am_missing_run="$MISSING --run "
2303 else
2304 am_missing_run=
2305 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2306 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2307 fi
2308
2309 if test x"${install_sh}" != xset; then
2310 case $am_aux_dir in
2311 *\ * | *\ *)
2312 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2313 *)
2314 install_sh="\${SHELL} $am_aux_dir/install-sh"
2315 esac
2316 fi
2317
2318 # Installed binaries are usually stripped using `strip' when the user
2319 # run `make install-strip'. However `strip' might not be the right
2320 # tool to use in cross-compilation environments, therefore Automake
2321 # will honor the `STRIP' environment variable to overrule this program.
2322 if test "$cross_compiling" != no; then
2323 if test -n "$ac_tool_prefix"; then
2324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}strip; ac_word=$2
2326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 $as_echo_n "checking for $ac_word... " >&6; }
2328 if test "${ac_cv_prog_STRIP+set}" = set; then
2329 $as_echo_n "(cached) " >&6
2330 else
2331 if test -n "$STRIP"; then
2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2344 fi
2345 done
2346 done
2347 IFS=$as_save_IFS
2348
2349 fi
2350 fi
2351 STRIP=$ac_cv_prog_STRIP
2352 if test -n "$STRIP"; then
2353 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2354 $as_echo "$STRIP" >&6; }
2355 else
2356 { $as_echo "$as_me:$LINENO: result: no" >&5
2357 $as_echo "no" >&6; }
2358 fi
2359
2360
2361 fi
2362 if test -z "$ac_cv_prog_STRIP"; then
2363 ac_ct_STRIP=$STRIP
2364 # Extract the first word of "strip", so it can be a program name with args.
2365 set dummy strip; ac_word=$2
2366 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2367 $as_echo_n "checking for $ac_word... " >&6; }
2368 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2369 $as_echo_n "(cached) " >&6
2370 else
2371 if test -n "$ac_ct_STRIP"; then
2372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2373 else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2376 do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381 ac_cv_prog_ac_ct_STRIP="strip"
2382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 2
2384 fi
2385 done
2386 done
2387 IFS=$as_save_IFS
2388
2389 fi
2390 fi
2391 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2392 if test -n "$ac_ct_STRIP"; then
2393 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2394 $as_echo "$ac_ct_STRIP" >&6; }
2395 else
2396 { $as_echo "$as_me:$LINENO: result: no" >&5
2397 $as_echo "no" >&6; }
2398 fi
2399
2400 if test "x$ac_ct_STRIP" = x; then
2401 STRIP=":"
2402 else
2403 case $cross_compiling:$ac_tool_warned in
2404 yes:)
2405 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2407 ac_tool_warned=yes ;;
2408 esac
2409 STRIP=$ac_ct_STRIP
2410 fi
2411 else
2412 STRIP="$ac_cv_prog_STRIP"
2413 fi
2414
2415 fi
2416 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2417
2418 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2419 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2420 if test -z "$MKDIR_P"; then
2421 if test "${ac_cv_path_mkdir+set}" = set; then
2422 $as_echo_n "(cached) " >&6
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2426 do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_prog in mkdir gmkdir; do
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2432 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2433 'mkdir (GNU coreutils) '* | \
2434 'mkdir (coreutils) '* | \
2435 'mkdir (fileutils) '4.1*)
2436 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2437 break 3;;
2438 esac
2439 done
2440 done
2441 done
2442 IFS=$as_save_IFS
2443
2444 fi
2445
2446 if test "${ac_cv_path_mkdir+set}" = set; then
2447 MKDIR_P="$ac_cv_path_mkdir -p"
2448 else
2449 # As a last resort, use the slow shell script. Don't cache a
2450 # value for MKDIR_P within a source directory, because that will
2451 # break other packages using the cache if that directory is
2452 # removed, or if the value is a relative name.
2453 test -d ./--version && rmdir ./--version
2454 MKDIR_P="$ac_install_sh -d"
2455 fi
2456 fi
2457 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2458 $as_echo "$MKDIR_P" >&6; }
2459
2460 mkdir_p="$MKDIR_P"
2461 case $mkdir_p in
2462 [\\/$]* | ?:[\\/]*) ;;
2463 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2464 esac
2465
2466 for ac_prog in gawk mawk nawk awk
2467 do
2468 # Extract the first word of "$ac_prog", so it can be a program name with args.
2469 set dummy $ac_prog; ac_word=$2
2470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if test "${ac_cv_prog_AWK+set}" = set; then
2473 $as_echo_n "(cached) " >&6
2474 else
2475 if test -n "$AWK"; then
2476 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_prog_AWK="$ac_prog"
2486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2488 fi
2489 done
2490 done
2491 IFS=$as_save_IFS
2492
2493 fi
2494 fi
2495 AWK=$ac_cv_prog_AWK
2496 if test -n "$AWK"; then
2497 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2498 $as_echo "$AWK" >&6; }
2499 else
2500 { $as_echo "$as_me:$LINENO: result: no" >&5
2501 $as_echo "no" >&6; }
2502 fi
2503
2504
2505 test -n "$AWK" && break
2506 done
2507
2508 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2509 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2510 set x ${MAKE-make}
2511 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2512 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2513 $as_echo_n "(cached) " >&6
2514 else
2515 cat >conftest.make <<\_ACEOF
2516 SHELL = /bin/sh
2517 all:
2518 @echo '@@@%%%=$(MAKE)=@@@%%%'
2519 _ACEOF
2520 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2521 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2522 *@@@%%%=?*=@@@%%%*)
2523 eval ac_cv_prog_make_${ac_make}_set=yes;;
2524 *)
2525 eval ac_cv_prog_make_${ac_make}_set=no;;
2526 esac
2527 rm -f conftest.make
2528 fi
2529 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2530 { $as_echo "$as_me:$LINENO: result: yes" >&5
2531 $as_echo "yes" >&6; }
2532 SET_MAKE=
2533 else
2534 { $as_echo "$as_me:$LINENO: result: no" >&5
2535 $as_echo "no" >&6; }
2536 SET_MAKE="MAKE=${MAKE-make}"
2537 fi
2538
2539 rm -rf .tst 2>/dev/null
2540 mkdir .tst 2>/dev/null
2541 if test -d .tst; then
2542 am__leading_dot=.
2543 else
2544 am__leading_dot=_
2545 fi
2546 rmdir .tst 2>/dev/null
2547
2548 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2549 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2550 # is not polluted with repeated "-I."
2551 am__isrc=' -I$(srcdir)'
2552 # test to see if srcdir already configured
2553 if test -f $srcdir/config.status; then
2554 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2555 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2556 { (exit 1); exit 1; }; }
2557 fi
2558 fi
2559
2560 # test whether we have cygpath
2561 if test -z "$CYGPATH_W"; then
2562 if (cygpath --version) >/dev/null 2>/dev/null; then
2563 CYGPATH_W='cygpath -w'
2564 else
2565 CYGPATH_W=echo
2566 fi
2567 fi
2568
2569
2570 # Define the identity of the package.
2571 PACKAGE='gamer'
2572 VERSION='1.0'
2573
2574
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE "$PACKAGE"
2577 _ACEOF
2578
2579
2580 cat >>confdefs.h <<_ACEOF
2581 #define VERSION "$VERSION"
2582 _ACEOF
2583
2584 # Some tools Automake needs.
2585
2586 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2587
2588
2589 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2590
2591
2592 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2593
2594
2595 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2596
2597
2598 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2599
2600 # We need awk for the "check" target. The system "awk" is bad on
2601 # some platforms.
2602 # Always define AMTAR for backward compatibility.
2603
2604 AMTAR=${AMTAR-"${am_missing_run}tar"}
2605
2606 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2607
2608
2609
2610
2611
2612 FETK_VERSION="1:0:0"
2613
2614
2615 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2616 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2617 # Check whether --enable-maintainer-mode was given.
2618 if test "${enable_maintainer_mode+set}" = set; then
2619 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2620 else
2621 USE_MAINTAINER_MODE=no
2622 fi
2623
2624 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2625 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2626 if test $USE_MAINTAINER_MODE = yes; then
2627 MAINTAINER_MODE_TRUE=
2628 MAINTAINER_MODE_FALSE='#'
2629 else
2630 MAINTAINER_MODE_TRUE='#'
2631 MAINTAINER_MODE_FALSE=
2632 fi
2633
2634 MAINT=$MAINTAINER_MODE_TRUE
2635
2636
2637
2638 ac_ext=c
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643
2644 ac_ext=c
2645 ac_cpp='$CPP $CPPFLAGS'
2646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2649 if test -n "$ac_tool_prefix"; then
2650 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2651 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_prog_CC+set}" = set; then
2655 $as_echo_n "(cached) " >&6
2656 else
2657 if test -n "$CC"; then
2658 ac_cv_prog_CC="$CC" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2662 do
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 break 2
2670 fi
2671 done
2672 done
2673 IFS=$as_save_IFS
2674
2675 fi
2676 fi
2677 CC=$ac_cv_prog_CC
2678 if test -n "$CC"; then
2679 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2680 $as_echo "$CC" >&6; }
2681 else
2682 { $as_echo "$as_me:$LINENO: result: no" >&5
2683 $as_echo "no" >&6; }
2684 fi
2685
2686
2687 fi
2688 if test -z "$ac_cv_prog_CC"; then
2689 ac_ct_CC=$CC
2690 # Extract the first word of "gcc", so it can be a program name with args.
2691 set dummy gcc; ac_word=$2
2692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2695 $as_echo_n "(cached) " >&6
2696 else
2697 if test -n "$ac_ct_CC"; then
2698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_ac_ct_CC="gcc"
2708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2710 fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2718 if test -n "$ac_ct_CC"; then
2719 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2720 $as_echo "$ac_ct_CC" >&6; }
2721 else
2722 { $as_echo "$as_me:$LINENO: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726 if test "x$ac_ct_CC" = x; then
2727 CC=""
2728 else
2729 case $cross_compiling:$ac_tool_warned in
2730 yes:)
2731 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2733 ac_tool_warned=yes ;;
2734 esac
2735 CC=$ac_ct_CC
2736 fi
2737 else
2738 CC="$ac_cv_prog_CC"
2739 fi
2740
2741 if test -z "$CC"; then
2742 if test -n "$ac_tool_prefix"; then
2743 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2744 set dummy ${ac_tool_prefix}cc; ac_word=$2
2745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 $as_echo_n "checking for $ac_word... " >&6; }
2747 if test "${ac_cv_prog_CC+set}" = set; then
2748 $as_echo_n "(cached) " >&6
2749 else
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 ac_cv_prog_CC="${ac_tool_prefix}cc"
2761 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2763 fi
2764 done
2765 done
2766 IFS=$as_save_IFS
2767
2768 fi
2769 fi
2770 CC=$ac_cv_prog_CC
2771 if test -n "$CC"; then
2772 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2773 $as_echo "$CC" >&6; }
2774 else
2775 { $as_echo "$as_me:$LINENO: result: no" >&5
2776 $as_echo "no" >&6; }
2777 fi
2778
2779
2780 fi
2781 fi
2782 if test -z "$CC"; then
2783 # Extract the first word of "cc", so it can be a program name with args.
2784 set dummy cc; ac_word=$2
2785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_prog_CC+set}" = set; then
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2792 else
2793 ac_prog_rejected=no
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2802 ac_prog_rejected=yes
2803 continue
2804 fi
2805 ac_cv_prog_CC="cc"
2806 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 if test $ac_prog_rejected = yes; then
2814 # We found a bogon in the path, so make sure we never use it.
2815 set dummy $ac_cv_prog_CC
2816 shift
2817 if test $# != 0; then
2818 # We chose a different compiler from the bogus one.
2819 # However, it has the same basename, so the bogon will be chosen
2820 # first if we set CC to just the basename; use the full file name.
2821 shift
2822 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2823 fi
2824 fi
2825 fi
2826 fi
2827 CC=$ac_cv_prog_CC
2828 if test -n "$CC"; then
2829 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2830 $as_echo "$CC" >&6; }
2831 else
2832 { $as_echo "$as_me:$LINENO: result: no" >&5
2833 $as_echo "no" >&6; }
2834 fi
2835
2836
2837 fi
2838 if test -z "$CC"; then
2839 if test -n "$ac_tool_prefix"; then
2840 for ac_prog in cl.exe
2841 do
2842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if test "${ac_cv_prog_CC+set}" = set; then
2847 $as_echo_n "(cached) " >&6
2848 else
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863 done
2864 done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 CC=$ac_cv_prog_CC
2870 if test -n "$CC"; then
2871 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2872 $as_echo "$CC" >&6; }
2873 else
2874 { $as_echo "$as_me:$LINENO: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878
2879 test -n "$CC" && break
2880 done
2881 fi
2882 if test -z "$CC"; then
2883 ac_ct_CC=$CC
2884 for ac_prog in cl.exe
2885 do
2886 # Extract the first word of "$ac_prog", so it can be a program name with args.
2887 set dummy $ac_prog; ac_word=$2
2888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test -n "$ac_ct_CC"; then
2894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903 ac_cv_prog_ac_ct_CC="$ac_prog"
2904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2914 if test -n "$ac_ct_CC"; then
2915 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2916 $as_echo "$ac_ct_CC" >&6; }
2917 else
2918 { $as_echo "$as_me:$LINENO: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922
2923 test -n "$ac_ct_CC" && break
2924 done
2925
2926 if test "x$ac_ct_CC" = x; then
2927 CC=""
2928 else
2929 case $cross_compiling:$ac_tool_warned in
2930 yes:)
2931 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2933 ac_tool_warned=yes ;;
2934 esac
2935 CC=$ac_ct_CC
2936 fi
2937 fi
2938
2939 fi
2940
2941
2942 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2945 See \`config.log' for more details." >&5
2946 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2947 See \`config.log' for more details." >&2;}
2948 { (exit 1); exit 1; }; }; }
2949
2950 # Provide some information about the compiler.
2951 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2952 set X $ac_compile
2953 ac_compiler=$2
2954 { (ac_try="$ac_compiler --version >&5"
2955 case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958 esac
2959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2960 $as_echo "$ac_try_echo") >&5
2961 (eval "$ac_compiler --version >&5") 2>&5
2962 ac_status=$?
2963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }
2965 { (ac_try="$ac_compiler -v >&5"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2971 $as_echo "$ac_try_echo") >&5
2972 (eval "$ac_compiler -v >&5") 2>&5
2973 ac_status=$?
2974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }
2976 { (ac_try="$ac_compiler -V >&5"
2977 case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980 esac
2981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2982 $as_echo "$ac_try_echo") >&5
2983 (eval "$ac_compiler -V >&5") 2>&5
2984 ac_status=$?
2985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }
2987
2988 cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h. */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2994
2995 int
2996 main ()
2997 {
2998
2999 ;
3000 return 0;
3001 }
3002 _ACEOF
3003 ac_clean_files_save=$ac_clean_files
3004 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3005 # Try to create an executable without -o first, disregard a.out.
3006 # It will help us diagnose broken compilers, and finding out an intuition
3007 # of exeext.
3008 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3009 $as_echo_n "checking for C compiler default output file name... " >&6; }
3010 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3011
3012 # The possible output files:
3013 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3014
3015 ac_rmfiles=
3016 for ac_file in $ac_files
3017 do
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3020 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3021 esac
3022 done
3023 rm -f $ac_rmfiles
3024
3025 if { (ac_try="$ac_link_default"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3031 $as_echo "$ac_try_echo") >&5
3032 (eval "$ac_link_default") 2>&5
3033 ac_status=$?
3034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; then
3036 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3037 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3038 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3039 # so that the user can short-circuit this test for compilers unknown to
3040 # Autoconf.
3041 for ac_file in $ac_files ''
3042 do
3043 test -f "$ac_file" || continue
3044 case $ac_file in
3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3046 ;;
3047 [ab].out )
3048 # We found the default executable, but exeext='' is most
3049 # certainly right.
3050 break;;
3051 *.* )
3052 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3053 then :; else
3054 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3055 fi
3056 # We set ac_cv_exeext here because the later test for it is not
3057 # safe: cross compilers may not add the suffix if given an `-o'
3058 # argument, so we may need to know it at that point already.
3059 # Even if this section looks crufty: it has the advantage of
3060 # actually working.
3061 break;;
3062 * )
3063 break;;
3064 esac
3065 done
3066 test "$ac_cv_exeext" = no && ac_cv_exeext=
3067
3068 else
3069 ac_file=''
3070 fi
3071
3072 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3073 $as_echo "$ac_file" >&6; }
3074 if test -z "$ac_file"; then
3075 $as_echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3081 See \`config.log' for more details." >&5
3082 $as_echo "$as_me: error: C compiler cannot create executables
3083 See \`config.log' for more details." >&2;}
3084 { (exit 77); exit 77; }; }; }
3085 fi
3086
3087 ac_exeext=$ac_cv_exeext
3088
3089 # Check that the compiler produces executables we can run. If not, either
3090 # the compiler is broken, or we cross compile.
3091 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3092 $as_echo_n "checking whether the C compiler works... " >&6; }
3093 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3094 # If not cross compiling, check that we can run a simple program.
3095 if test "$cross_compiling" != yes; then
3096 if { ac_try='./$ac_file'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3102 $as_echo "$ac_try_echo") >&5
3103 (eval "$ac_try") 2>&5
3104 ac_status=$?
3105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3107 cross_compiling=no
3108 else
3109 if test "$cross_compiling" = maybe; then
3110 cross_compiling=yes
3111 else
3112 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3115 If you meant to cross compile, use \`--host'.
3116 See \`config.log' for more details." >&5
3117 $as_echo "$as_me: error: cannot run C compiled programs.
3118 If you meant to cross compile, use \`--host'.
3119 See \`config.log' for more details." >&2;}
3120 { (exit 1); exit 1; }; }; }
3121 fi
3122 fi
3123 fi
3124 { $as_echo "$as_me:$LINENO: result: yes" >&5
3125 $as_echo "yes" >&6; }
3126
3127 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3128 ac_clean_files=$ac_clean_files_save
3129 # Check that the compiler produces executables we can run. If not, either
3130 # the compiler is broken, or we cross compile.
3131 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3132 $as_echo_n "checking whether we are cross compiling... " >&6; }
3133 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3134 $as_echo "$cross_compiling" >&6; }
3135
3136 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3137 $as_echo_n "checking for suffix of executables... " >&6; }
3138 if { (ac_try="$ac_link"
3139 case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3144 $as_echo "$ac_try_echo") >&5
3145 (eval "$ac_link") 2>&5
3146 ac_status=$?
3147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; then
3149 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3150 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3151 # work properly (i.e., refer to `conftest.exe'), while it won't with
3152 # `rm'.
3153 for ac_file in conftest.exe conftest conftest.*; do
3154 test -f "$ac_file" || continue
3155 case $ac_file in
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3157 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3158 break;;
3159 * ) break;;
3160 esac
3161 done
3162 else
3163 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3166 See \`config.log' for more details." >&5
3167 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3168 See \`config.log' for more details." >&2;}
3169 { (exit 1); exit 1; }; }; }
3170 fi
3171
3172 rm -f conftest$ac_cv_exeext
3173 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3174 $as_echo "$ac_cv_exeext" >&6; }
3175
3176 rm -f conftest.$ac_ext
3177 EXEEXT=$ac_cv_exeext
3178 ac_exeext=$EXEEXT
3179 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3180 $as_echo_n "checking for suffix of object files... " >&6; }
3181 if test "${ac_cv_objext+set}" = set; then
3182 $as_echo_n "(cached) " >&6
3183 else
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h. */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3190
3191 int
3192 main ()
3193 {
3194
3195 ;
3196 return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.o conftest.obj
3200 if { (ac_try="$ac_compile"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3206 $as_echo "$ac_try_echo") >&5
3207 (eval "$ac_compile") 2>&5
3208 ac_status=$?
3209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; then
3211 for ac_file in conftest.o conftest.obj conftest.*; do
3212 test -f "$ac_file" || continue;
3213 case $ac_file in
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3215 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3216 break;;
3217 esac
3218 done
3219 else
3220 $as_echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3226 See \`config.log' for more details." >&5
3227 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3228 See \`config.log' for more details." >&2;}
3229 { (exit 1); exit 1; }; }; }
3230 fi
3231
3232 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3233 fi
3234 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3235 $as_echo "$ac_cv_objext" >&6; }
3236 OBJEXT=$ac_cv_objext
3237 ac_objext=$OBJEXT
3238 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3239 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3240 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3242 else
3243 cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h. */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3249
3250 int
3251 main ()
3252 {
3253 #ifndef __GNUC__
3254 choke me
3255 #endif
3256
3257 ;
3258 return 0;
3259 }
3260 _ACEOF
3261 rm -f conftest.$ac_objext
3262 if { (ac_try="$ac_compile"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3268 $as_echo "$ac_try_echo") >&5
3269 (eval "$ac_compile") 2>conftest.er1
3270 ac_status=$?
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
3274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } && {
3276 test -z "$ac_c_werror_flag" ||
3277 test ! -s conftest.err
3278 } && test -s conftest.$ac_objext; then
3279 ac_compiler_gnu=yes
3280 else
3281 $as_echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 ac_compiler_gnu=no
3285 fi
3286
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3289
3290 fi
3291 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3292 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3293 if test $ac_compiler_gnu = yes; then
3294 GCC=yes
3295 else
3296 GCC=
3297 fi
3298 ac_test_CFLAGS=${CFLAGS+set}
3299 ac_save_CFLAGS=$CFLAGS
3300 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3301 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3302 if test "${ac_cv_prog_cc_g+set}" = set; then
3303 $as_echo_n "(cached) " >&6
3304 else
3305 ac_save_c_werror_flag=$ac_c_werror_flag
3306 ac_c_werror_flag=yes
3307 ac_cv_prog_cc_g=no
3308 CFLAGS="-g"
3309 cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h. */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3315
3316 int
3317 main ()
3318 {
3319
3320 ;
3321 return 0;
3322 }
3323 _ACEOF
3324 rm -f conftest.$ac_objext
3325 if { (ac_try="$ac_compile"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3331 $as_echo "$ac_try_echo") >&5
3332 (eval "$ac_compile") 2>conftest.er1
3333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } && {
3339 test -z "$ac_c_werror_flag" ||
3340 test ! -s conftest.err
3341 } && test -s conftest.$ac_objext; then
3342 ac_cv_prog_cc_g=yes
3343 else
3344 $as_echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347 CFLAGS=""
3348 cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h. */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3354
3355 int
3356 main ()
3357 {
3358
3359 ;
3360 return 0;
3361 }
3362 _ACEOF
3363 rm -f conftest.$ac_objext
3364 if { (ac_try="$ac_compile"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3370 $as_echo "$ac_try_echo") >&5
3371 (eval "$ac_compile") 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } && {
3378 test -z "$ac_c_werror_flag" ||
3379 test ! -s conftest.err
3380 } && test -s conftest.$ac_objext; then
3381 :
3382 else
3383 $as_echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3385
3386 ac_c_werror_flag=$ac_save_c_werror_flag
3387 CFLAGS="-g"
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394
3395 int
3396 main ()
3397 {
3398
3399 ;
3400 return 0;
3401 }
3402 _ACEOF
3403 rm -f conftest.$ac_objext
3404 if { (ac_try="$ac_compile"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3410 $as_echo "$ac_try_echo") >&5
3411 (eval "$ac_compile") 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } && {
3418 test -z "$ac_c_werror_flag" ||
3419 test ! -s conftest.err
3420 } && test -s conftest.$ac_objext; then
3421 ac_cv_prog_cc_g=yes
3422 else
3423 $as_echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426
3427 fi
3428
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 fi
3431
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 fi
3434
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 ac_c_werror_flag=$ac_save_c_werror_flag
3437 fi
3438 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3439 $as_echo "$ac_cv_prog_cc_g" >&6; }
3440 if test "$ac_test_CFLAGS" = set; then
3441 CFLAGS=$ac_save_CFLAGS
3442 elif test $ac_cv_prog_cc_g = yes; then
3443 if test "$GCC" = yes; then
3444 CFLAGS="-g -O2"
3445 else
3446 CFLAGS="-g"
3447 fi
3448 else
3449 if test "$GCC" = yes; then
3450 CFLAGS="-O2"
3451 else
3452 CFLAGS=
3453 fi
3454 fi
3455 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3456 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3457 if test "${ac_cv_prog_cc_c89+set}" = set; then
3458 $as_echo_n "(cached) " >&6
3459 else
3460 ac_cv_prog_cc_c89=no
3461 ac_save_CC=$CC
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 #include <stdarg.h>
3469 #include <stdio.h>
3470 #include <sys/types.h>
3471 #include <sys/stat.h>
3472 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3473 struct buf { int x; };
3474 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3475 static char *e (p, i)
3476 char **p;
3477 int i;
3478 {
3479 return p[i];
3480 }
3481 static char *f (char * (*g) (char **, int), char **p, ...)
3482 {
3483 char *s;
3484 va_list v;
3485 va_start (v,p);
3486 s = g (p, va_arg (v,int));
3487 va_end (v);
3488 return s;
3489 }
3490
3491 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3492 function prototypes and stuff, but not '\xHH' hex character constants.
3493 These don't provoke an error unfortunately, instead are silently treated
3494 as 'x'. The following induces an error, until -std is added to get
3495 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3496 array size at least. It's necessary to write '\x00'==0 to get something
3497 that's true only with -std. */
3498 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3499
3500 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3501 inside strings and character constants. */
3502 #define FOO(x) 'x'
3503 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3504
3505 int test (int i, double x);
3506 struct s1 {int (*f) (int a);};
3507 struct s2 {int (*f) (double a);};
3508 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3509 int argc;
3510 char **argv;
3511 int
3512 main ()
3513 {
3514 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3515 ;
3516 return 0;
3517 }
3518 _ACEOF
3519 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3520 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3521 do
3522 CC="$ac_save_CC $ac_arg"
3523 rm -f conftest.$ac_objext
3524 if { (ac_try="$ac_compile"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3530 $as_echo "$ac_try_echo") >&5
3531 (eval "$ac_compile") 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } && {
3538 test -z "$ac_c_werror_flag" ||
3539 test ! -s conftest.err
3540 } && test -s conftest.$ac_objext; then
3541 ac_cv_prog_cc_c89=$ac_arg
3542 else
3543 $as_echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3545
3546
3547 fi
3548
3549 rm -f core conftest.err conftest.$ac_objext
3550 test "x$ac_cv_prog_cc_c89" != "xno" && break
3551 done
3552 rm -f conftest.$ac_ext
3553 CC=$ac_save_CC
3554
3555 fi
3556 # AC_CACHE_VAL
3557 case "x$ac_cv_prog_cc_c89" in
3558 x)
3559 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3560 $as_echo "none needed" >&6; } ;;
3561 xno)
3562 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3563 $as_echo "unsupported" >&6; } ;;
3564 *)
3565 CC="$CC $ac_cv_prog_cc_c89"
3566 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3567 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3568 esac
3569
3570
3571 ac_ext=c
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 DEPDIR="${am__leading_dot}deps"
3577
3578 ac_config_commands="$ac_config_commands depfiles"
3579
3580
3581 am_make=${MAKE-make}
3582 cat > confinc << 'END'
3583 am__doit:
3584 @echo this is the am__doit target
3585 .PHONY: am__doit
3586 END
3587 # If we don't find an include directive, just comment out the code.
3588 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3589 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3590 am__include="#"
3591 am__quote=
3592 _am_result=none
3593 # First try GNU make style include.
3594 echo "include confinc" > confmf
3595 # Ignore all kinds of additional output from `make'.
3596 case `$am_make -s -f confmf 2> /dev/null` in #(
3597 *the\ am__doit\ target*)
3598 am__include=include
3599 am__quote=
3600 _am_result=GNU
3601 ;;
3602 esac
3603 # Now try BSD make style include.
3604 if test "$am__include" = "#"; then
3605 echo '.include "confinc"' > confmf
3606 case `$am_make -s -f confmf 2> /dev/null` in #(
3607 *the\ am__doit\ target*)
3608 am__include=.include
3609 am__quote="\""
3610 _am_result=BSD
3611 ;;
3612 esac
3613 fi
3614
3615
3616 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3617 $as_echo "$_am_result" >&6; }
3618 rm -f confinc confmf
3619
3620 # Check whether --enable-dependency-tracking was given.
3621 if test "${enable_dependency_tracking+set}" = set; then
3622 enableval=$enable_dependency_tracking;
3623 fi
3624
3625 if test "x$enable_dependency_tracking" != xno; then
3626 am_depcomp="$ac_aux_dir/depcomp"
3627 AMDEPBACKSLASH='\'
3628 fi
3629 if test "x$enable_dependency_tracking" != xno; then
3630 AMDEP_TRUE=
3631 AMDEP_FALSE='#'
3632 else
3633 AMDEP_TRUE='#'
3634 AMDEP_FALSE=
3635 fi
3636
3637
3638
3639 depcc="$CC" am_compiler_list=
3640
3641 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3642 $as_echo_n "checking dependency style of $depcc... " >&6; }
3643 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3644 $as_echo_n "(cached) " >&6
3645 else
3646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3647 # We make a subdir and do the tests there. Otherwise we can end up
3648 # making bogus files that we don't know about and never remove. For
3649 # instance it was reported that on HP-UX the gcc test will end up
3650 # making a dummy file named `D' -- because `-MD' means `put the output
3651 # in D'.
3652 mkdir conftest.dir
3653 # Copy depcomp to subdir because otherwise we won't find it if we're
3654 # using a relative directory.
3655 cp "$am_depcomp" conftest.dir
3656 cd conftest.dir
3657 # We will build objects and dependencies in a subdirectory because
3658 # it helps to detect inapplicable dependency modes. For instance
3659 # both Tru64's cc and ICC support -MD to output dependencies as a
3660 # side effect of compilation, but ICC will put the dependencies in
3661 # the current directory while Tru64 will put them in the object
3662 # directory.
3663 mkdir sub
3664
3665 am_cv_CC_dependencies_compiler_type=none
3666 if test "$am_compiler_list" = ""; then
3667 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3668 fi
3669 am__universal=false
3670 case " $depcc " in #(
3671 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3672 esac
3673
3674 for depmode in $am_compiler_list; do
3675 # Setup a source with many dependencies, because some compilers
3676 # like to wrap large dependency lists on column 80 (with \), and
3677 # we should not choose a depcomp mode which is confused by this.
3678 #
3679 # We need to recreate these files for each test, as the compiler may
3680 # overwrite some of them when testing with obscure command lines.
3681 # This happens at least with the AIX C compiler.
3682 : > sub/conftest.c
3683 for i in 1 2 3 4 5 6; do
3684 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3685 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3686 # Solaris 8's {/usr,}/bin/sh.
3687 touch sub/conftst$i.h
3688 done
3689 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3690
3691 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3692 # mode. It turns out that the SunPro C++ compiler does not properly
3693 # handle `-M -o', and we need to detect this. Also, some Intel
3694 # versions had trouble with output in subdirs
3695 am__obj=sub/conftest.${OBJEXT-o}
3696 am__minus_obj="-o $am__obj"
3697 case $depmode in
3698 gcc)
3699 # This depmode causes a compiler race in universal mode.
3700 test "$am__universal" = false || continue
3701 ;;
3702 nosideeffect)
3703 # after this tag, mechanisms are not by side-effect, so they'll
3704 # only be used when explicitly requested
3705 if test "x$enable_dependency_tracking" = xyes; then
3706 continue
3707 else
3708 break
3709 fi
3710 ;;
3711 msvisualcpp | msvcmsys)
3712 # This compiler won't grok `-c -o', but also, the minuso test has
3713 # not run yet. These depmodes are late enough in the game, and
3714 # so weak that their functioning should not be impacted.
3715 am__obj=conftest.${OBJEXT-o}
3716 am__minus_obj=
3717 ;;
3718 none) break ;;
3719 esac
3720 if depmode=$depmode \
3721 source=sub/conftest.c object=$am__obj \
3722 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3723 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3724 >/dev/null 2>conftest.err &&
3725 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3726 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3727 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3728 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3729 # icc doesn't choke on unknown options, it will just issue warnings
3730 # or remarks (even with -Werror). So we grep stderr for any message
3731 # that says an option was ignored or not supported.
3732 # When given -MP, icc 7.0 and 7.1 complain thusly:
3733 # icc: Command line warning: ignoring option '-M'; no argument required
3734 # The diagnosis changed in icc 8.0:
3735 # icc: Command line remark: option '-MP' not supported
3736 if (grep 'ignoring option' conftest.err ||
3737 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3738 am_cv_CC_dependencies_compiler_type=$depmode
3739 break
3740 fi
3741 fi
3742 done
3743
3744 cd ..
3745 rm -rf conftest.dir
3746 else
3747 am_cv_CC_dependencies_compiler_type=none
3748 fi
3749
3750 fi
3751 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3752 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3753 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3754
3755 if
3756 test "x$enable_dependency_tracking" != xno \
3757 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3758 am__fastdepCC_TRUE=
3759 am__fastdepCC_FALSE='#'
3760 else
3761 am__fastdepCC_TRUE='#'
3762 am__fastdepCC_FALSE=
3763 fi
3764
3765
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3772 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3773 # On Suns, sometimes $CPP names a directory.
3774 if test -n "$CPP" && test -d "$CPP"; then
3775 CPP=
3776 fi
3777 if test -z "$CPP"; then
3778 if test "${ac_cv_prog_CPP+set}" = set; then
3779 $as_echo_n "(cached) " >&6
3780 else
3781 # Double quotes because CPP needs to be expanded
3782 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3783 do
3784 ac_preproc_ok=false
3785 for ac_c_preproc_warn_flag in '' yes
3786 do
3787 # Use a header file that comes with gcc, so configuring glibc
3788 # with a fresh cross-compiler works.
3789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790 # <limits.h> exists even on freestanding compilers.
3791 # On the NeXT, cc -E runs the code through the compiler's parser,
3792 # not just through cpp. "Syntax error" is here to catch this case.
3793 cat >conftest.$ac_ext <<_ACEOF
3794 /* confdefs.h. */
3795 _ACEOF
3796 cat confdefs.h >>conftest.$ac_ext
3797 cat >>conftest.$ac_ext <<_ACEOF
3798 /* end confdefs.h. */
3799 #ifdef __STDC__
3800 # include <limits.h>
3801 #else
3802 # include <assert.h>
3803 #endif
3804 Syntax error
3805 _ACEOF
3806 if { (ac_try="$ac_cpp conftest.$ac_ext"
3807 case "(($ac_try" in
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3810 esac
3811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3812 $as_echo "$ac_try_echo") >&5
3813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3814 ac_status=$?
3815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
3818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } >/dev/null && {
3820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3821 test ! -s conftest.err
3822 }; then
3823 :
3824 else
3825 $as_echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3827
3828 # Broken: fails on valid input.
3829 continue
3830 fi
3831
3832 rm -f conftest.err conftest.$ac_ext
3833
3834 # OK, works on sane cases. Now check whether nonexistent headers
3835 # can be detected and how.
3836 cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h. */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3842 #include <ac_nonexistent.h>
3843 _ACEOF
3844 if { (ac_try="$ac_cpp conftest.$ac_ext"
3845 case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3850 $as_echo "$ac_try_echo") >&5
3851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev/null && {
3858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3859 test ! -s conftest.err
3860 }; then
3861 # Broken: success on invalid input.
3862 continue
3863 else
3864 $as_echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3866
3867 # Passes both tests.
3868 ac_preproc_ok=:
3869 break
3870 fi
3871
3872 rm -f conftest.err conftest.$ac_ext
3873
3874 done
3875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3876 rm -f conftest.err conftest.$ac_ext
3877 if $ac_preproc_ok; then
3878 break
3879 fi
3880
3881 done
3882 ac_cv_prog_CPP=$CPP
3883
3884 fi
3885 CPP=$ac_cv_prog_CPP
3886 else
3887 ac_cv_prog_CPP=$CPP
3888 fi
3889 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3890 $as_echo "$CPP" >&6; }
3891 ac_preproc_ok=false
3892 for ac_c_preproc_warn_flag in '' yes
3893 do
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
3896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
3898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error" is here to catch this case.
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 #ifdef __STDC__
3907 # include <limits.h>
3908 #else
3909 # include <assert.h>
3910 #endif
3911 Syntax error
3912 _ACEOF
3913 if { (ac_try="$ac_cpp conftest.$ac_ext"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3919 $as_echo "$ac_try_echo") >&5
3920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3921 ac_status=$?
3922 grep -v '^ *+' conftest.er1 >conftest.err
3923 rm -f conftest.er1
3924 cat conftest.err >&5
3925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } >/dev/null && {
3927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3928 test ! -s conftest.err
3929 }; then
3930 :
3931 else
3932 $as_echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935 # Broken: fails on valid input.
3936 continue
3937 fi
3938
3939 rm -f conftest.err conftest.$ac_ext
3940
3941 # OK, works on sane cases. Now check whether nonexistent headers
3942 # can be detected and how.
3943 cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h. */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <ac_nonexistent.h>
3950 _ACEOF
3951 if { (ac_try="$ac_cpp conftest.$ac_ext"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3957 $as_echo "$ac_try_echo") >&5
3958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } >/dev/null && {
3965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3966 test ! -s conftest.err
3967 }; then
3968 # Broken: success on invalid input.
3969 continue
3970 else
3971 $as_echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3973
3974 # Passes both tests.
3975 ac_preproc_ok=:
3976 break
3977 fi
3978
3979 rm -f conftest.err conftest.$ac_ext
3980
3981 done
3982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3983 rm -f conftest.err conftest.$ac_ext
3984 if $ac_preproc_ok; then
3985 :
3986 else
3987 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3990 See \`config.log' for more details." >&5
3991 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3992 See \`config.log' for more details." >&2;}
3993 { (exit 1); exit 1; }; }; }
3994 fi
3995
3996 ac_ext=c
3997 ac_cpp='$CPP $CPPFLAGS'
3998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001
4002 ac_ext=cpp
4003 ac_cpp='$CXXCPP $CPPFLAGS'
4004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4007 if test -z "$CXX"; then
4008 if test -n "$CCC"; then
4009 CXX=$CCC
4010 else
4011 if test -n "$ac_tool_prefix"; then
4012 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4013 do
4014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 $as_echo_n "checking for $ac_word... " >&6; }
4018 if test "${ac_cv_prog_CXX+set}" = set; then
4019 $as_echo_n "(cached) " >&6
4020 else
4021 if test -n "$CXX"; then
4022 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4031 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4034 fi
4035 done
4036 done
4037 IFS=$as_save_IFS
4038
4039 fi
4040 fi
4041 CXX=$ac_cv_prog_CXX
4042 if test -n "$CXX"; then
4043 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4044 $as_echo "$CXX" >&6; }
4045 else
4046 { $as_echo "$as_me:$LINENO: result: no" >&5
4047 $as_echo "no" >&6; }
4048 fi
4049
4050
4051 test -n "$CXX" && break
4052 done
4053 fi
4054 if test -z "$CXX"; then
4055 ac_ct_CXX=$CXX
4056 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4057 do
4058 # Extract the first word of "$ac_prog", so it can be a program name with args.
4059 set dummy $ac_prog; ac_word=$2
4060 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 $as_echo_n "checking for $ac_word... " >&6; }
4062 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4063 $as_echo_n "(cached) " >&6
4064 else
4065 if test -n "$ac_ct_CXX"; then
4066 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4070 do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_prog_ac_ct_CXX="$ac_prog"
4076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079 done
4080 done
4081 IFS=$as_save_IFS
4082
4083 fi
4084 fi
4085 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4086 if test -n "$ac_ct_CXX"; then
4087 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4088 $as_echo "$ac_ct_CXX" >&6; }
4089 else
4090 { $as_echo "$as_me:$LINENO: result: no" >&5
4091 $as_echo "no" >&6; }
4092 fi
4093
4094
4095 test -n "$ac_ct_CXX" && break
4096 done
4097
4098 if test "x$ac_ct_CXX" = x; then
4099 CXX="g++"
4100 else
4101 case $cross_compiling:$ac_tool_warned in
4102 yes:)
4103 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4105 ac_tool_warned=yes ;;
4106 esac
4107 CXX=$ac_ct_CXX
4108 fi
4109 fi
4110
4111 fi
4112 fi
4113 # Provide some information about the compiler.
4114 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4115 set X $ac_compile
4116 ac_compiler=$2
4117 { (ac_try="$ac_compiler --version >&5"
4118 case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121 esac
4122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4123 $as_echo "$ac_try_echo") >&5
4124 (eval "$ac_compiler --version >&5") 2>&5
4125 ac_status=$?
4126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }
4128 { (ac_try="$ac_compiler -v >&5"
4129 case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132 esac
4133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4134 $as_echo "$ac_try_echo") >&5
4135 (eval "$ac_compiler -v >&5") 2>&5
4136 ac_status=$?
4137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }
4139 { (ac_try="$ac_compiler -V >&5"
4140 case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143 esac
4144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4145 $as_echo "$ac_try_echo") >&5
4146 (eval "$ac_compiler -V >&5") 2>&5
4147 ac_status=$?
4148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }
4150
4151 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4152 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4153 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4154 $as_echo_n "(cached) " >&6
4155 else
4156 cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h. */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162
4163 int
4164 main ()
4165 {
4166 #ifndef __GNUC__
4167 choke me
4168 #endif
4169
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest.$ac_objext
4175 if { (ac_try="$ac_compile"
4176 case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4181 $as_echo "$ac_try_echo") >&5
4182 (eval "$ac_compile") 2>conftest.er1
4183 ac_status=$?
4184 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -f conftest.er1
4186 cat conftest.err >&5
4187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } && {
4189 test -z "$ac_cxx_werror_flag" ||
4190 test ! -s conftest.err
4191 } && test -s conftest.$ac_objext; then
4192 ac_compiler_gnu=yes
4193 else
4194 $as_echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197 ac_compiler_gnu=no
4198 fi
4199
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4202
4203 fi
4204 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4205 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4206 if test $ac_compiler_gnu = yes; then
4207 GXX=yes
4208 else
4209 GXX=
4210 fi
4211 ac_test_CXXFLAGS=${CXXFLAGS+set}
4212 ac_save_CXXFLAGS=$CXXFLAGS
4213 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4214 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4215 if test "${ac_cv_prog_cxx_g+set}" = set; then
4216 $as_echo_n "(cached) " >&6
4217 else
4218 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4219 ac_cxx_werror_flag=yes
4220 ac_cv_prog_cxx_g=no
4221 CXXFLAGS="-g"
4222 cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h. */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228
4229 int
4230 main ()
4231 {
4232
4233 ;
4234 return 0;
4235 }
4236 _ACEOF
4237 rm -f conftest.$ac_objext
4238 if { (ac_try="$ac_compile"
4239 case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242 esac
4243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4244 $as_echo "$ac_try_echo") >&5
4245 (eval "$ac_compile") 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } && {
4252 test -z "$ac_cxx_werror_flag" ||
4253 test ! -s conftest.err
4254 } && test -s conftest.$ac_objext; then
4255 ac_cv_prog_cxx_g=yes
4256 else
4257 $as_echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4259
4260 CXXFLAGS=""
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267
4268 int
4269 main ()
4270 {
4271
4272 ;
4273 return 0;
4274 }
4275 _ACEOF
4276 rm -f conftest.$ac_objext
4277 if { (ac_try="$ac_compile"
4278 case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4283 $as_echo "$ac_try_echo") >&5
4284 (eval "$ac_compile") 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } && {
4291 test -z "$ac_cxx_werror_flag" ||
4292 test ! -s conftest.err
4293 } && test -s conftest.$ac_objext; then
4294 :
4295 else
4296 $as_echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4298
4299 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4300 CXXFLAGS="-g"
4301 cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h. */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4307
4308 int
4309 main ()
4310 {
4311
4312 ;
4313 return 0;
4314 }
4315 _ACEOF
4316 rm -f conftest.$ac_objext
4317 if { (ac_try="$ac_compile"
4318 case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4323 $as_echo "$ac_try_echo") >&5
4324 (eval "$ac_compile") 2>conftest.er1
4325 ac_status=$?
4326 grep -v '^ *+' conftest.er1 >conftest.err
4327 rm -f conftest.er1
4328 cat conftest.err >&5
4329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } && {
4331 test -z "$ac_cxx_werror_flag" ||
4332 test ! -s conftest.err
4333 } && test -s conftest.$ac_objext; then
4334 ac_cv_prog_cxx_g=yes
4335 else
4336 $as_echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4338
4339
4340 fi
4341
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 fi
4344
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 fi
4347
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4350 fi
4351 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4352 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4353 if test "$ac_test_CXXFLAGS" = set; then
4354 CXXFLAGS=$ac_save_CXXFLAGS
4355 elif test $ac_cv_prog_cxx_g = yes; then
4356 if test "$GXX" = yes; then
4357 CXXFLAGS="-g -O2"
4358 else
4359 CXXFLAGS="-g"
4360 fi
4361 else
4362 if test "$GXX" = yes; then
4363 CXXFLAGS="-O2"
4364 else
4365 CXXFLAGS=
4366 fi
4367 fi
4368 ac_ext=c
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373
4374 depcc="$CXX" am_compiler_list=
4375
4376 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4377 $as_echo_n "checking dependency style of $depcc... " >&6; }
4378 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4379 $as_echo_n "(cached) " >&6
4380 else
4381 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4382 # We make a subdir and do the tests there. Otherwise we can end up
4383 # making bogus files that we don't know about and never remove. For
4384 # instance it was reported that on HP-UX the gcc test will end up
4385 # making a dummy file named `D' -- because `-MD' means `put the output
4386 # in D'.
4387 mkdir conftest.dir
4388 # Copy depcomp to subdir because otherwise we won't find it if we're
4389 # using a relative directory.
4390 cp "$am_depcomp" conftest.dir
4391 cd conftest.dir
4392 # We will build objects and dependencies in a subdirectory because
4393 # it helps to detect inapplicable dependency modes. For instance
4394 # both Tru64's cc and ICC support -MD to output dependencies as a
4395 # side effect of compilation, but ICC will put the dependencies in
4396 # the current directory while Tru64 will put them in the object
4397 # directory.
4398 mkdir sub
4399
4400 am_cv_CXX_dependencies_compiler_type=none
4401 if test "$am_compiler_list" = ""; then
4402 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4403 fi
4404 am__universal=false
4405 case " $depcc " in #(
4406 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4407 esac
4408
4409 for depmode in $am_compiler_list; do
4410 # Setup a source with many dependencies, because some compilers
4411 # like to wrap large dependency lists on column 80 (with \), and
4412 # we should not choose a depcomp mode which is confused by this.
4413 #
4414 # We need to recreate these files for each test, as the compiler may
4415 # overwrite some of them when testing with obscure command lines.
4416 # This happens at least with the AIX C compiler.
4417 : > sub/conftest.c
4418 for i in 1 2 3 4 5 6; do
4419 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4420 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4421 # Solaris 8's {/usr,}/bin/sh.
4422 touch sub/conftst$i.h
4423 done
4424 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4425
4426 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4427 # mode. It turns out that the SunPro C++ compiler does not properly
4428 # handle `-M -o', and we need to detect this. Also, some Intel
4429 # versions had trouble with output in subdirs
4430 am__obj=sub/conftest.${OBJEXT-o}
4431 am__minus_obj="-o $am__obj"
4432 case $depmode in
4433 gcc)
4434 # This depmode causes a compiler race in universal mode.
4435 test "$am__universal" = false || continue
4436 ;;
4437 nosideeffect)
4438 # after this tag, mechanisms are not by side-effect, so they'll
4439 # only be used when explicitly requested
4440 if test "x$enable_dependency_tracking" = xyes; then
4441 continue
4442 else
4443 break
4444 fi
4445 ;;
4446 msvisualcpp | msvcmsys)
4447 # This compiler won't grok `-c -o', but also, the minuso test has
4448 # not run yet. These depmodes are late enough in the game, and
4449 # so weak that their functioning should not be impacted.
4450 am__obj=conftest.${OBJEXT-o}
4451 am__minus_obj=
4452 ;;
4453 none) break ;;
4454 esac
4455 if depmode=$depmode \
4456 source=sub/conftest.c object=$am__obj \
4457 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4458 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4459 >/dev/null 2>conftest.err &&
4460 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4461 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4462 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4463 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4464 # icc doesn't choke on unknown options, it will just issue warnings
4465 # or remarks (even with -Werror). So we grep stderr for any message
4466 # that says an option was ignored or not supported.
4467 # When given -MP, icc 7.0 and 7.1 complain thusly:
4468 # icc: Command line warning: ignoring option '-M'; no argument required
4469 # The diagnosis changed in icc 8.0:
4470 # icc: Command line remark: option '-MP' not supported
4471 if (grep 'ignoring option' conftest.err ||
4472 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4473 am_cv_CXX_dependencies_compiler_type=$depmode
4474 break
4475 fi
4476 fi
4477 done
4478
4479 cd ..
4480 rm -rf conftest.dir
4481 else
4482 am_cv_CXX_dependencies_compiler_type=none
4483 fi
4484
4485 fi
4486 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4487 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4488 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4489
4490 if
4491 test "x$enable_dependency_tracking" != xno \
4492 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4493 am__fastdepCXX_TRUE=
4494 am__fastdepCXX_FALSE='#'
4495 else
4496 am__fastdepCXX_TRUE='#'
4497 am__fastdepCXX_FALSE=
4498 fi
4499
4500
4501 # Check whether --enable-static was given.
4502 if test "${enable_static+set}" = set; then
4503 enableval=$enable_static; p=${PACKAGE-default}
4504 case $enableval in
4505 yes) enable_static=yes ;;
4506 no) enable_static=no ;;
4507 *)
4508 enable_static=no
4509 # Look at the argument we got. We use all the common list separators.
4510 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4511 for pkg in $enableval; do
4512 IFS="$lt_save_ifs"
4513 if test "X$pkg" = "X$p"; then
4514 enable_static=yes
4515 fi
4516 done
4517 IFS="$lt_save_ifs"
4518 ;;
4519 esac
4520 else
4521 enable_static=no
4522 fi
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532 case `pwd` in
4533 *\ * | *\ *)
4534 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4535 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4536 esac
4537
4538
4539
4540 macro_version='2.4'
4541 macro_revision='1.3293'
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555 ltmain="$ac_aux_dir/ltmain.sh"
4556
4557 # Backslashify metacharacters that are still active within
4558 # double-quoted strings.
4559 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4560
4561 # Same as above, but do not quote variable references.
4562 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4563
4564 # Sed substitution to delay expansion of an escaped shell variable in a
4565 # double_quote_subst'ed string.
4566 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4567
4568 # Sed substitution to delay expansion of an escaped single quote.
4569 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4570
4571 # Sed substitution to avoid accidental globbing in evaled expressions
4572 no_glob_subst='s/\*/\\\*/g'
4573
4574 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4575 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4576 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4577
4578 { $as_echo "$as_me:$LINENO: checking how to print strings" >&5
4579 $as_echo_n "checking how to print strings... " >&6; }
4580 # Test print first, because it will be a builtin if present.
4581 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4582 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4583 ECHO='print -r --'
4584 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4585 ECHO='printf %s\n'
4586 else
4587 # Use this function as a fallback that always works.
4588 func_fallback_echo ()
4589 {
4590 eval 'cat <<_LTECHO_EOF
4591 $1
4592 _LTECHO_EOF'
4593 }
4594 ECHO='func_fallback_echo'
4595 fi
4596
4597 # func_echo_all arg...
4598 # Invoke $ECHO with all args, space-separated.
4599 func_echo_all ()
4600 {
4601 $ECHO ""
4602 }
4603
4604 case "$ECHO" in
4605 printf*) { $as_echo "$as_me:$LINENO: result: printf" >&5
4606 $as_echo "printf" >&6; } ;;
4607 print*) { $as_echo "$as_me:$LINENO: result: print -r" >&5
4608 $as_echo "print -r" >&6; } ;;
4609 *) { $as_echo "$as_me:$LINENO: result: cat" >&5
4610 $as_echo "cat" >&6; } ;;
4611 esac
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4627 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4628 if test "${ac_cv_path_SED+set}" = set; then
4629 $as_echo_n "(cached) " >&6
4630 else
4631 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4632 for ac_i in 1 2 3 4 5 6 7; do
4633 ac_script="$ac_script$as_nl$ac_script"
4634 done
4635 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4636 $as_unset ac_script || ac_script=
4637 if test -z "$SED"; then
4638 ac_path_SED_found=false
4639 # Loop through the user's path and test for each of PROGNAME-LIST
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_prog in sed gsed; do
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4648 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4649 # Check for GNU ac_path_SED and select it if it is found.
4650 # Check for GNU $ac_path_SED
4651 case `"$ac_path_SED" --version 2>&1` in
4652 *GNU*)
4653 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4654 *)
4655 ac_count=0
4656 $as_echo_n 0123456789 >"conftest.in"
4657 while :
4658 do
4659 cat "conftest.in" "conftest.in" >"conftest.tmp"
4660 mv "conftest.tmp" "conftest.in"
4661 cp "conftest.in" "conftest.nl"
4662 $as_echo '' >> "conftest.nl"
4663 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4665 ac_count=`expr $ac_count + 1`
4666 if test $ac_count -gt ${ac_path_SED_max-0}; then
4667 # Best one so far, save it but keep looking for a better one
4668 ac_cv_path_SED="$ac_path_SED"
4669 ac_path_SED_max=$ac_count
4670 fi
4671 # 10*(2^10) chars as input seems more than enough
4672 test $ac_count -gt 10 && break
4673 done
4674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4675 esac
4676
4677 $ac_path_SED_found && break 3
4678 done
4679 done
4680 done
4681 IFS=$as_save_IFS
4682 if test -z "$ac_cv_path_SED"; then
4683 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4684 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4685 { (exit 1); exit 1; }; }
4686 fi
4687 else
4688 ac_cv_path_SED=$SED
4689 fi
4690
4691 fi
4692 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4693 $as_echo "$ac_cv_path_SED" >&6; }
4694 SED="$ac_cv_path_SED"
4695 rm -f conftest.sed
4696
4697 test -z "$SED" && SED=sed
4698 Xsed="$SED -e 1s/^X//"
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4711 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4712 if test "${ac_cv_path_GREP+set}" = set; then
4713 $as_echo_n "(cached) " >&6
4714 else
4715 if test -z "$GREP"; then
4716 ac_path_GREP_found=false
4717 # Loop through the user's path and test for each of PROGNAME-LIST
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4720 do
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_prog in grep ggrep; do
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4726 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4727 # Check for GNU ac_path_GREP and select it if it is found.
4728 # Check for GNU $ac_path_GREP
4729 case `"$ac_path_GREP" --version 2>&1` in
4730 *GNU*)
4731 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4732 *)
4733 ac_count=0
4734 $as_echo_n 0123456789 >"conftest.in"
4735 while :
4736 do
4737 cat "conftest.in" "conftest.in" >"conftest.tmp"
4738 mv "conftest.tmp" "conftest.in"
4739 cp "conftest.in" "conftest.nl"
4740 $as_echo 'GREP' >> "conftest.nl"
4741 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4743 ac_count=`expr $ac_count + 1`
4744 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4745 # Best one so far, save it but keep looking for a better one
4746 ac_cv_path_GREP="$ac_path_GREP"
4747 ac_path_GREP_max=$ac_count
4748 fi
4749 # 10*(2^10) chars as input seems more than enough
4750 test $ac_count -gt 10 && break
4751 done
4752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4753 esac
4754
4755 $ac_path_GREP_found && break 3
4756 done
4757 done
4758 done
4759 IFS=$as_save_IFS
4760 if test -z "$ac_cv_path_GREP"; then
4761 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4762 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4763 { (exit 1); exit 1; }; }
4764 fi
4765 else
4766 ac_cv_path_GREP=$GREP
4767 fi
4768
4769 fi
4770 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4771 $as_echo "$ac_cv_path_GREP" >&6; }
4772 GREP="$ac_cv_path_GREP"
4773
4774
4775 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4776 $as_echo_n "checking for egrep... " >&6; }
4777 if test "${ac_cv_path_EGREP+set}" = set; then
4778 $as_echo_n "(cached) " >&6
4779 else
4780 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4781 then ac_cv_path_EGREP="$GREP -E"
4782 else
4783 if test -z "$EGREP"; then
4784 ac_path_EGREP_found=false
4785 # Loop through the user's path and test for each of PROGNAME-LIST
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4788 do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_prog in egrep; do
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4794 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4795 # Check for GNU ac_path_EGREP and select it if it is found.
4796 # Check for GNU $ac_path_EGREP
4797 case `"$ac_path_EGREP" --version 2>&1` in
4798 *GNU*)
4799 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4800 *)
4801 ac_count=0
4802 $as_echo_n 0123456789 >"conftest.in"
4803 while :
4804 do
4805 cat "conftest.in" "conftest.in" >"conftest.tmp"
4806 mv "conftest.tmp" "conftest.in"
4807 cp "conftest.in" "conftest.nl"
4808 $as_echo 'EGREP' >> "conftest.nl"
4809 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4811 ac_count=`expr $ac_count + 1`
4812 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4813 # Best one so far, save it but keep looking for a better one
4814 ac_cv_path_EGREP="$ac_path_EGREP"
4815 ac_path_EGREP_max=$ac_count
4816 fi
4817 # 10*(2^10) chars as input seems more than enough
4818 test $ac_count -gt 10 && break
4819 done
4820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4821 esac
4822
4823 $ac_path_EGREP_found && break 3
4824 done
4825 done
4826 done
4827 IFS=$as_save_IFS
4828 if test -z "$ac_cv_path_EGREP"; then
4829 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4830 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4831 { (exit 1); exit 1; }; }
4832 fi
4833 else
4834 ac_cv_path_EGREP=$EGREP
4835 fi
4836
4837 fi
4838 fi
4839 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4840 $as_echo "$ac_cv_path_EGREP" >&6; }
4841 EGREP="$ac_cv_path_EGREP"
4842
4843
4844 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4845 $as_echo_n "checking for fgrep... " >&6; }
4846 if test "${ac_cv_path_FGREP+set}" = set; then
4847 $as_echo_n "(cached) " >&6
4848 else
4849 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4850 then ac_cv_path_FGREP="$GREP -F"
4851 else
4852 if test -z "$FGREP"; then
4853 ac_path_FGREP_found=false
4854 # Loop through the user's path and test for each of PROGNAME-LIST
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4857 do
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_prog in fgrep; do
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4863 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4864 # Check for GNU ac_path_FGREP and select it if it is found.
4865 # Check for GNU $ac_path_FGREP
4866 case `"$ac_path_FGREP" --version 2>&1` in
4867 *GNU*)
4868 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4869 *)
4870 ac_count=0
4871 $as_echo_n 0123456789 >"conftest.in"
4872 while :
4873 do
4874 cat "conftest.in" "conftest.in" >"conftest.tmp"
4875 mv "conftest.tmp" "conftest.in"
4876 cp "conftest.in" "conftest.nl"
4877 $as_echo 'FGREP' >> "conftest.nl"
4878 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4880 ac_count=`expr $ac_count + 1`
4881 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4882 # Best one so far, save it but keep looking for a better one
4883 ac_cv_path_FGREP="$ac_path_FGREP"
4884 ac_path_FGREP_max=$ac_count
4885 fi
4886 # 10*(2^10) chars as input seems more than enough
4887 test $ac_count -gt 10 && break
4888 done
4889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4890 esac
4891
4892 $ac_path_FGREP_found && break 3
4893 done
4894 done
4895 done
4896 IFS=$as_save_IFS
4897 if test -z "$ac_cv_path_FGREP"; then
4898 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4899 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4900 { (exit 1); exit 1; }; }
4901 fi
4902 else
4903 ac_cv_path_FGREP=$FGREP
4904 fi
4905
4906 fi
4907 fi
4908 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4909 $as_echo "$ac_cv_path_FGREP" >&6; }
4910 FGREP="$ac_cv_path_FGREP"
4911
4912
4913 test -z "$GREP" && GREP=grep
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933 # Check whether --with-gnu-ld was given.
4934 if test "${with_gnu_ld+set}" = set; then
4935 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4936 else
4937 with_gnu_ld=no
4938 fi
4939
4940 ac_prog=ld
4941 if test "$GCC" = yes; then
4942 # Check if gcc -print-prog-name=ld gives a path.
4943 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4944 $as_echo_n "checking for ld used by $CC... " >&6; }
4945 case $host in
4946 *-*-mingw*)
4947 # gcc leaves a trailing carriage return which upsets mingw
4948 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4949 *)
4950 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4951 esac
4952 case $ac_prog in
4953 # Accept absolute paths.
4954 [\\/]* | ?:[\\/]*)
4955 re_direlt='/[^/][^/]*/\.\./'
4956 # Canonicalize the pathname of ld
4957 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4958 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4959 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4960 done
4961 test -z "$LD" && LD="$ac_prog"
4962 ;;
4963 "")
4964 # If it fails, then pretend we aren't using GCC.
4965 ac_prog=ld
4966 ;;
4967 *)
4968 # If it is relative, then search for the first ld in PATH.
4969 with_gnu_ld=unknown
4970 ;;
4971 esac
4972 elif test "$with_gnu_ld" = yes; then
4973 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4974 $as_echo_n "checking for GNU ld... " >&6; }
4975 else
4976 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4977 $as_echo_n "checking for non-GNU ld... " >&6; }
4978 fi
4979 if test "${lt_cv_path_LD+set}" = set; then
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -z "$LD"; then
4983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4984 for ac_dir in $PATH; do
4985 IFS="$lt_save_ifs"
4986 test -z "$ac_dir" && ac_dir=.
4987 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4988 lt_cv_path_LD="$ac_dir/$ac_prog"
4989 # Check to see if the program is GNU ld. I'd rather use --version,
4990 # but apparently some variants of GNU ld only accept -v.
4991 # Break only if it was the GNU/non-GNU ld that we prefer.
4992 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4993 *GNU* | *'with BFD'*)
4994 test "$with_gnu_ld" != no && break
4995 ;;
4996 *)
4997 test "$with_gnu_ld" != yes && break
4998 ;;
4999 esac
5000 fi
5001 done
5002 IFS="$lt_save_ifs"
5003 else
5004 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5005 fi
5006 fi
5007
5008 LD="$lt_cv_path_LD"
5009 if test -n "$LD"; then
5010 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5011 $as_echo "$LD" >&6; }
5012 else
5013 { $as_echo "$as_me:$LINENO: result: no" >&5
5014 $as_echo "no" >&6; }
5015 fi
5016 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5017 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5018 { (exit 1); exit 1; }; }
5019 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5020 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5021 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5022 $as_echo_n "(cached) " >&6
5023 else
5024 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5025 case `$LD -v 2>&1 </dev/null` in
5026 *GNU* | *'with BFD'*)
5027 lt_cv_prog_gnu_ld=yes
5028 ;;
5029 *)
5030 lt_cv_prog_gnu_ld=no
5031 ;;
5032 esac
5033 fi
5034 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5035 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5036 with_gnu_ld=$lt_cv_prog_gnu_ld
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5047 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5048 if test "${lt_cv_path_NM+set}" = set; then
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if test -n "$NM"; then
5052 # Let the user override the test.
5053 lt_cv_path_NM="$NM"
5054 else
5055 lt_nm_to_check="${ac_tool_prefix}nm"
5056 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5057 lt_nm_to_check="$lt_nm_to_check nm"
5058 fi
5059 for lt_tmp_nm in $lt_nm_to_check; do
5060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5061 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5062 IFS="$lt_save_ifs"
5063 test -z "$ac_dir" && ac_dir=.
5064 tmp_nm="$ac_dir/$lt_tmp_nm"
5065 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5066 # Check to see if the nm accepts a BSD-compat flag.
5067 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5068 # nm: unknown option "B" ignored
5069 # Tru64's nm complains that /dev/null is an invalid object file
5070 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5071 */dev/null* | *'Invalid file or object type'*)
5072 lt_cv_path_NM="$tmp_nm -B"
5073 break
5074 ;;
5075 *)
5076 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5077 */dev/null*)
5078 lt_cv_path_NM="$tmp_nm -p"
5079 break
5080 ;;
5081 *)
5082 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5083 continue # so that we can try to find one that supports BSD flags
5084 ;;
5085 esac
5086 ;;
5087 esac
5088 fi
5089 done
5090 IFS="$lt_save_ifs"
5091 done
5092 : ${lt_cv_path_NM=no}
5093 fi
5094 fi
5095 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5096 $as_echo "$lt_cv_path_NM" >&6; }
5097 if test "$lt_cv_path_NM" != "no"; then
5098 NM="$lt_cv_path_NM"
5099 else
5100 # Didn't find any BSD compatible name lister, look for dumpbin.
5101 if test -n "$DUMPBIN"; then :
5102 # Let the user override the test.
5103 else
5104 if test -n "$ac_tool_prefix"; then
5105 for ac_prog in dumpbin "link -dump"
5106 do
5107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -n "$DUMPBIN"; then
5115 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5125 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5127 fi
5128 done
5129 done
5130 IFS=$as_save_IFS
5131
5132 fi
5133 fi
5134 DUMPBIN=$ac_cv_prog_DUMPBIN
5135 if test -n "$DUMPBIN"; then
5136 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5137 $as_echo "$DUMPBIN" >&6; }
5138 else
5139 { $as_echo "$as_me:$LINENO: result: no" >&5
5140 $as_echo "no" >&6; }
5141 fi
5142
5143
5144 test -n "$DUMPBIN" && break
5145 done
5146 fi
5147 if test -z "$DUMPBIN"; then
5148 ac_ct_DUMPBIN=$DUMPBIN
5149 for ac_prog in dumpbin "link -dump"
5150 do
5151 # Extract the first word of "$ac_prog", so it can be a program name with args.
5152 set dummy $ac_prog; ac_word=$2
5153 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$ac_ct_DUMPBIN"; then
5159 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172 done
5173 done
5174 IFS=$as_save_IFS
5175
5176 fi
5177 fi
5178 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5179 if test -n "$ac_ct_DUMPBIN"; then
5180 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5181 $as_echo "$ac_ct_DUMPBIN" >&6; }
5182 else
5183 { $as_echo "$as_me:$LINENO: result: no" >&5
5184 $as_echo "no" >&6; }
5185 fi
5186
5187
5188 test -n "$ac_ct_DUMPBIN" && break
5189 done
5190
5191 if test "x$ac_ct_DUMPBIN" = x; then
5192 DUMPBIN=":"
5193 else
5194 case $cross_compiling:$ac_tool_warned in
5195 yes:)
5196 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198 ac_tool_warned=yes ;;
5199 esac
5200 DUMPBIN=$ac_ct_DUMPBIN
5201 fi
5202 fi
5203
5204 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5205 *COFF*)
5206 DUMPBIN="$DUMPBIN -symbols"
5207 ;;
5208 *)
5209 DUMPBIN=:
5210 ;;
5211 esac
5212 fi
5213
5214 if test "$DUMPBIN" != ":"; then
5215 NM="$DUMPBIN"
5216 fi
5217 fi
5218 test -z "$NM" && NM=nm
5219
5220
5221
5222
5223
5224
5225 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5226 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5227 if test "${lt_cv_nm_interface+set}" = set; then
5228 $as_echo_n "(cached) " >&6
5229 else
5230 lt_cv_nm_interface="BSD nm"
5231 echo "int some_variable = 0;" > conftest.$ac_ext
5232 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5233 (eval "$ac_compile" 2>conftest.err)
5234 cat conftest.err >&5
5235 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5236 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5237 cat conftest.err >&5
5238 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5239 cat conftest.out >&5
5240 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5241 lt_cv_nm_interface="MS dumpbin"
5242 fi
5243 rm -f conftest*
5244 fi
5245 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5246 $as_echo "$lt_cv_nm_interface" >&6; }
5247
5248 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5249 $as_echo_n "checking whether ln -s works... " >&6; }
5250 LN_S=$as_ln_s
5251 if test "$LN_S" = "ln -s"; then
5252 { $as_echo "$as_me:$LINENO: result: yes" >&5
5253 $as_echo "yes" >&6; }
5254 else
5255 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5256 $as_echo "no, using $LN_S" >&6; }
5257 fi
5258
5259 # find the maximum length of command line arguments
5260 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5261 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5262 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5263 $as_echo_n "(cached) " >&6
5264 else
5265 i=0
5266 teststring="ABCD"
5267
5268 case $build_os in
5269 msdosdjgpp*)
5270 # On DJGPP, this test can blow up pretty badly due to problems in libc
5271 # (any single argument exceeding 2000 bytes causes a buffer overrun
5272 # during glob expansion). Even if it were fixed, the result of this
5273 # check would be larger than it should be.
5274 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5275 ;;
5276
5277 gnu*)
5278 # Under GNU Hurd, this test is not required because there is
5279 # no limit to the length of command line arguments.
5280 # Libtool will interpret -1 as no limit whatsoever
5281 lt_cv_sys_max_cmd_len=-1;
5282 ;;
5283
5284 cygwin* | mingw* | cegcc*)
5285 # On Win9x/ME, this test blows up -- it succeeds, but takes
5286 # about 5 minutes as the teststring grows exponentially.
5287 # Worse, since 9x/ME are not pre-emptively multitasking,
5288 # you end up with a "frozen" computer, even though with patience
5289 # the test eventually succeeds (with a max line length of 256k).
5290 # Instead, let's just punt: use the minimum linelength reported by
5291 # all of the supported platforms: 8192 (on NT/2K/XP).
5292 lt_cv_sys_max_cmd_len=8192;
5293 ;;
5294
5295 mint*)
5296 # On MiNT this can take a long time and run out of memory.
5297 lt_cv_sys_max_cmd_len=8192;
5298 ;;
5299
5300 amigaos*)
5301 # On AmigaOS with pdksh, this test takes hours, literally.
5302 # So we just punt and use a minimum line length of 8192.
5303 lt_cv_sys_max_cmd_len=8192;
5304 ;;
5305
5306 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5307 # This has been around since 386BSD, at least. Likely further.
5308 if test -x /sbin/sysctl; then
5309 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5310 elif test -x /usr/sbin/sysctl; then
5311 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5312 else
5313 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5314 fi
5315 # And add a safety zone
5316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5318 ;;
5319
5320 interix*)
5321 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5322 lt_cv_sys_max_cmd_len=196608
5323 ;;
5324
5325 osf*)
5326 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5327 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5328 # nice to cause kernel panics so lets avoid the loop below.
5329 # First set a reasonable default.
5330 lt_cv_sys_max_cmd_len=16384
5331 #
5332 if test -x /sbin/sysconfig; then
5333 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5334 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5335 esac
5336 fi
5337 ;;
5338 sco3.2v5*)
5339 lt_cv_sys_max_cmd_len=102400
5340 ;;
5341 sysv5* | sco5v6* | sysv4.2uw2*)
5342 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5343 if test -n "$kargmax"; then
5344 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5345 else
5346 lt_cv_sys_max_cmd_len=32768
5347 fi
5348 ;;
5349 *)
5350 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5351 if test -n "$lt_cv_sys_max_cmd_len"; then
5352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5354 else
5355 # Make teststring a little bigger before we do anything with it.
5356 # a 1K string should be a reasonable start.
5357 for i in 1 2 3 4 5 6 7 8 ; do
5358 teststring=$teststring$teststring
5359 done
5360 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5361 # If test is not a shell built-in, we'll probably end up computing a
5362 # maximum length that is only half of the actual maximum length, but
5363 # we can't tell.
5364 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5365 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5366 test $i != 17 # 1/2 MB should be enough
5367 do
5368 i=`expr $i + 1`
5369 teststring=$teststring$teststring
5370 done
5371 # Only check the string length outside the loop.
5372 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5373 teststring=
5374 # Add a significant safety factor because C++ compilers can tack on
5375 # massive amounts of additional arguments before passing them to the
5376 # linker. It appears as though 1/2 is a usable value.
5377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5378 fi
5379 ;;
5380 esac
5381
5382 fi
5383
5384 if test -n $lt_cv_sys_max_cmd_len ; then
5385 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5386 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5387 else
5388 { $as_echo "$as_me:$LINENO: result: none" >&5
5389 $as_echo "none" >&6; }
5390 fi
5391 max_cmd_len=$lt_cv_sys_max_cmd_len
5392
5393
5394
5395
5396
5397
5398 : ${CP="cp -f"}
5399 : ${MV="mv -f"}
5400 : ${RM="rm -f"}
5401
5402 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5403 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5404 # Try some XSI features
5405 xsi_shell=no
5406 ( _lt_dummy="a/b/c"
5407 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5408 = c,a/b,b/c, \
5409 && eval 'test $(( 1 + 1 )) -eq 2 \
5410 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5411 && xsi_shell=yes
5412 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5413 $as_echo "$xsi_shell" >&6; }
5414
5415
5416 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5417 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5418 lt_shell_append=no
5419 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5420 >/dev/null 2>&1 \
5421 && lt_shell_append=yes
5422 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5423 $as_echo "$lt_shell_append" >&6; }
5424
5425
5426 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5427 lt_unset=unset
5428 else
5429 lt_unset=false
5430 fi
5431
5432
5433
5434
5435
5436 # test EBCDIC or ASCII
5437 case `echo X|tr X '\101'` in
5438 A) # ASCII based system
5439 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5440 lt_SP2NL='tr \040 \012'
5441 lt_NL2SP='tr \015\012 \040\040'
5442 ;;
5443 *) # EBCDIC based system
5444 lt_SP2NL='tr \100 \n'
5445 lt_NL2SP='tr \r\n \100\100'
5446 ;;
5447 esac
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457 { $as_echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
5458 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5459 if test "${lt_cv_to_host_file_cmd+set}" = set; then
5460 $as_echo_n "(cached) " >&6
5461 else
5462 case $host in
5463 *-*-mingw* )
5464 case $build in
5465 *-*-mingw* ) # actually msys
5466 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5467 ;;
5468 *-*-cygwin* )
5469 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5470 ;;
5471 * ) # otherwise, assume *nix
5472 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5473 ;;
5474 esac
5475 ;;
5476 *-*-cygwin* )
5477 case $build in
5478 *-*-mingw* ) # actually msys
5479 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5480 ;;
5481 *-*-cygwin* )
5482 lt_cv_to_host_file_cmd=func_convert_file_noop
5483 ;;
5484 * ) # otherwise, assume *nix
5485 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5486 ;;
5487 esac
5488 ;;
5489 * ) # unhandled hosts (and "normal" native builds)
5490 lt_cv_to_host_file_cmd=func_convert_file_noop
5491 ;;
5492 esac
5493
5494 fi
5495
5496 to_host_file_cmd=$lt_cv_to_host_file_cmd
5497 { $as_echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
5498 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5499
5500
5501
5502
5503
5504 { $as_echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
5505 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5506 if test "${lt_cv_to_tool_file_cmd+set}" = set; then
5507 $as_echo_n "(cached) " >&6
5508 else
5509 #assume ordinary cross tools, or native build.
5510 lt_cv_to_tool_file_cmd=func_convert_file_noop
5511 case $host in
5512 *-*-mingw* )
5513 case $build in
5514 *-*-mingw* ) # actually msys
5515 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5516 ;;
5517 esac
5518 ;;
5519 esac
5520
5521 fi
5522
5523 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5524 { $as_echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
5525 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5526
5527
5528
5529
5530
5531 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5532 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5533 if test "${lt_cv_ld_reload_flag+set}" = set; then
5534 $as_echo_n "(cached) " >&6
5535 else
5536 lt_cv_ld_reload_flag='-r'
5537 fi
5538 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5539 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5540 reload_flag=$lt_cv_ld_reload_flag
5541 case $reload_flag in
5542 "" | " "*) ;;
5543 *) reload_flag=" $reload_flag" ;;
5544 esac
5545 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5546 case $host_os in
5547 cygwin* | mingw* | pw32* | cegcc*)
5548 if test "$GCC" != yes; then
5549 reload_cmds=false
5550 fi
5551 ;;
5552 darwin*)
5553 if test "$GCC" = yes; then
5554 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5555 else
5556 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5557 fi
5558 ;;
5559 esac
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569 if test -n "$ac_tool_prefix"; then
5570 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5571 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5575 $as_echo_n "(cached) " >&6
5576 else
5577 if test -n "$OBJDUMP"; then
5578 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5588 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591 done
5592 done
5593 IFS=$as_save_IFS
5594
5595 fi
5596 fi
5597 OBJDUMP=$ac_cv_prog_OBJDUMP
5598 if test -n "$OBJDUMP"; then
5599 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5600 $as_echo "$OBJDUMP" >&6; }
5601 else
5602 { $as_echo "$as_me:$LINENO: result: no" >&5
5603 $as_echo "no" >&6; }
5604 fi
5605
5606
5607 fi
5608 if test -z "$ac_cv_prog_OBJDUMP"; then
5609 ac_ct_OBJDUMP=$OBJDUMP
5610 # Extract the first word of "objdump", so it can be a program name with args.
5611 set dummy objdump; ac_word=$2
5612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5615 $as_echo_n "(cached) " >&6
5616 else
5617 if test -n "$ac_ct_OBJDUMP"; then
5618 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631 done
5632 done
5633 IFS=$as_save_IFS
5634
5635 fi
5636 fi
5637 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5638 if test -n "$ac_ct_OBJDUMP"; then
5639 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5640 $as_echo "$ac_ct_OBJDUMP" >&6; }
5641 else
5642 { $as_echo "$as_me:$LINENO: result: no" >&5
5643 $as_echo "no" >&6; }
5644 fi
5645
5646 if test "x$ac_ct_OBJDUMP" = x; then
5647 OBJDUMP="false"
5648 else
5649 case $cross_compiling:$ac_tool_warned in
5650 yes:)
5651 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5653 ac_tool_warned=yes ;;
5654 esac
5655 OBJDUMP=$ac_ct_OBJDUMP
5656 fi
5657 else
5658 OBJDUMP="$ac_cv_prog_OBJDUMP"
5659 fi
5660
5661 test -z "$OBJDUMP" && OBJDUMP=objdump
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5672 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5673 if test "${lt_cv_deplibs_check_method+set}" = set; then
5674 $as_echo_n "(cached) " >&6
5675 else
5676 lt_cv_file_magic_cmd='$MAGIC_CMD'
5677 lt_cv_file_magic_test_file=
5678 lt_cv_deplibs_check_method='unknown'
5679 # Need to set the preceding variable on all platforms that support
5680 # interlibrary dependencies.
5681 # 'none' -- dependencies not supported.
5682 # `unknown' -- same as none, but documents that we really don't know.
5683 # 'pass_all' -- all dependencies passed with no checks.
5684 # 'test_compile' -- check by making test program.
5685 # 'file_magic [[regex]]' -- check by looking for files in library path
5686 # which responds to the $file_magic_cmd with a given extended regex.
5687 # If you have `file' or equivalent on your system and you're not sure
5688 # whether `pass_all' will *always* work, you probably want this one.
5689
5690 case $host_os in
5691 aix[4-9]*)
5692 lt_cv_deplibs_check_method=pass_all
5693 ;;
5694
5695 beos*)
5696 lt_cv_deplibs_check_method=pass_all
5697 ;;
5698
5699 bsdi[45]*)
5700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5701 lt_cv_file_magic_cmd='/usr/bin/file -L'
5702 lt_cv_file_magic_test_file=/shlib/libc.so
5703 ;;
5704
5705 cygwin*)
5706 # func_win32_libid is a shell function defined in ltmain.sh
5707 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5708 lt_cv_file_magic_cmd='func_win32_libid'
5709 ;;
5710
5711 mingw* | pw32*)
5712 # Base MSYS/MinGW do not provide the 'file' command needed by
5713 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5714 # unless we find 'file', for example because we are cross-compiling.
5715 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5716 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5717 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5718 lt_cv_file_magic_cmd='func_win32_libid'
5719 else
5720 # Keep this pattern in sync with the one in func_win32_libid.
5721 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5722 lt_cv_file_magic_cmd='$OBJDUMP -f'
5723 fi
5724 ;;
5725
5726 cegcc*)
5727 # use the weaker test based on 'objdump'. See mingw*.
5728 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5729 lt_cv_file_magic_cmd='$OBJDUMP -f'
5730 ;;
5731
5732 darwin* | rhapsody*)
5733 lt_cv_deplibs_check_method=pass_all
5734 ;;
5735
5736 freebsd* | dragonfly*)
5737 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5738 case $host_cpu in
5739 i*86 )
5740 # Not sure whether the presence of OpenBSD here was a mistake.
5741 # Let's accept both of them until this is cleared up.
5742 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5743 lt_cv_file_magic_cmd=/usr/bin/file
5744 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5745 ;;
5746 esac
5747 else
5748 lt_cv_deplibs_check_method=pass_all
5749 fi
5750 ;;
5751
5752 gnu*)
5753 lt_cv_deplibs_check_method=pass_all
5754 ;;
5755
5756 haiku*)
5757 lt_cv_deplibs_check_method=pass_all
5758 ;;
5759
5760 hpux10.20* | hpux11*)
5761 lt_cv_file_magic_cmd=/usr/bin/file
5762 case $host_cpu in
5763 ia64*)
5764 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5765 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5766 ;;
5767 hppa*64*)
5768 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]'
5769 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5770 ;;
5771 *)
5772 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5773 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5774 ;;
5775 esac
5776 ;;
5777
5778 interix[3-9]*)
5779 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5781 ;;
5782
5783 irix5* | irix6* | nonstopux*)
5784 case $LD in
5785 *-32|*"-32 ") libmagic=32-bit;;
5786 *-n32|*"-n32 ") libmagic=N32;;
5787 *-64|*"-64 ") libmagic=64-bit;;
5788 *) libmagic=never-match;;
5789 esac
5790 lt_cv_deplibs_check_method=pass_all
5791 ;;
5792
5793 # This must be Linux ELF.
5794 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5795 lt_cv_deplibs_check_method=pass_all
5796 ;;
5797
5798 netbsd*)
5799 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5801 else
5802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5803 fi
5804 ;;
5805
5806 newos6*)
5807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5808 lt_cv_file_magic_cmd=/usr/bin/file
5809 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5810 ;;
5811
5812 *nto* | *qnx*)
5813 lt_cv_deplibs_check_method=pass_all
5814 ;;
5815
5816 openbsd*)
5817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5819 else
5820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5821 fi
5822 ;;
5823
5824 osf3* | osf4* | osf5*)
5825 lt_cv_deplibs_check_method=pass_all
5826 ;;
5827
5828 rdos*)
5829 lt_cv_deplibs_check_method=pass_all
5830 ;;
5831
5832 solaris*)
5833 lt_cv_deplibs_check_method=pass_all
5834 ;;
5835
5836 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5837 lt_cv_deplibs_check_method=pass_all
5838 ;;
5839
5840 sysv4 | sysv4.3*)
5841 case $host_vendor in
5842 motorola)
5843 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]'
5844 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5845 ;;
5846 ncr)
5847 lt_cv_deplibs_check_method=pass_all
5848 ;;
5849 sequent)
5850 lt_cv_file_magic_cmd='/bin/file'
5851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5852 ;;
5853 sni)
5854 lt_cv_file_magic_cmd='/bin/file'
5855 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5856 lt_cv_file_magic_test_file=/lib/libc.so
5857 ;;
5858 siemens)
5859 lt_cv_deplibs_check_method=pass_all
5860 ;;
5861 pc)
5862 lt_cv_deplibs_check_method=pass_all
5863 ;;
5864 esac
5865 ;;
5866
5867 tpf*)
5868 lt_cv_deplibs_check_method=pass_all
5869 ;;
5870 esac
5871
5872 fi
5873 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5874 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5875
5876 file_magic_glob=
5877 want_nocaseglob=no
5878 if test "$build" = "$host"; then
5879 case $host_os in
5880 mingw* | pw32*)
5881 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5882 want_nocaseglob=yes
5883 else
5884 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5885 fi
5886 ;;
5887 esac
5888 fi
5889
5890 file_magic_cmd=$lt_cv_file_magic_cmd
5891 deplibs_check_method=$lt_cv_deplibs_check_method
5892 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915 if test -n "$ac_tool_prefix"; then
5916 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5917 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if test -n "$DLLTOOL"; then
5924 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937 done
5938 done
5939 IFS=$as_save_IFS
5940
5941 fi
5942 fi
5943 DLLTOOL=$ac_cv_prog_DLLTOOL
5944 if test -n "$DLLTOOL"; then
5945 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5946 $as_echo "$DLLTOOL" >&6; }
5947 else
5948 { $as_echo "$as_me:$LINENO: result: no" >&5
5949 $as_echo "no" >&6; }
5950 fi
5951
5952
5953 fi
5954 if test -z "$ac_cv_prog_DLLTOOL"; then
5955 ac_ct_DLLTOOL=$DLLTOOL
5956 # Extract the first word of "dlltool", so it can be a program name with args.
5957 set dummy dlltool; ac_word=$2
5958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -n "$ac_ct_DLLTOOL"; then
5964 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5984 if test -n "$ac_ct_DLLTOOL"; then
5985 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5986 $as_echo "$ac_ct_DLLTOOL" >&6; }
5987 else
5988 { $as_echo "$as_me:$LINENO: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991
5992 if test "x$ac_ct_DLLTOOL" = x; then
5993 DLLTOOL="false"
5994 else
5995 case $cross_compiling:$ac_tool_warned in
5996 yes:)
5997 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5999 ac_tool_warned=yes ;;
6000 esac
6001 DLLTOOL=$ac_ct_DLLTOOL
6002 fi
6003 else
6004 DLLTOOL="$ac_cv_prog_DLLTOOL"
6005 fi
6006
6007 test -z "$DLLTOOL" && DLLTOOL=dlltool
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018 { $as_echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
6019 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6020 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
6021 $as_echo_n "(cached) " >&6
6022 else
6023 lt_cv_sharedlib_from_linklib_cmd='unknown'
6024
6025 case $host_os in
6026 cygwin* | mingw* | pw32* | cegcc*)
6027 # two different shell functions defined in ltmain.sh
6028 # decide which to use based on capabilities of $DLLTOOL
6029 case `$DLLTOOL --help 2>&1` in
6030 *--identify-strict*)
6031 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6032 ;;
6033 *)
6034 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6035 ;;
6036 esac
6037 ;;
6038 *)
6039 # fallback: assume linklib IS sharedlib
6040 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6041 ;;
6042 esac
6043
6044 fi
6045 { $as_echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6046 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6047 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6048 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6049
6050
6051
6052
6053
6054
6055
6056
6057 if test -n "$ac_tool_prefix"; then
6058 for ac_prog in ar
6059 do
6060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if test "${ac_cv_prog_AR+set}" = set; then
6065 $as_echo_n "(cached) " >&6
6066 else
6067 if test -n "$AR"; then
6068 ac_cv_prog_AR="$AR" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6072 do
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 break 2
6080 fi
6081 done
6082 done
6083 IFS=$as_save_IFS
6084
6085 fi
6086 fi
6087 AR=$ac_cv_prog_AR
6088 if test -n "$AR"; then
6089 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6090 $as_echo "$AR" >&6; }
6091 else
6092 { $as_echo "$as_me:$LINENO: result: no" >&5
6093 $as_echo "no" >&6; }
6094 fi
6095
6096
6097 test -n "$AR" && break
6098 done
6099 fi
6100 if test -z "$AR"; then
6101 ac_ct_AR=$AR
6102 for ac_prog in ar
6103 do
6104 # Extract the first word of "$ac_prog", so it can be a program name with args.
6105 set dummy $ac_prog; ac_word=$2
6106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6109 $as_echo_n "(cached) " >&6
6110 else
6111 if test -n "$ac_ct_AR"; then
6112 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121 ac_cv_prog_ac_ct_AR="$ac_prog"
6122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6132 if test -n "$ac_ct_AR"; then
6133 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6134 $as_echo "$ac_ct_AR" >&6; }
6135 else
6136 { $as_echo "$as_me:$LINENO: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140
6141 test -n "$ac_ct_AR" && break
6142 done
6143
6144 if test "x$ac_ct_AR" = x; then
6145 AR="false"
6146 else
6147 case $cross_compiling:$ac_tool_warned in
6148 yes:)
6149 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151 ac_tool_warned=yes ;;
6152 esac
6153 AR=$ac_ct_AR
6154 fi
6155 fi
6156
6157 : ${AR=ar}
6158 : ${AR_FLAGS=cru}
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170 { $as_echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
6171 $as_echo_n "checking for archiver @FILE support... " >&6; }
6172 if test "${lt_cv_ar_at_file+set}" = set; then
6173 $as_echo_n "(cached) " >&6
6174 else
6175 lt_cv_ar_at_file=no
6176 cat >conftest.$ac_ext <<_ACEOF
6177 /* confdefs.h. */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6182
6183 int
6184 main ()
6185 {
6186
6187 ;
6188 return 0;
6189 }
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (ac_try="$ac_compile"
6193 case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196 esac
6197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6198 $as_echo "$ac_try_echo") >&5
6199 (eval "$ac_compile") 2>conftest.er1
6200 ac_status=$?
6201 grep -v '^ *+' conftest.er1 >conftest.err
6202 rm -f conftest.er1
6203 cat conftest.err >&5
6204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && {
6206 test -z "$ac_c_werror_flag" ||
6207 test ! -s conftest.err
6208 } && test -s conftest.$ac_objext; then
6209 echo conftest.$ac_objext > conftest.lst
6210 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6211 { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
6212 (eval $lt_ar_try) 2>&5
6213 ac_status=$?
6214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }
6216 if test "$ac_status" -eq 0; then
6217 # Ensure the archiver fails upon bogus file names.
6218 rm -f conftest.$ac_objext libconftest.a
6219 { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
6220 (eval $lt_ar_try) 2>&5
6221 ac_status=$?
6222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }
6224 if test "$ac_status" -ne 0; then
6225 lt_cv_ar_at_file=@
6226 fi
6227 fi
6228 rm -f conftest.* libconftest.a
6229
6230 else
6231 $as_echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234
6235 fi
6236
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238
6239 fi
6240 { $as_echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
6241 $as_echo "$lt_cv_ar_at_file" >&6; }
6242
6243 if test "x$lt_cv_ar_at_file" = xno; then
6244 archiver_list_spec=
6245 else
6246 archiver_list_spec=$lt_cv_ar_at_file
6247 fi
6248
6249
6250
6251
6252
6253
6254
6255 if test -n "$ac_tool_prefix"; then
6256 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6257 set dummy ${ac_tool_prefix}strip; ac_word=$2
6258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if test "${ac_cv_prog_STRIP+set}" = set; then
6261 $as_echo_n "(cached) " >&6
6262 else
6263 if test -n "$STRIP"; then
6264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 break 2
6276 fi
6277 done
6278 done
6279 IFS=$as_save_IFS
6280
6281 fi
6282 fi
6283 STRIP=$ac_cv_prog_STRIP
6284 if test -n "$STRIP"; then
6285 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6286 $as_echo "$STRIP" >&6; }
6287 else
6288 { $as_echo "$as_me:$LINENO: result: no" >&5
6289 $as_echo "no" >&6; }
6290 fi
6291
6292
6293 fi
6294 if test -z "$ac_cv_prog_STRIP"; then
6295 ac_ct_STRIP=$STRIP
6296 # Extract the first word of "strip", so it can be a program name with args.
6297 set dummy strip; ac_word=$2
6298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6301 $as_echo_n "(cached) " >&6
6302 else
6303 if test -n "$ac_ct_STRIP"; then
6304 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6305 else
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH
6308 do
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6313 ac_cv_prog_ac_ct_STRIP="strip"
6314 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6316 fi
6317 done
6318 done
6319 IFS=$as_save_IFS
6320
6321 fi
6322 fi
6323 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6324 if test -n "$ac_ct_STRIP"; then
6325 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6326 $as_echo "$ac_ct_STRIP" >&6; }
6327 else
6328 { $as_echo "$as_me:$LINENO: result: no" >&5
6329 $as_echo "no" >&6; }
6330 fi
6331
6332 if test "x$ac_ct_STRIP" = x; then
6333 STRIP=":"
6334 else
6335 case $cross_compiling:$ac_tool_warned in
6336 yes:)
6337 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6339 ac_tool_warned=yes ;;
6340 esac
6341 STRIP=$ac_ct_STRIP
6342 fi
6343 else
6344 STRIP="$ac_cv_prog_STRIP"
6345 fi
6346
6347 test -z "$STRIP" && STRIP=:
6348
6349
6350
6351
6352
6353
6354 if test -n "$ac_tool_prefix"; then
6355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if test "${ac_cv_prog_RANLIB+set}" = set; then
6360 $as_echo_n "(cached) " >&6
6361 else
6362 if test -n "$RANLIB"; then
6363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6375 fi
6376 done
6377 done
6378 IFS=$as_save_IFS
6379
6380 fi
6381 fi
6382 RANLIB=$ac_cv_prog_RANLIB
6383 if test -n "$RANLIB"; then
6384 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6385 $as_echo "$RANLIB" >&6; }
6386 else
6387 { $as_echo "$as_me:$LINENO: result: no" >&5
6388 $as_echo "no" >&6; }
6389 fi
6390
6391
6392 fi
6393 if test -z "$ac_cv_prog_RANLIB"; then
6394 ac_ct_RANLIB=$RANLIB
6395 # Extract the first word of "ranlib", so it can be a program name with args.
6396 set dummy ranlib; ac_word=$2
6397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6400 $as_echo_n "(cached) " >&6
6401 else
6402 if test -n "$ac_ct_RANLIB"; then
6403 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6407 do
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_prog_ac_ct_RANLIB="ranlib"
6413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6415 fi
6416 done
6417 done
6418 IFS=$as_save_IFS
6419
6420 fi
6421 fi
6422 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6423 if test -n "$ac_ct_RANLIB"; then
6424 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6425 $as_echo "$ac_ct_RANLIB" >&6; }
6426 else
6427 { $as_echo "$as_me:$LINENO: result: no" >&5
6428 $as_echo "no" >&6; }
6429 fi
6430
6431 if test "x$ac_ct_RANLIB" = x; then
6432 RANLIB=":"
6433 else
6434 case $cross_compiling:$ac_tool_warned in
6435 yes:)
6436 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6438 ac_tool_warned=yes ;;
6439 esac
6440 RANLIB=$ac_ct_RANLIB
6441 fi
6442 else
6443 RANLIB="$ac_cv_prog_RANLIB"
6444 fi
6445
6446 test -z "$RANLIB" && RANLIB=:
6447
6448
6449
6450
6451
6452
6453 # Determine commands to create old-style static archives.
6454 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6455 old_postinstall_cmds='chmod 644 $oldlib'
6456 old_postuninstall_cmds=
6457
6458 if test -n "$RANLIB"; then
6459 case $host_os in
6460 openbsd*)
6461 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6462 ;;
6463 *)
6464 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6465 ;;
6466 esac
6467 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6468 fi
6469
6470 case $host_os in
6471 darwin*)
6472 lock_old_archive_extraction=yes ;;
6473 *)
6474 lock_old_archive_extraction=no ;;
6475 esac
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515 # If no C compiler was specified, use CC.
6516 LTCC=${LTCC-"$CC"}
6517
6518 # If no C compiler flags were specified, use CFLAGS.
6519 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6520
6521 # Allow CC to be a program name with arguments.
6522 compiler=$CC
6523
6524
6525 # Check for command to grab the raw symbol name followed by C symbol from nm.
6526 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6527 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6528 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6529 $as_echo_n "(cached) " >&6
6530 else
6531
6532 # These are sane defaults that work on at least a few old systems.
6533 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6534
6535 # Character class describing NM global symbol codes.
6536 symcode='[BCDEGRST]'
6537
6538 # Regexp to match symbols that can be accessed directly from C.
6539 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6540
6541 # Define system-specific variables.
6542 case $host_os in
6543 aix*)
6544 symcode='[BCDT]'
6545 ;;
6546 cygwin* | mingw* | pw32* | cegcc*)
6547 symcode='[ABCDGISTW]'
6548 ;;
6549 hpux*)
6550 if test "$host_cpu" = ia64; then
6551 symcode='[ABCDEGRST]'
6552 fi
6553 ;;
6554 irix* | nonstopux*)
6555 symcode='[BCDEGRST]'
6556 ;;
6557 osf*)
6558 symcode='[BCDEGQRST]'
6559 ;;
6560 solaris*)
6561 symcode='[BDRT]'
6562 ;;
6563 sco3.2v5*)
6564 symcode='[DT]'
6565 ;;
6566 sysv4.2uw2*)
6567 symcode='[DT]'
6568 ;;
6569 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6570 symcode='[ABDT]'
6571 ;;
6572 sysv4)
6573 symcode='[DFNSTU]'
6574 ;;
6575 esac
6576
6577 # If we're using GNU nm, then use its standard symbol codes.
6578 case `$NM -V 2>&1` in
6579 *GNU* | *'with BFD'*)
6580 symcode='[ABCDGIRSTW]' ;;
6581 esac
6582
6583 # Transform an extracted symbol line into a proper C declaration.
6584 # Some systems (esp. on ia64) link data and code symbols differently,
6585 # so use this general approach.
6586 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6587
6588 # Transform an extracted symbol line into symbol name and symbol address
6589 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6590 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'"
6591
6592 # Handle CRLF in mingw tool chain
6593 opt_cr=
6594 case $build_os in
6595 mingw*)
6596 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6597 ;;
6598 esac
6599
6600 # Try without a prefix underscore, then with it.
6601 for ac_symprfx in "" "_"; do
6602
6603 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6604 symxfrm="\\1 $ac_symprfx\\2 \\2"
6605
6606 # Write the raw and C identifiers.
6607 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6608 # Fake it for dumpbin and say T for any non-static function
6609 # and D for any global variable.
6610 # Also find C++ and __fastcall symbols from MSVC++,
6611 # which start with @ or ?.
6612 lt_cv_sys_global_symbol_pipe="$AWK '"\
6613 " {last_section=section; section=\$ 3};"\
6614 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6615 " \$ 0!~/External *\|/{next};"\
6616 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6617 " {if(hide[section]) next};"\
6618 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6619 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6620 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6621 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6622 " ' prfx=^$ac_symprfx"
6623 else
6624 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6625 fi
6626 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6627
6628 # Check to see that the pipe works correctly.
6629 pipe_works=no
6630
6631 rm -f conftest*
6632 cat > conftest.$ac_ext <<_LT_EOF
6633 #ifdef __cplusplus
6634 extern "C" {
6635 #endif
6636 char nm_test_var;
6637 void nm_test_func(void);
6638 void nm_test_func(void){}
6639 #ifdef __cplusplus
6640 }
6641 #endif
6642 int main(){nm_test_var='a';nm_test_func();return(0);}
6643 _LT_EOF
6644
6645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646 (eval $ac_compile) 2>&5
6647 ac_status=$?
6648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; then
6650 # Now try to grab the symbols.
6651 nlist=conftest.nm
6652 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
6653 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6654 ac_status=$?
6655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } && test -s "$nlist"; then
6657 # Try sorting and uniquifying the output.
6658 if sort "$nlist" | uniq > "$nlist"T; then
6659 mv -f "$nlist"T "$nlist"
6660 else
6661 rm -f "$nlist"T
6662 fi
6663
6664 # Make sure that we snagged all the symbols we need.
6665 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6666 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6667 cat <<_LT_EOF > conftest.$ac_ext
6668 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6669 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6670 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6671 relocations are performed -- see ld's documentation on pseudo-relocs. */
6672 # define LT_DLSYM_CONST
6673 #elif defined(__osf__)
6674 /* This system does not cope well with relocations in const data. */
6675 # define LT_DLSYM_CONST
6676 #else
6677 # define LT_DLSYM_CONST const
6678 #endif
6679
6680 #ifdef __cplusplus
6681 extern "C" {
6682 #endif
6683
6684 _LT_EOF
6685 # Now generate the symbol file.
6686 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6687
6688 cat <<_LT_EOF >> conftest.$ac_ext
6689
6690 /* The mapping between symbol names and symbols. */
6691 LT_DLSYM_CONST struct {
6692 const char *name;
6693 void *address;
6694 }
6695 lt__PROGRAM__LTX_preloaded_symbols[] =
6696 {
6697 { "@PROGRAM@", (void *) 0 },
6698 _LT_EOF
6699 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6700 cat <<\_LT_EOF >> conftest.$ac_ext
6701 {0, (void *) 0}
6702 };
6703
6704 /* This works around a problem in FreeBSD linker */
6705 #ifdef FREEBSD_WORKAROUND
6706 static const void *lt_preloaded_setup() {
6707 return lt__PROGRAM__LTX_preloaded_symbols;
6708 }
6709 #endif
6710
6711 #ifdef __cplusplus
6712 }
6713 #endif
6714 _LT_EOF
6715 # Now try linking the two files.
6716 mv conftest.$ac_objext conftstm.$ac_objext
6717 lt_globsym_save_LIBS=$LIBS
6718 lt_globsym_save_CFLAGS=$CFLAGS
6719 LIBS="conftstm.$ac_objext"
6720 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6722 (eval $ac_link) 2>&5
6723 ac_status=$?
6724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6726 pipe_works=yes
6727 fi
6728 LIBS=$lt_globsym_save_LIBS
6729 CFLAGS=$lt_globsym_save_CFLAGS
6730 else
6731 echo "cannot find nm_test_func in $nlist" >&5
6732 fi
6733 else
6734 echo "cannot find nm_test_var in $nlist" >&5
6735 fi
6736 else
6737 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6738 fi
6739 else
6740 echo "$progname: failed program was:" >&5
6741 cat conftest.$ac_ext >&5
6742 fi
6743 rm -rf conftest* conftst*
6744
6745 # Do not use the global_symbol_pipe unless it works.
6746 if test "$pipe_works" = yes; then
6747 break
6748 else
6749 lt_cv_sys_global_symbol_pipe=
6750 fi
6751 done
6752
6753 fi
6754
6755 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6756 lt_cv_sys_global_symbol_to_cdecl=
6757 fi
6758 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6759 { $as_echo "$as_me:$LINENO: result: failed" >&5
6760 $as_echo "failed" >&6; }
6761 else
6762 { $as_echo "$as_me:$LINENO: result: ok" >&5
6763 $as_echo "ok" >&6; }
6764 fi
6765
6766 # Response file support.
6767 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6768 nm_file_list_spec='@'
6769 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6770 nm_file_list_spec='@'
6771 fi
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799 { $as_echo "$as_me:$LINENO: checking for sysroot" >&5
6800 $as_echo_n "checking for sysroot... " >&6; }
6801
6802 # Check whether --with-sysroot was given.
6803 if test "${with_sysroot+set}" = set; then
6804 withval=$with_sysroot;
6805 else
6806 with_sysroot=no
6807 fi
6808
6809
6810 lt_sysroot=
6811 case ${with_sysroot} in #(
6812 yes)
6813 if test "$GCC" = yes; then
6814 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6815 fi
6816 ;; #(
6817 /*)
6818 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6819 ;; #(
6820 no|'')
6821 ;; #(
6822 *)
6823 { $as_echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
6824 $as_echo "${with_sysroot}" >&6; }
6825 { { $as_echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
6826 $as_echo "$as_me: error: The sysroot must be an absolute path." >&2;}
6827 { (exit 1); exit 1; }; }
6828 ;;
6829 esac
6830
6831 { $as_echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
6832 $as_echo "${lt_sysroot:-no}" >&6; }
6833
6834
6835
6836
6837
6838 # Check whether --enable-libtool-lock was given.
6839 if test "${enable_libtool_lock+set}" = set; then
6840 enableval=$enable_libtool_lock;
6841 fi
6842
6843 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6844
6845 # Some flags need to be propagated to the compiler or linker for good
6846 # libtool support.
6847 case $host in
6848 ia64-*-hpux*)
6849 # Find out which ABI we are using.
6850 echo 'int i;' > conftest.$ac_ext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852 (eval $ac_compile) 2>&5
6853 ac_status=$?
6854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; then
6856 case `/usr/bin/file conftest.$ac_objext` in
6857 *ELF-32*)
6858 HPUX_IA64_MODE="32"
6859 ;;
6860 *ELF-64*)
6861 HPUX_IA64_MODE="64"
6862 ;;
6863 esac
6864 fi
6865 rm -rf conftest*
6866 ;;
6867 *-*-irix6*)
6868 # Find out which ABI we are using.
6869 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>&5
6872 ac_status=$?
6873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; then
6875 if test "$lt_cv_prog_gnu_ld" = yes; then
6876 case `/usr/bin/file conftest.$ac_objext` in
6877 *32-bit*)
6878 LD="${LD-ld} -melf32bsmip"
6879 ;;
6880 *N32*)
6881 LD="${LD-ld} -melf32bmipn32"
6882 ;;
6883 *64-bit*)
6884 LD="${LD-ld} -melf64bmip"
6885 ;;
6886 esac
6887 else
6888 case `/usr/bin/file conftest.$ac_objext` in
6889 *32-bit*)
6890 LD="${LD-ld} -32"
6891 ;;
6892 *N32*)
6893 LD="${LD-ld} -n32"
6894 ;;
6895 *64-bit*)
6896 LD="${LD-ld} -64"
6897 ;;
6898 esac
6899 fi
6900 fi
6901 rm -rf conftest*
6902 ;;
6903
6904 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6905 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6906 # Find out which ABI we are using.
6907 echo 'int i;' > conftest.$ac_ext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6909 (eval $ac_compile) 2>&5
6910 ac_status=$?
6911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; then
6913 case `/usr/bin/file conftest.o` in
6914 *32-bit*)
6915 case $host in
6916 x86_64-*kfreebsd*-gnu)
6917 LD="${LD-ld} -m elf_i386_fbsd"
6918 ;;
6919 x86_64-*linux*)
6920 LD="${LD-ld} -m elf_i386"
6921 ;;
6922 ppc64-*linux*|powerpc64-*linux*)
6923 LD="${LD-ld} -m elf32ppclinux"
6924 ;;
6925 s390x-*linux*)
6926 LD="${LD-ld} -m elf_s390"
6927 ;;
6928 sparc64-*linux*)
6929 LD="${LD-ld} -m elf32_sparc"
6930 ;;
6931 esac
6932 ;;
6933 *64-bit*)
6934 case $host in
6935 x86_64-*kfreebsd*-gnu)
6936 LD="${LD-ld} -m elf_x86_64_fbsd"
6937 ;;
6938 x86_64-*linux*)
6939 LD="${LD-ld} -m elf_x86_64"
6940 ;;
6941 ppc*-*linux*|powerpc*-*linux*)
6942 LD="${LD-ld} -m elf64ppc"
6943 ;;
6944 s390*-*linux*|s390*-*tpf*)
6945 LD="${LD-ld} -m elf64_s390"
6946 ;;
6947 sparc*-*linux*)
6948 LD="${LD-ld} -m elf64_sparc"
6949 ;;
6950 esac
6951 ;;
6952 esac
6953 fi
6954 rm -rf conftest*
6955 ;;
6956
6957 *-*-sco3.2v5*)
6958 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6959 SAVE_CFLAGS="$CFLAGS"
6960 CFLAGS="$CFLAGS -belf"
6961 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6962 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6963 if test "${lt_cv_cc_needs_belf+set}" = set; then
6964 $as_echo_n "(cached) " >&6
6965 else
6966 ac_ext=c
6967 ac_cpp='$CPP $CPPFLAGS'
6968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6971
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h. */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978
6979 int
6980 main ()
6981 {
6982
6983 ;
6984 return 0;
6985 }
6986 _ACEOF
6987 rm -f conftest.$ac_objext conftest$ac_exeext
6988 if { (ac_try="$ac_link"
6989 case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992 esac
6993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6994 $as_echo "$ac_try_echo") >&5
6995 (eval "$ac_link") 2>conftest.er1
6996 ac_status=$?
6997 grep -v '^ *+' conftest.er1 >conftest.err
6998 rm -f conftest.er1
6999 cat conftest.err >&5
7000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } && {
7002 test -z "$ac_c_werror_flag" ||
7003 test ! -s conftest.err
7004 } && test -s conftest$ac_exeext && {
7005 test "$cross_compiling" = yes ||
7006 $as_test_x conftest$ac_exeext
7007 }; then
7008 lt_cv_cc_needs_belf=yes
7009 else
7010 $as_echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013 lt_cv_cc_needs_belf=no
7014 fi
7015
7016 rm -rf conftest.dSYM
7017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7018 conftest$ac_exeext conftest.$ac_ext
7019 ac_ext=c
7020 ac_cpp='$CPP $CPPFLAGS'
7021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7024
7025 fi
7026 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7027 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7028 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7029 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7030 CFLAGS="$SAVE_CFLAGS"
7031 fi
7032 ;;
7033 sparc*-*solaris*)
7034 # Find out which ABI we are using.
7035 echo 'int i;' > conftest.$ac_ext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037 (eval $ac_compile) 2>&5
7038 ac_status=$?
7039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; then
7041 case `/usr/bin/file conftest.o` in
7042 *64-bit*)
7043 case $lt_cv_prog_gnu_ld in
7044 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7045 *)
7046 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7047 LD="${LD-ld} -64"
7048 fi
7049 ;;
7050 esac
7051 ;;
7052 esac
7053 fi
7054 rm -rf conftest*
7055 ;;
7056 esac
7057
7058 need_locks="$enable_libtool_lock"
7059
7060 if test -n "$ac_tool_prefix"; then
7061 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7062 set dummy ${ac_tool_prefix}mt; ac_word=$2
7063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
7066 $as_echo_n "(cached) " >&6
7067 else
7068 if test -n "$MANIFEST_TOOL"; then
7069 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7079 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7081 fi
7082 done
7083 done
7084 IFS=$as_save_IFS
7085
7086 fi
7087 fi
7088 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7089 if test -n "$MANIFEST_TOOL"; then
7090 { $as_echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
7091 $as_echo "$MANIFEST_TOOL" >&6; }
7092 else
7093 { $as_echo "$as_me:$LINENO: result: no" >&5
7094 $as_echo "no" >&6; }
7095 fi
7096
7097
7098 fi
7099 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7100 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7101 # Extract the first word of "mt", so it can be a program name with args.
7102 set dummy mt; ac_word=$2
7103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
7106 $as_echo_n "(cached) " >&6
7107 else
7108 if test -n "$ac_ct_MANIFEST_TOOL"; then
7109 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7119 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 break 2
7121 fi
7122 done
7123 done
7124 IFS=$as_save_IFS
7125
7126 fi
7127 fi
7128 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7129 if test -n "$ac_ct_MANIFEST_TOOL"; then
7130 { $as_echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
7131 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7132 else
7133 { $as_echo "$as_me:$LINENO: result: no" >&5
7134 $as_echo "no" >&6; }
7135 fi
7136
7137 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7138 MANIFEST_TOOL=":"
7139 else
7140 case $cross_compiling:$ac_tool_warned in
7141 yes:)
7142 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7144 ac_tool_warned=yes ;;
7145 esac
7146 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7147 fi
7148 else
7149 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7150 fi
7151
7152 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7153 { $as_echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
7154 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7155 if test "${lt_cv_path_mainfest_tool+set}" = set; then
7156 $as_echo_n "(cached) " >&6
7157 else
7158 lt_cv_path_mainfest_tool=no
7159 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7160 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7161 cat conftest.err >&5
7162 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7163 lt_cv_path_mainfest_tool=yes
7164 fi
7165 rm -f conftest*
7166 fi
7167 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
7168 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7169 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7170 MANIFEST_TOOL=:
7171 fi
7172
7173
7174
7175
7176
7177
7178 case $host_os in
7179 rhapsody* | darwin*)
7180 if test -n "$ac_tool_prefix"; then
7181 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7182 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7186 $as_echo_n "(cached) " >&6
7187 else
7188 if test -n "$DSYMUTIL"; then
7189 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7198 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7201 fi
7202 done
7203 done
7204 IFS=$as_save_IFS
7205
7206 fi
7207 fi
7208 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7209 if test -n "$DSYMUTIL"; then
7210 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7211 $as_echo "$DSYMUTIL" >&6; }
7212 else
7213 { $as_echo "$as_me:$LINENO: result: no" >&5
7214 $as_echo "no" >&6; }
7215 fi
7216
7217
7218 fi
7219 if test -z "$ac_cv_prog_DSYMUTIL"; then
7220 ac_ct_DSYMUTIL=$DSYMUTIL
7221 # Extract the first word of "dsymutil", so it can be a program name with args.
7222 set dummy dsymutil; ac_word=$2
7223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7224 $as_echo_n "checking for $ac_word... " >&6; }
7225 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7226 $as_echo_n "(cached) " >&6
7227 else
7228 if test -n "$ac_ct_DSYMUTIL"; then
7229 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7230 else
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7239 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7241 fi
7242 done
7243 done
7244 IFS=$as_save_IFS
7245
7246 fi
7247 fi
7248 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7249 if test -n "$ac_ct_DSYMUTIL"; then
7250 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7251 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7252 else
7253 { $as_echo "$as_me:$LINENO: result: no" >&5
7254 $as_echo "no" >&6; }
7255 fi
7256
7257 if test "x$ac_ct_DSYMUTIL" = x; then
7258 DSYMUTIL=":"
7259 else
7260 case $cross_compiling:$ac_tool_warned in
7261 yes:)
7262 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7264 ac_tool_warned=yes ;;
7265 esac
7266 DSYMUTIL=$ac_ct_DSYMUTIL
7267 fi
7268 else
7269 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7270 fi
7271
7272 if test -n "$ac_tool_prefix"; then
7273 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7274 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7275 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7278 $as_echo_n "(cached) " >&6
7279 else
7280 if test -n "$NMEDIT"; then
7281 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7293 fi
7294 done
7295 done
7296 IFS=$as_save_IFS
7297
7298 fi
7299 fi
7300 NMEDIT=$ac_cv_prog_NMEDIT
7301 if test -n "$NMEDIT"; then
7302 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7303 $as_echo "$NMEDIT" >&6; }
7304 else
7305 { $as_echo "$as_me:$LINENO: result: no" >&5
7306 $as_echo "no" >&6; }
7307 fi
7308
7309
7310 fi
7311 if test -z "$ac_cv_prog_NMEDIT"; then
7312 ac_ct_NMEDIT=$NMEDIT
7313 # Extract the first word of "nmedit", so it can be a program name with args.
7314 set dummy nmedit; ac_word=$2
7315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7316 $as_echo_n "checking for $ac_word... " >&6; }
7317 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7318 $as_echo_n "(cached) " >&6
7319 else
7320 if test -n "$ac_ct_NMEDIT"; then
7321 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7322 else
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 for as_dir in $PATH
7325 do
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7330 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 break 2
7333 fi
7334 done
7335 done
7336 IFS=$as_save_IFS
7337
7338 fi
7339 fi
7340 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7341 if test -n "$ac_ct_NMEDIT"; then
7342 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7343 $as_echo "$ac_ct_NMEDIT" >&6; }
7344 else
7345 { $as_echo "$as_me:$LINENO: result: no" >&5
7346 $as_echo "no" >&6; }
7347 fi
7348
7349 if test "x$ac_ct_NMEDIT" = x; then
7350 NMEDIT=":"
7351 else
7352 case $cross_compiling:$ac_tool_warned in
7353 yes:)
7354 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7356 ac_tool_warned=yes ;;
7357 esac
7358 NMEDIT=$ac_ct_NMEDIT
7359 fi
7360 else
7361 NMEDIT="$ac_cv_prog_NMEDIT"
7362 fi
7363
7364 if test -n "$ac_tool_prefix"; then
7365 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7366 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if test "${ac_cv_prog_LIPO+set}" = set; then
7370 $as_echo_n "(cached) " >&6
7371 else
7372 if test -n "$LIPO"; then
7373 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7382 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 break 2
7385 fi
7386 done
7387 done
7388 IFS=$as_save_IFS
7389
7390 fi
7391 fi
7392 LIPO=$ac_cv_prog_LIPO
7393 if test -n "$LIPO"; then
7394 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7395 $as_echo "$LIPO" >&6; }
7396 else
7397 { $as_echo "$as_me:$LINENO: result: no" >&5
7398 $as_echo "no" >&6; }
7399 fi
7400
7401
7402 fi
7403 if test -z "$ac_cv_prog_LIPO"; then
7404 ac_ct_LIPO=$LIPO
7405 # Extract the first word of "lipo", so it can be a program name with args.
7406 set dummy lipo; ac_word=$2
7407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7410 $as_echo_n "(cached) " >&6
7411 else
7412 if test -n "$ac_ct_LIPO"; then
7413 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7414 else
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 for as_dir in $PATH
7417 do
7418 IFS=$as_save_IFS
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7422 ac_cv_prog_ac_ct_LIPO="lipo"
7423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 break 2
7425 fi
7426 done
7427 done
7428 IFS=$as_save_IFS
7429
7430 fi
7431 fi
7432 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7433 if test -n "$ac_ct_LIPO"; then
7434 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7435 $as_echo "$ac_ct_LIPO" >&6; }
7436 else
7437 { $as_echo "$as_me:$LINENO: result: no" >&5
7438 $as_echo "no" >&6; }
7439 fi
7440
7441 if test "x$ac_ct_LIPO" = x; then
7442 LIPO=":"
7443 else
7444 case $cross_compiling:$ac_tool_warned in
7445 yes:)
7446 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7448 ac_tool_warned=yes ;;
7449 esac
7450 LIPO=$ac_ct_LIPO
7451 fi
7452 else
7453 LIPO="$ac_cv_prog_LIPO"
7454 fi
7455
7456 if test -n "$ac_tool_prefix"; then
7457 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7458 set dummy ${ac_tool_prefix}otool; ac_word=$2
7459 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 $as_echo_n "checking for $ac_word... " >&6; }
7461 if test "${ac_cv_prog_OTOOL+set}" = set; then
7462 $as_echo_n "(cached) " >&6
7463 else
7464 if test -n "$OTOOL"; then
7465 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7466 else
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470 IFS=$as_save_IFS
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 break 2
7477 fi
7478 done
7479 done
7480 IFS=$as_save_IFS
7481
7482 fi
7483 fi
7484 OTOOL=$ac_cv_prog_OTOOL
7485 if test -n "$OTOOL"; then
7486 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7487 $as_echo "$OTOOL" >&6; }
7488 else
7489 { $as_echo "$as_me:$LINENO: result: no" >&5
7490 $as_echo "no" >&6; }
7491 fi
7492
7493
7494 fi
7495 if test -z "$ac_cv_prog_OTOOL"; then
7496 ac_ct_OTOOL=$OTOOL
7497 # Extract the first word of "otool", so it can be a program name with args.
7498 set dummy otool; ac_word=$2
7499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7502 $as_echo_n "(cached) " >&6
7503 else
7504 if test -n "$ac_ct_OTOOL"; then
7505 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7506 else
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_prog_ac_ct_OTOOL="otool"
7515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 break 2
7517 fi
7518 done
7519 done
7520 IFS=$as_save_IFS
7521
7522 fi
7523 fi
7524 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7525 if test -n "$ac_ct_OTOOL"; then
7526 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7527 $as_echo "$ac_ct_OTOOL" >&6; }
7528 else
7529 { $as_echo "$as_me:$LINENO: result: no" >&5
7530 $as_echo "no" >&6; }
7531 fi
7532
7533 if test "x$ac_ct_OTOOL" = x; then
7534 OTOOL=":"
7535 else
7536 case $cross_compiling:$ac_tool_warned in
7537 yes:)
7538 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7540 ac_tool_warned=yes ;;
7541 esac
7542 OTOOL=$ac_ct_OTOOL
7543 fi
7544 else
7545 OTOOL="$ac_cv_prog_OTOOL"
7546 fi
7547
7548 if test -n "$ac_tool_prefix"; then
7549 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7550 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7554 $as_echo_n "(cached) " >&6
7555 else
7556 if test -n "$OTOOL64"; then
7557 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7567 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7569 fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 OTOOL64=$ac_cv_prog_OTOOL64
7577 if test -n "$OTOOL64"; then
7578 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7579 $as_echo "$OTOOL64" >&6; }
7580 else
7581 { $as_echo "$as_me:$LINENO: result: no" >&5
7582 $as_echo "no" >&6; }
7583 fi
7584
7585
7586 fi
7587 if test -z "$ac_cv_prog_OTOOL64"; then
7588 ac_ct_OTOOL64=$OTOOL64
7589 # Extract the first word of "otool64", so it can be a program name with args.
7590 set dummy otool64; ac_word=$2
7591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7594 $as_echo_n "(cached) " >&6
7595 else
7596 if test -n "$ac_ct_OTOOL64"; then
7597 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_prog_ac_ct_OTOOL64="otool64"
7607 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7609 fi
7610 done
7611 done
7612 IFS=$as_save_IFS
7613
7614 fi
7615 fi
7616 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7617 if test -n "$ac_ct_OTOOL64"; then
7618 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7619 $as_echo "$ac_ct_OTOOL64" >&6; }
7620 else
7621 { $as_echo "$as_me:$LINENO: result: no" >&5
7622 $as_echo "no" >&6; }
7623 fi
7624
7625 if test "x$ac_ct_OTOOL64" = x; then
7626 OTOOL64=":"
7627 else
7628 case $cross_compiling:$ac_tool_warned in
7629 yes:)
7630 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632 ac_tool_warned=yes ;;
7633 esac
7634 OTOOL64=$ac_ct_OTOOL64
7635 fi
7636 else
7637 OTOOL64="$ac_cv_prog_OTOOL64"
7638 fi
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7667 $as_echo_n "checking for -single_module linker flag... " >&6; }
7668 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7669 $as_echo_n "(cached) " >&6
7670 else
7671 lt_cv_apple_cc_single_mod=no
7672 if test -z "${LT_MULTI_MODULE}"; then
7673 # By default we will add the -single_module flag. You can override
7674 # by either setting the environment variable LT_MULTI_MODULE
7675 # non-empty at configure time, or by adding -multi_module to the
7676 # link flags.
7677 rm -rf libconftest.dylib*
7678 echo "int foo(void){return 1;}" > conftest.c
7679 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7680 -dynamiclib -Wl,-single_module conftest.c" >&5
7681 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7682 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7683 _lt_result=$?
7684 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7685 lt_cv_apple_cc_single_mod=yes
7686 else
7687 cat conftest.err >&5
7688 fi
7689 rm -rf libconftest.dylib*
7690 rm -f conftest.*
7691 fi
7692 fi
7693 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7694 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7695 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7696 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7697 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7698 $as_echo_n "(cached) " >&6
7699 else
7700 lt_cv_ld_exported_symbols_list=no
7701 save_LDFLAGS=$LDFLAGS
7702 echo "_main" > conftest.sym
7703 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7704 cat >conftest.$ac_ext <<_ACEOF
7705 /* confdefs.h. */
7706 _ACEOF
7707 cat confdefs.h >>conftest.$ac_ext
7708 cat >>conftest.$ac_ext <<_ACEOF
7709 /* end confdefs.h. */
7710
7711 int
7712 main ()
7713 {
7714
7715 ;
7716 return 0;
7717 }
7718 _ACEOF
7719 rm -f conftest.$ac_objext conftest$ac_exeext
7720 if { (ac_try="$ac_link"
7721 case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7724 esac
7725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7726 $as_echo "$ac_try_echo") >&5
7727 (eval "$ac_link") 2>conftest.er1
7728 ac_status=$?
7729 grep -v '^ *+' conftest.er1 >conftest.err
7730 rm -f conftest.er1
7731 cat conftest.err >&5
7732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } && {
7734 test -z "$ac_c_werror_flag" ||
7735 test ! -s conftest.err
7736 } && test -s conftest$ac_exeext && {
7737 test "$cross_compiling" = yes ||
7738 $as_test_x conftest$ac_exeext
7739 }; then
7740 lt_cv_ld_exported_symbols_list=yes
7741 else
7742 $as_echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7744
7745 lt_cv_ld_exported_symbols_list=no
7746 fi
7747
7748 rm -rf conftest.dSYM
7749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7750 conftest$ac_exeext conftest.$ac_ext
7751 LDFLAGS="$save_LDFLAGS"
7752
7753 fi
7754 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7755 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7756 { $as_echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
7757 $as_echo_n "checking for -force_load linker flag... " >&6; }
7758 if test "${lt_cv_ld_force_load+set}" = set; then
7759 $as_echo_n "(cached) " >&6
7760 else
7761 lt_cv_ld_force_load=no
7762 cat > conftest.c << _LT_EOF
7763 int forced_loaded() { return 2;}
7764 _LT_EOF
7765 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7766 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7767 echo "$AR cru libconftest.a conftest.o" >&5
7768 $AR cru libconftest.a conftest.o 2>&5
7769 echo "$RANLIB libconftest.a" >&5
7770 $RANLIB libconftest.a 2>&5
7771 cat > conftest.c << _LT_EOF
7772 int main() { return 0;}
7773 _LT_EOF
7774 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7775 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7776 _lt_result=$?
7777 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7778 lt_cv_ld_force_load=yes
7779 else
7780 cat conftest.err >&5
7781 fi
7782 rm -f conftest.err libconftest.a conftest conftest.c
7783 rm -rf conftest.dSYM
7784
7785 fi
7786 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
7787 $as_echo "$lt_cv_ld_force_load" >&6; }
7788 case $host_os in
7789 rhapsody* | darwin1.[012])
7790 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7791 darwin1.*)
7792 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7793 darwin*) # darwin 5.x on
7794 # if running on 10.5 or later, the deployment target defaults
7795 # to the OS version, if on x86, and 10.4, the deployment
7796 # target defaults to 10.4. Don't you love it?
7797 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7798 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7799 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7800 10.[012]*)
7801 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7802 10.*)
7803 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7804 esac
7805 ;;
7806 esac
7807 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7808 _lt_dar_single_mod='$single_module'
7809 fi
7810 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7811 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7812 else
7813 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7814 fi
7815 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7816 _lt_dsymutil='~$DSYMUTIL $lib || :'
7817 else
7818 _lt_dsymutil=
7819 fi
7820 ;;
7821 esac
7822
7823
7824 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7825 $as_echo_n "checking for ANSI C header files... " >&6; }
7826 if test "${ac_cv_header_stdc+set}" = set; then
7827 $as_echo_n "(cached) " >&6
7828 else
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 #include <stdlib.h>
7836 #include <stdarg.h>
7837 #include <string.h>
7838 #include <float.h>
7839
7840 int
7841 main ()
7842 {
7843
7844 ;
7845 return 0;
7846 }
7847 _ACEOF
7848 rm -f conftest.$ac_objext
7849 if { (ac_try="$ac_compile"
7850 case "(($ac_try" in
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7853 esac
7854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7855 $as_echo "$ac_try_echo") >&5
7856 (eval "$ac_compile") 2>conftest.er1
7857 ac_status=$?
7858 grep -v '^ *+' conftest.er1 >conftest.err
7859 rm -f conftest.er1
7860 cat conftest.err >&5
7861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } && {
7863 test -z "$ac_c_werror_flag" ||
7864 test ! -s conftest.err
7865 } && test -s conftest.$ac_objext; then
7866 ac_cv_header_stdc=yes
7867 else
7868 $as_echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7870
7871 ac_cv_header_stdc=no
7872 fi
7873
7874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875
7876 if test $ac_cv_header_stdc = yes; then
7877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7878 cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h. */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 #include <string.h>
7885
7886 _ACEOF
7887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7888 $EGREP "memchr" >/dev/null 2>&1; then
7889 :
7890 else
7891 ac_cv_header_stdc=no
7892 fi
7893 rm -f conftest*
7894
7895 fi
7896
7897 if test $ac_cv_header_stdc = yes; then
7898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7899 cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h. */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7905 #include <stdlib.h>
7906
7907 _ACEOF
7908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7909 $EGREP "free" >/dev/null 2>&1; then
7910 :
7911 else
7912 ac_cv_header_stdc=no
7913 fi
7914 rm -f conftest*
7915
7916 fi
7917
7918 if test $ac_cv_header_stdc = yes; then
7919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7920 if test "$cross_compiling" = yes; then
7921 :
7922 else
7923 cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h. */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7929 #include <ctype.h>
7930 #include <stdlib.h>
7931 #if ((' ' & 0x0FF) == 0x020)
7932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7934 #else
7935 # define ISLOWER(c) \
7936 (('a' <= (c) && (c) <= 'i') \
7937 || ('j' <= (c) && (c) <= 'r') \
7938 || ('s' <= (c) && (c) <= 'z'))
7939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7940 #endif
7941
7942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7943 int
7944 main ()
7945 {
7946 int i;
7947 for (i = 0; i < 256; i++)
7948 if (XOR (islower (i), ISLOWER (i))
7949 || toupper (i) != TOUPPER (i))
7950 return 2;
7951 return 0;
7952 }
7953 _ACEOF
7954 rm -f conftest$ac_exeext
7955 if { (ac_try="$ac_link"
7956 case "(($ac_try" in
7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958 *) ac_try_echo=$ac_try;;
7959 esac
7960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7961 $as_echo "$ac_try_echo") >&5
7962 (eval "$ac_link") 2>&5
7963 ac_status=$?
7964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7966 { (case "(($ac_try" in
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7969 esac
7970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7971 $as_echo "$ac_try_echo") >&5
7972 (eval "$ac_try") 2>&5
7973 ac_status=$?
7974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
7976 :
7977 else
7978 $as_echo "$as_me: program exited with status $ac_status" >&5
7979 $as_echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7981
7982 ( exit $ac_status )
7983 ac_cv_header_stdc=no
7984 fi
7985 rm -rf conftest.dSYM
7986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7987 fi
7988
7989
7990 fi
7991 fi
7992 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7993 $as_echo "$ac_cv_header_stdc" >&6; }
7994 if test $ac_cv_header_stdc = yes; then
7995
7996 cat >>confdefs.h <<\_ACEOF
7997 #define STDC_HEADERS 1
7998 _ACEOF
7999
8000 fi
8001
8002 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8013 inttypes.h stdint.h unistd.h
8014 do
8015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8016 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8017 $as_echo_n "checking for $ac_header... " >&6; }
8018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8019 $as_echo_n "(cached) " >&6
8020 else
8021 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h. */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 $ac_includes_default
8028
8029 #include <$ac_header>
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8033 case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036 esac
8037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8038 $as_echo "$ac_try_echo") >&5
8039 (eval "$ac_compile") 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest.$ac_objext; then
8049 eval "$as_ac_Header=yes"
8050 else
8051 $as_echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054 eval "$as_ac_Header=no"
8055 fi
8056
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058 fi
8059 ac_res=`eval 'as_val=${'$as_ac_Header'}
8060 $as_echo "$as_val"'`
8061 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8062 $as_echo "$ac_res" >&6; }
8063 as_val=`eval 'as_val=${'$as_ac_Header'}
8064 $as_echo "$as_val"'`
8065 if test "x$as_val" = x""yes; then
8066 cat >>confdefs.h <<_ACEOF
8067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8068 _ACEOF
8069
8070 fi
8071
8072 done
8073
8074
8075
8076 for ac_header in dlfcn.h
8077 do
8078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8079 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8080 $as_echo_n "checking for $ac_header... " >&6; }
8081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8082 $as_echo_n "(cached) " >&6
8083 else
8084 cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h. */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 $ac_includes_default
8091
8092 #include <$ac_header>
8093 _ACEOF
8094 rm -f conftest.$ac_objext
8095 if { (ac_try="$ac_compile"
8096 case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8099 esac
8100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8101 $as_echo "$ac_try_echo") >&5
8102 (eval "$ac_compile") 2>conftest.er1
8103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } && {
8109 test -z "$ac_c_werror_flag" ||
8110 test ! -s conftest.err
8111 } && test -s conftest.$ac_objext; then
8112 eval "$as_ac_Header=yes"
8113 else
8114 $as_echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8116
8117 eval "$as_ac_Header=no"
8118 fi
8119
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121 fi
8122 ac_res=`eval 'as_val=${'$as_ac_Header'}
8123 $as_echo "$as_val"'`
8124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8125 $as_echo "$ac_res" >&6; }
8126 as_val=`eval 'as_val=${'$as_ac_Header'}
8127 $as_echo "$as_val"'`
8128 if test "x$as_val" = x""yes; then
8129 cat >>confdefs.h <<_ACEOF
8130 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8131 _ACEOF
8132
8133 fi
8134
8135 done
8136
8137
8138
8139
8140 func_stripname_cnf ()
8141 {
8142 case ${2} in
8143 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8144 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8145 esac
8146 } # func_stripname_cnf
8147
8148
8149
8150
8151
8152 # Set options
8153
8154
8155
8156 enable_dlopen=no
8157
8158
8159 enable_win32_dll=no
8160
8161
8162 # Check whether --enable-shared was given.
8163 if test "${enable_shared+set}" = set; then
8164 enableval=$enable_shared; p=${PACKAGE-default}
8165 case $enableval in
8166 yes) enable_shared=yes ;;
8167 no) enable_shared=no ;;
8168 *)
8169 enable_shared=no
8170 # Look at the argument we got. We use all the common list separators.
8171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8172 for pkg in $enableval; do
8173 IFS="$lt_save_ifs"
8174 if test "X$pkg" = "X$p"; then
8175 enable_shared=yes
8176 fi
8177 done
8178 IFS="$lt_save_ifs"
8179 ;;
8180 esac
8181 else
8182 enable_shared=yes
8183 fi
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195 # Check whether --with-pic was given.
8196 if test "${with_pic+set}" = set; then
8197 withval=$with_pic; pic_mode="$withval"
8198 else
8199 pic_mode=default
8200 fi
8201
8202
8203 test -z "$pic_mode" && pic_mode=default
8204
8205
8206
8207
8208
8209
8210
8211 # Check whether --enable-fast-install was given.
8212 if test "${enable_fast_install+set}" = set; then
8213 enableval=$enable_fast_install; p=${PACKAGE-default}
8214 case $enableval in
8215 yes) enable_fast_install=yes ;;
8216 no) enable_fast_install=no ;;
8217 *)
8218 enable_fast_install=no
8219 # Look at the argument we got. We use all the common list separators.
8220 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8221 for pkg in $enableval; do
8222 IFS="$lt_save_ifs"
8223 if test "X$pkg" = "X$p"; then
8224 enable_fast_install=yes
8225 fi
8226 done
8227 IFS="$lt_save_ifs"
8228 ;;
8229 esac
8230 else
8231 enable_fast_install=yes
8232 fi
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244 # This can be used to rebuild libtool when needed
8245 LIBTOOL_DEPS="$ltmain"
8246
8247 # Always use our own libtool.
8248 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275 test -z "$LN_S" && LN_S="ln -s"
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290 if test -n "${ZSH_VERSION+set}" ; then
8291 setopt NO_GLOB_SUBST
8292 fi
8293
8294 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8295 $as_echo_n "checking for objdir... " >&6; }
8296 if test "${lt_cv_objdir+set}" = set; then
8297 $as_echo_n "(cached) " >&6
8298 else
8299 rm -f .libs 2>/dev/null
8300 mkdir .libs 2>/dev/null
8301 if test -d .libs; then
8302 lt_cv_objdir=.libs
8303 else
8304 # MS-DOS does not allow filenames that begin with a dot.
8305 lt_cv_objdir=_libs
8306 fi
8307 rmdir .libs 2>/dev/null
8308 fi
8309 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8310 $as_echo "$lt_cv_objdir" >&6; }
8311 objdir=$lt_cv_objdir
8312
8313
8314
8315
8316
8317 cat >>confdefs.h <<_ACEOF
8318 #define LT_OBJDIR "$lt_cv_objdir/"
8319 _ACEOF
8320
8321
8322
8323
8324 case $host_os in
8325 aix3*)
8326 # AIX sometimes has problems with the GCC collect2 program. For some
8327 # reason, if we set the COLLECT_NAMES environment variable, the problems
8328 # vanish in a puff of smoke.
8329 if test "X${COLLECT_NAMES+set}" != Xset; then
8330 COLLECT_NAMES=
8331 export COLLECT_NAMES
8332 fi
8333 ;;
8334 esac
8335
8336 # Global variables:
8337 ofile=libtool
8338 can_build_shared=yes
8339
8340 # All known linkers require a `.a' archive for static linking (except MSVC,
8341 # which needs '.lib').
8342 libext=a
8343
8344 with_gnu_ld="$lt_cv_prog_gnu_ld"
8345
8346 old_CC="$CC"
8347 old_CFLAGS="$CFLAGS"
8348
8349 # Set sane defaults for various variables
8350 test -z "$CC" && CC=cc
8351 test -z "$LTCC" && LTCC=$CC
8352 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8353 test -z "$LD" && LD=ld
8354 test -z "$ac_objext" && ac_objext=o
8355
8356 for cc_temp in $compiler""; do
8357 case $cc_temp in
8358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8360 \-*) ;;
8361 *) break;;
8362 esac
8363 done
8364 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8365
8366
8367 # Only perform the check for file, if the check method requires it
8368 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8369 case $deplibs_check_method in
8370 file_magic*)
8371 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8372 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8373 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8374 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8375 $as_echo_n "(cached) " >&6
8376 else
8377 case $MAGIC_CMD in
8378 [\\/*] | ?:[\\/]*)
8379 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8380 ;;
8381 *)
8382 lt_save_MAGIC_CMD="$MAGIC_CMD"
8383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8384 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8385 for ac_dir in $ac_dummy; do
8386 IFS="$lt_save_ifs"
8387 test -z "$ac_dir" && ac_dir=.
8388 if test -f $ac_dir/${ac_tool_prefix}file; then
8389 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8390 if test -n "$file_magic_test_file"; then
8391 case $deplibs_check_method in
8392 "file_magic "*)
8393 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8395 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8396 $EGREP "$file_magic_regex" > /dev/null; then
8397 :
8398 else
8399 cat <<_LT_EOF 1>&2
8400
8401 *** Warning: the command libtool uses to detect shared libraries,
8402 *** $file_magic_cmd, produces output that libtool cannot recognize.
8403 *** The result is that libtool may fail to recognize shared libraries
8404 *** as such. This will affect the creation of libtool libraries that
8405 *** depend on shared libraries, but programs linked with such libtool
8406 *** libraries will work regardless of this problem. Nevertheless, you
8407 *** may want to report the problem to your system manager and/or to
8408 *** [email protected]
8409
8410 _LT_EOF
8411 fi ;;
8412 esac
8413 fi
8414 break
8415 fi
8416 done
8417 IFS="$lt_save_ifs"
8418 MAGIC_CMD="$lt_save_MAGIC_CMD"
8419 ;;
8420 esac
8421 fi
8422
8423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8424 if test -n "$MAGIC_CMD"; then
8425 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8426 $as_echo "$MAGIC_CMD" >&6; }
8427 else
8428 { $as_echo "$as_me:$LINENO: result: no" >&5
8429 $as_echo "no" >&6; }
8430 fi
8431
8432
8433
8434
8435
8436 if test -z "$lt_cv_path_MAGIC_CMD"; then
8437 if test -n "$ac_tool_prefix"; then
8438 { $as_echo "$as_me:$LINENO: checking for file" >&5
8439 $as_echo_n "checking for file... " >&6; }
8440 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8441 $as_echo_n "(cached) " >&6
8442 else
8443 case $MAGIC_CMD in
8444 [\\/*] | ?:[\\/]*)
8445 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8446 ;;
8447 *)
8448 lt_save_MAGIC_CMD="$MAGIC_CMD"
8449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8450 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8451 for ac_dir in $ac_dummy; do
8452 IFS="$lt_save_ifs"
8453 test -z "$ac_dir" && ac_dir=.
8454 if test -f $ac_dir/file; then
8455 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8456 if test -n "$file_magic_test_file"; then
8457 case $deplibs_check_method in
8458 "file_magic "*)
8459 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8461 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8462 $EGREP "$file_magic_regex" > /dev/null; then
8463 :
8464 else
8465 cat <<_LT_EOF 1>&2
8466
8467 *** Warning: the command libtool uses to detect shared libraries,
8468 *** $file_magic_cmd, produces output that libtool cannot recognize.
8469 *** The result is that libtool may fail to recognize shared libraries
8470 *** as such. This will affect the creation of libtool libraries that
8471 *** depend on shared libraries, but programs linked with such libtool
8472 *** libraries will work regardless of this problem. Nevertheless, you
8473 *** may want to report the problem to your system manager and/or to
8474 *** [email protected]
8475
8476 _LT_EOF
8477 fi ;;
8478 esac
8479 fi
8480 break
8481 fi
8482 done
8483 IFS="$lt_save_ifs"
8484 MAGIC_CMD="$lt_save_MAGIC_CMD"
8485 ;;
8486 esac
8487 fi
8488
8489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8490 if test -n "$MAGIC_CMD"; then
8491 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8492 $as_echo "$MAGIC_CMD" >&6; }
8493 else
8494 { $as_echo "$as_me:$LINENO: result: no" >&5
8495 $as_echo "no" >&6; }
8496 fi
8497
8498
8499 else
8500 MAGIC_CMD=:
8501 fi
8502 fi
8503
8504 fi
8505 ;;
8506 esac
8507
8508 # Use C for the default configuration in the libtool script
8509
8510 lt_save_CC="$CC"
8511 ac_ext=c
8512 ac_cpp='$CPP $CPPFLAGS'
8513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8516
8517
8518 # Source file extension for C test sources.
8519 ac_ext=c
8520
8521 # Object file extension for compiled C test sources.
8522 objext=o
8523 objext=$objext
8524
8525 # Code to be used in simple compile tests
8526 lt_simple_compile_test_code="int some_variable = 0;"
8527
8528 # Code to be used in simple link tests
8529 lt_simple_link_test_code='int main(){return(0);}'
8530
8531
8532
8533
8534
8535
8536
8537 # If no C compiler was specified, use CC.
8538 LTCC=${LTCC-"$CC"}
8539
8540 # If no C compiler flags were specified, use CFLAGS.
8541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8542
8543 # Allow CC to be a program name with arguments.
8544 compiler=$CC
8545
8546 # Save the default compiler, since it gets overwritten when the other
8547 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8548 compiler_DEFAULT=$CC
8549
8550 # save warnings/boilerplate of simple test code
8551 ac_outfile=conftest.$ac_objext
8552 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8553 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8554 _lt_compiler_boilerplate=`cat conftest.err`
8555 $RM conftest*
8556
8557 ac_outfile=conftest.$ac_objext
8558 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8559 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8560 _lt_linker_boilerplate=`cat conftest.err`
8561 $RM -r conftest*
8562
8563
8564 if test -n "$compiler"; then
8565
8566 lt_prog_compiler_no_builtin_flag=
8567
8568 if test "$GCC" = yes; then
8569 case $cc_basename in
8570 nvcc*)
8571 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8572 *)
8573 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8574 esac
8575
8576 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8577 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8578 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8579 $as_echo_n "(cached) " >&6
8580 else
8581 lt_cv_prog_compiler_rtti_exceptions=no
8582 ac_outfile=conftest.$ac_objext
8583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8584 lt_compiler_flag="-fno-rtti -fno-exceptions"
8585 # Insert the option either (1) after the last *FLAGS variable, or
8586 # (2) before a word containing "conftest.", or (3) at the end.
8587 # Note that $ac_compile itself does not contain backslashes and begins
8588 # with a dollar sign (not a hyphen), so the echo should work correctly.
8589 # The option is referenced via a variable to avoid confusing sed.
8590 lt_compile=`echo "$ac_compile" | $SED \
8591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8593 -e 's:$: $lt_compiler_flag:'`
8594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8595 (eval "$lt_compile" 2>conftest.err)
8596 ac_status=$?
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 if (exit $ac_status) && test -s "$ac_outfile"; then
8600 # The compiler can only warn and ignore the option if not recognized
8601 # So say no if there are warnings other than the usual output.
8602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8605 lt_cv_prog_compiler_rtti_exceptions=yes
8606 fi
8607 fi
8608 $RM conftest*
8609
8610 fi
8611 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8612 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8613
8614 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8615 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8616 else
8617 :
8618 fi
8619
8620 fi
8621
8622
8623
8624
8625
8626
8627 lt_prog_compiler_wl=
8628 lt_prog_compiler_pic=
8629 lt_prog_compiler_static=
8630
8631
8632 if test "$GCC" = yes; then
8633 lt_prog_compiler_wl='-Wl,'
8634 lt_prog_compiler_static='-static'
8635
8636 case $host_os in
8637 aix*)
8638 # All AIX code is PIC.
8639 if test "$host_cpu" = ia64; then
8640 # AIX 5 now supports IA64 processor
8641 lt_prog_compiler_static='-Bstatic'
8642 fi
8643 ;;
8644
8645 amigaos*)
8646 case $host_cpu in
8647 powerpc)
8648 # see comment about AmigaOS4 .so support
8649 lt_prog_compiler_pic='-fPIC'
8650 ;;
8651 m68k)
8652 # FIXME: we need at least 68020 code to build shared libraries, but
8653 # adding the `-m68020' flag to GCC prevents building anything better,
8654 # like `-m68040'.
8655 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8656 ;;
8657 esac
8658 ;;
8659
8660 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8661 # PIC is the default for these OSes.
8662 ;;
8663
8664 mingw* | cygwin* | pw32* | os2* | cegcc*)
8665 # This hack is so that the source file can tell whether it is being
8666 # built for inclusion in a dll (and should export symbols for example).
8667 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8668 # (--disable-auto-import) libraries
8669 lt_prog_compiler_pic='-DDLL_EXPORT'
8670 ;;
8671
8672 darwin* | rhapsody*)
8673 # PIC is the default on this platform
8674 # Common symbols not allowed in MH_DYLIB files
8675 lt_prog_compiler_pic='-fno-common'
8676 ;;
8677
8678 haiku*)
8679 # PIC is the default for Haiku.
8680 # The "-static" flag exists, but is broken.
8681 lt_prog_compiler_static=
8682 ;;
8683
8684 hpux*)
8685 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8686 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8687 # sets the default TLS model and affects inlining.
8688 case $host_cpu in
8689 hppa*64*)
8690 # +Z the default
8691 ;;
8692 *)
8693 lt_prog_compiler_pic='-fPIC'
8694 ;;
8695 esac
8696 ;;
8697
8698 interix[3-9]*)
8699 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8700 # Instead, we relocate shared libraries at runtime.
8701 ;;
8702
8703 msdosdjgpp*)
8704 # Just because we use GCC doesn't mean we suddenly get shared libraries
8705 # on systems that don't support them.
8706 lt_prog_compiler_can_build_shared=no
8707 enable_shared=no
8708 ;;
8709
8710 *nto* | *qnx*)
8711 # QNX uses GNU C++, but need to define -shared option too, otherwise
8712 # it will coredump.
8713 lt_prog_compiler_pic='-fPIC -shared'
8714 ;;
8715
8716 sysv4*MP*)
8717 if test -d /usr/nec; then
8718 lt_prog_compiler_pic=-Kconform_pic
8719 fi
8720 ;;
8721
8722 *)
8723 lt_prog_compiler_pic='-fPIC'
8724 ;;
8725 esac
8726
8727 case $cc_basename in
8728 nvcc*) # Cuda Compiler Driver 2.2
8729 lt_prog_compiler_wl='-Xlinker '
8730 lt_prog_compiler_pic='-Xcompiler -fPIC'
8731 ;;
8732 esac
8733 else
8734 # PORTME Check for flag to pass linker flags through the system compiler.
8735 case $host_os in
8736 aix*)
8737 lt_prog_compiler_wl='-Wl,'
8738 if test "$host_cpu" = ia64; then
8739 # AIX 5 now supports IA64 processor
8740 lt_prog_compiler_static='-Bstatic'
8741 else
8742 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8743 fi
8744 ;;
8745
8746 mingw* | cygwin* | pw32* | os2* | cegcc*)
8747 # This hack is so that the source file can tell whether it is being
8748 # built for inclusion in a dll (and should export symbols for example).
8749 lt_prog_compiler_pic='-DDLL_EXPORT'
8750 ;;
8751
8752 hpux9* | hpux10* | hpux11*)
8753 lt_prog_compiler_wl='-Wl,'
8754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8755 # not for PA HP-UX.
8756 case $host_cpu in
8757 hppa*64*|ia64*)
8758 # +Z the default
8759 ;;
8760 *)
8761 lt_prog_compiler_pic='+Z'
8762 ;;
8763 esac
8764 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8765 lt_prog_compiler_static='${wl}-a ${wl}archive'
8766 ;;
8767
8768 irix5* | irix6* | nonstopux*)
8769 lt_prog_compiler_wl='-Wl,'
8770 # PIC (with -KPIC) is the default.
8771 lt_prog_compiler_static='-non_shared'
8772 ;;
8773
8774 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8775 case $cc_basename in
8776 # old Intel for x86_64 which still supported -KPIC.
8777 ecc*)
8778 lt_prog_compiler_wl='-Wl,'
8779 lt_prog_compiler_pic='-KPIC'
8780 lt_prog_compiler_static='-static'
8781 ;;
8782 # icc used to be incompatible with GCC.
8783 # ICC 10 doesn't accept -KPIC any more.
8784 icc* | ifort*)
8785 lt_prog_compiler_wl='-Wl,'
8786 lt_prog_compiler_pic='-fPIC'
8787 lt_prog_compiler_static='-static'
8788 ;;
8789 # Lahey Fortran 8.1.
8790 lf95*)
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_pic='--shared'
8793 lt_prog_compiler_static='--static'
8794 ;;
8795 nagfor*)
8796 # NAG Fortran compiler
8797 lt_prog_compiler_wl='-Wl,-Wl,,'
8798 lt_prog_compiler_pic='-PIC'
8799 lt_prog_compiler_static='-Bstatic'
8800 ;;
8801 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8802 # Portland Group compilers (*not* the Pentium gcc compiler,
8803 # which looks to be a dead project)
8804 lt_prog_compiler_wl='-Wl,'
8805 lt_prog_compiler_pic='-fpic'
8806 lt_prog_compiler_static='-Bstatic'
8807 ;;
8808 ccc*)
8809 lt_prog_compiler_wl='-Wl,'
8810 # All Alpha code is PIC.
8811 lt_prog_compiler_static='-non_shared'
8812 ;;
8813 xl* | bgxl* | bgf* | mpixl*)
8814 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8815 lt_prog_compiler_wl='-Wl,'
8816 lt_prog_compiler_pic='-qpic'
8817 lt_prog_compiler_static='-qstaticlink'
8818 ;;
8819 *)
8820 case `$CC -V 2>&1 | sed 5q` in
8821 *Sun\ F* | *Sun*Fortran*)
8822 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8823 lt_prog_compiler_pic='-KPIC'
8824 lt_prog_compiler_static='-Bstatic'
8825 lt_prog_compiler_wl=''
8826 ;;
8827 *Sun\ C*)
8828 # Sun C 5.9
8829 lt_prog_compiler_pic='-KPIC'
8830 lt_prog_compiler_static='-Bstatic'
8831 lt_prog_compiler_wl='-Wl,'
8832 ;;
8833 esac
8834 ;;
8835 esac
8836 ;;
8837
8838 newsos6)
8839 lt_prog_compiler_pic='-KPIC'
8840 lt_prog_compiler_static='-Bstatic'
8841 ;;
8842
8843 *nto* | *qnx*)
8844 # QNX uses GNU C++, but need to define -shared option too, otherwise
8845 # it will coredump.
8846 lt_prog_compiler_pic='-fPIC -shared'
8847 ;;
8848
8849 osf3* | osf4* | osf5*)
8850 lt_prog_compiler_wl='-Wl,'
8851 # All OSF/1 code is PIC.
8852 lt_prog_compiler_static='-non_shared'
8853 ;;
8854
8855 rdos*)
8856 lt_prog_compiler_static='-non_shared'
8857 ;;
8858
8859 solaris*)
8860 lt_prog_compiler_pic='-KPIC'
8861 lt_prog_compiler_static='-Bstatic'
8862 case $cc_basename in
8863 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8864 lt_prog_compiler_wl='-Qoption ld ';;
8865 *)
8866 lt_prog_compiler_wl='-Wl,';;
8867 esac
8868 ;;
8869
8870 sunos4*)
8871 lt_prog_compiler_wl='-Qoption ld '
8872 lt_prog_compiler_pic='-PIC'
8873 lt_prog_compiler_static='-Bstatic'
8874 ;;
8875
8876 sysv4 | sysv4.2uw2* | sysv4.3*)
8877 lt_prog_compiler_wl='-Wl,'
8878 lt_prog_compiler_pic='-KPIC'
8879 lt_prog_compiler_static='-Bstatic'
8880 ;;
8881
8882 sysv4*MP*)
8883 if test -d /usr/nec ;then
8884 lt_prog_compiler_pic='-Kconform_pic'
8885 lt_prog_compiler_static='-Bstatic'
8886 fi
8887 ;;
8888
8889 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_pic='-KPIC'
8892 lt_prog_compiler_static='-Bstatic'
8893 ;;
8894
8895 unicos*)
8896 lt_prog_compiler_wl='-Wl,'
8897 lt_prog_compiler_can_build_shared=no
8898 ;;
8899
8900 uts4*)
8901 lt_prog_compiler_pic='-pic'
8902 lt_prog_compiler_static='-Bstatic'
8903 ;;
8904
8905 *)
8906 lt_prog_compiler_can_build_shared=no
8907 ;;
8908 esac
8909 fi
8910
8911 case $host_os in
8912 # For platforms which do not support PIC, -DPIC is meaningless:
8913 *djgpp*)
8914 lt_prog_compiler_pic=
8915 ;;
8916 *)
8917 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8918 ;;
8919 esac
8920
8921 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8922 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8923 if test "${lt_cv_prog_compiler_pic+set}" = set; then
8924 $as_echo_n "(cached) " >&6
8925 else
8926 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8927 fi
8928 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8929 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8930 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8931
8932 #
8933 # Check to make sure the PIC flag actually works.
8934 #
8935 if test -n "$lt_prog_compiler_pic"; then
8936 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8937 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8938 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8939 $as_echo_n "(cached) " >&6
8940 else
8941 lt_cv_prog_compiler_pic_works=no
8942 ac_outfile=conftest.$ac_objext
8943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8944 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8945 # Insert the option either (1) after the last *FLAGS variable, or
8946 # (2) before a word containing "conftest.", or (3) at the end.
8947 # Note that $ac_compile itself does not contain backslashes and begins
8948 # with a dollar sign (not a hyphen), so the echo should work correctly.
8949 # The option is referenced via a variable to avoid confusing sed.
8950 lt_compile=`echo "$ac_compile" | $SED \
8951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8953 -e 's:$: $lt_compiler_flag:'`
8954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8955 (eval "$lt_compile" 2>conftest.err)
8956 ac_status=$?
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 if (exit $ac_status) && test -s "$ac_outfile"; then
8960 # The compiler can only warn and ignore the option if not recognized
8961 # So say no if there are warnings other than the usual output.
8962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8964 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8965 lt_cv_prog_compiler_pic_works=yes
8966 fi
8967 fi
8968 $RM conftest*
8969
8970 fi
8971 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8972 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8973
8974 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8975 case $lt_prog_compiler_pic in
8976 "" | " "*) ;;
8977 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8978 esac
8979 else
8980 lt_prog_compiler_pic=
8981 lt_prog_compiler_can_build_shared=no
8982 fi
8983
8984 fi
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996 #
8997 # Check to make sure the static flag actually works.
8998 #
8999 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9000 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9001 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9002 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9003 $as_echo_n "(cached) " >&6
9004 else
9005 lt_cv_prog_compiler_static_works=no
9006 save_LDFLAGS="$LDFLAGS"
9007 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9008 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9009 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9010 # The linker can only warn and ignore the option if not recognized
9011 # So say no if there are warnings
9012 if test -s conftest.err; then
9013 # Append any errors to the config.log.
9014 cat conftest.err 1>&5
9015 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9017 if diff conftest.exp conftest.er2 >/dev/null; then
9018 lt_cv_prog_compiler_static_works=yes
9019 fi
9020 else
9021 lt_cv_prog_compiler_static_works=yes
9022 fi
9023 fi
9024 $RM -r conftest*
9025 LDFLAGS="$save_LDFLAGS"
9026
9027 fi
9028 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9029 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9030
9031 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9032 :
9033 else
9034 lt_prog_compiler_static=
9035 fi
9036
9037
9038
9039
9040
9041
9042
9043 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9044 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9045 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9046 $as_echo_n "(cached) " >&6
9047 else
9048 lt_cv_prog_compiler_c_o=no
9049 $RM -r conftest 2>/dev/null
9050 mkdir conftest
9051 cd conftest
9052 mkdir out
9053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9054
9055 lt_compiler_flag="-o out/conftest2.$ac_objext"
9056 # Insert the option either (1) after the last *FLAGS variable, or
9057 # (2) before a word containing "conftest.", or (3) at the end.
9058 # Note that $ac_compile itself does not contain backslashes and begins
9059 # with a dollar sign (not a hyphen), so the echo should work correctly.
9060 lt_compile=`echo "$ac_compile" | $SED \
9061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9063 -e 's:$: $lt_compiler_flag:'`
9064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9065 (eval "$lt_compile" 2>out/conftest.err)
9066 ac_status=$?
9067 cat out/conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9070 then
9071 # The compiler can only warn and ignore the option if not recognized
9072 # So say no if there are warnings
9073 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9074 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9075 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9076 lt_cv_prog_compiler_c_o=yes
9077 fi
9078 fi
9079 chmod u+w . 2>&5
9080 $RM conftest*
9081 # SGI C++ compiler will create directory out/ii_files/ for
9082 # template instantiation
9083 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9084 $RM out/* && rmdir out
9085 cd ..
9086 $RM -r conftest
9087 $RM conftest*
9088
9089 fi
9090 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9091 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9092
9093
9094
9095
9096
9097
9098 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9099 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9100 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9101 $as_echo_n "(cached) " >&6
9102 else
9103 lt_cv_prog_compiler_c_o=no
9104 $RM -r conftest 2>/dev/null
9105 mkdir conftest
9106 cd conftest
9107 mkdir out
9108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9109
9110 lt_compiler_flag="-o out/conftest2.$ac_objext"
9111 # Insert the option either (1) after the last *FLAGS variable, or
9112 # (2) before a word containing "conftest.", or (3) at the end.
9113 # Note that $ac_compile itself does not contain backslashes and begins
9114 # with a dollar sign (not a hyphen), so the echo should work correctly.
9115 lt_compile=`echo "$ac_compile" | $SED \
9116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9118 -e 's:$: $lt_compiler_flag:'`
9119 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9120 (eval "$lt_compile" 2>out/conftest.err)
9121 ac_status=$?
9122 cat out/conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9125 then
9126 # The compiler can only warn and ignore the option if not recognized
9127 # So say no if there are warnings
9128 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9129 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9130 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9131 lt_cv_prog_compiler_c_o=yes
9132 fi
9133 fi
9134 chmod u+w . 2>&5
9135 $RM conftest*
9136 # SGI C++ compiler will create directory out/ii_files/ for
9137 # template instantiation
9138 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9139 $RM out/* && rmdir out
9140 cd ..
9141 $RM -r conftest
9142 $RM conftest*
9143
9144 fi
9145 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9146 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9147
9148
9149
9150
9151 hard_links="nottested"
9152 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9153 # do not overwrite the value of need_locks provided by the user
9154 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9155 $as_echo_n "checking if we can lock with hard links... " >&6; }
9156 hard_links=yes
9157 $RM conftest*
9158 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9159 touch conftest.a
9160 ln conftest.a conftest.b 2>&5 || hard_links=no
9161 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9162 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9163 $as_echo "$hard_links" >&6; }
9164 if test "$hard_links" = no; then
9165 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9166 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9167 need_locks=warn
9168 fi
9169 else
9170 need_locks=no
9171 fi
9172
9173
9174
9175
9176
9177
9178 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9179 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9180
9181 runpath_var=
9182 allow_undefined_flag=
9183 always_export_symbols=no
9184 archive_cmds=
9185 archive_expsym_cmds=
9186 compiler_needs_object=no
9187 enable_shared_with_static_runtimes=no
9188 export_dynamic_flag_spec=
9189 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9190 hardcode_automatic=no
9191 hardcode_direct=no
9192 hardcode_direct_absolute=no
9193 hardcode_libdir_flag_spec=
9194 hardcode_libdir_flag_spec_ld=
9195 hardcode_libdir_separator=
9196 hardcode_minus_L=no
9197 hardcode_shlibpath_var=unsupported
9198 inherit_rpath=no
9199 link_all_deplibs=unknown
9200 module_cmds=
9201 module_expsym_cmds=
9202 old_archive_from_new_cmds=
9203 old_archive_from_expsyms_cmds=
9204 thread_safe_flag_spec=
9205 whole_archive_flag_spec=
9206 # include_expsyms should be a list of space-separated symbols to be *always*
9207 # included in the symbol list
9208 include_expsyms=
9209 # exclude_expsyms can be an extended regexp of symbols to exclude
9210 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9211 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9212 # as well as any symbol that contains `d'.
9213 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9214 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9215 # platforms (ab)use it in PIC code, but their linkers get confused if
9216 # the symbol is explicitly referenced. Since portable code cannot
9217 # rely on this symbol name, it's probably fine to never include it in
9218 # preloaded symbol tables.
9219 # Exclude shared library initialization/finalization symbols.
9220 extract_expsyms_cmds=
9221
9222 case $host_os in
9223 cygwin* | mingw* | pw32* | cegcc*)
9224 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9225 # When not using gcc, we currently assume that we are using
9226 # Microsoft Visual C++.
9227 if test "$GCC" != yes; then
9228 with_gnu_ld=no
9229 fi
9230 ;;
9231 interix*)
9232 # we just hope/assume this is gcc and not c89 (= MSVC++)
9233 with_gnu_ld=yes
9234 ;;
9235 openbsd*)
9236 with_gnu_ld=no
9237 ;;
9238 esac
9239
9240 ld_shlibs=yes
9241
9242 # On some targets, GNU ld is compatible enough with the native linker
9243 # that we're better off using the native interface for both.
9244 lt_use_gnu_ld_interface=no
9245 if test "$with_gnu_ld" = yes; then
9246 case $host_os in
9247 aix*)
9248 # The AIX port of GNU ld has always aspired to compatibility
9249 # with the native linker. However, as the warning in the GNU ld
9250 # block says, versions before 2.19.5* couldn't really create working
9251 # shared libraries, regardless of the interface used.
9252 case `$LD -v 2>&1` in
9253 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9254 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9255 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9256 *)
9257 lt_use_gnu_ld_interface=yes
9258 ;;
9259 esac
9260 ;;
9261 *)
9262 lt_use_gnu_ld_interface=yes
9263 ;;
9264 esac
9265 fi
9266
9267 if test "$lt_use_gnu_ld_interface" = yes; then
9268 # If archive_cmds runs LD, not CC, wlarc should be empty
9269 wlarc='${wl}'
9270
9271 # Set some defaults for GNU ld with shared library support. These
9272 # are reset later if shared libraries are not supported. Putting them
9273 # here allows them to be overridden if necessary.
9274 runpath_var=LD_RUN_PATH
9275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9276 export_dynamic_flag_spec='${wl}--export-dynamic'
9277 # ancient GNU ld didn't support --whole-archive et. al.
9278 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9279 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9280 else
9281 whole_archive_flag_spec=
9282 fi
9283 supports_anon_versioning=no
9284 case `$LD -v 2>&1` in
9285 *GNU\ gold*) supports_anon_versioning=yes ;;
9286 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9287 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9288 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9289 *\ 2.11.*) ;; # other 2.11 versions
9290 *) supports_anon_versioning=yes ;;
9291 esac
9292
9293 # See if GNU ld supports shared libraries.
9294 case $host_os in
9295 aix[3-9]*)
9296 # On AIX/PPC, the GNU linker is very broken
9297 if test "$host_cpu" != ia64; then
9298 ld_shlibs=no
9299 cat <<_LT_EOF 1>&2
9300
9301 *** Warning: the GNU linker, at least up to release 2.19, is reported
9302 *** to be unable to reliably create shared libraries on AIX.
9303 *** Therefore, libtool is disabling shared libraries support. If you
9304 *** really care for shared libraries, you may want to install binutils
9305 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9306 *** You will then need to restart the configuration process.
9307
9308 _LT_EOF
9309 fi
9310 ;;
9311
9312 amigaos*)
9313 case $host_cpu in
9314 powerpc)
9315 # see comment about AmigaOS4 .so support
9316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317 archive_expsym_cmds=''
9318 ;;
9319 m68k)
9320 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)'
9321 hardcode_libdir_flag_spec='-L$libdir'
9322 hardcode_minus_L=yes
9323 ;;
9324 esac
9325 ;;
9326
9327 beos*)
9328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9329 allow_undefined_flag=unsupported
9330 # Joseph Beckenbach <[email protected]> says some releases of gcc
9331 # support --undefined. This deserves some investigation. FIXME
9332 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333 else
9334 ld_shlibs=no
9335 fi
9336 ;;
9337
9338 cygwin* | mingw* | pw32* | cegcc*)
9339 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9340 # as there is no search path for DLLs.
9341 hardcode_libdir_flag_spec='-L$libdir'
9342 export_dynamic_flag_spec='${wl}--export-all-symbols'
9343 allow_undefined_flag=unsupported
9344 always_export_symbols=no
9345 enable_shared_with_static_runtimes=yes
9346 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'
9347 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9348
9349 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9351 # If the export-symbols file already is a .def file (1st line
9352 # is EXPORTS), use it as is; otherwise, prepend...
9353 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9354 cp $export_symbols $output_objdir/$soname.def;
9355 else
9356 echo EXPORTS > $output_objdir/$soname.def;
9357 cat $export_symbols >> $output_objdir/$soname.def;
9358 fi~
9359 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9360 else
9361 ld_shlibs=no
9362 fi
9363 ;;
9364
9365 haiku*)
9366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9367 link_all_deplibs=yes
9368 ;;
9369
9370 interix[3-9]*)
9371 hardcode_direct=no
9372 hardcode_shlibpath_var=no
9373 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9374 export_dynamic_flag_spec='${wl}-E'
9375 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9376 # Instead, shared libraries are loaded at an image base (0x10000000 by
9377 # default) and relocated if they conflict, which is a slow very memory
9378 # consuming and fragmenting process. To avoid this, we pick a random,
9379 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9380 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9381 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9382 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'
9383 ;;
9384
9385 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9386 tmp_diet=no
9387 if test "$host_os" = linux-dietlibc; then
9388 case $cc_basename in
9389 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9390 esac
9391 fi
9392 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9393 && test "$tmp_diet" = no
9394 then
9395 tmp_addflag=' $pic_flag'
9396 tmp_sharedflag='-shared'
9397 case $cc_basename,$host_cpu in
9398 pgcc*) # Portland Group C compiler
9399 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'
9400 tmp_addflag=' $pic_flag'
9401 ;;
9402 pgf77* | pgf90* | pgf95* | pgfortran*)
9403 # Portland Group f77 and f90 compilers
9404 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'
9405 tmp_addflag=' $pic_flag -Mnomain' ;;
9406 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9407 tmp_addflag=' -i_dynamic' ;;
9408 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9409 tmp_addflag=' -i_dynamic -nofor_main' ;;
9410 ifc* | ifort*) # Intel Fortran compiler
9411 tmp_addflag=' -nofor_main' ;;
9412 lf95*) # Lahey Fortran 8.1
9413 whole_archive_flag_spec=
9414 tmp_sharedflag='--shared' ;;
9415 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9416 tmp_sharedflag='-qmkshrobj'
9417 tmp_addflag= ;;
9418 nvcc*) # Cuda Compiler Driver 2.2
9419 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'
9420 compiler_needs_object=yes
9421 ;;
9422 esac
9423 case `$CC -V 2>&1 | sed 5q` in
9424 *Sun\ C*) # Sun C 5.9
9425 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'
9426 compiler_needs_object=yes
9427 tmp_sharedflag='-G' ;;
9428 *Sun\ F*) # Sun Fortran 8.3
9429 tmp_sharedflag='-G' ;;
9430 esac
9431 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9432
9433 if test "x$supports_anon_versioning" = xyes; then
9434 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9435 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9436 echo "local: *; };" >> $output_objdir/$libname.ver~
9437 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9438 fi
9439
9440 case $cc_basename in
9441 xlf* | bgf* | bgxlf* | mpixlf*)
9442 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9443 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9444 hardcode_libdir_flag_spec=
9445 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9446 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9447 if test "x$supports_anon_versioning" = xyes; then
9448 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9449 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9450 echo "local: *; };" >> $output_objdir/$libname.ver~
9451 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9452 fi
9453 ;;
9454 esac
9455 else
9456 ld_shlibs=no
9457 fi
9458 ;;
9459
9460 netbsd*)
9461 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9462 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9463 wlarc=
9464 else
9465 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9467 fi
9468 ;;
9469
9470 solaris*)
9471 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9472 ld_shlibs=no
9473 cat <<_LT_EOF 1>&2
9474
9475 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9476 *** create shared libraries on Solaris systems. Therefore, libtool
9477 *** is disabling shared libraries support. We urge you to upgrade GNU
9478 *** binutils to release 2.9.1 or newer. Another option is to modify
9479 *** your PATH or compiler configuration so that the native linker is
9480 *** used, and then restart.
9481
9482 _LT_EOF
9483 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9484 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9486 else
9487 ld_shlibs=no
9488 fi
9489 ;;
9490
9491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9492 case `$LD -v 2>&1` in
9493 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9494 ld_shlibs=no
9495 cat <<_LT_EOF 1>&2
9496
9497 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9498 *** reliably create shared libraries on SCO systems. Therefore, libtool
9499 *** is disabling shared libraries support. We urge you to upgrade GNU
9500 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9501 *** your PATH or compiler configuration so that the native linker is
9502 *** used, and then restart.
9503
9504 _LT_EOF
9505 ;;
9506 *)
9507 # For security reasons, it is highly recommended that you always
9508 # use absolute paths for naming shared libraries, and exclude the
9509 # DT_RUNPATH tag from executables and libraries. But doing so
9510 # requires that you compile everything twice, which is a pain.
9511 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9514 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9515 else
9516 ld_shlibs=no
9517 fi
9518 ;;
9519 esac
9520 ;;
9521
9522 sunos4*)
9523 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9524 wlarc=
9525 hardcode_direct=yes
9526 hardcode_shlibpath_var=no
9527 ;;
9528
9529 *)
9530 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9531 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9532 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9533 else
9534 ld_shlibs=no
9535 fi
9536 ;;
9537 esac
9538
9539 if test "$ld_shlibs" = no; then
9540 runpath_var=
9541 hardcode_libdir_flag_spec=
9542 export_dynamic_flag_spec=
9543 whole_archive_flag_spec=
9544 fi
9545 else
9546 # PORTME fill in a description of your system's linker (not GNU ld)
9547 case $host_os in
9548 aix3*)
9549 allow_undefined_flag=unsupported
9550 always_export_symbols=yes
9551 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'
9552 # Note: this linker hardcodes the directories in LIBPATH if there
9553 # are no directories specified by -L.
9554 hardcode_minus_L=yes
9555 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9556 # Neither direct hardcoding nor static linking is supported with a
9557 # broken collect2.
9558 hardcode_direct=unsupported
9559 fi
9560 ;;
9561
9562 aix[4-9]*)
9563 if test "$host_cpu" = ia64; then
9564 # On IA64, the linker does run time linking by default, so we don't
9565 # have to do anything special.
9566 aix_use_runtimelinking=no
9567 exp_sym_flag='-Bexport'
9568 no_entry_flag=""
9569 else
9570 # If we're using GNU nm, then we don't want the "-C" option.
9571 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9572 # Also, AIX nm treats weak defined symbols like other global
9573 # defined symbols, whereas GNU nm marks them as "W".
9574 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9575 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'
9576 else
9577 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'
9578 fi
9579 aix_use_runtimelinking=no
9580
9581 # Test if we are trying to use run time linking or normal
9582 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9583 # need to do runtime linking.
9584 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9585 for ld_flag in $LDFLAGS; do
9586 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9587 aix_use_runtimelinking=yes
9588 break
9589 fi
9590 done
9591 ;;
9592 esac
9593
9594 exp_sym_flag='-bexport'
9595 no_entry_flag='-bnoentry'
9596 fi
9597
9598 # When large executables or shared objects are built, AIX ld can
9599 # have problems creating the table of contents. If linking a library
9600 # or program results in "error TOC overflow" add -mminimal-toc to
9601 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9602 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9603
9604 archive_cmds=''
9605 hardcode_direct=yes
9606 hardcode_direct_absolute=yes
9607 hardcode_libdir_separator=':'
9608 link_all_deplibs=yes
9609 file_list_spec='${wl}-f,'
9610
9611 if test "$GCC" = yes; then
9612 case $host_os in aix4.[012]|aix4.[012].*)
9613 # We only want to do this on AIX 4.2 and lower, the check
9614 # below for broken collect2 doesn't work under 4.3+
9615 collect2name=`${CC} -print-prog-name=collect2`
9616 if test -f "$collect2name" &&
9617 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9618 then
9619 # We have reworked collect2
9620 :
9621 else
9622 # We have old collect2
9623 hardcode_direct=unsupported
9624 # It fails to find uninstalled libraries when the uninstalled
9625 # path is not listed in the libpath. Setting hardcode_minus_L
9626 # to unsupported forces relinking
9627 hardcode_minus_L=yes
9628 hardcode_libdir_flag_spec='-L$libdir'
9629 hardcode_libdir_separator=
9630 fi
9631 ;;
9632 esac
9633 shared_flag='-shared'
9634 if test "$aix_use_runtimelinking" = yes; then
9635 shared_flag="$shared_flag "'${wl}-G'
9636 fi
9637 else
9638 # not using gcc
9639 if test "$host_cpu" = ia64; then
9640 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9641 # chokes on -Wl,-G. The following line is correct:
9642 shared_flag='-G'
9643 else
9644 if test "$aix_use_runtimelinking" = yes; then
9645 shared_flag='${wl}-G'
9646 else
9647 shared_flag='${wl}-bM:SRE'
9648 fi
9649 fi
9650 fi
9651
9652 export_dynamic_flag_spec='${wl}-bexpall'
9653 # It seems that -bexpall does not export symbols beginning with
9654 # underscore (_), so it is better to generate a list of symbols to export.
9655 always_export_symbols=yes
9656 if test "$aix_use_runtimelinking" = yes; then
9657 # Warning - without using the other runtime loading flags (-brtl),
9658 # -berok will link without error, but may produce a broken library.
9659 allow_undefined_flag='-berok'
9660 # Determine the default libpath from the value encoded in an
9661 # empty executable.
9662 if test "${lt_cv_aix_libpath+set}" = set; then
9663 aix_libpath=$lt_cv_aix_libpath
9664 else
9665 if test "${lt_cv_aix_libpath_+set}" = set; then
9666 $as_echo_n "(cached) " >&6
9667 else
9668 cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h. */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674
9675 int
9676 main ()
9677 {
9678
9679 ;
9680 return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9685 case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688 esac
9689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9690 $as_echo "$ac_try_echo") >&5
9691 (eval "$ac_link") 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } && {
9698 test -z "$ac_c_werror_flag" ||
9699 test ! -s conftest.err
9700 } && test -s conftest$ac_exeext && {
9701 test "$cross_compiling" = yes ||
9702 $as_test_x conftest$ac_exeext
9703 }; then
9704
9705 lt_aix_libpath_sed='
9706 /Import File Strings/,/^$/ {
9707 /^0/ {
9708 s/^0 *\([^ ]*\) *$/\1/
9709 p
9710 }
9711 }'
9712 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9713 # Check for a 64-bit object if we didn't find anything.
9714 if test -z "$lt_cv_aix_libpath_"; then
9715 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9716 fi
9717 else
9718 $as_echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721
9722 fi
9723
9724 rm -rf conftest.dSYM
9725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9726 conftest$ac_exeext conftest.$ac_ext
9727 if test -z "$lt_cv_aix_libpath_"; then
9728 lt_cv_aix_libpath_="/usr/lib:/lib"
9729 fi
9730
9731 fi
9732
9733 aix_libpath=$lt_cv_aix_libpath_
9734 fi
9735
9736 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9737 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"
9738 else
9739 if test "$host_cpu" = ia64; then
9740 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9741 allow_undefined_flag="-z nodefs"
9742 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"
9743 else
9744 # Determine the default libpath from the value encoded in an
9745 # empty executable.
9746 if test "${lt_cv_aix_libpath+set}" = set; then
9747 aix_libpath=$lt_cv_aix_libpath
9748 else
9749 if test "${lt_cv_aix_libpath_+set}" = set; then
9750 $as_echo_n "(cached) " >&6
9751 else
9752 cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h. */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9758
9759 int
9760 main ()
9761 {
9762
9763 ;
9764 return 0;
9765 }
9766 _ACEOF
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (ac_try="$ac_link"
9769 case "(($ac_try" in
9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9772 esac
9773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9774 $as_echo "$ac_try_echo") >&5
9775 (eval "$ac_link") 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && {
9782 test -z "$ac_c_werror_flag" ||
9783 test ! -s conftest.err
9784 } && test -s conftest$ac_exeext && {
9785 test "$cross_compiling" = yes ||
9786 $as_test_x conftest$ac_exeext
9787 }; then
9788
9789 lt_aix_libpath_sed='
9790 /Import File Strings/,/^$/ {
9791 /^0/ {
9792 s/^0 *\([^ ]*\) *$/\1/
9793 p
9794 }
9795 }'
9796 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9797 # Check for a 64-bit object if we didn't find anything.
9798 if test -z "$lt_cv_aix_libpath_"; then
9799 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9800 fi
9801 else
9802 $as_echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9804
9805
9806 fi
9807
9808 rm -rf conftest.dSYM
9809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9810 conftest$ac_exeext conftest.$ac_ext
9811 if test -z "$lt_cv_aix_libpath_"; then
9812 lt_cv_aix_libpath_="/usr/lib:/lib"
9813 fi
9814
9815 fi
9816
9817 aix_libpath=$lt_cv_aix_libpath_
9818 fi
9819
9820 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9821 # Warning - without using the other run time loading flags,
9822 # -berok will link without error, but may produce a broken library.
9823 no_undefined_flag=' ${wl}-bernotok'
9824 allow_undefined_flag=' ${wl}-berok'
9825 if test "$with_gnu_ld" = yes; then
9826 # We only use this code for GNU lds that support --whole-archive.
9827 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9828 else
9829 # Exported symbols can be pulled into shared objects from archives
9830 whole_archive_flag_spec='$convenience'
9831 fi
9832 archive_cmds_need_lc=yes
9833 # This is similar to how AIX traditionally builds its shared libraries.
9834 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'
9835 fi
9836 fi
9837 ;;
9838
9839 amigaos*)
9840 case $host_cpu in
9841 powerpc)
9842 # see comment about AmigaOS4 .so support
9843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9844 archive_expsym_cmds=''
9845 ;;
9846 m68k)
9847 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)'
9848 hardcode_libdir_flag_spec='-L$libdir'
9849 hardcode_minus_L=yes
9850 ;;
9851 esac
9852 ;;
9853
9854 bsdi[45]*)
9855 export_dynamic_flag_spec=-rdynamic
9856 ;;
9857
9858 cygwin* | mingw* | pw32* | cegcc*)
9859 # When not using gcc, we currently assume that we are using
9860 # Microsoft Visual C++.
9861 # hardcode_libdir_flag_spec is actually meaningless, as there is
9862 # no search path for DLLs.
9863 case $cc_basename in
9864 cl*)
9865 # Native MSVC
9866 hardcode_libdir_flag_spec=' '
9867 allow_undefined_flag=unsupported
9868 always_export_symbols=yes
9869 file_list_spec='@'
9870 # Tell ltmain to make .lib files, not .a files.
9871 libext=lib
9872 # Tell ltmain to make .dll files, not .so files.
9873 shrext_cmds=".dll"
9874 # FIXME: Setting linknames here is a bad hack.
9875 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9876 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9877 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9878 else
9879 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9880 fi~
9881 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9882 linknames='
9883 # The linker will not automatically build a static lib if we build a DLL.
9884 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9885 enable_shared_with_static_runtimes=yes
9886 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9887 # Don't use ranlib
9888 old_postinstall_cmds='chmod 644 $oldlib'
9889 postlink_cmds='lt_outputfile="@OUTPUT@"~
9890 lt_tool_outputfile="@TOOL_OUTPUT@"~
9891 case $lt_outputfile in
9892 *.exe|*.EXE) ;;
9893 *)
9894 lt_outputfile="$lt_outputfile.exe"
9895 lt_tool_outputfile="$lt_tool_outputfile.exe"
9896 ;;
9897 esac~
9898 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9899 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9900 $RM "$lt_outputfile.manifest";
9901 fi'
9902 ;;
9903 *)
9904 # Assume MSVC wrapper
9905 hardcode_libdir_flag_spec=' '
9906 allow_undefined_flag=unsupported
9907 # Tell ltmain to make .lib files, not .a files.
9908 libext=lib
9909 # Tell ltmain to make .dll files, not .so files.
9910 shrext_cmds=".dll"
9911 # FIXME: Setting linknames here is a bad hack.
9912 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9913 # The linker will automatically build a .lib file if we build a DLL.
9914 old_archive_from_new_cmds='true'
9915 # FIXME: Should let the user specify the lib program.
9916 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9917 enable_shared_with_static_runtimes=yes
9918 ;;
9919 esac
9920 ;;
9921
9922 darwin* | rhapsody*)
9923
9924
9925 archive_cmds_need_lc=no
9926 hardcode_direct=no
9927 hardcode_automatic=yes
9928 hardcode_shlibpath_var=unsupported
9929 if test "$lt_cv_ld_force_load" = "yes"; then
9930 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\"`'
9931 else
9932 whole_archive_flag_spec=''
9933 fi
9934 link_all_deplibs=yes
9935 allow_undefined_flag="$_lt_dar_allow_undefined"
9936 case $cc_basename in
9937 ifort*) _lt_dar_can_shared=yes ;;
9938 *) _lt_dar_can_shared=$GCC ;;
9939 esac
9940 if test "$_lt_dar_can_shared" = "yes"; then
9941 output_verbose_link_cmd=func_echo_all
9942 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9943 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9944 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}"
9945 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}"
9946
9947 else
9948 ld_shlibs=no
9949 fi
9950
9951 ;;
9952
9953 dgux*)
9954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_libdir_flag_spec='-L$libdir'
9956 hardcode_shlibpath_var=no
9957 ;;
9958
9959 freebsd1*)
9960 ld_shlibs=no
9961 ;;
9962
9963 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9964 # support. Future versions do this automatically, but an explicit c++rt0.o
9965 # does not break anything, and helps significantly (at the cost of a little
9966 # extra space).
9967 freebsd2.2*)
9968 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9969 hardcode_libdir_flag_spec='-R$libdir'
9970 hardcode_direct=yes
9971 hardcode_shlibpath_var=no
9972 ;;
9973
9974 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9975 freebsd2*)
9976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9977 hardcode_direct=yes
9978 hardcode_minus_L=yes
9979 hardcode_shlibpath_var=no
9980 ;;
9981
9982 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9983 freebsd* | dragonfly*)
9984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9985 hardcode_libdir_flag_spec='-R$libdir'
9986 hardcode_direct=yes
9987 hardcode_shlibpath_var=no
9988 ;;
9989
9990 hpux9*)
9991 if test "$GCC" = yes; then
9992 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'
9993 else
9994 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'
9995 fi
9996 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9997 hardcode_libdir_separator=:
9998 hardcode_direct=yes
9999
10000 # hardcode_minus_L: Not really in the search PATH,
10001 # but as the default location of the library.
10002 hardcode_minus_L=yes
10003 export_dynamic_flag_spec='${wl}-E'
10004 ;;
10005
10006 hpux10*)
10007 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10008 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10009 else
10010 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10011 fi
10012 if test "$with_gnu_ld" = no; then
10013 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10014 hardcode_libdir_flag_spec_ld='+b $libdir'
10015 hardcode_libdir_separator=:
10016 hardcode_direct=yes
10017 hardcode_direct_absolute=yes
10018 export_dynamic_flag_spec='${wl}-E'
10019 # hardcode_minus_L: Not really in the search PATH,
10020 # but as the default location of the library.
10021 hardcode_minus_L=yes
10022 fi
10023 ;;
10024
10025 hpux11*)
10026 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10027 case $host_cpu in
10028 hppa*64*)
10029 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10030 ;;
10031 ia64*)
10032 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10033 ;;
10034 *)
10035 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10036 ;;
10037 esac
10038 else
10039 case $host_cpu in
10040 hppa*64*)
10041 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 ;;
10043 ia64*)
10044 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10045 ;;
10046 *)
10047
10048 # Older versions of the 11.00 compiler do not understand -b yet
10049 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10050 { $as_echo "$as_me:$LINENO: checking if $CC understands -b" >&5
10051 $as_echo_n "checking if $CC understands -b... " >&6; }
10052 if test "${lt_cv_prog_compiler__b+set}" = set; then
10053 $as_echo_n "(cached) " >&6
10054 else
10055 lt_cv_prog_compiler__b=no
10056 save_LDFLAGS="$LDFLAGS"
10057 LDFLAGS="$LDFLAGS -b"
10058 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10060 # The linker can only warn and ignore the option if not recognized
10061 # So say no if there are warnings
10062 if test -s conftest.err; then
10063 # Append any errors to the config.log.
10064 cat conftest.err 1>&5
10065 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10067 if diff conftest.exp conftest.er2 >/dev/null; then
10068 lt_cv_prog_compiler__b=yes
10069 fi
10070 else
10071 lt_cv_prog_compiler__b=yes
10072 fi
10073 fi
10074 $RM -r conftest*
10075 LDFLAGS="$save_LDFLAGS"
10076
10077 fi
10078 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
10079 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10080
10081 if test x"$lt_cv_prog_compiler__b" = xyes; then
10082 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10083 else
10084 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10085 fi
10086
10087 ;;
10088 esac
10089 fi
10090 if test "$with_gnu_ld" = no; then
10091 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10092 hardcode_libdir_separator=:
10093
10094 case $host_cpu in
10095 hppa*64*|ia64*)
10096 hardcode_direct=no
10097 hardcode_shlibpath_var=no
10098 ;;
10099 *)
10100 hardcode_direct=yes
10101 hardcode_direct_absolute=yes
10102 export_dynamic_flag_spec='${wl}-E'
10103
10104 # hardcode_minus_L: Not really in the search PATH,
10105 # but as the default location of the library.
10106 hardcode_minus_L=yes
10107 ;;
10108 esac
10109 fi
10110 ;;
10111
10112 irix5* | irix6* | nonstopux*)
10113 if test "$GCC" = yes; then
10114 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'
10115 # Try to use the -exported_symbol ld option, if it does not
10116 # work, assume that -exports_file does not work either and
10117 # implicitly export all symbols.
10118 # This should be the same for all languages, so no per-tag cache variable.
10119 { $as_echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
10120 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10121 if test "${lt_cv_irix_exported_symbol+set}" = set; then
10122 $as_echo_n "(cached) " >&6
10123 else
10124 save_LDFLAGS="$LDFLAGS"
10125 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h. */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 int foo (void) { return 0; }
10133 _ACEOF
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (ac_try="$ac_link"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10139 esac
10140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10141 $as_echo "$ac_try_echo") >&5
10142 (eval "$ac_link") 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest$ac_exeext && {
10152 test "$cross_compiling" = yes ||
10153 $as_test_x conftest$ac_exeext
10154 }; then
10155 lt_cv_irix_exported_symbol=yes
10156 else
10157 $as_echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10159
10160 lt_cv_irix_exported_symbol=no
10161 fi
10162
10163 rm -rf conftest.dSYM
10164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LDFLAGS="$save_LDFLAGS"
10167 fi
10168 { $as_echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
10169 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10170 if test "$lt_cv_irix_exported_symbol" = yes; then
10171 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'
10172 fi
10173 else
10174 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'
10175 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'
10176 fi
10177 archive_cmds_need_lc='no'
10178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10179 hardcode_libdir_separator=:
10180 inherit_rpath=yes
10181 link_all_deplibs=yes
10182 ;;
10183
10184 netbsd*)
10185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10187 else
10188 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10189 fi
10190 hardcode_libdir_flag_spec='-R$libdir'
10191 hardcode_direct=yes
10192 hardcode_shlibpath_var=no
10193 ;;
10194
10195 newsos6)
10196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197 hardcode_direct=yes
10198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10199 hardcode_libdir_separator=:
10200 hardcode_shlibpath_var=no
10201 ;;
10202
10203 *nto* | *qnx*)
10204 ;;
10205
10206 openbsd*)
10207 if test -f /usr/libexec/ld.so; then
10208 hardcode_direct=yes
10209 hardcode_shlibpath_var=no
10210 hardcode_direct_absolute=yes
10211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10212 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10213 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10215 export_dynamic_flag_spec='${wl}-E'
10216 else
10217 case $host_os in
10218 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10220 hardcode_libdir_flag_spec='-R$libdir'
10221 ;;
10222 *)
10223 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10224 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10225 ;;
10226 esac
10227 fi
10228 else
10229 ld_shlibs=no
10230 fi
10231 ;;
10232
10233 os2*)
10234 hardcode_libdir_flag_spec='-L$libdir'
10235 hardcode_minus_L=yes
10236 allow_undefined_flag=unsupported
10237 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'
10238 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10239 ;;
10240
10241 osf3*)
10242 if test "$GCC" = yes; then
10243 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10244 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'
10245 else
10246 allow_undefined_flag=' -expect_unresolved \*'
10247 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'
10248 fi
10249 archive_cmds_need_lc='no'
10250 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10251 hardcode_libdir_separator=:
10252 ;;
10253
10254 osf4* | osf5*) # as osf3* with the addition of -msym flag
10255 if test "$GCC" = yes; then
10256 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10257 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'
10258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10259 else
10260 allow_undefined_flag=' -expect_unresolved \*'
10261 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'
10262 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~
10263 $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'
10264
10265 # Both c and cxx compiler support -rpath directly
10266 hardcode_libdir_flag_spec='-rpath $libdir'
10267 fi
10268 archive_cmds_need_lc='no'
10269 hardcode_libdir_separator=:
10270 ;;
10271
10272 solaris*)
10273 no_undefined_flag=' -z defs'
10274 if test "$GCC" = yes; then
10275 wlarc='${wl}'
10276 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10277 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10278 $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'
10279 else
10280 case `$CC -V 2>&1` in
10281 *"Compilers 5.0"*)
10282 wlarc=''
10283 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10284 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10285 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10286 ;;
10287 *)
10288 wlarc='${wl}'
10289 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10290 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10291 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10292 ;;
10293 esac
10294 fi
10295 hardcode_libdir_flag_spec='-R$libdir'
10296 hardcode_shlibpath_var=no
10297 case $host_os in
10298 solaris2.[0-5] | solaris2.[0-5].*) ;;
10299 *)
10300 # The compiler driver will combine and reorder linker options,
10301 # but understands `-z linker_flag'. GCC discards it without `$wl',
10302 # but is careful enough not to reorder.
10303 # Supported since Solaris 2.6 (maybe 2.5.1?)
10304 if test "$GCC" = yes; then
10305 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10306 else
10307 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10308 fi
10309 ;;
10310 esac
10311 link_all_deplibs=yes
10312 ;;
10313
10314 sunos4*)
10315 if test "x$host_vendor" = xsequent; then
10316 # Use $CC to link under sequent, because it throws in some extra .o
10317 # files that make .init and .fini sections work.
10318 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10319 else
10320 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10321 fi
10322 hardcode_libdir_flag_spec='-L$libdir'
10323 hardcode_direct=yes
10324 hardcode_minus_L=yes
10325 hardcode_shlibpath_var=no
10326 ;;
10327
10328 sysv4)
10329 case $host_vendor in
10330 sni)
10331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10332 hardcode_direct=yes # is this really true???
10333 ;;
10334 siemens)
10335 ## LD is ld it makes a PLAMLIB
10336 ## CC just makes a GrossModule.
10337 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10338 reload_cmds='$CC -r -o $output$reload_objs'
10339 hardcode_direct=no
10340 ;;
10341 motorola)
10342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10343 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10344 ;;
10345 esac
10346 runpath_var='LD_RUN_PATH'
10347 hardcode_shlibpath_var=no
10348 ;;
10349
10350 sysv4.3*)
10351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10352 hardcode_shlibpath_var=no
10353 export_dynamic_flag_spec='-Bexport'
10354 ;;
10355
10356 sysv4*MP*)
10357 if test -d /usr/nec; then
10358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10359 hardcode_shlibpath_var=no
10360 runpath_var=LD_RUN_PATH
10361 hardcode_runpath_var=yes
10362 ld_shlibs=yes
10363 fi
10364 ;;
10365
10366 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10367 no_undefined_flag='${wl}-z,text'
10368 archive_cmds_need_lc=no
10369 hardcode_shlibpath_var=no
10370 runpath_var='LD_RUN_PATH'
10371
10372 if test "$GCC" = yes; then
10373 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10374 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10375 else
10376 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10377 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10378 fi
10379 ;;
10380
10381 sysv5* | sco3.2v5* | sco5v6*)
10382 # Note: We can NOT use -z defs as we might desire, because we do not
10383 # link with -lc, and that would cause any symbols used from libc to
10384 # always be unresolved, which means just about no library would
10385 # ever link correctly. If we're not using GNU ld we use -z text
10386 # though, which does catch some bad symbols but isn't as heavy-handed
10387 # as -z defs.
10388 no_undefined_flag='${wl}-z,text'
10389 allow_undefined_flag='${wl}-z,nodefs'
10390 archive_cmds_need_lc=no
10391 hardcode_shlibpath_var=no
10392 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10393 hardcode_libdir_separator=':'
10394 link_all_deplibs=yes
10395 export_dynamic_flag_spec='${wl}-Bexport'
10396 runpath_var='LD_RUN_PATH'
10397
10398 if test "$GCC" = yes; then
10399 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10400 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10401 else
10402 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10404 fi
10405 ;;
10406
10407 uts4*)
10408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10409 hardcode_libdir_flag_spec='-L$libdir'
10410 hardcode_shlibpath_var=no
10411 ;;
10412
10413 *)
10414 ld_shlibs=no
10415 ;;
10416 esac
10417
10418 if test x$host_vendor = xsni; then
10419 case $host in
10420 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10421 export_dynamic_flag_spec='${wl}-Blargedynsym'
10422 ;;
10423 esac
10424 fi
10425 fi
10426
10427 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10428 $as_echo "$ld_shlibs" >&6; }
10429 test "$ld_shlibs" = no && can_build_shared=no
10430
10431 with_gnu_ld=$with_gnu_ld
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447 #
10448 # Do we need to explicitly link libc?
10449 #
10450 case "x$archive_cmds_need_lc" in
10451 x|xyes)
10452 # Assume -lc should be added
10453 archive_cmds_need_lc=yes
10454
10455 if test "$enable_shared" = yes && test "$GCC" = yes; then
10456 case $archive_cmds in
10457 *'~'*)
10458 # FIXME: we may have to deal with multi-command sequences.
10459 ;;
10460 '$CC '*)
10461 # Test whether the compiler implicitly links with -lc since on some
10462 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10463 # to ld, don't add -lc before -lgcc.
10464 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10465 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10466 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10467 $as_echo_n "(cached) " >&6
10468 else
10469 $RM conftest*
10470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10471
10472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10473 (eval $ac_compile) 2>&5
10474 ac_status=$?
10475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } 2>conftest.err; then
10477 soname=conftest
10478 lib=conftest
10479 libobjs=conftest.$ac_objext
10480 deplibs=
10481 wl=$lt_prog_compiler_wl
10482 pic_flag=$lt_prog_compiler_pic
10483 compiler_flags=-v
10484 linker_flags=-v
10485 verstring=
10486 output_objdir=.
10487 libname=conftest
10488 lt_save_allow_undefined_flag=$allow_undefined_flag
10489 allow_undefined_flag=
10490 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10491 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10492 ac_status=$?
10493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }
10495 then
10496 lt_cv_archive_cmds_need_lc=no
10497 else
10498 lt_cv_archive_cmds_need_lc=yes
10499 fi
10500 allow_undefined_flag=$lt_save_allow_undefined_flag
10501 else
10502 cat conftest.err 1>&5
10503 fi
10504 $RM conftest*
10505
10506 fi
10507 { $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10508 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10509 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10510 ;;
10511 esac
10512 fi
10513 ;;
10514 esac
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10673 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10674
10675 if test "$GCC" = yes; then
10676 case $host_os in
10677 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10678 *) lt_awk_arg="/^libraries:/" ;;
10679 esac
10680 case $host_os in
10681 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10682 *) lt_sed_strip_eq="s,=/,/,g" ;;
10683 esac
10684 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10685 case $lt_search_path_spec in
10686 *\;*)
10687 # if the path contains ";" then we assume it to be the separator
10688 # otherwise default to the standard path separator (i.e. ":") - it is
10689 # assumed that no part of a normal pathname contains ";" but that should
10690 # okay in the real world where ";" in dirpaths is itself problematic.
10691 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10692 ;;
10693 *)
10694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10695 ;;
10696 esac
10697 # Ok, now we have the path, separated by spaces, we can step through it
10698 # and add multilib dir if necessary.
10699 lt_tmp_lt_search_path_spec=
10700 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10701 for lt_sys_path in $lt_search_path_spec; do
10702 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10703 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10704 else
10705 test -d "$lt_sys_path" && \
10706 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10707 fi
10708 done
10709 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10710 BEGIN {RS=" "; FS="/|\n";} {
10711 lt_foo="";
10712 lt_count=0;
10713 for (lt_i = NF; lt_i > 0; lt_i--) {
10714 if ($lt_i != "" && $lt_i != ".") {
10715 if ($lt_i == "..") {
10716 lt_count++;
10717 } else {
10718 if (lt_count == 0) {
10719 lt_foo="/" $lt_i lt_foo;
10720 } else {
10721 lt_count--;
10722 }
10723 }
10724 }
10725 }
10726 if (lt_foo != "") { lt_freq[lt_foo]++; }
10727 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10728 }'`
10729 # AWK program above erroneously prepends '/' to C:/dos/paths
10730 # for these hosts.
10731 case $host_os in
10732 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10733 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10734 esac
10735 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10736 else
10737 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10738 fi
10739 library_names_spec=
10740 libname_spec='lib$name'
10741 soname_spec=
10742 shrext_cmds=".so"
10743 postinstall_cmds=
10744 postuninstall_cmds=
10745 finish_cmds=
10746 finish_eval=
10747 shlibpath_var=
10748 shlibpath_overrides_runpath=unknown
10749 version_type=none
10750 dynamic_linker="$host_os ld.so"
10751 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10752 need_lib_prefix=unknown
10753 hardcode_into_libs=no
10754
10755 # when you set need_version to no, make sure it does not cause -set_version
10756 # flags to be left without arguments
10757 need_version=unknown
10758
10759 case $host_os in
10760 aix3*)
10761 version_type=linux
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10763 shlibpath_var=LIBPATH
10764
10765 # AIX 3 has no versioning support, so we append a major version to the name.
10766 soname_spec='${libname}${release}${shared_ext}$major'
10767 ;;
10768
10769 aix[4-9]*)
10770 version_type=linux
10771 need_lib_prefix=no
10772 need_version=no
10773 hardcode_into_libs=yes
10774 if test "$host_cpu" = ia64; then
10775 # AIX 5 supports IA64
10776 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 else
10779 # With GCC up to 2.95.x, collect2 would create an import file
10780 # for dependence libraries. The import file would start with
10781 # the line `#! .'. This would cause the generated library to
10782 # depend on `.', always an invalid library. This was fixed in
10783 # development snapshots of GCC prior to 3.0.
10784 case $host_os in
10785 aix4 | aix4.[01] | aix4.[01].*)
10786 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10787 echo ' yes '
10788 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10789 :
10790 else
10791 can_build_shared=no
10792 fi
10793 ;;
10794 esac
10795 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10796 # soname into executable. Probably we can add versioning support to
10797 # collect2, so additional links can be useful in future.
10798 if test "$aix_use_runtimelinking" = yes; then
10799 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10800 # instead of lib<name>.a to let people know that these are not
10801 # typical AIX shared libraries.
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10803 else
10804 # We preserve .a as extension for shared libraries through AIX4.2
10805 # and later when we are not doing run time linking.
10806 library_names_spec='${libname}${release}.a $libname.a'
10807 soname_spec='${libname}${release}${shared_ext}$major'
10808 fi
10809 shlibpath_var=LIBPATH
10810 fi
10811 ;;
10812
10813 amigaos*)
10814 case $host_cpu in
10815 powerpc)
10816 # Since July 2007 AmigaOS4 officially supports .so libraries.
10817 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10819 ;;
10820 m68k)
10821 library_names_spec='$libname.ixlibrary $libname.a'
10822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10823 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'
10824 ;;
10825 esac
10826 ;;
10827
10828 beos*)
10829 library_names_spec='${libname}${shared_ext}'
10830 dynamic_linker="$host_os ld.so"
10831 shlibpath_var=LIBRARY_PATH
10832 ;;
10833
10834 bsdi[45]*)
10835 version_type=linux
10836 need_version=no
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10840 shlibpath_var=LD_LIBRARY_PATH
10841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10843 # the default ld.so.conf also contains /usr/contrib/lib and
10844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10845 # libtool to hard-code these into programs
10846 ;;
10847
10848 cygwin* | mingw* | pw32* | cegcc*)
10849 version_type=windows
10850 shrext_cmds=".dll"
10851 need_version=no
10852 need_lib_prefix=no
10853
10854 case $GCC,$cc_basename in
10855 yes,*)
10856 # gcc
10857 library_names_spec='$libname.dll.a'
10858 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10859 postinstall_cmds='base_file=`basename \${file}`~
10860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10861 dldir=$destdir/`dirname \$dlpath`~
10862 test -d \$dldir || mkdir -p \$dldir~
10863 $install_prog $dir/$dlname \$dldir/$dlname~
10864 chmod a+x \$dldir/$dlname~
10865 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10866 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10867 fi'
10868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10869 dlpath=$dir/\$dldll~
10870 $RM \$dlpath'
10871 shlibpath_overrides_runpath=yes
10872
10873 case $host_os in
10874 cygwin*)
10875 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10876 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10877
10878 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10879 ;;
10880 mingw* | cegcc*)
10881 # MinGW DLLs use traditional 'lib' prefix
10882 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10883 ;;
10884 pw32*)
10885 # pw32 DLLs use 'pw' prefix rather than 'lib'
10886 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10887 ;;
10888 esac
10889 dynamic_linker='Win32 ld.exe'
10890 ;;
10891
10892 *,cl*)
10893 # Native MSVC
10894 libname_spec='$name'
10895 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10896 library_names_spec='${libname}.dll.lib'
10897
10898 case $build_os in
10899 mingw*)
10900 sys_lib_search_path_spec=
10901 lt_save_ifs=$IFS
10902 IFS=';'
10903 for lt_path in $LIB
10904 do
10905 IFS=$lt_save_ifs
10906 # Let DOS variable expansion print the short 8.3 style file name.
10907 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10908 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10909 done
10910 IFS=$lt_save_ifs
10911 # Convert to MSYS style.
10912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10913 ;;
10914 cygwin*)
10915 # Convert to unix form, then to dos form, then back to unix form
10916 # but this time dos style (no spaces!) so that the unix form looks
10917 # like /cygdrive/c/PROGRA~1:/cygdr...
10918 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10919 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10920 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10921 ;;
10922 *)
10923 sys_lib_search_path_spec="$LIB"
10924 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10925 # It is most probably a Windows format PATH.
10926 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10927 else
10928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10929 fi
10930 # FIXME: find the short name or the path components, as spaces are
10931 # common. (e.g. "Program Files" -> "PROGRA~1")
10932 ;;
10933 esac
10934
10935 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10936 postinstall_cmds='base_file=`basename \${file}`~
10937 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10938 dldir=$destdir/`dirname \$dlpath`~
10939 test -d \$dldir || mkdir -p \$dldir~
10940 $install_prog $dir/$dlname \$dldir/$dlname'
10941 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10942 dlpath=$dir/\$dldll~
10943 $RM \$dlpath'
10944 shlibpath_overrides_runpath=yes
10945 dynamic_linker='Win32 link.exe'
10946 ;;
10947
10948 *)
10949 # Assume MSVC wrapper
10950 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10951 dynamic_linker='Win32 ld.exe'
10952 ;;
10953 esac
10954 # FIXME: first we should search . and the directory the executable is in
10955 shlibpath_var=PATH
10956 ;;
10957
10958 darwin* | rhapsody*)
10959 dynamic_linker="$host_os dyld"
10960 version_type=darwin
10961 need_lib_prefix=no
10962 need_version=no
10963 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10964 soname_spec='${libname}${release}${major}$shared_ext'
10965 shlibpath_overrides_runpath=yes
10966 shlibpath_var=DYLD_LIBRARY_PATH
10967 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10968
10969 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10971 ;;
10972
10973 dgux*)
10974 version_type=linux
10975 need_lib_prefix=no
10976 need_version=no
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10978 soname_spec='${libname}${release}${shared_ext}$major'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 ;;
10981
10982 freebsd1*)
10983 dynamic_linker=no
10984 ;;
10985
10986 freebsd* | dragonfly*)
10987 # DragonFly does not have aout. When/if they implement a new
10988 # versioning mechanism, adjust this.
10989 if test -x /usr/bin/objformat; then
10990 objformat=`/usr/bin/objformat`
10991 else
10992 case $host_os in
10993 freebsd[123]*) objformat=aout ;;
10994 *) objformat=elf ;;
10995 esac
10996 fi
10997 version_type=freebsd-$objformat
10998 case $version_type in
10999 freebsd-elf*)
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11001 need_version=no
11002 need_lib_prefix=no
11003 ;;
11004 freebsd-*)
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11006 need_version=yes
11007 ;;
11008 esac
11009 shlibpath_var=LD_LIBRARY_PATH
11010 case $host_os in
11011 freebsd2*)
11012 shlibpath_overrides_runpath=yes
11013 ;;
11014 freebsd3.[01]* | freebsdelf3.[01]*)
11015 shlibpath_overrides_runpath=yes
11016 hardcode_into_libs=yes
11017 ;;
11018 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11019 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11020 shlibpath_overrides_runpath=no
11021 hardcode_into_libs=yes
11022 ;;
11023 *) # from 4.6 on, and DragonFly
11024 shlibpath_overrides_runpath=yes
11025 hardcode_into_libs=yes
11026 ;;
11027 esac
11028 ;;
11029
11030 gnu*)
11031 version_type=linux
11032 need_lib_prefix=no
11033 need_version=no
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11035 soname_spec='${libname}${release}${shared_ext}$major'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 hardcode_into_libs=yes
11038 ;;
11039
11040 haiku*)
11041 version_type=linux
11042 need_lib_prefix=no
11043 need_version=no
11044 dynamic_linker="$host_os runtime_loader"
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 shlibpath_var=LIBRARY_PATH
11048 shlibpath_overrides_runpath=yes
11049 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11050 hardcode_into_libs=yes
11051 ;;
11052
11053 hpux9* | hpux10* | hpux11*)
11054 # Give a soname corresponding to the major version so that dld.sl refuses to
11055 # link against other versions.
11056 version_type=sunos
11057 need_lib_prefix=no
11058 need_version=no
11059 case $host_cpu in
11060 ia64*)
11061 shrext_cmds='.so'
11062 hardcode_into_libs=yes
11063 dynamic_linker="$host_os dld.so"
11064 shlibpath_var=LD_LIBRARY_PATH
11065 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067 soname_spec='${libname}${release}${shared_ext}$major'
11068 if test "X$HPUX_IA64_MODE" = X32; then
11069 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11070 else
11071 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11072 fi
11073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11074 ;;
11075 hppa*64*)
11076 shrext_cmds='.sl'
11077 hardcode_into_libs=yes
11078 dynamic_linker="$host_os dld.sl"
11079 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082 soname_spec='${libname}${release}${shared_ext}$major'
11083 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11084 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11085 ;;
11086 *)
11087 shrext_cmds='.sl'
11088 dynamic_linker="$host_os dld.sl"
11089 shlibpath_var=SHLIB_PATH
11090 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 soname_spec='${libname}${release}${shared_ext}$major'
11093 ;;
11094 esac
11095 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11096 postinstall_cmds='chmod 555 $lib'
11097 # or fails outright, so override atomically:
11098 install_override_mode=555
11099 ;;
11100
11101 interix[3-9]*)
11102 version_type=linux
11103 need_lib_prefix=no
11104 need_version=no
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11106 soname_spec='${libname}${release}${shared_ext}$major'
11107 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=no
11110 hardcode_into_libs=yes
11111 ;;
11112
11113 irix5* | irix6* | nonstopux*)
11114 case $host_os in
11115 nonstopux*) version_type=nonstopux ;;
11116 *)
11117 if test "$lt_cv_prog_gnu_ld" = yes; then
11118 version_type=linux
11119 else
11120 version_type=irix
11121 fi ;;
11122 esac
11123 need_lib_prefix=no
11124 need_version=no
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11127 case $host_os in
11128 irix5* | nonstopux*)
11129 libsuff= shlibsuff=
11130 ;;
11131 *)
11132 case $LD in # libtool.m4 will add one of these switches to LD
11133 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11134 libsuff= shlibsuff= libmagic=32-bit;;
11135 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11136 libsuff=32 shlibsuff=N32 libmagic=N32;;
11137 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11138 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11139 *) libsuff= shlibsuff= libmagic=never-match;;
11140 esac
11141 ;;
11142 esac
11143 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11144 shlibpath_overrides_runpath=no
11145 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11146 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11147 hardcode_into_libs=yes
11148 ;;
11149
11150 # No shared lib support for Linux oldld, aout, or coff.
11151 linux*oldld* | linux*aout* | linux*coff*)
11152 dynamic_linker=no
11153 ;;
11154
11155 # This must be Linux ELF.
11156 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11157 version_type=linux
11158 need_lib_prefix=no
11159 need_version=no
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 soname_spec='${libname}${release}${shared_ext}$major'
11162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 shlibpath_overrides_runpath=no
11165
11166 # Some binutils ld are patched to set DT_RUNPATH
11167 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11168 $as_echo_n "(cached) " >&6
11169 else
11170 lt_cv_shlibpath_overrides_runpath=no
11171 save_LDFLAGS=$LDFLAGS
11172 save_libdir=$libdir
11173 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11174 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11175 cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h. */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181
11182 int
11183 main ()
11184 {
11185
11186 ;
11187 return 0;
11188 }
11189 _ACEOF
11190 rm -f conftest.$ac_objext conftest$ac_exeext
11191 if { (ac_try="$ac_link"
11192 case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11195 esac
11196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11197 $as_echo "$ac_try_echo") >&5
11198 (eval "$ac_link") 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && {
11205 test -z "$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11207 } && test -s conftest$ac_exeext && {
11208 test "$cross_compiling" = yes ||
11209 $as_test_x conftest$ac_exeext
11210 }; then
11211 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11212 lt_cv_shlibpath_overrides_runpath=yes
11213 fi
11214
11215 else
11216 $as_echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219
11220 fi
11221
11222 rm -rf conftest.dSYM
11223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11224 conftest$ac_exeext conftest.$ac_ext
11225 LDFLAGS=$save_LDFLAGS
11226 libdir=$save_libdir
11227
11228 fi
11229
11230 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11231
11232 # This implies no fast_install, which is unacceptable.
11233 # Some rework will be needed to allow for fast_install
11234 # before this can be enabled.
11235 hardcode_into_libs=yes
11236
11237 # Append ld.so.conf contents to the search path
11238 if test -f /etc/ld.so.conf; then
11239 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' ' '`
11240 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11241 fi
11242
11243 # We used to test for /lib/ld.so.1 and disable shared libraries on
11244 # powerpc, because MkLinux only supported shared libraries with the
11245 # GNU dynamic linker. Since this was broken with cross compilers,
11246 # most powerpc-linux boxes support dynamic linking these days and
11247 # people can always --disable-shared, the test was removed, and we
11248 # assume the GNU/Linux dynamic linker is in use.
11249 dynamic_linker='GNU/Linux ld.so'
11250 ;;
11251
11252 netbsd*)
11253 version_type=sunos
11254 need_lib_prefix=no
11255 need_version=no
11256 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11259 dynamic_linker='NetBSD (a.out) ld.so'
11260 else
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11262 soname_spec='${libname}${release}${shared_ext}$major'
11263 dynamic_linker='NetBSD ld.elf_so'
11264 fi
11265 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=yes
11267 hardcode_into_libs=yes
11268 ;;
11269
11270 newsos6)
11271 version_type=linux
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273 shlibpath_var=LD_LIBRARY_PATH
11274 shlibpath_overrides_runpath=yes
11275 ;;
11276
11277 *nto* | *qnx*)
11278 version_type=qnx
11279 need_lib_prefix=no
11280 need_version=no
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282 soname_spec='${libname}${release}${shared_ext}$major'
11283 shlibpath_var=LD_LIBRARY_PATH
11284 shlibpath_overrides_runpath=no
11285 hardcode_into_libs=yes
11286 dynamic_linker='ldqnx.so'
11287 ;;
11288
11289 openbsd*)
11290 version_type=sunos
11291 sys_lib_dlsearch_path_spec="/usr/lib"
11292 need_lib_prefix=no
11293 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11294 case $host_os in
11295 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11296 *) need_version=no ;;
11297 esac
11298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11300 shlibpath_var=LD_LIBRARY_PATH
11301 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11302 case $host_os in
11303 openbsd2.[89] | openbsd2.[89].*)
11304 shlibpath_overrides_runpath=no
11305 ;;
11306 *)
11307 shlibpath_overrides_runpath=yes
11308 ;;
11309 esac
11310 else
11311 shlibpath_overrides_runpath=yes
11312 fi
11313 ;;
11314
11315 os2*)
11316 libname_spec='$name'
11317 shrext_cmds=".dll"
11318 need_lib_prefix=no
11319 library_names_spec='$libname${shared_ext} $libname.a'
11320 dynamic_linker='OS/2 ld.exe'
11321 shlibpath_var=LIBPATH
11322 ;;
11323
11324 osf3* | osf4* | osf5*)
11325 version_type=osf
11326 need_lib_prefix=no
11327 need_version=no
11328 soname_spec='${libname}${release}${shared_ext}$major'
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11330 shlibpath_var=LD_LIBRARY_PATH
11331 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11332 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11333 ;;
11334
11335 rdos*)
11336 dynamic_linker=no
11337 ;;
11338
11339 solaris*)
11340 version_type=linux
11341 need_lib_prefix=no
11342 need_version=no
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344 soname_spec='${libname}${release}${shared_ext}$major'
11345 shlibpath_var=LD_LIBRARY_PATH
11346 shlibpath_overrides_runpath=yes
11347 hardcode_into_libs=yes
11348 # ldd complains unless libraries are executable
11349 postinstall_cmds='chmod +x $lib'
11350 ;;
11351
11352 sunos4*)
11353 version_type=sunos
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11355 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11356 shlibpath_var=LD_LIBRARY_PATH
11357 shlibpath_overrides_runpath=yes
11358 if test "$with_gnu_ld" = yes; then
11359 need_lib_prefix=no
11360 fi
11361 need_version=yes
11362 ;;
11363
11364 sysv4 | sysv4.3*)
11365 version_type=linux
11366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367 soname_spec='${libname}${release}${shared_ext}$major'
11368 shlibpath_var=LD_LIBRARY_PATH
11369 case $host_vendor in
11370 sni)
11371 shlibpath_overrides_runpath=no
11372 need_lib_prefix=no
11373 runpath_var=LD_RUN_PATH
11374 ;;
11375 siemens)
11376 need_lib_prefix=no
11377 ;;
11378 motorola)
11379 need_lib_prefix=no
11380 need_version=no
11381 shlibpath_overrides_runpath=no
11382 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11383 ;;
11384 esac
11385 ;;
11386
11387 sysv4*MP*)
11388 if test -d /usr/nec ;then
11389 version_type=linux
11390 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11391 soname_spec='$libname${shared_ext}.$major'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 fi
11394 ;;
11395
11396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11397 version_type=freebsd-elf
11398 need_lib_prefix=no
11399 need_version=no
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11401 soname_spec='${libname}${release}${shared_ext}$major'
11402 shlibpath_var=LD_LIBRARY_PATH
11403 shlibpath_overrides_runpath=yes
11404 hardcode_into_libs=yes
11405 if test "$with_gnu_ld" = yes; then
11406 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11407 else
11408 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11409 case $host_os in
11410 sco3.2v5*)
11411 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11412 ;;
11413 esac
11414 fi
11415 sys_lib_dlsearch_path_spec='/usr/lib'
11416 ;;
11417
11418 tpf*)
11419 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11420 version_type=linux
11421 need_lib_prefix=no
11422 need_version=no
11423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 shlibpath_overrides_runpath=no
11426 hardcode_into_libs=yes
11427 ;;
11428
11429 uts4*)
11430 version_type=linux
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432 soname_spec='${libname}${release}${shared_ext}$major'
11433 shlibpath_var=LD_LIBRARY_PATH
11434 ;;
11435
11436 *)
11437 dynamic_linker=no
11438 ;;
11439 esac
11440 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11441 $as_echo "$dynamic_linker" >&6; }
11442 test "$dynamic_linker" = no && can_build_shared=no
11443
11444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11445 if test "$GCC" = yes; then
11446 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11447 fi
11448
11449 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11450 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11451 fi
11452 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11453 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11454 fi
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11548 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11549 hardcode_action=
11550 if test -n "$hardcode_libdir_flag_spec" ||
11551 test -n "$runpath_var" ||
11552 test "X$hardcode_automatic" = "Xyes" ; then
11553
11554 # We can hardcode non-existent directories.
11555 if test "$hardcode_direct" != no &&
11556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11557 # have to relink, otherwise we might link with an installed library
11558 # when we should be linking with a yet-to-be-installed one
11559 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11560 test "$hardcode_minus_L" != no; then
11561 # Linking always hardcodes the temporary library directory.
11562 hardcode_action=relink
11563 else
11564 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11565 hardcode_action=immediate
11566 fi
11567 else
11568 # We cannot hardcode anything, or else we can only hardcode existing
11569 # directories.
11570 hardcode_action=unsupported
11571 fi
11572 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11573 $as_echo "$hardcode_action" >&6; }
11574
11575 if test "$hardcode_action" = relink ||
11576 test "$inherit_rpath" = yes; then
11577 # Fast installation is not supported
11578 enable_fast_install=no
11579 elif test "$shlibpath_overrides_runpath" = yes ||
11580 test "$enable_shared" = no; then
11581 # Fast installation is not necessary
11582 enable_fast_install=needless
11583 fi
11584
11585
11586
11587
11588
11589
11590 if test "x$enable_dlopen" != xyes; then
11591 enable_dlopen=unknown
11592 enable_dlopen_self=unknown
11593 enable_dlopen_self_static=unknown
11594 else
11595 lt_cv_dlopen=no
11596 lt_cv_dlopen_libs=
11597
11598 case $host_os in
11599 beos*)
11600 lt_cv_dlopen="load_add_on"
11601 lt_cv_dlopen_libs=
11602 lt_cv_dlopen_self=yes
11603 ;;
11604
11605 mingw* | pw32* | cegcc*)
11606 lt_cv_dlopen="LoadLibrary"
11607 lt_cv_dlopen_libs=
11608 ;;
11609
11610 cygwin*)
11611 lt_cv_dlopen="dlopen"
11612 lt_cv_dlopen_libs=
11613 ;;
11614
11615 darwin*)
11616 # if libdl is installed we need to link against it
11617 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11618 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11619 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11620 $as_echo_n "(cached) " >&6
11621 else
11622 ac_check_lib_save_LIBS=$LIBS
11623 LIBS="-ldl $LIBS"
11624 cat >conftest.$ac_ext <<_ACEOF
11625 /* confdefs.h. */
11626 _ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630
11631 /* Override any GCC internal prototype to avoid an error.
11632 Use char because int might match the return type of a GCC
11633 builtin and then its argument prototype would still apply. */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 char dlopen ();
11638 int
11639 main ()
11640 {
11641 return dlopen ();
11642 ;
11643 return 0;
11644 }
11645 _ACEOF
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (ac_try="$ac_link"
11648 case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11651 esac
11652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11653 $as_echo "$ac_try_echo") >&5
11654 (eval "$ac_link") 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && {
11661 test -z "$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11663 } && test -s conftest$ac_exeext && {
11664 test "$cross_compiling" = yes ||
11665 $as_test_x conftest$ac_exeext
11666 }; then
11667 ac_cv_lib_dl_dlopen=yes
11668 else
11669 $as_echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11671
11672 ac_cv_lib_dl_dlopen=no
11673 fi
11674
11675 rm -rf conftest.dSYM
11676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11677 conftest$ac_exeext conftest.$ac_ext
11678 LIBS=$ac_check_lib_save_LIBS
11679 fi
11680 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11681 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11682 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11684 else
11685
11686 lt_cv_dlopen="dyld"
11687 lt_cv_dlopen_libs=
11688 lt_cv_dlopen_self=yes
11689
11690 fi
11691
11692 ;;
11693
11694 *)
11695 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11696 $as_echo_n "checking for shl_load... " >&6; }
11697 if test "${ac_cv_func_shl_load+set}" = set; then
11698 $as_echo_n "(cached) " >&6
11699 else
11700 cat >conftest.$ac_ext <<_ACEOF
11701 /* confdefs.h. */
11702 _ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h. */
11706 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11708 #define shl_load innocuous_shl_load
11709
11710 /* System header to define __stub macros and hopefully few prototypes,
11711 which can conflict with char shl_load (); below.
11712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11713 <limits.h> exists even on freestanding compilers. */
11714
11715 #ifdef __STDC__
11716 # include <limits.h>
11717 #else
11718 # include <assert.h>
11719 #endif
11720
11721 #undef shl_load
11722
11723 /* Override any GCC internal prototype to avoid an error.
11724 Use char because int might match the return type of a GCC
11725 builtin and then its argument prototype would still apply. */
11726 #ifdef __cplusplus
11727 extern "C"
11728 #endif
11729 char shl_load ();
11730 /* The GNU C library defines this for functions which it implements
11731 to always fail with ENOSYS. Some functions are actually named
11732 something starting with __ and the normal name is an alias. */
11733 #if defined __stub_shl_load || defined __stub___shl_load
11734 choke me
11735 #endif
11736
11737 int
11738 main ()
11739 {
11740 return shl_load ();
11741 ;
11742 return 0;
11743 }
11744 _ACEOF
11745 rm -f conftest.$ac_objext conftest$ac_exeext
11746 if { (ac_try="$ac_link"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11750 esac
11751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11752 $as_echo "$ac_try_echo") >&5
11753 (eval "$ac_link") 2>conftest.er1
11754 ac_status=$?
11755 grep -v '^ *+' conftest.er1 >conftest.err
11756 rm -f conftest.er1
11757 cat conftest.err >&5
11758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } && {
11760 test -z "$ac_c_werror_flag" ||
11761 test ! -s conftest.err
11762 } && test -s conftest$ac_exeext && {
11763 test "$cross_compiling" = yes ||
11764 $as_test_x conftest$ac_exeext
11765 }; then
11766 ac_cv_func_shl_load=yes
11767 else
11768 $as_echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771 ac_cv_func_shl_load=no
11772 fi
11773
11774 rm -rf conftest.dSYM
11775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11776 conftest$ac_exeext conftest.$ac_ext
11777 fi
11778 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11779 $as_echo "$ac_cv_func_shl_load" >&6; }
11780 if test "x$ac_cv_func_shl_load" = x""yes; then
11781 lt_cv_dlopen="shl_load"
11782 else
11783 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11784 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11785 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11786 $as_echo_n "(cached) " >&6
11787 else
11788 ac_check_lib_save_LIBS=$LIBS
11789 LIBS="-ldld $LIBS"
11790 cat >conftest.$ac_ext <<_ACEOF
11791 /* confdefs.h. */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796
11797 /* Override any GCC internal prototype to avoid an error.
11798 Use char because int might match the return type of a GCC
11799 builtin and then its argument prototype would still apply. */
11800 #ifdef __cplusplus
11801 extern "C"
11802 #endif
11803 char shl_load ();
11804 int
11805 main ()
11806 {
11807 return shl_load ();
11808 ;
11809 return 0;
11810 }
11811 _ACEOF
11812 rm -f conftest.$ac_objext conftest$ac_exeext
11813 if { (ac_try="$ac_link"
11814 case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11817 esac
11818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11819 $as_echo "$ac_try_echo") >&5
11820 (eval "$ac_link") 2>conftest.er1
11821 ac_status=$?
11822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
11825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } && {
11827 test -z "$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11829 } && test -s conftest$ac_exeext && {
11830 test "$cross_compiling" = yes ||
11831 $as_test_x conftest$ac_exeext
11832 }; then
11833 ac_cv_lib_dld_shl_load=yes
11834 else
11835 $as_echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838 ac_cv_lib_dld_shl_load=no
11839 fi
11840
11841 rm -rf conftest.dSYM
11842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11843 conftest$ac_exeext conftest.$ac_ext
11844 LIBS=$ac_check_lib_save_LIBS
11845 fi
11846 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11847 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11848 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11849 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11850 else
11851 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11852 $as_echo_n "checking for dlopen... " >&6; }
11853 if test "${ac_cv_func_dlopen+set}" = set; then
11854 $as_echo_n "(cached) " >&6
11855 else
11856 cat >conftest.$ac_ext <<_ACEOF
11857 /* confdefs.h. */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11862 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11864 #define dlopen innocuous_dlopen
11865
11866 /* System header to define __stub macros and hopefully few prototypes,
11867 which can conflict with char dlopen (); below.
11868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11869 <limits.h> exists even on freestanding compilers. */
11870
11871 #ifdef __STDC__
11872 # include <limits.h>
11873 #else
11874 # include <assert.h>
11875 #endif
11876
11877 #undef dlopen
11878
11879 /* Override any GCC internal prototype to avoid an error.
11880 Use char because int might match the return type of a GCC
11881 builtin and then its argument prototype would still apply. */
11882 #ifdef __cplusplus
11883 extern "C"
11884 #endif
11885 char dlopen ();
11886 /* The GNU C library defines this for functions which it implements
11887 to always fail with ENOSYS. Some functions are actually named
11888 something starting with __ and the normal name is an alias. */
11889 #if defined __stub_dlopen || defined __stub___dlopen
11890 choke me
11891 #endif
11892
11893 int
11894 main ()
11895 {
11896 return dlopen ();
11897 ;
11898 return 0;
11899 }
11900 _ACEOF
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (ac_try="$ac_link"
11903 case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906 esac
11907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11908 $as_echo "$ac_try_echo") >&5
11909 (eval "$ac_link") 2>conftest.er1
11910 ac_status=$?
11911 grep -v '^ *+' conftest.er1 >conftest.err
11912 rm -f conftest.er1
11913 cat conftest.err >&5
11914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } && {
11916 test -z "$ac_c_werror_flag" ||
11917 test ! -s conftest.err
11918 } && test -s conftest$ac_exeext && {
11919 test "$cross_compiling" = yes ||
11920 $as_test_x conftest$ac_exeext
11921 }; then
11922 ac_cv_func_dlopen=yes
11923 else
11924 $as_echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 ac_cv_func_dlopen=no
11928 fi
11929
11930 rm -rf conftest.dSYM
11931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11932 conftest$ac_exeext conftest.$ac_ext
11933 fi
11934 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11935 $as_echo "$ac_cv_func_dlopen" >&6; }
11936 if test "x$ac_cv_func_dlopen" = x""yes; then
11937 lt_cv_dlopen="dlopen"
11938 else
11939 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11940 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11941 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11942 $as_echo_n "(cached) " >&6
11943 else
11944 ac_check_lib_save_LIBS=$LIBS
11945 LIBS="-ldl $LIBS"
11946 cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h. */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952
11953 /* Override any GCC internal prototype to avoid an error.
11954 Use char because int might match the return type of a GCC
11955 builtin and then its argument prototype would still apply. */
11956 #ifdef __cplusplus
11957 extern "C"
11958 #endif
11959 char dlopen ();
11960 int
11961 main ()
11962 {
11963 return dlopen ();
11964 ;
11965 return 0;
11966 }
11967 _ACEOF
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (ac_try="$ac_link"
11970 case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973 esac
11974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11975 $as_echo "$ac_try_echo") >&5
11976 (eval "$ac_link") 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } && {
11983 test -z "$ac_c_werror_flag" ||
11984 test ! -s conftest.err
11985 } && test -s conftest$ac_exeext && {
11986 test "$cross_compiling" = yes ||
11987 $as_test_x conftest$ac_exeext
11988 }; then
11989 ac_cv_lib_dl_dlopen=yes
11990 else
11991 $as_echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11993
11994 ac_cv_lib_dl_dlopen=no
11995 fi
11996
11997 rm -rf conftest.dSYM
11998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11999 conftest$ac_exeext conftest.$ac_ext
12000 LIBS=$ac_check_lib_save_LIBS
12001 fi
12002 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12003 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12004 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12006 else
12007 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12008 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12009 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12010 $as_echo_n "(cached) " >&6
12011 else
12012 ac_check_lib_save_LIBS=$LIBS
12013 LIBS="-lsvld $LIBS"
12014 cat >conftest.$ac_ext <<_ACEOF
12015 /* confdefs.h. */
12016 _ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h. */
12020
12021 /* Override any GCC internal prototype to avoid an error.
12022 Use char because int might match the return type of a GCC
12023 builtin and then its argument prototype would still apply. */
12024 #ifdef __cplusplus
12025 extern "C"
12026 #endif
12027 char dlopen ();
12028 int
12029 main ()
12030 {
12031 return dlopen ();
12032 ;
12033 return 0;
12034 }
12035 _ACEOF
12036 rm -f conftest.$ac_objext conftest$ac_exeext
12037 if { (ac_try="$ac_link"
12038 case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041 esac
12042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12043 $as_echo "$ac_try_echo") >&5
12044 (eval "$ac_link") 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } && {
12051 test -z "$ac_c_werror_flag" ||
12052 test ! -s conftest.err
12053 } && test -s conftest$ac_exeext && {
12054 test "$cross_compiling" = yes ||
12055 $as_test_x conftest$ac_exeext
12056 }; then
12057 ac_cv_lib_svld_dlopen=yes
12058 else
12059 $as_echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12061
12062 ac_cv_lib_svld_dlopen=no
12063 fi
12064
12065 rm -rf conftest.dSYM
12066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12067 conftest$ac_exeext conftest.$ac_ext
12068 LIBS=$ac_check_lib_save_LIBS
12069 fi
12070 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12071 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12072 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12074 else
12075 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12076 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12077 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12078 $as_echo_n "(cached) " >&6
12079 else
12080 ac_check_lib_save_LIBS=$LIBS
12081 LIBS="-ldld $LIBS"
12082 cat >conftest.$ac_ext <<_ACEOF
12083 /* confdefs.h. */
12084 _ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h. */
12088
12089 /* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
12092 #ifdef __cplusplus
12093 extern "C"
12094 #endif
12095 char dld_link ();
12096 int
12097 main ()
12098 {
12099 return dld_link ();
12100 ;
12101 return 0;
12102 }
12103 _ACEOF
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (ac_try="$ac_link"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109 esac
12110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12111 $as_echo "$ac_try_echo") >&5
12112 (eval "$ac_link") 2>conftest.er1
12113 ac_status=$?
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
12117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } && {
12119 test -z "$ac_c_werror_flag" ||
12120 test ! -s conftest.err
12121 } && test -s conftest$ac_exeext && {
12122 test "$cross_compiling" = yes ||
12123 $as_test_x conftest$ac_exeext
12124 }; then
12125 ac_cv_lib_dld_dld_link=yes
12126 else
12127 $as_echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12129
12130 ac_cv_lib_dld_dld_link=no
12131 fi
12132
12133 rm -rf conftest.dSYM
12134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12135 conftest$ac_exeext conftest.$ac_ext
12136 LIBS=$ac_check_lib_save_LIBS
12137 fi
12138 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12139 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12140 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12141 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12142 fi
12143
12144
12145 fi
12146
12147
12148 fi
12149
12150
12151 fi
12152
12153
12154 fi
12155
12156
12157 fi
12158
12159 ;;
12160 esac
12161
12162 if test "x$lt_cv_dlopen" != xno; then
12163 enable_dlopen=yes
12164 else
12165 enable_dlopen=no
12166 fi
12167
12168 case $lt_cv_dlopen in
12169 dlopen)
12170 save_CPPFLAGS="$CPPFLAGS"
12171 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12172
12173 save_LDFLAGS="$LDFLAGS"
12174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12175
12176 save_LIBS="$LIBS"
12177 LIBS="$lt_cv_dlopen_libs $LIBS"
12178
12179 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12180 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12181 if test "${lt_cv_dlopen_self+set}" = set; then
12182 $as_echo_n "(cached) " >&6
12183 else
12184 if test "$cross_compiling" = yes; then :
12185 lt_cv_dlopen_self=cross
12186 else
12187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12188 lt_status=$lt_dlunknown
12189 cat > conftest.$ac_ext <<_LT_EOF
12190 #line $LINENO "configure"
12191 #include "confdefs.h"
12192
12193 #if HAVE_DLFCN_H
12194 #include <dlfcn.h>
12195 #endif
12196
12197 #include <stdio.h>
12198
12199 #ifdef RTLD_GLOBAL
12200 # define LT_DLGLOBAL RTLD_GLOBAL
12201 #else
12202 # ifdef DL_GLOBAL
12203 # define LT_DLGLOBAL DL_GLOBAL
12204 # else
12205 # define LT_DLGLOBAL 0
12206 # endif
12207 #endif
12208
12209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12210 find out it does not work in some platform. */
12211 #ifndef LT_DLLAZY_OR_NOW
12212 # ifdef RTLD_LAZY
12213 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12214 # else
12215 # ifdef DL_LAZY
12216 # define LT_DLLAZY_OR_NOW DL_LAZY
12217 # else
12218 # ifdef RTLD_NOW
12219 # define LT_DLLAZY_OR_NOW RTLD_NOW
12220 # else
12221 # ifdef DL_NOW
12222 # define LT_DLLAZY_OR_NOW DL_NOW
12223 # else
12224 # define LT_DLLAZY_OR_NOW 0
12225 # endif
12226 # endif
12227 # endif
12228 # endif
12229 #endif
12230
12231 /* When -fvisbility=hidden is used, assume the code has been annotated
12232 correspondingly for the symbols needed. */
12233 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12234 int fnord () __attribute__((visibility("default")));
12235 #endif
12236
12237 int fnord () { return 42; }
12238 int main ()
12239 {
12240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12241 int status = $lt_dlunknown;
12242
12243 if (self)
12244 {
12245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12246 else
12247 {
12248 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12249 else puts (dlerror ());
12250 }
12251 /* dlclose (self); */
12252 }
12253 else
12254 puts (dlerror ());
12255
12256 return status;
12257 }
12258 _LT_EOF
12259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12260 (eval $ac_link) 2>&5
12261 ac_status=$?
12262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12264 (./conftest; exit; ) >&5 2>/dev/null
12265 lt_status=$?
12266 case x$lt_status in
12267 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12268 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12269 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12270 esac
12271 else :
12272 # compilation failed
12273 lt_cv_dlopen_self=no
12274 fi
12275 fi
12276 rm -fr conftest*
12277
12278
12279 fi
12280 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12281 $as_echo "$lt_cv_dlopen_self" >&6; }
12282
12283 if test "x$lt_cv_dlopen_self" = xyes; then
12284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12285 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12286 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12287 if test "${lt_cv_dlopen_self_static+set}" = set; then
12288 $as_echo_n "(cached) " >&6
12289 else
12290 if test "$cross_compiling" = yes; then :
12291 lt_cv_dlopen_self_static=cross
12292 else
12293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12294 lt_status=$lt_dlunknown
12295 cat > conftest.$ac_ext <<_LT_EOF
12296 #line $LINENO "configure"
12297 #include "confdefs.h"
12298
12299 #if HAVE_DLFCN_H
12300 #include <dlfcn.h>
12301 #endif
12302
12303 #include <stdio.h>
12304
12305 #ifdef RTLD_GLOBAL
12306 # define LT_DLGLOBAL RTLD_GLOBAL
12307 #else
12308 # ifdef DL_GLOBAL
12309 # define LT_DLGLOBAL DL_GLOBAL
12310 # else
12311 # define LT_DLGLOBAL 0
12312 # endif
12313 #endif
12314
12315 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12316 find out it does not work in some platform. */
12317 #ifndef LT_DLLAZY_OR_NOW
12318 # ifdef RTLD_LAZY
12319 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12320 # else
12321 # ifdef DL_LAZY
12322 # define LT_DLLAZY_OR_NOW DL_LAZY
12323 # else
12324 # ifdef RTLD_NOW
12325 # define LT_DLLAZY_OR_NOW RTLD_NOW
12326 # else
12327 # ifdef DL_NOW
12328 # define LT_DLLAZY_OR_NOW DL_NOW
12329 # else
12330 # define LT_DLLAZY_OR_NOW 0
12331 # endif
12332 # endif
12333 # endif
12334 # endif
12335 #endif
12336
12337 /* When -fvisbility=hidden is used, assume the code has been annotated
12338 correspondingly for the symbols needed. */
12339 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12340 int fnord () __attribute__((visibility("default")));
12341 #endif
12342
12343 int fnord () { return 42; }
12344 int main ()
12345 {
12346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12347 int status = $lt_dlunknown;
12348
12349 if (self)
12350 {
12351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12352 else
12353 {
12354 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12355 else puts (dlerror ());
12356 }
12357 /* dlclose (self); */
12358 }
12359 else
12360 puts (dlerror ());
12361
12362 return status;
12363 }
12364 _LT_EOF
12365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12366 (eval $ac_link) 2>&5
12367 ac_status=$?
12368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12370 (./conftest; exit; ) >&5 2>/dev/null
12371 lt_status=$?
12372 case x$lt_status in
12373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12375 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12376 esac
12377 else :
12378 # compilation failed
12379 lt_cv_dlopen_self_static=no
12380 fi
12381 fi
12382 rm -fr conftest*
12383
12384
12385 fi
12386 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12387 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12388 fi
12389
12390 CPPFLAGS="$save_CPPFLAGS"
12391 LDFLAGS="$save_LDFLAGS"
12392 LIBS="$save_LIBS"
12393 ;;
12394 esac
12395
12396 case $lt_cv_dlopen_self in
12397 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12398 *) enable_dlopen_self=unknown ;;
12399 esac
12400
12401 case $lt_cv_dlopen_self_static in
12402 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12403 *) enable_dlopen_self_static=unknown ;;
12404 esac
12405 fi
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423 striplib=
12424 old_striplib=
12425 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12426 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12427 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12428 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12429 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12430 { $as_echo "$as_me:$LINENO: result: yes" >&5
12431 $as_echo "yes" >&6; }
12432 else
12433 # FIXME - insert some real tests, host_os isn't really good enough
12434 case $host_os in
12435 darwin*)
12436 if test -n "$STRIP" ; then
12437 striplib="$STRIP -x"
12438 old_striplib="$STRIP -S"
12439 { $as_echo "$as_me:$LINENO: result: yes" >&5
12440 $as_echo "yes" >&6; }
12441 else
12442 { $as_echo "$as_me:$LINENO: result: no" >&5
12443 $as_echo "no" >&6; }
12444 fi
12445 ;;
12446 *)
12447 { $as_echo "$as_me:$LINENO: result: no" >&5
12448 $as_echo "no" >&6; }
12449 ;;
12450 esac
12451 fi
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464 # Report which library types will actually be built
12465 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12466 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12467 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12468 $as_echo "$can_build_shared" >&6; }
12469
12470 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12471 $as_echo_n "checking whether to build shared libraries... " >&6; }
12472 test "$can_build_shared" = "no" && enable_shared=no
12473
12474 # On AIX, shared libraries and static libraries use the same namespace, and
12475 # are all built from PIC.
12476 case $host_os in
12477 aix3*)
12478 test "$enable_shared" = yes && enable_static=no
12479 if test -n "$RANLIB"; then
12480 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12481 postinstall_cmds='$RANLIB $lib'
12482 fi
12483 ;;
12484
12485 aix[4-9]*)
12486 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12487 test "$enable_shared" = yes && enable_static=no
12488 fi
12489 ;;
12490 esac
12491 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12492 $as_echo "$enable_shared" >&6; }
12493
12494 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12495 $as_echo_n "checking whether to build static libraries... " >&6; }
12496 # Make sure either enable_shared or enable_static is yes.
12497 test "$enable_shared" = yes || enable_static=yes
12498 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12499 $as_echo "$enable_static" >&6; }
12500
12501
12502
12503
12504 fi
12505 ac_ext=c
12506 ac_cpp='$CPP $CPPFLAGS'
12507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12510
12511 CC="$lt_save_CC"
12512
12513 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12514 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12515 (test "X$CXX" != "Xg++"))) ; then
12516 ac_ext=cpp
12517 ac_cpp='$CXXCPP $CPPFLAGS'
12518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12521 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12522 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12523 if test -z "$CXXCPP"; then
12524 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12525 $as_echo_n "(cached) " >&6
12526 else
12527 # Double quotes because CXXCPP needs to be expanded
12528 for CXXCPP in "$CXX -E" "/lib/cpp"
12529 do
12530 ac_preproc_ok=false
12531 for ac_cxx_preproc_warn_flag in '' yes
12532 do
12533 # Use a header file that comes with gcc, so configuring glibc
12534 # with a fresh cross-compiler works.
12535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12536 # <limits.h> exists even on freestanding compilers.
12537 # On the NeXT, cc -E runs the code through the compiler's parser,
12538 # not just through cpp. "Syntax error" is here to catch this case.
12539 cat >conftest.$ac_ext <<_ACEOF
12540 /* confdefs.h. */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12545 #ifdef __STDC__
12546 # include <limits.h>
12547 #else
12548 # include <assert.h>
12549 #endif
12550 Syntax error
12551 _ACEOF
12552 if { (ac_try="$ac_cpp conftest.$ac_ext"
12553 case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12556 esac
12557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12558 $as_echo "$ac_try_echo") >&5
12559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } >/dev/null && {
12566 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12567 test ! -s conftest.err
12568 }; then
12569 :
12570 else
12571 $as_echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12573
12574 # Broken: fails on valid input.
12575 continue
12576 fi
12577
12578 rm -f conftest.err conftest.$ac_ext
12579
12580 # OK, works on sane cases. Now check whether nonexistent headers
12581 # can be detected and how.
12582 cat >conftest.$ac_ext <<_ACEOF
12583 /* confdefs.h. */
12584 _ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12588 #include <ac_nonexistent.h>
12589 _ACEOF
12590 if { (ac_try="$ac_cpp conftest.$ac_ext"
12591 case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594 esac
12595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12596 $as_echo "$ac_try_echo") >&5
12597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12598 ac_status=$?
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
12602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } >/dev/null && {
12604 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12605 test ! -s conftest.err
12606 }; then
12607 # Broken: success on invalid input.
12608 continue
12609 else
12610 $as_echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12612
12613 # Passes both tests.
12614 ac_preproc_ok=:
12615 break
12616 fi
12617
12618 rm -f conftest.err conftest.$ac_ext
12619
12620 done
12621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12622 rm -f conftest.err conftest.$ac_ext
12623 if $ac_preproc_ok; then
12624 break
12625 fi
12626
12627 done
12628 ac_cv_prog_CXXCPP=$CXXCPP
12629
12630 fi
12631 CXXCPP=$ac_cv_prog_CXXCPP
12632 else
12633 ac_cv_prog_CXXCPP=$CXXCPP
12634 fi
12635 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
12636 $as_echo "$CXXCPP" >&6; }
12637 ac_preproc_ok=false
12638 for ac_cxx_preproc_warn_flag in '' yes
12639 do
12640 # Use a header file that comes with gcc, so configuring glibc
12641 # with a fresh cross-compiler works.
12642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12643 # <limits.h> exists even on freestanding compilers.
12644 # On the NeXT, cc -E runs the code through the compiler's parser,
12645 # not just through cpp. "Syntax error" is here to catch this case.
12646 cat >conftest.$ac_ext <<_ACEOF
12647 /* confdefs.h. */
12648 _ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h. */
12652 #ifdef __STDC__
12653 # include <limits.h>
12654 #else
12655 # include <assert.h>
12656 #endif
12657 Syntax error
12658 _ACEOF
12659 if { (ac_try="$ac_cpp conftest.$ac_ext"
12660 case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12663 esac
12664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12665 $as_echo "$ac_try_echo") >&5
12666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12667 ac_status=$?
12668 grep -v '^ *+' conftest.er1 >conftest.err
12669 rm -f conftest.er1
12670 cat conftest.err >&5
12671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } >/dev/null && {
12673 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12674 test ! -s conftest.err
12675 }; then
12676 :
12677 else
12678 $as_echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12680
12681 # Broken: fails on valid input.
12682 continue
12683 fi
12684
12685 rm -f conftest.err conftest.$ac_ext
12686
12687 # OK, works on sane cases. Now check whether nonexistent headers
12688 # can be detected and how.
12689 cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h. */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12695 #include <ac_nonexistent.h>
12696 _ACEOF
12697 if { (ac_try="$ac_cpp conftest.$ac_ext"
12698 case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12701 esac
12702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12703 $as_echo "$ac_try_echo") >&5
12704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12705 ac_status=$?
12706 grep -v '^ *+' conftest.er1 >conftest.err
12707 rm -f conftest.er1
12708 cat conftest.err >&5
12709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } >/dev/null && {
12711 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12712 test ! -s conftest.err
12713 }; then
12714 # Broken: success on invalid input.
12715 continue
12716 else
12717 $as_echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12719
12720 # Passes both tests.
12721 ac_preproc_ok=:
12722 break
12723 fi
12724
12725 rm -f conftest.err conftest.$ac_ext
12726
12727 done
12728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12729 rm -f conftest.err conftest.$ac_ext
12730 if $ac_preproc_ok; then
12731 :
12732 else
12733 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12735 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12736 See \`config.log' for more details." >&5
12737 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12738 See \`config.log' for more details." >&2;}
12739 { (exit 1); exit 1; }; }; }
12740 fi
12741
12742 ac_ext=c
12743 ac_cpp='$CPP $CPPFLAGS'
12744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12747
12748 else
12749 _lt_caught_CXX_error=yes
12750 fi
12751
12752 ac_ext=cpp
12753 ac_cpp='$CXXCPP $CPPFLAGS'
12754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12757
12758 archive_cmds_need_lc_CXX=no
12759 allow_undefined_flag_CXX=
12760 always_export_symbols_CXX=no
12761 archive_expsym_cmds_CXX=
12762 compiler_needs_object_CXX=no
12763 export_dynamic_flag_spec_CXX=
12764 hardcode_direct_CXX=no
12765 hardcode_direct_absolute_CXX=no
12766 hardcode_libdir_flag_spec_CXX=
12767 hardcode_libdir_flag_spec_ld_CXX=
12768 hardcode_libdir_separator_CXX=
12769 hardcode_minus_L_CXX=no
12770 hardcode_shlibpath_var_CXX=unsupported
12771 hardcode_automatic_CXX=no
12772 inherit_rpath_CXX=no
12773 module_cmds_CXX=
12774 module_expsym_cmds_CXX=
12775 link_all_deplibs_CXX=unknown
12776 old_archive_cmds_CXX=$old_archive_cmds
12777 reload_flag_CXX=$reload_flag
12778 reload_cmds_CXX=$reload_cmds
12779 no_undefined_flag_CXX=
12780 whole_archive_flag_spec_CXX=
12781 enable_shared_with_static_runtimes_CXX=no
12782
12783 # Source file extension for C++ test sources.
12784 ac_ext=cpp
12785
12786 # Object file extension for compiled C++ test sources.
12787 objext=o
12788 objext_CXX=$objext
12789
12790 # No sense in running all these tests if we already determined that
12791 # the CXX compiler isn't working. Some variables (like enable_shared)
12792 # are currently assumed to apply to all compilers on this platform,
12793 # and will be corrupted by setting them based on a non-working compiler.
12794 if test "$_lt_caught_CXX_error" != yes; then
12795 # Code to be used in simple compile tests
12796 lt_simple_compile_test_code="int some_variable = 0;"
12797
12798 # Code to be used in simple link tests
12799 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12800
12801 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12802
12803
12804
12805
12806
12807
12808 # If no C compiler was specified, use CC.
12809 LTCC=${LTCC-"$CC"}
12810
12811 # If no C compiler flags were specified, use CFLAGS.
12812 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12813
12814 # Allow CC to be a program name with arguments.
12815 compiler=$CC
12816
12817
12818 # save warnings/boilerplate of simple test code
12819 ac_outfile=conftest.$ac_objext
12820 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12821 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12822 _lt_compiler_boilerplate=`cat conftest.err`
12823 $RM conftest*
12824
12825 ac_outfile=conftest.$ac_objext
12826 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12827 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12828 _lt_linker_boilerplate=`cat conftest.err`
12829 $RM -r conftest*
12830
12831
12832 # Allow CC to be a program name with arguments.
12833 lt_save_CC=$CC
12834 lt_save_CFLAGS=$CFLAGS
12835 lt_save_LD=$LD
12836 lt_save_GCC=$GCC
12837 GCC=$GXX
12838 lt_save_with_gnu_ld=$with_gnu_ld
12839 lt_save_path_LD=$lt_cv_path_LD
12840 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12841 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12842 else
12843 $as_unset lt_cv_prog_gnu_ld
12844 fi
12845 if test -n "${lt_cv_path_LDCXX+set}"; then
12846 lt_cv_path_LD=$lt_cv_path_LDCXX
12847 else
12848 $as_unset lt_cv_path_LD
12849 fi
12850 test -z "${LDCXX+set}" || LD=$LDCXX
12851 CC=${CXX-"c++"}
12852 CFLAGS=$CXXFLAGS
12853 compiler=$CC
12854 compiler_CXX=$CC
12855 for cc_temp in $compiler""; do
12856 case $cc_temp in
12857 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12858 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12859 \-*) ;;
12860 *) break;;
12861 esac
12862 done
12863 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12864
12865
12866 if test -n "$compiler"; then
12867 # We don't want -fno-exception when compiling C++ code, so set the
12868 # no_builtin_flag separately
12869 if test "$GXX" = yes; then
12870 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12871 else
12872 lt_prog_compiler_no_builtin_flag_CXX=
12873 fi
12874
12875 if test "$GXX" = yes; then
12876 # Set up default GNU C++ configuration
12877
12878
12879
12880 # Check whether --with-gnu-ld was given.
12881 if test "${with_gnu_ld+set}" = set; then
12882 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12883 else
12884 with_gnu_ld=no
12885 fi
12886
12887 ac_prog=ld
12888 if test "$GCC" = yes; then
12889 # Check if gcc -print-prog-name=ld gives a path.
12890 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12891 $as_echo_n "checking for ld used by $CC... " >&6; }
12892 case $host in
12893 *-*-mingw*)
12894 # gcc leaves a trailing carriage return which upsets mingw
12895 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12896 *)
12897 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12898 esac
12899 case $ac_prog in
12900 # Accept absolute paths.
12901 [\\/]* | ?:[\\/]*)
12902 re_direlt='/[^/][^/]*/\.\./'
12903 # Canonicalize the pathname of ld
12904 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12905 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12906 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12907 done
12908 test -z "$LD" && LD="$ac_prog"
12909 ;;
12910 "")
12911 # If it fails, then pretend we aren't using GCC.
12912 ac_prog=ld
12913 ;;
12914 *)
12915 # If it is relative, then search for the first ld in PATH.
12916 with_gnu_ld=unknown
12917 ;;
12918 esac
12919 elif test "$with_gnu_ld" = yes; then
12920 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12921 $as_echo_n "checking for GNU ld... " >&6; }
12922 else
12923 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12924 $as_echo_n "checking for non-GNU ld... " >&6; }
12925 fi
12926 if test "${lt_cv_path_LD+set}" = set; then
12927 $as_echo_n "(cached) " >&6
12928 else
12929 if test -z "$LD"; then
12930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12931 for ac_dir in $PATH; do
12932 IFS="$lt_save_ifs"
12933 test -z "$ac_dir" && ac_dir=.
12934 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12935 lt_cv_path_LD="$ac_dir/$ac_prog"
12936 # Check to see if the program is GNU ld. I'd rather use --version,
12937 # but apparently some variants of GNU ld only accept -v.
12938 # Break only if it was the GNU/non-GNU ld that we prefer.
12939 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12940 *GNU* | *'with BFD'*)
12941 test "$with_gnu_ld" != no && break
12942 ;;
12943 *)
12944 test "$with_gnu_ld" != yes && break
12945 ;;
12946 esac
12947 fi
12948 done
12949 IFS="$lt_save_ifs"
12950 else
12951 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12952 fi
12953 fi
12954
12955 LD="$lt_cv_path_LD"
12956 if test -n "$LD"; then
12957 { $as_echo "$as_me:$LINENO: result: $LD" >&5
12958 $as_echo "$LD" >&6; }
12959 else
12960 { $as_echo "$as_me:$LINENO: result: no" >&5
12961 $as_echo "no" >&6; }
12962 fi
12963 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12964 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12965 { (exit 1); exit 1; }; }
12966 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12967 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12968 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12969 $as_echo_n "(cached) " >&6
12970 else
12971 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12972 case `$LD -v 2>&1 </dev/null` in
12973 *GNU* | *'with BFD'*)
12974 lt_cv_prog_gnu_ld=yes
12975 ;;
12976 *)
12977 lt_cv_prog_gnu_ld=no
12978 ;;
12979 esac
12980 fi
12981 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12982 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12983 with_gnu_ld=$lt_cv_prog_gnu_ld
12984
12985
12986
12987
12988
12989
12990
12991 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12992 # archiving commands below assume that GNU ld is being used.
12993 if test "$with_gnu_ld" = yes; then
12994 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12995 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'
12996
12997 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12998 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12999
13000 # If archive_cmds runs LD, not CC, wlarc should be empty
13001 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13002 # investigate it a little bit more. (MM)
13003 wlarc='${wl}'
13004
13005 # ancient GNU ld didn't support --whole-archive et. al.
13006 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13007 $GREP 'no-whole-archive' > /dev/null; then
13008 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13009 else
13010 whole_archive_flag_spec_CXX=
13011 fi
13012 else
13013 with_gnu_ld=no
13014 wlarc=
13015
13016 # A generic and very simple default shared library creation
13017 # command for GNU C++ for the case where it uses the native
13018 # linker, instead of GNU ld. If possible, this setting should
13019 # overridden to take advantage of the native linker features on
13020 # the platform it is being used on.
13021 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13022 fi
13023
13024 # Commands to make compiler produce verbose output that lists
13025 # what "hidden" libraries, object files and flags are used when
13026 # linking a shared library.
13027 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13028
13029 else
13030 GXX=no
13031 with_gnu_ld=no
13032 wlarc=
13033 fi
13034
13035 # PORTME: fill in a description of your system's C++ link characteristics
13036 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13037 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13038 ld_shlibs_CXX=yes
13039 case $host_os in
13040 aix3*)
13041 # FIXME: insert proper C++ library support
13042 ld_shlibs_CXX=no
13043 ;;
13044 aix[4-9]*)
13045 if test "$host_cpu" = ia64; then
13046 # On IA64, the linker does run time linking by default, so we don't
13047 # have to do anything special.
13048 aix_use_runtimelinking=no
13049 exp_sym_flag='-Bexport'
13050 no_entry_flag=""
13051 else
13052 aix_use_runtimelinking=no
13053
13054 # Test if we are trying to use run time linking or normal
13055 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13056 # need to do runtime linking.
13057 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13058 for ld_flag in $LDFLAGS; do
13059 case $ld_flag in
13060 *-brtl*)
13061 aix_use_runtimelinking=yes
13062 break
13063 ;;
13064 esac
13065 done
13066 ;;
13067 esac
13068
13069 exp_sym_flag='-bexport'
13070 no_entry_flag='-bnoentry'
13071 fi
13072
13073 # When large executables or shared objects are built, AIX ld can
13074 # have problems creating the table of contents. If linking a library
13075 # or program results in "error TOC overflow" add -mminimal-toc to
13076 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13077 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13078
13079 archive_cmds_CXX=''
13080 hardcode_direct_CXX=yes
13081 hardcode_direct_absolute_CXX=yes
13082 hardcode_libdir_separator_CXX=':'
13083 link_all_deplibs_CXX=yes
13084 file_list_spec_CXX='${wl}-f,'
13085
13086 if test "$GXX" = yes; then
13087 case $host_os in aix4.[012]|aix4.[012].*)
13088 # We only want to do this on AIX 4.2 and lower, the check
13089 # below for broken collect2 doesn't work under 4.3+
13090 collect2name=`${CC} -print-prog-name=collect2`
13091 if test -f "$collect2name" &&
13092 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13093 then
13094 # We have reworked collect2
13095 :
13096 else
13097 # We have old collect2
13098 hardcode_direct_CXX=unsupported
13099 # It fails to find uninstalled libraries when the uninstalled
13100 # path is not listed in the libpath. Setting hardcode_minus_L
13101 # to unsupported forces relinking
13102 hardcode_minus_L_CXX=yes
13103 hardcode_libdir_flag_spec_CXX='-L$libdir'
13104 hardcode_libdir_separator_CXX=
13105 fi
13106 esac
13107 shared_flag='-shared'
13108 if test "$aix_use_runtimelinking" = yes; then
13109 shared_flag="$shared_flag "'${wl}-G'
13110 fi
13111 else
13112 # not using gcc
13113 if test "$host_cpu" = ia64; then
13114 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13115 # chokes on -Wl,-G. The following line is correct:
13116 shared_flag='-G'
13117 else
13118 if test "$aix_use_runtimelinking" = yes; then
13119 shared_flag='${wl}-G'
13120 else
13121 shared_flag='${wl}-bM:SRE'
13122 fi
13123 fi
13124 fi
13125
13126 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13127 # It seems that -bexpall does not export symbols beginning with
13128 # underscore (_), so it is better to generate a list of symbols to
13129 # export.
13130 always_export_symbols_CXX=yes
13131 if test "$aix_use_runtimelinking" = yes; then
13132 # Warning - without using the other runtime loading flags (-brtl),
13133 # -berok will link without error, but may produce a broken library.
13134 allow_undefined_flag_CXX='-berok'
13135 # Determine the default libpath from the value encoded in an empty
13136 # executable.
13137 if test "${lt_cv_aix_libpath+set}" = set; then
13138 aix_libpath=$lt_cv_aix_libpath
13139 else
13140 if test "${lt_cv_aix_libpath__CXX+set}" = set; then
13141 $as_echo_n "(cached) " >&6
13142 else
13143 cat >conftest.$ac_ext <<_ACEOF
13144 /* confdefs.h. */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13149
13150 int
13151 main ()
13152 {
13153
13154 ;
13155 return 0;
13156 }
13157 _ACEOF
13158 rm -f conftest.$ac_objext conftest$ac_exeext
13159 if { (ac_try="$ac_link"
13160 case "(($ac_try" in
13161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162 *) ac_try_echo=$ac_try;;
13163 esac
13164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13165 $as_echo "$ac_try_echo") >&5
13166 (eval "$ac_link") 2>conftest.er1
13167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } && {
13173 test -z "$ac_cxx_werror_flag" ||
13174 test ! -s conftest.err
13175 } && test -s conftest$ac_exeext && {
13176 test "$cross_compiling" = yes ||
13177 $as_test_x conftest$ac_exeext
13178 }; then
13179
13180 lt_aix_libpath_sed='
13181 /Import File Strings/,/^$/ {
13182 /^0/ {
13183 s/^0 *\([^ ]*\) *$/\1/
13184 p
13185 }
13186 }'
13187 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13188 # Check for a 64-bit object if we didn't find anything.
13189 if test -z "$lt_cv_aix_libpath__CXX"; then
13190 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13191 fi
13192 else
13193 $as_echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13195
13196
13197 fi
13198
13199 rm -rf conftest.dSYM
13200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13201 conftest$ac_exeext conftest.$ac_ext
13202 if test -z "$lt_cv_aix_libpath__CXX"; then
13203 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13204 fi
13205
13206 fi
13207
13208 aix_libpath=$lt_cv_aix_libpath__CXX
13209 fi
13210
13211 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13212
13213 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"
13214 else
13215 if test "$host_cpu" = ia64; then
13216 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13217 allow_undefined_flag_CXX="-z nodefs"
13218 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"
13219 else
13220 # Determine the default libpath from the value encoded in an
13221 # empty executable.
13222 if test "${lt_cv_aix_libpath+set}" = set; then
13223 aix_libpath=$lt_cv_aix_libpath
13224 else
13225 if test "${lt_cv_aix_libpath__CXX+set}" = set; then
13226 $as_echo_n "(cached) " >&6
13227 else
13228 cat >conftest.$ac_ext <<_ACEOF
13229 /* confdefs.h. */
13230 _ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13234
13235 int
13236 main ()
13237 {
13238
13239 ;
13240 return 0;
13241 }
13242 _ACEOF
13243 rm -f conftest.$ac_objext conftest$ac_exeext
13244 if { (ac_try="$ac_link"
13245 case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13248 esac
13249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13250 $as_echo "$ac_try_echo") >&5
13251 (eval "$ac_link") 2>conftest.er1
13252 ac_status=$?
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } && {
13258 test -z "$ac_cxx_werror_flag" ||
13259 test ! -s conftest.err
13260 } && test -s conftest$ac_exeext && {
13261 test "$cross_compiling" = yes ||
13262 $as_test_x conftest$ac_exeext
13263 }; then
13264
13265 lt_aix_libpath_sed='
13266 /Import File Strings/,/^$/ {
13267 /^0/ {
13268 s/^0 *\([^ ]*\) *$/\1/
13269 p
13270 }
13271 }'
13272 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13273 # Check for a 64-bit object if we didn't find anything.
13274 if test -z "$lt_cv_aix_libpath__CXX"; then
13275 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13276 fi
13277 else
13278 $as_echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13280
13281
13282 fi
13283
13284 rm -rf conftest.dSYM
13285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13286 conftest$ac_exeext conftest.$ac_ext
13287 if test -z "$lt_cv_aix_libpath__CXX"; then
13288 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13289 fi
13290
13291 fi
13292
13293 aix_libpath=$lt_cv_aix_libpath__CXX
13294 fi
13295
13296 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13297 # Warning - without using the other run time loading flags,
13298 # -berok will link without error, but may produce a broken library.
13299 no_undefined_flag_CXX=' ${wl}-bernotok'
13300 allow_undefined_flag_CXX=' ${wl}-berok'
13301 if test "$with_gnu_ld" = yes; then
13302 # We only use this code for GNU lds that support --whole-archive.
13303 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13304 else
13305 # Exported symbols can be pulled into shared objects from archives
13306 whole_archive_flag_spec_CXX='$convenience'
13307 fi
13308 archive_cmds_need_lc_CXX=yes
13309 # This is similar to how AIX traditionally builds its shared
13310 # libraries.
13311 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'
13312 fi
13313 fi
13314 ;;
13315
13316 beos*)
13317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13318 allow_undefined_flag_CXX=unsupported
13319 # Joseph Beckenbach <[email protected]> says some releases of gcc
13320 # support --undefined. This deserves some investigation. FIXME
13321 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13322 else
13323 ld_shlibs_CXX=no
13324 fi
13325 ;;
13326
13327 chorus*)
13328 case $cc_basename in
13329 *)
13330 # FIXME: insert proper C++ library support
13331 ld_shlibs_CXX=no
13332 ;;
13333 esac
13334 ;;
13335
13336 cygwin* | mingw* | pw32* | cegcc*)
13337 case $GXX,$cc_basename in
13338 ,cl* | no,cl*)
13339 # Native MSVC
13340 # hardcode_libdir_flag_spec is actually meaningless, as there is
13341 # no search path for DLLs.
13342 hardcode_libdir_flag_spec_CXX=' '
13343 allow_undefined_flag_CXX=unsupported
13344 always_export_symbols_CXX=yes
13345 file_list_spec_CXX='@'
13346 # Tell ltmain to make .lib files, not .a files.
13347 libext=lib
13348 # Tell ltmain to make .dll files, not .so files.
13349 shrext_cmds=".dll"
13350 # FIXME: Setting linknames here is a bad hack.
13351 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13352 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13353 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13354 else
13355 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13356 fi~
13357 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13358 linknames='
13359 # The linker will not automatically build a static lib if we build a DLL.
13360 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13361 enable_shared_with_static_runtimes_CXX=yes
13362 # Don't use ranlib
13363 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13364 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13365 lt_tool_outputfile="@TOOL_OUTPUT@"~
13366 case $lt_outputfile in
13367 *.exe|*.EXE) ;;
13368 *)
13369 lt_outputfile="$lt_outputfile.exe"
13370 lt_tool_outputfile="$lt_tool_outputfile.exe"
13371 ;;
13372 esac~
13373 func_to_tool_file "$lt_outputfile"~
13374 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13375 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13376 $RM "$lt_outputfile.manifest";
13377 fi'
13378 ;;
13379 *)
13380 # g++
13381 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13382 # as there is no search path for DLLs.
13383 hardcode_libdir_flag_spec_CXX='-L$libdir'
13384 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13385 allow_undefined_flag_CXX=unsupported
13386 always_export_symbols_CXX=no
13387 enable_shared_with_static_runtimes_CXX=yes
13388
13389 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13390 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'
13391 # If the export-symbols file already is a .def file (1st line
13392 # is EXPORTS), use it as is; otherwise, prepend...
13393 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13394 cp $export_symbols $output_objdir/$soname.def;
13395 else
13396 echo EXPORTS > $output_objdir/$soname.def;
13397 cat $export_symbols >> $output_objdir/$soname.def;
13398 fi~
13399 $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'
13400 else
13401 ld_shlibs_CXX=no
13402 fi
13403 ;;
13404 esac
13405 ;;
13406 darwin* | rhapsody*)
13407
13408
13409 archive_cmds_need_lc_CXX=no
13410 hardcode_direct_CXX=no
13411 hardcode_automatic_CXX=yes
13412 hardcode_shlibpath_var_CXX=unsupported
13413 if test "$lt_cv_ld_force_load" = "yes"; then
13414 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\"`'
13415 else
13416 whole_archive_flag_spec_CXX=''
13417 fi
13418 link_all_deplibs_CXX=yes
13419 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13420 case $cc_basename in
13421 ifort*) _lt_dar_can_shared=yes ;;
13422 *) _lt_dar_can_shared=$GCC ;;
13423 esac
13424 if test "$_lt_dar_can_shared" = "yes"; then
13425 output_verbose_link_cmd=func_echo_all
13426 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}"
13427 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13428 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}"
13429 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}"
13430 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13431 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}"
13432 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}"
13433 fi
13434
13435 else
13436 ld_shlibs_CXX=no
13437 fi
13438
13439 ;;
13440
13441 dgux*)
13442 case $cc_basename in
13443 ec++*)
13444 # FIXME: insert proper C++ library support
13445 ld_shlibs_CXX=no
13446 ;;
13447 ghcx*)
13448 # Green Hills C++ Compiler
13449 # FIXME: insert proper C++ library support
13450 ld_shlibs_CXX=no
13451 ;;
13452 *)
13453 # FIXME: insert proper C++ library support
13454 ld_shlibs_CXX=no
13455 ;;
13456 esac
13457 ;;
13458
13459 freebsd[12]*)
13460 # C++ shared libraries reported to be fairly broken before
13461 # switch to ELF
13462 ld_shlibs_CXX=no
13463 ;;
13464
13465 freebsd-elf*)
13466 archive_cmds_need_lc_CXX=no
13467 ;;
13468
13469 freebsd* | dragonfly*)
13470 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13471 # conventions
13472 ld_shlibs_CXX=yes
13473 ;;
13474
13475 gnu*)
13476 ;;
13477
13478 haiku*)
13479 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13480 link_all_deplibs_CXX=yes
13481 ;;
13482
13483 hpux9*)
13484 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13485 hardcode_libdir_separator_CXX=:
13486 export_dynamic_flag_spec_CXX='${wl}-E'
13487 hardcode_direct_CXX=yes
13488 hardcode_minus_L_CXX=yes # Not in the search PATH,
13489 # but as the default
13490 # location of the library.
13491
13492 case $cc_basename in
13493 CC*)
13494 # FIXME: insert proper C++ library support
13495 ld_shlibs_CXX=no
13496 ;;
13497 aCC*)
13498 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'
13499 # Commands to make compiler produce verbose output that lists
13500 # what "hidden" libraries, object files and flags are used when
13501 # linking a shared library.
13502 #
13503 # There doesn't appear to be a way to prevent this compiler from
13504 # explicitly linking system object files so we need to strip them
13505 # from the output so that they don't get included in the library
13506 # dependencies.
13507 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"'
13508 ;;
13509 *)
13510 if test "$GXX" = yes; then
13511 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'
13512 else
13513 # FIXME: insert proper C++ library support
13514 ld_shlibs_CXX=no
13515 fi
13516 ;;
13517 esac
13518 ;;
13519
13520 hpux10*|hpux11*)
13521 if test $with_gnu_ld = no; then
13522 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13523 hardcode_libdir_separator_CXX=:
13524
13525 case $host_cpu in
13526 hppa*64*|ia64*)
13527 ;;
13528 *)
13529 export_dynamic_flag_spec_CXX='${wl}-E'
13530 ;;
13531 esac
13532 fi
13533 case $host_cpu in
13534 hppa*64*|ia64*)
13535 hardcode_direct_CXX=no
13536 hardcode_shlibpath_var_CXX=no
13537 ;;
13538 *)
13539 hardcode_direct_CXX=yes
13540 hardcode_direct_absolute_CXX=yes
13541 hardcode_minus_L_CXX=yes # Not in the search PATH,
13542 # but as the default
13543 # location of the library.
13544 ;;
13545 esac
13546
13547 case $cc_basename in
13548 CC*)
13549 # FIXME: insert proper C++ library support
13550 ld_shlibs_CXX=no
13551 ;;
13552 aCC*)
13553 case $host_cpu in
13554 hppa*64*)
13555 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13556 ;;
13557 ia64*)
13558 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13559 ;;
13560 *)
13561 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13562 ;;
13563 esac
13564 # Commands to make compiler produce verbose output that lists
13565 # what "hidden" libraries, object files and flags are used when
13566 # linking a shared library.
13567 #
13568 # There doesn't appear to be a way to prevent this compiler from
13569 # explicitly linking system object files so we need to strip them
13570 # from the output so that they don't get included in the library
13571 # dependencies.
13572 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"'
13573 ;;
13574 *)
13575 if test "$GXX" = yes; then
13576 if test $with_gnu_ld = no; then
13577 case $host_cpu in
13578 hppa*64*)
13579 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13580 ;;
13581 ia64*)
13582 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13583 ;;
13584 *)
13585 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'
13586 ;;
13587 esac
13588 fi
13589 else
13590 # FIXME: insert proper C++ library support
13591 ld_shlibs_CXX=no
13592 fi
13593 ;;
13594 esac
13595 ;;
13596
13597 interix[3-9]*)
13598 hardcode_direct_CXX=no
13599 hardcode_shlibpath_var_CXX=no
13600 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13601 export_dynamic_flag_spec_CXX='${wl}-E'
13602 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13603 # Instead, shared libraries are loaded at an image base (0x10000000 by
13604 # default) and relocated if they conflict, which is a slow very memory
13605 # consuming and fragmenting process. To avoid this, we pick a random,
13606 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13607 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13608 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'
13609 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'
13610 ;;
13611 irix5* | irix6*)
13612 case $cc_basename in
13613 CC*)
13614 # SGI C++
13615 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'
13616
13617 # Archives containing C++ object files must be created using
13618 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13619 # necessary to make sure instantiated templates are included
13620 # in the archive.
13621 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13622 ;;
13623 *)
13624 if test "$GXX" = yes; then
13625 if test "$with_gnu_ld" = no; then
13626 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'
13627 else
13628 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'
13629 fi
13630 fi
13631 link_all_deplibs_CXX=yes
13632 ;;
13633 esac
13634 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13635 hardcode_libdir_separator_CXX=:
13636 inherit_rpath_CXX=yes
13637 ;;
13638
13639 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13640 case $cc_basename in
13641 KCC*)
13642 # Kuck and Associates, Inc. (KAI) C++ Compiler
13643
13644 # KCC will only create a shared library if the output file
13645 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13646 # to its proper name (with version) after linking.
13647 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'
13648 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'
13649 # Commands to make compiler produce verbose output that lists
13650 # what "hidden" libraries, object files and flags are used when
13651 # linking a shared library.
13652 #
13653 # There doesn't appear to be a way to prevent this compiler from
13654 # explicitly linking system object files so we need to strip them
13655 # from the output so that they don't get included in the library
13656 # dependencies.
13657 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"'
13658
13659 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13660 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13661
13662 # Archives containing C++ object files must be created using
13663 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13664 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13665 ;;
13666 icpc* | ecpc* )
13667 # Intel C++
13668 with_gnu_ld=yes
13669 # version 8.0 and above of icpc choke on multiply defined symbols
13670 # if we add $predep_objects and $postdep_objects, however 7.1 and
13671 # earlier do not add the objects themselves.
13672 case `$CC -V 2>&1` in
13673 *"Version 7."*)
13674 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13675 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'
13676 ;;
13677 *) # Version 8.0 or newer
13678 tmp_idyn=
13679 case $host_cpu in
13680 ia64*) tmp_idyn=' -i_dynamic';;
13681 esac
13682 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13683 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'
13684 ;;
13685 esac
13686 archive_cmds_need_lc_CXX=no
13687 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13689 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13690 ;;
13691 pgCC* | pgcpp*)
13692 # Portland Group C++ compiler
13693 case `$CC -V` in
13694 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13695 prelink_cmds_CXX='tpldir=Template.dir~
13696 rm -rf $tpldir~
13697 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13698 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13699 old_archive_cmds_CXX='tpldir=Template.dir~
13700 rm -rf $tpldir~
13701 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13702 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13703 $RANLIB $oldlib'
13704 archive_cmds_CXX='tpldir=Template.dir~
13705 rm -rf $tpldir~
13706 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13707 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13708 archive_expsym_cmds_CXX='tpldir=Template.dir~
13709 rm -rf $tpldir~
13710 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13711 $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'
13712 ;;
13713 *) # Version 6 and above use weak symbols
13714 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13715 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'
13716 ;;
13717 esac
13718
13719 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13720 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13721 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'
13722 ;;
13723 cxx*)
13724 # Compaq C++
13725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13726 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'
13727
13728 runpath_var=LD_RUN_PATH
13729 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13730 hardcode_libdir_separator_CXX=:
13731
13732 # Commands to make compiler produce verbose output that lists
13733 # what "hidden" libraries, object files and flags are used when
13734 # linking a shared library.
13735 #
13736 # There doesn't appear to be a way to prevent this compiler from
13737 # explicitly linking system object files so we need to strip them
13738 # from the output so that they don't get included in the library
13739 # dependencies.
13740 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'
13741 ;;
13742 xl* | mpixl* | bgxl*)
13743 # IBM XL 8.0 on PPC, with GNU ld
13744 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13745 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13746 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13747 if test "x$supports_anon_versioning" = xyes; then
13748 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13749 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13750 echo "local: *; };" >> $output_objdir/$libname.ver~
13751 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13752 fi
13753 ;;
13754 *)
13755 case `$CC -V 2>&1 | sed 5q` in
13756 *Sun\ C*)
13757 # Sun C++ 5.9
13758 no_undefined_flag_CXX=' -zdefs'
13759 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13760 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'
13761 hardcode_libdir_flag_spec_CXX='-R$libdir'
13762 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'
13763 compiler_needs_object_CXX=yes
13764
13765 # Not sure whether something based on
13766 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13767 # would be better.
13768 output_verbose_link_cmd='func_echo_all'
13769
13770 # Archives containing C++ object files must be created using
13771 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13772 # necessary to make sure instantiated templates are included
13773 # in the archive.
13774 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13775 ;;
13776 esac
13777 ;;
13778 esac
13779 ;;
13780
13781 lynxos*)
13782 # FIXME: insert proper C++ library support
13783 ld_shlibs_CXX=no
13784 ;;
13785
13786 m88k*)
13787 # FIXME: insert proper C++ library support
13788 ld_shlibs_CXX=no
13789 ;;
13790
13791 mvs*)
13792 case $cc_basename in
13793 cxx*)
13794 # FIXME: insert proper C++ library support
13795 ld_shlibs_CXX=no
13796 ;;
13797 *)
13798 # FIXME: insert proper C++ library support
13799 ld_shlibs_CXX=no
13800 ;;
13801 esac
13802 ;;
13803
13804 netbsd*)
13805 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13806 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13807 wlarc=
13808 hardcode_libdir_flag_spec_CXX='-R$libdir'
13809 hardcode_direct_CXX=yes
13810 hardcode_shlibpath_var_CXX=no
13811 fi
13812 # Workaround some broken pre-1.5 toolchains
13813 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13814 ;;
13815
13816 *nto* | *qnx*)
13817 ld_shlibs_CXX=yes
13818 ;;
13819
13820 openbsd2*)
13821 # C++ shared libraries are fairly broken
13822 ld_shlibs_CXX=no
13823 ;;
13824
13825 openbsd*)
13826 if test -f /usr/libexec/ld.so; then
13827 hardcode_direct_CXX=yes
13828 hardcode_shlibpath_var_CXX=no
13829 hardcode_direct_absolute_CXX=yes
13830 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13832 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13833 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13834 export_dynamic_flag_spec_CXX='${wl}-E'
13835 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13836 fi
13837 output_verbose_link_cmd=func_echo_all
13838 else
13839 ld_shlibs_CXX=no
13840 fi
13841 ;;
13842
13843 osf3* | osf4* | osf5*)
13844 case $cc_basename in
13845 KCC*)
13846 # Kuck and Associates, Inc. (KAI) C++ Compiler
13847
13848 # KCC will only create a shared library if the output file
13849 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13850 # to its proper name (with version) after linking.
13851 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'
13852
13853 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13854 hardcode_libdir_separator_CXX=:
13855
13856 # Archives containing C++ object files must be created using
13857 # the KAI C++ compiler.
13858 case $host in
13859 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13860 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13861 esac
13862 ;;
13863 RCC*)
13864 # Rational C++ 2.4.1
13865 # FIXME: insert proper C++ library support
13866 ld_shlibs_CXX=no
13867 ;;
13868 cxx*)
13869 case $host in
13870 osf3*)
13871 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13872 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'
13873 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13874 ;;
13875 *)
13876 allow_undefined_flag_CXX=' -expect_unresolved \*'
13877 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'
13878 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13879 echo "-hidden">> $lib.exp~
13880 $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~
13881 $RM $lib.exp'
13882 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13883 ;;
13884 esac
13885
13886 hardcode_libdir_separator_CXX=:
13887
13888 # Commands to make compiler produce verbose output that lists
13889 # what "hidden" libraries, object files and flags are used when
13890 # linking a shared library.
13891 #
13892 # There doesn't appear to be a way to prevent this compiler from
13893 # explicitly linking system object files so we need to strip them
13894 # from the output so that they don't get included in the library
13895 # dependencies.
13896 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"'
13897 ;;
13898 *)
13899 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13900 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13901 case $host in
13902 osf3*)
13903 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'
13904 ;;
13905 *)
13906 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'
13907 ;;
13908 esac
13909
13910 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13911 hardcode_libdir_separator_CXX=:
13912
13913 # Commands to make compiler produce verbose output that lists
13914 # what "hidden" libraries, object files and flags are used when
13915 # linking a shared library.
13916 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13917
13918 else
13919 # FIXME: insert proper C++ library support
13920 ld_shlibs_CXX=no
13921 fi
13922 ;;
13923 esac
13924 ;;
13925
13926 psos*)
13927 # FIXME: insert proper C++ library support
13928 ld_shlibs_CXX=no
13929 ;;
13930
13931 sunos4*)
13932 case $cc_basename in
13933 CC*)
13934 # Sun C++ 4.x
13935 # FIXME: insert proper C++ library support
13936 ld_shlibs_CXX=no
13937 ;;
13938 lcc*)
13939 # Lucid
13940 # FIXME: insert proper C++ library support
13941 ld_shlibs_CXX=no
13942 ;;
13943 *)
13944 # FIXME: insert proper C++ library support
13945 ld_shlibs_CXX=no
13946 ;;
13947 esac
13948 ;;
13949
13950 solaris*)
13951 case $cc_basename in
13952 CC* | sunCC*)
13953 # Sun C++ 4.2, 5.x and Centerline C++
13954 archive_cmds_need_lc_CXX=yes
13955 no_undefined_flag_CXX=' -zdefs'
13956 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13957 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13958 $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'
13959
13960 hardcode_libdir_flag_spec_CXX='-R$libdir'
13961 hardcode_shlibpath_var_CXX=no
13962 case $host_os in
13963 solaris2.[0-5] | solaris2.[0-5].*) ;;
13964 *)
13965 # The compiler driver will combine and reorder linker options,
13966 # but understands `-z linker_flag'.
13967 # Supported since Solaris 2.6 (maybe 2.5.1?)
13968 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13969 ;;
13970 esac
13971 link_all_deplibs_CXX=yes
13972
13973 output_verbose_link_cmd='func_echo_all'
13974
13975 # Archives containing C++ object files must be created using
13976 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13977 # necessary to make sure instantiated templates are included
13978 # in the archive.
13979 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13980 ;;
13981 gcx*)
13982 # Green Hills C++ Compiler
13983 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13984
13985 # The C++ compiler must be used to create the archive.
13986 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13987 ;;
13988 *)
13989 # GNU C++ compiler with Solaris linker
13990 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13991 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13992 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13993 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13994 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13995 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13996
13997 # Commands to make compiler produce verbose output that lists
13998 # what "hidden" libraries, object files and flags are used when
13999 # linking a shared library.
14000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14001 else
14002 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14003 # platform.
14004 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14005 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14006 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14007
14008 # Commands to make compiler produce verbose output that lists
14009 # what "hidden" libraries, object files and flags are used when
14010 # linking a shared library.
14011 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14012 fi
14013
14014 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14015 case $host_os in
14016 solaris2.[0-5] | solaris2.[0-5].*) ;;
14017 *)
14018 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14019 ;;
14020 esac
14021 fi
14022 ;;
14023 esac
14024 ;;
14025
14026 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14027 no_undefined_flag_CXX='${wl}-z,text'
14028 archive_cmds_need_lc_CXX=no
14029 hardcode_shlibpath_var_CXX=no
14030 runpath_var='LD_RUN_PATH'
14031
14032 case $cc_basename in
14033 CC*)
14034 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14035 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14036 ;;
14037 *)
14038 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14039 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14040 ;;
14041 esac
14042 ;;
14043
14044 sysv5* | sco3.2v5* | sco5v6*)
14045 # Note: We can NOT use -z defs as we might desire, because we do not
14046 # link with -lc, and that would cause any symbols used from libc to
14047 # always be unresolved, which means just about no library would
14048 # ever link correctly. If we're not using GNU ld we use -z text
14049 # though, which does catch some bad symbols but isn't as heavy-handed
14050 # as -z defs.
14051 no_undefined_flag_CXX='${wl}-z,text'
14052 allow_undefined_flag_CXX='${wl}-z,nodefs'
14053 archive_cmds_need_lc_CXX=no
14054 hardcode_shlibpath_var_CXX=no
14055 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14056 hardcode_libdir_separator_CXX=':'
14057 link_all_deplibs_CXX=yes
14058 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14059 runpath_var='LD_RUN_PATH'
14060
14061 case $cc_basename in
14062 CC*)
14063 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14064 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14065 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14066 '"$old_archive_cmds_CXX"
14067 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14068 '"$reload_cmds_CXX"
14069 ;;
14070 *)
14071 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14072 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14073 ;;
14074 esac
14075 ;;
14076
14077 tandem*)
14078 case $cc_basename in
14079 NCC*)
14080 # NonStop-UX NCC 3.20
14081 # FIXME: insert proper C++ library support
14082 ld_shlibs_CXX=no
14083 ;;
14084 *)
14085 # FIXME: insert proper C++ library support
14086 ld_shlibs_CXX=no
14087 ;;
14088 esac
14089 ;;
14090
14091 vxworks*)
14092 # FIXME: insert proper C++ library support
14093 ld_shlibs_CXX=no
14094 ;;
14095
14096 *)
14097 # FIXME: insert proper C++ library support
14098 ld_shlibs_CXX=no
14099 ;;
14100 esac
14101
14102 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14103 $as_echo "$ld_shlibs_CXX" >&6; }
14104 test "$ld_shlibs_CXX" = no && can_build_shared=no
14105
14106 GCC_CXX="$GXX"
14107 LD_CXX="$LD"
14108
14109 ## CAVEAT EMPTOR:
14110 ## There is no encapsulation within the following macros, do not change
14111 ## the running order or otherwise move them around unless you know exactly
14112 ## what you are doing...
14113 # Dependencies to place before and after the object being linked:
14114 predep_objects_CXX=
14115 postdep_objects_CXX=
14116 predeps_CXX=
14117 postdeps_CXX=
14118 compiler_lib_search_path_CXX=
14119
14120 cat > conftest.$ac_ext <<_LT_EOF
14121 class Foo
14122 {
14123 public:
14124 Foo (void) { a = 0; }
14125 private:
14126 int a;
14127 };
14128 _LT_EOF
14129
14130
14131 _lt_libdeps_save_CFLAGS=$CFLAGS
14132 case "$CC $CFLAGS " in #(
14133 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14134 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14135 esac
14136
14137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14138 (eval $ac_compile) 2>&5
14139 ac_status=$?
14140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; then
14142 # Parse the compiler output and extract the necessary
14143 # objects, libraries and library flags.
14144
14145 # Sentinel used to keep track of whether or not we are before
14146 # the conftest object file.
14147 pre_test_object_deps_done=no
14148
14149 for p in `eval "$output_verbose_link_cmd"`; do
14150 case ${prev}${p} in
14151
14152 -L* | -R* | -l*)
14153 # Some compilers place space between "-{L,R}" and the path.
14154 # Remove the space.
14155 if test $p = "-L" ||
14156 test $p = "-R"; then
14157 prev=$p
14158 continue
14159 fi
14160
14161 # Expand the sysroot to ease extracting the directories later.
14162 if test -z "$prev"; then
14163 case $p in
14164 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14165 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14166 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14167 esac
14168 fi
14169 case $p in
14170 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14171 esac
14172 if test "$pre_test_object_deps_done" = no; then
14173 case ${prev} in
14174 -L | -R)
14175 # Internal compiler library paths should come after those
14176 # provided the user. The postdeps already come after the
14177 # user supplied libs so there is no need to process them.
14178 if test -z "$compiler_lib_search_path_CXX"; then
14179 compiler_lib_search_path_CXX="${prev}${p}"
14180 else
14181 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14182 fi
14183 ;;
14184 # The "-l" case would never come before the object being
14185 # linked, so don't bother handling this case.
14186 esac
14187 else
14188 if test -z "$postdeps_CXX"; then
14189 postdeps_CXX="${prev}${p}"
14190 else
14191 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14192 fi
14193 fi
14194 prev=
14195 ;;
14196
14197 *.lto.$objext) ;; # Ignore GCC LTO objects
14198 *.$objext)
14199 # This assumes that the test object file only shows up
14200 # once in the compiler output.
14201 if test "$p" = "conftest.$objext"; then
14202 pre_test_object_deps_done=yes
14203 continue
14204 fi
14205
14206 if test "$pre_test_object_deps_done" = no; then
14207 if test -z "$predep_objects_CXX"; then
14208 predep_objects_CXX="$p"
14209 else
14210 predep_objects_CXX="$predep_objects_CXX $p"
14211 fi
14212 else
14213 if test -z "$postdep_objects_CXX"; then
14214 postdep_objects_CXX="$p"
14215 else
14216 postdep_objects_CXX="$postdep_objects_CXX $p"
14217 fi
14218 fi
14219 ;;
14220
14221 *) ;; # Ignore the rest.
14222
14223 esac
14224 done
14225
14226 # Clean up.
14227 rm -f a.out a.exe
14228 else
14229 echo "libtool.m4: error: problem compiling CXX test program"
14230 fi
14231
14232 $RM -f confest.$objext
14233 CFLAGS=$_lt_libdeps_save_CFLAGS
14234
14235 # PORTME: override above test on systems where it is broken
14236 case $host_os in
14237 interix[3-9]*)
14238 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14239 # hack all around it, let's just trust "g++" to DTRT.
14240 predep_objects_CXX=
14241 postdep_objects_CXX=
14242 postdeps_CXX=
14243 ;;
14244
14245 linux*)
14246 case `$CC -V 2>&1 | sed 5q` in
14247 *Sun\ C*)
14248 # Sun C++ 5.9
14249
14250 # The more standards-conforming stlport4 library is
14251 # incompatible with the Cstd library. Avoid specifying
14252 # it if it's in CXXFLAGS. Ignore libCrun as
14253 # -library=stlport4 depends on it.
14254 case " $CXX $CXXFLAGS " in
14255 *" -library=stlport4 "*)
14256 solaris_use_stlport4=yes
14257 ;;
14258 esac
14259
14260 if test "$solaris_use_stlport4" != yes; then
14261 postdeps_CXX='-library=Cstd -library=Crun'
14262 fi
14263 ;;
14264 esac
14265 ;;
14266
14267 solaris*)
14268 case $cc_basename in
14269 CC* | sunCC*)
14270 # The more standards-conforming stlport4 library is
14271 # incompatible with the Cstd library. Avoid specifying
14272 # it if it's in CXXFLAGS. Ignore libCrun as
14273 # -library=stlport4 depends on it.
14274 case " $CXX $CXXFLAGS " in
14275 *" -library=stlport4 "*)
14276 solaris_use_stlport4=yes
14277 ;;
14278 esac
14279
14280 # Adding this requires a known-good setup of shared libraries for
14281 # Sun compiler versions before 5.6, else PIC objects from an old
14282 # archive will be linked into the output, leading to subtle bugs.
14283 if test "$solaris_use_stlport4" != yes; then
14284 postdeps_CXX='-library=Cstd -library=Crun'
14285 fi
14286 ;;
14287 esac
14288 ;;
14289 esac
14290
14291
14292 case " $postdeps_CXX " in
14293 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14294 esac
14295 compiler_lib_search_dirs_CXX=
14296 if test -n "${compiler_lib_search_path_CXX}"; then
14297 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14298 fi
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330 lt_prog_compiler_wl_CXX=
14331 lt_prog_compiler_pic_CXX=
14332 lt_prog_compiler_static_CXX=
14333
14334
14335 # C++ specific cases for pic, static, wl, etc.
14336 if test "$GXX" = yes; then
14337 lt_prog_compiler_wl_CXX='-Wl,'
14338 lt_prog_compiler_static_CXX='-static'
14339
14340 case $host_os in
14341 aix*)
14342 # All AIX code is PIC.
14343 if test "$host_cpu" = ia64; then
14344 # AIX 5 now supports IA64 processor
14345 lt_prog_compiler_static_CXX='-Bstatic'
14346 fi
14347 ;;
14348
14349 amigaos*)
14350 case $host_cpu in
14351 powerpc)
14352 # see comment about AmigaOS4 .so support
14353 lt_prog_compiler_pic_CXX='-fPIC'
14354 ;;
14355 m68k)
14356 # FIXME: we need at least 68020 code to build shared libraries, but
14357 # adding the `-m68020' flag to GCC prevents building anything better,
14358 # like `-m68040'.
14359 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14360 ;;
14361 esac
14362 ;;
14363
14364 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14365 # PIC is the default for these OSes.
14366 ;;
14367 mingw* | cygwin* | os2* | pw32* | cegcc*)
14368 # This hack is so that the source file can tell whether it is being
14369 # built for inclusion in a dll (and should export symbols for example).
14370 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14371 # (--disable-auto-import) libraries
14372 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14373 ;;
14374 darwin* | rhapsody*)
14375 # PIC is the default on this platform
14376 # Common symbols not allowed in MH_DYLIB files
14377 lt_prog_compiler_pic_CXX='-fno-common'
14378 ;;
14379 *djgpp*)
14380 # DJGPP does not support shared libraries at all
14381 lt_prog_compiler_pic_CXX=
14382 ;;
14383 haiku*)
14384 # PIC is the default for Haiku.
14385 # The "-static" flag exists, but is broken.
14386 lt_prog_compiler_static_CXX=
14387 ;;
14388 interix[3-9]*)
14389 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14390 # Instead, we relocate shared libraries at runtime.
14391 ;;
14392 sysv4*MP*)
14393 if test -d /usr/nec; then
14394 lt_prog_compiler_pic_CXX=-Kconform_pic
14395 fi
14396 ;;
14397 hpux*)
14398 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14399 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14400 # sets the default TLS model and affects inlining.
14401 case $host_cpu in
14402 hppa*64*)
14403 ;;
14404 *)
14405 lt_prog_compiler_pic_CXX='-fPIC'
14406 ;;
14407 esac
14408 ;;
14409 *qnx* | *nto*)
14410 # QNX uses GNU C++, but need to define -shared option too, otherwise
14411 # it will coredump.
14412 lt_prog_compiler_pic_CXX='-fPIC -shared'
14413 ;;
14414 *)
14415 lt_prog_compiler_pic_CXX='-fPIC'
14416 ;;
14417 esac
14418 else
14419 case $host_os in
14420 aix[4-9]*)
14421 # All AIX code is PIC.
14422 if test "$host_cpu" = ia64; then
14423 # AIX 5 now supports IA64 processor
14424 lt_prog_compiler_static_CXX='-Bstatic'
14425 else
14426 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14427 fi
14428 ;;
14429 chorus*)
14430 case $cc_basename in
14431 cxch68*)
14432 # Green Hills C++ Compiler
14433 # _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"
14434 ;;
14435 esac
14436 ;;
14437 mingw* | cygwin* | os2* | pw32* | cegcc*)
14438 # This hack is so that the source file can tell whether it is being
14439 # built for inclusion in a dll (and should export symbols for example).
14440 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14441 ;;
14442 dgux*)
14443 case $cc_basename in
14444 ec++*)
14445 lt_prog_compiler_pic_CXX='-KPIC'
14446 ;;
14447 ghcx*)
14448 # Green Hills C++ Compiler
14449 lt_prog_compiler_pic_CXX='-pic'
14450 ;;
14451 *)
14452 ;;
14453 esac
14454 ;;
14455 freebsd* | dragonfly*)
14456 # FreeBSD uses GNU C++
14457 ;;
14458 hpux9* | hpux10* | hpux11*)
14459 case $cc_basename in
14460 CC*)
14461 lt_prog_compiler_wl_CXX='-Wl,'
14462 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14463 if test "$host_cpu" != ia64; then
14464 lt_prog_compiler_pic_CXX='+Z'
14465 fi
14466 ;;
14467 aCC*)
14468 lt_prog_compiler_wl_CXX='-Wl,'
14469 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14470 case $host_cpu in
14471 hppa*64*|ia64*)
14472 # +Z the default
14473 ;;
14474 *)
14475 lt_prog_compiler_pic_CXX='+Z'
14476 ;;
14477 esac
14478 ;;
14479 *)
14480 ;;
14481 esac
14482 ;;
14483 interix*)
14484 # This is c89, which is MS Visual C++ (no shared libs)
14485 # Anyone wants to do a port?
14486 ;;
14487 irix5* | irix6* | nonstopux*)
14488 case $cc_basename in
14489 CC*)
14490 lt_prog_compiler_wl_CXX='-Wl,'
14491 lt_prog_compiler_static_CXX='-non_shared'
14492 # CC pic flag -KPIC is the default.
14493 ;;
14494 *)
14495 ;;
14496 esac
14497 ;;
14498 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14499 case $cc_basename in
14500 KCC*)
14501 # KAI C++ Compiler
14502 lt_prog_compiler_wl_CXX='--backend -Wl,'
14503 lt_prog_compiler_pic_CXX='-fPIC'
14504 ;;
14505 ecpc* )
14506 # old Intel C++ for x86_64 which still supported -KPIC.
14507 lt_prog_compiler_wl_CXX='-Wl,'
14508 lt_prog_compiler_pic_CXX='-KPIC'
14509 lt_prog_compiler_static_CXX='-static'
14510 ;;
14511 icpc* )
14512 # Intel C++, used to be incompatible with GCC.
14513 # ICC 10 doesn't accept -KPIC any more.
14514 lt_prog_compiler_wl_CXX='-Wl,'
14515 lt_prog_compiler_pic_CXX='-fPIC'
14516 lt_prog_compiler_static_CXX='-static'
14517 ;;
14518 pgCC* | pgcpp*)
14519 # Portland Group C++ compiler
14520 lt_prog_compiler_wl_CXX='-Wl,'
14521 lt_prog_compiler_pic_CXX='-fpic'
14522 lt_prog_compiler_static_CXX='-Bstatic'
14523 ;;
14524 cxx*)
14525 # Compaq C++
14526 # Make sure the PIC flag is empty. It appears that all Alpha
14527 # Linux and Compaq Tru64 Unix objects are PIC.
14528 lt_prog_compiler_pic_CXX=
14529 lt_prog_compiler_static_CXX='-non_shared'
14530 ;;
14531 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14532 # IBM XL 8.0, 9.0 on PPC and BlueGene
14533 lt_prog_compiler_wl_CXX='-Wl,'
14534 lt_prog_compiler_pic_CXX='-qpic'
14535 lt_prog_compiler_static_CXX='-qstaticlink'
14536 ;;
14537 *)
14538 case `$CC -V 2>&1 | sed 5q` in
14539 *Sun\ C*)
14540 # Sun C++ 5.9
14541 lt_prog_compiler_pic_CXX='-KPIC'
14542 lt_prog_compiler_static_CXX='-Bstatic'
14543 lt_prog_compiler_wl_CXX='-Qoption ld '
14544 ;;
14545 esac
14546 ;;
14547 esac
14548 ;;
14549 lynxos*)
14550 ;;
14551 m88k*)
14552 ;;
14553 mvs*)
14554 case $cc_basename in
14555 cxx*)
14556 lt_prog_compiler_pic_CXX='-W c,exportall'
14557 ;;
14558 *)
14559 ;;
14560 esac
14561 ;;
14562 netbsd*)
14563 ;;
14564 *qnx* | *nto*)
14565 # QNX uses GNU C++, but need to define -shared option too, otherwise
14566 # it will coredump.
14567 lt_prog_compiler_pic_CXX='-fPIC -shared'
14568 ;;
14569 osf3* | osf4* | osf5*)
14570 case $cc_basename in
14571 KCC*)
14572 lt_prog_compiler_wl_CXX='--backend -Wl,'
14573 ;;
14574 RCC*)
14575 # Rational C++ 2.4.1
14576 lt_prog_compiler_pic_CXX='-pic'
14577 ;;
14578 cxx*)
14579 # Digital/Compaq C++
14580 lt_prog_compiler_wl_CXX='-Wl,'
14581 # Make sure the PIC flag is empty. It appears that all Alpha
14582 # Linux and Compaq Tru64 Unix objects are PIC.
14583 lt_prog_compiler_pic_CXX=
14584 lt_prog_compiler_static_CXX='-non_shared'
14585 ;;
14586 *)
14587 ;;
14588 esac
14589 ;;
14590 psos*)
14591 ;;
14592 solaris*)
14593 case $cc_basename in
14594 CC* | sunCC*)
14595 # Sun C++ 4.2, 5.x and Centerline C++
14596 lt_prog_compiler_pic_CXX='-KPIC'
14597 lt_prog_compiler_static_CXX='-Bstatic'
14598 lt_prog_compiler_wl_CXX='-Qoption ld '
14599 ;;
14600 gcx*)
14601 # Green Hills C++ Compiler
14602 lt_prog_compiler_pic_CXX='-PIC'
14603 ;;
14604 *)
14605 ;;
14606 esac
14607 ;;
14608 sunos4*)
14609 case $cc_basename in
14610 CC*)
14611 # Sun C++ 4.x
14612 lt_prog_compiler_pic_CXX='-pic'
14613 lt_prog_compiler_static_CXX='-Bstatic'
14614 ;;
14615 lcc*)
14616 # Lucid
14617 lt_prog_compiler_pic_CXX='-pic'
14618 ;;
14619 *)
14620 ;;
14621 esac
14622 ;;
14623 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14624 case $cc_basename in
14625 CC*)
14626 lt_prog_compiler_wl_CXX='-Wl,'
14627 lt_prog_compiler_pic_CXX='-KPIC'
14628 lt_prog_compiler_static_CXX='-Bstatic'
14629 ;;
14630 esac
14631 ;;
14632 tandem*)
14633 case $cc_basename in
14634 NCC*)
14635 # NonStop-UX NCC 3.20
14636 lt_prog_compiler_pic_CXX='-KPIC'
14637 ;;
14638 *)
14639 ;;
14640 esac
14641 ;;
14642 vxworks*)
14643 ;;
14644 *)
14645 lt_prog_compiler_can_build_shared_CXX=no
14646 ;;
14647 esac
14648 fi
14649
14650 case $host_os in
14651 # For platforms which do not support PIC, -DPIC is meaningless:
14652 *djgpp*)
14653 lt_prog_compiler_pic_CXX=
14654 ;;
14655 *)
14656 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14657 ;;
14658 esac
14659
14660 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14661 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14662 if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
14663 $as_echo_n "(cached) " >&6
14664 else
14665 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14666 fi
14667 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
14668 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14669 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14670
14671 #
14672 # Check to make sure the PIC flag actually works.
14673 #
14674 if test -n "$lt_prog_compiler_pic_CXX"; then
14675 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14676 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14677 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14678 $as_echo_n "(cached) " >&6
14679 else
14680 lt_cv_prog_compiler_pic_works_CXX=no
14681 ac_outfile=conftest.$ac_objext
14682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14683 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14684 # Insert the option either (1) after the last *FLAGS variable, or
14685 # (2) before a word containing "conftest.", or (3) at the end.
14686 # Note that $ac_compile itself does not contain backslashes and begins
14687 # with a dollar sign (not a hyphen), so the echo should work correctly.
14688 # The option is referenced via a variable to avoid confusing sed.
14689 lt_compile=`echo "$ac_compile" | $SED \
14690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14692 -e 's:$: $lt_compiler_flag:'`
14693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14694 (eval "$lt_compile" 2>conftest.err)
14695 ac_status=$?
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 if (exit $ac_status) && test -s "$ac_outfile"; then
14699 # The compiler can only warn and ignore the option if not recognized
14700 # So say no if there are warnings other than the usual output.
14701 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14704 lt_cv_prog_compiler_pic_works_CXX=yes
14705 fi
14706 fi
14707 $RM conftest*
14708
14709 fi
14710 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14711 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14712
14713 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14714 case $lt_prog_compiler_pic_CXX in
14715 "" | " "*) ;;
14716 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14717 esac
14718 else
14719 lt_prog_compiler_pic_CXX=
14720 lt_prog_compiler_can_build_shared_CXX=no
14721 fi
14722
14723 fi
14724
14725
14726
14727
14728
14729 #
14730 # Check to make sure the static flag actually works.
14731 #
14732 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14733 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14734 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14735 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14736 $as_echo_n "(cached) " >&6
14737 else
14738 lt_cv_prog_compiler_static_works_CXX=no
14739 save_LDFLAGS="$LDFLAGS"
14740 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14741 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14742 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14743 # The linker can only warn and ignore the option if not recognized
14744 # So say no if there are warnings
14745 if test -s conftest.err; then
14746 # Append any errors to the config.log.
14747 cat conftest.err 1>&5
14748 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14750 if diff conftest.exp conftest.er2 >/dev/null; then
14751 lt_cv_prog_compiler_static_works_CXX=yes
14752 fi
14753 else
14754 lt_cv_prog_compiler_static_works_CXX=yes
14755 fi
14756 fi
14757 $RM -r conftest*
14758 LDFLAGS="$save_LDFLAGS"
14759
14760 fi
14761 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14762 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14763
14764 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14765 :
14766 else
14767 lt_prog_compiler_static_CXX=
14768 fi
14769
14770
14771
14772
14773 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14774 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14775 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14776 $as_echo_n "(cached) " >&6
14777 else
14778 lt_cv_prog_compiler_c_o_CXX=no
14779 $RM -r conftest 2>/dev/null
14780 mkdir conftest
14781 cd conftest
14782 mkdir out
14783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14784
14785 lt_compiler_flag="-o out/conftest2.$ac_objext"
14786 # Insert the option either (1) after the last *FLAGS variable, or
14787 # (2) before a word containing "conftest.", or (3) at the end.
14788 # Note that $ac_compile itself does not contain backslashes and begins
14789 # with a dollar sign (not a hyphen), so the echo should work correctly.
14790 lt_compile=`echo "$ac_compile" | $SED \
14791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14793 -e 's:$: $lt_compiler_flag:'`
14794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14795 (eval "$lt_compile" 2>out/conftest.err)
14796 ac_status=$?
14797 cat out/conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14800 then
14801 # The compiler can only warn and ignore the option if not recognized
14802 # So say no if there are warnings
14803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14804 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14805 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14806 lt_cv_prog_compiler_c_o_CXX=yes
14807 fi
14808 fi
14809 chmod u+w . 2>&5
14810 $RM conftest*
14811 # SGI C++ compiler will create directory out/ii_files/ for
14812 # template instantiation
14813 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14814 $RM out/* && rmdir out
14815 cd ..
14816 $RM -r conftest
14817 $RM conftest*
14818
14819 fi
14820 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14821 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14822
14823
14824
14825 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14826 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14827 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14828 $as_echo_n "(cached) " >&6
14829 else
14830 lt_cv_prog_compiler_c_o_CXX=no
14831 $RM -r conftest 2>/dev/null
14832 mkdir conftest
14833 cd conftest
14834 mkdir out
14835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14836
14837 lt_compiler_flag="-o out/conftest2.$ac_objext"
14838 # Insert the option either (1) after the last *FLAGS variable, or
14839 # (2) before a word containing "conftest.", or (3) at the end.
14840 # Note that $ac_compile itself does not contain backslashes and begins
14841 # with a dollar sign (not a hyphen), so the echo should work correctly.
14842 lt_compile=`echo "$ac_compile" | $SED \
14843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14845 -e 's:$: $lt_compiler_flag:'`
14846 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14847 (eval "$lt_compile" 2>out/conftest.err)
14848 ac_status=$?
14849 cat out/conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14852 then
14853 # The compiler can only warn and ignore the option if not recognized
14854 # So say no if there are warnings
14855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14856 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14857 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14858 lt_cv_prog_compiler_c_o_CXX=yes
14859 fi
14860 fi
14861 chmod u+w . 2>&5
14862 $RM conftest*
14863 # SGI C++ compiler will create directory out/ii_files/ for
14864 # template instantiation
14865 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14866 $RM out/* && rmdir out
14867 cd ..
14868 $RM -r conftest
14869 $RM conftest*
14870
14871 fi
14872 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14873 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14874
14875
14876
14877
14878 hard_links="nottested"
14879 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14880 # do not overwrite the value of need_locks provided by the user
14881 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14882 $as_echo_n "checking if we can lock with hard links... " >&6; }
14883 hard_links=yes
14884 $RM conftest*
14885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14886 touch conftest.a
14887 ln conftest.a conftest.b 2>&5 || hard_links=no
14888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14889 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14890 $as_echo "$hard_links" >&6; }
14891 if test "$hard_links" = no; then
14892 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14893 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14894 need_locks=warn
14895 fi
14896 else
14897 need_locks=no
14898 fi
14899
14900
14901
14902 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14903 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14904
14905 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14906 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14907 case $host_os in
14908 aix[4-9]*)
14909 # If we're using GNU nm, then we don't want the "-C" option.
14910 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14911 # Also, AIX nm treats weak defined symbols like other global defined
14912 # symbols, whereas GNU nm marks them as "W".
14913 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14914 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'
14915 else
14916 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'
14917 fi
14918 ;;
14919 pw32*)
14920 export_symbols_cmds_CXX="$ltdll_cmds"
14921 ;;
14922 cygwin* | mingw* | cegcc*)
14923 case $cc_basename in
14924 cl*) ;;
14925 *)
14926 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'
14927 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14928 ;;
14929 esac
14930 ;;
14931 *)
14932 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14933 ;;
14934 esac
14935
14936 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14937 $as_echo "$ld_shlibs_CXX" >&6; }
14938 test "$ld_shlibs_CXX" = no && can_build_shared=no
14939
14940 with_gnu_ld_CXX=$with_gnu_ld
14941
14942
14943
14944
14945
14946
14947 #
14948 # Do we need to explicitly link libc?
14949 #
14950 case "x$archive_cmds_need_lc_CXX" in
14951 x|xyes)
14952 # Assume -lc should be added
14953 archive_cmds_need_lc_CXX=yes
14954
14955 if test "$enable_shared" = yes && test "$GCC" = yes; then
14956 case $archive_cmds_CXX in
14957 *'~'*)
14958 # FIXME: we may have to deal with multi-command sequences.
14959 ;;
14960 '$CC '*)
14961 # Test whether the compiler implicitly links with -lc since on some
14962 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14963 # to ld, don't add -lc before -lgcc.
14964 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14965 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14966 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14967 $as_echo_n "(cached) " >&6
14968 else
14969 $RM conftest*
14970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14971
14972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14973 (eval $ac_compile) 2>&5
14974 ac_status=$?
14975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); } 2>conftest.err; then
14977 soname=conftest
14978 lib=conftest
14979 libobjs=conftest.$ac_objext
14980 deplibs=
14981 wl=$lt_prog_compiler_wl_CXX
14982 pic_flag=$lt_prog_compiler_pic_CXX
14983 compiler_flags=-v
14984 linker_flags=-v
14985 verstring=
14986 output_objdir=.
14987 libname=conftest
14988 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14989 allow_undefined_flag_CXX=
14990 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14991 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14992 ac_status=$?
14993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }
14995 then
14996 lt_cv_archive_cmds_need_lc_CXX=no
14997 else
14998 lt_cv_archive_cmds_need_lc_CXX=yes
14999 fi
15000 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15001 else
15002 cat conftest.err 1>&5
15003 fi
15004 $RM conftest*
15005
15006 fi
15007 { $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15008 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15009 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15010 ;;
15011 esac
15012 fi
15013 ;;
15014 esac
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15080 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15081
15082 library_names_spec=
15083 libname_spec='lib$name'
15084 soname_spec=
15085 shrext_cmds=".so"
15086 postinstall_cmds=
15087 postuninstall_cmds=
15088 finish_cmds=
15089 finish_eval=
15090 shlibpath_var=
15091 shlibpath_overrides_runpath=unknown
15092 version_type=none
15093 dynamic_linker="$host_os ld.so"
15094 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15095 need_lib_prefix=unknown
15096 hardcode_into_libs=no
15097
15098 # when you set need_version to no, make sure it does not cause -set_version
15099 # flags to be left without arguments
15100 need_version=unknown
15101
15102 case $host_os in
15103 aix3*)
15104 version_type=linux
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15106 shlibpath_var=LIBPATH
15107
15108 # AIX 3 has no versioning support, so we append a major version to the name.
15109 soname_spec='${libname}${release}${shared_ext}$major'
15110 ;;
15111
15112 aix[4-9]*)
15113 version_type=linux
15114 need_lib_prefix=no
15115 need_version=no
15116 hardcode_into_libs=yes
15117 if test "$host_cpu" = ia64; then
15118 # AIX 5 supports IA64
15119 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15120 shlibpath_var=LD_LIBRARY_PATH
15121 else
15122 # With GCC up to 2.95.x, collect2 would create an import file
15123 # for dependence libraries. The import file would start with
15124 # the line `#! .'. This would cause the generated library to
15125 # depend on `.', always an invalid library. This was fixed in
15126 # development snapshots of GCC prior to 3.0.
15127 case $host_os in
15128 aix4 | aix4.[01] | aix4.[01].*)
15129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15130 echo ' yes '
15131 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15132 :
15133 else
15134 can_build_shared=no
15135 fi
15136 ;;
15137 esac
15138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15139 # soname into executable. Probably we can add versioning support to
15140 # collect2, so additional links can be useful in future.
15141 if test "$aix_use_runtimelinking" = yes; then
15142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15143 # instead of lib<name>.a to let people know that these are not
15144 # typical AIX shared libraries.
15145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15146 else
15147 # We preserve .a as extension for shared libraries through AIX4.2
15148 # and later when we are not doing run time linking.
15149 library_names_spec='${libname}${release}.a $libname.a'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 fi
15152 shlibpath_var=LIBPATH
15153 fi
15154 ;;
15155
15156 amigaos*)
15157 case $host_cpu in
15158 powerpc)
15159 # Since July 2007 AmigaOS4 officially supports .so libraries.
15160 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15162 ;;
15163 m68k)
15164 library_names_spec='$libname.ixlibrary $libname.a'
15165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15166 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'
15167 ;;
15168 esac
15169 ;;
15170
15171 beos*)
15172 library_names_spec='${libname}${shared_ext}'
15173 dynamic_linker="$host_os ld.so"
15174 shlibpath_var=LIBRARY_PATH
15175 ;;
15176
15177 bsdi[45]*)
15178 version_type=linux
15179 need_version=no
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181 soname_spec='${libname}${release}${shared_ext}$major'
15182 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15183 shlibpath_var=LD_LIBRARY_PATH
15184 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15185 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15186 # the default ld.so.conf also contains /usr/contrib/lib and
15187 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15188 # libtool to hard-code these into programs
15189 ;;
15190
15191 cygwin* | mingw* | pw32* | cegcc*)
15192 version_type=windows
15193 shrext_cmds=".dll"
15194 need_version=no
15195 need_lib_prefix=no
15196
15197 case $GCC,$cc_basename in
15198 yes,*)
15199 # gcc
15200 library_names_spec='$libname.dll.a'
15201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15202 postinstall_cmds='base_file=`basename \${file}`~
15203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15204 dldir=$destdir/`dirname \$dlpath`~
15205 test -d \$dldir || mkdir -p \$dldir~
15206 $install_prog $dir/$dlname \$dldir/$dlname~
15207 chmod a+x \$dldir/$dlname~
15208 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15209 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15210 fi'
15211 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15212 dlpath=$dir/\$dldll~
15213 $RM \$dlpath'
15214 shlibpath_overrides_runpath=yes
15215
15216 case $host_os in
15217 cygwin*)
15218 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15219 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15220
15221 ;;
15222 mingw* | cegcc*)
15223 # MinGW DLLs use traditional 'lib' prefix
15224 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15225 ;;
15226 pw32*)
15227 # pw32 DLLs use 'pw' prefix rather than 'lib'
15228 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15229 ;;
15230 esac
15231 dynamic_linker='Win32 ld.exe'
15232 ;;
15233
15234 *,cl*)
15235 # Native MSVC
15236 libname_spec='$name'
15237 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15238 library_names_spec='${libname}.dll.lib'
15239
15240 case $build_os in
15241 mingw*)
15242 sys_lib_search_path_spec=
15243 lt_save_ifs=$IFS
15244 IFS=';'
15245 for lt_path in $LIB
15246 do
15247 IFS=$lt_save_ifs
15248 # Let DOS variable expansion print the short 8.3 style file name.
15249 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15250 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15251 done
15252 IFS=$lt_save_ifs
15253 # Convert to MSYS style.
15254 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15255 ;;
15256 cygwin*)
15257 # Convert to unix form, then to dos form, then back to unix form
15258 # but this time dos style (no spaces!) so that the unix form looks
15259 # like /cygdrive/c/PROGRA~1:/cygdr...
15260 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15261 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15262 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15263 ;;
15264 *)
15265 sys_lib_search_path_spec="$LIB"
15266 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15267 # It is most probably a Windows format PATH.
15268 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15269 else
15270 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15271 fi
15272 # FIXME: find the short name or the path components, as spaces are
15273 # common. (e.g. "Program Files" -> "PROGRA~1")
15274 ;;
15275 esac
15276
15277 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15278 postinstall_cmds='base_file=`basename \${file}`~
15279 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15280 dldir=$destdir/`dirname \$dlpath`~
15281 test -d \$dldir || mkdir -p \$dldir~
15282 $install_prog $dir/$dlname \$dldir/$dlname'
15283 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15284 dlpath=$dir/\$dldll~
15285 $RM \$dlpath'
15286 shlibpath_overrides_runpath=yes
15287 dynamic_linker='Win32 link.exe'
15288 ;;
15289
15290 *)
15291 # Assume MSVC wrapper
15292 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15293 dynamic_linker='Win32 ld.exe'
15294 ;;
15295 esac
15296 # FIXME: first we should search . and the directory the executable is in
15297 shlibpath_var=PATH
15298 ;;
15299
15300 darwin* | rhapsody*)
15301 dynamic_linker="$host_os dyld"
15302 version_type=darwin
15303 need_lib_prefix=no
15304 need_version=no
15305 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15306 soname_spec='${libname}${release}${major}$shared_ext'
15307 shlibpath_overrides_runpath=yes
15308 shlibpath_var=DYLD_LIBRARY_PATH
15309 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15310
15311 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15312 ;;
15313
15314 dgux*)
15315 version_type=linux
15316 need_lib_prefix=no
15317 need_version=no
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15319 soname_spec='${libname}${release}${shared_ext}$major'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 ;;
15322
15323 freebsd1*)
15324 dynamic_linker=no
15325 ;;
15326
15327 freebsd* | dragonfly*)
15328 # DragonFly does not have aout. When/if they implement a new
15329 # versioning mechanism, adjust this.
15330 if test -x /usr/bin/objformat; then
15331 objformat=`/usr/bin/objformat`
15332 else
15333 case $host_os in
15334 freebsd[123]*) objformat=aout ;;
15335 *) objformat=elf ;;
15336 esac
15337 fi
15338 version_type=freebsd-$objformat
15339 case $version_type in
15340 freebsd-elf*)
15341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15342 need_version=no
15343 need_lib_prefix=no
15344 ;;
15345 freebsd-*)
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15347 need_version=yes
15348 ;;
15349 esac
15350 shlibpath_var=LD_LIBRARY_PATH
15351 case $host_os in
15352 freebsd2*)
15353 shlibpath_overrides_runpath=yes
15354 ;;
15355 freebsd3.[01]* | freebsdelf3.[01]*)
15356 shlibpath_overrides_runpath=yes
15357 hardcode_into_libs=yes
15358 ;;
15359 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15360 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15361 shlibpath_overrides_runpath=no
15362 hardcode_into_libs=yes
15363 ;;
15364 *) # from 4.6 on, and DragonFly
15365 shlibpath_overrides_runpath=yes
15366 hardcode_into_libs=yes
15367 ;;
15368 esac
15369 ;;
15370
15371 gnu*)
15372 version_type=linux
15373 need_lib_prefix=no
15374 need_version=no
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15376 soname_spec='${libname}${release}${shared_ext}$major'
15377 shlibpath_var=LD_LIBRARY_PATH
15378 hardcode_into_libs=yes
15379 ;;
15380
15381 haiku*)
15382 version_type=linux
15383 need_lib_prefix=no
15384 need_version=no
15385 dynamic_linker="$host_os runtime_loader"
15386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15387 soname_spec='${libname}${release}${shared_ext}$major'
15388 shlibpath_var=LIBRARY_PATH
15389 shlibpath_overrides_runpath=yes
15390 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15391 hardcode_into_libs=yes
15392 ;;
15393
15394 hpux9* | hpux10* | hpux11*)
15395 # Give a soname corresponding to the major version so that dld.sl refuses to
15396 # link against other versions.
15397 version_type=sunos
15398 need_lib_prefix=no
15399 need_version=no
15400 case $host_cpu in
15401 ia64*)
15402 shrext_cmds='.so'
15403 hardcode_into_libs=yes
15404 dynamic_linker="$host_os dld.so"
15405 shlibpath_var=LD_LIBRARY_PATH
15406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408 soname_spec='${libname}${release}${shared_ext}$major'
15409 if test "X$HPUX_IA64_MODE" = X32; then
15410 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15411 else
15412 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15413 fi
15414 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15415 ;;
15416 hppa*64*)
15417 shrext_cmds='.sl'
15418 hardcode_into_libs=yes
15419 dynamic_linker="$host_os dld.sl"
15420 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15423 soname_spec='${libname}${release}${shared_ext}$major'
15424 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15426 ;;
15427 *)
15428 shrext_cmds='.sl'
15429 dynamic_linker="$host_os dld.sl"
15430 shlibpath_var=SHLIB_PATH
15431 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 soname_spec='${libname}${release}${shared_ext}$major'
15434 ;;
15435 esac
15436 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15437 postinstall_cmds='chmod 555 $lib'
15438 # or fails outright, so override atomically:
15439 install_override_mode=555
15440 ;;
15441
15442 interix[3-9]*)
15443 version_type=linux
15444 need_lib_prefix=no
15445 need_version=no
15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15447 soname_spec='${libname}${release}${shared_ext}$major'
15448 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15449 shlibpath_var=LD_LIBRARY_PATH
15450 shlibpath_overrides_runpath=no
15451 hardcode_into_libs=yes
15452 ;;
15453
15454 irix5* | irix6* | nonstopux*)
15455 case $host_os in
15456 nonstopux*) version_type=nonstopux ;;
15457 *)
15458 if test "$lt_cv_prog_gnu_ld" = yes; then
15459 version_type=linux
15460 else
15461 version_type=irix
15462 fi ;;
15463 esac
15464 need_lib_prefix=no
15465 need_version=no
15466 soname_spec='${libname}${release}${shared_ext}$major'
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15468 case $host_os in
15469 irix5* | nonstopux*)
15470 libsuff= shlibsuff=
15471 ;;
15472 *)
15473 case $LD in # libtool.m4 will add one of these switches to LD
15474 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15475 libsuff= shlibsuff= libmagic=32-bit;;
15476 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15477 libsuff=32 shlibsuff=N32 libmagic=N32;;
15478 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15479 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15480 *) libsuff= shlibsuff= libmagic=never-match;;
15481 esac
15482 ;;
15483 esac
15484 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15485 shlibpath_overrides_runpath=no
15486 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15487 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15488 hardcode_into_libs=yes
15489 ;;
15490
15491 # No shared lib support for Linux oldld, aout, or coff.
15492 linux*oldld* | linux*aout* | linux*coff*)
15493 dynamic_linker=no
15494 ;;
15495
15496 # This must be Linux ELF.
15497 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15498 version_type=linux
15499 need_lib_prefix=no
15500 need_version=no
15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15502 soname_spec='${libname}${release}${shared_ext}$major'
15503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15504 shlibpath_var=LD_LIBRARY_PATH
15505 shlibpath_overrides_runpath=no
15506
15507 # Some binutils ld are patched to set DT_RUNPATH
15508 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
15509 $as_echo_n "(cached) " >&6
15510 else
15511 lt_cv_shlibpath_overrides_runpath=no
15512 save_LDFLAGS=$LDFLAGS
15513 save_libdir=$libdir
15514 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15515 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15516 cat >conftest.$ac_ext <<_ACEOF
15517 /* confdefs.h. */
15518 _ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h. */
15522
15523 int
15524 main ()
15525 {
15526
15527 ;
15528 return 0;
15529 }
15530 _ACEOF
15531 rm -f conftest.$ac_objext conftest$ac_exeext
15532 if { (ac_try="$ac_link"
15533 case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15536 esac
15537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15538 $as_echo "$ac_try_echo") >&5
15539 (eval "$ac_link") 2>conftest.er1
15540 ac_status=$?
15541 grep -v '^ *+' conftest.er1 >conftest.err
15542 rm -f conftest.er1
15543 cat conftest.err >&5
15544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } && {
15546 test -z "$ac_cxx_werror_flag" ||
15547 test ! -s conftest.err
15548 } && test -s conftest$ac_exeext && {
15549 test "$cross_compiling" = yes ||
15550 $as_test_x conftest$ac_exeext
15551 }; then
15552 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15553 lt_cv_shlibpath_overrides_runpath=yes
15554 fi
15555
15556 else
15557 $as_echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15559
15560
15561 fi
15562
15563 rm -rf conftest.dSYM
15564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15565 conftest$ac_exeext conftest.$ac_ext
15566 LDFLAGS=$save_LDFLAGS
15567 libdir=$save_libdir
15568
15569 fi
15570
15571 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15572
15573 # This implies no fast_install, which is unacceptable.
15574 # Some rework will be needed to allow for fast_install
15575 # before this can be enabled.
15576 hardcode_into_libs=yes
15577
15578 # Append ld.so.conf contents to the search path
15579 if test -f /etc/ld.so.conf; then
15580 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' ' '`
15581 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15582 fi
15583
15584 # We used to test for /lib/ld.so.1 and disable shared libraries on
15585 # powerpc, because MkLinux only supported shared libraries with the
15586 # GNU dynamic linker. Since this was broken with cross compilers,
15587 # most powerpc-linux boxes support dynamic linking these days and
15588 # people can always --disable-shared, the test was removed, and we
15589 # assume the GNU/Linux dynamic linker is in use.
15590 dynamic_linker='GNU/Linux ld.so'
15591 ;;
15592
15593 netbsd*)
15594 version_type=sunos
15595 need_lib_prefix=no
15596 need_version=no
15597 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15600 dynamic_linker='NetBSD (a.out) ld.so'
15601 else
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15603 soname_spec='${libname}${release}${shared_ext}$major'
15604 dynamic_linker='NetBSD ld.elf_so'
15605 fi
15606 shlibpath_var=LD_LIBRARY_PATH
15607 shlibpath_overrides_runpath=yes
15608 hardcode_into_libs=yes
15609 ;;
15610
15611 newsos6)
15612 version_type=linux
15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15614 shlibpath_var=LD_LIBRARY_PATH
15615 shlibpath_overrides_runpath=yes
15616 ;;
15617
15618 *nto* | *qnx*)
15619 version_type=qnx
15620 need_lib_prefix=no
15621 need_version=no
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15623 soname_spec='${libname}${release}${shared_ext}$major'
15624 shlibpath_var=LD_LIBRARY_PATH
15625 shlibpath_overrides_runpath=no
15626 hardcode_into_libs=yes
15627 dynamic_linker='ldqnx.so'
15628 ;;
15629
15630 openbsd*)
15631 version_type=sunos
15632 sys_lib_dlsearch_path_spec="/usr/lib"
15633 need_lib_prefix=no
15634 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15635 case $host_os in
15636 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15637 *) need_version=no ;;
15638 esac
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15641 shlibpath_var=LD_LIBRARY_PATH
15642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15643 case $host_os in
15644 openbsd2.[89] | openbsd2.[89].*)
15645 shlibpath_overrides_runpath=no
15646 ;;
15647 *)
15648 shlibpath_overrides_runpath=yes
15649 ;;
15650 esac
15651 else
15652 shlibpath_overrides_runpath=yes
15653 fi
15654 ;;
15655
15656 os2*)
15657 libname_spec='$name'
15658 shrext_cmds=".dll"
15659 need_lib_prefix=no
15660 library_names_spec='$libname${shared_ext} $libname.a'
15661 dynamic_linker='OS/2 ld.exe'
15662 shlibpath_var=LIBPATH
15663 ;;
15664
15665 osf3* | osf4* | osf5*)
15666 version_type=osf
15667 need_lib_prefix=no
15668 need_version=no
15669 soname_spec='${libname}${release}${shared_ext}$major'
15670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671 shlibpath_var=LD_LIBRARY_PATH
15672 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15673 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15674 ;;
15675
15676 rdos*)
15677 dynamic_linker=no
15678 ;;
15679
15680 solaris*)
15681 version_type=linux
15682 need_lib_prefix=no
15683 need_version=no
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 shlibpath_var=LD_LIBRARY_PATH
15687 shlibpath_overrides_runpath=yes
15688 hardcode_into_libs=yes
15689 # ldd complains unless libraries are executable
15690 postinstall_cmds='chmod +x $lib'
15691 ;;
15692
15693 sunos4*)
15694 version_type=sunos
15695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15696 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 shlibpath_overrides_runpath=yes
15699 if test "$with_gnu_ld" = yes; then
15700 need_lib_prefix=no
15701 fi
15702 need_version=yes
15703 ;;
15704
15705 sysv4 | sysv4.3*)
15706 version_type=linux
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15708 soname_spec='${libname}${release}${shared_ext}$major'
15709 shlibpath_var=LD_LIBRARY_PATH
15710 case $host_vendor in
15711 sni)
15712 shlibpath_overrides_runpath=no
15713 need_lib_prefix=no
15714 runpath_var=LD_RUN_PATH
15715 ;;
15716 siemens)
15717 need_lib_prefix=no
15718 ;;
15719 motorola)
15720 need_lib_prefix=no
15721 need_version=no
15722 shlibpath_overrides_runpath=no
15723 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15724 ;;
15725 esac
15726 ;;
15727
15728 sysv4*MP*)
15729 if test -d /usr/nec ;then
15730 version_type=linux
15731 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15732 soname_spec='$libname${shared_ext}.$major'
15733 shlibpath_var=LD_LIBRARY_PATH
15734 fi
15735 ;;
15736
15737 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15738 version_type=freebsd-elf
15739 need_lib_prefix=no
15740 need_version=no
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15742 soname_spec='${libname}${release}${shared_ext}$major'
15743 shlibpath_var=LD_LIBRARY_PATH
15744 shlibpath_overrides_runpath=yes
15745 hardcode_into_libs=yes
15746 if test "$with_gnu_ld" = yes; then
15747 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15748 else
15749 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15750 case $host_os in
15751 sco3.2v5*)
15752 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15753 ;;
15754 esac
15755 fi
15756 sys_lib_dlsearch_path_spec='/usr/lib'
15757 ;;
15758
15759 tpf*)
15760 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15761 version_type=linux
15762 need_lib_prefix=no
15763 need_version=no
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765 shlibpath_var=LD_LIBRARY_PATH
15766 shlibpath_overrides_runpath=no
15767 hardcode_into_libs=yes
15768 ;;
15769
15770 uts4*)
15771 version_type=linux
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773 soname_spec='${libname}${release}${shared_ext}$major'
15774 shlibpath_var=LD_LIBRARY_PATH
15775 ;;
15776
15777 *)
15778 dynamic_linker=no
15779 ;;
15780 esac
15781 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15782 $as_echo "$dynamic_linker" >&6; }
15783 test "$dynamic_linker" = no && can_build_shared=no
15784
15785 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15786 if test "$GCC" = yes; then
15787 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15788 fi
15789
15790 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15791 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15792 fi
15793 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15794 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15795 fi
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15835 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15836 hardcode_action_CXX=
15837 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15838 test -n "$runpath_var_CXX" ||
15839 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15840
15841 # We can hardcode non-existent directories.
15842 if test "$hardcode_direct_CXX" != no &&
15843 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15844 # have to relink, otherwise we might link with an installed library
15845 # when we should be linking with a yet-to-be-installed one
15846 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15847 test "$hardcode_minus_L_CXX" != no; then
15848 # Linking always hardcodes the temporary library directory.
15849 hardcode_action_CXX=relink
15850 else
15851 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15852 hardcode_action_CXX=immediate
15853 fi
15854 else
15855 # We cannot hardcode anything, or else we can only hardcode existing
15856 # directories.
15857 hardcode_action_CXX=unsupported
15858 fi
15859 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15860 $as_echo "$hardcode_action_CXX" >&6; }
15861
15862 if test "$hardcode_action_CXX" = relink ||
15863 test "$inherit_rpath_CXX" = yes; then
15864 # Fast installation is not supported
15865 enable_fast_install=no
15866 elif test "$shlibpath_overrides_runpath" = yes ||
15867 test "$enable_shared" = no; then
15868 # Fast installation is not necessary
15869 enable_fast_install=needless
15870 fi
15871
15872
15873
15874
15875
15876
15877
15878 fi # test -n "$compiler"
15879
15880 CC=$lt_save_CC
15881 CFLAGS=$lt_save_CFLAGS
15882 LDCXX=$LD
15883 LD=$lt_save_LD
15884 GCC=$lt_save_GCC
15885 with_gnu_ld=$lt_save_with_gnu_ld
15886 lt_cv_path_LDCXX=$lt_cv_path_LD
15887 lt_cv_path_LD=$lt_save_path_LD
15888 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15889 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15890 fi # test "$_lt_caught_CXX_error" != yes
15891
15892 ac_ext=c
15893 ac_cpp='$CPP $CPPFLAGS'
15894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910 ac_config_commands="$ac_config_commands libtool"
15911
15912
15913
15914
15915 # Only expand once:
15916
15917
15918
15919 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
15920 $as_echo_n "checking for pow in -lm... " >&6; }
15921 if test "${ac_cv_lib_m_pow+set}" = set; then
15922 $as_echo_n "(cached) " >&6
15923 else
15924 ac_check_lib_save_LIBS=$LIBS
15925 LIBS="-lm $LIBS"
15926 cat >conftest.$ac_ext <<_ACEOF
15927 /* confdefs.h. */
15928 _ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h. */
15932
15933 /* Override any GCC internal prototype to avoid an error.
15934 Use char because int might match the return type of a GCC
15935 builtin and then its argument prototype would still apply. */
15936 #ifdef __cplusplus
15937 extern "C"
15938 #endif
15939 char pow ();
15940 int
15941 main ()
15942 {
15943 return pow ();
15944 ;
15945 return 0;
15946 }
15947 _ACEOF
15948 rm -f conftest.$ac_objext conftest$ac_exeext
15949 if { (ac_try="$ac_link"
15950 case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953 esac
15954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15955 $as_echo "$ac_try_echo") >&5
15956 (eval "$ac_link") 2>conftest.er1
15957 ac_status=$?
15958 grep -v '^ *+' conftest.er1 >conftest.err
15959 rm -f conftest.er1
15960 cat conftest.err >&5
15961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } && {
15963 test -z "$ac_c_werror_flag" ||
15964 test ! -s conftest.err
15965 } && test -s conftest$ac_exeext && {
15966 test "$cross_compiling" = yes ||
15967 $as_test_x conftest$ac_exeext
15968 }; then
15969 ac_cv_lib_m_pow=yes
15970 else
15971 $as_echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15973
15974 ac_cv_lib_m_pow=no
15975 fi
15976
15977 rm -rf conftest.dSYM
15978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15979 conftest$ac_exeext conftest.$ac_ext
15980 LIBS=$ac_check_lib_save_LIBS
15981 fi
15982 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
15983 $as_echo "$ac_cv_lib_m_pow" >&6; }
15984 if test "x$ac_cv_lib_m_pow" = x""yes; then
15985 math_lib="-lm"
15986 else
15987 math_lib=""
15988 fi
15989
15990
15991 { $as_echo "$as_me:$LINENO: checking for strerrno in -liberty" >&5
15992 $as_echo_n "checking for strerrno in -liberty... " >&6; }
15993 if test "${ac_cv_lib_iberty_strerrno+set}" = set; then
15994 $as_echo_n "(cached) " >&6
15995 else
15996 ac_check_lib_save_LIBS=$LIBS
15997 LIBS="-liberty $LIBS"
15998 cat >conftest.$ac_ext <<_ACEOF
15999 /* confdefs.h. */
16000 _ACEOF
16001 cat confdefs.h >>conftest.$ac_ext
16002 cat >>conftest.$ac_ext <<_ACEOF
16003 /* end confdefs.h. */
16004
16005 /* Override any GCC internal prototype to avoid an error.
16006 Use char because int might match the return type of a GCC
16007 builtin and then its argument prototype would still apply. */
16008 #ifdef __cplusplus
16009 extern "C"
16010 #endif
16011 char strerrno ();
16012 int
16013 main ()
16014 {
16015 return strerrno ();
16016 ;
16017 return 0;
16018 }
16019 _ACEOF
16020 rm -f conftest.$ac_objext conftest$ac_exeext
16021 if { (ac_try="$ac_link"
16022 case "(($ac_try" in
16023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16024 *) ac_try_echo=$ac_try;;
16025 esac
16026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16027 $as_echo "$ac_try_echo") >&5
16028 (eval "$ac_link") 2>conftest.er1
16029 ac_status=$?
16030 grep -v '^ *+' conftest.er1 >conftest.err
16031 rm -f conftest.er1
16032 cat conftest.err >&5
16033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } && {
16035 test -z "$ac_c_werror_flag" ||
16036 test ! -s conftest.err
16037 } && test -s conftest$ac_exeext && {
16038 test "$cross_compiling" = yes ||
16039 $as_test_x conftest$ac_exeext
16040 }; then
16041 ac_cv_lib_iberty_strerrno=yes
16042 else
16043 $as_echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16045
16046 ac_cv_lib_iberty_strerrno=no
16047 fi
16048
16049 rm -rf conftest.dSYM
16050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16051 conftest$ac_exeext conftest.$ac_ext
16052 LIBS=$ac_check_lib_save_LIBS
16053 fi
16054 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_strerrno" >&5
16055 $as_echo "$ac_cv_lib_iberty_strerrno" >&6; }
16056 if test "x$ac_cv_lib_iberty_strerrno" = x""yes; then
16057 liberty_lib="-liberty"
16058 else
16059 liberty_lib=""
16060 fi
16061
16062
16063 nsl_lib="";
16064 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
16065 $as_echo_n "checking for gethostbyname... " >&6; }
16066 if test "${ac_cv_func_gethostbyname+set}" = set; then
16067 $as_echo_n "(cached) " >&6
16068 else
16069 cat >conftest.$ac_ext <<_ACEOF
16070 /* confdefs.h. */
16071 _ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
16076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16077 #define gethostbyname innocuous_gethostbyname
16078
16079 /* System header to define __stub macros and hopefully few prototypes,
16080 which can conflict with char gethostbyname (); below.
16081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16082 <limits.h> exists even on freestanding compilers. */
16083
16084 #ifdef __STDC__
16085 # include <limits.h>
16086 #else
16087 # include <assert.h>
16088 #endif
16089
16090 #undef gethostbyname
16091
16092 /* Override any GCC internal prototype to avoid an error.
16093 Use char because int might match the return type of a GCC
16094 builtin and then its argument prototype would still apply. */
16095 #ifdef __cplusplus
16096 extern "C"
16097 #endif
16098 char gethostbyname ();
16099 /* The GNU C library defines this for functions which it implements
16100 to always fail with ENOSYS. Some functions are actually named
16101 something starting with __ and the normal name is an alias. */
16102 #if defined __stub_gethostbyname || defined __stub___gethostbyname
16103 choke me
16104 #endif
16105
16106 int
16107 main ()
16108 {
16109 return gethostbyname ();
16110 ;
16111 return 0;
16112 }
16113 _ACEOF
16114 rm -f conftest.$ac_objext conftest$ac_exeext
16115 if { (ac_try="$ac_link"
16116 case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16119 esac
16120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16121 $as_echo "$ac_try_echo") >&5
16122 (eval "$ac_link") 2>conftest.er1
16123 ac_status=$?
16124 grep -v '^ *+' conftest.er1 >conftest.err
16125 rm -f conftest.er1
16126 cat conftest.err >&5
16127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); } && {
16129 test -z "$ac_c_werror_flag" ||
16130 test ! -s conftest.err
16131 } && test -s conftest$ac_exeext && {
16132 test "$cross_compiling" = yes ||
16133 $as_test_x conftest$ac_exeext
16134 }; then
16135 ac_cv_func_gethostbyname=yes
16136 else
16137 $as_echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16139
16140 ac_cv_func_gethostbyname=no
16141 fi
16142
16143 rm -rf conftest.dSYM
16144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16145 conftest$ac_exeext conftest.$ac_ext
16146 fi
16147 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
16148 $as_echo "$ac_cv_func_gethostbyname" >&6; }
16149 if test "x$ac_cv_func_gethostbyname" = x""yes; then
16150 try_nsl=""
16151 else
16152 try_nsl="yes"
16153 fi
16154
16155 if test -n "${try_nsl}"; then
16156 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
16157 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16158 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
16159 $as_echo_n "(cached) " >&6
16160 else
16161 ac_check_lib_save_LIBS=$LIBS
16162 LIBS="-lnsl $LIBS"
16163 cat >conftest.$ac_ext <<_ACEOF
16164 /* confdefs.h. */
16165 _ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h. */
16169
16170 /* Override any GCC internal prototype to avoid an error.
16171 Use char because int might match the return type of a GCC
16172 builtin and then its argument prototype would still apply. */
16173 #ifdef __cplusplus
16174 extern "C"
16175 #endif
16176 char gethostbyname ();
16177 int
16178 main ()
16179 {
16180 return gethostbyname ();
16181 ;
16182 return 0;
16183 }
16184 _ACEOF
16185 rm -f conftest.$ac_objext conftest$ac_exeext
16186 if { (ac_try="$ac_link"
16187 case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190 esac
16191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16192 $as_echo "$ac_try_echo") >&5
16193 (eval "$ac_link") 2>conftest.er1
16194 ac_status=$?
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
16198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } && {
16200 test -z "$ac_c_werror_flag" ||
16201 test ! -s conftest.err
16202 } && test -s conftest$ac_exeext && {
16203 test "$cross_compiling" = yes ||
16204 $as_test_x conftest$ac_exeext
16205 }; then
16206 ac_cv_lib_nsl_gethostbyname=yes
16207 else
16208 $as_echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16210
16211 ac_cv_lib_nsl_gethostbyname=no
16212 fi
16213
16214 rm -rf conftest.dSYM
16215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16216 conftest$ac_exeext conftest.$ac_ext
16217 LIBS=$ac_check_lib_save_LIBS
16218 fi
16219 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
16220 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16221 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
16222 nsl_lib="-lnsl"
16223 else
16224 nsl_lib=""
16225 fi
16226
16227 fi
16228
16229 socket_lib="";
16230 { $as_echo "$as_me:$LINENO: checking for connect" >&5
16231 $as_echo_n "checking for connect... " >&6; }
16232 if test "${ac_cv_func_connect+set}" = set; then
16233 $as_echo_n "(cached) " >&6
16234 else
16235 cat >conftest.$ac_ext <<_ACEOF
16236 /* confdefs.h. */
16237 _ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16241 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
16242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16243 #define connect innocuous_connect
16244
16245 /* System header to define __stub macros and hopefully few prototypes,
16246 which can conflict with char connect (); below.
16247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16248 <limits.h> exists even on freestanding compilers. */
16249
16250 #ifdef __STDC__
16251 # include <limits.h>
16252 #else
16253 # include <assert.h>
16254 #endif
16255
16256 #undef connect
16257
16258 /* Override any GCC internal prototype to avoid an error.
16259 Use char because int might match the return type of a GCC
16260 builtin and then its argument prototype would still apply. */
16261 #ifdef __cplusplus
16262 extern "C"
16263 #endif
16264 char connect ();
16265 /* The GNU C library defines this for functions which it implements
16266 to always fail with ENOSYS. Some functions are actually named
16267 something starting with __ and the normal name is an alias. */
16268 #if defined __stub_connect || defined __stub___connect
16269 choke me
16270 #endif
16271
16272 int
16273 main ()
16274 {
16275 return connect ();
16276 ;
16277 return 0;
16278 }
16279 _ACEOF
16280 rm -f conftest.$ac_objext conftest$ac_exeext
16281 if { (ac_try="$ac_link"
16282 case "(($ac_try" in
16283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284 *) ac_try_echo=$ac_try;;
16285 esac
16286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16287 $as_echo "$ac_try_echo") >&5
16288 (eval "$ac_link") 2>conftest.er1
16289 ac_status=$?
16290 grep -v '^ *+' conftest.er1 >conftest.err
16291 rm -f conftest.er1
16292 cat conftest.err >&5
16293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); } && {
16295 test -z "$ac_c_werror_flag" ||
16296 test ! -s conftest.err
16297 } && test -s conftest$ac_exeext && {
16298 test "$cross_compiling" = yes ||
16299 $as_test_x conftest$ac_exeext
16300 }; then
16301 ac_cv_func_connect=yes
16302 else
16303 $as_echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16305
16306 ac_cv_func_connect=no
16307 fi
16308
16309 rm -rf conftest.dSYM
16310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16311 conftest$ac_exeext conftest.$ac_ext
16312 fi
16313 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
16314 $as_echo "$ac_cv_func_connect" >&6; }
16315 if test "x$ac_cv_func_connect" = x""yes; then
16316 try_socket=""
16317 else
16318 try_socket="yes"
16319 fi
16320
16321 if test -n "${try_socket}"; then
16322 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
16323 $as_echo_n "checking for connect in -lsocket... " >&6; }
16324 if test "${ac_cv_lib_socket_connect+set}" = set; then
16325 $as_echo_n "(cached) " >&6
16326 else
16327 ac_check_lib_save_LIBS=$LIBS
16328 LIBS="-lsocket $LIBS"
16329 cat >conftest.$ac_ext <<_ACEOF
16330 /* confdefs.h. */
16331 _ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h. */
16335
16336 /* Override any GCC internal prototype to avoid an error.
16337 Use char because int might match the return type of a GCC
16338 builtin and then its argument prototype would still apply. */
16339 #ifdef __cplusplus
16340 extern "C"
16341 #endif
16342 char connect ();
16343 int
16344 main ()
16345 {
16346 return connect ();
16347 ;
16348 return 0;
16349 }
16350 _ACEOF
16351 rm -f conftest.$ac_objext conftest$ac_exeext
16352 if { (ac_try="$ac_link"
16353 case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16356 esac
16357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16358 $as_echo "$ac_try_echo") >&5
16359 (eval "$ac_link") 2>conftest.er1
16360 ac_status=$?
16361 grep -v '^ *+' conftest.er1 >conftest.err
16362 rm -f conftest.er1
16363 cat conftest.err >&5
16364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); } && {
16366 test -z "$ac_c_werror_flag" ||
16367 test ! -s conftest.err
16368 } && test -s conftest$ac_exeext && {
16369 test "$cross_compiling" = yes ||
16370 $as_test_x conftest$ac_exeext
16371 }; then
16372 ac_cv_lib_socket_connect=yes
16373 else
16374 $as_echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16376
16377 ac_cv_lib_socket_connect=no
16378 fi
16379
16380 rm -rf conftest.dSYM
16381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16382 conftest$ac_exeext conftest.$ac_ext
16383 LIBS=$ac_check_lib_save_LIBS
16384 fi
16385 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
16386 $as_echo "$ac_cv_lib_socket_connect" >&6; }
16387 if test "x$ac_cv_lib_socket_connect" = x""yes; then
16388 socket_lib="-lsocket"
16389 else
16390 socket_lib=""
16391 fi
16392
16393 fi
16394
16395 thread_lib="";
16396 { $as_echo "$as_me:$LINENO: checking for thr_create" >&5
16397 $as_echo_n "checking for thr_create... " >&6; }
16398 if test "${ac_cv_func_thr_create+set}" = set; then
16399 $as_echo_n "(cached) " >&6
16400 else
16401 cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h. */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 /* Define thr_create to an innocuous variant, in case <limits.h> declares thr_create.
16408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16409 #define thr_create innocuous_thr_create
16410
16411 /* System header to define __stub macros and hopefully few prototypes,
16412 which can conflict with char thr_create (); below.
16413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16414 <limits.h> exists even on freestanding compilers. */
16415
16416 #ifdef __STDC__
16417 # include <limits.h>
16418 #else
16419 # include <assert.h>
16420 #endif
16421
16422 #undef thr_create
16423
16424 /* Override any GCC internal prototype to avoid an error.
16425 Use char because int might match the return type of a GCC
16426 builtin and then its argument prototype would still apply. */
16427 #ifdef __cplusplus
16428 extern "C"
16429 #endif
16430 char thr_create ();
16431 /* The GNU C library defines this for functions which it implements
16432 to always fail with ENOSYS. Some functions are actually named
16433 something starting with __ and the normal name is an alias. */
16434 #if defined __stub_thr_create || defined __stub___thr_create
16435 choke me
16436 #endif
16437
16438 int
16439 main ()
16440 {
16441 return thr_create ();
16442 ;
16443 return 0;
16444 }
16445 _ACEOF
16446 rm -f conftest.$ac_objext conftest$ac_exeext
16447 if { (ac_try="$ac_link"
16448 case "(($ac_try" in
16449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450 *) ac_try_echo=$ac_try;;
16451 esac
16452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16453 $as_echo "$ac_try_echo") >&5
16454 (eval "$ac_link") 2>conftest.er1
16455 ac_status=$?
16456 grep -v '^ *+' conftest.er1 >conftest.err
16457 rm -f conftest.er1
16458 cat conftest.err >&5
16459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } && {
16461 test -z "$ac_c_werror_flag" ||
16462 test ! -s conftest.err
16463 } && test -s conftest$ac_exeext && {
16464 test "$cross_compiling" = yes ||
16465 $as_test_x conftest$ac_exeext
16466 }; then
16467 ac_cv_func_thr_create=yes
16468 else
16469 $as_echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16471
16472 ac_cv_func_thr_create=no
16473 fi
16474
16475 rm -rf conftest.dSYM
16476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16477 conftest$ac_exeext conftest.$ac_ext
16478 fi
16479 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_thr_create" >&5
16480 $as_echo "$ac_cv_func_thr_create" >&6; }
16481 if test "x$ac_cv_func_thr_create" = x""yes; then
16482 try_thread=""
16483 else
16484 try_thread="yes"
16485 fi
16486
16487 if test -n "${try_thread}"; then
16488 { $as_echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16489 $as_echo_n "checking for thr_create in -lthread... " >&6; }
16490 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16491 $as_echo_n "(cached) " >&6
16492 else
16493 ac_check_lib_save_LIBS=$LIBS
16494 LIBS="-lthread $LIBS"
16495 cat >conftest.$ac_ext <<_ACEOF
16496 /* confdefs.h. */
16497 _ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16501
16502 /* Override any GCC internal prototype to avoid an error.
16503 Use char because int might match the return type of a GCC
16504 builtin and then its argument prototype would still apply. */
16505 #ifdef __cplusplus
16506 extern "C"
16507 #endif
16508 char thr_create ();
16509 int
16510 main ()
16511 {
16512 return thr_create ();
16513 ;
16514 return 0;
16515 }
16516 _ACEOF
16517 rm -f conftest.$ac_objext conftest$ac_exeext
16518 if { (ac_try="$ac_link"
16519 case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16522 esac
16523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16524 $as_echo "$ac_try_echo") >&5
16525 (eval "$ac_link") 2>conftest.er1
16526 ac_status=$?
16527 grep -v '^ *+' conftest.er1 >conftest.err
16528 rm -f conftest.er1
16529 cat conftest.err >&5
16530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } && {
16532 test -z "$ac_c_werror_flag" ||
16533 test ! -s conftest.err
16534 } && test -s conftest$ac_exeext && {
16535 test "$cross_compiling" = yes ||
16536 $as_test_x conftest$ac_exeext
16537 }; then
16538 ac_cv_lib_thread_thr_create=yes
16539 else
16540 $as_echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16542
16543 ac_cv_lib_thread_thr_create=no
16544 fi
16545
16546 rm -rf conftest.dSYM
16547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16548 conftest$ac_exeext conftest.$ac_ext
16549 LIBS=$ac_check_lib_save_LIBS
16550 fi
16551 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16552 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
16553 if test "x$ac_cv_lib_thread_thr_create" = x""yes; then
16554 thread_lib="-lthread"
16555 else
16556 thread_lib=""
16557 fi
16558
16559 fi
16560
16561
16562
16563 fetk_cpu_vendor_os="";
16564 { $as_echo "$as_me:$LINENO: checking whether you want to disable the CPU-VENDOR-OS install triplet" >&5
16565 $as_echo_n "checking whether you want to disable the CPU-VENDOR-OS install triplet... " >&6; }
16566 # Check whether --enable-triplet was given.
16567 if test "${enable_triplet+set}" = set; then
16568 enableval=$enable_triplet; triplet_kill="yes"
16569 else
16570 triplet_kill=""
16571
16572 fi
16573
16574 if test "${triplet_kill}" = yes; then
16575 { $as_echo "$as_me:$LINENO: result: yes" >&5
16576 $as_echo "yes" >&6; }
16577 fetk_cpu_vendor_os="";
16578 else
16579 { $as_echo "$as_me:$LINENO: result: no" >&5
16580 $as_echo "no" >&6; }
16581 fetk_cpu_vendor_os="${host_cpu}-${host_vendor}-${host_os}";
16582 fi
16583
16584
16585 if test "${host_os}" = "cygwin"; then
16586 cat >>confdefs.h <<\_ACEOF
16587 #define HAVE_CYGWIN 1
16588 _ACEOF
16589
16590 fi
16591
16592 rl_lib="";
16593 { $as_echo "$as_me:$LINENO: checking whether your environment defines FETK_RL_LIBRARY" >&5
16594 $as_echo_n "checking whether your environment defines FETK_RL_LIBRARY... " >&6; }
16595 if test -n "${FETK_RL_LIBRARY}"; then
16596 { $as_echo "$as_me:$LINENO: result: yes" >&5
16597 $as_echo "yes" >&6; }
16598 rl_lib_path="-L${FETK_RL_LIBRARY} ";
16599 else
16600 { $as_echo "$as_me:$LINENO: result: no" >&5
16601 $as_echo "no" >&6; }
16602 rl_lib_path="";
16603 fi
16604 LDFLAGS_SAVE=${LDFLAGS};
16605 LDFLAGS=${rl_lib_path};
16606 { $as_echo "$as_me:$LINENO: checking for tgetnum in -lncurses" >&5
16607 $as_echo_n "checking for tgetnum in -lncurses... " >&6; }
16608 if test "${ac_cv_lib_ncurses_tgetnum+set}" = set; then
16609 $as_echo_n "(cached) " >&6
16610 else
16611 ac_check_lib_save_LIBS=$LIBS
16612 LIBS="-lncurses ${math_lib} $LIBS"
16613 cat >conftest.$ac_ext <<_ACEOF
16614 /* confdefs.h. */
16615 _ACEOF
16616 cat confdefs.h >>conftest.$ac_ext
16617 cat >>conftest.$ac_ext <<_ACEOF
16618 /* end confdefs.h. */
16619
16620 /* Override any GCC internal prototype to avoid an error.
16621 Use char because int might match the return type of a GCC
16622 builtin and then its argument prototype would still apply. */
16623 #ifdef __cplusplus
16624 extern "C"
16625 #endif
16626 char tgetnum ();
16627 int
16628 main ()
16629 {
16630 return tgetnum ();
16631 ;
16632 return 0;
16633 }
16634 _ACEOF
16635 rm -f conftest.$ac_objext conftest$ac_exeext
16636 if { (ac_try="$ac_link"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16640 esac
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643 (eval "$ac_link") 2>conftest.er1
16644 ac_status=$?
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } && {
16650 test -z "$ac_c_werror_flag" ||
16651 test ! -s conftest.err
16652 } && test -s conftest$ac_exeext && {
16653 test "$cross_compiling" = yes ||
16654 $as_test_x conftest$ac_exeext
16655 }; then
16656 ac_cv_lib_ncurses_tgetnum=yes
16657 else
16658 $as_echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16660
16661 ac_cv_lib_ncurses_tgetnum=no
16662 fi
16663
16664 rm -rf conftest.dSYM
16665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16666 conftest$ac_exeext conftest.$ac_ext
16667 LIBS=$ac_check_lib_save_LIBS
16668 fi
16669 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetnum" >&5
16670 $as_echo "$ac_cv_lib_ncurses_tgetnum" >&6; }
16671 if test "x$ac_cv_lib_ncurses_tgetnum" = x""yes; then
16672 ncurses_lib="-lncurses"
16673 else
16674 ncurses_lib=""
16675 fi
16676
16677 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
16678 $as_echo_n "checking for readline in -lreadline... " >&6; }
16679 if test "${ac_cv_lib_readline_readline+set}" = set; then
16680 $as_echo_n "(cached) " >&6
16681 else
16682 ac_check_lib_save_LIBS=$LIBS
16683 LIBS="-lreadline ${rl_lib_path} ${ncurses_lib} ${math_lib} $LIBS"
16684 cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h. */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690
16691 /* Override any GCC internal prototype to avoid an error.
16692 Use char because int might match the return type of a GCC
16693 builtin and then its argument prototype would still apply. */
16694 #ifdef __cplusplus
16695 extern "C"
16696 #endif
16697 char readline ();
16698 int
16699 main ()
16700 {
16701 return readline ();
16702 ;
16703 return 0;
16704 }
16705 _ACEOF
16706 rm -f conftest.$ac_objext conftest$ac_exeext
16707 if { (ac_try="$ac_link"
16708 case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16711 esac
16712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16713 $as_echo "$ac_try_echo") >&5
16714 (eval "$ac_link") 2>conftest.er1
16715 ac_status=$?
16716 grep -v '^ *+' conftest.er1 >conftest.err
16717 rm -f conftest.er1
16718 cat conftest.err >&5
16719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } && {
16721 test -z "$ac_c_werror_flag" ||
16722 test ! -s conftest.err
16723 } && test -s conftest$ac_exeext && {
16724 test "$cross_compiling" = yes ||
16725 $as_test_x conftest$ac_exeext
16726 }; then
16727 ac_cv_lib_readline_readline=yes
16728 else
16729 $as_echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16731
16732 ac_cv_lib_readline_readline=no
16733 fi
16734
16735 rm -rf conftest.dSYM
16736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16737 conftest$ac_exeext conftest.$ac_ext
16738 LIBS=$ac_check_lib_save_LIBS
16739 fi
16740 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
16741 $as_echo "$ac_cv_lib_readline_readline" >&6; }
16742 if test "x$ac_cv_lib_readline_readline" = x""yes; then
16743 rl_use="yes";rl_lib="${rl_lib_path}-lreadline ${ncurses_lib}"
16744 else
16745 rl_use="";rl_lib=""
16746 fi
16747
16748 if test -n "${rl_use}"; then
16749 { $as_echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
16750 $as_echo_n "checking for add_history in -lreadline... " >&6; }
16751 if test "${ac_cv_lib_readline_add_history+set}" = set; then
16752 $as_echo_n "(cached) " >&6
16753 else
16754 ac_check_lib_save_LIBS=$LIBS
16755 LIBS="-lreadline ${rl_lib_path} ${ncurses_lib} ${math_lib} $LIBS"
16756 cat >conftest.$ac_ext <<_ACEOF
16757 /* confdefs.h. */
16758 _ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762
16763 /* Override any GCC internal prototype to avoid an error.
16764 Use char because int might match the return type of a GCC
16765 builtin and then its argument prototype would still apply. */
16766 #ifdef __cplusplus
16767 extern "C"
16768 #endif
16769 char add_history ();
16770 int
16771 main ()
16772 {
16773 return add_history ();
16774 ;
16775 return 0;
16776 }
16777 _ACEOF
16778 rm -f conftest.$ac_objext conftest$ac_exeext
16779 if { (ac_try="$ac_link"
16780 case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16783 esac
16784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16785 $as_echo "$ac_try_echo") >&5
16786 (eval "$ac_link") 2>conftest.er1
16787 ac_status=$?
16788 grep -v '^ *+' conftest.er1 >conftest.err
16789 rm -f conftest.er1
16790 cat conftest.err >&5
16791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); } && {
16793 test -z "$ac_c_werror_flag" ||
16794 test ! -s conftest.err
16795 } && test -s conftest$ac_exeext && {
16796 test "$cross_compiling" = yes ||
16797 $as_test_x conftest$ac_exeext
16798 }; then
16799 ac_cv_lib_readline_add_history=yes
16800 else
16801 $as_echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16803
16804 ac_cv_lib_readline_add_history=no
16805 fi
16806
16807 rm -rf conftest.dSYM
16808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16809 conftest$ac_exeext conftest.$ac_ext
16810 LIBS=$ac_check_lib_save_LIBS
16811 fi
16812 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
16813 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
16814 if test "x$ac_cv_lib_readline_add_history" = x""yes; then
16815 rl_use="yes";rl_lib="${rl_lib_path}-lreadline ${ncurses_lib}"
16816 else
16817 rl_use="";rl_lib=""
16818 fi
16819
16820 fi
16821 LDFLAGS=${LDFLAGS_SAVE};
16822
16823
16824 mpi_lib="";
16825 { $as_echo "$as_me:$LINENO: checking whether your environment defines FETK_MPI_LIBRARY" >&5
16826 $as_echo_n "checking whether your environment defines FETK_MPI_LIBRARY... " >&6; }
16827 if test -n "${FETK_MPI_LIBRARY}"; then
16828 { $as_echo "$as_me:$LINENO: result: yes" >&5
16829 $as_echo "yes" >&6; }
16830 mpi_lib_path="-L${FETK_MPI_LIBRARY} ";
16831 else
16832 { $as_echo "$as_me:$LINENO: result: no" >&5
16833 $as_echo "no" >&6; }
16834 mpi_lib_path="";
16835 fi
16836 LDFLAGS_SAVE=${LDFLAGS};
16837 LDFLAGS=${mpi_lib_path};
16838 mpi_use="";
16839 { $as_echo "$as_me:$LINENO: checking for main in -lmpi" >&5
16840 $as_echo_n "checking for main in -lmpi... " >&6; }
16841 if test "${ac_cv_lib_mpi_main+set}" = set; then
16842 $as_echo_n "(cached) " >&6
16843 else
16844 ac_check_lib_save_LIBS=$LIBS
16845 LIBS="-lmpi ${mpi_lib_path} $LIBS"
16846 cat >conftest.$ac_ext <<_ACEOF
16847 /* confdefs.h. */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16852
16853
16854 int
16855 main ()
16856 {
16857 return main ();
16858 ;
16859 return 0;
16860 }
16861 _ACEOF
16862 rm -f conftest.$ac_objext conftest$ac_exeext
16863 if { (ac_try="$ac_link"
16864 case "(($ac_try" in
16865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866 *) ac_try_echo=$ac_try;;
16867 esac
16868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16869 $as_echo "$ac_try_echo") >&5
16870 (eval "$ac_link") 2>conftest.er1
16871 ac_status=$?
16872 grep -v '^ *+' conftest.er1 >conftest.err
16873 rm -f conftest.er1
16874 cat conftest.err >&5
16875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } && {
16877 test -z "$ac_c_werror_flag" ||
16878 test ! -s conftest.err
16879 } && test -s conftest$ac_exeext && {
16880 test "$cross_compiling" = yes ||
16881 $as_test_x conftest$ac_exeext
16882 }; then
16883 ac_cv_lib_mpi_main=yes
16884 else
16885 $as_echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16887
16888 ac_cv_lib_mpi_main=no
16889 fi
16890
16891 rm -rf conftest.dSYM
16892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16893 conftest$ac_exeext conftest.$ac_ext
16894 LIBS=$ac_check_lib_save_LIBS
16895 fi
16896 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_main" >&5
16897 $as_echo "$ac_cv_lib_mpi_main" >&6; }
16898 if test "x$ac_cv_lib_mpi_main" = x""yes; then
16899 mpi_use="yes";mpi_lib="${mpi_lib_path}-lmpi"
16900 else
16901 mpi_use="";mpi_lib=""
16902 fi
16903
16904 if test -z "${mpi_use}"; then
16905 { $as_echo "$as_me:$LINENO: checking for main in -lmpich" >&5
16906 $as_echo_n "checking for main in -lmpich... " >&6; }
16907 if test "${ac_cv_lib_mpich_main+set}" = set; then
16908 $as_echo_n "(cached) " >&6
16909 else
16910 ac_check_lib_save_LIBS=$LIBS
16911 LIBS="-lmpich ${mpi_lib_path} $LIBS"
16912 cat >conftest.$ac_ext <<_ACEOF
16913 /* confdefs.h. */
16914 _ACEOF
16915 cat confdefs.h >>conftest.$ac_ext
16916 cat >>conftest.$ac_ext <<_ACEOF
16917 /* end confdefs.h. */
16918
16919
16920 int
16921 main ()
16922 {
16923 return main ();
16924 ;
16925 return 0;
16926 }
16927 _ACEOF
16928 rm -f conftest.$ac_objext conftest$ac_exeext
16929 if { (ac_try="$ac_link"
16930 case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16933 esac
16934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16935 $as_echo "$ac_try_echo") >&5
16936 (eval "$ac_link") 2>conftest.er1
16937 ac_status=$?
16938 grep -v '^ *+' conftest.er1 >conftest.err
16939 rm -f conftest.er1
16940 cat conftest.err >&5
16941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } && {
16943 test -z "$ac_c_werror_flag" ||
16944 test ! -s conftest.err
16945 } && test -s conftest$ac_exeext && {
16946 test "$cross_compiling" = yes ||
16947 $as_test_x conftest$ac_exeext
16948 }; then
16949 ac_cv_lib_mpich_main=yes
16950 else
16951 $as_echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16953
16954 ac_cv_lib_mpich_main=no
16955 fi
16956
16957 rm -rf conftest.dSYM
16958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16959 conftest$ac_exeext conftest.$ac_ext
16960 LIBS=$ac_check_lib_save_LIBS
16961 fi
16962 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_main" >&5
16963 $as_echo "$ac_cv_lib_mpich_main" >&6; }
16964 if test "x$ac_cv_lib_mpich_main" = x""yes; then
16965 mpi_use="yes";mpi_lib="${mpi_lib_path}-lmpich"
16966 else
16967 mpi_use="";mpi_lib=""
16968 fi
16969
16970 fi
16971 LDFLAGS=${LDFLAGS_SAVE};
16972
16973
16974 { $as_echo "$as_me:$LINENO: checking whether EMBED macro can be used without compilation errors" >&5
16975 $as_echo_n "checking whether EMBED macro can be used without compilation errors... " >&6; }
16976 cat >conftest.$ac_ext <<_ACEOF
16977 /* confdefs.h. */
16978 _ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16982
16983 int
16984 main ()
16985 {
16986 #define EMBED(rctag) \
16987 static const char* rctag; \
16988 static void* use_rcsid=(0 ? &use_rcsid : (void*)&rcsid);
16989 EMBED(rcsid)
16990 ;
16991 return 0;
16992 }
16993 _ACEOF
16994 rm -f conftest.$ac_objext
16995 if { (ac_try="$ac_compile"
16996 case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
16999 esac
17000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17001 $as_echo "$ac_try_echo") >&5
17002 (eval "$ac_compile") 2>conftest.er1
17003 ac_status=$?
17004 grep -v '^ *+' conftest.er1 >conftest.err
17005 rm -f conftest.er1
17006 cat conftest.err >&5
17007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); } && {
17009 test -z "$ac_c_werror_flag" ||
17010 test ! -s conftest.err
17011 } && test -s conftest.$ac_objext; then
17012 embed_ok=yes;cat >>confdefs.h <<\_ACEOF
17013 #define HAVE_EMBED 1
17014 _ACEOF
17015
17016 else
17017 $as_echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.$ac_ext >&5
17019
17020 embed_ok=no
17021 fi
17022
17023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17024 { $as_echo "$as_me:$LINENO: result: ${embed_ok}" >&5
17025 $as_echo "${embed_ok}" >&6; }
17026
17027 { $as_echo "$as_me:$LINENO: result: ----------- begin processing GAMER configure options ---------" >&5
17028 $as_echo "----------- begin processing GAMER configure options ---------" >&6; }
17029
17030 { $as_echo "$as_me:$LINENO: checking whether you want debug compilation" >&5
17031 $as_echo_n "checking whether you want debug compilation... " >&6; }
17032 # Check whether --enable-vdebug was given.
17033 if test "${enable_vdebug+set}" = set; then
17034 enableval=$enable_vdebug; vdebug_use="yes"
17035 else
17036 vdebug_use=""
17037
17038 fi
17039
17040 if test -z "${vdebug_use}"; then
17041 { $as_echo "$as_me:$LINENO: result: no" >&5
17042 $as_echo "no" >&6; }
17043 else
17044 { $as_echo "$as_me:$LINENO: result: yes" >&5
17045 $as_echo "yes" >&6; }
17046 cat >>confdefs.h <<\_ACEOF
17047 #define HAVE_DEBUG 1
17048 _ACEOF
17049
17050 fi
17051
17052 { $as_echo "$as_me:$LINENO: checking whether you want pedantic ANSI compilation" >&5
17053 $as_echo_n "checking whether you want pedantic ANSI compilation... " >&6; }
17054 # Check whether --enable-pansi was given.
17055 if test "${enable_pansi+set}" = set; then
17056 enableval=$enable_pansi; pansi_use="yes"
17057 else
17058 pansi_use=""
17059
17060 fi
17061
17062 if test -z "${pansi_use}"; then
17063 { $as_echo "$as_me:$LINENO: result: no" >&5
17064 $as_echo "no" >&6; }
17065 wall=""
17066 wall_pedantic=""
17067 wall_pedantic_ansi=""
17068 pedantic_ansi=""
17069 else
17070 { $as_echo "$as_me:$LINENO: result: yes" >&5
17071 $as_echo "yes" >&6; }
17072 wall="-Wall"
17073 wall_pedantic="-Wall -pedantic"
17074 wall_pedantic_ansi="-Wall -pedantic -ansi"
17075 pedantic_ansi="-pedantic -ansi"
17076 fi
17077
17078
17079
17080
17081
17082 { $as_echo "$as_me:$LINENO: checking whether you want profiling" >&5
17083 $as_echo_n "checking whether you want profiling... " >&6; }
17084 # Check whether --enable-gprof was given.
17085 if test "${enable_gprof+set}" = set; then
17086 enableval=$enable_gprof; gprof_use="yes"
17087 else
17088 gprof_use=""
17089
17090 fi
17091
17092 if test -z "${gprof_use}"; then
17093 { $as_echo "$as_me:$LINENO: result: no" >&5
17094 $as_echo "no" >&6; }
17095 profile=""
17096 profile_lib=""
17097 else
17098 { $as_echo "$as_me:$LINENO: result: yes" >&5
17099 $as_echo "yes" >&6; }
17100 profile="-pg"
17101 profile_lib="-pg"
17102 fi
17103
17104
17105
17106 { $as_echo "$as_me:$LINENO: checking whether you want ElectricFence" >&5
17107 $as_echo_n "checking whether you want ElectricFence... " >&6; }
17108 # Check whether --enable-efence was given.
17109 if test "${enable_efence+set}" = set; then
17110 enableval=$enable_efence; efence_use="yes"
17111 else
17112 efence_use=""
17113
17114 fi
17115
17116 if test -z "${efence_use}"; then
17117 { $as_echo "$as_me:$LINENO: result: no" >&5
17118 $as_echo "no" >&6; }
17119 zfence="";
17120 zfence_lib="";
17121 else
17122 { $as_echo "$as_me:$LINENO: result: yes ...poking around for it" >&5
17123 $as_echo "yes ...poking around for it" >&6; }
17124 { $as_echo "$as_me:$LINENO: checking for main in -lefence" >&5
17125 $as_echo_n "checking for main in -lefence... " >&6; }
17126 if test "${ac_cv_lib_efence_main+set}" = set; then
17127 $as_echo_n "(cached) " >&6
17128 else
17129 ac_check_lib_save_LIBS=$LIBS
17130 LIBS="-lefence $LIBS"
17131 cat >conftest.$ac_ext <<_ACEOF
17132 /* confdefs.h. */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17137
17138
17139 int
17140 main ()
17141 {
17142 return main ();
17143 ;
17144 return 0;
17145 }
17146 _ACEOF
17147 rm -f conftest.$ac_objext conftest$ac_exeext
17148 if { (ac_try="$ac_link"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152 esac
17153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17154 $as_echo "$ac_try_echo") >&5
17155 (eval "$ac_link") 2>conftest.er1
17156 ac_status=$?
17157 grep -v '^ *+' conftest.er1 >conftest.err
17158 rm -f conftest.er1
17159 cat conftest.err >&5
17160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } && {
17162 test -z "$ac_c_werror_flag" ||
17163 test ! -s conftest.err
17164 } && test -s conftest$ac_exeext && {
17165 test "$cross_compiling" = yes ||
17166 $as_test_x conftest$ac_exeext
17167 }; then
17168 ac_cv_lib_efence_main=yes
17169 else
17170 $as_echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17172
17173 ac_cv_lib_efence_main=no
17174 fi
17175
17176 rm -rf conftest.dSYM
17177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17178 conftest$ac_exeext conftest.$ac_ext
17179 LIBS=$ac_check_lib_save_LIBS
17180 fi
17181 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
17182 $as_echo "$ac_cv_lib_efence_main" >&6; }
17183 if test "x$ac_cv_lib_efence_main" = x""yes; then
17184 efence_use="yes";zfence="zfence";zfence_lib="-lefence"
17185 else
17186 efence_use="";zfence="";zfence_lib=""
17187 fi
17188
17189 fi
17190
17191
17192
17193 { $as_echo "$as_me:$LINENO: result: ------------ end processing GAMER configure options ----------" >&5
17194 $as_echo "------------ end processing GAMER configure options ----------" >&6; }
17195
17196 { $as_echo "$as_me:$LINENO: result: ---------- begin configuring for MALOC linkage ------------" >&5
17197 $as_echo "---------- begin configuring for MALOC linkage ------------" >&6; }
17198
17199
17200 { $as_echo "$as_me:$LINENO: checking whether your environment defines FETK_INCLUDE" >&5
17201 $as_echo_n "checking whether your environment defines FETK_INCLUDE... " >&6; }
17202 if test -n "${FETK_INCLUDE}"; then
17203 { $as_echo "$as_me:$LINENO: result: yes" >&5
17204 $as_echo "yes" >&6; }
17205 maloc_inc_path="-I${FETK_INCLUDE} ";
17206 else
17207 { $as_echo "$as_me:$LINENO: result: no" >&5
17208 $as_echo "no" >&6; }
17209 maloc_inc_path="";
17210 fi
17211
17212 { $as_echo "$as_me:$LINENO: checking whether your environment defines FETK_LIBRARY" >&5
17213 $as_echo_n "checking whether your environment defines FETK_LIBRARY... " >&6; }
17214 if test -n "${FETK_LIBRARY}"; then
17215 { $as_echo "$as_me:$LINENO: result: yes" >&5
17216 $as_echo "yes" >&6; }
17217 maloc_lib_path="-L${FETK_LIBRARY} ";
17218 else
17219 { $as_echo "$as_me:$LINENO: result: no" >&5
17220 $as_echo "no" >&6; }
17221 maloc_lib_path="";
17222 fi
17223
17224 LDFLAGS_SAVE=${LDFLAGS};
17225 CPPFLAGS_SAVE=${CPPFLAGS};
17226 LDFLAGS=${maloc_lib_path};
17227 CPPFLAGS=${maloc_inc_path};
17228 maloc_found="";
17229 if test "${ac_cv_header_maloc_maloc_h+set}" = set; then
17230 { $as_echo "$as_me:$LINENO: checking for maloc/maloc.h" >&5
17231 $as_echo_n "checking for maloc/maloc.h... " >&6; }
17232 if test "${ac_cv_header_maloc_maloc_h+set}" = set; then
17233 $as_echo_n "(cached) " >&6
17234 fi
17235 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_maloc_maloc_h" >&5
17236 $as_echo "$ac_cv_header_maloc_maloc_h" >&6; }
17237 else
17238 # Is the header compilable?
17239 { $as_echo "$as_me:$LINENO: checking maloc/maloc.h usability" >&5
17240 $as_echo_n "checking maloc/maloc.h usability... " >&6; }
17241 cat >conftest.$ac_ext <<_ACEOF
17242 /* confdefs.h. */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17247 $ac_includes_default
17248 #include <maloc/maloc.h>
17249 _ACEOF
17250 rm -f conftest.$ac_objext
17251 if { (ac_try="$ac_compile"
17252 case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17255 esac
17256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17257 $as_echo "$ac_try_echo") >&5
17258 (eval "$ac_compile") 2>conftest.er1
17259 ac_status=$?
17260 grep -v '^ *+' conftest.er1 >conftest.err
17261 rm -f conftest.er1
17262 cat conftest.err >&5
17263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } && {
17265 test -z "$ac_c_werror_flag" ||
17266 test ! -s conftest.err
17267 } && test -s conftest.$ac_objext; then
17268 ac_header_compiler=yes
17269 else
17270 $as_echo "$as_me: failed program was:" >&5
17271 sed 's/^/| /' conftest.$ac_ext >&5
17272
17273 ac_header_compiler=no
17274 fi
17275
17276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17277 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17278 $as_echo "$ac_header_compiler" >&6; }
17279
17280 # Is the header present?
17281 { $as_echo "$as_me:$LINENO: checking maloc/maloc.h presence" >&5
17282 $as_echo_n "checking maloc/maloc.h presence... " >&6; }
17283 cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h. */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289 #include <maloc/maloc.h>
17290 _ACEOF
17291 if { (ac_try="$ac_cpp conftest.$ac_ext"
17292 case "(($ac_try" in
17293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17294 *) ac_try_echo=$ac_try;;
17295 esac
17296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17297 $as_echo "$ac_try_echo") >&5
17298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17299 ac_status=$?
17300 grep -v '^ *+' conftest.er1 >conftest.err
17301 rm -f conftest.er1
17302 cat conftest.err >&5
17303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } >/dev/null && {
17305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17306 test ! -s conftest.err
17307 }; then
17308 ac_header_preproc=yes
17309 else
17310 $as_echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17312
17313 ac_header_preproc=no
17314 fi
17315
17316 rm -f conftest.err conftest.$ac_ext
17317 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17318 $as_echo "$ac_header_preproc" >&6; }
17319
17320 # So? What about this header?
17321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17322 yes:no: )
17323 { $as_echo "$as_me:$LINENO: WARNING: maloc/maloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
17324 $as_echo "$as_me: WARNING: maloc/maloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17325 { $as_echo "$as_me:$LINENO: WARNING: maloc/maloc.h: proceeding with the compiler's result" >&5
17326 $as_echo "$as_me: WARNING: maloc/maloc.h: proceeding with the compiler's result" >&2;}
17327 ac_header_preproc=yes
17328 ;;
17329 no:yes:* )
17330 { $as_echo "$as_me:$LINENO: WARNING: maloc/maloc.h: present but cannot be compiled" >&5
17331 $as_echo "$as_me: WARNING: maloc/maloc.h: present but cannot be compiled" >&2;}
17332 { $as_echo "$as_me:$LINENO: WARNING: maloc/maloc.h: check for missing prerequisite headers?" >&5
17333 $as_echo "$as_me: WARNING: maloc/maloc.h: check for missing prerequisite headers?" >&2;}
17334 { $as_echo "$as_me:$LINENO: WARNING: maloc/maloc.h: see the Autoconf documentation" >&5
17335 $as_echo "$as_me: WARNING: maloc/maloc.h: see the Autoconf documentation" >&2;}
17336 { $as_echo "$as_me:$LINENO: WARNING: maloc/maloc.h: section \"Present But Cannot Be Compiled\"" >&5
17337 $as_echo "$as_me: WARNING: maloc/maloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
17338 { $as_echo "$as_me:$LINENO: WARNING: maloc/maloc.h: proceeding with the preprocessor's result" >&5
17339 $as_echo "$as_me: WARNING: maloc/maloc.h: proceeding with the preprocessor's result" >&2;}
17340 { $as_echo "$as_me:$LINENO: WARNING: maloc/maloc.h: in the future, the compiler will take precedence" >&5
17341 $as_echo "$as_me: WARNING: maloc/maloc.h: in the future, the compiler will take precedence" >&2;}
17342 ( cat <<\_ASBOX
17343 ## ----------------------------------- ##
17344 ## Report this to [email protected] ##
17345 ## ----------------------------------- ##
17346 _ASBOX
17347 ) | sed "s/^/$as_me: WARNING: /" >&2
17348 ;;
17349 esac
17350 { $as_echo "$as_me:$LINENO: checking for maloc/maloc.h" >&5
17351 $as_echo_n "checking for maloc/maloc.h... " >&6; }
17352 if test "${ac_cv_header_maloc_maloc_h+set}" = set; then
17353 $as_echo_n "(cached) " >&6
17354 else
17355 ac_cv_header_maloc_maloc_h=$ac_header_preproc
17356 fi
17357 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_maloc_maloc_h" >&5
17358 $as_echo "$ac_cv_header_maloc_maloc_h" >&6; }
17359
17360 fi
17361 if test "x$ac_cv_header_maloc_maloc_h" = x""yes; then
17362 maloc_found="yes";maloc_inc="${maloc_inc_path}"
17363 else
17364 maloc_found="";maloc_inc=""
17365 fi
17366
17367
17368 if test -n "${maloc_found}"; then
17369 { $as_echo "$as_me:$LINENO: checking for maloc_link in -lmaloc" >&5
17370 $as_echo_n "checking for maloc_link in -lmaloc... " >&6; }
17371 if test "${ac_cv_lib_maloc_maloc_link+set}" = set; then
17372 $as_echo_n "(cached) " >&6
17373 else
17374 ac_check_lib_save_LIBS=$LIBS
17375 LIBS="-lmaloc ${maloc_lib_path}-lmaloc ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} ${mpi_lib} $LIBS"
17376 cat >conftest.$ac_ext <<_ACEOF
17377 /* confdefs.h. */
17378 _ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h. */
17382
17383 /* Override any GCC internal prototype to avoid an error.
17384 Use char because int might match the return type of a GCC
17385 builtin and then its argument prototype would still apply. */
17386 #ifdef __cplusplus
17387 extern "C"
17388 #endif
17389 char maloc_link ();
17390 int
17391 main ()
17392 {
17393 return maloc_link ();
17394 ;
17395 return 0;
17396 }
17397 _ACEOF
17398 rm -f conftest.$ac_objext conftest$ac_exeext
17399 if { (ac_try="$ac_link"
17400 case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17403 esac
17404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17405 $as_echo "$ac_try_echo") >&5
17406 (eval "$ac_link") 2>conftest.er1
17407 ac_status=$?
17408 grep -v '^ *+' conftest.er1 >conftest.err
17409 rm -f conftest.er1
17410 cat conftest.err >&5
17411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } && {
17413 test -z "$ac_c_werror_flag" ||
17414 test ! -s conftest.err
17415 } && test -s conftest$ac_exeext && {
17416 test "$cross_compiling" = yes ||
17417 $as_test_x conftest$ac_exeext
17418 }; then
17419 ac_cv_lib_maloc_maloc_link=yes
17420 else
17421 $as_echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17423
17424 ac_cv_lib_maloc_maloc_link=no
17425 fi
17426
17427 rm -rf conftest.dSYM
17428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17429 conftest$ac_exeext conftest.$ac_ext
17430 LIBS=$ac_check_lib_save_LIBS
17431 fi
17432 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_maloc_maloc_link" >&5
17433 $as_echo "$ac_cv_lib_maloc_maloc_link" >&6; }
17434 if test "x$ac_cv_lib_maloc_maloc_link" = x""yes; then
17435 maloc_found="yes";maloc_lib="${maloc_lib_path}-lmaloc"
17436 else
17437 maloc_found="";maloc_lib=""
17438 fi
17439
17440 fi
17441 if test -z "${maloc_found}"; then
17442 { { $as_echo "$as_me:$LINENO: error: MALOC libraries OR headers missing ...EXITING ON ERROR" >&5
17443 $as_echo "$as_me: error: MALOC libraries OR headers missing ...EXITING ON ERROR" >&2;}
17444 { (exit 1); exit 1; }; }
17445 else
17446 { $as_echo "$as_me:$LINENO: result: MALOC libraries AND headers were found ...rocking on..." >&5
17447 $as_echo "MALOC libraries AND headers were found ...rocking on..." >&6; }
17448 fi
17449
17450 LDFLAGS=${LDFLAGS_SAVE};
17451 CPPFLAGS=${CPPFLAGS_SAVE};
17452
17453
17454
17455 { $as_echo "$as_me:$LINENO: checking for maloc_needs_rl in -lmaloc" >&5
17456 $as_echo_n "checking for maloc_needs_rl in -lmaloc... " >&6; }
17457 if test "${ac_cv_lib_maloc_maloc_needs_rl+set}" = set; then
17458 $as_echo_n "(cached) " >&6
17459 else
17460 ac_check_lib_save_LIBS=$LIBS
17461 LIBS="-lmaloc ${maloc_lib} ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
17462 cat >conftest.$ac_ext <<_ACEOF
17463 /* confdefs.h. */
17464 _ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h. */
17468
17469 /* Override any GCC internal prototype to avoid an error.
17470 Use char because int might match the return type of a GCC
17471 builtin and then its argument prototype would still apply. */
17472 #ifdef __cplusplus
17473 extern "C"
17474 #endif
17475 char maloc_needs_rl ();
17476 int
17477 main ()
17478 {
17479 return maloc_needs_rl ();
17480 ;
17481 return 0;
17482 }
17483 _ACEOF
17484 rm -f conftest.$ac_objext conftest$ac_exeext
17485 if { (ac_try="$ac_link"
17486 case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17489 esac
17490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17491 $as_echo "$ac_try_echo") >&5
17492 (eval "$ac_link") 2>conftest.er1
17493 ac_status=$?
17494 grep -v '^ *+' conftest.er1 >conftest.err
17495 rm -f conftest.er1
17496 cat conftest.err >&5
17497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } && {
17499 test -z "$ac_c_werror_flag" ||
17500 test ! -s conftest.err
17501 } && test -s conftest$ac_exeext && {
17502 test "$cross_compiling" = yes ||
17503 $as_test_x conftest$ac_exeext
17504 }; then
17505 ac_cv_lib_maloc_maloc_needs_rl=yes
17506 else
17507 $as_echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17509
17510 ac_cv_lib_maloc_maloc_needs_rl=no
17511 fi
17512
17513 rm -rf conftest.dSYM
17514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17515 conftest$ac_exeext conftest.$ac_ext
17516 LIBS=$ac_check_lib_save_LIBS
17517 fi
17518 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_maloc_maloc_needs_rl" >&5
17519 $as_echo "$ac_cv_lib_maloc_maloc_needs_rl" >&6; }
17520 if test "x$ac_cv_lib_maloc_maloc_needs_rl" = x""yes; then
17521 rl_use="yes"
17522 else
17523 rl_use=""
17524 fi
17525
17526
17527 { $as_echo "$as_me:$LINENO: checking for maloc_needs_mpi in -lmaloc" >&5
17528 $as_echo_n "checking for maloc_needs_mpi in -lmaloc... " >&6; }
17529 if test "${ac_cv_lib_maloc_maloc_needs_mpi+set}" = set; then
17530 $as_echo_n "(cached) " >&6
17531 else
17532 ac_check_lib_save_LIBS=$LIBS
17533 LIBS="-lmaloc ${maloc_lib} ${mpi_lib} ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
17534 cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h. */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17540
17541 /* Override any GCC internal prototype to avoid an error.
17542 Use char because int might match the return type of a GCC
17543 builtin and then its argument prototype would still apply. */
17544 #ifdef __cplusplus
17545 extern "C"
17546 #endif
17547 char maloc_needs_mpi ();
17548 int
17549 main ()
17550 {
17551 return maloc_needs_mpi ();
17552 ;
17553 return 0;
17554 }
17555 _ACEOF
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (ac_try="$ac_link"
17558 case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17561 esac
17562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17563 $as_echo "$ac_try_echo") >&5
17564 (eval "$ac_link") 2>conftest.er1
17565 ac_status=$?
17566 grep -v '^ *+' conftest.er1 >conftest.err
17567 rm -f conftest.er1
17568 cat conftest.err >&5
17569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } && {
17571 test -z "$ac_c_werror_flag" ||
17572 test ! -s conftest.err
17573 } && test -s conftest$ac_exeext && {
17574 test "$cross_compiling" = yes ||
17575 $as_test_x conftest$ac_exeext
17576 }; then
17577 ac_cv_lib_maloc_maloc_needs_mpi=yes
17578 else
17579 $as_echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17581
17582 ac_cv_lib_maloc_maloc_needs_mpi=no
17583 fi
17584
17585 rm -rf conftest.dSYM
17586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17587 conftest$ac_exeext conftest.$ac_ext
17588 LIBS=$ac_check_lib_save_LIBS
17589 fi
17590 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_maloc_maloc_needs_mpi" >&5
17591 $as_echo "$ac_cv_lib_maloc_maloc_needs_mpi" >&6; }
17592 if test "x$ac_cv_lib_maloc_maloc_needs_mpi" = x""yes; then
17593 mpi_use="yes"
17594 else
17595 mpi_use=""
17596 fi
17597
17598
17599 { $as_echo "$as_me:$LINENO: result: ---------- end configuring for MALOC linkage --------------" >&5
17600 $as_echo "---------- end configuring for MALOC linkage --------------" >&6; }
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619 cwd=`pwd`
17620 cd ${srcdir}
17621 TOPDIR=`pwd`
17622 cd ${cwd}
17623
17624
17625 # Check whether --with-doxygen was given.
17626 if test "${with_doxygen+set}" = set; then
17627 withval=$with_doxygen; with_doxygen=$withval
17628 else
17629 with_doxygen=no
17630 fi
17631
17632
17633 if test "$with_doxygen" = "no"; then
17634 # Extract the first word of "doxygen", so it can be a program name with args.
17635 set dummy doxygen; ac_word=$2
17636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17637 $as_echo_n "checking for $ac_word... " >&6; }
17638 if test "${ac_cv_path_doxygen_path+set}" = set; then
17639 $as_echo_n "(cached) " >&6
17640 else
17641 case $doxygen_path in
17642 [\\/]* | ?:[\\/]*)
17643 ac_cv_path_doxygen_path="$doxygen_path" # Let the user override the test with a path.
17644 ;;
17645 *)
17646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17647 for as_dir in $PATH
17648 do
17649 IFS=$as_save_IFS
17650 test -z "$as_dir" && as_dir=.
17651 for ac_exec_ext in '' $ac_executable_extensions; do
17652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17653 ac_cv_path_doxygen_path="$as_dir/$ac_word$ac_exec_ext"
17654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17655 break 2
17656 fi
17657 done
17658 done
17659 IFS=$as_save_IFS
17660
17661 ;;
17662 esac
17663 fi
17664 doxygen_path=$ac_cv_path_doxygen_path
17665 if test -n "$doxygen_path"; then
17666 { $as_echo "$as_me:$LINENO: result: $doxygen_path" >&5
17667 $as_echo "$doxygen_path" >&6; }
17668 else
17669 { $as_echo "$as_me:$LINENO: result: no" >&5
17670 $as_echo "no" >&6; }
17671 fi
17672
17673
17674 if test -z "${doxygen_path}"; then
17675 { $as_echo "$as_me:$LINENO: WARNING: Unable to find doxygen!" >&5
17676 $as_echo "$as_me: WARNING: Unable to find doxygen!" >&2;}
17677 fi
17678 else
17679 doxygen_path=$with_doxygen
17680 fi
17681
17682
17683 # Check whether --with-dot was given.
17684 if test "${with_dot+set}" = set; then
17685 withval=$with_dot; with_dot=$withval
17686 else
17687 with_dot=no
17688 fi
17689
17690
17691 if test "$with_dot" = "no"; then
17692 # Extract the first word of "dot", so it can be a program name with args.
17693 set dummy dot; ac_word=$2
17694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17695 $as_echo_n "checking for $ac_word... " >&6; }
17696 if test "${ac_cv_path_dot_path+set}" = set; then
17697 $as_echo_n "(cached) " >&6
17698 else
17699 case $dot_path in
17700 [\\/]* | ?:[\\/]*)
17701 ac_cv_path_dot_path="$dot_path" # Let the user override the test with a path.
17702 ;;
17703 *)
17704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17705 for as_dir in $PATH
17706 do
17707 IFS=$as_save_IFS
17708 test -z "$as_dir" && as_dir=.
17709 for ac_exec_ext in '' $ac_executable_extensions; do
17710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17711 ac_cv_path_dot_path="$as_dir/$ac_word$ac_exec_ext"
17712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17713 break 2
17714 fi
17715 done
17716 done
17717 IFS=$as_save_IFS
17718
17719 ;;
17720 esac
17721 fi
17722 dot_path=$ac_cv_path_dot_path
17723 if test -n "$dot_path"; then
17724 { $as_echo "$as_me:$LINENO: result: $dot_path" >&5
17725 $as_echo "$dot_path" >&6; }
17726 else
17727 { $as_echo "$as_me:$LINENO: result: no" >&5
17728 $as_echo "no" >&6; }
17729 fi
17730
17731
17732 if test -z "${dot_path}"; then
17733 { $as_echo "$as_me:$LINENO: WARNING: Unable to find dot!" >&5
17734 $as_echo "$as_me: WARNING: Unable to find dot!" >&2;}
17735 fi
17736 else
17737 dot_path=$with_dot
17738 fi
17739
17740 if test "$dot_path" = ""; then
17741 sed -e 's%@have_dot@%'NO'%' $TOPDIR/doc/doxygen/gamer.dox.in > $TOPDIR/doc/doxygen/gamer.dox.in.temp
17742 sed -e 's%@dot_path@%''%' $TOPDIR/doc/doxygen/gamer.dox.in.temp > $TOPDIR/doc/doxygen/gamer.dox.in.temp.2
17743 else
17744 sed -e 's%@have_dot@%'YES'%' $TOPDIR/doc/doxygen/gamer.dox.in > $TOPDIR/doc/doxygen/gamer.dox.in.temp
17745 sed -e 's%@dot_path@%'${dot_path}'%' $TOPDIR/doc/doxygen/gamer.dox.in.temp > $TOPDIR/doc/doxygen/gamer.dox.in.temp.2
17746 fi
17747
17748 sed -e 's%@topdir@%'${TOPDIR}'%' $TOPDIR/doc/doxygen/gamer.dox.in.temp.2 > $TOPDIR/doc/doxygen/gamer.dox
17749 rm -f $TOPDIR/doc/doxygen/gamer.dox.in.temp*
17750
17751 if test "$doxygen_path" != ""; then
17752 MAKE_DOC_TRUE=
17753 MAKE_DOC_FALSE='#'
17754 else
17755 MAKE_DOC_TRUE='#'
17756 MAKE_DOC_FALSE=
17757 fi
17758
17759
17760
17761
17762
17763
17764 ac_config_files="$ac_config_files Makefile src/Makefile src/base/Makefile src/triangle/Makefile src/tetgen/Makefile src/biom/Makefile src/aaa_inc/Makefile src/aaa_inc/gamer/Makefile src/aaa_lib/Makefile doc/Makefile doc/doxygen/Makefile"
17765
17766 cat >confcache <<\_ACEOF
17767 # This file is a shell script that caches the results of configure
17768 # tests run on this system so they can be shared between configure
17769 # scripts and configure runs, see configure's option --config-cache.
17770 # It is not useful on other systems. If it contains results you don't
17771 # want to keep, you may remove or edit it.
17772 #
17773 # config.status only pays attention to the cache file if you give it
17774 # the --recheck option to rerun configure.
17775 #
17776 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17777 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17778 # following values.
17779
17780 _ACEOF
17781
17782 # The following way of writing the cache mishandles newlines in values,
17783 # but we know of no workaround that is simple, portable, and efficient.
17784 # So, we kill variables containing newlines.
17785 # Ultrix sh set writes to stderr and can't be redirected directly,
17786 # and sets the high bit in the cache file unless we assign to the vars.
17787 (
17788 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17789 eval ac_val=\$$ac_var
17790 case $ac_val in #(
17791 *${as_nl}*)
17792 case $ac_var in #(
17793 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17794 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17795 esac
17796 case $ac_var in #(
17797 _ | IFS | as_nl) ;; #(
17798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17799 *) $as_unset $ac_var ;;
17800 esac ;;
17801 esac
17802 done
17803
17804 (set) 2>&1 |
17805 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17806 *${as_nl}ac_space=\ *)
17807 # `set' does not quote correctly, so add quotes (double-quote
17808 # substitution turns \\\\ into \\, and sed turns \\ into \).
17809 sed -n \
17810 "s/'/'\\\\''/g;
17811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17812 ;; #(
17813 *)
17814 # `set' quotes correctly as required by POSIX, so do not add quotes.
17815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17816 ;;
17817 esac |
17818 sort
17819 ) |
17820 sed '
17821 /^ac_cv_env_/b end
17822 t clear
17823 :clear
17824 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17825 t end
17826 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17827 :end' >>confcache
17828 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17829 if test -w "$cache_file"; then
17830 test "x$cache_file" != "x/dev/null" &&
17831 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17832 $as_echo "$as_me: updating cache $cache_file" >&6;}
17833 cat confcache >$cache_file
17834 else
17835 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17836 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17837 fi
17838 fi
17839 rm -f confcache
17840
17841 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17842 # Let make expand exec_prefix.
17843 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17844
17845 DEFS=-DHAVE_CONFIG_H
17846
17847 ac_libobjs=
17848 ac_ltlibobjs=
17849 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17850 # 1. Remove the extension, and $U if already installed.
17851 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17852 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17853 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17854 # will be set to the directory where LIBOBJS objects are built.
17855 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17856 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17857 done
17858 LIBOBJS=$ac_libobjs
17859
17860 LTLIBOBJS=$ac_ltlibobjs
17861
17862
17863 if test -n "$EXEEXT"; then
17864 am__EXEEXT_TRUE=
17865 am__EXEEXT_FALSE='#'
17866 else
17867 am__EXEEXT_TRUE='#'
17868 am__EXEEXT_FALSE=
17869 fi
17870
17871 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17872 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17873 Usually this means the macro was only invoked conditionally." >&5
17874 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17875 Usually this means the macro was only invoked conditionally." >&2;}
17876 { (exit 1); exit 1; }; }
17877 fi
17878 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17879 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17880 Usually this means the macro was only invoked conditionally." >&5
17881 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17882 Usually this means the macro was only invoked conditionally." >&2;}
17883 { (exit 1); exit 1; }; }
17884 fi
17885 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17886 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17887 Usually this means the macro was only invoked conditionally." >&5
17888 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17889 Usually this means the macro was only invoked conditionally." >&2;}
17890 { (exit 1); exit 1; }; }
17891 fi
17892 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17893 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17894 Usually this means the macro was only invoked conditionally." >&5
17895 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17896 Usually this means the macro was only invoked conditionally." >&2;}
17897 { (exit 1); exit 1; }; }
17898 fi
17899 if test -z "${MAKE_DOC_TRUE}" && test -z "${MAKE_DOC_FALSE}"; then
17900 { { $as_echo "$as_me:$LINENO: error: conditional \"MAKE_DOC\" was never defined.
17901 Usually this means the macro was only invoked conditionally." >&5
17902 $as_echo "$as_me: error: conditional \"MAKE_DOC\" was never defined.
17903 Usually this means the macro was only invoked conditionally." >&2;}
17904 { (exit 1); exit 1; }; }
17905 fi
17906
17907 : ${CONFIG_STATUS=./config.status}
17908 ac_write_fail=0
17909 ac_clean_files_save=$ac_clean_files
17910 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17911 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17912 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17913 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17914 #! $SHELL
17915 # Generated by $as_me.
17916 # Run this file to recreate the current configuration.
17917 # Compiler output produced by configure, useful for debugging
17918 # configure, is in config.log if it exists.
17919
17920 debug=false
17921 ac_cs_recheck=false
17922 ac_cs_silent=false
17923 SHELL=\${CONFIG_SHELL-$SHELL}
17924 _ACEOF
17925
17926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17927 ## --------------------- ##
17928 ## M4sh Initialization. ##
17929 ## --------------------- ##
17930
17931 # Be more Bourne compatible
17932 DUALCASE=1; export DUALCASE # for MKS sh
17933 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17934 emulate sh
17935 NULLCMD=:
17936 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17937 # is contrary to our usage. Disable this feature.
17938 alias -g '${1+"$@"}'='"$@"'
17939 setopt NO_GLOB_SUBST
17940 else
17941 case `(set -o) 2>/dev/null` in
17942 *posix*) set -o posix ;;
17943 esac
17944
17945 fi
17946
17947
17948
17949
17950 # PATH needs CR
17951 # Avoid depending upon Character Ranges.
17952 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17953 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17954 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17955 as_cr_digits='0123456789'
17956 as_cr_alnum=$as_cr_Letters$as_cr_digits
17957
17958 as_nl='
17959 '
17960 export as_nl
17961 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17962 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17963 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17964 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17965 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17966 as_echo='printf %s\n'
17967 as_echo_n='printf %s'
17968 else
17969 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17970 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17971 as_echo_n='/usr/ucb/echo -n'
17972 else
17973 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17974 as_echo_n_body='eval
17975 arg=$1;
17976 case $arg in
17977 *"$as_nl"*)
17978 expr "X$arg" : "X\\(.*\\)$as_nl";
17979 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17980 esac;
17981 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17982 '
17983 export as_echo_n_body
17984 as_echo_n='sh -c $as_echo_n_body as_echo'
17985 fi
17986 export as_echo_body
17987 as_echo='sh -c $as_echo_body as_echo'
17988 fi
17989
17990 # The user is always right.
17991 if test "${PATH_SEPARATOR+set}" != set; then
17992 PATH_SEPARATOR=:
17993 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17994 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17995 PATH_SEPARATOR=';'
17996 }
17997 fi
17998
17999 # Support unset when possible.
18000 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18001 as_unset=unset
18002 else
18003 as_unset=false
18004 fi
18005
18006
18007 # IFS
18008 # We need space, tab and new line, in precisely that order. Quoting is
18009 # there to prevent editors from complaining about space-tab.
18010 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18011 # splitting by setting IFS to empty value.)
18012 IFS=" "" $as_nl"
18013
18014 # Find who we are. Look in the path if we contain no directory separator.
18015 case $0 in
18016 *[\\/]* ) as_myself=$0 ;;
18017 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18018 for as_dir in $PATH
18019 do
18020 IFS=$as_save_IFS
18021 test -z "$as_dir" && as_dir=.
18022 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18023 done
18024 IFS=$as_save_IFS
18025
18026 ;;
18027 esac
18028 # We did not find ourselves, most probably we were run as `sh COMMAND'
18029 # in which case we are not to be found in the path.
18030 if test "x$as_myself" = x; then
18031 as_myself=$0
18032 fi
18033 if test ! -f "$as_myself"; then
18034 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18035 { (exit 1); exit 1; }
18036 fi
18037
18038 # Work around bugs in pre-3.0 UWIN ksh.
18039 for as_var in ENV MAIL MAILPATH
18040 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18041 done
18042 PS1='$ '
18043 PS2='> '
18044 PS4='+ '
18045
18046 # NLS nuisances.
18047 LC_ALL=C
18048 export LC_ALL
18049 LANGUAGE=C
18050 export LANGUAGE
18051
18052 # Required to use basename.
18053 if expr a : '\(a\)' >/dev/null 2>&1 &&
18054 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18055 as_expr=expr
18056 else
18057 as_expr=false
18058 fi
18059
18060 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18061 as_basename=basename
18062 else
18063 as_basename=false
18064 fi
18065
18066
18067 # Name of the executable.
18068 as_me=`$as_basename -- "$0" ||
18069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18070 X"$0" : 'X\(//\)$' \| \
18071 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18072 $as_echo X/"$0" |
18073 sed '/^.*\/\([^/][^/]*\)\/*$/{
18074 s//\1/
18075 q
18076 }
18077 /^X\/\(\/\/\)$/{
18078 s//\1/
18079 q
18080 }
18081 /^X\/\(\/\).*/{
18082 s//\1/
18083 q
18084 }
18085 s/.*/./; q'`
18086
18087 # CDPATH.
18088 $as_unset CDPATH
18089
18090
18091
18092 as_lineno_1=$LINENO
18093 as_lineno_2=$LINENO
18094 test "x$as_lineno_1" != "x$as_lineno_2" &&
18095 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18096
18097 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18098 # uniformly replaced by the line number. The first 'sed' inserts a
18099 # line-number line after each line using $LINENO; the second 'sed'
18100 # does the real work. The second script uses 'N' to pair each
18101 # line-number line with the line containing $LINENO, and appends
18102 # trailing '-' during substitution so that $LINENO is not a special
18103 # case at line end.
18104 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18105 # scripts with optimization help from Paolo Bonzini. Blame Lee
18106 # E. McMahon (1931-1989) for sed's syntax. :-)
18107 sed -n '
18108 p
18109 /[$]LINENO/=
18110 ' <$as_myself |
18111 sed '
18112 s/[$]LINENO.*/&-/
18113 t lineno
18114 b
18115 :lineno
18116 N
18117 :loop
18118 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18119 t loop
18120 s/-\n.*//
18121 ' >$as_me.lineno &&
18122 chmod +x "$as_me.lineno" ||
18123 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18124 { (exit 1); exit 1; }; }
18125
18126 # Don't try to exec as it changes $[0], causing all sort of problems
18127 # (the dirname of $[0] is not the place where we might find the
18128 # original and so on. Autoconf is especially sensitive to this).
18129 . "./$as_me.lineno"
18130 # Exit status is that of the last command.
18131 exit
18132 }
18133
18134
18135 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18136 as_dirname=dirname
18137 else
18138 as_dirname=false
18139 fi
18140
18141 ECHO_C= ECHO_N= ECHO_T=
18142 case `echo -n x` in
18143 -n*)
18144 case `echo 'x\c'` in
18145 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18146 *) ECHO_C='\c';;
18147 esac;;
18148 *)
18149 ECHO_N='-n';;
18150 esac
18151 if expr a : '\(a\)' >/dev/null 2>&1 &&
18152 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18153 as_expr=expr
18154 else
18155 as_expr=false
18156 fi
18157
18158 rm -f conf$$ conf$$.exe conf$$.file
18159 if test -d conf$$.dir; then
18160 rm -f conf$$.dir/conf$$.file
18161 else
18162 rm -f conf$$.dir
18163 mkdir conf$$.dir 2>/dev/null
18164 fi
18165 if (echo >conf$$.file) 2>/dev/null; then
18166 if ln -s conf$$.file conf$$ 2>/dev/null; then
18167 as_ln_s='ln -s'
18168 # ... but there are two gotchas:
18169 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18170 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18171 # In both cases, we have to default to `cp -p'.
18172 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18173 as_ln_s='cp -p'
18174 elif ln conf$$.file conf$$ 2>/dev/null; then
18175 as_ln_s=ln
18176 else
18177 as_ln_s='cp -p'
18178 fi
18179 else
18180 as_ln_s='cp -p'
18181 fi
18182 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18183 rmdir conf$$.dir 2>/dev/null
18184
18185 if mkdir -p . 2>/dev/null; then
18186 as_mkdir_p=:
18187 else
18188 test -d ./-p && rmdir ./-p
18189 as_mkdir_p=false
18190 fi
18191
18192 if test -x / >/dev/null 2>&1; then
18193 as_test_x='test -x'
18194 else
18195 if ls -dL / >/dev/null 2>&1; then
18196 as_ls_L_option=L
18197 else
18198 as_ls_L_option=
18199 fi
18200 as_test_x='
18201 eval sh -c '\''
18202 if test -d "$1"; then
18203 test -d "$1/.";
18204 else
18205 case $1 in
18206 -*)set "./$1";;
18207 esac;
18208 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18209 ???[sx]*):;;*)false;;esac;fi
18210 '\'' sh
18211 '
18212 fi
18213 as_executable_p=$as_test_x
18214
18215 # Sed expression to map a string onto a valid CPP name.
18216 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18217
18218 # Sed expression to map a string onto a valid variable name.
18219 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18220
18221
18222 exec 6>&1
18223
18224 # Save the log message, to keep $[0] and so on meaningful, and to
18225 # report actual input values of CONFIG_FILES etc. instead of their
18226 # values after options handling.
18227 ac_log="
18228 This file was extended by gamer $as_me 1.0, which was
18229 generated by GNU Autoconf 2.63. Invocation command line was
18230
18231 CONFIG_FILES = $CONFIG_FILES
18232 CONFIG_HEADERS = $CONFIG_HEADERS
18233 CONFIG_LINKS = $CONFIG_LINKS
18234 CONFIG_COMMANDS = $CONFIG_COMMANDS
18235 $ $0 $@
18236
18237 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18238 "
18239
18240 _ACEOF
18241
18242 case $ac_config_files in *"
18243 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18244 esac
18245
18246 case $ac_config_headers in *"
18247 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18248 esac
18249
18250
18251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18252 # Files that config.status was made for.
18253 config_files="$ac_config_files"
18254 config_headers="$ac_config_headers"
18255 config_commands="$ac_config_commands"
18256
18257 _ACEOF
18258
18259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18260 ac_cs_usage="\
18261 \`$as_me' instantiates files from templates according to the
18262 current configuration.
18263
18264 Usage: $0 [OPTION]... [FILE]...
18265
18266 -h, --help print this help, then exit
18267 -V, --version print version number and configuration settings, then exit
18268 -q, --quiet, --silent
18269 do not print progress messages
18270 -d, --debug don't remove temporary files
18271 --recheck update $as_me by reconfiguring in the same conditions
18272 --file=FILE[:TEMPLATE]
18273 instantiate the configuration file FILE
18274 --header=FILE[:TEMPLATE]
18275 instantiate the configuration header FILE
18276
18277 Configuration files:
18278 $config_files
18279
18280 Configuration headers:
18281 $config_headers
18282
18283 Configuration commands:
18284 $config_commands
18285
18286 Report bugs to <[email protected]>."
18287
18288 _ACEOF
18289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18290 ac_cs_version="\\
18291 gamer config.status 1.0
18292 configured by $0, generated by GNU Autoconf 2.63,
18293 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18294
18295 Copyright (C) 2008 Free Software Foundation, Inc.
18296 This config.status script is free software; the Free Software Foundation
18297 gives unlimited permission to copy, distribute and modify it."
18298
18299 ac_pwd='$ac_pwd'
18300 srcdir='$srcdir'
18301 INSTALL='$INSTALL'
18302 MKDIR_P='$MKDIR_P'
18303 AWK='$AWK'
18304 test -n "\$AWK" || AWK=awk
18305 _ACEOF
18306
18307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18308 # The default lists apply if the user does not specify any file.
18309 ac_need_defaults=:
18310 while test $# != 0
18311 do
18312 case $1 in
18313 --*=*)
18314 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18315 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18316 ac_shift=:
18317 ;;
18318 *)
18319 ac_option=$1
18320 ac_optarg=$2
18321 ac_shift=shift
18322 ;;
18323 esac
18324
18325 case $ac_option in
18326 # Handling of the options.
18327 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18328 ac_cs_recheck=: ;;
18329 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18330 $as_echo "$ac_cs_version"; exit ;;
18331 --debug | --debu | --deb | --de | --d | -d )
18332 debug=: ;;
18333 --file | --fil | --fi | --f )
18334 $ac_shift
18335 case $ac_optarg in
18336 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18337 esac
18338 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18339 ac_need_defaults=false;;
18340 --header | --heade | --head | --hea )
18341 $ac_shift
18342 case $ac_optarg in
18343 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18344 esac
18345 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18346 ac_need_defaults=false;;
18347 --he | --h)
18348 # Conflict between --help and --header
18349 { $as_echo "$as_me: error: ambiguous option: $1
18350 Try \`$0 --help' for more information." >&2
18351 { (exit 1); exit 1; }; };;
18352 --help | --hel | -h )
18353 $as_echo "$ac_cs_usage"; exit ;;
18354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18355 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18356 ac_cs_silent=: ;;
18357
18358 # This is an error.
18359 -*) { $as_echo "$as_me: error: unrecognized option: $1
18360 Try \`$0 --help' for more information." >&2
18361 { (exit 1); exit 1; }; } ;;
18362
18363 *) ac_config_targets="$ac_config_targets $1"
18364 ac_need_defaults=false ;;
18365
18366 esac
18367 shift
18368 done
18369
18370 ac_configure_extra_args=
18371
18372 if $ac_cs_silent; then
18373 exec 6>/dev/null
18374 ac_configure_extra_args="$ac_configure_extra_args --silent"
18375 fi
18376
18377 _ACEOF
18378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18379 if \$ac_cs_recheck; then
18380 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18381 shift
18382 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18383 CONFIG_SHELL='$SHELL'
18384 export CONFIG_SHELL
18385 exec "\$@"
18386 fi
18387
18388 _ACEOF
18389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18390 exec 5>>config.log
18391 {
18392 echo
18393 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18394 ## Running $as_me. ##
18395 _ASBOX
18396 $as_echo "$ac_log"
18397 } >&5
18398
18399 _ACEOF
18400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18401 #
18402 # INIT-COMMANDS
18403 #
18404 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18405
18406
18407 # The HP-UX ksh and POSIX shell print the target directory to stdout
18408 # if CDPATH is set.
18409 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18410
18411 sed_quote_subst='$sed_quote_subst'
18412 double_quote_subst='$double_quote_subst'
18413 delay_variable_subst='$delay_variable_subst'
18414 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18415 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18416 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18417 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18418 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18419 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18420 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18421 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18422 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18423 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18424 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18425 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18426 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18427 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18428 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18429 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18430 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18431 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18432 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18433 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18434 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18435 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18436 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18437 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18438 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18439 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18440 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18441 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18442 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18443 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18444 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18445 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18446 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18447 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18448 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18449 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18450 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18451 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18452 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18453 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18454 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18455 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18456 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18457 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18458 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18459 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18460 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18461 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18462 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18463 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18464 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18465 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18466 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18467 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18468 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18469 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"`'
18470 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18471 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18472 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18473 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18474 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18475 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18476 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18477 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18478 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18479 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18480 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18481 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18482 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18483 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18484 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18485 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18486 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18487 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18488 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18489 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18490 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18491 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18492 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18493 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18494 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18495 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18496 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18497 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18498 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18499 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18500 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18501 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18502 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18503 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18504 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18505 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18506 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18507 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18508 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18509 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18510 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18511 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18512 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18513 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18514 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18515 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18516 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18517 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18518 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18519 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18520 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18521 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18522 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18523 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18524 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18525 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18526 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18527 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18528 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18529 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18530 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18531 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18532 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18533 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18534 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18535 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18536 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18537 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18538 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18539 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18540 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18541 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18542 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18543 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18544 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18545 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18546 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18547 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18548 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18549 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18550 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18551 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18552 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18553 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18554 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18555 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18556 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18557 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18558 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18559 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18560 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18561 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18562 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18563 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18564 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18565 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18566 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18567 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18568 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18569 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18570 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18571 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18572 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18573 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18574 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18575 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18576 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18577 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18578 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18579 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18580 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18581 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18582 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18583 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18584 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18585 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18586 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18587 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18588 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18589 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18590 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18591 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18592 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18593 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18594 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18595 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18596 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18597 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18598 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18599
18600 LTCC='$LTCC'
18601 LTCFLAGS='$LTCFLAGS'
18602 compiler='$compiler_DEFAULT'
18603
18604 # A function that is used when there is no print builtin or printf.
18605 func_fallback_echo ()
18606 {
18607 eval 'cat <<_LTECHO_EOF
18608 \$1
18609 _LTECHO_EOF'
18610 }
18611
18612 # Quote evaled strings.
18613 for var in SHELL \
18614 ECHO \
18615 SED \
18616 GREP \
18617 EGREP \
18618 FGREP \
18619 LD \
18620 NM \
18621 LN_S \
18622 lt_SP2NL \
18623 lt_NL2SP \
18624 reload_flag \
18625 OBJDUMP \
18626 deplibs_check_method \
18627 file_magic_cmd \
18628 file_magic_glob \
18629 want_nocaseglob \
18630 DLLTOOL \
18631 sharedlib_from_linklib_cmd \
18632 AR \
18633 AR_FLAGS \
18634 archiver_list_spec \
18635 STRIP \
18636 RANLIB \
18637 CC \
18638 CFLAGS \
18639 compiler \
18640 lt_cv_sys_global_symbol_pipe \
18641 lt_cv_sys_global_symbol_to_cdecl \
18642 lt_cv_sys_global_symbol_to_c_name_address \
18643 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18644 nm_file_list_spec \
18645 lt_prog_compiler_no_builtin_flag \
18646 lt_prog_compiler_pic \
18647 lt_prog_compiler_wl \
18648 lt_prog_compiler_static \
18649 lt_cv_prog_compiler_c_o \
18650 need_locks \
18651 MANIFEST_TOOL \
18652 DSYMUTIL \
18653 NMEDIT \
18654 LIPO \
18655 OTOOL \
18656 OTOOL64 \
18657 shrext_cmds \
18658 export_dynamic_flag_spec \
18659 whole_archive_flag_spec \
18660 compiler_needs_object \
18661 with_gnu_ld \
18662 allow_undefined_flag \
18663 no_undefined_flag \
18664 hardcode_libdir_flag_spec \
18665 hardcode_libdir_flag_spec_ld \
18666 hardcode_libdir_separator \
18667 exclude_expsyms \
18668 include_expsyms \
18669 file_list_spec \
18670 variables_saved_for_relink \
18671 libname_spec \
18672 library_names_spec \
18673 soname_spec \
18674 install_override_mode \
18675 finish_eval \
18676 old_striplib \
18677 striplib \
18678 compiler_lib_search_dirs \
18679 predep_objects \
18680 postdep_objects \
18681 predeps \
18682 postdeps \
18683 compiler_lib_search_path \
18684 LD_CXX \
18685 reload_flag_CXX \
18686 compiler_CXX \
18687 lt_prog_compiler_no_builtin_flag_CXX \
18688 lt_prog_compiler_pic_CXX \
18689 lt_prog_compiler_wl_CXX \
18690 lt_prog_compiler_static_CXX \
18691 lt_cv_prog_compiler_c_o_CXX \
18692 export_dynamic_flag_spec_CXX \
18693 whole_archive_flag_spec_CXX \
18694 compiler_needs_object_CXX \
18695 with_gnu_ld_CXX \
18696 allow_undefined_flag_CXX \
18697 no_undefined_flag_CXX \
18698 hardcode_libdir_flag_spec_CXX \
18699 hardcode_libdir_flag_spec_ld_CXX \
18700 hardcode_libdir_separator_CXX \
18701 exclude_expsyms_CXX \
18702 include_expsyms_CXX \
18703 file_list_spec_CXX \
18704 compiler_lib_search_dirs_CXX \
18705 predep_objects_CXX \
18706 postdep_objects_CXX \
18707 predeps_CXX \
18708 postdeps_CXX \
18709 compiler_lib_search_path_CXX; do
18710 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18711 *[\\\\\\\`\\"\\\$]*)
18712 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18713 ;;
18714 *)
18715 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18716 ;;
18717 esac
18718 done
18719
18720 # Double-quote double-evaled strings.
18721 for var in reload_cmds \
18722 old_postinstall_cmds \
18723 old_postuninstall_cmds \
18724 old_archive_cmds \
18725 extract_expsyms_cmds \
18726 old_archive_from_new_cmds \
18727 old_archive_from_expsyms_cmds \
18728 archive_cmds \
18729 archive_expsym_cmds \
18730 module_cmds \
18731 module_expsym_cmds \
18732 export_symbols_cmds \
18733 prelink_cmds \
18734 postlink_cmds \
18735 postinstall_cmds \
18736 postuninstall_cmds \
18737 finish_cmds \
18738 sys_lib_search_path_spec \
18739 sys_lib_dlsearch_path_spec \
18740 reload_cmds_CXX \
18741 old_archive_cmds_CXX \
18742 old_archive_from_new_cmds_CXX \
18743 old_archive_from_expsyms_cmds_CXX \
18744 archive_cmds_CXX \
18745 archive_expsym_cmds_CXX \
18746 module_cmds_CXX \
18747 module_expsym_cmds_CXX \
18748 export_symbols_cmds_CXX \
18749 prelink_cmds_CXX \
18750 postlink_cmds_CXX; do
18751 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18752 *[\\\\\\\`\\"\\\$]*)
18753 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18754 ;;
18755 *)
18756 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18757 ;;
18758 esac
18759 done
18760
18761 ac_aux_dir='$ac_aux_dir'
18762 xsi_shell='$xsi_shell'
18763 lt_shell_append='$lt_shell_append'
18764
18765 # See if we are running on zsh, and set the options which allow our
18766 # commands through without removal of \ escapes INIT.
18767 if test -n "\${ZSH_VERSION+set}" ; then
18768 setopt NO_GLOB_SUBST
18769 fi
18770
18771
18772 PACKAGE='$PACKAGE'
18773 VERSION='$VERSION'
18774 TIMESTAMP='$TIMESTAMP'
18775 RM='$RM'
18776 ofile='$ofile'
18777
18778
18779
18780
18781
18782
18783 _ACEOF
18784
18785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18786
18787 # Handling of arguments.
18788 for ac_config_target in $ac_config_targets
18789 do
18790 case $ac_config_target in
18791 "src/aaa_inc/gamercf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/aaa_inc/gamercf.h" ;;
18792 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18793 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18794 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18795 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18796 "src/base/Makefile") CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
18797 "src/triangle/Makefile") CONFIG_FILES="$CONFIG_FILES src/triangle/Makefile" ;;
18798 "src/tetgen/Makefile") CONFIG_FILES="$CONFIG_FILES src/tetgen/Makefile" ;;
18799 "src/biom/Makefile") CONFIG_FILES="$CONFIG_FILES src/biom/Makefile" ;;
18800 "src/aaa_inc/Makefile") CONFIG_FILES="$CONFIG_FILES src/aaa_inc/Makefile" ;;
18801 "src/aaa_inc/gamer/Makefile") CONFIG_FILES="$CONFIG_FILES src/aaa_inc/gamer/Makefile" ;;
18802 "src/aaa_lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/aaa_lib/Makefile" ;;
18803 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18804 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
18805
18806 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18807 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18808 { (exit 1); exit 1; }; };;
18809 esac
18810 done
18811
18812
18813 # If the user did not use the arguments to specify the items to instantiate,
18814 # then the envvar interface is used. Set only those that are not.
18815 # We use the long form for the default assignment because of an extremely
18816 # bizarre bug on SunOS 4.1.3.
18817 if $ac_need_defaults; then
18818 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18819 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18820 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18821 fi
18822
18823 # Have a temporary directory for convenience. Make it in the build tree
18824 # simply because there is no reason against having it here, and in addition,
18825 # creating and moving files from /tmp can sometimes cause problems.
18826 # Hook for its removal unless debugging.
18827 # Note that there is a small window in which the directory will not be cleaned:
18828 # after its creation but before its name has been assigned to `$tmp'.
18829 $debug ||
18830 {
18831 tmp=
18832 trap 'exit_status=$?
18833 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18834 ' 0
18835 trap '{ (exit 1); exit 1; }' 1 2 13 15
18836 }
18837 # Create a (secure) tmp directory for tmp files.
18838
18839 {
18840 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18841 test -n "$tmp" && test -d "$tmp"
18842 } ||
18843 {
18844 tmp=./conf$$-$RANDOM
18845 (umask 077 && mkdir "$tmp")
18846 } ||
18847 {
18848 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18849 { (exit 1); exit 1; }
18850 }
18851
18852 # Set up the scripts for CONFIG_FILES section.
18853 # No need to generate them if there are no CONFIG_FILES.
18854 # This happens for instance with `./config.status config.h'.
18855 if test -n "$CONFIG_FILES"; then
18856
18857
18858 ac_cr=' '
18859 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18860 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18861 ac_cs_awk_cr='\\r'
18862 else
18863 ac_cs_awk_cr=$ac_cr
18864 fi
18865
18866 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18867 _ACEOF
18868
18869
18870 {
18871 echo "cat >conf$$subs.awk <<_ACEOF" &&
18872 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18873 echo "_ACEOF"
18874 } >conf$$subs.sh ||
18875 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18876 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18877 { (exit 1); exit 1; }; }
18878 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18879 ac_delim='%!_!# '
18880 for ac_last_try in false false false false false :; do
18881 . ./conf$$subs.sh ||
18882 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18883 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18884 { (exit 1); exit 1; }; }
18885
18886 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18887 if test $ac_delim_n = $ac_delim_num; then
18888 break
18889 elif $ac_last_try; then
18890 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18891 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18892 { (exit 1); exit 1; }; }
18893 else
18894 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18895 fi
18896 done
18897 rm -f conf$$subs.sh
18898
18899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18900 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18901 _ACEOF
18902 sed -n '
18903 h
18904 s/^/S["/; s/!.*/"]=/
18905 p
18906 g
18907 s/^[^!]*!//
18908 :repl
18909 t repl
18910 s/'"$ac_delim"'$//
18911 t delim
18912 :nl
18913 h
18914 s/\(.\{148\}\).*/\1/
18915 t more1
18916 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18917 p
18918 n
18919 b repl
18920 :more1
18921 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18922 p
18923 g
18924 s/.\{148\}//
18925 t nl
18926 :delim
18927 h
18928 s/\(.\{148\}\).*/\1/
18929 t more2
18930 s/["\\]/\\&/g; s/^/"/; s/$/"/
18931 p
18932 b
18933 :more2
18934 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18935 p
18936 g
18937 s/.\{148\}//
18938 t delim
18939 ' <conf$$subs.awk | sed '
18940 /^[^""]/{
18941 N
18942 s/\n//
18943 }
18944 ' >>$CONFIG_STATUS || ac_write_fail=1
18945 rm -f conf$$subs.awk
18946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18947 _ACAWK
18948 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18949 for (key in S) S_is_set[key] = 1
18950 FS = ""
18951
18952 }
18953 {
18954 line = $ 0
18955 nfields = split(line, field, "@")
18956 substed = 0
18957 len = length(field[1])
18958 for (i = 2; i < nfields; i++) {
18959 key = field[i]
18960 keylen = length(key)
18961 if (S_is_set[key]) {
18962 value = S[key]
18963 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18964 len += length(value) + length(field[++i])
18965 substed = 1
18966 } else
18967 len += 1 + keylen
18968 }
18969
18970 print line
18971 }
18972
18973 _ACAWK
18974 _ACEOF
18975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18976 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18977 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18978 else
18979 cat
18980 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18981 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18982 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18983 { (exit 1); exit 1; }; }
18984 _ACEOF
18985
18986 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18987 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18988 # trailing colons and then remove the whole line if VPATH becomes empty
18989 # (actually we leave an empty line to preserve line numbers).
18990 if test "x$srcdir" = x.; then
18991 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18992 s/:*\$(srcdir):*/:/
18993 s/:*\${srcdir}:*/:/
18994 s/:*@srcdir@:*/:/
18995 s/^\([^=]*=[ ]*\):*/\1/
18996 s/:*$//
18997 s/^[^=]*=[ ]*$//
18998 }'
18999 fi
19000
19001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19002 fi # test -n "$CONFIG_FILES"
19003
19004 # Set up the scripts for CONFIG_HEADERS section.
19005 # No need to generate them if there are no CONFIG_HEADERS.
19006 # This happens for instance with `./config.status Makefile'.
19007 if test -n "$CONFIG_HEADERS"; then
19008 cat >"$tmp/defines.awk" <<\_ACAWK ||
19009 BEGIN {
19010 _ACEOF
19011
19012 # Transform confdefs.h into an awk script `defines.awk', embedded as
19013 # here-document in config.status, that substitutes the proper values into
19014 # config.h.in to produce config.h.
19015
19016 # Create a delimiter string that does not exist in confdefs.h, to ease
19017 # handling of long lines.
19018 ac_delim='%!_!# '
19019 for ac_last_try in false false :; do
19020 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19021 if test -z "$ac_t"; then
19022 break
19023 elif $ac_last_try; then
19024 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19025 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19026 { (exit 1); exit 1; }; }
19027 else
19028 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19029 fi
19030 done
19031
19032 # For the awk script, D is an array of macro values keyed by name,
19033 # likewise P contains macro parameters if any. Preserve backslash
19034 # newline sequences.
19035
19036 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19037 sed -n '
19038 s/.\{148\}/&'"$ac_delim"'/g
19039 t rset
19040 :rset
19041 s/^[ ]*#[ ]*define[ ][ ]*/ /
19042 t def
19043 d
19044 :def
19045 s/\\$//
19046 t bsnl
19047 s/["\\]/\\&/g
19048 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19049 D["\1"]=" \3"/p
19050 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19051 d
19052 :bsnl
19053 s/["\\]/\\&/g
19054 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19055 D["\1"]=" \3\\\\\\n"\\/p
19056 t cont
19057 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19058 t cont
19059 d
19060 :cont
19061 n
19062 s/.\{148\}/&'"$ac_delim"'/g
19063 t clear
19064 :clear
19065 s/\\$//
19066 t bsnlc
19067 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19068 d
19069 :bsnlc
19070 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19071 b cont
19072 ' <confdefs.h | sed '
19073 s/'"$ac_delim"'/"\\\
19074 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19075
19076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19077 for (key in D) D_is_set[key] = 1
19078 FS = ""
19079 }
19080 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19081 line = \$ 0
19082 split(line, arg, " ")
19083 if (arg[1] == "#") {
19084 defundef = arg[2]
19085 mac1 = arg[3]
19086 } else {
19087 defundef = substr(arg[1], 2)
19088 mac1 = arg[2]
19089 }
19090 split(mac1, mac2, "(") #)
19091 macro = mac2[1]
19092 prefix = substr(line, 1, index(line, defundef) - 1)
19093 if (D_is_set[macro]) {
19094 # Preserve the white space surrounding the "#".
19095 print prefix "define", macro P[macro] D[macro]
19096 next
19097 } else {
19098 # Replace #undef with comments. This is necessary, for example,
19099 # in the case of _POSIX_SOURCE, which is predefined and required
19100 # on some systems where configure will not decide to define it.
19101 if (defundef == "undef") {
19102 print "/*", prefix defundef, macro, "*/"
19103 next
19104 }
19105 }
19106 }
19107 { print }
19108 _ACAWK
19109 _ACEOF
19110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19111 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19112 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19113 { (exit 1); exit 1; }; }
19114 fi # test -n "$CONFIG_HEADERS"
19115
19116
19117 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19118 shift
19119 for ac_tag
19120 do
19121 case $ac_tag in
19122 :[FHLC]) ac_mode=$ac_tag; continue;;
19123 esac
19124 case $ac_mode$ac_tag in
19125 :[FHL]*:*);;
19126 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19127 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19128 { (exit 1); exit 1; }; };;
19129 :[FH]-) ac_tag=-:-;;
19130 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19131 esac
19132 ac_save_IFS=$IFS
19133 IFS=:
19134 set x $ac_tag
19135 IFS=$ac_save_IFS
19136 shift
19137 ac_file=$1
19138 shift
19139
19140 case $ac_mode in
19141 :L) ac_source=$1;;
19142 :[FH])
19143 ac_file_inputs=
19144 for ac_f
19145 do
19146 case $ac_f in
19147 -) ac_f="$tmp/stdin";;
19148 *) # Look for the file first in the build tree, then in the source tree
19149 # (if the path is not absolute). The absolute path cannot be DOS-style,
19150 # because $ac_f cannot contain `:'.
19151 test -f "$ac_f" ||
19152 case $ac_f in
19153 [\\/$]*) false;;
19154 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19155 esac ||
19156 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19157 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19158 { (exit 1); exit 1; }; };;
19159 esac
19160 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19161 ac_file_inputs="$ac_file_inputs '$ac_f'"
19162 done
19163
19164 # Let's still pretend it is `configure' which instantiates (i.e., don't
19165 # use $as_me), people would be surprised to read:
19166 # /* config.h. Generated by config.status. */
19167 configure_input='Generated from '`
19168 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19169 `' by configure.'
19170 if test x"$ac_file" != x-; then
19171 configure_input="$ac_file. $configure_input"
19172 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19173 $as_echo "$as_me: creating $ac_file" >&6;}
19174 fi
19175 # Neutralize special characters interpreted by sed in replacement strings.
19176 case $configure_input in #(
19177 *\&* | *\|* | *\\* )
19178 ac_sed_conf_input=`$as_echo "$configure_input" |
19179 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19180 *) ac_sed_conf_input=$configure_input;;
19181 esac
19182
19183 case $ac_tag in
19184 *:-:* | *:-) cat >"$tmp/stdin" \
19185 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19186 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19187 { (exit 1); exit 1; }; } ;;
19188 esac
19189 ;;
19190 esac
19191
19192 ac_dir=`$as_dirname -- "$ac_file" ||
19193 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19194 X"$ac_file" : 'X\(//\)[^/]' \| \
19195 X"$ac_file" : 'X\(//\)$' \| \
19196 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19197 $as_echo X"$ac_file" |
19198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19199 s//\1/
19200 q
19201 }
19202 /^X\(\/\/\)[^/].*/{
19203 s//\1/
19204 q
19205 }
19206 /^X\(\/\/\)$/{
19207 s//\1/
19208 q
19209 }
19210 /^X\(\/\).*/{
19211 s//\1/
19212 q
19213 }
19214 s/.*/./; q'`
19215 { as_dir="$ac_dir"
19216 case $as_dir in #(
19217 -*) as_dir=./$as_dir;;
19218 esac
19219 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19220 as_dirs=
19221 while :; do
19222 case $as_dir in #(
19223 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19224 *) as_qdir=$as_dir;;
19225 esac
19226 as_dirs="'$as_qdir' $as_dirs"
19227 as_dir=`$as_dirname -- "$as_dir" ||
19228 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19229 X"$as_dir" : 'X\(//\)[^/]' \| \
19230 X"$as_dir" : 'X\(//\)$' \| \
19231 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19232 $as_echo X"$as_dir" |
19233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19234 s//\1/
19235 q
19236 }
19237 /^X\(\/\/\)[^/].*/{
19238 s//\1/
19239 q
19240 }
19241 /^X\(\/\/\)$/{
19242 s//\1/
19243 q
19244 }
19245 /^X\(\/\).*/{
19246 s//\1/
19247 q
19248 }
19249 s/.*/./; q'`
19250 test -d "$as_dir" && break
19251 done
19252 test -z "$as_dirs" || eval "mkdir $as_dirs"
19253 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19254 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19255 { (exit 1); exit 1; }; }; }
19256 ac_builddir=.
19257
19258 case "$ac_dir" in
19259 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19260 *)
19261 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19262 # A ".." for each directory in $ac_dir_suffix.
19263 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19264 case $ac_top_builddir_sub in
19265 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19266 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19267 esac ;;
19268 esac
19269 ac_abs_top_builddir=$ac_pwd
19270 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19271 # for backward compatibility:
19272 ac_top_builddir=$ac_top_build_prefix
19273
19274 case $srcdir in
19275 .) # We are building in place.
19276 ac_srcdir=.
19277 ac_top_srcdir=$ac_top_builddir_sub
19278 ac_abs_top_srcdir=$ac_pwd ;;
19279 [\\/]* | ?:[\\/]* ) # Absolute name.
19280 ac_srcdir=$srcdir$ac_dir_suffix;
19281 ac_top_srcdir=$srcdir
19282 ac_abs_top_srcdir=$srcdir ;;
19283 *) # Relative name.
19284 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19285 ac_top_srcdir=$ac_top_build_prefix$srcdir
19286 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19287 esac
19288 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19289
19290
19291 case $ac_mode in
19292 :F)
19293 #
19294 # CONFIG_FILE
19295 #
19296
19297 case $INSTALL in
19298 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19299 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19300 esac
19301 ac_MKDIR_P=$MKDIR_P
19302 case $MKDIR_P in
19303 [\\/$]* | ?:[\\/]* ) ;;
19304 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19305 esac
19306 _ACEOF
19307
19308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19309 # If the template does not know about datarootdir, expand it.
19310 # FIXME: This hack should be removed a few years after 2.60.
19311 ac_datarootdir_hack=; ac_datarootdir_seen=
19312
19313 ac_sed_dataroot='
19314 /datarootdir/ {
19315 p
19316 q
19317 }
19318 /@datadir@/p
19319 /@docdir@/p
19320 /@infodir@/p
19321 /@localedir@/p
19322 /@mandir@/p
19323 '
19324 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19325 *datarootdir*) ac_datarootdir_seen=yes;;
19326 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19327 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19328 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19329 _ACEOF
19330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19331 ac_datarootdir_hack='
19332 s&@datadir@&$datadir&g
19333 s&@docdir@&$docdir&g
19334 s&@infodir@&$infodir&g
19335 s&@localedir@&$localedir&g
19336 s&@mandir@&$mandir&g
19337 s&\\\${datarootdir}&$datarootdir&g' ;;
19338 esac
19339 _ACEOF
19340
19341 # Neutralize VPATH when `$srcdir' = `.'.
19342 # Shell code in configure.ac might set extrasub.
19343 # FIXME: do we really want to maintain this feature?
19344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19345 ac_sed_extra="$ac_vpsub
19346 $extrasub
19347 _ACEOF
19348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19349 :t
19350 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19351 s|@configure_input@|$ac_sed_conf_input|;t t
19352 s&@top_builddir@&$ac_top_builddir_sub&;t t
19353 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19354 s&@srcdir@&$ac_srcdir&;t t
19355 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19356 s&@top_srcdir@&$ac_top_srcdir&;t t
19357 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19358 s&@builddir@&$ac_builddir&;t t
19359 s&@abs_builddir@&$ac_abs_builddir&;t t
19360 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19361 s&@INSTALL@&$ac_INSTALL&;t t
19362 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19363 $ac_datarootdir_hack
19364 "
19365 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19366 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19367 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19368 { (exit 1); exit 1; }; }
19369
19370 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19371 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19372 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19373 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19374 which seems to be undefined. Please make sure it is defined." >&5
19375 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19376 which seems to be undefined. Please make sure it is defined." >&2;}
19377
19378 rm -f "$tmp/stdin"
19379 case $ac_file in
19380 -) cat "$tmp/out" && rm -f "$tmp/out";;
19381 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19382 esac \
19383 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19384 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19385 { (exit 1); exit 1; }; }
19386 ;;
19387 :H)
19388 #
19389 # CONFIG_HEADER
19390 #
19391 if test x"$ac_file" != x-; then
19392 {
19393 $as_echo "/* $configure_input */" \
19394 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19395 } >"$tmp/config.h" \
19396 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19397 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19398 { (exit 1); exit 1; }; }
19399 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19400 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19401 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19402 else
19403 rm -f "$ac_file"
19404 mv "$tmp/config.h" "$ac_file" \
19405 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19406 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19407 { (exit 1); exit 1; }; }
19408 fi
19409 else
19410 $as_echo "/* $configure_input */" \
19411 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19412 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19413 $as_echo "$as_me: error: could not create -" >&2;}
19414 { (exit 1); exit 1; }; }
19415 fi
19416 # Compute "$ac_file"'s index in $config_headers.
19417 _am_arg="$ac_file"
19418 _am_stamp_count=1
19419 for _am_header in $config_headers :; do
19420 case $_am_header in
19421 $_am_arg | $_am_arg:* )
19422 break ;;
19423 * )
19424 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19425 esac
19426 done
19427 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19428 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19429 X"$_am_arg" : 'X\(//\)[^/]' \| \
19430 X"$_am_arg" : 'X\(//\)$' \| \
19431 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19432 $as_echo X"$_am_arg" |
19433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19434 s//\1/
19435 q
19436 }
19437 /^X\(\/\/\)[^/].*/{
19438 s//\1/
19439 q
19440 }
19441 /^X\(\/\/\)$/{
19442 s//\1/
19443 q
19444 }
19445 /^X\(\/\).*/{
19446 s//\1/
19447 q
19448 }
19449 s/.*/./; q'`/stamp-h$_am_stamp_count
19450 ;;
19451
19452 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
19453 $as_echo "$as_me: executing $ac_file commands" >&6;}
19454 ;;
19455 esac
19456
19457
19458 case $ac_file$ac_mode in
19459 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19460 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19461 # are listed without --file. Let's play safe and only enable the eval
19462 # if we detect the quoting.
19463 case $CONFIG_FILES in
19464 *\'*) eval set x "$CONFIG_FILES" ;;
19465 *) set x $CONFIG_FILES ;;
19466 esac
19467 shift
19468 for mf
19469 do
19470 # Strip MF so we end up with the name of the file.
19471 mf=`echo "$mf" | sed -e 's/:.*$//'`
19472 # Check whether this is an Automake generated Makefile or not.
19473 # We used to match only the files named `Makefile.in', but
19474 # some people rename them; so instead we look at the file content.
19475 # Grep'ing the first line is not enough: some people post-process
19476 # each Makefile.in and add a new line on top of each file to say so.
19477 # Grep'ing the whole file is not good either: AIX grep has a line
19478 # limit of 2048, but all sed's we know have understand at least 4000.
19479 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19480 dirpart=`$as_dirname -- "$mf" ||
19481 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19482 X"$mf" : 'X\(//\)[^/]' \| \
19483 X"$mf" : 'X\(//\)$' \| \
19484 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19485 $as_echo X"$mf" |
19486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19487 s//\1/
19488 q
19489 }
19490 /^X\(\/\/\)[^/].*/{
19491 s//\1/
19492 q
19493 }
19494 /^X\(\/\/\)$/{
19495 s//\1/
19496 q
19497 }
19498 /^X\(\/\).*/{
19499 s//\1/
19500 q
19501 }
19502 s/.*/./; q'`
19503 else
19504 continue
19505 fi
19506 # Extract the definition of DEPDIR, am__include, and am__quote
19507 # from the Makefile without running `make'.
19508 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19509 test -z "$DEPDIR" && continue
19510 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19511 test -z "am__include" && continue
19512 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19513 # When using ansi2knr, U may be empty or an underscore; expand it
19514 U=`sed -n 's/^U = //p' < "$mf"`
19515 # Find all dependency output files, they are included files with
19516 # $(DEPDIR) in their names. We invoke sed twice because it is the
19517 # simplest approach to changing $(DEPDIR) to its actual value in the
19518 # expansion.
19519 for file in `sed -n "
19520 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19521 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19522 # Make sure the directory exists.
19523 test -f "$dirpart/$file" && continue
19524 fdir=`$as_dirname -- "$file" ||
19525 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19526 X"$file" : 'X\(//\)[^/]' \| \
19527 X"$file" : 'X\(//\)$' \| \
19528 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19529 $as_echo X"$file" |
19530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19531 s//\1/
19532 q
19533 }
19534 /^X\(\/\/\)[^/].*/{
19535 s//\1/
19536 q
19537 }
19538 /^X\(\/\/\)$/{
19539 s//\1/
19540 q
19541 }
19542 /^X\(\/\).*/{
19543 s//\1/
19544 q
19545 }
19546 s/.*/./; q'`
19547 { as_dir=$dirpart/$fdir
19548 case $as_dir in #(
19549 -*) as_dir=./$as_dir;;
19550 esac
19551 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19552 as_dirs=
19553 while :; do
19554 case $as_dir in #(
19555 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19556 *) as_qdir=$as_dir;;
19557 esac
19558 as_dirs="'$as_qdir' $as_dirs"
19559 as_dir=`$as_dirname -- "$as_dir" ||
19560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19561 X"$as_dir" : 'X\(//\)[^/]' \| \
19562 X"$as_dir" : 'X\(//\)$' \| \
19563 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19564 $as_echo X"$as_dir" |
19565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19566 s//\1/
19567 q
19568 }
19569 /^X\(\/\/\)[^/].*/{
19570 s//\1/
19571 q
19572 }
19573 /^X\(\/\/\)$/{
19574 s//\1/
19575 q
19576 }
19577 /^X\(\/\).*/{
19578 s//\1/
19579 q
19580 }
19581 s/.*/./; q'`
19582 test -d "$as_dir" && break
19583 done
19584 test -z "$as_dirs" || eval "mkdir $as_dirs"
19585 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19586 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19587 { (exit 1); exit 1; }; }; }
19588 # echo "creating $dirpart/$file"
19589 echo '# dummy' > "$dirpart/$file"
19590 done
19591 done
19592 }
19593 ;;
19594 "libtool":C)
19595
19596 # See if we are running on zsh, and set the options which allow our
19597 # commands through without removal of \ escapes.
19598 if test -n "${ZSH_VERSION+set}" ; then
19599 setopt NO_GLOB_SUBST
19600 fi
19601
19602 cfgfile="${ofile}T"
19603 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19604 $RM "$cfgfile"
19605
19606 cat <<_LT_EOF >> "$cfgfile"
19607 #! $SHELL
19608
19609 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19610 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19611 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19612 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19613 #
19614 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19615 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19616 # Inc.
19617 # Written by Gordon Matzigkeit, 1996
19618 #
19619 # This file is part of GNU Libtool.
19620 #
19621 # GNU Libtool is free software; you can redistribute it and/or
19622 # modify it under the terms of the GNU General Public License as
19623 # published by the Free Software Foundation; either version 2 of
19624 # the License, or (at your option) any later version.
19625 #
19626 # As a special exception to the GNU General Public License,
19627 # if you distribute this file as part of a program or library that
19628 # is built using GNU Libtool, you may include this file under the
19629 # same distribution terms that you use for the rest of that program.
19630 #
19631 # GNU Libtool is distributed in the hope that it will be useful,
19632 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19633 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19634 # GNU General Public License for more details.
19635 #
19636 # You should have received a copy of the GNU General Public License
19637 # along with GNU Libtool; see the file COPYING. If not, a copy
19638 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19639 # obtained by writing to the Free Software Foundation, Inc.,
19640 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19641
19642
19643 # The names of the tagged configurations supported by this script.
19644 available_tags="CXX "
19645
19646 # ### BEGIN LIBTOOL CONFIG
19647
19648 # Whether or not to build static libraries.
19649 build_old_libs=$enable_static
19650
19651 # Which release of libtool.m4 was used?
19652 macro_version=$macro_version
19653 macro_revision=$macro_revision
19654
19655 # Whether or not to build shared libraries.
19656 build_libtool_libs=$enable_shared
19657
19658 # What type of objects to build.
19659 pic_mode=$pic_mode
19660
19661 # Whether or not to optimize for fast installation.
19662 fast_install=$enable_fast_install
19663
19664 # Shell to use when invoking shell scripts.
19665 SHELL=$lt_SHELL
19666
19667 # An echo program that protects backslashes.
19668 ECHO=$lt_ECHO
19669
19670 # The host system.
19671 host_alias=$host_alias
19672 host=$host
19673 host_os=$host_os
19674
19675 # The build system.
19676 build_alias=$build_alias
19677 build=$build
19678 build_os=$build_os
19679
19680 # A sed program that does not truncate output.
19681 SED=$lt_SED
19682
19683 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19684 Xsed="\$SED -e 1s/^X//"
19685
19686 # A grep program that handles long lines.
19687 GREP=$lt_GREP
19688
19689 # An ERE matcher.
19690 EGREP=$lt_EGREP
19691
19692 # A literal string matcher.
19693 FGREP=$lt_FGREP
19694
19695 # A BSD- or MS-compatible name lister.
19696 NM=$lt_NM
19697
19698 # Whether we need soft or hard links.
19699 LN_S=$lt_LN_S
19700
19701 # What is the maximum length of a command?
19702 max_cmd_len=$max_cmd_len
19703
19704 # Object file suffix (normally "o").
19705 objext=$ac_objext
19706
19707 # Executable file suffix (normally "").
19708 exeext=$exeext
19709
19710 # whether the shell understands "unset".
19711 lt_unset=$lt_unset
19712
19713 # turn spaces into newlines.
19714 SP2NL=$lt_lt_SP2NL
19715
19716 # turn newlines into spaces.
19717 NL2SP=$lt_lt_NL2SP
19718
19719 # convert \$build file names to \$host format.
19720 to_host_file_cmd=$lt_cv_to_host_file_cmd
19721
19722 # convert \$build files to toolchain format.
19723 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19724
19725 # An object symbol dumper.
19726 OBJDUMP=$lt_OBJDUMP
19727
19728 # Method to check whether dependent libraries are shared objects.
19729 deplibs_check_method=$lt_deplibs_check_method
19730
19731 # Command to use when deplibs_check_method = "file_magic".
19732 file_magic_cmd=$lt_file_magic_cmd
19733
19734 # How to find potential files when deplibs_check_method = "file_magic".
19735 file_magic_glob=$lt_file_magic_glob
19736
19737 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19738 want_nocaseglob=$lt_want_nocaseglob
19739
19740 # DLL creation program.
19741 DLLTOOL=$lt_DLLTOOL
19742
19743 # Command to associate shared and link libraries.
19744 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19745
19746 # The archiver.
19747 AR=$lt_AR
19748
19749 # Flags to create an archive.
19750 AR_FLAGS=$lt_AR_FLAGS
19751
19752 # How to feed a file listing to the archiver.
19753 archiver_list_spec=$lt_archiver_list_spec
19754
19755 # A symbol stripping program.
19756 STRIP=$lt_STRIP
19757
19758 # Commands used to install an old-style archive.
19759 RANLIB=$lt_RANLIB
19760 old_postinstall_cmds=$lt_old_postinstall_cmds
19761 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19762
19763 # Whether to use a lock for old archive extraction.
19764 lock_old_archive_extraction=$lock_old_archive_extraction
19765
19766 # A C compiler.
19767 LTCC=$lt_CC
19768
19769 # LTCC compiler flags.
19770 LTCFLAGS=$lt_CFLAGS
19771
19772 # Take the output of nm and produce a listing of raw symbols and C names.
19773 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19774
19775 # Transform the output of nm in a proper C declaration.
19776 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19777
19778 # Transform the output of nm in a C name address pair.
19779 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19780
19781 # Transform the output of nm in a C name address pair when lib prefix is needed.
19782 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19783
19784 # Specify filename containing input files for \$NM.
19785 nm_file_list_spec=$lt_nm_file_list_spec
19786
19787 # The root where to search for dependent libraries,and in which our libraries should be installed.
19788 lt_sysroot=$lt_sysroot
19789
19790 # The name of the directory that contains temporary libtool files.
19791 objdir=$objdir
19792
19793 # Used to examine libraries when file_magic_cmd begins with "file".
19794 MAGIC_CMD=$MAGIC_CMD
19795
19796 # Must we lock files when doing compilation?
19797 need_locks=$lt_need_locks
19798
19799 # Manifest tool.
19800 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19801
19802 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19803 DSYMUTIL=$lt_DSYMUTIL
19804
19805 # Tool to change global to local symbols on Mac OS X.
19806 NMEDIT=$lt_NMEDIT
19807
19808 # Tool to manipulate fat objects and archives on Mac OS X.
19809 LIPO=$lt_LIPO
19810
19811 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19812 OTOOL=$lt_OTOOL
19813
19814 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19815 OTOOL64=$lt_OTOOL64
19816
19817 # Old archive suffix (normally "a").
19818 libext=$libext
19819
19820 # Shared library suffix (normally ".so").
19821 shrext_cmds=$lt_shrext_cmds
19822
19823 # The commands to extract the exported symbol list from a shared archive.
19824 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19825
19826 # Variables whose values should be saved in libtool wrapper scripts and
19827 # restored at link time.
19828 variables_saved_for_relink=$lt_variables_saved_for_relink
19829
19830 # Do we need the "lib" prefix for modules?
19831 need_lib_prefix=$need_lib_prefix
19832
19833 # Do we need a version for libraries?
19834 need_version=$need_version
19835
19836 # Library versioning type.
19837 version_type=$version_type
19838
19839 # Shared library runtime path variable.
19840 runpath_var=$runpath_var
19841
19842 # Shared library path variable.
19843 shlibpath_var=$shlibpath_var
19844
19845 # Is shlibpath searched before the hard-coded library search path?
19846 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19847
19848 # Format of library name prefix.
19849 libname_spec=$lt_libname_spec
19850
19851 # List of archive names. First name is the real one, the rest are links.
19852 # The last name is the one that the linker finds with -lNAME
19853 library_names_spec=$lt_library_names_spec
19854
19855 # The coded name of the library, if different from the real name.
19856 soname_spec=$lt_soname_spec
19857
19858 # Permission mode override for installation of shared libraries.
19859 install_override_mode=$lt_install_override_mode
19860
19861 # Command to use after installation of a shared archive.
19862 postinstall_cmds=$lt_postinstall_cmds
19863
19864 # Command to use after uninstallation of a shared archive.
19865 postuninstall_cmds=$lt_postuninstall_cmds
19866
19867 # Commands used to finish a libtool library installation in a directory.
19868 finish_cmds=$lt_finish_cmds
19869
19870 # As "finish_cmds", except a single script fragment to be evaled but
19871 # not shown.
19872 finish_eval=$lt_finish_eval
19873
19874 # Whether we should hardcode library paths into libraries.
19875 hardcode_into_libs=$hardcode_into_libs
19876
19877 # Compile-time system search path for libraries.
19878 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19879
19880 # Run-time system search path for libraries.
19881 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19882
19883 # Whether dlopen is supported.
19884 dlopen_support=$enable_dlopen
19885
19886 # Whether dlopen of programs is supported.
19887 dlopen_self=$enable_dlopen_self
19888
19889 # Whether dlopen of statically linked programs is supported.
19890 dlopen_self_static=$enable_dlopen_self_static
19891
19892 # Commands to strip libraries.
19893 old_striplib=$lt_old_striplib
19894 striplib=$lt_striplib
19895
19896
19897 # The linker used to build libraries.
19898 LD=$lt_LD
19899
19900 # How to create reloadable object files.
19901 reload_flag=$lt_reload_flag
19902 reload_cmds=$lt_reload_cmds
19903
19904 # Commands used to build an old-style archive.
19905 old_archive_cmds=$lt_old_archive_cmds
19906
19907 # A language specific compiler.
19908 CC=$lt_compiler
19909
19910 # Is the compiler the GNU compiler?
19911 with_gcc=$GCC
19912
19913 # Compiler flag to turn off builtin functions.
19914 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19915
19916 # Additional compiler flags for building library objects.
19917 pic_flag=$lt_lt_prog_compiler_pic
19918
19919 # How to pass a linker flag through the compiler.
19920 wl=$lt_lt_prog_compiler_wl
19921
19922 # Compiler flag to prevent dynamic linking.
19923 link_static_flag=$lt_lt_prog_compiler_static
19924
19925 # Does compiler simultaneously support -c and -o options?
19926 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19927
19928 # Whether or not to add -lc for building shared libraries.
19929 build_libtool_need_lc=$archive_cmds_need_lc
19930
19931 # Whether or not to disallow shared libs when runtime libs are static.
19932 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19933
19934 # Compiler flag to allow reflexive dlopens.
19935 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19936
19937 # Compiler flag to generate shared objects directly from archives.
19938 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19939
19940 # Whether the compiler copes with passing no objects directly.
19941 compiler_needs_object=$lt_compiler_needs_object
19942
19943 # Create an old-style archive from a shared archive.
19944 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19945
19946 # Create a temporary old-style archive to link instead of a shared archive.
19947 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19948
19949 # Commands used to build a shared archive.
19950 archive_cmds=$lt_archive_cmds
19951 archive_expsym_cmds=$lt_archive_expsym_cmds
19952
19953 # Commands used to build a loadable module if different from building
19954 # a shared archive.
19955 module_cmds=$lt_module_cmds
19956 module_expsym_cmds=$lt_module_expsym_cmds
19957
19958 # Whether we are building with GNU ld or not.
19959 with_gnu_ld=$lt_with_gnu_ld
19960
19961 # Flag that allows shared libraries with undefined symbols to be built.
19962 allow_undefined_flag=$lt_allow_undefined_flag
19963
19964 # Flag that enforces no undefined symbols.
19965 no_undefined_flag=$lt_no_undefined_flag
19966
19967 # Flag to hardcode \$libdir into a binary during linking.
19968 # This must work even if \$libdir does not exist
19969 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19970
19971 # If ld is used when linking, flag to hardcode \$libdir into a binary
19972 # during linking. This must work even if \$libdir does not exist.
19973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19974
19975 # Whether we need a single "-rpath" flag with a separated argument.
19976 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19977
19978 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19979 # DIR into the resulting binary.
19980 hardcode_direct=$hardcode_direct
19981
19982 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19983 # DIR into the resulting binary and the resulting library dependency is
19984 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19985 # library is relocated.
19986 hardcode_direct_absolute=$hardcode_direct_absolute
19987
19988 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19989 # into the resulting binary.
19990 hardcode_minus_L=$hardcode_minus_L
19991
19992 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19993 # into the resulting binary.
19994 hardcode_shlibpath_var=$hardcode_shlibpath_var
19995
19996 # Set to "yes" if building a shared library automatically hardcodes DIR
19997 # into the library and all subsequent libraries and executables linked
19998 # against it.
19999 hardcode_automatic=$hardcode_automatic
20000
20001 # Set to yes if linker adds runtime paths of dependent libraries
20002 # to runtime path list.
20003 inherit_rpath=$inherit_rpath
20004
20005 # Whether libtool must link a program against all its dependency libraries.
20006 link_all_deplibs=$link_all_deplibs
20007
20008 # Set to "yes" if exported symbols are required.
20009 always_export_symbols=$always_export_symbols
20010
20011 # The commands to list exported symbols.
20012 export_symbols_cmds=$lt_export_symbols_cmds
20013
20014 # Symbols that should not be listed in the preloaded symbols.
20015 exclude_expsyms=$lt_exclude_expsyms
20016
20017 # Symbols that must always be exported.
20018 include_expsyms=$lt_include_expsyms
20019
20020 # Commands necessary for linking programs (against libraries) with templates.
20021 prelink_cmds=$lt_prelink_cmds
20022
20023 # Commands necessary for finishing linking programs.
20024 postlink_cmds=$lt_postlink_cmds
20025
20026 # Specify filename containing input files.
20027 file_list_spec=$lt_file_list_spec
20028
20029 # How to hardcode a shared library path into an executable.
20030 hardcode_action=$hardcode_action
20031
20032 # The directories searched by this compiler when creating a shared library.
20033 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20034
20035 # Dependencies to place before and after the objects being linked to
20036 # create a shared library.
20037 predep_objects=$lt_predep_objects
20038 postdep_objects=$lt_postdep_objects
20039 predeps=$lt_predeps
20040 postdeps=$lt_postdeps
20041
20042 # The library search path used internally by the compiler when linking
20043 # a shared library.
20044 compiler_lib_search_path=$lt_compiler_lib_search_path
20045
20046 # ### END LIBTOOL CONFIG
20047
20048 _LT_EOF
20049
20050 case $host_os in
20051 aix3*)
20052 cat <<\_LT_EOF >> "$cfgfile"
20053 # AIX sometimes has problems with the GCC collect2 program. For some
20054 # reason, if we set the COLLECT_NAMES environment variable, the problems
20055 # vanish in a puff of smoke.
20056 if test "X${COLLECT_NAMES+set}" != Xset; then
20057 COLLECT_NAMES=
20058 export COLLECT_NAMES
20059 fi
20060 _LT_EOF
20061 ;;
20062 esac
20063
20064
20065 ltmain="$ac_aux_dir/ltmain.sh"
20066
20067
20068 # We use sed instead of cat because bash on DJGPP gets confused if
20069 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20070 # text mode, it properly converts lines to CR/LF. This bash problem
20071 # is reportedly fixed, but why not run on old versions too?
20072 sed '$q' "$ltmain" >> "$cfgfile" \
20073 || (rm -f "$cfgfile"; exit 1)
20074
20075 if test x"$xsi_shell" = xyes; then
20076 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20077 func_dirname ()\
20078 {\
20079 \ case ${1} in\
20080 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20081 \ * ) func_dirname_result="${3}" ;;\
20082 \ esac\
20083 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20084 && mv -f "$cfgfile.tmp" "$cfgfile" \
20085 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20086 test 0 -eq $? || _lt_function_replace_fail=:
20087
20088
20089 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20090 func_basename ()\
20091 {\
20092 \ func_basename_result="${1##*/}"\
20093 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20094 && mv -f "$cfgfile.tmp" "$cfgfile" \
20095 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20096 test 0 -eq $? || _lt_function_replace_fail=:
20097
20098
20099 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20100 func_dirname_and_basename ()\
20101 {\
20102 \ case ${1} in\
20103 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20104 \ * ) func_dirname_result="${3}" ;;\
20105 \ esac\
20106 \ func_basename_result="${1##*/}"\
20107 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20108 && mv -f "$cfgfile.tmp" "$cfgfile" \
20109 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20110 test 0 -eq $? || _lt_function_replace_fail=:
20111
20112
20113 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20114 func_stripname ()\
20115 {\
20116 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20117 \ # positional parameters, so assign one to ordinary parameter first.\
20118 \ func_stripname_result=${3}\
20119 \ func_stripname_result=${func_stripname_result#"${1}"}\
20120 \ func_stripname_result=${func_stripname_result%"${2}"}\
20121 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20122 && mv -f "$cfgfile.tmp" "$cfgfile" \
20123 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20124 test 0 -eq $? || _lt_function_replace_fail=:
20125
20126
20127 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20128 func_split_long_opt ()\
20129 {\
20130 \ func_split_long_opt_name=${1%%=*}\
20131 \ func_split_long_opt_arg=${1#*=}\
20132 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20133 && mv -f "$cfgfile.tmp" "$cfgfile" \
20134 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20135 test 0 -eq $? || _lt_function_replace_fail=:
20136
20137
20138 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20139 func_split_short_opt ()\
20140 {\
20141 \ func_split_short_opt_arg=${1#??}\
20142 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20143 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20144 && mv -f "$cfgfile.tmp" "$cfgfile" \
20145 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20146 test 0 -eq $? || _lt_function_replace_fail=:
20147
20148
20149 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20150 func_lo2o ()\
20151 {\
20152 \ case ${1} in\
20153 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20154 \ *) func_lo2o_result=${1} ;;\
20155 \ esac\
20156 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20157 && mv -f "$cfgfile.tmp" "$cfgfile" \
20158 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20159 test 0 -eq $? || _lt_function_replace_fail=:
20160
20161
20162 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20163 func_xform ()\
20164 {\
20165 func_xform_result=${1%.*}.lo\
20166 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20167 && mv -f "$cfgfile.tmp" "$cfgfile" \
20168 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20169 test 0 -eq $? || _lt_function_replace_fail=:
20170
20171
20172 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20173 func_arith ()\
20174 {\
20175 func_arith_result=$(( $* ))\
20176 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20177 && mv -f "$cfgfile.tmp" "$cfgfile" \
20178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20179 test 0 -eq $? || _lt_function_replace_fail=:
20180
20181
20182 sed -e '/^func_len ()$/,/^} # func_len /c\
20183 func_len ()\
20184 {\
20185 func_len_result=${#1}\
20186 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20187 && mv -f "$cfgfile.tmp" "$cfgfile" \
20188 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20189 test 0 -eq $? || _lt_function_replace_fail=:
20190
20191 fi
20192
20193 if test x"$lt_shell_append" = xyes; then
20194 sed -e '/^func_append ()$/,/^} # func_append /c\
20195 func_append ()\
20196 {\
20197 eval "${1}+=\\${2}"\
20198 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20199 && mv -f "$cfgfile.tmp" "$cfgfile" \
20200 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20201 test 0 -eq $? || _lt_function_replace_fail=:
20202
20203
20204 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20205 func_append_quoted ()\
20206 {\
20207 \ func_quote_for_eval "${2}"\
20208 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20209 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20210 && mv -f "$cfgfile.tmp" "$cfgfile" \
20211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20212 test 0 -eq $? || _lt_function_replace_fail=:
20213
20214
20215 # Save a `func_append' function call where possible by direct use of '+='
20216 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20217 && mv -f "$cfgfile.tmp" "$cfgfile" \
20218 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20219 test 0 -eq $? || _lt_function_replace_fail=:
20220 else
20221 # Save a `func_append' function call even when '+=' is not available
20222 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20223 && mv -f "$cfgfile.tmp" "$cfgfile" \
20224 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20225 test 0 -eq $? || _lt_function_replace_fail=:
20226 fi
20227
20228 if test x"$_lt_function_replace_fail" = x":"; then
20229 { $as_echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20230 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20231 fi
20232
20233
20234 mv -f "$cfgfile" "$ofile" ||
20235 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20236 chmod +x "$ofile"
20237
20238
20239 cat <<_LT_EOF >> "$ofile"
20240
20241 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20242
20243 # The linker used to build libraries.
20244 LD=$lt_LD_CXX
20245
20246 # How to create reloadable object files.
20247 reload_flag=$lt_reload_flag_CXX
20248 reload_cmds=$lt_reload_cmds_CXX
20249
20250 # Commands used to build an old-style archive.
20251 old_archive_cmds=$lt_old_archive_cmds_CXX
20252
20253 # A language specific compiler.
20254 CC=$lt_compiler_CXX
20255
20256 # Is the compiler the GNU compiler?
20257 with_gcc=$GCC_CXX
20258
20259 # Compiler flag to turn off builtin functions.
20260 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20261
20262 # Additional compiler flags for building library objects.
20263 pic_flag=$lt_lt_prog_compiler_pic_CXX
20264
20265 # How to pass a linker flag through the compiler.
20266 wl=$lt_lt_prog_compiler_wl_CXX
20267
20268 # Compiler flag to prevent dynamic linking.
20269 link_static_flag=$lt_lt_prog_compiler_static_CXX
20270
20271 # Does compiler simultaneously support -c and -o options?
20272 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20273
20274 # Whether or not to add -lc for building shared libraries.
20275 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20276
20277 # Whether or not to disallow shared libs when runtime libs are static.
20278 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20279
20280 # Compiler flag to allow reflexive dlopens.
20281 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20282
20283 # Compiler flag to generate shared objects directly from archives.
20284 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20285
20286 # Whether the compiler copes with passing no objects directly.
20287 compiler_needs_object=$lt_compiler_needs_object_CXX
20288
20289 # Create an old-style archive from a shared archive.
20290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20291
20292 # Create a temporary old-style archive to link instead of a shared archive.
20293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20294
20295 # Commands used to build a shared archive.
20296 archive_cmds=$lt_archive_cmds_CXX
20297 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20298
20299 # Commands used to build a loadable module if different from building
20300 # a shared archive.
20301 module_cmds=$lt_module_cmds_CXX
20302 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20303
20304 # Whether we are building with GNU ld or not.
20305 with_gnu_ld=$lt_with_gnu_ld_CXX
20306
20307 # Flag that allows shared libraries with undefined symbols to be built.
20308 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20309
20310 # Flag that enforces no undefined symbols.
20311 no_undefined_flag=$lt_no_undefined_flag_CXX
20312
20313 # Flag to hardcode \$libdir into a binary during linking.
20314 # This must work even if \$libdir does not exist
20315 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20316
20317 # If ld is used when linking, flag to hardcode \$libdir into a binary
20318 # during linking. This must work even if \$libdir does not exist.
20319 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20320
20321 # Whether we need a single "-rpath" flag with a separated argument.
20322 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20323
20324 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20325 # DIR into the resulting binary.
20326 hardcode_direct=$hardcode_direct_CXX
20327
20328 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20329 # DIR into the resulting binary and the resulting library dependency is
20330 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20331 # library is relocated.
20332 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20333
20334 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20335 # into the resulting binary.
20336 hardcode_minus_L=$hardcode_minus_L_CXX
20337
20338 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20339 # into the resulting binary.
20340 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20341
20342 # Set to "yes" if building a shared library automatically hardcodes DIR
20343 # into the library and all subsequent libraries and executables linked
20344 # against it.
20345 hardcode_automatic=$hardcode_automatic_CXX
20346
20347 # Set to yes if linker adds runtime paths of dependent libraries
20348 # to runtime path list.
20349 inherit_rpath=$inherit_rpath_CXX
20350
20351 # Whether libtool must link a program against all its dependency libraries.
20352 link_all_deplibs=$link_all_deplibs_CXX
20353
20354 # Set to "yes" if exported symbols are required.
20355 always_export_symbols=$always_export_symbols_CXX
20356
20357 # The commands to list exported symbols.
20358 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20359
20360 # Symbols that should not be listed in the preloaded symbols.
20361 exclude_expsyms=$lt_exclude_expsyms_CXX
20362
20363 # Symbols that must always be exported.
20364 include_expsyms=$lt_include_expsyms_CXX
20365
20366 # Commands necessary for linking programs (against libraries) with templates.
20367 prelink_cmds=$lt_prelink_cmds_CXX
20368
20369 # Commands necessary for finishing linking programs.
20370 postlink_cmds=$lt_postlink_cmds_CXX
20371
20372 # Specify filename containing input files.
20373 file_list_spec=$lt_file_list_spec_CXX
20374
20375 # How to hardcode a shared library path into an executable.
20376 hardcode_action=$hardcode_action_CXX
20377
20378 # The directories searched by this compiler when creating a shared library.
20379 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20380
20381 # Dependencies to place before and after the objects being linked to
20382 # create a shared library.
20383 predep_objects=$lt_predep_objects_CXX
20384 postdep_objects=$lt_postdep_objects_CXX
20385 predeps=$lt_predeps_CXX
20386 postdeps=$lt_postdeps_CXX
20387
20388 # The library search path used internally by the compiler when linking
20389 # a shared library.
20390 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20391
20392 # ### END LIBTOOL TAG CONFIG: CXX
20393 _LT_EOF
20394
20395 ;;
20396
20397 esac
20398 done # for ac_tag
20399
20400
20401 { (exit 0); exit 0; }
20402 _ACEOF
20403 chmod +x $CONFIG_STATUS
20404 ac_clean_files=$ac_clean_files_save
20405
20406 test $ac_write_fail = 0 ||
20407 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20408 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20409 { (exit 1); exit 1; }; }
20410
20411
20412 # configure is writing to config.log, and then calls config.status.
20413 # config.status does its own redirection, appending to config.log.
20414 # Unfortunately, on DOS this fails, as config.log is still kept open
20415 # by configure, so config.status won't be able to write to it; its
20416 # output is simply discarded. So we exec the FD to /dev/null,
20417 # effectively closing config.log, so it can be properly (re)opened and
20418 # appended to by config.status. When coming back to configure, we
20419 # need to make the FD available again.
20420 if test "$no_create" != yes; then
20421 ac_cs_success=:
20422 ac_config_status_args=
20423 test "$silent" = yes &&
20424 ac_config_status_args="$ac_config_status_args --quiet"
20425 exec 5>/dev/null
20426 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20427 exec 5>>config.log
20428 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20429 # would make configure fail if this is the last instruction.
20430 $ac_cs_success || { (exit 1); exit 1; }
20431 fi
20432 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20433 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20434 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20435 fi
20436
20437